@novu/api 0.1.1 → 0.1.2
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 +2 -3
- package/README.md +36 -42
- package/docs/sdks/authentication/README.md +10 -10
- package/docs/sdks/credentials/README.md +12 -12
- package/docs/sdks/integrations/README.md +18 -18
- package/docs/sdks/messages/README.md +9 -9
- package/docs/sdks/notifications/README.md +6 -6
- package/docs/sdks/novu/README.md +21 -179
- package/docs/sdks/novumessages/README.md +13 -13
- package/docs/sdks/novunotifications/README.md +10 -10
- package/docs/sdks/novusubscribers/README.md +9 -9
- package/docs/sdks/preferences/README.md +18 -18
- package/docs/sdks/properties/README.md +4 -4
- package/docs/sdks/stats/README.md +6 -6
- package/docs/sdks/subscribers/README.md +347 -33
- package/docs/sdks/topics/README.md +15 -15
- package/docs/sdks/webhooks/README.md +3 -3
- package/funcs/cancel.js +4 -4
- package/funcs/cancel.js.map +1 -1
- package/funcs/integrationsCreate.js +4 -4
- package/funcs/integrationsCreate.js.map +1 -1
- package/funcs/integrationsDelete.js +4 -4
- package/funcs/integrationsDelete.js.map +1 -1
- package/funcs/integrationsList.js +4 -4
- package/funcs/integrationsList.js.map +1 -1
- package/funcs/integrationsListActive.js +4 -4
- package/funcs/integrationsListActive.js.map +1 -1
- package/funcs/integrationsSetAsPrimary.js +4 -4
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.js +4 -4
- package/funcs/integrationsUpdate.js.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.js +4 -4
- package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
- package/funcs/messagesDelete.js +4 -4
- package/funcs/messagesDelete.js.map +1 -1
- package/funcs/messagesDeleteByTransactionId.js +4 -4
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/messagesRetrieve.js +4 -4
- package/funcs/messagesRetrieve.js.map +1 -1
- package/funcs/notificationsList.js +4 -4
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/notificationsRetrieve.js +4 -4
- package/funcs/notificationsRetrieve.js.map +1 -1
- package/funcs/notificationsStatsGraph.js +4 -4
- package/funcs/notificationsStatsGraph.js.map +1 -1
- package/funcs/notificationsStatsRetrieve.js +4 -4
- package/funcs/notificationsStatsRetrieve.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.js +7 -7
- package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts +2 -2
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +6 -6
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
- package/funcs/subscribersCreate.d.ts +1 -1
- package/funcs/subscribersCreate.d.ts.map +1 -1
- package/funcs/subscribersCreate.js +6 -6
- package/funcs/subscribersCreate.js.map +1 -1
- package/funcs/subscribersCreateBulk.d.ts +1 -1
- package/funcs/subscribersCreateBulk.d.ts.map +1 -1
- package/funcs/subscribersCreateBulk.js +7 -6
- package/funcs/subscribersCreateBulk.js.map +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
- package/funcs/subscribersCredentialsAppend.js +6 -6
- package/funcs/subscribersCredentialsAppend.js.map +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
- package/funcs/subscribersCredentialsDelete.js +7 -7
- package/funcs/subscribersCredentialsDelete.js.map +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
- package/funcs/subscribersCredentialsUpdate.js +6 -6
- package/funcs/subscribersCredentialsUpdate.js.map +1 -1
- package/funcs/subscribersDelete.js +5 -5
- package/funcs/subscribersDelete.js.map +1 -1
- package/funcs/subscribersDeleteLegacy.d.ts +18 -0
- package/funcs/subscribersDeleteLegacy.d.ts.map +1 -0
- package/funcs/{create.js → subscribersDeleteLegacy.js} +51 -20
- package/funcs/subscribersDeleteLegacy.js.map +1 -0
- package/funcs/subscribersList.d.ts +1 -1
- package/funcs/subscribersList.d.ts.map +1 -1
- package/funcs/subscribersList.js +6 -6
- package/funcs/subscribersList.js.map +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAll.js +8 -7
- package/funcs/subscribersMessagesMarkAll.js.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +6 -6
- package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +6 -6
- package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +7 -6
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +6 -6
- package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
- package/funcs/subscribersPatch.d.ts +17 -0
- package/funcs/subscribersPatch.d.ts.map +1 -0
- package/funcs/{supportControllerFetchUserOrganizations.js → subscribersPatch.js} +48 -16
- package/funcs/subscribersPatch.js.map +1 -0
- package/funcs/subscribersPreferencesList.d.ts +1 -1
- package/funcs/subscribersPreferencesList.d.ts.map +1 -1
- package/funcs/subscribersPreferencesList.js +6 -6
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.d.ts +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.d.ts.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.js +6 -6
- package/funcs/subscribersPreferencesRetrieveByLevel.js.map +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdate.js +6 -6
- package/funcs/subscribersPreferencesUpdate.js.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.d.ts +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.js +6 -6
- package/funcs/subscribersPreferencesUpdateGlobal.js.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js +6 -6
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
- package/funcs/subscribersRetrieve.d.ts +1 -1
- package/funcs/subscribersRetrieve.d.ts.map +1 -1
- package/funcs/subscribersRetrieve.js +6 -11
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/subscribersRetrieveLegacy.d.ts +16 -0
- package/funcs/subscribersRetrieveLegacy.d.ts.map +1 -0
- package/funcs/subscribersRetrieveLegacy.js +144 -0
- package/funcs/subscribersRetrieveLegacy.js.map +1 -0
- package/funcs/subscribersSearch.d.ts +13 -0
- package/funcs/subscribersSearch.d.ts.map +1 -0
- package/funcs/subscribersSearch.js +138 -0
- package/funcs/subscribersSearch.js.map +1 -0
- package/funcs/subscribersUpdate.d.ts +1 -1
- package/funcs/subscribersUpdate.d.ts.map +1 -1
- package/funcs/subscribersUpdate.js +6 -6
- package/funcs/subscribersUpdate.js.map +1 -1
- package/funcs/topicsCreate.js +4 -4
- package/funcs/topicsCreate.js.map +1 -1
- package/funcs/topicsDelete.js +4 -4
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/topicsList.js +4 -4
- package/funcs/topicsList.js.map +1 -1
- package/funcs/topicsRename.js +4 -4
- package/funcs/topicsRename.js.map +1 -1
- package/funcs/topicsRetrieve.js +4 -4
- package/funcs/topicsRetrieve.js.map +1 -1
- package/funcs/topicsSubscribersAssign.js +4 -4
- package/funcs/topicsSubscribersAssign.js.map +1 -1
- package/funcs/topicsSubscribersRemove.js +4 -4
- package/funcs/topicsSubscribersRemove.js.map +1 -1
- package/funcs/topicsSubscribersRetrieve.js +4 -4
- package/funcs/topicsSubscribersRetrieve.js.map +1 -1
- package/funcs/trigger.js +4 -4
- package/funcs/trigger.js.map +1 -1
- package/funcs/triggerBroadcast.js +4 -4
- package/funcs/triggerBroadcast.js.map +1 -1
- package/funcs/triggerBulk.js +4 -4
- package/funcs/triggerBulk.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/retries.js +0 -1
- package/lib/retries.js.map +1 -1
- package/lib/security.js +1 -1
- package/lib/security.js.map +1 -1
- package/models/components/{channelsettings.d.ts → channelsettingsdto.d.ts} +22 -22
- package/models/components/channelsettingsdto.d.ts.map +1 -0
- package/models/components/{channelsettings.js → channelsettingsdto.js} +29 -29
- package/models/components/channelsettingsdto.js.map +1 -0
- package/models/components/index.d.ts +4 -4
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -4
- package/models/components/index.js.map +1 -1
- package/models/components/listsubscribersresponsedto.d.ts +43 -0
- package/models/components/listsubscribersresponsedto.d.ts.map +1 -0
- package/models/components/listsubscribersresponsedto.js +64 -0
- package/models/components/listsubscribersresponsedto.js.map +1 -0
- package/models/components/patchsubscriberrequestdto.d.ts +96 -0
- package/models/components/patchsubscriberrequestdto.d.ts.map +1 -0
- package/models/components/patchsubscriberrequestdto.js +100 -0
- package/models/components/patchsubscriberrequestdto.js.map +1 -0
- package/models/components/removesubscriberresponsedto.d.ts +37 -0
- package/models/components/removesubscriberresponsedto.d.ts.map +1 -0
- package/models/components/removesubscriberresponsedto.js +61 -0
- package/models/components/removesubscriberresponsedto.js.map +1 -0
- package/models/components/security.d.ts +2 -2
- package/models/components/security.d.ts.map +1 -1
- package/models/components/security.js +2 -11
- package/models/components/security.js.map +1 -1
- package/models/components/subscriberresponsedto.d.ts +14 -3
- package/models/components/subscriberresponsedto.d.ts.map +1 -1
- package/models/components/subscriberresponsedto.js +5 -3
- package/models/components/subscriberresponsedto.js.map +1 -1
- package/models/components/triggereventrequestdto.d.ts +1 -12
- package/models/components/triggereventrequestdto.d.ts.map +1 -1
- package/models/components/triggereventrequestdto.js +10 -6
- package/models/components/triggereventrequestdto.js.map +1 -1
- package/models/operations/index.d.ts +23 -21
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +23 -21
- package/models/operations/index.js.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriber.d.ts +0 -5
- package/models/operations/subscriberscontrollergetsubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriber.js +0 -2
- package/models/operations/subscriberscontrollergetsubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollerpatchsubscriber.d.ts +68 -0
- package/models/operations/subscriberscontrollerpatchsubscriber.d.ts.map +1 -0
- package/models/operations/subscriberscontrollerpatchsubscriber.js +114 -0
- package/models/operations/subscriberscontrollerpatchsubscriber.js.map +1 -0
- package/models/operations/subscriberscontrollerremovesubscriber.d.ts +2 -2
- package/models/operations/subscriberscontrollerremovesubscriber.js +2 -2
- package/models/operations/subscriberscontrollersearchsubscribers.d.ts +126 -0
- package/models/operations/subscriberscontrollersearchsubscribers.d.ts.map +1 -0
- package/models/operations/subscriberscontrollersearchsubscribers.js +145 -0
- package/models/operations/subscriberscontrollersearchsubscribers.js.map +1 -0
- package/models/operations/subscribersv1controllerbulkcreatesubscribers.d.ts +66 -0
- package/models/operations/subscribersv1controllerbulkcreatesubscribers.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerbulkcreatesubscribers.js +112 -0
- package/models/operations/subscribersv1controllerbulkcreatesubscribers.js.map +1 -0
- package/models/operations/subscribersv1controllerchataccessoauth.d.ts +80 -0
- package/models/operations/subscribersv1controllerchataccessoauth.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerchataccessoauth.js +113 -0
- package/models/operations/subscribersv1controllerchataccessoauth.js.map +1 -0
- package/models/operations/subscribersv1controllerchatoauthcallback.d.ts +108 -0
- package/models/operations/subscribersv1controllerchatoauthcallback.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerchatoauthcallback.js +143 -0
- package/models/operations/subscribersv1controllerchatoauthcallback.js.map +1 -0
- package/models/operations/subscribersv1controllercreatesubscriber.d.ts +66 -0
- package/models/operations/subscribersv1controllercreatesubscriber.d.ts.map +1 -0
- package/models/operations/subscribersv1controllercreatesubscriber.js +112 -0
- package/models/operations/subscribersv1controllercreatesubscriber.js.map +1 -0
- package/models/operations/subscribersv1controllerdeletesubscribercredentials.d.ts +65 -0
- package/models/operations/subscribersv1controllerdeletesubscribercredentials.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerdeletesubscribercredentials.js +111 -0
- package/models/operations/subscribersv1controllerdeletesubscribercredentials.js.map +1 -0
- package/models/operations/subscribersv1controllergetnotificationsfeed.d.ts +79 -0
- package/models/operations/subscribersv1controllergetnotificationsfeed.d.ts.map +1 -0
- package/models/operations/subscribersv1controllergetnotificationsfeed.js +120 -0
- package/models/operations/subscribersv1controllergetnotificationsfeed.js.map +1 -0
- package/models/operations/subscribersv1controllergetsubscriber.d.ts +71 -0
- package/models/operations/subscribersv1controllergetsubscriber.d.ts.map +1 -0
- package/models/operations/subscribersv1controllergetsubscriber.js +112 -0
- package/models/operations/subscribersv1controllergetsubscriber.js.map +1 -0
- package/models/operations/subscribersv1controllergetsubscriberpreferencebylevel.d.ts +108 -0
- package/models/operations/subscribersv1controllergetsubscriberpreferencebylevel.d.ts.map +1 -0
- package/models/operations/subscribersv1controllergetsubscriberpreferencebylevel.js +141 -0
- package/models/operations/subscribersv1controllergetsubscriberpreferencebylevel.js.map +1 -0
- package/models/operations/subscribersv1controllergetunseencount.d.ts +76 -0
- package/models/operations/subscribersv1controllergetunseencount.d.ts.map +1 -0
- package/models/operations/subscribersv1controllergetunseencount.js +114 -0
- package/models/operations/subscribersv1controllergetunseencount.js.map +1 -0
- package/models/operations/subscribersv1controllerlistsubscriberpreferences.d.ts +71 -0
- package/models/operations/subscribersv1controllerlistsubscriberpreferences.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerlistsubscriberpreferences.js +116 -0
- package/models/operations/subscribersv1controllerlistsubscriberpreferences.js.map +1 -0
- package/models/operations/subscribersv1controllerlistsubscribers.d.ts +108 -0
- package/models/operations/subscribersv1controllerlistsubscribers.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerlistsubscribers.js +145 -0
- package/models/operations/subscribersv1controllerlistsubscribers.js.map +1 -0
- package/models/operations/subscribersv1controllermarkactionasseen.d.ts +72 -0
- package/models/operations/subscribersv1controllermarkactionasseen.d.ts.map +1 -0
- package/models/operations/subscribersv1controllermarkactionasseen.js +118 -0
- package/models/operations/subscribersv1controllermarkactionasseen.js.map +1 -0
- package/models/operations/subscribersv1controllermarkallunreadasread.d.ts +68 -0
- package/models/operations/subscribersv1controllermarkallunreadasread.d.ts.map +1 -0
- package/models/operations/subscribersv1controllermarkallunreadasread.js +114 -0
- package/models/operations/subscribersv1controllermarkallunreadasread.js.map +1 -0
- package/models/operations/subscribersv1controllermarkmessagesas.d.ts +68 -0
- package/models/operations/subscribersv1controllermarkmessagesas.d.ts.map +1 -0
- package/models/operations/subscribersv1controllermarkmessagesas.js +114 -0
- package/models/operations/subscribersv1controllermarkmessagesas.js.map +1 -0
- package/models/operations/subscribersv1controllermodifysubscriberchannel.d.ts +68 -0
- package/models/operations/subscribersv1controllermodifysubscriberchannel.d.ts.map +1 -0
- package/models/operations/subscribersv1controllermodifysubscriberchannel.js +115 -0
- package/models/operations/subscribersv1controllermodifysubscriberchannel.js.map +1 -0
- package/models/operations/subscribersv1controllerremovesubscriber.d.ts +66 -0
- package/models/operations/subscribersv1controllerremovesubscriber.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerremovesubscriber.js +110 -0
- package/models/operations/subscribersv1controllerremovesubscriber.js.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriber.d.ts +68 -0
- package/models/operations/subscribersv1controllerupdatesubscriber.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriber.js +114 -0
- package/models/operations/subscribersv1controllerupdatesubscriber.js.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriberchannel.d.ts +68 -0
- package/models/operations/subscribersv1controllerupdatesubscriberchannel.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriberchannel.js +115 -0
- package/models/operations/subscribersv1controllerupdatesubscriberchannel.js.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.d.ts +68 -0
- package/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.js +118 -0
- package/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.js.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriberonlineflag.d.ts +68 -0
- package/models/operations/subscribersv1controllerupdatesubscriberonlineflag.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriberonlineflag.js +118 -0
- package/models/operations/subscribersv1controllerupdatesubscriberonlineflag.js.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriberpreference.d.ts +70 -0
- package/models/operations/subscribersv1controllerupdatesubscriberpreference.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriberpreference.js +120 -0
- package/models/operations/subscribersv1controllerupdatesubscriberpreference.js.map +1 -0
- package/package.json +6 -7
- package/sdk/authentication.d.ts +3 -3
- package/sdk/authentication.d.ts.map +1 -1
- package/sdk/authentication.js.map +1 -1
- package/sdk/credentials.d.ts +3 -3
- package/sdk/credentials.d.ts.map +1 -1
- package/sdk/credentials.js.map +1 -1
- package/sdk/novumessages.d.ts +3 -3
- package/sdk/novumessages.d.ts.map +1 -1
- package/sdk/novumessages.js.map +1 -1
- package/sdk/novunotifications.d.ts +2 -2
- package/sdk/novunotifications.d.ts.map +1 -1
- package/sdk/novunotifications.js.map +1 -1
- package/sdk/preferences.d.ts +4 -4
- package/sdk/preferences.d.ts.map +1 -1
- package/sdk/preferences.js.map +1 -1
- package/sdk/properties.d.ts +1 -1
- package/sdk/properties.d.ts.map +1 -1
- package/sdk/sdk.d.ts +0 -8
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -14
- package/sdk/sdk.js.map +1 -1
- package/sdk/subscribers.d.ts +33 -6
- package/sdk/subscribers.d.ts.map +1 -1
- package/sdk/subscribers.js +43 -4
- package/sdk/subscribers.js.map +1 -1
- package/sources/json-development.json +2327 -344
- package/src/funcs/cancel.ts +4 -4
- package/src/funcs/integrationsCreate.ts +4 -4
- package/src/funcs/integrationsDelete.ts +4 -4
- package/src/funcs/integrationsList.ts +4 -4
- package/src/funcs/integrationsListActive.ts +4 -4
- package/src/funcs/integrationsSetAsPrimary.ts +5 -5
- package/src/funcs/integrationsUpdate.ts +5 -5
- package/src/funcs/integrationsWebhooksRetrieve.ts +4 -4
- package/src/funcs/messagesDelete.ts +4 -4
- package/src/funcs/messagesDeleteByTransactionId.ts +4 -4
- package/src/funcs/messagesRetrieve.ts +4 -4
- package/src/funcs/notificationsList.ts +4 -4
- package/src/funcs/notificationsRetrieve.ts +4 -4
- package/src/funcs/notificationsStatsGraph.ts +4 -4
- package/src/funcs/notificationsStatsRetrieve.ts +4 -4
- package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +10 -10
- package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +11 -11
- package/src/funcs/subscribersCreate.ts +10 -10
- package/src/funcs/subscribersCreateBulk.ts +15 -15
- package/src/funcs/subscribersCredentialsAppend.ts +11 -11
- package/src/funcs/subscribersCredentialsDelete.ts +10 -10
- package/src/funcs/subscribersCredentialsUpdate.ts +11 -11
- package/src/funcs/subscribersDelete.ts +5 -5
- package/src/funcs/subscribersDeleteLegacy.ts +200 -0
- package/src/funcs/subscribersList.ts +11 -11
- package/src/funcs/subscribersMessagesMarkAll.ts +14 -11
- package/src/funcs/subscribersMessagesMarkAllAs.ts +10 -10
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +10 -10
- package/src/funcs/subscribersNotificationsFeed.ts +11 -10
- package/src/funcs/subscribersNotificationsUnseenCount.ts +10 -10
- package/src/funcs/{supportControllerFetchUserOrganizations.ts → subscribersPatch.ts} +73 -19
- package/src/funcs/subscribersPreferencesList.ts +10 -10
- package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +10 -10
- package/src/funcs/subscribersPreferencesUpdate.ts +10 -10
- package/src/funcs/subscribersPreferencesUpdateGlobal.ts +16 -15
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +10 -10
- package/src/funcs/subscribersRetrieve.ts +6 -13
- package/src/funcs/subscribersRetrieveLegacy.ts +205 -0
- package/src/funcs/{create.ts → subscribersSearch.ts} +78 -31
- package/src/funcs/subscribersUpdate.ts +10 -10
- package/src/funcs/topicsCreate.ts +4 -4
- package/src/funcs/topicsDelete.ts +4 -4
- package/src/funcs/topicsList.ts +4 -4
- package/src/funcs/topicsRename.ts +4 -4
- package/src/funcs/topicsRetrieve.ts +4 -4
- package/src/funcs/topicsSubscribersAssign.ts +4 -4
- package/src/funcs/topicsSubscribersRemove.ts +4 -4
- package/src/funcs/topicsSubscribersRetrieve.ts +4 -4
- package/src/funcs/trigger.ts +4 -4
- package/src/funcs/triggerBroadcast.ts +4 -4
- package/src/funcs/triggerBulk.ts +4 -4
- package/src/lib/config.ts +4 -4
- package/src/lib/retries.ts +0 -1
- package/src/lib/security.ts +1 -1
- package/src/models/components/{channelsettings.ts → channelsettingsdto.ts} +40 -38
- package/src/models/components/index.ts +4 -4
- package/src/models/components/listsubscribersresponsedto.ts +89 -0
- package/src/models/components/patchsubscriberrequestdto.ts +182 -0
- package/src/models/components/removesubscriberresponsedto.ts +78 -0
- package/src/models/components/security.ts +4 -13
- package/src/models/components/subscriberresponsedto.ts +18 -9
- package/src/models/components/triggereventrequestdto.ts +11 -22
- package/src/models/operations/index.ts +23 -21
- package/src/models/operations/subscriberscontrollergetsubscriber.ts +0 -7
- package/src/models/operations/subscriberscontrollerpatchsubscriber.ts +189 -0
- package/src/models/operations/subscriberscontrollerremovesubscriber.ts +4 -4
- package/src/models/operations/subscriberscontrollersearchsubscribers.ts +260 -0
- package/src/models/operations/subscribersv1controllerbulkcreatesubscribers.ts +185 -0
- package/src/models/operations/{subscriberscontrollerchataccessoauth.ts → subscribersv1controllerchataccessoauth.ts} +47 -46
- package/src/models/operations/subscribersv1controllerchatoauthcallback.ts +281 -0
- package/src/models/operations/subscribersv1controllercreatesubscriber.ts +187 -0
- package/src/models/operations/subscribersv1controllerdeletesubscribercredentials.ts +178 -0
- package/src/models/operations/{subscriberscontrollergetnotificationsfeed.ts → subscribersv1controllergetnotificationsfeed.ts} +46 -46
- package/src/models/operations/subscribersv1controllergetsubscriber.ts +188 -0
- package/src/models/operations/{subscriberscontrollergetsubscriberpreferencebylevel.ts → subscribersv1controllergetsubscriberpreferencebylevel.ts} +46 -46
- package/src/models/operations/subscribersv1controllergetunseencount.ts +195 -0
- package/src/models/operations/subscribersv1controllerlistsubscriberpreferences.ts +191 -0
- package/src/models/operations/subscribersv1controllerlistsubscribers.ts +283 -0
- package/src/models/operations/{subscriberscontrollermarkactionasseen.ts → subscribersv1controllermarkactionasseen.ts} +48 -46
- package/src/models/operations/subscribersv1controllermarkallunreadasread.ts +191 -0
- package/src/models/operations/subscribersv1controllermarkmessagesas.ts +187 -0
- package/src/models/operations/subscribersv1controllermodifysubscriberchannel.ts +192 -0
- package/src/models/operations/subscribersv1controllerremovesubscriber.ts +183 -0
- package/src/models/operations/{subscriberscontrollerupdatesubscriber.ts → subscribersv1controllerupdatesubscriber.ts} +48 -46
- package/src/models/operations/subscribersv1controllerupdatesubscriberchannel.ts +192 -0
- package/src/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.ts +195 -0
- package/src/models/operations/subscribersv1controllerupdatesubscriberonlineflag.ts +193 -0
- package/src/models/operations/subscribersv1controllerupdatesubscriberpreference.ts +197 -0
- package/src/sdk/authentication.ts +4 -4
- package/src/sdk/credentials.ts +7 -3
- package/src/sdk/novumessages.ts +4 -4
- package/src/sdk/novunotifications.ts +4 -4
- package/src/sdk/preferences.ts +7 -6
- package/src/sdk/properties.ts +1 -1
- package/src/sdk/sdk.ts +0 -34
- package/src/sdk/subscribers.ts +89 -10
- package/funcs/create.d.ts +0 -9
- package/funcs/create.d.ts.map +0 -1
- package/funcs/create.js.map +0 -1
- package/funcs/supportControllerFetchUserOrganizations.d.ts +0 -10
- package/funcs/supportControllerFetchUserOrganizations.d.ts.map +0 -1
- package/funcs/supportControllerFetchUserOrganizations.js.map +0 -1
- package/models/components/channelsettings.d.ts.map +0 -1
- package/models/components/channelsettings.js.map +0 -1
- package/models/components/createsupportthreaddto.d.ts +0 -29
- package/models/components/createsupportthreaddto.d.ts.map +0 -1
- package/models/components/createsupportthreaddto.js +0 -59
- package/models/components/createsupportthreaddto.js.map +0 -1
- package/models/components/plaincardrequestdto.d.ts +0 -100
- package/models/components/plaincardrequestdto.d.ts.map +0 -1
- package/models/components/plaincardrequestdto.js +0 -139
- package/models/components/plaincardrequestdto.js.map +0 -1
- package/models/components/workflowtostepcontrolvaluesdto.d.ts +0 -40
- package/models/components/workflowtostepcontrolvaluesdto.d.ts.map +0 -1
- package/models/components/workflowtostepcontrolvaluesdto.js +0 -59
- package/models/components/workflowtostepcontrolvaluesdto.js.map +0 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts +0 -66
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.js +0 -112
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.js.map +0 -1
- package/models/operations/subscriberscontrollerchataccessoauth.d.ts +0 -80
- package/models/operations/subscriberscontrollerchataccessoauth.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerchataccessoauth.js +0 -113
- package/models/operations/subscriberscontrollerchataccessoauth.js.map +0 -1
- package/models/operations/subscriberscontrollerchatoauthcallback.d.ts +0 -108
- package/models/operations/subscriberscontrollerchatoauthcallback.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerchatoauthcallback.js +0 -142
- package/models/operations/subscriberscontrollerchatoauthcallback.js.map +0 -1
- package/models/operations/subscriberscontrollercreatesubscriber.d.ts +0 -66
- package/models/operations/subscriberscontrollercreatesubscriber.d.ts.map +0 -1
- package/models/operations/subscriberscontrollercreatesubscriber.js +0 -112
- package/models/operations/subscriberscontrollercreatesubscriber.js.map +0 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts +0 -65
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js +0 -111
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js.map +0 -1
- package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts +0 -79
- package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts.map +0 -1
- package/models/operations/subscriberscontrollergetnotificationsfeed.js +0 -120
- package/models/operations/subscriberscontrollergetnotificationsfeed.js.map +0 -1
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts +0 -108
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts.map +0 -1
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js +0 -141
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js.map +0 -1
- package/models/operations/subscriberscontrollergetunseencount.d.ts +0 -76
- package/models/operations/subscriberscontrollergetunseencount.d.ts.map +0 -1
- package/models/operations/subscriberscontrollergetunseencount.js +0 -114
- package/models/operations/subscriberscontrollergetunseencount.js.map +0 -1
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts +0 -71
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.js +0 -113
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.js.map +0 -1
- package/models/operations/subscriberscontrollerlistsubscribers.d.ts +0 -108
- package/models/operations/subscriberscontrollerlistsubscribers.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerlistsubscribers.js +0 -145
- package/models/operations/subscriberscontrollerlistsubscribers.js.map +0 -1
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts +0 -72
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts.map +0 -1
- package/models/operations/subscriberscontrollermarkactionasseen.js +0 -118
- package/models/operations/subscriberscontrollermarkactionasseen.js.map +0 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts +0 -68
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts.map +0 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.js +0 -114
- package/models/operations/subscriberscontrollermarkallunreadasread.js.map +0 -1
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts +0 -68
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts.map +0 -1
- package/models/operations/subscriberscontrollermarkmessagesas.js +0 -114
- package/models/operations/subscriberscontrollermarkmessagesas.js.map +0 -1
- package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts +0 -68
- package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts.map +0 -1
- package/models/operations/subscriberscontrollermodifysubscriberchannel.js +0 -114
- package/models/operations/subscriberscontrollermodifysubscriberchannel.js.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriber.d.ts +0 -68
- package/models/operations/subscriberscontrollerupdatesubscriber.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriber.js +0 -114
- package/models/operations/subscriberscontrollerupdatesubscriber.js.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts +0 -68
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.js +0 -114
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.js.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts +0 -68
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js +0 -118
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts +0 -68
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js +0 -117
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts +0 -70
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.js +0 -119
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.js.map +0 -1
- package/models/operations/supportcontrollercreatethread.d.ts +0 -35
- package/models/operations/supportcontrollercreatethread.d.ts.map +0 -1
- package/models/operations/supportcontrollercreatethread.js +0 -73
- package/models/operations/supportcontrollercreatethread.js.map +0 -1
- package/models/operations/supportcontrollerfetchuserorganizations.d.ts +0 -56
- package/models/operations/supportcontrollerfetchuserorganizations.d.ts.map +0 -1
- package/models/operations/supportcontrollerfetchuserorganizations.js +0 -96
- package/models/operations/supportcontrollerfetchuserorganizations.js.map +0 -1
- package/src/models/components/createsupportthreaddto.ts +0 -66
- package/src/models/components/plaincardrequestdto.ts +0 -223
- package/src/models/components/workflowtostepcontrolvaluesdto.ts +0 -71
- package/src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts +0 -185
- package/src/models/operations/subscriberscontrollerchatoauthcallback.ts +0 -281
- package/src/models/operations/subscriberscontrollercreatesubscriber.ts +0 -185
- package/src/models/operations/subscriberscontrollerdeletesubscribercredentials.ts +0 -177
- package/src/models/operations/subscriberscontrollergetunseencount.ts +0 -192
- package/src/models/operations/subscriberscontrollerlistsubscriberpreferences.ts +0 -193
- package/src/models/operations/subscriberscontrollerlistsubscribers.ts +0 -282
- package/src/models/operations/subscriberscontrollermarkallunreadasread.ts +0 -191
- package/src/models/operations/subscriberscontrollermarkmessagesas.ts +0 -184
- package/src/models/operations/subscriberscontrollermodifysubscriberchannel.ts +0 -193
- package/src/models/operations/subscriberscontrollerupdatesubscriberchannel.ts +0 -193
- package/src/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.ts +0 -195
- package/src/models/operations/subscriberscontrollerupdatesubscriberonlineflag.ts +0 -192
- package/src/models/operations/subscriberscontrollerupdatesubscriberpreference.ts +0 -196
- package/src/models/operations/supportcontrollercreatethread.ts +0 -90
- package/src/models/operations/supportcontrollerfetchuserorganizations.ts +0 -163
package/src/lib/security.ts
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
/**
|
|
19
19
|
* The provider identifier for the credentials
|
|
20
20
|
*/
|
|
21
|
-
export const
|
|
21
|
+
export const ChannelSettingsDtoProviderId = {
|
|
22
22
|
Slack: "slack",
|
|
23
23
|
Discord: "discord",
|
|
24
24
|
Msteams: "msteams",
|
|
@@ -40,15 +40,15 @@ export const ChannelSettingsProviderId = {
|
|
|
40
40
|
/**
|
|
41
41
|
* The provider identifier for the credentials
|
|
42
42
|
*/
|
|
43
|
-
export type
|
|
44
|
-
typeof
|
|
43
|
+
export type ChannelSettingsDtoProviderId = ClosedEnum<
|
|
44
|
+
typeof ChannelSettingsDtoProviderId
|
|
45
45
|
>;
|
|
46
46
|
|
|
47
|
-
export type
|
|
47
|
+
export type ChannelSettingsDto = {
|
|
48
48
|
/**
|
|
49
49
|
* The provider identifier for the credentials
|
|
50
50
|
*/
|
|
51
|
-
providerId:
|
|
51
|
+
providerId: ChannelSettingsDtoProviderId;
|
|
52
52
|
/**
|
|
53
53
|
* The integration identifier
|
|
54
54
|
*/
|
|
@@ -64,33 +64,33 @@ export type ChannelSettings = {
|
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
/** @internal */
|
|
67
|
-
export const
|
|
68
|
-
typeof
|
|
69
|
-
> = z.nativeEnum(
|
|
67
|
+
export const ChannelSettingsDtoProviderId$inboundSchema: z.ZodNativeEnum<
|
|
68
|
+
typeof ChannelSettingsDtoProviderId
|
|
69
|
+
> = z.nativeEnum(ChannelSettingsDtoProviderId);
|
|
70
70
|
|
|
71
71
|
/** @internal */
|
|
72
|
-
export const
|
|
73
|
-
typeof
|
|
74
|
-
> =
|
|
72
|
+
export const ChannelSettingsDtoProviderId$outboundSchema: z.ZodNativeEnum<
|
|
73
|
+
typeof ChannelSettingsDtoProviderId
|
|
74
|
+
> = ChannelSettingsDtoProviderId$inboundSchema;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* @internal
|
|
78
78
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
79
79
|
*/
|
|
80
|
-
export namespace
|
|
81
|
-
/** @deprecated use `
|
|
82
|
-
export const inboundSchema =
|
|
83
|
-
/** @deprecated use `
|
|
84
|
-
export const outboundSchema =
|
|
80
|
+
export namespace ChannelSettingsDtoProviderId$ {
|
|
81
|
+
/** @deprecated use `ChannelSettingsDtoProviderId$inboundSchema` instead. */
|
|
82
|
+
export const inboundSchema = ChannelSettingsDtoProviderId$inboundSchema;
|
|
83
|
+
/** @deprecated use `ChannelSettingsDtoProviderId$outboundSchema` instead. */
|
|
84
|
+
export const outboundSchema = ChannelSettingsDtoProviderId$outboundSchema;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/** @internal */
|
|
88
|
-
export const
|
|
89
|
-
|
|
88
|
+
export const ChannelSettingsDto$inboundSchema: z.ZodType<
|
|
89
|
+
ChannelSettingsDto,
|
|
90
90
|
z.ZodTypeDef,
|
|
91
91
|
unknown
|
|
92
92
|
> = z.object({
|
|
93
|
-
providerId:
|
|
93
|
+
providerId: ChannelSettingsDtoProviderId$inboundSchema,
|
|
94
94
|
integrationIdentifier: z.string().optional(),
|
|
95
95
|
credentials: ChannelCredentials$inboundSchema,
|
|
96
96
|
_integrationId: z.string(),
|
|
@@ -101,7 +101,7 @@ export const ChannelSettings$inboundSchema: z.ZodType<
|
|
|
101
101
|
});
|
|
102
102
|
|
|
103
103
|
/** @internal */
|
|
104
|
-
export type
|
|
104
|
+
export type ChannelSettingsDto$Outbound = {
|
|
105
105
|
providerId: string;
|
|
106
106
|
integrationIdentifier?: string | undefined;
|
|
107
107
|
credentials: ChannelCredentials$Outbound;
|
|
@@ -109,12 +109,12 @@ export type ChannelSettings$Outbound = {
|
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
/** @internal */
|
|
112
|
-
export const
|
|
113
|
-
|
|
112
|
+
export const ChannelSettingsDto$outboundSchema: z.ZodType<
|
|
113
|
+
ChannelSettingsDto$Outbound,
|
|
114
114
|
z.ZodTypeDef,
|
|
115
|
-
|
|
115
|
+
ChannelSettingsDto
|
|
116
116
|
> = z.object({
|
|
117
|
-
providerId:
|
|
117
|
+
providerId: ChannelSettingsDtoProviderId$outboundSchema,
|
|
118
118
|
integrationIdentifier: z.string().optional(),
|
|
119
119
|
credentials: ChannelCredentials$outboundSchema,
|
|
120
120
|
integrationId: z.string(),
|
|
@@ -128,27 +128,29 @@ export const ChannelSettings$outboundSchema: z.ZodType<
|
|
|
128
128
|
* @internal
|
|
129
129
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
130
130
|
*/
|
|
131
|
-
export namespace
|
|
132
|
-
/** @deprecated use `
|
|
133
|
-
export const inboundSchema =
|
|
134
|
-
/** @deprecated use `
|
|
135
|
-
export const outboundSchema =
|
|
136
|
-
/** @deprecated use `
|
|
137
|
-
export type Outbound =
|
|
131
|
+
export namespace ChannelSettingsDto$ {
|
|
132
|
+
/** @deprecated use `ChannelSettingsDto$inboundSchema` instead. */
|
|
133
|
+
export const inboundSchema = ChannelSettingsDto$inboundSchema;
|
|
134
|
+
/** @deprecated use `ChannelSettingsDto$outboundSchema` instead. */
|
|
135
|
+
export const outboundSchema = ChannelSettingsDto$outboundSchema;
|
|
136
|
+
/** @deprecated use `ChannelSettingsDto$Outbound` instead. */
|
|
137
|
+
export type Outbound = ChannelSettingsDto$Outbound;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
export function
|
|
141
|
-
|
|
140
|
+
export function channelSettingsDtoToJSON(
|
|
141
|
+
channelSettingsDto: ChannelSettingsDto,
|
|
142
142
|
): string {
|
|
143
|
-
return JSON.stringify(
|
|
143
|
+
return JSON.stringify(
|
|
144
|
+
ChannelSettingsDto$outboundSchema.parse(channelSettingsDto),
|
|
145
|
+
);
|
|
144
146
|
}
|
|
145
147
|
|
|
146
|
-
export function
|
|
148
|
+
export function channelSettingsDtoFromJSON(
|
|
147
149
|
jsonString: string,
|
|
148
|
-
): SafeParseResult<
|
|
150
|
+
): SafeParseResult<ChannelSettingsDto, SDKValidationError> {
|
|
149
151
|
return safeParse(
|
|
150
152
|
jsonString,
|
|
151
|
-
(x) =>
|
|
152
|
-
`Failed to parse '
|
|
153
|
+
(x) => ChannelSettingsDto$inboundSchema.parse(JSON.parse(x)),
|
|
154
|
+
`Failed to parse 'ChannelSettingsDto' from JSON`,
|
|
153
155
|
);
|
|
154
156
|
}
|
|
@@ -24,12 +24,11 @@ export * from "./channelcredentials.js";
|
|
|
24
24
|
export * from "./channelcredentialsdto.js";
|
|
25
25
|
export * from "./channelctatypeenum.js";
|
|
26
26
|
export * from "./channelpreference.js";
|
|
27
|
-
export * from "./
|
|
27
|
+
export * from "./channelsettingsdto.js";
|
|
28
28
|
export * from "./channeltypeenum.js";
|
|
29
29
|
export * from "./createdsubscriberdto.js";
|
|
30
30
|
export * from "./createintegrationrequestdto.js";
|
|
31
31
|
export * from "./createsubscriberrequestdto.js";
|
|
32
|
-
export * from "./createsupportthreaddto.js";
|
|
33
32
|
export * from "./createtopicrequestdto.js";
|
|
34
33
|
export * from "./createtopicresponsedto.js";
|
|
35
34
|
export * from "./credentialsdto.js";
|
|
@@ -57,6 +56,7 @@ export * from "./filtertopicsresponsedto.js";
|
|
|
57
56
|
export * from "./getsubscriberpreferencesresponsedto.js";
|
|
58
57
|
export * from "./gettopicresponsedto.js";
|
|
59
58
|
export * from "./integrationresponsedto.js";
|
|
59
|
+
export * from "./listsubscribersresponsedto.js";
|
|
60
60
|
export * from "./markallmessageasrequestdto.js";
|
|
61
61
|
export * from "./markmessageactionasseendto.js";
|
|
62
62
|
export * from "./messageaction.js";
|
|
@@ -82,10 +82,11 @@ export * from "./notificationtriggervariable.js";
|
|
|
82
82
|
export * from "./notificationtriggervariableresponse.js";
|
|
83
83
|
export * from "./ordinalenum.js";
|
|
84
84
|
export * from "./ordinalvalueenum.js";
|
|
85
|
-
export * from "./
|
|
85
|
+
export * from "./patchsubscriberrequestdto.js";
|
|
86
86
|
export * from "./preference.js";
|
|
87
87
|
export * from "./preferencechannels.js";
|
|
88
88
|
export * from "./providersidenum.js";
|
|
89
|
+
export * from "./removesubscriberresponsedto.js";
|
|
89
90
|
export * from "./removesubscribersrequestdto.js";
|
|
90
91
|
export * from "./renametopicrequestdto.js";
|
|
91
92
|
export * from "./renametopicresponsedto.js";
|
|
@@ -121,4 +122,3 @@ export * from "./updatesubscriberpreferencerequestdto.js";
|
|
|
121
122
|
export * from "./updatesubscriberpreferenceresponsedto.js";
|
|
122
123
|
export * from "./updatesubscriberrequestdto.js";
|
|
123
124
|
export * from "./workflowresponse.js";
|
|
124
|
-
export * from "./workflowtostepcontrolvaluesdto.js";
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
SubscriberResponseDto,
|
|
11
|
+
SubscriberResponseDto$inboundSchema,
|
|
12
|
+
SubscriberResponseDto$Outbound,
|
|
13
|
+
SubscriberResponseDto$outboundSchema,
|
|
14
|
+
} from "./subscriberresponsedto.js";
|
|
15
|
+
|
|
16
|
+
export type ListSubscribersResponseDto = {
|
|
17
|
+
/**
|
|
18
|
+
* List of returned Subscribers
|
|
19
|
+
*/
|
|
20
|
+
data: Array<SubscriberResponseDto>;
|
|
21
|
+
/**
|
|
22
|
+
* The cursor for the next page of results, or null if there are no more pages.
|
|
23
|
+
*/
|
|
24
|
+
next: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* The cursor for the previous page of results, or null if this is the first page.
|
|
27
|
+
*/
|
|
28
|
+
previous: string | null;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const ListSubscribersResponseDto$inboundSchema: z.ZodType<
|
|
33
|
+
ListSubscribersResponseDto,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
unknown
|
|
36
|
+
> = z.object({
|
|
37
|
+
data: z.array(SubscriberResponseDto$inboundSchema),
|
|
38
|
+
next: z.nullable(z.string()),
|
|
39
|
+
previous: z.nullable(z.string()),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type ListSubscribersResponseDto$Outbound = {
|
|
44
|
+
data: Array<SubscriberResponseDto$Outbound>;
|
|
45
|
+
next: string | null;
|
|
46
|
+
previous: string | null;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const ListSubscribersResponseDto$outboundSchema: z.ZodType<
|
|
51
|
+
ListSubscribersResponseDto$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
ListSubscribersResponseDto
|
|
54
|
+
> = z.object({
|
|
55
|
+
data: z.array(SubscriberResponseDto$outboundSchema),
|
|
56
|
+
next: z.nullable(z.string()),
|
|
57
|
+
previous: z.nullable(z.string()),
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
export namespace ListSubscribersResponseDto$ {
|
|
65
|
+
/** @deprecated use `ListSubscribersResponseDto$inboundSchema` instead. */
|
|
66
|
+
export const inboundSchema = ListSubscribersResponseDto$inboundSchema;
|
|
67
|
+
/** @deprecated use `ListSubscribersResponseDto$outboundSchema` instead. */
|
|
68
|
+
export const outboundSchema = ListSubscribersResponseDto$outboundSchema;
|
|
69
|
+
/** @deprecated use `ListSubscribersResponseDto$Outbound` instead. */
|
|
70
|
+
export type Outbound = ListSubscribersResponseDto$Outbound;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function listSubscribersResponseDtoToJSON(
|
|
74
|
+
listSubscribersResponseDto: ListSubscribersResponseDto,
|
|
75
|
+
): string {
|
|
76
|
+
return JSON.stringify(
|
|
77
|
+
ListSubscribersResponseDto$outboundSchema.parse(listSubscribersResponseDto),
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function listSubscribersResponseDtoFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<ListSubscribersResponseDto, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => ListSubscribersResponseDto$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'ListSubscribersResponseDto' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Additional custom data for the subscriber
|
|
12
|
+
*/
|
|
13
|
+
export type PatchSubscriberRequestDtoData = {};
|
|
14
|
+
|
|
15
|
+
export type PatchSubscriberRequestDto = {
|
|
16
|
+
/**
|
|
17
|
+
* Unique identifier of the subscriber
|
|
18
|
+
*/
|
|
19
|
+
subscriberId?: string | null | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* First name of the subscriber
|
|
22
|
+
*/
|
|
23
|
+
firstName?: string | null | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Last name of the subscriber
|
|
26
|
+
*/
|
|
27
|
+
lastName?: string | null | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Email address of the subscriber
|
|
30
|
+
*/
|
|
31
|
+
email?: string | null | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Phone number of the subscriber
|
|
34
|
+
*/
|
|
35
|
+
phone?: string | null | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Avatar URL or identifier
|
|
38
|
+
*/
|
|
39
|
+
avatar?: string | null | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Timezone of the subscriber
|
|
42
|
+
*/
|
|
43
|
+
timezone?: string | null | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Locale of the subscriber
|
|
46
|
+
*/
|
|
47
|
+
locale?: string | null | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Additional custom data for the subscriber
|
|
50
|
+
*/
|
|
51
|
+
data?: PatchSubscriberRequestDtoData | null | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const PatchSubscriberRequestDtoData$inboundSchema: z.ZodType<
|
|
56
|
+
PatchSubscriberRequestDtoData,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
unknown
|
|
59
|
+
> = z.object({});
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export type PatchSubscriberRequestDtoData$Outbound = {};
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const PatchSubscriberRequestDtoData$outboundSchema: z.ZodType<
|
|
66
|
+
PatchSubscriberRequestDtoData$Outbound,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
PatchSubscriberRequestDtoData
|
|
69
|
+
> = z.object({});
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
74
|
+
*/
|
|
75
|
+
export namespace PatchSubscriberRequestDtoData$ {
|
|
76
|
+
/** @deprecated use `PatchSubscriberRequestDtoData$inboundSchema` instead. */
|
|
77
|
+
export const inboundSchema = PatchSubscriberRequestDtoData$inboundSchema;
|
|
78
|
+
/** @deprecated use `PatchSubscriberRequestDtoData$outboundSchema` instead. */
|
|
79
|
+
export const outboundSchema = PatchSubscriberRequestDtoData$outboundSchema;
|
|
80
|
+
/** @deprecated use `PatchSubscriberRequestDtoData$Outbound` instead. */
|
|
81
|
+
export type Outbound = PatchSubscriberRequestDtoData$Outbound;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function patchSubscriberRequestDtoDataToJSON(
|
|
85
|
+
patchSubscriberRequestDtoData: PatchSubscriberRequestDtoData,
|
|
86
|
+
): string {
|
|
87
|
+
return JSON.stringify(
|
|
88
|
+
PatchSubscriberRequestDtoData$outboundSchema.parse(
|
|
89
|
+
patchSubscriberRequestDtoData,
|
|
90
|
+
),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function patchSubscriberRequestDtoDataFromJSON(
|
|
95
|
+
jsonString: string,
|
|
96
|
+
): SafeParseResult<PatchSubscriberRequestDtoData, SDKValidationError> {
|
|
97
|
+
return safeParse(
|
|
98
|
+
jsonString,
|
|
99
|
+
(x) => PatchSubscriberRequestDtoData$inboundSchema.parse(JSON.parse(x)),
|
|
100
|
+
`Failed to parse 'PatchSubscriberRequestDtoData' from JSON`,
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export const PatchSubscriberRequestDto$inboundSchema: z.ZodType<
|
|
106
|
+
PatchSubscriberRequestDto,
|
|
107
|
+
z.ZodTypeDef,
|
|
108
|
+
unknown
|
|
109
|
+
> = z.object({
|
|
110
|
+
subscriberId: z.nullable(z.string()).optional(),
|
|
111
|
+
firstName: z.nullable(z.string()).optional(),
|
|
112
|
+
lastName: z.nullable(z.string()).optional(),
|
|
113
|
+
email: z.nullable(z.string()).optional(),
|
|
114
|
+
phone: z.nullable(z.string()).optional(),
|
|
115
|
+
avatar: z.nullable(z.string()).optional(),
|
|
116
|
+
timezone: z.nullable(z.string()).optional(),
|
|
117
|
+
locale: z.nullable(z.string()).optional(),
|
|
118
|
+
data: z.nullable(z.lazy(() => PatchSubscriberRequestDtoData$inboundSchema))
|
|
119
|
+
.optional(),
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export type PatchSubscriberRequestDto$Outbound = {
|
|
124
|
+
subscriberId?: string | null | undefined;
|
|
125
|
+
firstName?: string | null | undefined;
|
|
126
|
+
lastName?: string | null | undefined;
|
|
127
|
+
email?: string | null | undefined;
|
|
128
|
+
phone?: string | null | undefined;
|
|
129
|
+
avatar?: string | null | undefined;
|
|
130
|
+
timezone?: string | null | undefined;
|
|
131
|
+
locale?: string | null | undefined;
|
|
132
|
+
data?: PatchSubscriberRequestDtoData$Outbound | null | undefined;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/** @internal */
|
|
136
|
+
export const PatchSubscriberRequestDto$outboundSchema: z.ZodType<
|
|
137
|
+
PatchSubscriberRequestDto$Outbound,
|
|
138
|
+
z.ZodTypeDef,
|
|
139
|
+
PatchSubscriberRequestDto
|
|
140
|
+
> = z.object({
|
|
141
|
+
subscriberId: z.nullable(z.string()).optional(),
|
|
142
|
+
firstName: z.nullable(z.string()).optional(),
|
|
143
|
+
lastName: z.nullable(z.string()).optional(),
|
|
144
|
+
email: z.nullable(z.string()).optional(),
|
|
145
|
+
phone: z.nullable(z.string()).optional(),
|
|
146
|
+
avatar: z.nullable(z.string()).optional(),
|
|
147
|
+
timezone: z.nullable(z.string()).optional(),
|
|
148
|
+
locale: z.nullable(z.string()).optional(),
|
|
149
|
+
data: z.nullable(z.lazy(() => PatchSubscriberRequestDtoData$outboundSchema))
|
|
150
|
+
.optional(),
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @internal
|
|
155
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
156
|
+
*/
|
|
157
|
+
export namespace PatchSubscriberRequestDto$ {
|
|
158
|
+
/** @deprecated use `PatchSubscriberRequestDto$inboundSchema` instead. */
|
|
159
|
+
export const inboundSchema = PatchSubscriberRequestDto$inboundSchema;
|
|
160
|
+
/** @deprecated use `PatchSubscriberRequestDto$outboundSchema` instead. */
|
|
161
|
+
export const outboundSchema = PatchSubscriberRequestDto$outboundSchema;
|
|
162
|
+
/** @deprecated use `PatchSubscriberRequestDto$Outbound` instead. */
|
|
163
|
+
export type Outbound = PatchSubscriberRequestDto$Outbound;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export function patchSubscriberRequestDtoToJSON(
|
|
167
|
+
patchSubscriberRequestDto: PatchSubscriberRequestDto,
|
|
168
|
+
): string {
|
|
169
|
+
return JSON.stringify(
|
|
170
|
+
PatchSubscriberRequestDto$outboundSchema.parse(patchSubscriberRequestDto),
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function patchSubscriberRequestDtoFromJSON(
|
|
175
|
+
jsonString: string,
|
|
176
|
+
): SafeParseResult<PatchSubscriberRequestDto, SDKValidationError> {
|
|
177
|
+
return safeParse(
|
|
178
|
+
jsonString,
|
|
179
|
+
(x) => PatchSubscriberRequestDto$inboundSchema.parse(JSON.parse(x)),
|
|
180
|
+
`Failed to parse 'PatchSubscriberRequestDto' from JSON`,
|
|
181
|
+
);
|
|
182
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type RemoveSubscriberResponseDto = {
|
|
11
|
+
/**
|
|
12
|
+
* Indicates whether the operation was acknowledged by the server
|
|
13
|
+
*/
|
|
14
|
+
acknowledged: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Status of the subscriber removal operation
|
|
17
|
+
*/
|
|
18
|
+
status: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const RemoveSubscriberResponseDto$inboundSchema: z.ZodType<
|
|
23
|
+
RemoveSubscriberResponseDto,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
acknowledged: z.boolean(),
|
|
28
|
+
status: z.string(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type RemoveSubscriberResponseDto$Outbound = {
|
|
33
|
+
acknowledged: boolean;
|
|
34
|
+
status: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const RemoveSubscriberResponseDto$outboundSchema: z.ZodType<
|
|
39
|
+
RemoveSubscriberResponseDto$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
RemoveSubscriberResponseDto
|
|
42
|
+
> = z.object({
|
|
43
|
+
acknowledged: z.boolean(),
|
|
44
|
+
status: z.string(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export namespace RemoveSubscriberResponseDto$ {
|
|
52
|
+
/** @deprecated use `RemoveSubscriberResponseDto$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = RemoveSubscriberResponseDto$inboundSchema;
|
|
54
|
+
/** @deprecated use `RemoveSubscriberResponseDto$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = RemoveSubscriberResponseDto$outboundSchema;
|
|
56
|
+
/** @deprecated use `RemoveSubscriberResponseDto$Outbound` instead. */
|
|
57
|
+
export type Outbound = RemoveSubscriberResponseDto$Outbound;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function removeSubscriberResponseDtoToJSON(
|
|
61
|
+
removeSubscriberResponseDto: RemoveSubscriberResponseDto,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
RemoveSubscriberResponseDto$outboundSchema.parse(
|
|
65
|
+
removeSubscriberResponseDto,
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function removeSubscriberResponseDtoFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<RemoveSubscriberResponseDto, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => RemoveSubscriberResponseDto$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'RemoveSubscriberResponseDto' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
9
|
|
|
11
10
|
export type Security = {
|
|
12
|
-
|
|
11
|
+
secretKey: string;
|
|
13
12
|
};
|
|
14
13
|
|
|
15
14
|
/** @internal */
|
|
@@ -18,16 +17,12 @@ export const Security$inboundSchema: z.ZodType<
|
|
|
18
17
|
z.ZodTypeDef,
|
|
19
18
|
unknown
|
|
20
19
|
> = z.object({
|
|
21
|
-
|
|
22
|
-
}).transform((v) => {
|
|
23
|
-
return remap$(v, {
|
|
24
|
-
"api-key": "apiKey",
|
|
25
|
-
});
|
|
20
|
+
secretKey: z.string(),
|
|
26
21
|
});
|
|
27
22
|
|
|
28
23
|
/** @internal */
|
|
29
24
|
export type Security$Outbound = {
|
|
30
|
-
|
|
25
|
+
secretKey: string;
|
|
31
26
|
};
|
|
32
27
|
|
|
33
28
|
/** @internal */
|
|
@@ -36,11 +31,7 @@ export const Security$outboundSchema: z.ZodType<
|
|
|
36
31
|
z.ZodTypeDef,
|
|
37
32
|
Security
|
|
38
33
|
> = z.object({
|
|
39
|
-
|
|
40
|
-
}).transform((v) => {
|
|
41
|
-
return remap$(v, {
|
|
42
|
-
apiKey: "api-key",
|
|
43
|
-
});
|
|
34
|
+
secretKey: z.string(),
|
|
44
35
|
});
|
|
45
36
|
|
|
46
37
|
/**
|
|
@@ -8,11 +8,11 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
11
|
+
ChannelSettingsDto,
|
|
12
|
+
ChannelSettingsDto$inboundSchema,
|
|
13
|
+
ChannelSettingsDto$Outbound,
|
|
14
|
+
ChannelSettingsDto$outboundSchema,
|
|
15
|
+
} from "./channelsettingsdto.js";
|
|
16
16
|
|
|
17
17
|
export type SubscriberResponseDto = {
|
|
18
18
|
/**
|
|
@@ -50,9 +50,11 @@ export type SubscriberResponseDto = {
|
|
|
50
50
|
/**
|
|
51
51
|
* An array of channel settings associated with the subscriber.
|
|
52
52
|
*/
|
|
53
|
-
channels?: Array<
|
|
53
|
+
channels?: Array<ChannelSettingsDto> | undefined;
|
|
54
54
|
/**
|
|
55
55
|
* An array of topics that the subscriber is subscribed to.
|
|
56
|
+
*
|
|
57
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
56
58
|
*/
|
|
57
59
|
topics?: Array<string> | undefined;
|
|
58
60
|
/**
|
|
@@ -87,6 +89,10 @@ export type SubscriberResponseDto = {
|
|
|
87
89
|
* The version of the subscriber document.
|
|
88
90
|
*/
|
|
89
91
|
v?: number | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Additional custom data for the subscriber
|
|
94
|
+
*/
|
|
95
|
+
data?: { [k: string]: any } | null | undefined;
|
|
90
96
|
};
|
|
91
97
|
|
|
92
98
|
/** @internal */
|
|
@@ -103,7 +109,7 @@ export const SubscriberResponseDto$inboundSchema: z.ZodType<
|
|
|
103
109
|
avatar: z.string().optional(),
|
|
104
110
|
locale: z.string().optional(),
|
|
105
111
|
subscriberId: z.string(),
|
|
106
|
-
channels: z.array(
|
|
112
|
+
channels: z.array(ChannelSettingsDto$inboundSchema).optional(),
|
|
107
113
|
topics: z.array(z.string()).optional(),
|
|
108
114
|
isOnline: z.boolean().optional(),
|
|
109
115
|
lastOnlineAt: z.string().optional(),
|
|
@@ -113,6 +119,7 @@ export const SubscriberResponseDto$inboundSchema: z.ZodType<
|
|
|
113
119
|
createdAt: z.string(),
|
|
114
120
|
updatedAt: z.string(),
|
|
115
121
|
__v: z.number().optional(),
|
|
122
|
+
data: z.nullable(z.record(z.any())).optional(),
|
|
116
123
|
}).transform((v) => {
|
|
117
124
|
return remap$(v, {
|
|
118
125
|
"_id": "id",
|
|
@@ -132,7 +139,7 @@ export type SubscriberResponseDto$Outbound = {
|
|
|
132
139
|
avatar?: string | undefined;
|
|
133
140
|
locale?: string | undefined;
|
|
134
141
|
subscriberId: string;
|
|
135
|
-
channels?: Array<
|
|
142
|
+
channels?: Array<ChannelSettingsDto$Outbound> | undefined;
|
|
136
143
|
topics?: Array<string> | undefined;
|
|
137
144
|
isOnline?: boolean | undefined;
|
|
138
145
|
lastOnlineAt?: string | undefined;
|
|
@@ -142,6 +149,7 @@ export type SubscriberResponseDto$Outbound = {
|
|
|
142
149
|
createdAt: string;
|
|
143
150
|
updatedAt: string;
|
|
144
151
|
__v?: number | undefined;
|
|
152
|
+
data?: { [k: string]: any } | null | undefined;
|
|
145
153
|
};
|
|
146
154
|
|
|
147
155
|
/** @internal */
|
|
@@ -158,7 +166,7 @@ export const SubscriberResponseDto$outboundSchema: z.ZodType<
|
|
|
158
166
|
avatar: z.string().optional(),
|
|
159
167
|
locale: z.string().optional(),
|
|
160
168
|
subscriberId: z.string(),
|
|
161
|
-
channels: z.array(
|
|
169
|
+
channels: z.array(ChannelSettingsDto$outboundSchema).optional(),
|
|
162
170
|
topics: z.array(z.string()).optional(),
|
|
163
171
|
isOnline: z.boolean().optional(),
|
|
164
172
|
lastOnlineAt: z.string().optional(),
|
|
@@ -168,6 +176,7 @@ export const SubscriberResponseDto$outboundSchema: z.ZodType<
|
|
|
168
176
|
createdAt: z.string(),
|
|
169
177
|
updatedAt: z.string(),
|
|
170
178
|
v: z.number().optional(),
|
|
179
|
+
data: z.nullable(z.record(z.any())).optional(),
|
|
171
180
|
}).transform((v) => {
|
|
172
181
|
return remap$(v, {
|
|
173
182
|
id: "_id",
|