diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index bc3f41da..09b55321 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: 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: @@ -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 @@ -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: "" SubscribersController_chatAccessOauth: speakeasy-default-subscribers-controller-chat-access-oauth: parameters: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 435aefe3..02bf4c67 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -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: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 63ec089c..89343ab5 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ 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" @@ -11,10 +11,10 @@ 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 diff --git a/docs/models/components/activitiesresponsedto.md b/docs/models/components/activitiesresponsedto.md index 9d6fe781..736dbda2 100644 --- a/docs/models/components/activitiesresponsedto.md +++ b/docs/models/components/activitiesresponsedto.md @@ -14,8 +14,8 @@ let value: ActivitiesResponseDto = { transactionId: "", }, ], - pageSize: 2532.92, - page: 4663.11, + pageSize: 1103.75, + page: 6563.30, }; ``` diff --git a/docs/models/components/activitygraphstatesresponse.md b/docs/models/components/activitygraphstatesresponse.md index 400757c9..1f115618 100644 --- a/docs/models/components/activitygraphstatesresponse.md +++ b/docs/models/components/activitygraphstatesresponse.md @@ -7,12 +7,12 @@ import { ActivityGraphStatesResponse } from "@novu/api/models/components"; let value: ActivityGraphStatesResponse = { id: "", - count: 6048.46, + count: 1201.97, templates: [ "", ], channels: [ - "chat", + "email", ], }; ``` diff --git a/docs/models/components/activitygraphstatesresponsechannels.md b/docs/models/components/activitygraphstatesresponsechannels.md index 1b36c511..3ce2d26f 100644 --- a/docs/models/components/activitygraphstatesresponsechannels.md +++ b/docs/models/components/activitygraphstatesresponsechannels.md @@ -5,7 +5,7 @@ ```typescript import { ActivityGraphStatesResponseChannels } from "@novu/api/models/components"; -let value: ActivityGraphStatesResponseChannels = "push"; +let value: ActivityGraphStatesResponseChannels = "email"; ``` ## Values diff --git a/docs/models/components/activitynotificationexecutiondetailresponsedto.md b/docs/models/components/activitynotificationexecutiondetailresponsedto.md index d2e30664..327ddf67 100644 --- a/docs/models/components/activitynotificationexecutiondetailresponsedto.md +++ b/docs/models/components/activitynotificationexecutiondetailresponsedto.md @@ -8,11 +8,11 @@ import { ActivityNotificationExecutionDetailResponseDto } from "@novu/api/models let value: ActivityNotificationExecutionDetailResponseDto = { id: "", jobId: "", - status: "Queued", + status: "ReadConfirmation", detail: "", isRetry: false, isTest: false, - providerId: 971.01, + providerId: 4686.51, source: "Webhook", }; ``` diff --git a/docs/models/components/activitynotificationexecutiondetailresponsedtostatus.md b/docs/models/components/activitynotificationexecutiondetailresponsedtostatus.md index 2502e69e..29e8f6a8 100644 --- a/docs/models/components/activitynotificationexecutiondetailresponsedtostatus.md +++ b/docs/models/components/activitynotificationexecutiondetailresponsedtostatus.md @@ -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 diff --git a/docs/models/components/activitynotificationjobresponsedto.md b/docs/models/components/activitynotificationjobresponsedto.md index dc174d63..dd3af208 100644 --- a/docs/models/components/activitynotificationjobresponsedto.md +++ b/docs/models/components/activitynotificationjobresponsedto.md @@ -12,12 +12,12 @@ let value: ActivityNotificationJobResponseDto = { { id: "", jobId: "", - status: "Success", + status: "Warning", detail: "", isRetry: false, isTest: false, - providerId: 1103.75, - source: "Payload", + providerId: 3687.25, + source: "Webhook", }, ], step: { @@ -25,7 +25,7 @@ let value: ActivityNotificationJobResponseDto = { active: false, filters: {}, }, - providerId: 1381.83, + providerId: 971.01, status: "", }; ``` diff --git a/docs/models/components/activitystatsresponsedto.md b/docs/models/components/activitystatsresponsedto.md index bc811b99..0f104ae0 100644 --- a/docs/models/components/activitystatsresponsedto.md +++ b/docs/models/components/activitystatsresponsedto.md @@ -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, }; ``` diff --git a/docs/models/components/actorfeeditemdto.md b/docs/models/components/actorfeeditemdto.md index 639d44a9..ddc1d3dd 100644 --- a/docs/models/components/actorfeeditemdto.md +++ b/docs/models/components/actorfeeditemdto.md @@ -7,7 +7,7 @@ import { ActorFeedItemDto } from "@novu/api/models/components"; let value: ActorFeedItemDto = { data: null, - type: "system_icon", + type: "user", }; ``` diff --git a/docs/models/components/actortypeenum.md b/docs/models/components/actortypeenum.md index 205981c7..b391da0d 100644 --- a/docs/models/components/actortypeenum.md +++ b/docs/models/components/actortypeenum.md @@ -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 diff --git a/docs/models/components/backoffunit.md b/docs/models/components/backoffunit.md index 5f168f5e..93a46f30 100644 --- a/docs/models/components/backoffunit.md +++ b/docs/models/components/backoffunit.md @@ -5,7 +5,7 @@ ```typescript import { BackoffUnit } from "@novu/api/models/components"; -let value: BackoffUnit = "seconds"; +let value: BackoffUnit = "minutes"; ``` ## Values diff --git a/docs/models/components/bulktriggereventdto.md b/docs/models/components/bulktriggereventdto.md index cf497d08..06e5ce8f 100644 --- a/docs/models/components/bulktriggereventdto.md +++ b/docs/models/components/bulktriggereventdto.md @@ -23,9 +23,11 @@ let value: BulkTriggerEventDto = { }, }, }, - to: { - subscriberId: "", - }, + to: [ + { + subscriberId: "", + }, + ], }, ], }; diff --git a/docs/models/components/channelcredentials.md b/docs/models/components/channelcredentials.md index 989ed9b1..02318345 100644 --- a/docs/models/components/channelcredentials.md +++ b/docs/models/components/channelcredentials.md @@ -6,7 +6,7 @@ import { ChannelCredentials } from "@novu/api/models/components"; let value: ChannelCredentials = { - webhookUrl: "https://moist-bourgeoisie.name/", + webhookUrl: "https://glass-pigpen.com", }; ``` diff --git a/docs/models/components/channelpreference.md b/docs/models/components/channelpreference.md index 6919fc64..b9f39030 100644 --- a/docs/models/components/channelpreference.md +++ b/docs/models/components/channelpreference.md @@ -6,7 +6,7 @@ import { ChannelPreference } from "@novu/api/models/components"; let value: ChannelPreference = { - type: "in_app", + type: "email", enabled: false, }; ``` diff --git a/docs/models/components/channelpreferencetype.md b/docs/models/components/channelpreferencetype.md index 3fe32c71..ac1a01b6 100644 --- a/docs/models/components/channelpreferencetype.md +++ b/docs/models/components/channelpreferencetype.md @@ -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 diff --git a/docs/models/components/channels.md b/docs/models/components/channels.md index cad09d2e..097bcc42 100644 --- a/docs/models/components/channels.md +++ b/docs/models/components/channels.md @@ -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 diff --git a/docs/models/components/channelsettings.md b/docs/models/components/channelsettings.md index 6ec123c2..02279500 100644 --- a/docs/models/components/channelsettings.md +++ b/docs/models/components/channelsettings.md @@ -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: "", }; diff --git a/docs/models/components/channelsettingsproviderid.md b/docs/models/components/channelsettingsproviderid.md index 9ddfa7f7..1cc149e6 100644 --- a/docs/models/components/channelsettingsproviderid.md +++ b/docs/models/components/channelsettingsproviderid.md @@ -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 diff --git a/docs/models/components/channeltypeenum.md b/docs/models/components/channeltypeenum.md index af1e6d1e..fa8ab8c0 100644 --- a/docs/models/components/channeltypeenum.md +++ b/docs/models/components/channeltypeenum.md @@ -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 diff --git a/docs/models/components/createintegrationrequestdto.md b/docs/models/components/createintegrationrequestdto.md index 99de5171..3f827040 100644 --- a/docs/models/components/createintegrationrequestdto.md +++ b/docs/models/components/createintegrationrequestdto.md @@ -7,7 +7,7 @@ import { CreateIntegrationRequestDto } from "@novu/api/models/components"; let value: CreateIntegrationRequestDto = { providerId: "", - channel: "email", + channel: "in_app", }; ``` diff --git a/docs/models/components/createintegrationrequestdtochannel.md b/docs/models/components/createintegrationrequestdtochannel.md index 939fa732..6feb4600 100644 --- a/docs/models/components/createintegrationrequestdtochannel.md +++ b/docs/models/components/createintegrationrequestdtochannel.md @@ -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 diff --git a/docs/models/components/createsubscriberrequestdtodata.md b/docs/models/components/createsubscriberrequestdtodata.md index 855fb969..88a53d43 100644 --- a/docs/models/components/createsubscriberrequestdtodata.md +++ b/docs/models/components/createsubscriberrequestdtodata.md @@ -26,6 +26,6 @@ const value: boolean = false; ### `number` ```typescript -const value: number = 9292.96; +const value: number = 7163.27; ``` diff --git a/docs/models/components/data.md b/docs/models/components/data.md index 0691323f..a1490895 100644 --- a/docs/models/components/data.md +++ b/docs/models/components/data.md @@ -26,6 +26,6 @@ const value: boolean = false; ### `number` ```typescript -const value: number = 4386.02; +const value: number = 2088.77; ``` diff --git a/docs/models/components/delayregularmetadataunit.md b/docs/models/components/delayregularmetadataunit.md index 1dfc9d0c..8e7bc010 100644 --- a/docs/models/components/delayregularmetadataunit.md +++ b/docs/models/components/delayregularmetadataunit.md @@ -5,7 +5,7 @@ ```typescript import { DelayRegularMetadataUnit } from "@novu/api/models/components"; -let value: DelayRegularMetadataUnit = "weeks"; +let value: DelayRegularMetadataUnit = "minutes"; ``` ## Values diff --git a/docs/models/components/digesttimedmetadataunit.md b/docs/models/components/digesttimedmetadataunit.md index c4b76c9b..723eeed7 100644 --- a/docs/models/components/digesttimedmetadataunit.md +++ b/docs/models/components/digesttimedmetadataunit.md @@ -5,7 +5,7 @@ ```typescript import { DigestTimedMetadataUnit } from "@novu/api/models/components"; -let value: DigestTimedMetadataUnit = "seconds"; +let value: DigestTimedMetadataUnit = "minutes"; ``` ## Values diff --git a/docs/models/components/emailblockstyles.md b/docs/models/components/emailblockstyles.md index 265e7a28..8ddbd4e2 100644 --- a/docs/models/components/emailblockstyles.md +++ b/docs/models/components/emailblockstyles.md @@ -6,7 +6,7 @@ import { EmailBlockStyles } from "@novu/api/models/components"; let value: EmailBlockStyles = { - textAlign: "left", + textAlign: "center", }; ``` diff --git a/docs/models/components/emailblocktype.md b/docs/models/components/emailblocktype.md index 63e25e19..92ba8c90 100644 --- a/docs/models/components/emailblocktype.md +++ b/docs/models/components/emailblocktype.md @@ -5,7 +5,7 @@ ```typescript import { EmailBlockType } from "@novu/api/models/components"; -let value: EmailBlockType = "text"; +let value: EmailBlockType = "button"; ``` ## Values diff --git a/docs/models/components/feedresponsedto.md b/docs/models/components/feedresponsedto.md index 394ccda8..6c6a5c69 100644 --- a/docs/models/components/feedresponsedto.md +++ b/docs/models/components/feedresponsedto.md @@ -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, diff --git a/docs/models/components/markallmessageasrequestdto.md b/docs/models/components/markallmessageasrequestdto.md index f5bb78ee..c4b5ef09 100644 --- a/docs/models/components/markallmessageasrequestdto.md +++ b/docs/models/components/markallmessageasrequestdto.md @@ -6,7 +6,7 @@ import { MarkAllMessageAsRequestDto } from "@novu/api/models/components"; let value: MarkAllMessageAsRequestDto = { - markAs: "seen", + markAs: "unread", }; ``` diff --git a/docs/models/components/markallmessageasrequestdtomarkas.md b/docs/models/components/markallmessageasrequestdtomarkas.md index 815bb15d..e6c8a0f7 100644 --- a/docs/models/components/markallmessageasrequestdtomarkas.md +++ b/docs/models/components/markallmessageasrequestdtomarkas.md @@ -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 diff --git a/docs/models/components/markas.md b/docs/models/components/markas.md index 45c389ae..63197c56 100644 --- a/docs/models/components/markas.md +++ b/docs/models/components/markas.md @@ -5,7 +5,7 @@ ```typescript import { MarkAs } from "@novu/api/models/components"; -let value: MarkAs = "unseen"; +let value: MarkAs = "seen"; ``` ## Values diff --git a/docs/models/components/messagemarkasrequestdto.md b/docs/models/components/messagemarkasrequestdto.md index 33bcd0bd..b1d1c037 100644 --- a/docs/models/components/messagemarkasrequestdto.md +++ b/docs/models/components/messagemarkasrequestdto.md @@ -6,8 +6,10 @@ import { MessageMarkAsRequestDto } from "@novu/api/models/components"; let value: MessageMarkAsRequestDto = { - messageId: "", - markAs: "unseen", + messageId: [ + "", + ], + markAs: "seen", }; ``` diff --git a/docs/models/components/messageresponsedto.md b/docs/models/components/messageresponsedto.md index 7ff03c6c..8bfb4b3b 100644 --- a/docs/models/components/messageresponsedto.md +++ b/docs/models/components/messageresponsedto.md @@ -21,7 +21,7 @@ let value: MessageResponseDto = { cta: { data: {}, }, - status: "warning", + status: "error", errorId: "", errorText: "", payload: {}, diff --git a/docs/models/components/messageresponsedtochannel.md b/docs/models/components/messageresponsedtochannel.md index e97e4a3f..3deaf700 100644 --- a/docs/models/components/messageresponsedtochannel.md +++ b/docs/models/components/messageresponsedtochannel.md @@ -5,7 +5,7 @@ ```typescript import { MessageResponseDtoChannel } from "@novu/api/models/components"; -let value: MessageResponseDtoChannel = "email"; +let value: MessageResponseDtoChannel = "chat"; ``` ## Values diff --git a/docs/models/components/metadata.md b/docs/models/components/metadata.md index 7f7ab834..d4991d52 100644 --- a/docs/models/components/metadata.md +++ b/docs/models/components/metadata.md @@ -7,7 +7,7 @@ ```typescript const value: components.DigestRegularMetadata = { - type: "regular", + type: "backoff", }; ``` diff --git a/docs/models/components/monthlytype.md b/docs/models/components/monthlytype.md index 8b6ac551..3113ba7f 100644 --- a/docs/models/components/monthlytype.md +++ b/docs/models/components/monthlytype.md @@ -5,7 +5,7 @@ ```typescript import { MonthlyType } from "@novu/api/models/components"; -let value: MonthlyType = "on"; +let value: MonthlyType = "each"; ``` ## Values diff --git a/docs/models/components/notificationfeeditemdto.md b/docs/models/components/notificationfeeditemdto.md index 06aea6a8..8e8a6692 100644 --- a/docs/models/components/notificationfeeditemdto.md +++ b/docs/models/components/notificationfeeditemdto.md @@ -19,14 +19,14 @@ let value: NotificationFeedItemDto = { updatedAt: new Date("2024-12-10T10:10:59.639Z"), actor: { data: null, - type: "system_icon", + type: "none", }, transactionId: "transaction_123456", templateIdentifier: "template_abcdef", providerId: "provider_xyz", content: "This is a test notification content.", subject: "Test Notification Subject", - channel: "email", + channel: "sms", read: false, seen: true, deleted: false, diff --git a/docs/models/components/ordinal.md b/docs/models/components/ordinal.md index d30ab30d..c1c4601c 100644 --- a/docs/models/components/ordinal.md +++ b/docs/models/components/ordinal.md @@ -5,7 +5,7 @@ ```typescript import { Ordinal } from "@novu/api/models/components"; -let value: Ordinal = "2"; +let value: Ordinal = "last"; ``` ## Values diff --git a/docs/models/components/ordinalvalue.md b/docs/models/components/ordinalvalue.md index d5d9e788..7c5442e2 100644 --- a/docs/models/components/ordinalvalue.md +++ b/docs/models/components/ordinalvalue.md @@ -5,7 +5,7 @@ ```typescript import { OrdinalValue } from "@novu/api/models/components"; -let value: OrdinalValue = "sunday"; +let value: OrdinalValue = "thursday"; ``` ## Values diff --git a/docs/models/components/providerid.md b/docs/models/components/providerid.md index 9dde09fc..d5bb9bc1 100644 --- a/docs/models/components/providerid.md +++ b/docs/models/components/providerid.md @@ -7,7 +7,7 @@ The ID of the chat or push provider. ```typescript import { ProviderId } from "@novu/api/models/components"; -let value: ProviderId = "pusher-beams"; +let value: ProviderId = "msteams"; ``` ## Values diff --git a/docs/models/components/source.md b/docs/models/components/source.md index 52d22e3c..25bb52e2 100644 --- a/docs/models/components/source.md +++ b/docs/models/components/source.md @@ -7,7 +7,7 @@ Source of the execution detail ```typescript import { Source } from "@novu/api/models/components"; -let value: Source = "Internal"; +let value: Source = "Credentials"; ``` ## Values diff --git a/docs/models/components/status.md b/docs/models/components/status.md index b838cccb..e17204d8 100644 --- a/docs/models/components/status.md +++ b/docs/models/components/status.md @@ -7,7 +7,7 @@ Status of the trigger ```typescript import { Status } from "@novu/api/models/components"; -let value: Status = "processed"; +let value: Status = "trigger_not_active"; ``` ## Values diff --git a/docs/models/components/subscriberchanneldto.md b/docs/models/components/subscriberchanneldto.md index e75e432e..7d9ae067 100644 --- a/docs/models/components/subscriberchanneldto.md +++ b/docs/models/components/subscriberchanneldto.md @@ -6,7 +6,7 @@ import { SubscriberChannelDto } from "@novu/api/models/components"; let value: SubscriberChannelDto = { - providerId: "discord", + providerId: "apns", credentials: {}, }; ``` diff --git a/docs/models/components/textalign.md b/docs/models/components/textalign.md index c973d467..aa50769d 100644 --- a/docs/models/components/textalign.md +++ b/docs/models/components/textalign.md @@ -5,7 +5,7 @@ ```typescript import { TextAlign } from "@novu/api/models/components"; -let value: TextAlign = "right"; +let value: TextAlign = "center"; ``` ## Values diff --git a/docs/models/components/to.md b/docs/models/components/to.md index dc45742d..b672f746 100644 --- a/docs/models/components/to.md +++ b/docs/models/components/to.md @@ -10,7 +10,8 @@ The recipients list of people who will receive the notification. ```typescript const value: components.One[] = [ { - subscriberId: "", + topicKey: "", + type: "Topic", }, ]; ``` diff --git a/docs/models/components/triggereventrequestdto.md b/docs/models/components/triggereventrequestdto.md index 35aae250..9f2ef6df 100644 --- a/docs/models/components/triggereventrequestdto.md +++ b/docs/models/components/triggereventrequestdto.md @@ -22,7 +22,8 @@ let value: TriggerEventRequestDto = { }, }, to: { - subscriberId: "", + topicKey: "", + type: "Subscriber", }, }; ``` diff --git a/docs/models/components/triggereventresponsedto.md b/docs/models/components/triggereventresponsedto.md index 12d1942f..e9cf199f 100644 --- a/docs/models/components/triggereventresponsedto.md +++ b/docs/models/components/triggereventresponsedto.md @@ -7,7 +7,7 @@ import { TriggerEventResponseDto } from "@novu/api/models/components"; let value: TriggerEventResponseDto = { acknowledged: false, - status: "trigger_not_active", + status: "error", }; ``` diff --git a/docs/models/components/unit.md b/docs/models/components/unit.md index fc4a98bd..2d1fae4a 100644 --- a/docs/models/components/unit.md +++ b/docs/models/components/unit.md @@ -5,7 +5,7 @@ ```typescript import { Unit } from "@novu/api/models/components"; -let value: Unit = "minutes"; +let value: Unit = "days"; ``` ## Values diff --git a/docs/models/components/unseencountresponse.md b/docs/models/components/unseencountresponse.md index 6d86fb73..8ff410f7 100644 --- a/docs/models/components/unseencountresponse.md +++ b/docs/models/components/unseencountresponse.md @@ -6,7 +6,7 @@ import { UnseenCountResponse } from "@novu/api/models/components"; let value: UnseenCountResponse = { - count: 2230.82, + count: 6994.79, }; ``` diff --git a/docs/models/components/updatesubscriberchannelrequestdto.md b/docs/models/components/updatesubscriberchannelrequestdto.md index 9cd81de2..20754d1d 100644 --- a/docs/models/components/updatesubscriberchannelrequestdto.md +++ b/docs/models/components/updatesubscriberchannelrequestdto.md @@ -6,9 +6,9 @@ import { UpdateSubscriberChannelRequestDto } from "@novu/api/models/components"; let value: UpdateSubscriberChannelRequestDto = { - providerId: "apns", + providerId: "mattermost", credentials: { - webhookUrl: "https://second-hand-elevation.biz/", + webhookUrl: "https://ajar-solvency.com", }, }; ``` diff --git a/docs/models/components/updatesubscriberchannelrequestdtoproviderid.md b/docs/models/components/updatesubscriberchannelrequestdtoproviderid.md index ca894cb8..78e8a2e8 100644 --- a/docs/models/components/updatesubscriberchannelrequestdtoproviderid.md +++ b/docs/models/components/updatesubscriberchannelrequestdtoproviderid.md @@ -7,7 +7,7 @@ The provider identifier for the credentials ```typescript import { UpdateSubscriberChannelRequestDtoProviderId } from "@novu/api/models/components"; -let value: UpdateSubscriberChannelRequestDtoProviderId = "zulip"; +let value: UpdateSubscriberChannelRequestDtoProviderId = "ryver"; ``` ## Values diff --git a/docs/models/components/weekdays.md b/docs/models/components/weekdays.md index e410752e..4a73d079 100644 --- a/docs/models/components/weekdays.md +++ b/docs/models/components/weekdays.md @@ -5,7 +5,7 @@ ```typescript import { WeekDays } from "@novu/api/models/components"; -let value: WeekDays = "saturday"; +let value: WeekDays = "tuesday"; ``` ## Values diff --git a/docs/models/components/workflowresponse.md b/docs/models/components/workflowresponse.md index 51fceef1..bf7284a9 100644 --- a/docs/models/components/workflowresponse.md +++ b/docs/models/components/workflowresponse.md @@ -7,7 +7,7 @@ import { WorkflowResponse } from "@novu/api/models/components"; let value: WorkflowResponse = { name: "", - description: "woot purse salty even as advanced", + description: "mouser inject worth uh-huh substitution psst upon er", active: false, draft: false, preferenceSettings: {}, diff --git a/docs/models/errors/value.md b/docs/models/errors/value.md index 34e66d91..116022b2 100644 --- a/docs/models/errors/value.md +++ b/docs/models/errors/value.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 6214.78; +const value: number = 4344.17; ``` ### `boolean` diff --git a/docs/models/operations/messagescontrollergetmessagesresponse.md b/docs/models/operations/messagescontrollergetmessagesresponse.md index 9daf06e5..c384512f 100644 --- a/docs/models/operations/messagescontrollergetmessagesresponse.md +++ b/docs/models/operations/messagescontrollergetmessagesresponse.md @@ -20,8 +20,8 @@ let value: MessagesControllerGetMessagesResponse = { transactionId: "", }, ], - pageSize: 6976.31, - page: 602.25, + pageSize: 602.25, + page: 6667.67, }, }; ``` diff --git a/docs/models/operations/subscriberscontrollerchatoauthcallbackresponse.md b/docs/models/operations/subscriberscontrollerchatoauthcallbackresponse.md index cee79bcb..1551162f 100644 --- a/docs/models/operations/subscriberscontrollerchatoauthcallbackresponse.md +++ b/docs/models/operations/subscriberscontrollerchatoauthcallbackresponse.md @@ -17,7 +17,7 @@ let value: SubscribersControllerChatOauthCallbackResponse = { ## Fields -| Field | Type | Required | Description | -| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -| `headers` | Record | :heavy_check_mark: | N/A | -| `result` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | +| `result` | *operations.SubscribersControllerChatOauthCallbackResponseResult* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/subscriberscontrollerchatoauthcallbackresponseresult.md b/docs/models/operations/subscriberscontrollerchatoauthcallbackresponseresult.md new file mode 100644 index 00000000..970c88c6 --- /dev/null +++ b/docs/models/operations/subscriberscontrollerchatoauthcallbackresponseresult.md @@ -0,0 +1,17 @@ +# SubscribersControllerChatOauthCallbackResponseResult + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `string` + +```typescript +const value: string = ""; +``` + diff --git a/jsr.json b/jsr.json index f875800e..4de17920 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@novu/api", - "version": "0.0.1-alpha.121", + "version": "0.0.1-alpha.126", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 7f09056d..53002ecb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@novu/api", - "version": "0.0.1-alpha.121", + "version": "0.0.1-alpha.126", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@novu/api", - "version": "0.0.1-alpha.121", + "version": "0.0.1-alpha.126", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", diff --git a/package.json b/package.json index a17ab444..484debd1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@novu/api", - "version": "0.0.1-alpha.121", + "version": "0.0.1-alpha.126", "author": "Novu", "main": "./index.js", "sideEffects": false, diff --git a/sources/json-development.json b/sources/json-development.json index f1e72ac3..b78a9e25 100644 --- a/sources/json-development.json +++ b/sources/json-development.json @@ -9524,6 +9524,13 @@ "example": "https://www.novu.co" } } + }, + "content": { + "application/json": { + "schema": { + "type": "string" + } + } } }, "400": { diff --git a/src/lib/config.ts b/src/lib/config.ts index eb743dab..dd568855 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.121", + sdkVersion: "0.0.1-alpha.126", genVersion: "2.481.0", - userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.121 2.481.0 1.0 @novu/api", + userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.126 2.481.0 1.0 @novu/api", } as const; diff --git a/src/models/operations/subscriberscontrollerchatoauthcallback.ts b/src/models/operations/subscriberscontrollerchatoauthcallback.ts index 27060de7..af074cf3 100644 --- a/src/models/operations/subscriberscontrollerchatoauthcallback.ts +++ b/src/models/operations/subscriberscontrollerchatoauthcallback.ts @@ -29,9 +29,13 @@ export type SubscribersControllerChatOauthCallbackRequest = { code: string; }; +export type SubscribersControllerChatOauthCallbackResponseResult = + | string + | string; + export type SubscribersControllerChatOauthCallbackResponse = { headers: { [k: string]: Array }; - result: string; + result: string | string; }; /** @internal */ @@ -116,6 +120,70 @@ export function subscribersControllerChatOauthCallbackRequestFromJSON( ); } +/** @internal */ +export const SubscribersControllerChatOauthCallbackResponseResult$inboundSchema: + z.ZodType< + SubscribersControllerChatOauthCallbackResponseResult, + z.ZodTypeDef, + unknown + > = z.union([z.string(), z.string()]); + +/** @internal */ +export type SubscribersControllerChatOauthCallbackResponseResult$Outbound = + | string + | string; + +/** @internal */ +export const SubscribersControllerChatOauthCallbackResponseResult$outboundSchema: + z.ZodType< + SubscribersControllerChatOauthCallbackResponseResult$Outbound, + z.ZodTypeDef, + SubscribersControllerChatOauthCallbackResponseResult + > = z.union([z.string(), z.string()]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace SubscribersControllerChatOauthCallbackResponseResult$ { + /** @deprecated use `SubscribersControllerChatOauthCallbackResponseResult$inboundSchema` instead. */ + export const inboundSchema = + SubscribersControllerChatOauthCallbackResponseResult$inboundSchema; + /** @deprecated use `SubscribersControllerChatOauthCallbackResponseResult$outboundSchema` instead. */ + export const outboundSchema = + SubscribersControllerChatOauthCallbackResponseResult$outboundSchema; + /** @deprecated use `SubscribersControllerChatOauthCallbackResponseResult$Outbound` instead. */ + export type Outbound = + SubscribersControllerChatOauthCallbackResponseResult$Outbound; +} + +export function subscribersControllerChatOauthCallbackResponseResultToJSON( + subscribersControllerChatOauthCallbackResponseResult: + SubscribersControllerChatOauthCallbackResponseResult, +): string { + return JSON.stringify( + SubscribersControllerChatOauthCallbackResponseResult$outboundSchema.parse( + subscribersControllerChatOauthCallbackResponseResult, + ), + ); +} + +export function subscribersControllerChatOauthCallbackResponseResultFromJSON( + jsonString: string, +): SafeParseResult< + SubscribersControllerChatOauthCallbackResponseResult, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + SubscribersControllerChatOauthCallbackResponseResult$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'SubscribersControllerChatOauthCallbackResponseResult' from JSON`, + ); +} + /** @internal */ export const SubscribersControllerChatOauthCallbackResponse$inboundSchema: z.ZodType< @@ -124,7 +192,7 @@ export const SubscribersControllerChatOauthCallbackResponse$inboundSchema: unknown > = z.object({ Headers: z.record(z.array(z.string())), - Result: z.string(), + Result: z.union([z.string(), z.string()]), }).transform((v) => { return remap$(v, { "Headers": "headers", @@ -135,7 +203,7 @@ export const SubscribersControllerChatOauthCallbackResponse$inboundSchema: /** @internal */ export type SubscribersControllerChatOauthCallbackResponse$Outbound = { Headers: { [k: string]: Array }; - Result: string; + Result: string | string; }; /** @internal */ @@ -146,7 +214,7 @@ export const SubscribersControllerChatOauthCallbackResponse$outboundSchema: SubscribersControllerChatOauthCallbackResponse > = z.object({ headers: z.record(z.array(z.string())), - result: z.string(), + result: z.union([z.string(), z.string()]), }).transform((v) => { return remap$(v, { headers: "Headers", diff --git a/src/sdk/authentication.ts b/src/sdk/authentication.ts index 3b25e484..992a9625 100644 --- a/src/sdk/authentication.ts +++ b/src/sdk/authentication.ts @@ -15,9 +15,7 @@ export class Authentication extends ClientSDK { async chatAccessOauthCallBack( request: operations.SubscribersControllerChatOauthCallbackRequest, options?: RequestOptions, - ): Promise< - operations.SubscribersControllerChatOauthCallbackResponse | undefined - > { + ): Promise { return unwrapAsync(subscribersAuthenticationChatAccessOauthCallBack( this, request,