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 aebd220 commit 91c0e4d
Show file tree
Hide file tree
Showing 36 changed files with 107 additions and 245 deletions.
15 changes: 8 additions & 7 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: c0f0e713ad1165761bfae27a36588a76
docChecksum: d20bdd486bdfd73aef9fead711337d3e
docVersion: "1.0"
speakeasyVersion: 1.468.5
generationVersion: 2.493.11
releaseVersion: 0.0.1-alpha.187
configChecksum: 81438e5f1e68f5432ff71b84da90df14
releaseVersion: 0.0.1-alpha.190
configChecksum: 8858512d10fb48ede9b736811d8ccad4
published: true
features:
typescript:
Expand Down Expand Up @@ -313,7 +313,6 @@ generatedFiles:
- docs/models/operations/testingcontrolleridempotencygetresponse.md
- docs/models/operations/testingcontrolleridempotencyrequest.md
- docs/models/operations/testingcontrolleridempotencyresponse.md
- docs/models/operations/testingcontrolleridempotencyresponseresult.md
- docs/models/operations/topicscontrollerassignrequest.md
- docs/models/operations/topicscontrollerassignresponse.md
- docs/models/operations/topicscontrollercreatetopicrequest.md
Expand Down Expand Up @@ -350,8 +349,8 @@ generatedFiles:
- jsr.json
- package.json
- src/core.ts
- src/funcs/adminTestIdempotency.ts
- src/funcs/adminTestingControllerIdempotencyGet.ts
- src/funcs/adminIdempotencyGet.ts
- src/funcs/adminIdempotencyPost.ts
- src/funcs/cancel.ts
- src/funcs/integrationsCreate.ts
- src/funcs/integrationsDelete.ts
Expand Down Expand Up @@ -1504,7 +1503,7 @@ examples:
"200":
application/json: {}
"201":
application/json: {"number": 3977.26}
application/json: {"number": 3087.15}
TestingController_idempotencyGet:
speakeasy-default-testing-controller-idempotency-get:
responses:
Expand All @@ -1514,6 +1513,8 @@ examples:
application/json: {"statusCode": 404, "timestamp": "2024-12-12T13:00:00Z", "path": "/api/v1/resource", "message": "Resource not found.", "ctx": {"workflowId": "some_wf_id", "stepId": "some_wf_id"}, "errorId": "abc123", "errors": {"fieldName1": {"messages": ["Field is required", "Invalid format"], "value": "xx xx xx "}, "fieldName2": {"messages": ["Field is required", "Invalid format"], "value": "xx xx xx "}, "fieldName3": {"messages": ["Field is required", "Invalid format"], "value": "xx xx xx "}, "fieldName4": {"messages": ["Field is required", "Invalid format"], "value": "xx xx xx "}}}
"200":
application/json: {}
"201":
application/json: {"number": 8596.5}
generatedTests:
EventsController_trigger: "2024-12-24T08:36:06+01:00"
EventsController_triggerBulk: "2024-12-24T08:36:06+01:00"
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.187
version: 0.0.1-alpha.190
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:e437a4a8eed97b6e5a8d4a87462df44347d0e314bacd0cd05b3b30ad5247cb9e
sourceBlobDigest: sha256:c966e06543c05563cd87b4f9b6033b5c0c653aedb09f3e80e24d0e08cbde6773
sourceRevisionDigest: sha256:d2d26f4f38aad2f864bfeca92dadbbecd76ae4be8e62a2b7cad8f007928a8c21
sourceBlobDigest: sha256:3b3b31a84ca2cf667720127456386b248528b50b47b8cd84f6a3265b4dd2cef7
tags:
- latest
- "1.0"
targets:
my-first-target:
source: json-development
sourceNamespace: json-development
sourceRevisionDigest: sha256:e437a4a8eed97b6e5a8d4a87462df44347d0e314bacd0cd05b3b30ad5247cb9e
sourceBlobDigest: sha256:c966e06543c05563cd87b4f9b6033b5c0c653aedb09f3e80e24d0e08cbde6773
sourceRevisionDigest: sha256:d2d26f4f38aad2f864bfeca92dadbbecd76ae4be8e62a2b7cad8f007928a8c21
sourceBlobDigest: sha256:3b3b31a84ca2cf667720127456386b248528b50b47b8cd84f6a3265b4dd2cef7
codeSamplesNamespace: code-samples-typescript
codeSamplesRevisionDigest: sha256:22c38e5e1ff62e55fa50e4dd961c2343e16044422074330c5d03e1a24abad471
codeSamplesRevisionDigest: sha256:bd2b02bfed55239d2aa4ba80af1fd1432b99d1dd6b0be1cdd03cfa8ccd8ee6a8
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ run();

### [admin](docs/sdks/admin/README.md)

