@novu/api 2.6.5 → 2.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +124 -0
- package/REACT_QUERY.md +354 -0
- package/README.md +1032 -0
- package/docs/sdks/authentication/README.md +247 -0
- package/docs/sdks/credentials/README.md +372 -0
- package/docs/sdks/integrations/README.md +631 -0
- package/docs/sdks/messages/README.md +318 -0
- package/docs/sdks/notifications/README.md +226 -0
- package/docs/sdks/novu/README.md +598 -0
- package/docs/sdks/novumessages/README.md +329 -0
- package/docs/sdks/novunotifications/README.md +235 -0
- package/docs/sdks/novusubscribers/README.md +340 -0
- package/docs/sdks/preferences/README.md +221 -0
- package/docs/sdks/properties/README.md +111 -0
- package/docs/sdks/stats/README.md +226 -0
- package/docs/sdks/subscribers/README.md +763 -0
- package/docs/sdks/topics/README.md +541 -0
- package/docs/sdks/webhooks/README.md +117 -0
- package/docs/sdks/workflows/README.md +1123 -0
- package/funcs/cancel.d.ts.map +1 -1
- package/funcs/cancel.js +1 -0
- package/funcs/cancel.js.map +1 -1
- package/funcs/environmentsGenerateSession.d.ts +10 -0
- package/funcs/environmentsGenerateSession.d.ts.map +1 -0
- package/funcs/environmentsGenerateSession.js +131 -0
- package/funcs/environmentsGenerateSession.js.map +1 -0
- package/funcs/environmentsRetrieve.d.ts +10 -0
- package/funcs/environmentsRetrieve.d.ts.map +1 -0
- package/funcs/environmentsRetrieve.js +131 -0
- package/funcs/environmentsRetrieve.js.map +1 -0
- package/funcs/integrationsCreate.d.ts.map +1 -1
- package/funcs/integrationsCreate.js +1 -0
- package/funcs/integrationsCreate.js.map +1 -1
- package/funcs/integrationsDelete.d.ts.map +1 -1
- package/funcs/integrationsDelete.js +1 -0
- package/funcs/integrationsDelete.js.map +1 -1
- package/funcs/integrationsList.d.ts.map +1 -1
- package/funcs/integrationsList.js +1 -0
- package/funcs/integrationsList.js.map +1 -1
- package/funcs/integrationsListActive.d.ts.map +1 -1
- package/funcs/integrationsListActive.js +1 -0
- package/funcs/integrationsListActive.js.map +1 -1
- package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
- package/funcs/integrationsSetAsPrimary.js +1 -0
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.d.ts.map +1 -1
- package/funcs/integrationsUpdate.js +1 -0
- package/funcs/integrationsUpdate.js.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.d.ts.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.js +1 -0
- package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
- package/funcs/messagesDelete.d.ts.map +1 -1
- package/funcs/messagesDelete.js +1 -0
- package/funcs/messagesDelete.js.map +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
- package/funcs/messagesDeleteByTransactionId.js +1 -0
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/messagesRetrieve.d.ts.map +1 -1
- package/funcs/messagesRetrieve.js +1 -0
- package/funcs/messagesRetrieve.js.map +1 -1
- package/funcs/notificationsList.d.ts.map +1 -1
- package/funcs/notificationsList.js +2 -0
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/notificationsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsRetrieve.js +1 -0
- package/funcs/notificationsRetrieve.js.map +1 -1
- package/funcs/notificationsStatsGraph.d.ts.map +1 -1
- package/funcs/notificationsStatsGraph.js +1 -0
- package/funcs/notificationsStatsGraph.js.map +1 -1
- package/funcs/notificationsStatsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsStatsRetrieve.js +1 -0
- package/funcs/notificationsStatsRetrieve.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.js +1 -0
- package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +1 -0
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
- package/funcs/subscribersCreate.d.ts.map +1 -1
- package/funcs/subscribersCreate.js +2 -1
- package/funcs/subscribersCreate.js.map +1 -1
- package/funcs/subscribersCreateBulk.d.ts.map +1 -1
- package/funcs/subscribersCreateBulk.js +1 -0
- package/funcs/subscribersCreateBulk.js.map +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
- package/funcs/subscribersCredentialsAppend.js +1 -0
- package/funcs/subscribersCredentialsAppend.js.map +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
- package/funcs/subscribersCredentialsDelete.js +1 -0
- package/funcs/subscribersCredentialsDelete.js.map +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
- package/funcs/subscribersCredentialsUpdate.js +1 -0
- package/funcs/subscribersCredentialsUpdate.js.map +1 -1
- package/funcs/subscribersDelete.d.ts.map +1 -1
- package/funcs/subscribersDelete.js +1 -0
- package/funcs/subscribersDelete.js.map +1 -1
- package/funcs/subscribersList.d.ts.map +1 -1
- package/funcs/subscribersList.js +1 -0
- package/funcs/subscribersList.js.map +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAll.js +1 -0
- package/funcs/subscribersMessagesMarkAll.js.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +1 -0
- package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +1 -0
- package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +1 -0
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +1 -0
- package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
- package/funcs/subscribersPatch.d.ts.map +1 -1
- package/funcs/subscribersPatch.js +1 -0
- package/funcs/subscribersPatch.js.map +1 -1
- package/funcs/subscribersPreferencesList.d.ts.map +1 -1
- package/funcs/subscribersPreferencesList.js +1 -0
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdate.js +1 -0
- package/funcs/subscribersPreferencesUpdate.js.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js +1 -0
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
- package/funcs/subscribersRetrieve.d.ts.map +1 -1
- package/funcs/subscribersRetrieve.js +1 -0
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/subscribersSearch.d.ts.map +1 -1
- package/funcs/subscribersSearch.js +1 -0
- package/funcs/subscribersSearch.js.map +1 -1
- package/funcs/topicsCreate.d.ts.map +1 -1
- package/funcs/topicsCreate.js +1 -0
- package/funcs/topicsCreate.js.map +1 -1
- package/funcs/topicsDelete.d.ts.map +1 -1
- package/funcs/topicsDelete.js +1 -0
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/topicsList.d.ts.map +1 -1
- package/funcs/topicsList.js +1 -0
- package/funcs/topicsList.js.map +1 -1
- package/funcs/topicsRename.d.ts.map +1 -1
- package/funcs/topicsRename.js +1 -0
- package/funcs/topicsRename.js.map +1 -1
- package/funcs/topicsRetrieve.d.ts.map +1 -1
- package/funcs/topicsRetrieve.js +1 -0
- package/funcs/topicsRetrieve.js.map +1 -1
- package/funcs/topicsSubscribersAssign.d.ts.map +1 -1
- package/funcs/topicsSubscribersAssign.js +1 -0
- package/funcs/topicsSubscribersAssign.js.map +1 -1
- package/funcs/topicsSubscribersRemove.d.ts.map +1 -1
- package/funcs/topicsSubscribersRemove.js +1 -0
- package/funcs/topicsSubscribersRemove.js.map +1 -1
- package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
- package/funcs/topicsSubscribersRetrieve.js +1 -0
- package/funcs/topicsSubscribersRetrieve.js.map +1 -1
- package/funcs/trigger.d.ts.map +1 -1
- package/funcs/trigger.js +1 -0
- package/funcs/trigger.js.map +1 -1
- package/funcs/triggerBroadcast.d.ts.map +1 -1
- package/funcs/triggerBroadcast.js +1 -0
- package/funcs/triggerBroadcast.js.map +1 -1
- package/funcs/triggerBulk.d.ts.map +1 -1
- package/funcs/triggerBulk.js +1 -0
- package/funcs/triggerBulk.js.map +1 -1
- package/funcs/workflowsCreate.d.ts.map +1 -1
- package/funcs/workflowsCreate.js +1 -0
- package/funcs/workflowsCreate.js.map +1 -1
- package/funcs/workflowsDelete.d.ts.map +1 -1
- package/funcs/workflowsDelete.js +1 -0
- package/funcs/workflowsDelete.js.map +1 -1
- package/funcs/workflowsGetStepData.d.ts.map +1 -1
- package/funcs/workflowsGetStepData.js +1 -0
- package/funcs/workflowsGetStepData.js.map +1 -1
- package/funcs/workflowsGetWorkflowTestData.d.ts.map +1 -1
- package/funcs/workflowsGetWorkflowTestData.js +1 -0
- package/funcs/workflowsGetWorkflowTestData.js.map +1 -1
- package/funcs/workflowsRetrieve.d.ts.map +1 -1
- package/funcs/workflowsRetrieve.js +1 -0
- package/funcs/workflowsRetrieve.js.map +1 -1
- package/funcs/workflowsUpdate.d.ts.map +1 -1
- package/funcs/workflowsUpdate.js +1 -0
- package/funcs/workflowsUpdate.js.map +1 -1
- package/funcs/workflowsWorkflowControllerGeneratePreview.d.ts.map +1 -1
- package/funcs/workflowsWorkflowControllerGeneratePreview.js +1 -0
- package/funcs/workflowsWorkflowControllerGeneratePreview.js.map +1 -1
- package/funcs/workflowsWorkflowControllerPatchWorkflow.d.ts.map +1 -1
- package/funcs/workflowsWorkflowControllerPatchWorkflow.js +1 -0
- package/funcs/workflowsWorkflowControllerPatchWorkflow.js.map +1 -1
- package/funcs/workflowsWorkflowControllerPatchWorkflowStepData.d.ts.map +1 -1
- package/funcs/workflowsWorkflowControllerPatchWorkflowStepData.js +1 -0
- package/funcs/workflowsWorkflowControllerPatchWorkflowStepData.js.map +1 -1
- package/funcs/workflowsWorkflowControllerSearchWorkflows.d.ts.map +1 -1
- package/funcs/workflowsWorkflowControllerSearchWorkflows.js +1 -0
- package/funcs/workflowsWorkflowControllerSearchWorkflows.js.map +1 -1
- package/funcs/workflowsWorkflowControllerSync.d.ts.map +1 -1
- package/funcs/workflowsWorkflowControllerSync.js +1 -0
- package/funcs/workflowsWorkflowControllerSync.js.map +1 -1
- package/hooks/types.d.ts +1 -0
- package/hooks/types.d.ts.map +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js.map +1 -1
- package/models/components/activitynotificationtemplateresponsedto.d.ts +6 -0
- package/models/components/activitynotificationtemplateresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationtemplateresponsedto.js +3 -0
- package/models/components/activitynotificationtemplateresponsedto.js.map +1 -1
- package/models/components/createsubscriberrequestdto.d.ts +28 -50
- package/models/components/createsubscriberrequestdto.d.ts.map +1 -1
- package/models/components/createsubscriberrequestdto.js +17 -41
- package/models/components/createsubscriberrequestdto.js.map +1 -1
- package/models/components/getenvironmenttagsdto.d.ts +29 -0
- package/models/components/getenvironmenttagsdto.d.ts.map +1 -0
- package/models/components/getenvironmenttagsdto.js +59 -0
- package/models/components/getenvironmenttagsdto.js.map +1 -0
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/patchsubscriberrequestdto.d.ts +0 -5
- package/models/components/patchsubscriberrequestdto.d.ts.map +1 -1
- package/models/components/patchsubscriberrequestdto.js +0 -2
- package/models/components/patchsubscriberrequestdto.js.map +1 -1
- package/models/components/sessiongeneratedresponsedto.d.ts +32 -0
- package/models/components/sessiongeneratedresponsedto.d.ts.map +1 -0
- package/models/components/sessiongeneratedresponsedto.js +59 -0
- package/models/components/sessiongeneratedresponsedto.js.map +1 -0
- package/models/components/subscriberpayloaddto.d.ts +5 -0
- package/models/components/subscriberpayloaddto.d.ts.map +1 -1
- package/models/components/subscriberpayloaddto.js +2 -0
- package/models/components/subscriberpayloaddto.js.map +1 -1
- package/models/components/triggereventresponsedto.d.ts +3 -0
- package/models/components/triggereventresponsedto.d.ts.map +1 -1
- package/models/components/triggereventresponsedto.js +1 -0
- package/models/components/triggereventresponsedto.js.map +1 -1
- package/models/components/workfloworiginenum.d.ts +37 -0
- package/models/components/workfloworiginenum.d.ts.map +1 -0
- package/models/components/workfloworiginenum.js +54 -0
- package/models/components/workfloworiginenum.js.map +1 -0
- package/models/operations/environmentscontrollergeneratesession.d.ts +66 -0
- package/models/operations/environmentscontrollergeneratesession.d.ts.map +1 -0
- package/models/operations/environmentscontrollergeneratesession.js +110 -0
- package/models/operations/environmentscontrollergeneratesession.js.map +1 -0
- package/models/operations/environmentscontrollergetenvironmenttags.d.ts +66 -0
- package/models/operations/environmentscontrollergetenvironmenttags.d.ts.map +1 -0
- package/models/operations/environmentscontrollergetenvironmenttags.js +110 -0
- package/models/operations/environmentscontrollergetenvironmenttags.js.map +1 -0
- package/models/operations/notificationscontrollerlistnotifications.d.ts +5 -0
- package/models/operations/notificationscontrollerlistnotifications.d.ts.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.js +2 -0
- package/models/operations/notificationscontrollerlistnotifications.js.map +1 -1
- package/package.json +1 -1
- package/react-query/environmentsGenerateSession.d.ts +18 -0
- package/react-query/environmentsGenerateSession.d.ts.map +1 -0
- package/react-query/environmentsGenerateSession.js +41 -0
- package/react-query/environmentsGenerateSession.js.map +1 -0
- package/react-query/environmentsRetrieve.d.ts +30 -0
- package/react-query/environmentsRetrieve.d.ts.map +1 -0
- package/react-query/environmentsRetrieve.js +70 -0
- package/react-query/environmentsRetrieve.js.map +1 -0
- package/react-query/notificationsList.d.ts +3 -0
- package/react-query/notificationsList.d.ts.map +1 -1
- package/react-query/notificationsList.js +1 -0
- package/react-query/notificationsList.js.map +1 -1
- package/sdk/environments.d.ts +13 -0
- package/sdk/environments.d.ts.map +1 -0
- package/sdk/environments.js +26 -0
- package/sdk/environments.js.map +1 -0
- package/sources/json-development.json +32352 -0
- package/src/funcs/cancel.ts +1 -0
- package/src/funcs/integrationsCreate.ts +1 -0
- package/src/funcs/integrationsDelete.ts +1 -0
- package/src/funcs/integrationsList.ts +1 -0
- package/src/funcs/integrationsListActive.ts +1 -0
- package/src/funcs/integrationsSetAsPrimary.ts +1 -0
- package/src/funcs/integrationsUpdate.ts +1 -0
- package/src/funcs/integrationsWebhooksRetrieve.ts +1 -0
- package/src/funcs/messagesDelete.ts +1 -0
- package/src/funcs/messagesDeleteByTransactionId.ts +1 -0
- package/src/funcs/messagesRetrieve.ts +1 -0
- package/src/funcs/notificationsList.ts +2 -0
- package/src/funcs/notificationsRetrieve.ts +1 -0
- package/src/funcs/notificationsStatsGraph.ts +1 -0
- package/src/funcs/notificationsStatsRetrieve.ts +1 -0
- package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +1 -0
- package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +1 -0
- package/src/funcs/subscribersCreate.ts +2 -1
- package/src/funcs/subscribersCreateBulk.ts +1 -0
- package/src/funcs/subscribersCredentialsAppend.ts +1 -0
- package/src/funcs/subscribersCredentialsDelete.ts +1 -0
- package/src/funcs/subscribersCredentialsUpdate.ts +1 -0
- package/src/funcs/subscribersDelete.ts +1 -0
- package/src/funcs/subscribersList.ts +1 -0
- package/src/funcs/subscribersMessagesMarkAll.ts +1 -0
- package/src/funcs/subscribersMessagesMarkAllAs.ts +1 -0
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +1 -0
- package/src/funcs/subscribersNotificationsFeed.ts +1 -0
- package/src/funcs/subscribersNotificationsUnseenCount.ts +1 -0
- package/src/funcs/subscribersPatch.ts +1 -0
- package/src/funcs/subscribersPreferencesList.ts +1 -0
- package/src/funcs/subscribersPreferencesUpdate.ts +1 -0
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +1 -0
- package/src/funcs/subscribersRetrieve.ts +1 -0
- package/src/funcs/subscribersSearch.ts +1 -0
- package/src/funcs/topicsCreate.ts +1 -0
- package/src/funcs/topicsDelete.ts +1 -0
- package/src/funcs/topicsList.ts +1 -0
- package/src/funcs/topicsRename.ts +1 -0
- package/src/funcs/topicsRetrieve.ts +1 -0
- package/src/funcs/topicsSubscribersAssign.ts +1 -0
- package/src/funcs/topicsSubscribersRemove.ts +1 -0
- package/src/funcs/topicsSubscribersRetrieve.ts +1 -0
- package/src/funcs/trigger.ts +1 -0
- package/src/funcs/triggerBroadcast.ts +1 -0
- package/src/funcs/triggerBulk.ts +1 -0
- package/src/funcs/workflowsCreate.ts +1 -0
- package/src/funcs/workflowsDelete.ts +1 -0
- package/src/funcs/workflowsGetStepData.ts +1 -0
- package/src/funcs/workflowsGetWorkflowTestData.ts +1 -0
- package/src/funcs/workflowsRetrieve.ts +1 -0
- package/src/funcs/workflowsUpdate.ts +1 -0
- package/src/funcs/workflowsWorkflowControllerGeneratePreview.ts +1 -0
- package/src/funcs/workflowsWorkflowControllerPatchWorkflow.ts +1 -0
- package/src/funcs/workflowsWorkflowControllerPatchWorkflowStepData.ts +1 -0
- package/src/funcs/workflowsWorkflowControllerSearchWorkflows.ts +1 -0
- package/src/funcs/workflowsWorkflowControllerSync.ts +1 -0
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/lib/security.ts +0 -1
- package/src/models/components/activitynotificationtemplateresponsedto.ts +12 -0
- package/src/models/components/createsubscriberrequestdto.ts +41 -111
- package/src/models/components/index.ts +1 -0
- package/src/models/components/patchsubscriberrequestdto.ts +0 -7
- package/src/models/components/subscriberpayloaddto.ts +7 -0
- package/src/models/components/triggereventresponsedto.ts +1 -0
- package/src/models/components/workfloworiginenum.ts +40 -0
- package/src/models/operations/notificationscontrollerlistnotifications.ts +7 -0
- package/src/react-query/notificationsList.ts +4 -0
|
@@ -6,112 +6,46 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
SubscriberChannelDto,
|
|
11
|
-
SubscriberChannelDto$inboundSchema,
|
|
12
|
-
SubscriberChannelDto$Outbound,
|
|
13
|
-
SubscriberChannelDto$outboundSchema,
|
|
14
|
-
} from "./subscriberchanneldto.js";
|
|
15
|
-
|
|
16
|
-
export type CreateSubscriberRequestDtoData =
|
|
17
|
-
| string
|
|
18
|
-
| Array<string>
|
|
19
|
-
| boolean
|
|
20
|
-
| number;
|
|
21
9
|
|
|
22
10
|
export type CreateSubscriberRequestDto = {
|
|
23
11
|
/**
|
|
24
|
-
*
|
|
12
|
+
* Unique identifier of the subscriber
|
|
25
13
|
*/
|
|
26
14
|
subscriberId: string;
|
|
27
15
|
/**
|
|
28
|
-
*
|
|
16
|
+
* First name of the subscriber
|
|
29
17
|
*/
|
|
30
|
-
|
|
18
|
+
firstName?: string | null | undefined;
|
|
31
19
|
/**
|
|
32
|
-
*
|
|
20
|
+
* Last name of the subscriber
|
|
33
21
|
*/
|
|
34
|
-
|
|
22
|
+
lastName?: string | null | undefined;
|
|
35
23
|
/**
|
|
36
|
-
*
|
|
24
|
+
* Email address of the subscriber
|
|
37
25
|
*/
|
|
38
|
-
|
|
26
|
+
email?: string | null | undefined;
|
|
39
27
|
/**
|
|
40
|
-
*
|
|
28
|
+
* Phone number of the subscriber
|
|
41
29
|
*/
|
|
42
|
-
phone?: string | undefined;
|
|
30
|
+
phone?: string | null | undefined;
|
|
43
31
|
/**
|
|
44
|
-
*
|
|
32
|
+
* Avatar URL or identifier
|
|
45
33
|
*/
|
|
46
|
-
avatar?: string | undefined;
|
|
34
|
+
avatar?: string | null | undefined;
|
|
47
35
|
/**
|
|
48
|
-
*
|
|
36
|
+
* Timezone of the subscriber
|
|
49
37
|
*/
|
|
50
|
-
|
|
38
|
+
timezone?: string | null | undefined;
|
|
51
39
|
/**
|
|
52
|
-
*
|
|
40
|
+
* Locale of the subscriber
|
|
53
41
|
*/
|
|
54
|
-
|
|
42
|
+
locale?: string | null | undefined;
|
|
55
43
|
/**
|
|
56
|
-
*
|
|
44
|
+
* Additional custom data for the subscriber
|
|
57
45
|
*/
|
|
58
|
-
|
|
46
|
+
data?: { [k: string]: any } | null | undefined;
|
|
59
47
|
};
|
|
60
48
|
|
|
61
|
-
/** @internal */
|
|
62
|
-
export const CreateSubscriberRequestDtoData$inboundSchema: z.ZodType<
|
|
63
|
-
CreateSubscriberRequestDtoData,
|
|
64
|
-
z.ZodTypeDef,
|
|
65
|
-
unknown
|
|
66
|
-
> = z.union([z.string(), z.array(z.string()), z.boolean(), z.number()]);
|
|
67
|
-
|
|
68
|
-
/** @internal */
|
|
69
|
-
export type CreateSubscriberRequestDtoData$Outbound =
|
|
70
|
-
| string
|
|
71
|
-
| Array<string>
|
|
72
|
-
| boolean
|
|
73
|
-
| number;
|
|
74
|
-
|
|
75
|
-
/** @internal */
|
|
76
|
-
export const CreateSubscriberRequestDtoData$outboundSchema: z.ZodType<
|
|
77
|
-
CreateSubscriberRequestDtoData$Outbound,
|
|
78
|
-
z.ZodTypeDef,
|
|
79
|
-
CreateSubscriberRequestDtoData
|
|
80
|
-
> = z.union([z.string(), z.array(z.string()), z.boolean(), z.number()]);
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
-
*/
|
|
86
|
-
export namespace CreateSubscriberRequestDtoData$ {
|
|
87
|
-
/** @deprecated use `CreateSubscriberRequestDtoData$inboundSchema` instead. */
|
|
88
|
-
export const inboundSchema = CreateSubscriberRequestDtoData$inboundSchema;
|
|
89
|
-
/** @deprecated use `CreateSubscriberRequestDtoData$outboundSchema` instead. */
|
|
90
|
-
export const outboundSchema = CreateSubscriberRequestDtoData$outboundSchema;
|
|
91
|
-
/** @deprecated use `CreateSubscriberRequestDtoData$Outbound` instead. */
|
|
92
|
-
export type Outbound = CreateSubscriberRequestDtoData$Outbound;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function createSubscriberRequestDtoDataToJSON(
|
|
96
|
-
createSubscriberRequestDtoData: CreateSubscriberRequestDtoData,
|
|
97
|
-
): string {
|
|
98
|
-
return JSON.stringify(
|
|
99
|
-
CreateSubscriberRequestDtoData$outboundSchema.parse(
|
|
100
|
-
createSubscriberRequestDtoData,
|
|
101
|
-
),
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export function createSubscriberRequestDtoDataFromJSON(
|
|
106
|
-
jsonString: string,
|
|
107
|
-
): SafeParseResult<CreateSubscriberRequestDtoData, SDKValidationError> {
|
|
108
|
-
return safeParse(
|
|
109
|
-
jsonString,
|
|
110
|
-
(x) => CreateSubscriberRequestDtoData$inboundSchema.parse(JSON.parse(x)),
|
|
111
|
-
`Failed to parse 'CreateSubscriberRequestDtoData' from JSON`,
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
49
|
/** @internal */
|
|
116
50
|
export const CreateSubscriberRequestDto$inboundSchema: z.ZodType<
|
|
117
51
|
CreateSubscriberRequestDto,
|
|
@@ -119,29 +53,27 @@ export const CreateSubscriberRequestDto$inboundSchema: z.ZodType<
|
|
|
119
53
|
unknown
|
|
120
54
|
> = z.object({
|
|
121
55
|
subscriberId: z.string(),
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
phone: z.string().optional(),
|
|
126
|
-
avatar: z.string().optional(),
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
).optional(),
|
|
131
|
-
channels: z.array(SubscriberChannelDto$inboundSchema).optional(),
|
|
56
|
+
firstName: z.nullable(z.string()).optional(),
|
|
57
|
+
lastName: z.nullable(z.string()).optional(),
|
|
58
|
+
email: z.nullable(z.string()).optional(),
|
|
59
|
+
phone: z.nullable(z.string()).optional(),
|
|
60
|
+
avatar: z.nullable(z.string()).optional(),
|
|
61
|
+
timezone: z.nullable(z.string()).optional(),
|
|
62
|
+
locale: z.nullable(z.string()).optional(),
|
|
63
|
+
data: z.nullable(z.record(z.any())).optional(),
|
|
132
64
|
});
|
|
133
65
|
|
|
134
66
|
/** @internal */
|
|
135
67
|
export type CreateSubscriberRequestDto$Outbound = {
|
|
136
68
|
subscriberId: string;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
phone?: string | undefined;
|
|
141
|
-
avatar?: string | undefined;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
69
|
+
firstName?: string | null | undefined;
|
|
70
|
+
lastName?: string | null | undefined;
|
|
71
|
+
email?: string | null | undefined;
|
|
72
|
+
phone?: string | null | undefined;
|
|
73
|
+
avatar?: string | null | undefined;
|
|
74
|
+
timezone?: string | null | undefined;
|
|
75
|
+
locale?: string | null | undefined;
|
|
76
|
+
data?: { [k: string]: any } | null | undefined;
|
|
145
77
|
};
|
|
146
78
|
|
|
147
79
|
/** @internal */
|
|
@@ -151,16 +83,14 @@ export const CreateSubscriberRequestDto$outboundSchema: z.ZodType<
|
|
|
151
83
|
CreateSubscriberRequestDto
|
|
152
84
|
> = z.object({
|
|
153
85
|
subscriberId: z.string(),
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
phone: z.string().optional(),
|
|
158
|
-
avatar: z.string().optional(),
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
).optional(),
|
|
163
|
-
channels: z.array(SubscriberChannelDto$outboundSchema).optional(),
|
|
86
|
+
firstName: z.nullable(z.string()).optional(),
|
|
87
|
+
lastName: z.nullable(z.string()).optional(),
|
|
88
|
+
email: z.nullable(z.string()).optional(),
|
|
89
|
+
phone: z.nullable(z.string()).optional(),
|
|
90
|
+
avatar: z.nullable(z.string()).optional(),
|
|
91
|
+
timezone: z.nullable(z.string()).optional(),
|
|
92
|
+
locale: z.nullable(z.string()).optional(),
|
|
93
|
+
data: z.nullable(z.record(z.any())).optional(),
|
|
164
94
|
});
|
|
165
95
|
|
|
166
96
|
/**
|
|
@@ -114,5 +114,6 @@ export * from "./updateintegrationrequestdto.js";
|
|
|
114
114
|
export * from "./updatesubscriberchannelrequestdto.js";
|
|
115
115
|
export * from "./updatesubscriberonlineflagrequestdto.js";
|
|
116
116
|
export * from "./workflowinfodto.js";
|
|
117
|
+
export * from "./workfloworiginenum.js";
|
|
117
118
|
export * from "./workflowpreferencedto.js";
|
|
118
119
|
export * from "./workflowresponse.js";
|
|
@@ -13,10 +13,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
13
13
|
export type PatchSubscriberRequestDtoData = {};
|
|
14
14
|
|
|
15
15
|
export type PatchSubscriberRequestDto = {
|
|
16
|
-
/**
|
|
17
|
-
* Unique identifier of the subscriber
|
|
18
|
-
*/
|
|
19
|
-
subscriberId?: string | null | undefined;
|
|
20
16
|
/**
|
|
21
17
|
* First name of the subscriber
|
|
22
18
|
*/
|
|
@@ -107,7 +103,6 @@ export const PatchSubscriberRequestDto$inboundSchema: z.ZodType<
|
|
|
107
103
|
z.ZodTypeDef,
|
|
108
104
|
unknown
|
|
109
105
|
> = z.object({
|
|
110
|
-
subscriberId: z.nullable(z.string()).optional(),
|
|
111
106
|
firstName: z.nullable(z.string()).optional(),
|
|
112
107
|
lastName: z.nullable(z.string()).optional(),
|
|
113
108
|
email: z.nullable(z.string()).optional(),
|
|
@@ -121,7 +116,6 @@ export const PatchSubscriberRequestDto$inboundSchema: z.ZodType<
|
|
|
121
116
|
|
|
122
117
|
/** @internal */
|
|
123
118
|
export type PatchSubscriberRequestDto$Outbound = {
|
|
124
|
-
subscriberId?: string | null | undefined;
|
|
125
119
|
firstName?: string | null | undefined;
|
|
126
120
|
lastName?: string | null | undefined;
|
|
127
121
|
email?: string | null | undefined;
|
|
@@ -138,7 +132,6 @@ export const PatchSubscriberRequestDto$outboundSchema: z.ZodType<
|
|
|
138
132
|
z.ZodTypeDef,
|
|
139
133
|
PatchSubscriberRequestDto
|
|
140
134
|
> = z.object({
|
|
141
|
-
subscriberId: z.nullable(z.string()).optional(),
|
|
142
135
|
firstName: z.nullable(z.string()).optional(),
|
|
143
136
|
lastName: z.nullable(z.string()).optional(),
|
|
144
137
|
email: z.nullable(z.string()).optional(),
|
|
@@ -52,6 +52,10 @@ export type SubscriberPayloadDto = {
|
|
|
52
52
|
* An optional array of subscriber channels.
|
|
53
53
|
*/
|
|
54
54
|
channels?: Array<SubscriberChannelDto> | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The timezone of the subscriber.
|
|
57
|
+
*/
|
|
58
|
+
timezone?: string | undefined;
|
|
55
59
|
};
|
|
56
60
|
|
|
57
61
|
/** @internal */
|
|
@@ -109,6 +113,7 @@ export const SubscriberPayloadDto$inboundSchema: z.ZodType<
|
|
|
109
113
|
z.union([z.string(), z.array(z.string()), z.boolean(), z.number()]),
|
|
110
114
|
).optional(),
|
|
111
115
|
channels: z.array(SubscriberChannelDto$inboundSchema).optional(),
|
|
116
|
+
timezone: z.string().optional(),
|
|
112
117
|
});
|
|
113
118
|
|
|
114
119
|
/** @internal */
|
|
@@ -122,6 +127,7 @@ export type SubscriberPayloadDto$Outbound = {
|
|
|
122
127
|
locale?: string | undefined;
|
|
123
128
|
data?: { [k: string]: string | Array<string> | boolean | number } | undefined;
|
|
124
129
|
channels?: Array<SubscriberChannelDto$Outbound> | undefined;
|
|
130
|
+
timezone?: string | undefined;
|
|
125
131
|
};
|
|
126
132
|
|
|
127
133
|
/** @internal */
|
|
@@ -141,6 +147,7 @@ export const SubscriberPayloadDto$outboundSchema: z.ZodType<
|
|
|
141
147
|
z.union([z.string(), z.array(z.string()), z.boolean(), z.number()]),
|
|
142
148
|
).optional(),
|
|
143
149
|
channels: z.array(SubscriberChannelDto$outboundSchema).optional(),
|
|
150
|
+
timezone: z.string().optional(),
|
|
144
151
|
});
|
|
145
152
|
|
|
146
153
|
/**
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Origin of the workflow
|
|
10
|
+
*/
|
|
11
|
+
export const WorkflowOriginEnum = {
|
|
12
|
+
NovuCloud: "novu-cloud",
|
|
13
|
+
NovuCloudV1: "novu-cloud-v1",
|
|
14
|
+
External: "external",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* Origin of the workflow
|
|
18
|
+
*/
|
|
19
|
+
export type WorkflowOriginEnum = ClosedEnum<typeof WorkflowOriginEnum>;
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const WorkflowOriginEnum$inboundSchema: z.ZodNativeEnum<
|
|
23
|
+
typeof WorkflowOriginEnum
|
|
24
|
+
> = z.nativeEnum(WorkflowOriginEnum);
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const WorkflowOriginEnum$outboundSchema: z.ZodNativeEnum<
|
|
28
|
+
typeof WorkflowOriginEnum
|
|
29
|
+
> = WorkflowOriginEnum$inboundSchema;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
34
|
+
*/
|
|
35
|
+
export namespace WorkflowOriginEnum$ {
|
|
36
|
+
/** @deprecated use `WorkflowOriginEnum$inboundSchema` instead. */
|
|
37
|
+
export const inboundSchema = WorkflowOriginEnum$inboundSchema;
|
|
38
|
+
/** @deprecated use `WorkflowOriginEnum$outboundSchema` instead. */
|
|
39
|
+
export const outboundSchema = WorkflowOriginEnum$outboundSchema;
|
|
40
|
+
}
|
|
@@ -36,6 +36,10 @@ export type NotificationsControllerListNotificationsRequest = {
|
|
|
36
36
|
* Page number for pagination
|
|
37
37
|
*/
|
|
38
38
|
page?: number | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Limit for pagination
|
|
41
|
+
*/
|
|
42
|
+
limit?: number | undefined;
|
|
39
43
|
/**
|
|
40
44
|
* Transaction ID for filtering
|
|
41
45
|
*/
|
|
@@ -72,6 +76,7 @@ export const NotificationsControllerListNotificationsRequest$inboundSchema:
|
|
|
72
76
|
search: z.string().optional(),
|
|
73
77
|
subscriberIds: z.array(z.string()).optional(),
|
|
74
78
|
page: z.number().default(0),
|
|
79
|
+
limit: z.number().default(10),
|
|
75
80
|
transactionId: z.string().optional(),
|
|
76
81
|
after: z.string().optional(),
|
|
77
82
|
before: z.string().optional(),
|
|
@@ -90,6 +95,7 @@ export type NotificationsControllerListNotificationsRequest$Outbound = {
|
|
|
90
95
|
search?: string | undefined;
|
|
91
96
|
subscriberIds?: Array<string> | undefined;
|
|
92
97
|
page: number;
|
|
98
|
+
limit: number;
|
|
93
99
|
transactionId?: string | undefined;
|
|
94
100
|
after?: string | undefined;
|
|
95
101
|
before?: string | undefined;
|
|
@@ -109,6 +115,7 @@ export const NotificationsControllerListNotificationsRequest$outboundSchema:
|
|
|
109
115
|
search: z.string().optional(),
|
|
110
116
|
subscriberIds: z.array(z.string()).optional(),
|
|
111
117
|
page: z.number().default(0),
|
|
118
|
+
limit: z.number().default(10),
|
|
112
119
|
transactionId: z.string().optional(),
|
|
113
120
|
after: z.string().optional(),
|
|
114
121
|
before: z.string().optional(),
|
|
@@ -88,6 +88,7 @@ export function setNotificationsListData(
|
|
|
88
88
|
search?: string | undefined;
|
|
89
89
|
subscriberIds?: Array<string> | undefined;
|
|
90
90
|
page?: number | undefined;
|
|
91
|
+
limit?: number | undefined;
|
|
91
92
|
transactionId?: string | undefined;
|
|
92
93
|
after?: string | undefined;
|
|
93
94
|
before?: string | undefined;
|
|
@@ -111,6 +112,7 @@ export function invalidateNotificationsList(
|
|
|
111
112
|
search?: string | undefined;
|
|
112
113
|
subscriberIds?: Array<string> | undefined;
|
|
113
114
|
page?: number | undefined;
|
|
115
|
+
limit?: number | undefined;
|
|
114
116
|
transactionId?: string | undefined;
|
|
115
117
|
after?: string | undefined;
|
|
116
118
|
before?: string | undefined;
|
|
@@ -153,6 +155,7 @@ export function buildNotificationsListQuery(
|
|
|
153
155
|
search: request.search,
|
|
154
156
|
subscriberIds: request.subscriberIds,
|
|
155
157
|
page: request.page,
|
|
158
|
+
limit: request.limit,
|
|
156
159
|
transactionId: request.transactionId,
|
|
157
160
|
after: request.after,
|
|
158
161
|
before: request.before,
|
|
@@ -184,6 +187,7 @@ export function queryKeyNotificationsList(
|
|
|
184
187
|
search?: string | undefined;
|
|
185
188
|
subscriberIds?: Array<string> | undefined;
|
|
186
189
|
page?: number | undefined;
|
|
190
|
+
limit?: number | undefined;
|
|
187
191
|
transactionId?: string | undefined;
|
|
188
192
|
after?: string | undefined;
|
|
189
193
|
before?: string | undefined;
|