Skip to content

Commit

Permalink
change add error definition
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarco committed Dec 18, 2024
1 parent 6b0e678 commit 3a14f9f
Show file tree
Hide file tree
Showing 66 changed files with 195 additions and 95 deletions.
9 changes: 6 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: cbd260dfb2907bdac6973bda69afa657
docChecksum: 638752126a119d018ef8df6f0469c2d5
docVersion: "1.0"
speakeasyVersion: 1.456.0
generationVersion: 2.481.0
releaseVersion: 0.0.1-alpha.121
configChecksum: 416e6de072c3357ef9ee4f4a92dce874
releaseVersion: 0.0.1-alpha.126
configChecksum: 321610cbe190b4daaf2a167aaf872e83
published: true
features:
typescript:
Expand Down Expand Up @@ -236,6 +236,7 @@ generatedFiles:
- docs/models/operations/subscriberscontrollerchataccessoauthresponse.md
- docs/models/operations/subscriberscontrollerchatoauthcallbackrequest.md
- docs/models/operations/subscriberscontrollerchatoauthcallbackresponse.md
- docs/models/operations/subscriberscontrollerchatoauthcallbackresponseresult.md
- docs/models/operations/subscriberscontrollercreatesubscriberresponse.md
- docs/models/operations/subscriberscontrollerdeletesubscribercredentialsrequest.md
- docs/models/operations/subscriberscontrollerdeletesubscribercredentialsresponse.md
Expand Down Expand Up @@ -1047,6 +1048,8 @@ examples:
application/json: "{}"
"422":
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 "}}}
"302":
application/json: "<value>"
SubscribersController_chatAccessOauth:
speakeasy-default-subscribers-controller-chat-access-oauth:
parameters:
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.121
version: 0.0.1-alpha.126
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.456.0
sources:
json-development:
sourceNamespace: json-development
sourceRevisionDigest: sha256:9384d1892ec988fb399b3b9d7d21a8a0a648e915aa8a93e6c7316a0a8c543e47
sourceBlobDigest: sha256:b0504ca038973d0463abdadbd6ffd7179303299cebcd64867b3c30958a94f447
sourceRevisionDigest: sha256:d2461f9ae88ae296caaf15a81766e0dbd9c104d62cb696d5662f37fcbcbfba71
sourceBlobDigest: sha256:3f431ed8f87f961890f780119e9a75f57f720b9217d80bcac563bbdfef6a5719
tags:
- latest
- "1.0"
targets:
my-first-target:
source: json-development
sourceNamespace: json-development
sourceRevisionDigest: sha256:9384d1892ec988fb399b3b9d7d21a8a0a648e915aa8a93e6c7316a0a8c543e47
sourceBlobDigest: sha256:b0504ca038973d0463abdadbd6ffd7179303299cebcd64867b3c30958a94f447
sourceRevisionDigest: sha256:d2461f9ae88ae296caaf15a81766e0dbd9c104d62cb696d5662f37fcbcbfba71
sourceBlobDigest: sha256:3f431ed8f87f961890f780119e9a75f57f720b9217d80bcac563bbdfef6a5719
codeSamplesNamespace: code-samples-typescript
codeSamplesRevisionDigest: sha256:3012430733d38311b3ca573213dd801f5680bad168d168117dfc1e93211e69a0
codeSamplesRevisionDigest: sha256:30742994c9c6ed431f0862e1cadee78f62cd52bac3a8f687c6c2d6e595df7f4b
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/activitiesresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ let value: ActivitiesResponseDto = {
transactionId: "<id>",
},
],
pageSize: 2532.92,
page: 4663.11,
pageSize: 1103.75,
page: 6563.30,
};
```

Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/activitygraphstatesresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { ActivityGraphStatesResponse } from "@novu/api/models/components";

let value: ActivityGraphStatesResponse = {
id: "<id>",
count: 6048.46,
count: 1201.97,
templates: [
"<value>",
],
channels: [
"chat",
"email",
],
};
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { ActivityGraphStatesResponseChannels } from "@novu/api/models/components";

let value: ActivityGraphStatesResponseChannels = "push";
let value: ActivityGraphStatesResponseChannels = "email";
```

## Values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import { ActivityNotificationExecutionDetailResponseDto } from "@novu/api/models
let value: ActivityNotificationExecutionDetailResponseDto = {
id: "<id>",
jobId: "<id>",
status: "Queued",
status: "ReadConfirmation",
detail: "<value>",
isRetry: false,
isTest: false,
providerId: 971.01,
providerId: 4686.51,
source: "Webhook",
};
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Status of the execution detail
```typescript
import { ActivityNotificationExecutionDetailResponseDtoStatus } from "@novu/api/models/components";

let value: ActivityNotificationExecutionDetailResponseDtoStatus = "Warning";
let value: ActivityNotificationExecutionDetailResponseDtoStatus =
"ReadConfirmation";
```

## Values
Expand Down
8 changes: 4 additions & 4 deletions docs/models/components/activitynotificationjobresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ let value: ActivityNotificationJobResponseDto = {
{
id: "<id>",
jobId: "<id>",
status: "Success",
status: "Warning",
detail: "<value>",
isRetry: false,
isTest: false,
providerId: 1103.75,
source: "Payload",
providerId: 3687.25,
source: "Webhook",
},
],
step: {
id: "<id>",
active: false,
filters: {},
},
providerId: 1381.83,
providerId: 971.01,
status: "<value>",
};
```
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/activitystatsresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import { ActivityStatsResponseDto } from "@novu/api/models/components";

let value: ActivityStatsResponseDto = {
weeklySent: 9764.59,
monthlySent: 4686.51,
weeklySent: 7392.64,
monthlySent: 391.88,
};
```

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

