From 0b84ddb8ae39e9533e1196e60443e399e1485550 Mon Sep 17 00:00:00 2001 From: GalT <39020298+tatarco@users.noreply.github.com> Date: Tue, 14 Jan 2025 09:36:35 +0100 Subject: [PATCH] add error dto to 500 --- .speakeasy/gen.lock | 6 +- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 10 +- README.md | 10 +- docs/models/components/messageresponsedto.md | 6 +- .../components/subscriberresponsedto.md | 4 +- ...iberscontrollercreatesubscriberresponse.md | 4 +- ...scriberscontrollergetsubscriberresponse.md | 4 +- ...riberscontrollerlistsubscribersresponse.md | 4 +- ...rscontrollerlistsubscribersresponsebody.md | 4 +- ...iberscontrollermarkactionasseenresponse.md | 6 +- ...criberscontrollermarkmessagesasresponse.md | 6 +- ...ntrollermodifysubscriberchannelresponse.md | 4 +- ...ntrollerupdatesubscriberchannelresponse.md | 4 +- ...ollerupdatesubscriberonlineflagresponse.md | 4 +- ...iberscontrollerupdatesubscriberresponse.md | 4 +- docs/sdks/admin/README.md | 4 +- docs/sdks/authentication/README.md | 4 +- docs/sdks/credentials/README.md | 6 +- docs/sdks/integrations/README.md | 12 +- docs/sdks/messages/README.md | 6 +- docs/sdks/notifications/README.md | 4 +- docs/sdks/novu/README.md | 8 +- docs/sdks/novumessages/README.md | 6 +- docs/sdks/novunotifications/README.md | 4 +- docs/sdks/novusubscribers/README.md | 6 +- docs/sdks/preferences/README.md | 8 +- docs/sdks/properties/README.md | 2 +- docs/sdks/stats/README.md | 4 +- docs/sdks/subscribers/README.md | 12 +- docs/sdks/topics/README.md | 10 +- docs/sdks/webhooks/README.md | 2 +- jsr.json | 2 +- package-lock.json | 4 +- package.json | 2 +- sources/json-development.json | 1657 ++++++++++++++++- .../adminTestingControllerIdempotency.ts | 15 +- .../adminTestingControllerIdempotencyGet.ts | 15 +- src/funcs/cancel.ts | 15 +- src/funcs/integrationsCreate.ts | 15 +- src/funcs/integrationsDelete.ts | 15 +- src/funcs/integrationsList.ts | 15 +- src/funcs/integrationsListActive.ts | 15 +- src/funcs/integrationsSetAsPrimary.ts | 17 +- src/funcs/integrationsUpdate.ts | 17 +- src/funcs/integrationsWebhooksRetrieve.ts | 15 +- src/funcs/messagesDelete.ts | 15 +- src/funcs/messagesDeleteByTransactionId.ts | 15 +- src/funcs/messagesRetrieve.ts | 15 +- src/funcs/notificationsList.ts | 15 +- src/funcs/notificationsRetrieve.ts | 15 +- src/funcs/notificationsStatsGraph.ts | 15 +- src/funcs/notificationsStatsRetrieve.ts | 15 +- ...ubscribersAuthenticationChatAccessOauth.ts | 15 +- ...rsAuthenticationChatAccessOauthCallBack.ts | 15 +- src/funcs/subscribersCreate.ts | 15 +- src/funcs/subscribersCreateBulk.ts | 15 +- src/funcs/subscribersCredentialsAppend.ts | 15 +- src/funcs/subscribersCredentialsDelete.ts | 15 +- src/funcs/subscribersCredentialsUpdate.ts | 15 +- src/funcs/subscribersDelete.ts | 15 +- src/funcs/subscribersList.ts | 15 +- src/funcs/subscribersMessagesMarkAll.ts | 15 +- src/funcs/subscribersMessagesMarkAllAs.ts | 15 +- src/funcs/subscribersMessagesUpdateAsSeen.ts | 15 +- src/funcs/subscribersNotificationsFeed.ts | 15 +- .../subscribersNotificationsUnseenCount.ts | 15 +- src/funcs/subscribersPreferencesList.ts | 15 +- .../subscribersPreferencesRetrieveByLevel.ts | 15 +- src/funcs/subscribersPreferencesUpdate.ts | 15 +- .../subscribersPreferencesUpdateGlobal.ts | 15 +- .../subscribersPropertiesUpdateOnlineFlag.ts | 15 +- src/funcs/subscribersRetrieve.ts | 15 +- src/funcs/subscribersUpdate.ts | 15 +- src/funcs/topicsCreate.ts | 15 +- src/funcs/topicsDelete.ts | 15 +- src/funcs/topicsList.ts | 15 +- src/funcs/topicsRename.ts | 15 +- src/funcs/topicsRetrieve.ts | 15 +- src/funcs/topicsSubscribersAssign.ts | 15 +- src/funcs/topicsSubscribersRemove.ts | 15 +- src/funcs/topicsSubscribersRetrieve.ts | 15 +- src/funcs/trigger.ts | 15 +- src/funcs/triggerBroadcast.ts | 15 +- src/funcs/triggerBulk.ts | 15 +- src/lib/config.ts | 4 +- 86 files changed, 2374 insertions(+), 214 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 002eb1e9..2f182137 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 6bff3a53-3f0b-40b4-942f-ff70dc583ae5 management: - docChecksum: 801ff0e455fcd28a1669a39180b510d1 + docChecksum: 9b82d50efbca5a1a728049be4927a4ac docVersion: "1.0" speakeasyVersion: 1.468.5 generationVersion: 2.493.11 - releaseVersion: 0.0.1-alpha.182 - configChecksum: 5c01880b58ab1de64ea9f18a4bf6fe58 + releaseVersion: 0.0.1-alpha.183 + configChecksum: aceea5a92d3772a6ade4330690d490cb published: true features: typescript: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 1d0e8f1f..ce8524df 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false typescript: - version: 0.0.1-alpha.182 + version: 0.0.1-alpha.183 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 93cf0e5a..1c84591c 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.468.5 sources: json-development: sourceNamespace: json-development - sourceRevisionDigest: sha256:38e287c5d88e2cfc0d36ab934ddb3fbeec12da564f851de06cbc389e837e1b0b - sourceBlobDigest: sha256:4cd29ff5c77b55e47d4c75c7a1f9023e32c5a64190a2be862b18fbc92a6b8410 + sourceRevisionDigest: sha256:ad4851ee72553198704e4f3a6ed1859b1c2ef111172f86d34395f577afdd14da + sourceBlobDigest: sha256:98ff71d9656ecc1294937a13bff2ddc8e6f233d1c281875726dfc3f2c0301ce4 tags: - latest - "1.0" @@ -11,10 +11,10 @@ targets: my-first-target: source: json-development sourceNamespace: json-development - sourceRevisionDigest: sha256:38e287c5d88e2cfc0d36ab934ddb3fbeec12da564f851de06cbc389e837e1b0b - sourceBlobDigest: sha256:4cd29ff5c77b55e47d4c75c7a1f9023e32c5a64190a2be862b18fbc92a6b8410 + sourceRevisionDigest: sha256:ad4851ee72553198704e4f3a6ed1859b1c2ef111172f86d34395f577afdd14da + sourceBlobDigest: sha256:98ff71d9656ecc1294937a13bff2ddc8e6f233d1c281875726dfc3f2c0301ce4 codeSamplesNamespace: code-samples-typescript - codeSamplesRevisionDigest: sha256:458ae2e9ac63ca967b22928d6af061281df33cc2d6ea70c848ab7b2991f25f71 + codeSamplesRevisionDigest: sha256:e3490b0ae3b56c06736e527f74adefce5ed564fd59c86b2d2bc06430af58c696 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 3a46afc5..3125f9f1 100644 --- a/README.md +++ b/README.md @@ -428,11 +428,11 @@ run(); Some methods specify known errors which can be thrown. All the known errors are enumerated in the `models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `trigger` method may throw the following errors: -| Error Type | Status Code | Content Type | -| ------------------------- | ------------------ | ---------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | -| errors.ValidationErrorDto | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ------------------------- | ----------------------- | ---------------- | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | +| errors.ValidationErrorDto | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | If the method throws an error and it is not captured by the known errors, it will default to throwing a `SDKError`. diff --git a/docs/models/components/messageresponsedto.md b/docs/models/components/messageresponsedto.md index 0fb6f733..c439dc1c 100644 --- a/docs/models/components/messageresponsedto.md +++ b/docs/models/components/messageresponsedto.md @@ -37,10 +37,10 @@ let value: MessageResponseDto = { organizationId: "", environmentId: "", deleted: false, - createdAt: "1710430561588", - updatedAt: "1736808968294", + createdAt: "1710431676466", + updatedAt: "1736810083172", }, - createdAt: "1709210971418", + createdAt: "1709212086297", content: "", transactionId: "", channel: "push", diff --git a/docs/models/components/subscriberresponsedto.md b/docs/models/components/subscriberresponsedto.md index fe3c21ca..476bdabc 100644 --- a/docs/models/components/subscriberresponsedto.md +++ b/docs/models/components/subscriberresponsedto.md @@ -30,8 +30,8 @@ let value: SubscriberResponseDto = { organizationId: "", environmentId: "", deleted: false, - createdAt: "1714454071562", - updatedAt: "1736809180346", + createdAt: "1714455186465", + updatedAt: "1736810295249", }; ``` diff --git a/docs/models/operations/subscriberscontrollercreatesubscriberresponse.md b/docs/models/operations/subscriberscontrollercreatesubscriberresponse.md index 829e28d4..5e717d0f 100644 --- a/docs/models/operations/subscriberscontrollercreatesubscriberresponse.md +++ b/docs/models/operations/subscriberscontrollercreatesubscriberresponse.md @@ -36,8 +36,8 @@ let value: SubscribersControllerCreateSubscriberResponse = { organizationId: "", environmentId: "", deleted: false, - createdAt: "1718382962644", - updatedAt: "1736778641459", + createdAt: "1718384077598", + updatedAt: "1736779756413", }, }; ``` diff --git a/docs/models/operations/subscriberscontrollergetsubscriberresponse.md b/docs/models/operations/subscriberscontrollergetsubscriberresponse.md index 7cfbca9a..74215e9e 100644 --- a/docs/models/operations/subscriberscontrollergetsubscriberresponse.md +++ b/docs/models/operations/subscriberscontrollergetsubscriberresponse.md @@ -36,8 +36,8 @@ let value: SubscribersControllerGetSubscriberResponse = { organizationId: "", environmentId: "", deleted: false, - createdAt: "1719691340545", - updatedAt: "1736804896249", + createdAt: "1719692455503", + updatedAt: "1736806011208", }, }; ``` diff --git a/docs/models/operations/subscriberscontrollerlistsubscribersresponse.md b/docs/models/operations/subscriberscontrollerlistsubscribersresponse.md index 4d83ec25..689a4f59 100644 --- a/docs/models/operations/subscriberscontrollerlistsubscribersresponse.md +++ b/docs/models/operations/subscriberscontrollerlistsubscribersresponse.md @@ -41,8 +41,8 @@ let value: SubscribersControllerListSubscribersResponse = { organizationId: "", environmentId: "", deleted: false, - createdAt: "1709826973241", - updatedAt: "1736837402563", + createdAt: "1709828088190", + updatedAt: "1736838517512", }, ], }, diff --git a/docs/models/operations/subscriberscontrollerlistsubscribersresponsebody.md b/docs/models/operations/subscriberscontrollerlistsubscribersresponsebody.md index 8ca2d535..dd54c654 100644 --- a/docs/models/operations/subscriberscontrollerlistsubscribersresponsebody.md +++ b/docs/models/operations/subscriberscontrollerlistsubscribersresponsebody.md @@ -35,8 +35,8 @@ let value: SubscribersControllerListSubscribersResponseBody = { organizationId: "", environmentId: "", deleted: false, - createdAt: "1730508447791", - updatedAt: "1736795655464", + createdAt: "1730509562740", + updatedAt: "1736796770413", }, ], }; diff --git a/docs/models/operations/subscriberscontrollermarkactionasseenresponse.md b/docs/models/operations/subscriberscontrollermarkactionasseenresponse.md index c0876d8b..c2c8eb51 100644 --- a/docs/models/operations/subscriberscontrollermarkactionasseenresponse.md +++ b/docs/models/operations/subscriberscontrollermarkactionasseenresponse.md @@ -43,10 +43,10 @@ let value: SubscribersControllerMarkActionAsSeenResponse = { organizationId: "", environmentId: "", deleted: false, - createdAt: "1708368369945", - updatedAt: "1736828181811", + createdAt: "1708369484900", + updatedAt: "1736829296766", }, - createdAt: "1708336743504", + createdAt: "1708337858459", content: "", transactionId: "", channel: "sms", diff --git a/docs/models/operations/subscriberscontrollermarkmessagesasresponse.md b/docs/models/operations/subscriberscontrollermarkmessagesasresponse.md index 565972d3..8066178f 100644 --- a/docs/models/operations/subscriberscontrollermarkmessagesasresponse.md +++ b/docs/models/operations/subscriberscontrollermarkmessagesasresponse.md @@ -44,10 +44,10 @@ let value: SubscribersControllerMarkMessagesAsResponse = { organizationId: "", environmentId: "", deleted: false, - createdAt: "1725902607694", - updatedAt: "1736777668336", + createdAt: "1725903722649", + updatedAt: "1736778783291", }, - createdAt: "1720011760261", + createdAt: "1720012875217", content: { type: "button", content: "", diff --git a/docs/models/operations/subscriberscontrollermodifysubscriberchannelresponse.md b/docs/models/operations/subscriberscontrollermodifysubscriberchannelresponse.md index 59a80503..863e52bf 100644 --- a/docs/models/operations/subscriberscontrollermodifysubscriberchannelresponse.md +++ b/docs/models/operations/subscriberscontrollermodifysubscriberchannelresponse.md @@ -36,8 +36,8 @@ let value: SubscribersControllerModifySubscriberChannelResponse = { organizationId: "", environmentId: "", deleted: false, - createdAt: "1707205454563", - updatedAt: "1736813392129", + createdAt: "1707206569520", + updatedAt: "1736814507085", }, }; ``` diff --git a/docs/models/operations/subscriberscontrollerupdatesubscriberchannelresponse.md b/docs/models/operations/subscriberscontrollerupdatesubscriberchannelresponse.md index 8a03a18b..e23b2193 100644 --- a/docs/models/operations/subscriberscontrollerupdatesubscriberchannelresponse.md +++ b/docs/models/operations/subscriberscontrollerupdatesubscriberchannelresponse.md @@ -36,8 +36,8 @@ let value: SubscribersControllerUpdateSubscriberChannelResponse = { organizationId: "", environmentId: "", deleted: false, - createdAt: "1726808068416", - updatedAt: "1736786845268", + createdAt: "1726809183373", + updatedAt: "1736787960225", }, }; ``` diff --git a/docs/models/operations/subscriberscontrollerupdatesubscriberonlineflagresponse.md b/docs/models/operations/subscriberscontrollerupdatesubscriberonlineflagresponse.md index a8338f51..8ce8faa9 100644 --- a/docs/models/operations/subscriberscontrollerupdatesubscriberonlineflagresponse.md +++ b/docs/models/operations/subscriberscontrollerupdatesubscriberonlineflagresponse.md @@ -36,8 +36,8 @@ let value: SubscribersControllerUpdateSubscriberOnlineFlagResponse = { organizationId: "", environmentId: "", deleted: false, - createdAt: "1711940808394", - updatedAt: "1736766923262", + createdAt: "1711941923351", + updatedAt: "1736768038219", }, }; ``` diff --git a/docs/models/operations/subscriberscontrollerupdatesubscriberresponse.md b/docs/models/operations/subscriberscontrollerupdatesubscriberresponse.md index 6b0480b9..487a5e31 100644 --- a/docs/models/operations/subscriberscontrollerupdatesubscriberresponse.md +++ b/docs/models/operations/subscriberscontrollerupdatesubscriberresponse.md @@ -36,8 +36,8 @@ let value: SubscribersControllerUpdateSubscriberResponse = { organizationId: "", environmentId: "", deleted: false, - createdAt: "1724783936548", - updatedAt: "1736808668588", + createdAt: "1724785051507", + updatedAt: "1736809783547", }, }; ``` diff --git a/docs/sdks/admin/README.md b/docs/sdks/admin/README.md index a93064b8..aef23af6 100644 --- a/docs/sdks/admin/README.md +++ b/docs/sdks/admin/README.md @@ -84,7 +84,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -156,6 +156,6 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/authentication/README.md b/docs/sdks/authentication/README.md index 94d235e5..f6c93289 100644 --- a/docs/sdks/authentication/README.md +++ b/docs/sdks/authentication/README.md @@ -90,7 +90,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -174,6 +174,6 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/credentials/README.md b/docs/sdks/credentials/README.md index b3e05ad7..0484a4e0 100644 --- a/docs/sdks/credentials/README.md +++ b/docs/sdks/credentials/README.md @@ -91,7 +91,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -178,7 +178,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -254,6 +254,6 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/integrations/README.md b/docs/sdks/integrations/README.md index d585f7c2..dbc8dcdc 100644 --- a/docs/sdks/integrations/README.md +++ b/docs/sdks/integrations/README.md @@ -85,7 +85,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -166,7 +166,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -240,7 +240,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -316,7 +316,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -391,7 +391,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -466,6 +466,6 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/messages/README.md b/docs/sdks/messages/README.md index a010c6a0..378637da 100644 --- a/docs/sdks/messages/README.md +++ b/docs/sdks/messages/README.md @@ -82,7 +82,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -157,7 +157,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -233,6 +233,6 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/notifications/README.md b/docs/sdks/notifications/README.md index 228389ff..5d2caae2 100644 --- a/docs/sdks/notifications/README.md +++ b/docs/sdks/notifications/README.md @@ -112,7 +112,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -187,6 +187,6 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/novu/README.md b/docs/sdks/novu/README.md index 32616e8b..869292fe 100644 --- a/docs/sdks/novu/README.md +++ b/docs/sdks/novu/README.md @@ -116,7 +116,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -262,7 +262,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -354,7 +354,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -432,7 +432,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | diff --git a/docs/sdks/novumessages/README.md b/docs/sdks/novumessages/README.md index bff6c0ff..57a0b90f 100644 --- a/docs/sdks/novumessages/README.md +++ b/docs/sdks/novumessages/README.md @@ -87,7 +87,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -167,7 +167,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -255,6 +255,6 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/novunotifications/README.md b/docs/sdks/novunotifications/README.md index 503f1b08..9316bce4 100644 --- a/docs/sdks/novunotifications/README.md +++ b/docs/sdks/novunotifications/README.md @@ -84,7 +84,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -166,6 +166,6 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/novusubscribers/README.md b/docs/sdks/novusubscribers/README.md index 4c02d894..6c6cd28c 100644 --- a/docs/sdks/novusubscribers/README.md +++ b/docs/sdks/novusubscribers/README.md @@ -93,7 +93,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -169,7 +169,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -255,6 +255,6 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/preferences/README.md b/docs/sdks/preferences/README.md index 15979767..9289b3dc 100644 --- a/docs/sdks/preferences/README.md +++ b/docs/sdks/preferences/README.md @@ -82,7 +82,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -158,7 +158,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -238,7 +238,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -320,6 +320,6 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/properties/README.md b/docs/sdks/properties/README.md index 451c0008..3d116be5 100644 --- a/docs/sdks/properties/README.md +++ b/docs/sdks/properties/README.md @@ -83,6 +83,6 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/stats/README.md b/docs/sdks/stats/README.md index ab08157a..507f3eb5 100644 --- a/docs/sdks/stats/README.md +++ b/docs/sdks/stats/README.md @@ -78,7 +78,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -153,6 +153,6 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/subscribers/README.md b/docs/sdks/subscribers/README.md index ee0f8ad6..c85c35bc 100644 --- a/docs/sdks/subscribers/README.md +++ b/docs/sdks/subscribers/README.md @@ -91,7 +91,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -170,7 +170,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -246,7 +246,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -356,7 +356,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -431,7 +431,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -523,6 +523,6 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/topics/README.md b/docs/sdks/topics/README.md index 90baebe1..adc17162 100644 --- a/docs/sdks/topics/README.md +++ b/docs/sdks/topics/README.md @@ -91,7 +91,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -173,7 +173,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -248,7 +248,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -323,7 +323,7 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | @@ -403,6 +403,6 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/webhooks/README.md b/docs/sdks/webhooks/README.md index 1b6fe1ca..40796f85 100644 --- a/docs/sdks/webhooks/README.md +++ b/docs/sdks/webhooks/README.md @@ -78,6 +78,6 @@ run(); | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| errors.ErrorDto | 400, 404, 409, 500 | application/json | +| errors.ErrorDto | 400, 401, 404, 409, 500 | application/json | | errors.ValidationErrorDto | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/jsr.json b/jsr.json index aa79a09b..080ac673 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@novu/api", - "version": "0.0.1-alpha.182", + "version": "0.0.1-alpha.183", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 0c14c8f7..263ff454 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@novu/api", - "version": "0.0.1-alpha.182", + "version": "0.0.1-alpha.183", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@novu/api", - "version": "0.0.1-alpha.182", + "version": "0.0.1-alpha.183", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", diff --git a/package.json b/package.json index 5afc0535..13c123c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@novu/api", - "version": "0.0.1-alpha.182", + "version": "0.0.1-alpha.183", "author": "Novu", "main": "./index.js", "sideEffects": false, diff --git a/sources/json-development.json b/sources/json-development.json index a3917381..1d3a58d5 100644 --- a/sources/json-development.json +++ b/sources/json-development.json @@ -99,6 +99,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -417,6 +450,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -765,6 +831,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -1078,6 +1177,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -1472,6 +1604,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -1772,6 +1937,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -2084,6 +2282,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -2391,6 +2622,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -2694,8 +2958,8 @@ } } }, - "404": { - "description": "Not Found", + "401": { + "description": "Unauthorized", "headers": { "Content-Type": { "$ref": "#/components/headers/Content-Type" @@ -2727,8 +2991,8 @@ } } }, - "409": { - "description": "Conflict", + "404": { + "description": "Not Found", "headers": { "Content-Type": { "$ref": "#/components/headers/Content-Type" @@ -2760,8 +3024,41 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "409": { + "description": "Conflict", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "422": { + "description": "Unprocessable Entity", "headers": { "Content-Type": { "$ref": "#/components/headers/Content-Type" @@ -3002,6 +3299,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -3306,6 +3636,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -3615,6 +3978,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -3932,6 +4328,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "The integration with the integrationId provided does not exist in the database.", "headers": { @@ -4233,6 +4662,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -4541,6 +5003,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "The integration with the integrationId provided does not exist in the database.", "headers": { @@ -4884,6 +5379,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -5154,13 +5682,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriberResponseDto" + "$ref": "#/components/schemas/SubscriberResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "headers": { "Content-Type": { "$ref": "#/components/headers/Content-Type" @@ -5509,6 +6070,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -5825,6 +6419,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -6131,6 +6758,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -6442,6 +7102,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -6761,6 +7454,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -7079,6 +7805,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -7389,6 +8148,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -7671,13 +8463,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriberResponseDto" + "$ref": "#/components/schemas/SubscriberResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "headers": { "Content-Type": { "$ref": "#/components/headers/Content-Type" @@ -8030,6 +8855,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -8347,6 +9205,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -8682,6 +9573,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -9007,6 +9931,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -9360,6 +10317,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -9689,6 +10679,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -10011,6 +11034,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -10288,17 +11344,50 @@ "$ref": "#/components/headers/Idempotency-Replay" } }, - "description": "", + "description": "", + "content": { + "application/json": { + "schema": { + "type": "number" + } + } + } + }, + "400": { + "description": "Bad Request", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, "content": { "application/json": { "schema": { - "type": "number" + "$ref": "#/components/schemas/ErrorDto" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "headers": { "Content-Type": { "$ref": "#/components/headers/Content-Type" @@ -10663,6 +11752,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -11054,6 +12176,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -11366,6 +12521,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -11711,6 +12899,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -12019,6 +13240,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -12337,6 +13591,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -12647,6 +13934,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -12937,17 +14257,50 @@ "$ref": "#/components/headers/Idempotency-Replay" } }, - "description": "", + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FilterTopicsResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FilterTopicsResponseDto" + "$ref": "#/components/schemas/ErrorDto" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "headers": { "Content-Type": { "$ref": "#/components/headers/Content-Type" @@ -13300,6 +14653,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -13619,6 +15005,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -13933,6 +15352,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -14235,6 +15687,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -14542,6 +16027,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -14860,6 +16378,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -15168,6 +16719,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { @@ -15464,6 +17048,39 @@ } } }, + "401": { + "description": "Unauthorized", + "headers": { + "Content-Type": { + "$ref": "#/components/headers/Content-Type" + }, + "RateLimit-Limit": { + "$ref": "#/components/headers/RateLimit-Limit" + }, + "RateLimit-Remaining": { + "$ref": "#/components/headers/RateLimit-Remaining" + }, + "RateLimit-Reset": { + "$ref": "#/components/headers/RateLimit-Reset" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + }, + "Idempotency-Key": { + "$ref": "#/components/headers/Idempotency-Key" + }, + "Idempotency-Replay": { + "$ref": "#/components/headers/Idempotency-Replay" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, "404": { "description": "Not Found", "headers": { diff --git a/src/funcs/adminTestingControllerIdempotency.ts b/src/funcs/adminTestingControllerIdempotency.ts index 2a8aa924..b1dcf074 100644 --- a/src/funcs/adminTestingControllerIdempotency.ts +++ b/src/funcs/adminTestingControllerIdempotency.ts @@ -119,7 +119,18 @@ export async function adminTestingControllerIdempotency( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -148,7 +159,7 @@ export async function adminTestingControllerIdempotency( hdrs: true, key: "Result", }), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/adminTestingControllerIdempotencyGet.ts b/src/funcs/adminTestingControllerIdempotencyGet.ts index d0b1051c..27687664 100644 --- a/src/funcs/adminTestingControllerIdempotencyGet.ts +++ b/src/funcs/adminTestingControllerIdempotencyGet.ts @@ -113,7 +113,18 @@ export async function adminTestingControllerIdempotencyGet( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -143,7 +154,7 @@ export async function adminTestingControllerIdempotencyGet( operations.TestingControllerIdempotencyGetResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/cancel.ts b/src/funcs/cancel.ts index 58441616..56e2cb05 100644 --- a/src/funcs/cancel.ts +++ b/src/funcs/cancel.ts @@ -128,7 +128,18 @@ export async function cancel( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -157,7 +168,7 @@ export async function cancel( hdrs: true, key: "Result", }), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/integrationsCreate.ts b/src/funcs/integrationsCreate.ts index cbaeabd9..8a9d07dd 100644 --- a/src/funcs/integrationsCreate.ts +++ b/src/funcs/integrationsCreate.ts @@ -124,7 +124,18 @@ export async function integrationsCreate( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -154,7 +165,7 @@ export async function integrationsCreate( operations.IntegrationsControllerCreateIntegrationResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/integrationsDelete.ts b/src/funcs/integrationsDelete.ts index e63182ad..b575df12 100644 --- a/src/funcs/integrationsDelete.ts +++ b/src/funcs/integrationsDelete.ts @@ -124,7 +124,18 @@ export async function integrationsDelete( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -154,7 +165,7 @@ export async function integrationsDelete( operations.IntegrationsControllerRemoveIntegrationResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/integrationsList.ts b/src/funcs/integrationsList.ts index ed344705..cebdff05 100644 --- a/src/funcs/integrationsList.ts +++ b/src/funcs/integrationsList.ts @@ -118,7 +118,18 @@ export async function integrationsList( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -148,7 +159,7 @@ export async function integrationsList( operations.IntegrationsControllerListIntegrationsResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/integrationsListActive.ts b/src/funcs/integrationsListActive.ts index fabc45e1..5e1bf2d0 100644 --- a/src/funcs/integrationsListActive.ts +++ b/src/funcs/integrationsListActive.ts @@ -119,7 +119,18 @@ export async function integrationsListActive( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -150,7 +161,7 @@ export async function integrationsListActive( .IntegrationsControllerGetActiveIntegrationsResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/integrationsSetAsPrimary.ts b/src/funcs/integrationsSetAsPrimary.ts index b47d4ba6..b5995163 100644 --- a/src/funcs/integrationsSetAsPrimary.ts +++ b/src/funcs/integrationsSetAsPrimary.ts @@ -128,7 +128,18 @@ export async function integrationsSetAsPrimary( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -159,7 +170,9 @@ export async function integrationsSetAsPrimary( .IntegrationsControllerSetIntegrationAsPrimaryResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true }), + M.jsonErr([400, 401, 409, 500], errors.ErrorDto$inboundSchema, { + hdrs: true, + }), M.fail([404, 429, 503]), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), M.fail(["4XX", "5XX"]), diff --git a/src/funcs/integrationsUpdate.ts b/src/funcs/integrationsUpdate.ts index 7bd79e0c..b4d0e76d 100644 --- a/src/funcs/integrationsUpdate.ts +++ b/src/funcs/integrationsUpdate.ts @@ -131,7 +131,18 @@ export async function integrationsUpdate( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -162,7 +173,9 @@ export async function integrationsUpdate( .IntegrationsControllerUpdateIntegrationByIdResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true }), + M.jsonErr([400, 401, 409, 500], errors.ErrorDto$inboundSchema, { + hdrs: true, + }), M.fail([404, 429, 503]), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), M.fail(["4XX", "5XX"]), diff --git a/src/funcs/integrationsWebhooksRetrieve.ts b/src/funcs/integrationsWebhooksRetrieve.ts index 2e66920c..9b8b0a0e 100644 --- a/src/funcs/integrationsWebhooksRetrieve.ts +++ b/src/funcs/integrationsWebhooksRetrieve.ts @@ -132,7 +132,18 @@ export async function integrationsWebhooksRetrieve( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -163,7 +174,7 @@ export async function integrationsWebhooksRetrieve( .IntegrationsControllerGetWebhookSupportStatusResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/messagesDelete.ts b/src/funcs/messagesDelete.ts index 13c11258..f78fade2 100644 --- a/src/funcs/messagesDelete.ts +++ b/src/funcs/messagesDelete.ts @@ -128,7 +128,18 @@ export async function messagesDelete( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -158,7 +169,7 @@ export async function messagesDelete( operations.MessagesControllerDeleteMessageResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/messagesDeleteByTransactionId.ts b/src/funcs/messagesDeleteByTransactionId.ts index 4251cd8e..cde4c7f2 100644 --- a/src/funcs/messagesDeleteByTransactionId.ts +++ b/src/funcs/messagesDeleteByTransactionId.ts @@ -139,7 +139,18 @@ export async function messagesDeleteByTransactionId( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -172,7 +183,7 @@ export async function messagesDeleteByTransactionId( .optional(), { hdrs: true }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/messagesRetrieve.ts b/src/funcs/messagesRetrieve.ts index 27836590..e8485bcc 100644 --- a/src/funcs/messagesRetrieve.ts +++ b/src/funcs/messagesRetrieve.ts @@ -124,7 +124,18 @@ export async function messagesRetrieve( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -154,7 +165,7 @@ export async function messagesRetrieve( operations.MessagesControllerGetMessagesResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/notificationsList.ts b/src/funcs/notificationsList.ts index 5a244187..b417e666 100644 --- a/src/funcs/notificationsList.ts +++ b/src/funcs/notificationsList.ts @@ -124,7 +124,18 @@ export async function notificationsList( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -154,7 +165,7 @@ export async function notificationsList( operations.NotificationsControllerListNotificationsResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/notificationsRetrieve.ts b/src/funcs/notificationsRetrieve.ts index 25cff3bf..6c4f7bef 100644 --- a/src/funcs/notificationsRetrieve.ts +++ b/src/funcs/notificationsRetrieve.ts @@ -124,7 +124,18 @@ export async function notificationsRetrieve( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -154,7 +165,7 @@ export async function notificationsRetrieve( operations.NotificationsControllerGetNotificationResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/notificationsStatsGraph.ts b/src/funcs/notificationsStatsGraph.ts index 5723f33e..f1136dc3 100644 --- a/src/funcs/notificationsStatsGraph.ts +++ b/src/funcs/notificationsStatsGraph.ts @@ -124,7 +124,18 @@ export async function notificationsStatsGraph( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -155,7 +166,7 @@ export async function notificationsStatsGraph( .NotificationsControllerGetActivityGraphStatsResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/notificationsStatsRetrieve.ts b/src/funcs/notificationsStatsRetrieve.ts index 5f55a950..1bfaf2ba 100644 --- a/src/funcs/notificationsStatsRetrieve.ts +++ b/src/funcs/notificationsStatsRetrieve.ts @@ -115,7 +115,18 @@ export async function notificationsStatsRetrieve( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -145,7 +156,7 @@ export async function notificationsStatsRetrieve( operations.NotificationsControllerGetActivityStatsResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersAuthenticationChatAccessOauth.ts b/src/funcs/subscribersAuthenticationChatAccessOauth.ts index e44b6a1c..a7489565 100644 --- a/src/funcs/subscribersAuthenticationChatAccessOauth.ts +++ b/src/funcs/subscribersAuthenticationChatAccessOauth.ts @@ -131,7 +131,18 @@ export async function subscribersAuthenticationChatAccessOauth( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -161,7 +172,7 @@ export async function subscribersAuthenticationChatAccessOauth( operations.SubscribersControllerChatAccessOauthResponse$inboundSchema .optional(), ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts b/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts index 2069bc41..abf607e0 100644 --- a/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +++ b/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts @@ -140,7 +140,18 @@ export async function subscribersAuthenticationChatAccessOauthCallBack( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -175,7 +186,7 @@ export async function subscribersAuthenticationChatAccessOauthCallBack( operations.SubscribersControllerChatOauthCallbackResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersCreate.ts b/src/funcs/subscribersCreate.ts index f9beaddf..1def1a56 100644 --- a/src/funcs/subscribersCreate.ts +++ b/src/funcs/subscribersCreate.ts @@ -124,7 +124,18 @@ export async function subscribersCreate( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -154,7 +165,7 @@ export async function subscribersCreate( operations.SubscribersControllerCreateSubscriberResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersCreateBulk.ts b/src/funcs/subscribersCreateBulk.ts index fc6113ac..fca41fab 100644 --- a/src/funcs/subscribersCreateBulk.ts +++ b/src/funcs/subscribersCreateBulk.ts @@ -128,7 +128,18 @@ export async function subscribersCreateBulk( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -159,7 +170,7 @@ export async function subscribersCreateBulk( .SubscribersControllerBulkCreateSubscribersResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersCredentialsAppend.ts b/src/funcs/subscribersCredentialsAppend.ts index 13b16890..bdd6450b 100644 --- a/src/funcs/subscribersCredentialsAppend.ts +++ b/src/funcs/subscribersCredentialsAppend.ts @@ -139,7 +139,18 @@ export async function subscribersCredentialsAppend( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -170,7 +181,7 @@ export async function subscribersCredentialsAppend( .SubscribersControllerModifySubscriberChannelResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersCredentialsDelete.ts b/src/funcs/subscribersCredentialsDelete.ts index 08c4e2e2..c3112b6e 100644 --- a/src/funcs/subscribersCredentialsDelete.ts +++ b/src/funcs/subscribersCredentialsDelete.ts @@ -138,7 +138,18 @@ export async function subscribersCredentialsDelete( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -171,7 +182,7 @@ export async function subscribersCredentialsDelete( .optional(), { hdrs: true }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersCredentialsUpdate.ts b/src/funcs/subscribersCredentialsUpdate.ts index 839ce4ea..2f35b060 100644 --- a/src/funcs/subscribersCredentialsUpdate.ts +++ b/src/funcs/subscribersCredentialsUpdate.ts @@ -138,7 +138,18 @@ export async function subscribersCredentialsUpdate( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -169,7 +180,7 @@ export async function subscribersCredentialsUpdate( .SubscribersControllerUpdateSubscriberChannelResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersDelete.ts b/src/funcs/subscribersDelete.ts index be6a73df..4274df97 100644 --- a/src/funcs/subscribersDelete.ts +++ b/src/funcs/subscribersDelete.ts @@ -127,7 +127,18 @@ export async function subscribersDelete( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -157,7 +168,7 @@ export async function subscribersDelete( operations.SubscribersControllerRemoveSubscriberResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersList.ts b/src/funcs/subscribersList.ts index d62a302c..0df9d8df 100644 --- a/src/funcs/subscribersList.ts +++ b/src/funcs/subscribersList.ts @@ -138,7 +138,18 @@ export async function subscribersList( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -168,7 +179,7 @@ export async function subscribersList( operations.SubscribersControllerListSubscribersResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersMessagesMarkAll.ts b/src/funcs/subscribersMessagesMarkAll.ts index 4177ecfb..3d55d963 100644 --- a/src/funcs/subscribersMessagesMarkAll.ts +++ b/src/funcs/subscribersMessagesMarkAll.ts @@ -132,7 +132,18 @@ export async function subscribersMessagesMarkAll( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -162,7 +173,7 @@ export async function subscribersMessagesMarkAll( operations.SubscribersControllerMarkAllUnreadAsReadResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersMessagesMarkAllAs.ts b/src/funcs/subscribersMessagesMarkAllAs.ts index 0e4408b8..5dfd4cf1 100644 --- a/src/funcs/subscribersMessagesMarkAllAs.ts +++ b/src/funcs/subscribersMessagesMarkAllAs.ts @@ -132,7 +132,18 @@ export async function subscribersMessagesMarkAllAs( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -162,7 +173,7 @@ export async function subscribersMessagesMarkAllAs( operations.SubscribersControllerMarkMessagesAsResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersMessagesUpdateAsSeen.ts b/src/funcs/subscribersMessagesUpdateAsSeen.ts index f6705422..ab277c3f 100644 --- a/src/funcs/subscribersMessagesUpdateAsSeen.ts +++ b/src/funcs/subscribersMessagesUpdateAsSeen.ts @@ -131,7 +131,18 @@ export async function subscribersMessagesUpdateAsSeen( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -161,7 +172,7 @@ export async function subscribersMessagesUpdateAsSeen( operations.SubscribersControllerMarkActionAsSeenResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersNotificationsFeed.ts b/src/funcs/subscribersNotificationsFeed.ts index 9a4bcf10..546e996a 100644 --- a/src/funcs/subscribersNotificationsFeed.ts +++ b/src/funcs/subscribersNotificationsFeed.ts @@ -129,7 +129,18 @@ export async function subscribersNotificationsFeed( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -160,7 +171,7 @@ export async function subscribersNotificationsFeed( .SubscribersControllerGetNotificationsFeedResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersNotificationsUnseenCount.ts b/src/funcs/subscribersNotificationsUnseenCount.ts index 6767d17c..bfff94a2 100644 --- a/src/funcs/subscribersNotificationsUnseenCount.ts +++ b/src/funcs/subscribersNotificationsUnseenCount.ts @@ -126,7 +126,18 @@ export async function subscribersNotificationsUnseenCount( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -156,7 +167,7 @@ export async function subscribersNotificationsUnseenCount( operations.SubscribersControllerGetUnseenCountResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersPreferencesList.ts b/src/funcs/subscribersPreferencesList.ts index e7999d10..5a8ace5c 100644 --- a/src/funcs/subscribersPreferencesList.ts +++ b/src/funcs/subscribersPreferencesList.ts @@ -135,7 +135,18 @@ export async function subscribersPreferencesList( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -166,7 +177,7 @@ export async function subscribersPreferencesList( .SubscribersControllerListSubscriberPreferencesResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersPreferencesRetrieveByLevel.ts b/src/funcs/subscribersPreferencesRetrieveByLevel.ts index cd39f29c..2a16167c 100644 --- a/src/funcs/subscribersPreferencesRetrieveByLevel.ts +++ b/src/funcs/subscribersPreferencesRetrieveByLevel.ts @@ -131,7 +131,18 @@ export async function subscribersPreferencesRetrieveByLevel( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -162,7 +173,7 @@ export async function subscribersPreferencesRetrieveByLevel( .SubscribersControllerGetSubscriberPreferenceByLevelResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersPreferencesUpdate.ts b/src/funcs/subscribersPreferencesUpdate.ts index e8c0c62a..3ecd79c8 100644 --- a/src/funcs/subscribersPreferencesUpdate.ts +++ b/src/funcs/subscribersPreferencesUpdate.ts @@ -130,7 +130,18 @@ export async function subscribersPreferencesUpdate( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -161,7 +172,7 @@ export async function subscribersPreferencesUpdate( .SubscribersControllerUpdateSubscriberPreferenceResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersPreferencesUpdateGlobal.ts b/src/funcs/subscribersPreferencesUpdateGlobal.ts index 03d5fc60..b04a3b6e 100644 --- a/src/funcs/subscribersPreferencesUpdateGlobal.ts +++ b/src/funcs/subscribersPreferencesUpdateGlobal.ts @@ -138,7 +138,18 @@ export async function subscribersPreferencesUpdateGlobal( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -169,7 +180,7 @@ export async function subscribersPreferencesUpdateGlobal( .SubscribersControllerUpdateSubscriberGlobalPreferencesResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts b/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts index 265f9dbc..ce45670b 100644 --- a/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +++ b/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts @@ -141,7 +141,18 @@ export async function subscribersPropertiesUpdateOnlineFlag( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -172,7 +183,7 @@ export async function subscribersPropertiesUpdateOnlineFlag( .SubscribersControllerUpdateSubscriberOnlineFlagResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersRetrieve.ts b/src/funcs/subscribersRetrieve.ts index 12d51296..735fda1c 100644 --- a/src/funcs/subscribersRetrieve.ts +++ b/src/funcs/subscribersRetrieve.ts @@ -135,7 +135,18 @@ export async function subscribersRetrieve( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -165,7 +176,7 @@ export async function subscribersRetrieve( operations.SubscribersControllerGetSubscriberResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/subscribersUpdate.ts b/src/funcs/subscribersUpdate.ts index ec361237..12e78877 100644 --- a/src/funcs/subscribersUpdate.ts +++ b/src/funcs/subscribersUpdate.ts @@ -133,7 +133,18 @@ export async function subscribersUpdate( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -163,7 +174,7 @@ export async function subscribersUpdate( operations.SubscribersControllerUpdateSubscriberResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/topicsCreate.ts b/src/funcs/topicsCreate.ts index 20c90147..4ba14d55 100644 --- a/src/funcs/topicsCreate.ts +++ b/src/funcs/topicsCreate.ts @@ -123,7 +123,18 @@ export async function topicsCreate( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -152,7 +163,7 @@ export async function topicsCreate( hdrs: true, key: "Result", }), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/topicsDelete.ts b/src/funcs/topicsDelete.ts index b61dcc17..7a25f214 100644 --- a/src/funcs/topicsDelete.ts +++ b/src/funcs/topicsDelete.ts @@ -126,7 +126,18 @@ export async function topicsDelete( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -156,7 +167,7 @@ export async function topicsDelete( operations.TopicsControllerDeleteTopicResponse$inboundSchema.optional(), { hdrs: true }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/topicsList.ts b/src/funcs/topicsList.ts index d6b99d42..fdb56108 100644 --- a/src/funcs/topicsList.ts +++ b/src/funcs/topicsList.ts @@ -120,7 +120,18 @@ export async function topicsList( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -149,7 +160,7 @@ export async function topicsList( hdrs: true, key: "Result", }), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/topicsRename.ts b/src/funcs/topicsRename.ts index c5d04d5b..11b9cb85 100644 --- a/src/funcs/topicsRename.ts +++ b/src/funcs/topicsRename.ts @@ -132,7 +132,18 @@ export async function topicsRename( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -161,7 +172,7 @@ export async function topicsRename( hdrs: true, key: "Result", }), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/topicsRetrieve.ts b/src/funcs/topicsRetrieve.ts index 8c0ba46e..2e9e43e3 100644 --- a/src/funcs/topicsRetrieve.ts +++ b/src/funcs/topicsRetrieve.ts @@ -126,7 +126,18 @@ export async function topicsRetrieve( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -155,7 +166,7 @@ export async function topicsRetrieve( hdrs: true, key: "Result", }), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/topicsSubscribersAssign.ts b/src/funcs/topicsSubscribersAssign.ts index 0cc439f0..e3186c62 100644 --- a/src/funcs/topicsSubscribersAssign.ts +++ b/src/funcs/topicsSubscribersAssign.ts @@ -132,7 +132,18 @@ export async function topicsSubscribersAssign( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -161,7 +172,7 @@ export async function topicsSubscribersAssign( hdrs: true, key: "Result", }), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/topicsSubscribersRemove.ts b/src/funcs/topicsSubscribersRemove.ts index d7db4f73..e324156c 100644 --- a/src/funcs/topicsSubscribersRemove.ts +++ b/src/funcs/topicsSubscribersRemove.ts @@ -136,7 +136,18 @@ export async function topicsSubscribersRemove( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -167,7 +178,7 @@ export async function topicsSubscribersRemove( .optional(), { hdrs: true }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/topicsSubscribersRetrieve.ts b/src/funcs/topicsSubscribersRetrieve.ts index 82fce720..76c1b4d5 100644 --- a/src/funcs/topicsSubscribersRetrieve.ts +++ b/src/funcs/topicsSubscribersRetrieve.ts @@ -137,7 +137,18 @@ export async function topicsSubscribersRetrieve( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -167,7 +178,7 @@ export async function topicsSubscribersRetrieve( operations.TopicsControllerGetTopicSubscriberResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/trigger.ts b/src/funcs/trigger.ts index b0295e3b..7d05be78 100644 --- a/src/funcs/trigger.ts +++ b/src/funcs/trigger.ts @@ -126,7 +126,18 @@ export async function trigger( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -155,7 +166,7 @@ export async function trigger( hdrs: true, key: "Result", }), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/triggerBroadcast.ts b/src/funcs/triggerBroadcast.ts index 0563db64..51e89cbe 100644 --- a/src/funcs/triggerBroadcast.ts +++ b/src/funcs/triggerBroadcast.ts @@ -125,7 +125,18 @@ export async function triggerBroadcast( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -155,7 +166,7 @@ export async function triggerBroadcast( operations.EventsControllerBroadcastEventToAllResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/funcs/triggerBulk.ts b/src/funcs/triggerBulk.ts index ad6e6008..2251987b 100644 --- a/src/funcs/triggerBulk.ts +++ b/src/funcs/triggerBulk.ts @@ -125,7 +125,18 @@ export async function triggerBulk( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"], + errorCodes: [ + "400", + "401", + "404", + "409", + "422", + "429", + "4XX", + "500", + "503", + "5XX", + ], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -154,7 +165,7 @@ export async function triggerBulk( hdrs: true, key: "Result", }), - M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, { + M.jsonErr([400, 401, 404, 409, 500], errors.ErrorDto$inboundSchema, { hdrs: true, }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), diff --git a/src/lib/config.ts b/src/lib/config.ts index e5ab586a..5db029d7 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -55,7 +55,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.0", - sdkVersion: "0.0.1-alpha.182", + sdkVersion: "0.0.1-alpha.183", genVersion: "2.493.11", - userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.182 2.493.11 1.0 @novu/api", + userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.183 2.493.11 1.0 @novu/api", } as const;