From 087315dbdb218fee1cab18089b0609490bd095fb Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 19 Sep 2024 01:36:17 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.2 --- .speakeasy/gen.lock | 6 ++-- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 10 +++--- RELEASES.md | 12 ++++++- codeSamples.yaml | 2 +- docs/models/components/eventpayload.md | 11 ++---- docs/models/components/payload.md | 11 ++---- .../components/signatureverificationdto.md | 5 +-- docs/sdks/webhooks/README.md | 10 ++---- jsr.json | 2 +- package-lock.json | 4 +-- package.json | 2 +- src/lib/config.ts | 4 +-- src/models/components/eventpayload.ts | 35 +++---------------- .../components/signatureverificationdto.ts | 35 +++---------------- 15 files changed, 44 insertions(+), 107 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index ddca2c5a..59b7aedf 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: caaaa8c3-6dd7-43a5-841e-c3193e68cc73 management: - docChecksum: df43e764b8eb28b0b843f5f4e489a795 + docChecksum: 85754de0244c73cbb1c69b25ea2c7b84 docVersion: "1.0" speakeasyVersion: 1.399.2 generationVersion: 2.416.6 - releaseVersion: 0.13.6 - configChecksum: 54dc3961974da8b857c42f2f1cd52b95 + releaseVersion: 0.13.7 + configChecksum: a67cb1918371b34fe4ecbfd50d9af6d0 repoURL: https://github.com/panoratech/typescript-sdk.git installationURL: https://github.com/panoratech/typescript-sdk published: true diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 807a25bb..4c69e861 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false typescript: - version: 0.13.6 + version: 0.13.7 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 8c5e16b9..1c9b04bc 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.399.2 sources: panora-open-api-swagger: sourceNamespace: panora-open-api-swagger - sourceRevisionDigest: sha256:b3385926f3a17c420c322518393c3d580691089ae337494bdd71d8b4a29bd824 - sourceBlobDigest: sha256:c0678c7ec897cd7bd4771c9c746b305aa47ed2b412ae8271f4aa3b98300d8728 + sourceRevisionDigest: sha256:30f88af1cbd2b7fb9a75fc3f1684c47bf1c50b5229df1fe2e6c6cd3ad1882ce3 + sourceBlobDigest: sha256:448db7f4e3a8eccc58c9e6f2c79e23ff930158322f19557f97845048c501ef37 tags: - latest - main @@ -11,10 +11,10 @@ targets: my-first-target: source: panora-open-api-swagger sourceNamespace: panora-open-api-swagger - sourceRevisionDigest: sha256:b3385926f3a17c420c322518393c3d580691089ae337494bdd71d8b4a29bd824 - sourceBlobDigest: sha256:c0678c7ec897cd7bd4771c9c746b305aa47ed2b412ae8271f4aa3b98300d8728 + sourceRevisionDigest: sha256:30f88af1cbd2b7fb9a75fc3f1684c47bf1c50b5229df1fe2e6c6cd3ad1882ce3 + sourceBlobDigest: sha256:448db7f4e3a8eccc58c9e6f2c79e23ff930158322f19557f97845048c501ef37 codeSamplesNamespace: code-samples-typescript-my-first-target - codeSamplesRevisionDigest: sha256:63675c7d0886bee62f5e86ada612ee46b90e76b987d2754297315256e8330def + codeSamplesRevisionDigest: sha256:c36f6221f66d0acc13250c9d29a8a29a942b76ca46addbf24664cce74656e423 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 55084052..2fe5109e 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -298,4 +298,14 @@ Based on: ### Generated - [typescript v0.13.6] . ### Releases -- [NPM v0.13.6] https://www.npmjs.com/package/@panora/sdk/v/0.13.6 - . \ No newline at end of file +- [NPM v0.13.6] https://www.npmjs.com/package/@panora/sdk/v/0.13.6 - . + +## 2024-09-19 01:33:09 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.399.2 (2.416.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.13.7] . +### Releases +- [NPM v0.13.7] https://www.npmjs.com/package/@panora/sdk/v/0.13.7 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 56206556..c2cea354 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -1474,7 +1474,7 @@ actions: x-codeSamples: - lang: typescript label: verifyEvent - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.webhooks.verifyEvent({\n payload: {\n idEvent: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n type: \"connection.created\",\n },\n signature: \"\",\n secret: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.webhooks.verifyEvent({\n payload: {},\n signature: \"\",\n secret: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - target: $["paths"]["/webhooks/{id}"]["delete"] update: x-codeSamples: diff --git a/docs/models/components/eventpayload.md b/docs/models/components/eventpayload.md index 79031513..3b84894c 100644 --- a/docs/models/components/eventpayload.md +++ b/docs/models/components/eventpayload.md @@ -5,15 +5,10 @@ ```typescript import { EventPayload } from "@panora/sdk/models/components"; -let value: EventPayload = { - idEvent: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - type: "connection.created", -}; +let value: EventPayload = {}; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `idEvent` | *string* | :heavy_check_mark: | The id of the event. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `type` | *string* | :heavy_check_mark: | The type of the event. | connection.created | \ No newline at end of file +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/payload.md b/docs/models/components/payload.md index ab603529..0652168d 100644 --- a/docs/models/components/payload.md +++ b/docs/models/components/payload.md @@ -7,15 +7,10 @@ The payload event of the webhook. ```typescript import { Payload } from "@panora/sdk/models/components"; -let value: Payload = { - idEvent: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - type: "connection.created", -}; +let value: Payload = {}; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `idEvent` | *string* | :heavy_check_mark: | The id of the event. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `type` | *string* | :heavy_check_mark: | The type of the event. | connection.created | \ No newline at end of file +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/signatureverificationdto.md b/docs/models/components/signatureverificationdto.md index f5c6f98a..e56a46fe 100644 --- a/docs/models/components/signatureverificationdto.md +++ b/docs/models/components/signatureverificationdto.md @@ -6,10 +6,7 @@ import { SignatureVerificationDto } from "@panora/sdk/models/components"; let value: SignatureVerificationDto = { - payload: { - idEvent: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - type: "connection.created", - }, + payload: {}, signature: "", secret: "", }; diff --git a/docs/sdks/webhooks/README.md b/docs/sdks/webhooks/README.md index a64972c2..2fbff224 100644 --- a/docs/sdks/webhooks/README.md +++ b/docs/sdks/webhooks/README.md @@ -337,10 +337,7 @@ const panora = new Panora({ async function run() { const result = await panora.webhooks.verifyEvent({ - payload: { - idEvent: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - type: "connection.created", - }, + payload: {}, signature: "", secret: "", }); @@ -368,10 +365,7 @@ const panora = new PanoraCore({ async function run() { const res = await webhooksVerifyEvent(panora, { - payload: { - idEvent: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - type: "connection.created", - }, + payload: {}, signature: "", secret: "", }); diff --git a/jsr.json b/jsr.json index dfaba35b..d2c347f2 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@panora/sdk", - "version": "0.13.6", + "version": "0.13.7", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index e76f6f99..67a6c1f3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@panora/sdk", - "version": "0.13.6", + "version": "0.13.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@panora/sdk", - "version": "0.13.6", + "version": "0.13.7", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", diff --git a/package.json b/package.json index 8e74d6d1..68ee4df2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@panora/sdk", - "version": "0.13.6", + "version": "0.13.7", "author": "Speakeasy", "main": "./index.js", "sideEffects": false, diff --git a/src/lib/config.ts b/src/lib/config.ts index 528f82a5..90ae8a79 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.0", - sdkVersion: "0.13.6", + sdkVersion: "0.13.7", genVersion: "2.416.6", - userAgent: "speakeasy-sdk/typescript 0.13.6 2.416.6 1.0 @panora/sdk", + userAgent: "speakeasy-sdk/typescript 0.13.7 2.416.6 1.0 @panora/sdk", } as const; diff --git a/src/models/components/eventpayload.ts b/src/models/components/eventpayload.ts index 132eea8d..8e5a36a8 100644 --- a/src/models/components/eventpayload.ts +++ b/src/models/components/eventpayload.ts @@ -3,52 +3,25 @@ */ import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -export type EventPayload = { - /** - * The id of the event. - */ - idEvent: string | null; - /** - * The type of the event. - */ - type: string | null; -}; +export type EventPayload = {}; /** @internal */ export const EventPayload$inboundSchema: z.ZodType< EventPayload, z.ZodTypeDef, unknown -> = z.object({ - id_event: z.nullable(z.string()), - type: z.nullable(z.string()), -}).transform((v) => { - return remap$(v, { - "id_event": "idEvent", - }); -}); +> = z.object({}); /** @internal */ -export type EventPayload$Outbound = { - id_event: string | null; - type: string | null; -}; +export type EventPayload$Outbound = {}; /** @internal */ export const EventPayload$outboundSchema: z.ZodType< EventPayload$Outbound, z.ZodTypeDef, EventPayload -> = z.object({ - idEvent: z.nullable(z.string()), - type: z.nullable(z.string()), -}).transform((v) => { - return remap$(v, { - idEvent: "id_event", - }); -}); +> = z.object({}); /** * @internal diff --git a/src/models/components/signatureverificationdto.ts b/src/models/components/signatureverificationdto.ts index 016cb23c..3fe4ad05 100644 --- a/src/models/components/signatureverificationdto.ts +++ b/src/models/components/signatureverificationdto.ts @@ -3,21 +3,11 @@ */ import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; /** * The payload event of the webhook. */ -export type Payload = { - /** - * The id of the event. - */ - idEvent: string | null; - /** - * The type of the event. - */ - type: string | null; -}; +export type Payload = {}; export type SignatureVerificationDto = { /** @@ -36,34 +26,17 @@ export type SignatureVerificationDto = { /** @internal */ export const Payload$inboundSchema: z.ZodType = - z.object({ - id_event: z.nullable(z.string()), - type: z.nullable(z.string()), - }).transform((v) => { - return remap$(v, { - "id_event": "idEvent", - }); - }); + z.object({}); /** @internal */ -export type Payload$Outbound = { - id_event: string | null; - type: string | null; -}; +export type Payload$Outbound = {}; /** @internal */ export const Payload$outboundSchema: z.ZodType< Payload$Outbound, z.ZodTypeDef, Payload -> = z.object({ - idEvent: z.nullable(z.string()), - type: z.nullable(z.string()), -}).transform((v) => { - return remap$(v, { - idEvent: "id_event", - }); -}); +> = z.object({}); /** * @internal