let value: ActorFeedItemDto = {
data: null,
type: "system_icon",
type: "user",
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/actortypeenum.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The type of the actor, indicating the role in the notification process.
```typescript
import { ActorTypeEnum } from "@novu/api/models/components";

let value: ActorTypeEnum = "system_icon";
let value: ActorTypeEnum = "system_custom";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/backoffunit.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { BackoffUnit } from "@novu/api/models/components";

let value: BackoffUnit = "seconds";
let value: BackoffUnit = "minutes";
```

## Values
Expand Down
8 changes: 5 additions & 3 deletions docs/models/components/bulktriggereventdto.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ let value: BulkTriggerEventDto = {
},
},
},
to: {
subscriberId: "<id>",
},
to: [
{
subscriberId: "<id>",
},
],
},
],
};
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/channelcredentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { ChannelCredentials } from "@novu/api/models/components";

let value: ChannelCredentials = {
webhookUrl: "https://moist-bourgeoisie.name/",
webhookUrl: "https://glass-pigpen.com",
};
```

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

let value: ChannelPreference = {
type: "in_app",
type: "email",
enabled: false,
};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/channelpreferencetype.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The type of channel that is enabled or not
```typescript
import { ChannelPreferenceType } from "@novu/api/models/components";

let value: ChannelPreferenceType = "sms";
let value: ChannelPreferenceType = "chat";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/channels.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Channels of the notification
```typescript
import { Channels } from "@novu/api/models/components";

let value: Channels = "sms";
let value: Channels = "email";
```

## Values
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/channelsettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import { ChannelSettings } from "@novu/api/models/components";

let value: ChannelSettings = {
providerId: "zulip",
providerId: "whatsapp-business",
credentials: {
webhookUrl: "https://better-poppy.name/",
webhookUrl: "https://moist-bourgeoisie.name/",
},
integrationId: "<id>",
};
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/channelsettingsproviderid.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The provider identifier for the credentials
```typescript
import { ChannelSettingsProviderId } from "@novu/api/models/components";

let value: ChannelSettingsProviderId = "msteams";
let value: ChannelSettingsProviderId = "apns";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/channeltypeenum.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The channel through which the notification is sent.
```typescript
import { ChannelTypeEnum } from "@novu/api/models/components";

let value: ChannelTypeEnum = "in_app";
let value: ChannelTypeEnum = "chat";
```

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

let value: CreateIntegrationRequestDto = {
providerId: "<id>",
channel: "email",
channel: "in_app",
};
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The channel type for the integration
```typescript
import { CreateIntegrationRequestDtoChannel } from "@novu/api/models/components";

let value: CreateIntegrationRequestDtoChannel = "in_app";
let value: CreateIntegrationRequestDtoChannel = "sms";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/createsubscriberrequestdtodata.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ const value: boolean = false;
### `number`

```typescript
const value: number = 9292.96;
const value: number = 7163.27;
```

2 changes: 1 addition & 1 deletion docs/models/components/data.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ const value: boolean = false;
### `number`

```typescript
const value: number = 4386.02;
const value: number = 2088.77;
```

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

let value: DelayRegularMetadataUnit = "weeks";
let value: DelayRegularMetadataUnit = "minutes";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/digesttimedmetadataunit.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { DigestTimedMetadataUnit } from "@novu/api/models/components";

let value: DigestTimedMetadataUnit = "seconds";
let value: DigestTimedMetadataUnit = "minutes";
```

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

let value: EmailBlockStyles = {
textAlign: "left",
textAlign: "center",
};
```

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

let value: EmailBlockType = "text";
let value: EmailBlockType = "button";
```

## Values
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/feedresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ let value: FeedResponseDto = {
updatedAt: new Date("2024-12-10T10:10:59.639Z"),
actor: {
data: null,
type: "system_custom",
type: "system_icon",
},
transactionId: "transaction_123456",
templateIdentifier: "template_abcdef",
providerId: "provider_xyz",
content: "This is a test notification content.",
subject: "Test Notification Subject",
channel: "in_app",
channel: "push",
read: false,
seen: true,
deleted: false,
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/markallmessageasrequestdto.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { MarkAllMessageAsRequestDto } from "@novu/api/models/components";

let value: MarkAllMessageAsRequestDto = {
markAs: "seen",
markAs: "unread",
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/markallmessageasrequestdtomarkas.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Mark all subscriber messages as read, unread, seen or unseen
```typescript
import { MarkAllMessageAsRequestDtoMarkAs } from "@novu/api/models/components";

let value: MarkAllMessageAsRequestDtoMarkAs = "unread";
let value: MarkAllMessageAsRequestDtoMarkAs = "unseen";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/markas.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { MarkAs } from "@novu/api/models/components";

let value: MarkAs = "unseen";
let value: MarkAs = "seen";
```

## Values
Expand Down
6 changes: 4 additions & 2 deletions docs/models/components/messagemarkasrequestdto.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
import { MessageMarkAsRequestDto } from "@novu/api/models/components";

let value: MessageMarkAsRequestDto = {
messageId: "<id>",
markAs: "unseen",
messageId: [
"<id>",
],
markAs: "seen",
};
```

Expand Down
Loading

0 comments on commit 3a14f9f

Please sign in to comment.