From b877acb159e674db2274cc47cc680cc9bd7c1203 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 19 Sep 2024 01:25:31 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.2 --- .speakeasy/gen.lock | 8 +- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 10 +- README.md | 2 +- RELEASES.md | 12 ++- codeSamples.yaml | 6 +- docs/models/components/eventpayload.md | 12 +-- docs/models/components/payload.md | 12 +-- .../components/signatureverificationdto.md | 3 - docs/sdks/linkedusers/README.md | 100 +++++++++--------- docs/sdks/webhooks/README.md | 6 -- jsr.json | 2 +- package-lock.json | 4 +- package.json | 2 +- src/funcs/syncGetPullFrequency.ts | 2 +- src/funcs/syncUpdatePullFrequency.ts | 2 +- src/lib/config.ts | 4 +- src/models/components/eventpayload.ts | 7 -- .../components/signatureverificationdto.ts | 7 -- src/sdk/linkedusers.ts | 28 ++--- 20 files changed, 105 insertions(+), 126 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index ed5890ff..ddca2c5a 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: 4d63072803072e860460c96602d7e927 + docChecksum: df43e764b8eb28b0b843f5f4e489a795 docVersion: "1.0" speakeasyVersion: 1.399.2 generationVersion: 2.416.6 - releaseVersion: 0.13.5 - configChecksum: aca2b54ea3bb43e5992136a58d772077 + releaseVersion: 0.13.6 + configChecksum: 54dc3961974da8b857c42f2f1cd52b95 repoURL: https://github.com/panoratech/typescript-sdk.git installationURL: https://github.com/panoratech/typescript-sdk published: true @@ -1742,7 +1742,7 @@ examples: application/json: {"payload": {}, "signature": "", "secret": ""} responses: "201": - application/json: {"id_event": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "type": "connection.created", "data": {}} + application/json: {"id_event": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "type": "connection.created"} listTicketingTicket: "": parameters: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index a926f900..807a25bb 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false typescript: - version: 0.13.5 + version: 0.13.6 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index c93cd45b..8c5e16b9 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:47d95f18b4aa2f8a3910cb43e330ad353b26d20912a5a51e84000a99078d7262 - sourceBlobDigest: sha256:76873ae939bd278ea3e181d2b69220bbb40eaed8a071e8305c7532b873665bab + sourceRevisionDigest: sha256:b3385926f3a17c420c322518393c3d580691089ae337494bdd71d8b4a29bd824 + sourceBlobDigest: sha256:c0678c7ec897cd7bd4771c9c746b305aa47ed2b412ae8271f4aa3b98300d8728 tags: - latest - main @@ -11,10 +11,10 @@ targets: my-first-target: source: panora-open-api-swagger sourceNamespace: panora-open-api-swagger - sourceRevisionDigest: sha256:47d95f18b4aa2f8a3910cb43e330ad353b26d20912a5a51e84000a99078d7262 - sourceBlobDigest: sha256:76873ae939bd278ea3e181d2b69220bbb40eaed8a071e8305c7532b873665bab + sourceRevisionDigest: sha256:b3385926f3a17c420c322518393c3d580691089ae337494bdd71d8b4a29bd824 + sourceBlobDigest: sha256:c0678c7ec897cd7bd4771c9c746b305aa47ed2b412ae8271f4aa3b98300d8728 codeSamplesNamespace: code-samples-typescript-my-first-target - codeSamplesRevisionDigest: sha256:c7b96f22d0c53ac315b208aafbc837b1059e2eb802f24251d1a8695e545d1cc9 + codeSamplesRevisionDigest: sha256:63675c7d0886bee62f5e86ada612ee46b90e76b987d2754297315256e8330def workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 96478449..375229b8 100644 --- a/README.md +++ b/README.md @@ -508,11 +508,11 @@ run(); ### [linkedUsers](docs/sdks/linkedusers/README.md) +* [remoteId](docs/sdks/linkedusers/README.md#remoteid) - Retrieve a Linked User From A Remote Id * [create](docs/sdks/linkedusers/README.md#create) - Create Linked Users * [list](docs/sdks/linkedusers/README.md#list) - List Linked Users * [importBatch](docs/sdks/linkedusers/README.md#importbatch) - Add Batch Linked Users * [retrieve](docs/sdks/linkedusers/README.md#retrieve) - Retrieve Linked Users -* [remoteId](docs/sdks/linkedusers/README.md#remoteid) - Retrieve a Linked User From A Remote Id ### [marketingautomation](docs/sdks/marketingautomation/README.md) diff --git a/RELEASES.md b/RELEASES.md index 192f1139..55084052 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -288,4 +288,14 @@ Based on: ### Generated - [typescript v0.13.5] . ### Releases -- [NPM v0.13.5] https://www.npmjs.com/package/@panora/sdk/v/0.13.5 - . \ No newline at end of file +- [NPM v0.13.5] https://www.npmjs.com/package/@panora/sdk/v/0.13.5 - . + +## 2024-09-19 01:22:28 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.399.2 (2.416.6) https://github.com/speakeasy-api/speakeasy +### 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 diff --git a/codeSamples.yaml b/codeSamples.yaml index fd107b90..56206556 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -1293,13 +1293,13 @@ actions: - lang: typescript label: query source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.rag.query({\n xConnectionToken: \"\",\n queryBody: {\n query: \"When does Panora incorporated?\",\n topK: 3,\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/sync/pull-frequencies"]["get"] + - target: $["paths"]["/sync/pull_frequencies"]["get"] update: x-codeSamples: - lang: typescript label: getPullFrequency source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.sync.getPullFrequency();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/sync/pull-frequencies"]["post"] + - target: $["paths"]["/sync/pull_frequencies"]["post"] update: x-codeSamples: - lang: typescript @@ -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 data: {\n \n },\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 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();" - target: $["paths"]["/webhooks/{id}"]["delete"] update: x-codeSamples: diff --git a/docs/models/components/eventpayload.md b/docs/models/components/eventpayload.md index 37f14019..79031513 100644 --- a/docs/models/components/eventpayload.md +++ b/docs/models/components/eventpayload.md @@ -8,16 +8,12 @@ import { EventPayload } from "@panora/sdk/models/components"; let value: EventPayload = { idEvent: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", type: "connection.created", - data: { - "key": "", - }, }; ``` ## 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 | -| `data` | Record | :heavy_check_mark: | The data payload event of the webhook. | | \ No newline at end of file +| 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 diff --git a/docs/models/components/payload.md b/docs/models/components/payload.md index 8e508803..ab603529 100644 --- a/docs/models/components/payload.md +++ b/docs/models/components/payload.md @@ -10,16 +10,12 @@ import { Payload } from "@panora/sdk/models/components"; let value: Payload = { idEvent: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", type: "connection.created", - data: { - "key": "", - }, }; ``` ## 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 | -| `data` | Record | :heavy_check_mark: | The data payload event of the webhook. | | \ No newline at end of file +| 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 diff --git a/docs/models/components/signatureverificationdto.md b/docs/models/components/signatureverificationdto.md index 9f979b9d..f5c6f98a 100644 --- a/docs/models/components/signatureverificationdto.md +++ b/docs/models/components/signatureverificationdto.md @@ -9,9 +9,6 @@ let value: SignatureVerificationDto = { payload: { idEvent: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", type: "connection.created", - data: { - "key": "", - }, }, signature: "", secret: "", diff --git a/docs/sdks/linkedusers/README.md b/docs/sdks/linkedusers/README.md index 39289e1a..6ef8b51c 100644 --- a/docs/sdks/linkedusers/README.md +++ b/docs/sdks/linkedusers/README.md @@ -5,15 +5,15 @@ ### Available Operations +* [remoteId](#remoteid) - Retrieve a Linked User From A Remote Id * [create](#create) - Create Linked Users * [list](#list) - List Linked Users * [importBatch](#importbatch) - Add Batch Linked Users * [retrieve](#retrieve) - Retrieve Linked Users -* [remoteId](#remoteid) - Retrieve a Linked User From A Remote Id -## create +## remoteId -Create Linked Users +Retrieve a Linked User From A Remote Id ### Example Usage @@ -25,9 +25,8 @@ const panora = new Panora({ }); async function run() { - const result = await panora.linkedUsers.create({ - linkedUserOriginId: "id_1", - alias: "acme", + const result = await panora.linkedUsers.remoteId({ + remoteId: "id_1", }); // Handle the result @@ -43,7 +42,7 @@ The standalone function version of this method: ```typescript import { PanoraCore } from "@panora/sdk/core.js"; -import { linkedUsersCreate } from "@panora/sdk/funcs/linkedUsersCreate.js"; +import { linkedUsersRemoteId } from "@panora/sdk/funcs/linkedUsersRemoteId.js"; // Use `PanoraCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -52,9 +51,8 @@ const panora = new PanoraCore({ }); async function run() { - const res = await linkedUsersCreate(panora, { - linkedUserOriginId: "id_1", - alias: "acme", + const res = await linkedUsersRemoteId(panora, { + remoteId: "id_1", }); if (!res.ok) { @@ -74,7 +72,7 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [components.CreateLinkedUserDto](../../models/components/createlinkeduserdto.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RemoteIdRequest](../../models/operations/remoteidrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -90,9 +88,9 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## list +## create -List Linked Users +Create Linked Users ### Example Usage @@ -104,7 +102,10 @@ const panora = new Panora({ }); async function run() { - const result = await panora.linkedUsers.list(); + const result = await panora.linkedUsers.create({ + linkedUserOriginId: "id_1", + alias: "acme", + }); // Handle the result console.log(result) @@ -119,7 +120,7 @@ The standalone function version of this method: ```typescript import { PanoraCore } from "@panora/sdk/core.js"; -import { linkedUsersList } from "@panora/sdk/funcs/linkedUsersList.js"; +import { linkedUsersCreate } from "@panora/sdk/funcs/linkedUsersCreate.js"; // Use `PanoraCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -128,7 +129,10 @@ const panora = new PanoraCore({ }); async function run() { - const res = await linkedUsersList(panora); + const res = await linkedUsersCreate(panora, { + linkedUserOriginId: "id_1", + alias: "acme", + }); if (!res.ok) { throw res.error; @@ -147,13 +151,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [components.CreateLinkedUserDto](../../models/components/createlinkeduserdto.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[components.LinkedUserResponse[]](../../models/.md)\>** +**Promise\<[components.LinkedUserResponse](../../models/components/linkeduserresponse.md)\>** ### Errors @@ -162,9 +167,9 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## importBatch +## list -Add Batch Linked Users +List Linked Users ### Example Usage @@ -176,12 +181,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.linkedUsers.importBatch({ - linkedUserOriginIds: [ - "id_1", - ], - alias: "acme", - }); + const result = await panora.linkedUsers.list(); // Handle the result console.log(result) @@ -196,7 +196,7 @@ The standalone function version of this method: ```typescript import { PanoraCore } from "@panora/sdk/core.js"; -import { linkedUsersImportBatch } from "@panora/sdk/funcs/linkedUsersImportBatch.js"; +import { linkedUsersList } from "@panora/sdk/funcs/linkedUsersList.js"; // Use `PanoraCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -205,12 +205,7 @@ const panora = new PanoraCore({ }); async function run() { - const res = await linkedUsersImportBatch(panora, { - linkedUserOriginIds: [ - "id_1", - ], - alias: "acme", - }); + const res = await linkedUsersList(panora); if (!res.ok) { throw res.error; @@ -229,7 +224,6 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [components.CreateBatchLinkedUserDto](../../models/components/createbatchlinkeduserdto.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -245,9 +239,9 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## retrieve +## importBatch -Retrieve Linked Users +Add Batch Linked Users ### Example Usage @@ -259,8 +253,11 @@ const panora = new Panora({ }); async function run() { - const result = await panora.linkedUsers.retrieve({ - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + const result = await panora.linkedUsers.importBatch({ + linkedUserOriginIds: [ + "id_1", + ], + alias: "acme", }); // Handle the result @@ -276,7 +273,7 @@ The standalone function version of this method: ```typescript import { PanoraCore } from "@panora/sdk/core.js"; -import { linkedUsersRetrieve } from "@panora/sdk/funcs/linkedUsersRetrieve.js"; +import { linkedUsersImportBatch } from "@panora/sdk/funcs/linkedUsersImportBatch.js"; // Use `PanoraCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -285,8 +282,11 @@ const panora = new PanoraCore({ }); async function run() { - const res = await linkedUsersRetrieve(panora, { - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + const res = await linkedUsersImportBatch(panora, { + linkedUserOriginIds: [ + "id_1", + ], + alias: "acme", }); if (!res.ok) { @@ -306,14 +306,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.RetrieveLinkedUserRequest](../../models/operations/retrievelinkeduserrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [components.CreateBatchLinkedUserDto](../../models/components/createbatchlinkeduserdto.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[components.LinkedUserResponse](../../models/components/linkeduserresponse.md)\>** +**Promise\<[components.LinkedUserResponse[]](../../models/.md)\>** ### Errors @@ -322,9 +322,9 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## remoteId +## retrieve -Retrieve a Linked User From A Remote Id +Retrieve Linked Users ### Example Usage @@ -336,8 +336,8 @@ const panora = new Panora({ }); async function run() { - const result = await panora.linkedUsers.remoteId({ - remoteId: "id_1", + const result = await panora.linkedUsers.retrieve({ + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", }); // Handle the result @@ -353,7 +353,7 @@ The standalone function version of this method: ```typescript import { PanoraCore } from "@panora/sdk/core.js"; -import { linkedUsersRemoteId } from "@panora/sdk/funcs/linkedUsersRemoteId.js"; +import { linkedUsersRetrieve } from "@panora/sdk/funcs/linkedUsersRetrieve.js"; // Use `PanoraCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -362,8 +362,8 @@ const panora = new PanoraCore({ }); async function run() { - const res = await linkedUsersRemoteId(panora, { - remoteId: "id_1", + const res = await linkedUsersRetrieve(panora, { + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", }); if (!res.ok) { @@ -383,7 +383,7 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.RemoteIdRequest](../../models/operations/remoteidrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RetrieveLinkedUserRequest](../../models/operations/retrievelinkeduserrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/webhooks/README.md b/docs/sdks/webhooks/README.md index 30557cb5..a64972c2 100644 --- a/docs/sdks/webhooks/README.md +++ b/docs/sdks/webhooks/README.md @@ -340,9 +340,6 @@ async function run() { payload: { idEvent: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", type: "connection.created", - data: { - "key": "", - }, }, signature: "", secret: "", @@ -374,9 +371,6 @@ async function run() { payload: { idEvent: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", type: "connection.created", - data: { - "key": "", - }, }, signature: "", secret: "", diff --git a/jsr.json b/jsr.json index 9ed848f5..dfaba35b 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@panora/sdk", - "version": "0.13.5", + "version": "0.13.6", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 22e4e27b..e76f6f99 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@panora/sdk", - "version": "0.13.5", + "version": "0.13.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@panora/sdk", - "version": "0.13.5", + "version": "0.13.6", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", diff --git a/package.json b/package.json index bc74ce74..8e74d6d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@panora/sdk", - "version": "0.13.5", + "version": "0.13.6", "author": "Speakeasy", "main": "./index.js", "sideEffects": false, diff --git a/src/funcs/syncGetPullFrequency.ts b/src/funcs/syncGetPullFrequency.ts index 7b11e69f..a7cbc79a 100644 --- a/src/funcs/syncGetPullFrequency.ts +++ b/src/funcs/syncGetPullFrequency.ts @@ -37,7 +37,7 @@ export async function syncGetPullFrequency( | ConnectionError > > { - const path$ = pathToFunc("/sync/pull-frequencies")(); + const path$ = pathToFunc("/sync/pull_frequencies")(); const headers$ = new Headers({ Accept: "application/json", diff --git a/src/funcs/syncUpdatePullFrequency.ts b/src/funcs/syncUpdatePullFrequency.ts index 5e44a2d8..546ac412 100644 --- a/src/funcs/syncUpdatePullFrequency.ts +++ b/src/funcs/syncUpdatePullFrequency.ts @@ -54,7 +54,7 @@ export async function syncUpdatePullFrequency( const payload$ = parsed$.value; const body$ = encodeJSON$("body", payload$, { explode: true }); - const path$ = pathToFunc("/sync/pull-frequencies")(); + const path$ = pathToFunc("/sync/pull_frequencies")(); const headers$ = new Headers({ "Content-Type": "application/json", diff --git a/src/lib/config.ts b/src/lib/config.ts index da756b38..528f82a5 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.5", + sdkVersion: "0.13.6", genVersion: "2.416.6", - userAgent: "speakeasy-sdk/typescript 0.13.5 2.416.6 1.0 @panora/sdk", + userAgent: "speakeasy-sdk/typescript 0.13.6 2.416.6 1.0 @panora/sdk", } as const; diff --git a/src/models/components/eventpayload.ts b/src/models/components/eventpayload.ts index d77a19a3..132eea8d 100644 --- a/src/models/components/eventpayload.ts +++ b/src/models/components/eventpayload.ts @@ -14,10 +14,6 @@ export type EventPayload = { * The type of the event. */ type: string | null; - /** - * The data payload event of the webhook. - */ - data: { [k: string]: any } | null; }; /** @internal */ @@ -28,7 +24,6 @@ export const EventPayload$inboundSchema: z.ZodType< > = z.object({ id_event: z.nullable(z.string()), type: z.nullable(z.string()), - data: z.nullable(z.record(z.any())), }).transform((v) => { return remap$(v, { "id_event": "idEvent", @@ -39,7 +34,6 @@ export const EventPayload$inboundSchema: z.ZodType< export type EventPayload$Outbound = { id_event: string | null; type: string | null; - data: { [k: string]: any } | null; }; /** @internal */ @@ -50,7 +44,6 @@ export const EventPayload$outboundSchema: z.ZodType< > = z.object({ idEvent: z.nullable(z.string()), type: z.nullable(z.string()), - data: z.nullable(z.record(z.any())), }).transform((v) => { return remap$(v, { idEvent: "id_event", diff --git a/src/models/components/signatureverificationdto.ts b/src/models/components/signatureverificationdto.ts index 65209b17..016cb23c 100644 --- a/src/models/components/signatureverificationdto.ts +++ b/src/models/components/signatureverificationdto.ts @@ -17,10 +17,6 @@ export type Payload = { * The type of the event. */ type: string | null; - /** - * The data payload event of the webhook. - */ - data: { [k: string]: any } | null; }; export type SignatureVerificationDto = { @@ -43,7 +39,6 @@ export const Payload$inboundSchema: z.ZodType = z.object({ id_event: z.nullable(z.string()), type: z.nullable(z.string()), - data: z.nullable(z.record(z.any())), }).transform((v) => { return remap$(v, { "id_event": "idEvent", @@ -54,7 +49,6 @@ export const Payload$inboundSchema: z.ZodType = export type Payload$Outbound = { id_event: string | null; type: string | null; - data: { [k: string]: any } | null; }; /** @internal */ @@ -65,7 +59,6 @@ export const Payload$outboundSchema: z.ZodType< > = z.object({ idEvent: z.nullable(z.string()), type: z.nullable(z.string()), - data: z.nullable(z.record(z.any())), }).transform((v) => { return remap$(v, { idEvent: "id_event", diff --git a/src/sdk/linkedusers.ts b/src/sdk/linkedusers.ts index cff1fb62..72d72212 100644 --- a/src/sdk/linkedusers.ts +++ b/src/sdk/linkedusers.ts @@ -13,6 +13,20 @@ import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class LinkedUsers extends ClientSDK { + /** + * Retrieve a Linked User From A Remote Id + */ + async remoteId( + request: operations.RemoteIdRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(linkedUsersRemoteId( + this, + request, + options, + )); + } + /** * Create Linked Users */ @@ -66,18 +80,4 @@ export class LinkedUsers extends ClientSDK { options, )); } - - /** - * Retrieve a Linked User From A Remote Id - */ - async remoteId( - request: operations.RemoteIdRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(linkedUsersRemoteId( - this, - request, - options, - )); - } }