Skip to content

Commit

Permalink
add error dto to 500
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarco committed Jan 14, 2025
1 parent 4bab8f8 commit 0b84ddb
Show file tree
Hide file tree
Showing 86 changed files with 2,374 additions and 214 deletions.
6 changes: 3 additions & 3 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ 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"
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
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
6 changes: 3 additions & 3 deletions docs/models/components/messageresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ let value: MessageResponseDto = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1710430561588",
updatedAt: "1736808968294",
createdAt: "1710431676466",
updatedAt: "1736810083172",
},
createdAt: "1709210971418",
createdAt: "1709212086297",
content: "<value>",
transactionId: "<id>",
channel: "push",
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/subscriberresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ let value: SubscriberResponseDto = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1714454071562",
updatedAt: "1736809180346",
createdAt: "1714455186465",
updatedAt: "1736810295249",
};
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ let value: SubscribersControllerCreateSubscriberResponse = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1718382962644",
updatedAt: "1736778641459",
createdAt: "1718384077598",
updatedAt: "1736779756413",
},
};
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ let value: SubscribersControllerGetSubscriberResponse = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1719691340545",
updatedAt: "1736804896249",
createdAt: "1719692455503",
updatedAt: "1736806011208",
},
};
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ let value: SubscribersControllerListSubscribersResponse = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1709826973241",
updatedAt: "1736837402563",
createdAt: "1709828088190",
updatedAt: "1736838517512",
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ let value: SubscribersControllerListSubscribersResponseBody = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1730508447791",
updatedAt: "1736795655464",
createdAt: "1730509562740",
updatedAt: "1736796770413",
},
],
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ let value: SubscribersControllerMarkActionAsSeenResponse = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1708368369945",
updatedAt: "1736828181811",
createdAt: "1708369484900",
updatedAt: "1736829296766",
},
createdAt: "1708336743504",
createdAt: "1708337858459",
content: "<value>",
transactionId: "<id>",
channel: "sms",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ let value: SubscribersControllerMarkMessagesAsResponse = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1725902607694",
updatedAt: "1736777668336",
createdAt: "1725903722649",
updatedAt: "1736778783291",
},
createdAt: "1720011760261",
createdAt: "1720012875217",
content: {
type: "button",
content: "<value>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ let value: SubscribersControllerModifySubscriberChannelResponse = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1707205454563",
updatedAt: "1736813392129",
createdAt: "1707206569520",
updatedAt: "1736814507085",
},
};
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ let value: SubscribersControllerUpdateSubscriberChannelResponse = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1726808068416",
updatedAt: "1736786845268",
createdAt: "1726809183373",
updatedAt: "1736787960225",
},
};
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ let value: SubscribersControllerUpdateSubscriberOnlineFlagResponse = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1711940808394",
updatedAt: "1736766923262",
createdAt: "1711941923351",
updatedAt: "1736768038219",
},
};
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ let value: SubscribersControllerUpdateSubscriberResponse = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1724783936548",
updatedAt: "1736808668588",
createdAt: "1724785051507",
updatedAt: "1736809783547",
},
};
```
Expand Down
4 changes: 2 additions & 2 deletions docs/sdks/admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | \*/\* |

Expand Down Expand Up @@ -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 | \*/\* |
4 changes: 2 additions & 2 deletions docs/sdks/authentication/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | \*/\* |

Expand Down Expand Up @@ -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 | \*/\* |
6 changes: 3 additions & 3 deletions docs/sdks/credentials/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | \*/\* |

Expand Down Expand Up @@ -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 | \*/\* |

Expand Down Expand Up @@ -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 | \*/\* |
12 changes: 6 additions & 6 deletions docs/sdks/integrations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | \*/\* |

Expand Down Expand Up @@ -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 | \*/\* |

Expand Down Expand Up @@ -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 | \*/\* |

Expand Down Expand Up @@ -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 | \*/\* |

Expand Down Expand Up @@ -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 | \*/\* |

Expand Down Expand Up @@ -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 | \*/\* |
6 changes: 3 additions & 3 deletions docs/sdks/messages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | \*/\* |

Expand Down Expand Up @@ -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 | \*/\* |

Expand Down Expand Up @@ -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 | \*/\* |
4 changes: 2 additions & 2 deletions docs/sdks/notifications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | \*/\* |

Expand Down Expand Up @@ -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 | \*/\* |
Loading

0 comments on commit 0b84ddb

Please sign in to comment.