* [testIdempotency](docs/sdks/admin/README.md#testidempotency)
* [testingControllerIdempotencyGet](docs/sdks/admin/README.md#testingcontrolleridempotencyget)
* [idempotencyPost](docs/sdks/admin/README.md#idempotencypost)
* [idempotencyGet](docs/sdks/admin/README.md#idempotencyget)

### [integrations](docs/sdks/integrations/README.md)

Expand Down Expand Up @@ -334,8 +334,8 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).

<summary>Available standalone functions</summary>

- [`adminTestIdempotency`](docs/sdks/admin/README.md#testidempotency)
- [`adminTestingControllerIdempotencyGet`](docs/sdks/admin/README.md#testingcontrolleridempotencyget)
- [`adminIdempotencyGet`](docs/sdks/admin/README.md#idempotencyget)
- [`adminIdempotencyPost`](docs/sdks/admin/README.md#idempotencypost)
- [`cancel`](docs/sdks/novu/README.md#cancel) - Cancel triggered event
- [`integrationsCreate`](docs/sdks/integrations/README.md#create) - Create integration
- [`integrationsDelete`](docs/sdks/integrations/README.md#delete) - Delete integration
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: "1727536798184",
updatedAt: "1736774737160",
createdAt: "1727539031338",
updatedAt: "1736776970314",
},
createdAt: "1710516181064",
createdAt: "1710518414218",
content: "<value>",
transactionId: "<id>",
channel: "sms",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Status of the trigger
```typescript
import { Status } from "@novu/api/models/components";

let value: Status = "no_workflow_steps_defined";
let value: Status = "no_tenant_found";
```

## Values
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: "1732065172889",
updatedAt: "1736841737768",
createdAt: "1732067406038",
updatedAt: "1736843970917",
};
```

Expand Down
5 changes: 3 additions & 2 deletions docs/models/components/to.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ The recipients list of people who will receive the notification.
```typescript
const value: components.One[] = [
{
subscriberId: "<id>",
topicKey: "<value>",
type: "Topic",
},
];
```
Expand All @@ -34,7 +35,7 @@ const value: components.SubscriberPayloadDto = {
```typescript
const value: components.TopicPayloadDto = {
topicKey: "<value>",
type: "Topic",
type: "Subscriber",
};
```

5 changes: 4 additions & 1 deletion docs/models/components/triggereventrequestdto.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ let value: TriggerEventRequestDto = {
},
},
},
to: "SUBSCRIBER_ID",
to: {
topicKey: "<value>",
type: "Subscriber",
},
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/triggereventresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { TriggerEventResponseDto } from "@novu/api/models/components";

let value: TriggerEventResponseDto = {
acknowledged: false,
status: "no_workflow_steps_defined",
status: "trigger_not_active",
};
```

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: "1735084424399",
updatedAt: "1736830894530",
createdAt: "1735086657521",
updatedAt: "1736833127652",
},
};
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const value: components.SubscriberResponseDto = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1705914941063",
updatedAt: "1736825349025",
createdAt: "1705917174184",
updatedAt: "1736827582146",
};
```

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: "1719104625200",
updatedAt: "1736832260581",
createdAt: "1719106858323",
updatedAt: "1736834493703",
},
};
```
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: "1729738618787",
updatedAt: "1736811396864",
createdAt: "1729740851908",
updatedAt: "1736813629985",
},
],
},
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: "1709843175056",
updatedAt: "1736853604378",
createdAt: "1709845408177",
updatedAt: "1736855837499",
},
],
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ const value: components.MessageResponseDto = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1723485434140",
updatedAt: "1736852276295",
createdAt: "1723487667285",
updatedAt: "1736854509440",
},
createdAt: "1715368776198",
createdAt: "1715371009344",
content: "<value>",
transactionId: "<id>",
channel: "in_app",
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: "1706558212198",
updatedAt: "1736796420260",
createdAt: "1706560445343",
updatedAt: "1736798653405",
},
createdAt: "1709112904656",
createdAt: "1709115137800",
content: {
type: "button",
content: "<value>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ const value: components.MessageResponseDto[] = [
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1731213227688",
updatedAt: "1736780375465",
createdAt: "1731215460823",
updatedAt: "1736782608600",
},
createdAt: "1731747815778",
createdAt: "1731750048914",
content: {
type: "text",
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: "1708540471014",
updatedAt: "1736790032708",
createdAt: "1708542704148",
updatedAt: "1736792265842",
},
};
```
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: "1716792368469",
updatedAt: "1736821250391",
createdAt: "1716794601602",
updatedAt: "1736823483524",
},
};
```
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: "1725918809471",
updatedAt: "1736793870113",
createdAt: "1725921042607",
updatedAt: "1736796103249",
},
};
```
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: "1726349540419",
updatedAt: "1736829928388",
createdAt: "1726351773542",
updatedAt: "1736832161511",
},
};
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let value: TestingControllerIdempotencyGetResponse = {
],
},
result: {
number: 2487.53,
number: 7351.94,
},
};
```
Expand Down
10 changes: 5 additions & 5 deletions docs/models/operations/testingcontrolleridempotencyresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ let value: TestingControllerIdempotencyResponse = {
],
},
result: {
number: 9621.89,
number: 2700.08,
},
};
```

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
| `headers` | Record<string, *string*[]> | :heavy_check_mark: | N/A |
| `result` | *operations.TestingControllerIdempotencyResponseResult* | :heavy_check_mark: | N/A |
| Field | Type | Required | Description |
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| `headers` | Record<string, *string*[]> | :heavy_check_mark: | N/A |
| `result` | [components.IdempotencyResponse](../../models/components/idempotencyresponse.md) | :heavy_check_mark: | N/A |

This file was deleted.

Loading

0 comments on commit 91c0e4d

Please sign in to comment.