@novu/api 0.0.1-alpha.150 → 0.0.1-alpha.155
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/README.md +1 -1
- package/docs/sdks/credentials/README.md +39 -24
- package/docs/sdks/integrations/README.md +15 -5
- package/docs/sdks/messages/README.md +8 -4
- package/docs/sdks/notifications/README.md +1 -0
- package/docs/sdks/novu/README.md +7 -3
- package/docs/sdks/novumessages/README.md +24 -14
- package/docs/sdks/novusubscribers/README.md +45 -30
- package/docs/sdks/preferences/README.md +16 -8
- package/docs/sdks/properties/README.md +11 -6
- package/docs/sdks/stats/README.md +2 -0
- package/docs/sdks/subscribers/README.md +52 -42
- package/docs/sdks/topics/README.md +15 -7
- package/docs/sdks/webhooks/README.md +1 -0
- package/funcs/cancel.d.ts +1 -1
- package/funcs/cancel.d.ts.map +1 -1
- package/funcs/cancel.js +5 -3
- package/funcs/cancel.js.map +1 -1
- package/funcs/integrationsCreate.d.ts +1 -1
- package/funcs/integrationsCreate.d.ts.map +1 -1
- package/funcs/integrationsCreate.js +13 -6
- package/funcs/integrationsCreate.js.map +1 -1
- package/funcs/integrationsDelete.d.ts +1 -1
- package/funcs/integrationsDelete.d.ts.map +1 -1
- package/funcs/integrationsDelete.js +5 -3
- package/funcs/integrationsDelete.js.map +1 -1
- package/funcs/integrationsList.d.ts +1 -1
- package/funcs/integrationsList.d.ts.map +1 -1
- package/funcs/integrationsList.js +17 -3
- package/funcs/integrationsList.js.map +1 -1
- package/funcs/integrationsListActive.d.ts +1 -1
- package/funcs/integrationsListActive.d.ts.map +1 -1
- package/funcs/integrationsListActive.js +18 -3
- package/funcs/integrationsListActive.js.map +1 -1
- package/funcs/integrationsSetAsPrimary.d.ts +1 -1
- package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
- package/funcs/integrationsSetAsPrimary.js +5 -3
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.d.ts +1 -2
- package/funcs/integrationsUpdate.d.ts.map +1 -1
- package/funcs/integrationsUpdate.js +5 -8
- package/funcs/integrationsUpdate.js.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.d.ts +1 -1
- package/funcs/integrationsWebhooksRetrieve.d.ts.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.js +5 -3
- package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
- package/funcs/messagesDelete.d.ts +1 -1
- package/funcs/messagesDelete.d.ts.map +1 -1
- package/funcs/messagesDelete.js +5 -3
- package/funcs/messagesDelete.js.map +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
- package/funcs/messagesDeleteByTransactionId.js +5 -8
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/messagesRetrieve.d.ts.map +1 -1
- package/funcs/messagesRetrieve.js +3 -2
- package/funcs/messagesRetrieve.js.map +1 -1
- package/funcs/notificationsList.d.ts.map +1 -1
- package/funcs/notificationsList.js +3 -2
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/notificationsRetrieve.d.ts +1 -1
- package/funcs/notificationsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsRetrieve.js +5 -3
- package/funcs/notificationsRetrieve.js.map +1 -1
- package/funcs/notificationsStatsGraph.d.ts +1 -1
- package/funcs/notificationsStatsGraph.d.ts.map +1 -1
- package/funcs/notificationsStatsGraph.js +5 -3
- package/funcs/notificationsStatsGraph.js.map +1 -1
- package/funcs/notificationsStatsRetrieve.d.ts +1 -1
- package/funcs/notificationsStatsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsStatsRetrieve.js +17 -3
- package/funcs/notificationsStatsRetrieve.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.js +3 -2
- package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +3 -2
- 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 +13 -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 +13 -6
- package/funcs/subscribersCreateBulk.js.map +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts +1 -2
- package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
- package/funcs/subscribersCredentialsAppend.js +5 -8
- 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 +5 -8
- package/funcs/subscribersCredentialsDelete.js.map +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts +1 -2
- package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
- package/funcs/subscribersCredentialsUpdate.js +5 -8
- package/funcs/subscribersCredentialsUpdate.js.map +1 -1
- package/funcs/subscribersDelete.d.ts +1 -1
- package/funcs/subscribersDelete.d.ts.map +1 -1
- package/funcs/subscribersDelete.js +5 -3
- package/funcs/subscribersDelete.js.map +1 -1
- package/funcs/subscribersList.d.ts +1 -1
- package/funcs/subscribersList.d.ts.map +1 -1
- package/funcs/subscribersList.js +13 -13
- package/funcs/subscribersList.js.map +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts +1 -2
- package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAll.js +5 -8
- package/funcs/subscribersMessagesMarkAll.js.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts +1 -2
- package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +5 -8
- package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +3 -2
- package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +3 -2
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +3 -2
- package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
- package/funcs/subscribersPreferencesList.d.ts +1 -1
- package/funcs/subscribersPreferencesList.d.ts.map +1 -1
- package/funcs/subscribersPreferencesList.js +5 -8
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.d.ts.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.js +3 -2
- package/funcs/subscribersPreferencesRetrieveByLevel.js.map +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdate.js +3 -2
- package/funcs/subscribersPreferencesUpdate.js.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.d.ts +1 -2
- package/funcs/subscribersPreferencesUpdateGlobal.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.js +5 -8
- package/funcs/subscribersPreferencesUpdateGlobal.js.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts +1 -2
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js +5 -8
- 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 +5 -8
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/subscribersUpdate.d.ts +1 -2
- package/funcs/subscribersUpdate.d.ts.map +1 -1
- package/funcs/subscribersUpdate.js +5 -8
- package/funcs/subscribersUpdate.js.map +1 -1
- package/funcs/topicsCreate.d.ts +1 -1
- package/funcs/topicsCreate.d.ts.map +1 -1
- package/funcs/topicsCreate.js +12 -6
- package/funcs/topicsCreate.js.map +1 -1
- package/funcs/topicsDelete.d.ts +1 -1
- package/funcs/topicsDelete.d.ts.map +1 -1
- package/funcs/topicsDelete.js +5 -3
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/topicsList.d.ts.map +1 -1
- package/funcs/topicsList.js +3 -2
- package/funcs/topicsList.js.map +1 -1
- package/funcs/topicsRename.d.ts +1 -2
- package/funcs/topicsRename.d.ts.map +1 -1
- package/funcs/topicsRename.js +5 -8
- package/funcs/topicsRename.js.map +1 -1
- package/funcs/topicsRetrieve.d.ts +1 -1
- package/funcs/topicsRetrieve.d.ts.map +1 -1
- package/funcs/topicsRetrieve.js +5 -3
- package/funcs/topicsRetrieve.js.map +1 -1
- package/funcs/topicsSubscribersAssign.d.ts +1 -2
- package/funcs/topicsSubscribersAssign.d.ts.map +1 -1
- package/funcs/topicsSubscribersAssign.js +5 -8
- package/funcs/topicsSubscribersAssign.js.map +1 -1
- package/funcs/topicsSubscribersRemove.d.ts +1 -2
- package/funcs/topicsSubscribersRemove.d.ts.map +1 -1
- package/funcs/topicsSubscribersRemove.js +5 -8
- package/funcs/topicsSubscribersRemove.js.map +1 -1
- package/funcs/topicsSubscribersRetrieve.d.ts +1 -1
- package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
- package/funcs/topicsSubscribersRetrieve.js +5 -8
- package/funcs/topicsSubscribersRetrieve.js.map +1 -1
- package/funcs/trigger.d.ts +1 -1
- package/funcs/trigger.d.ts.map +1 -1
- package/funcs/trigger.js +12 -6
- package/funcs/trigger.js.map +1 -1
- package/funcs/triggerBroadcast.d.ts +1 -1
- package/funcs/triggerBroadcast.d.ts.map +1 -1
- package/funcs/triggerBroadcast.js +13 -6
- package/funcs/triggerBroadcast.js.map +1 -1
- package/funcs/triggerBulk.d.ts +1 -1
- package/funcs/triggerBulk.d.ts.map +1 -1
- package/funcs/triggerBulk.js +12 -6
- package/funcs/triggerBulk.js.map +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/operations/eventscontrollerbroadcasteventtoall.d.ts +30 -0
- package/models/operations/eventscontrollerbroadcasteventtoall.d.ts.map +1 -1
- package/models/operations/eventscontrollerbroadcasteventtoall.js +40 -1
- package/models/operations/eventscontrollerbroadcasteventtoall.js.map +1 -1
- package/models/operations/eventscontrollercancel.d.ts +5 -0
- package/models/operations/eventscontrollercancel.d.ts.map +1 -1
- package/models/operations/eventscontrollercancel.js +10 -0
- package/models/operations/eventscontrollercancel.js.map +1 -1
- package/models/operations/eventscontrollertrigger.d.ts +30 -0
- package/models/operations/eventscontrollertrigger.d.ts.map +1 -1
- package/models/operations/eventscontrollertrigger.js +40 -1
- package/models/operations/eventscontrollertrigger.js.map +1 -1
- package/models/operations/eventscontrollertriggerbulk.d.ts +30 -0
- package/models/operations/eventscontrollertriggerbulk.d.ts.map +1 -1
- package/models/operations/eventscontrollertriggerbulk.js +40 -1
- package/models/operations/eventscontrollertriggerbulk.js.map +1 -1
- package/models/operations/integrationscontrollercreateintegration.d.ts +30 -0
- package/models/operations/integrationscontrollercreateintegration.d.ts.map +1 -1
- package/models/operations/integrationscontrollercreateintegration.js +40 -1
- package/models/operations/integrationscontrollercreateintegration.js.map +1 -1
- package/models/operations/integrationscontrollergetactiveintegrations.d.ts +28 -0
- package/models/operations/integrationscontrollergetactiveintegrations.d.ts.map +1 -1
- package/models/operations/integrationscontrollergetactiveintegrations.js +36 -1
- package/models/operations/integrationscontrollergetactiveintegrations.js.map +1 -1
- package/models/operations/integrationscontrollergetwebhooksupportstatus.d.ts +5 -0
- package/models/operations/integrationscontrollergetwebhooksupportstatus.d.ts.map +1 -1
- package/models/operations/integrationscontrollergetwebhooksupportstatus.js +10 -0
- package/models/operations/integrationscontrollergetwebhooksupportstatus.js.map +1 -1
- package/models/operations/integrationscontrollerlistintegrations.d.ts +28 -0
- package/models/operations/integrationscontrollerlistintegrations.d.ts.map +1 -1
- package/models/operations/integrationscontrollerlistintegrations.js +36 -1
- package/models/operations/integrationscontrollerlistintegrations.js.map +1 -1
- package/models/operations/integrationscontrollerremoveintegration.d.ts +5 -0
- package/models/operations/integrationscontrollerremoveintegration.d.ts.map +1 -1
- package/models/operations/integrationscontrollerremoveintegration.js +10 -0
- package/models/operations/integrationscontrollerremoveintegration.js.map +1 -1
- package/models/operations/integrationscontrollersetintegrationasprimary.d.ts +5 -0
- package/models/operations/integrationscontrollersetintegrationasprimary.d.ts.map +1 -1
- package/models/operations/integrationscontrollersetintegrationasprimary.js +10 -0
- package/models/operations/integrationscontrollersetintegrationasprimary.js.map +1 -1
- package/models/operations/integrationscontrollerupdateintegrationbyid.d.ts +5 -0
- package/models/operations/integrationscontrollerupdateintegrationbyid.d.ts.map +1 -1
- package/models/operations/integrationscontrollerupdateintegrationbyid.js +4 -0
- package/models/operations/integrationscontrollerupdateintegrationbyid.js.map +1 -1
- package/models/operations/messagescontrollerdeletemessage.d.ts +5 -0
- package/models/operations/messagescontrollerdeletemessage.d.ts.map +1 -1
- package/models/operations/messagescontrollerdeletemessage.js +10 -0
- package/models/operations/messagescontrollerdeletemessage.js.map +1 -1
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts +5 -0
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts.map +1 -1
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.js +10 -0
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.js.map +1 -1
- package/models/operations/messagescontrollergetmessages.d.ts +5 -0
- package/models/operations/messagescontrollergetmessages.d.ts.map +1 -1
- package/models/operations/messagescontrollergetmessages.js +10 -0
- package/models/operations/messagescontrollergetmessages.js.map +1 -1
- package/models/operations/notificationscontrollergetactivitygraphstats.d.ts +5 -0
- package/models/operations/notificationscontrollergetactivitygraphstats.d.ts.map +1 -1
- package/models/operations/notificationscontrollergetactivitygraphstats.js +10 -0
- package/models/operations/notificationscontrollergetactivitygraphstats.js.map +1 -1
- package/models/operations/notificationscontrollergetactivitystats.d.ts +28 -0
- package/models/operations/notificationscontrollergetactivitystats.d.ts.map +1 -1
- package/models/operations/notificationscontrollergetactivitystats.js +36 -1
- package/models/operations/notificationscontrollergetactivitystats.js.map +1 -1
- package/models/operations/notificationscontrollergetnotification.d.ts +5 -0
- package/models/operations/notificationscontrollergetnotification.d.ts.map +1 -1
- package/models/operations/notificationscontrollergetnotification.js +10 -0
- package/models/operations/notificationscontrollergetnotification.js.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.d.ts +5 -0
- package/models/operations/notificationscontrollerlistnotifications.d.ts.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.js +10 -0
- package/models/operations/notificationscontrollerlistnotifications.js.map +1 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts +30 -0
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.js +40 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.js.map +1 -1
- package/models/operations/subscriberscontrollerchataccessoauth.d.ts +5 -0
- package/models/operations/subscriberscontrollerchataccessoauth.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerchataccessoauth.js +10 -0
- package/models/operations/subscriberscontrollerchataccessoauth.js.map +1 -1
- package/models/operations/subscriberscontrollerchatoauthcallback.d.ts +5 -0
- package/models/operations/subscriberscontrollerchatoauthcallback.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerchatoauthcallback.js +10 -0
- package/models/operations/subscriberscontrollerchatoauthcallback.js.map +1 -1
- package/models/operations/subscriberscontrollercreatesubscriber.d.ts +30 -0
- package/models/operations/subscriberscontrollercreatesubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollercreatesubscriber.js +40 -1
- package/models/operations/subscriberscontrollercreatesubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts +5 -0
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js +10 -0
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js.map +1 -1
- package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts +5 -0
- package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetnotificationsfeed.js +10 -0
- package/models/operations/subscriberscontrollergetnotificationsfeed.js.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriber.d.ts +5 -0
- package/models/operations/subscriberscontrollergetsubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriber.js +10 -0
- package/models/operations/subscriberscontrollergetsubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts +5 -0
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js +10 -0
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js.map +1 -1
- package/models/operations/subscriberscontrollergetunseencount.d.ts +5 -0
- package/models/operations/subscriberscontrollergetunseencount.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetunseencount.js +10 -0
- package/models/operations/subscriberscontrollergetunseencount.js.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts +5 -0
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.js +10 -0
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.js.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscribers.d.ts +5 -0
- package/models/operations/subscriberscontrollerlistsubscribers.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscribers.js +10 -0
- package/models/operations/subscriberscontrollerlistsubscribers.js.map +1 -1
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts +5 -0
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkactionasseen.js +4 -0
- package/models/operations/subscriberscontrollermarkactionasseen.js.map +1 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts +5 -0
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.js +4 -0
- package/models/operations/subscriberscontrollermarkallunreadasread.js.map +1 -1
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts +5 -0
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkmessagesas.js +4 -0
- package/models/operations/subscriberscontrollermarkmessagesas.js.map +1 -1
- package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts +5 -0
- package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermodifysubscriberchannel.js +4 -0
- package/models/operations/subscriberscontrollermodifysubscriberchannel.js.map +1 -1
- package/models/operations/subscriberscontrollerremovesubscriber.d.ts +5 -0
- package/models/operations/subscriberscontrollerremovesubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerremovesubscriber.js +10 -0
- package/models/operations/subscriberscontrollerremovesubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriber.d.ts +5 -0
- package/models/operations/subscriberscontrollerupdatesubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriber.js +4 -0
- package/models/operations/subscriberscontrollerupdatesubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts +5 -0
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.js +4 -0
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts +5 -0
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js +4 -0
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts +5 -0
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js +4 -0
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts +5 -0
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.js +4 -0
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.js.map +1 -1
- package/models/operations/topicscontrollerassign.d.ts +5 -0
- package/models/operations/topicscontrollerassign.d.ts.map +1 -1
- package/models/operations/topicscontrollerassign.js +4 -0
- package/models/operations/topicscontrollerassign.js.map +1 -1
- package/models/operations/topicscontrollercreatetopic.d.ts +30 -0
- package/models/operations/topicscontrollercreatetopic.d.ts.map +1 -1
- package/models/operations/topicscontrollercreatetopic.js +40 -1
- package/models/operations/topicscontrollercreatetopic.js.map +1 -1
- package/models/operations/topicscontrollerdeletetopic.d.ts +5 -0
- package/models/operations/topicscontrollerdeletetopic.d.ts.map +1 -1
- package/models/operations/topicscontrollerdeletetopic.js +10 -0
- package/models/operations/topicscontrollerdeletetopic.js.map +1 -1
- package/models/operations/topicscontrollergettopic.d.ts +5 -0
- package/models/operations/topicscontrollergettopic.d.ts.map +1 -1
- package/models/operations/topicscontrollergettopic.js +10 -0
- package/models/operations/topicscontrollergettopic.js.map +1 -1
- package/models/operations/topicscontrollergettopicsubscriber.d.ts +5 -0
- package/models/operations/topicscontrollergettopicsubscriber.d.ts.map +1 -1
- package/models/operations/topicscontrollergettopicsubscriber.js +10 -0
- package/models/operations/topicscontrollergettopicsubscriber.js.map +1 -1
- package/models/operations/topicscontrollerlisttopics.d.ts +5 -0
- package/models/operations/topicscontrollerlisttopics.d.ts.map +1 -1
- package/models/operations/topicscontrollerlisttopics.js +10 -0
- package/models/operations/topicscontrollerlisttopics.js.map +1 -1
- package/models/operations/topicscontrollerremovesubscribers.d.ts +5 -0
- package/models/operations/topicscontrollerremovesubscribers.d.ts.map +1 -1
- package/models/operations/topicscontrollerremovesubscribers.js +4 -0
- package/models/operations/topicscontrollerremovesubscribers.js.map +1 -1
- package/models/operations/topicscontrollerrenametopic.d.ts +5 -0
- package/models/operations/topicscontrollerrenametopic.d.ts.map +1 -1
- package/models/operations/topicscontrollerrenametopic.js +4 -0
- package/models/operations/topicscontrollerrenametopic.js.map +1 -1
- package/package.json +1 -1
- package/sdk/credentials.d.ts +3 -4
- package/sdk/credentials.d.ts.map +1 -1
- package/sdk/credentials.js +6 -6
- package/sdk/credentials.js.map +1 -1
- package/sdk/integrations.d.ts +6 -6
- package/sdk/integrations.d.ts.map +1 -1
- package/sdk/integrations.js +12 -12
- package/sdk/integrations.js.map +1 -1
- package/sdk/messages.d.ts +2 -2
- package/sdk/messages.d.ts.map +1 -1
- package/sdk/messages.js +4 -4
- package/sdk/messages.js.map +1 -1
- package/sdk/notifications.d.ts +1 -1
- package/sdk/notifications.d.ts.map +1 -1
- package/sdk/notifications.js +2 -2
- package/sdk/notifications.js.map +1 -1
- package/sdk/novumessages.d.ts +2 -3
- package/sdk/novumessages.d.ts.map +1 -1
- package/sdk/novumessages.js +4 -4
- package/sdk/novumessages.js.map +1 -1
- package/sdk/novusubscribers.d.ts +3 -4
- package/sdk/novusubscribers.d.ts.map +1 -1
- package/sdk/novusubscribers.js +6 -6
- package/sdk/novusubscribers.js.map +1 -1
- package/sdk/preferences.d.ts +2 -3
- package/sdk/preferences.d.ts.map +1 -1
- package/sdk/preferences.js +4 -4
- package/sdk/preferences.js.map +1 -1
- package/sdk/properties.d.ts +1 -2
- package/sdk/properties.d.ts.map +1 -1
- package/sdk/properties.js +2 -2
- package/sdk/properties.js.map +1 -1
- package/sdk/sdk.d.ts +4 -4
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +8 -8
- package/sdk/sdk.js.map +1 -1
- package/sdk/stats.d.ts +2 -2
- package/sdk/stats.d.ts.map +1 -1
- package/sdk/stats.js +4 -4
- package/sdk/stats.js.map +1 -1
- package/sdk/subscribers.d.ts +6 -6
- package/sdk/subscribers.d.ts.map +1 -1
- package/sdk/subscribers.js +12 -12
- package/sdk/subscribers.js.map +1 -1
- package/sdk/topics.d.ts +4 -4
- package/sdk/topics.d.ts.map +1 -1
- package/sdk/topics.js +8 -8
- package/sdk/topics.js.map +1 -1
- package/sdk/webhooks.d.ts +1 -1
- package/sdk/webhooks.d.ts.map +1 -1
- package/sdk/webhooks.js +2 -2
- package/sdk/webhooks.js.map +1 -1
- package/src/funcs/cancel.ts +9 -2
- package/src/funcs/integrationsCreate.ts +21 -7
- package/src/funcs/integrationsDelete.ts +9 -2
- package/src/funcs/integrationsList.ts +28 -2
- package/src/funcs/integrationsListActive.ts +29 -2
- package/src/funcs/integrationsSetAsPrimary.ts +9 -2
- package/src/funcs/integrationsUpdate.ts +9 -11
- package/src/funcs/integrationsWebhooksRetrieve.ts +9 -2
- package/src/funcs/messagesDelete.ts +9 -2
- package/src/funcs/messagesDeleteByTransactionId.ts +9 -11
- package/src/funcs/messagesRetrieve.ts +8 -3
- package/src/funcs/notificationsList.ts +8 -3
- package/src/funcs/notificationsRetrieve.ts +9 -2
- package/src/funcs/notificationsStatsGraph.ts +10 -3
- package/src/funcs/notificationsStatsRetrieve.ts +28 -2
- package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +7 -2
- package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +7 -2
- package/src/funcs/subscribersCreate.ts +21 -7
- package/src/funcs/subscribersCreateBulk.ts +24 -7
- package/src/funcs/subscribersCredentialsAppend.ts +9 -13
- package/src/funcs/subscribersCredentialsDelete.ts +9 -11
- package/src/funcs/subscribersCredentialsUpdate.ts +9 -13
- package/src/funcs/subscribersDelete.ts +9 -2
- package/src/funcs/subscribersList.ts +18 -17
- package/src/funcs/subscribersMessagesMarkAll.ts +9 -11
- package/src/funcs/subscribersMessagesMarkAllAs.ts +9 -11
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +7 -2
- package/src/funcs/subscribersNotificationsFeed.ts +7 -2
- package/src/funcs/subscribersNotificationsUnseenCount.ts +7 -2
- package/src/funcs/subscribersPreferencesList.ts +9 -11
- package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +7 -2
- package/src/funcs/subscribersPreferencesUpdate.ts +7 -2
- package/src/funcs/subscribersPreferencesUpdateGlobal.ts +10 -14
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +9 -14
- package/src/funcs/subscribersRetrieve.ts +9 -10
- package/src/funcs/subscribersUpdate.ts +9 -11
- package/src/funcs/topicsCreate.ts +21 -7
- package/src/funcs/topicsDelete.ts +9 -2
- package/src/funcs/topicsList.ts +8 -3
- package/src/funcs/topicsRename.ts +9 -11
- package/src/funcs/topicsRetrieve.ts +9 -2
- package/src/funcs/topicsSubscribersAssign.ts +9 -11
- package/src/funcs/topicsSubscribersRemove.ts +9 -11
- package/src/funcs/topicsSubscribersRetrieve.ts +9 -10
- package/src/funcs/trigger.ts +21 -7
- package/src/funcs/triggerBroadcast.ts +21 -7
- package/src/funcs/triggerBulk.ts +21 -7
- package/src/lib/config.ts +2 -2
- package/src/models/operations/eventscontrollerbroadcasteventtoall.ts +87 -0
- package/src/models/operations/eventscontrollercancel.ts +15 -0
- package/src/models/operations/eventscontrollertrigger.ts +77 -0
- package/src/models/operations/eventscontrollertriggerbulk.ts +79 -0
- package/src/models/operations/integrationscontrollercreateintegration.ts +91 -0
- package/src/models/operations/integrationscontrollergetactiveintegrations.ts +83 -0
- package/src/models/operations/integrationscontrollergetwebhooksupportstatus.ts +15 -0
- package/src/models/operations/integrationscontrollerlistintegrations.ts +82 -0
- package/src/models/operations/integrationscontrollerremoveintegration.ts +15 -0
- package/src/models/operations/integrationscontrollersetintegrationasprimary.ts +15 -0
- package/src/models/operations/integrationscontrollerupdateintegrationbyid.ts +9 -0
- package/src/models/operations/messagescontrollerdeletemessage.ts +15 -0
- package/src/models/operations/messagescontrollerdeletemessagesbytransactionid.ts +15 -0
- package/src/models/operations/messagescontrollergetmessages.ts +15 -0
- package/src/models/operations/notificationscontrollergetactivitygraphstats.ts +15 -0
- package/src/models/operations/notificationscontrollergetactivitystats.ts +83 -0
- package/src/models/operations/notificationscontrollergetnotification.ts +15 -0
- package/src/models/operations/notificationscontrollerlistnotifications.ts +15 -0
- package/src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts +89 -0
- package/src/models/operations/subscriberscontrollerchataccessoauth.ts +15 -0
- package/src/models/operations/subscriberscontrollerchatoauthcallback.ts +15 -0
- package/src/models/operations/subscriberscontrollercreatesubscriber.ts +90 -0
- package/src/models/operations/subscriberscontrollerdeletesubscribercredentials.ts +15 -0
- package/src/models/operations/subscriberscontrollergetnotificationsfeed.ts +15 -0
- package/src/models/operations/subscriberscontrollergetsubscriber.ts +15 -0
- package/src/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.ts +15 -0
- package/src/models/operations/subscriberscontrollergetunseencount.ts +15 -0
- package/src/models/operations/subscriberscontrollerlistsubscriberpreferences.ts +15 -0
- package/src/models/operations/subscriberscontrollerlistsubscribers.ts +15 -0
- package/src/models/operations/subscriberscontrollermarkactionasseen.ts +9 -0
- package/src/models/operations/subscriberscontrollermarkallunreadasread.ts +9 -0
- package/src/models/operations/subscriberscontrollermarkmessagesas.ts +9 -0
- package/src/models/operations/subscriberscontrollermodifysubscriberchannel.ts +9 -0
- package/src/models/operations/subscriberscontrollerremovesubscriber.ts +15 -0
- package/src/models/operations/subscriberscontrollerupdatesubscriber.ts +9 -0
- package/src/models/operations/subscriberscontrollerupdatesubscriberchannel.ts +9 -0
- package/src/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.ts +9 -0
- package/src/models/operations/subscriberscontrollerupdatesubscriberonlineflag.ts +9 -0
- package/src/models/operations/subscriberscontrollerupdatesubscriberpreference.ts +9 -0
- package/src/models/operations/topicscontrollerassign.ts +9 -0
- package/src/models/operations/topicscontrollercreatetopic.ts +79 -0
- package/src/models/operations/topicscontrollerdeletetopic.ts +15 -0
- package/src/models/operations/topicscontrollergettopic.ts +15 -0
- package/src/models/operations/topicscontrollergettopicsubscriber.ts +15 -0
- package/src/models/operations/topicscontrollerlisttopics.ts +15 -0
- package/src/models/operations/topicscontrollerremovesubscribers.ts +9 -0
- package/src/models/operations/topicscontrollerrenametopic.ts +9 -0
- package/src/sdk/credentials.ts +6 -15
- package/src/sdk/integrations.ts +14 -6
- package/src/sdk/messages.ts +4 -4
- package/src/sdk/notifications.ts +2 -0
- package/src/sdk/novumessages.ts +4 -9
- package/src/sdk/novusubscribers.ts +6 -13
- package/src/sdk/preferences.ts +5 -10
- package/src/sdk/properties.ts +2 -6
- package/src/sdk/sdk.ts +14 -6
- package/src/sdk/stats.ts +4 -0
- package/src/sdk/subscribers.ts +16 -16
- package/src/sdk/topics.ts +10 -6
- package/src/sdk/webhooks.ts +2 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
|
-
import { encodeJSON } from "../lib/encodings.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
8
|
import { safeParse } from "../lib/schemas.js";
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -33,7 +33,8 @@ import { Result } from "../types/fp.js";
|
|
|
33
33
|
*/
|
|
34
34
|
export async function subscribersCreateBulk(
|
|
35
35
|
client: NovuCore,
|
|
36
|
-
|
|
36
|
+
bulkSubscriberCreateDto: components.BulkSubscriberCreateDto,
|
|
37
|
+
idempotencyKey?: string | undefined,
|
|
37
38
|
options?: RequestOptions,
|
|
38
39
|
): Promise<
|
|
39
40
|
Result<
|
|
@@ -49,22 +50,38 @@ export async function subscribersCreateBulk(
|
|
|
49
50
|
| ConnectionError
|
|
50
51
|
>
|
|
51
52
|
> {
|
|
53
|
+
const input: operations.SubscribersControllerBulkCreateSubscribersRequest = {
|
|
54
|
+
bulkSubscriberCreateDto: bulkSubscriberCreateDto,
|
|
55
|
+
idempotencyKey: idempotencyKey,
|
|
56
|
+
};
|
|
57
|
+
|
|
52
58
|
const parsed = safeParse(
|
|
53
|
-
|
|
54
|
-
(value) =>
|
|
59
|
+
input,
|
|
60
|
+
(value) =>
|
|
61
|
+
operations
|
|
62
|
+
.SubscribersControllerBulkCreateSubscribersRequest$outboundSchema.parse(
|
|
63
|
+
value,
|
|
64
|
+
),
|
|
55
65
|
"Input validation failed",
|
|
56
66
|
);
|
|
57
67
|
if (!parsed.ok) {
|
|
58
68
|
return parsed;
|
|
59
69
|
}
|
|
60
70
|
const payload = parsed.value;
|
|
61
|
-
const body = encodeJSON("body", payload, {
|
|
71
|
+
const body = encodeJSON("body", payload.BulkSubscriberCreateDto, {
|
|
72
|
+
explode: true,
|
|
73
|
+
});
|
|
62
74
|
|
|
63
75
|
const path = pathToFunc("/v1/subscribers/bulk")();
|
|
64
76
|
|
|
65
77
|
const headers = new Headers({
|
|
66
78
|
"Content-Type": "application/json",
|
|
67
79
|
Accept: "application/json",
|
|
80
|
+
"Idempotency-Key": encodeSimple(
|
|
81
|
+
"Idempotency-Key",
|
|
82
|
+
payload["Idempotency-Key"],
|
|
83
|
+
{ explode: false, charEncoding: "none" },
|
|
84
|
+
),
|
|
68
85
|
});
|
|
69
86
|
|
|
70
87
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -83,7 +100,7 @@ export async function subscribersCreateBulk(
|
|
|
83
100
|
|| {
|
|
84
101
|
strategy: "backoff",
|
|
85
102
|
backoff: {
|
|
86
|
-
initialInterval:
|
|
103
|
+
initialInterval: 1000,
|
|
87
104
|
maxInterval: 30000,
|
|
88
105
|
exponent: 1.5,
|
|
89
106
|
maxElapsedTime: 3600000,
|
|
@@ -91,7 +108,7 @@ export async function subscribersCreateBulk(
|
|
|
91
108
|
retryConnectionErrors: true,
|
|
92
109
|
}
|
|
93
110
|
|| { strategy: "none" },
|
|
94
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
111
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
95
112
|
};
|
|
96
113
|
|
|
97
114
|
const requestRes = client._createRequest(context, {
|
|
@@ -9,7 +9,6 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
10
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
11
|
import { pathToFunc } from "../lib/url.js";
|
|
12
|
-
import * as components from "../models/components/index.js";
|
|
13
12
|
import {
|
|
14
13
|
ConnectionError,
|
|
15
14
|
InvalidRequestError,
|
|
@@ -33,9 +32,7 @@ import { Result } from "../types/fp.js";
|
|
|
33
32
|
*/
|
|
34
33
|
export async function subscribersCredentialsAppend(
|
|
35
34
|
client: NovuCore,
|
|
36
|
-
|
|
37
|
-
components.UpdateSubscriberChannelRequestDto,
|
|
38
|
-
subscriberId: string,
|
|
35
|
+
request: operations.SubscribersControllerModifySubscriberChannelRequest,
|
|
39
36
|
options?: RequestOptions,
|
|
40
37
|
): Promise<
|
|
41
38
|
Result<
|
|
@@ -51,14 +48,8 @@ export async function subscribersCredentialsAppend(
|
|
|
51
48
|
| ConnectionError
|
|
52
49
|
>
|
|
53
50
|
> {
|
|
54
|
-
const input: operations.SubscribersControllerModifySubscriberChannelRequest =
|
|
55
|
-
{
|
|
56
|
-
updateSubscriberChannelRequestDto: updateSubscriberChannelRequestDto,
|
|
57
|
-
subscriberId: subscriberId,
|
|
58
|
-
};
|
|
59
|
-
|
|
60
51
|
const parsed = safeParse(
|
|
61
|
-
|
|
52
|
+
request,
|
|
62
53
|
(value) =>
|
|
63
54
|
operations
|
|
64
55
|
.SubscribersControllerModifySubscriberChannelRequest$outboundSchema
|
|
@@ -87,6 +78,11 @@ export async function subscribersCredentialsAppend(
|
|
|
87
78
|
const headers = new Headers({
|
|
88
79
|
"Content-Type": "application/json",
|
|
89
80
|
Accept: "application/json",
|
|
81
|
+
"Idempotency-Key": encodeSimple(
|
|
82
|
+
"Idempotency-Key",
|
|
83
|
+
payload["Idempotency-Key"],
|
|
84
|
+
{ explode: false, charEncoding: "none" },
|
|
85
|
+
),
|
|
90
86
|
});
|
|
91
87
|
|
|
92
88
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -105,7 +101,7 @@ export async function subscribersCredentialsAppend(
|
|
|
105
101
|
|| {
|
|
106
102
|
strategy: "backoff",
|
|
107
103
|
backoff: {
|
|
108
|
-
initialInterval:
|
|
104
|
+
initialInterval: 1000,
|
|
109
105
|
maxInterval: 30000,
|
|
110
106
|
exponent: 1.5,
|
|
111
107
|
maxElapsedTime: 3600000,
|
|
@@ -113,7 +109,7 @@ export async function subscribersCredentialsAppend(
|
|
|
113
109
|
retryConnectionErrors: true,
|
|
114
110
|
}
|
|
115
111
|
|| { strategy: "none" },
|
|
116
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
112
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
117
113
|
};
|
|
118
114
|
|
|
119
115
|
const requestRes = client._createRequest(context, {
|
|
@@ -30,8 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
*/
|
|
31
31
|
export async function subscribersCredentialsDelete(
|
|
32
32
|
client: NovuCore,
|
|
33
|
-
|
|
34
|
-
providerId: string,
|
|
33
|
+
request: operations.SubscribersControllerDeleteSubscriberCredentialsRequest,
|
|
35
34
|
options?: RequestOptions,
|
|
36
35
|
): Promise<
|
|
37
36
|
Result<
|
|
@@ -48,14 +47,8 @@ export async function subscribersCredentialsDelete(
|
|
|
48
47
|
| ConnectionError
|
|
49
48
|
>
|
|
50
49
|
> {
|
|
51
|
-
const input:
|
|
52
|
-
operations.SubscribersControllerDeleteSubscriberCredentialsRequest = {
|
|
53
|
-
subscriberId: subscriberId,
|
|
54
|
-
providerId: providerId,
|
|
55
|
-
};
|
|
56
|
-
|
|
57
50
|
const parsed = safeParse(
|
|
58
|
-
|
|
51
|
+
request,
|
|
59
52
|
(value) =>
|
|
60
53
|
operations
|
|
61
54
|
.SubscribersControllerDeleteSubscriberCredentialsRequest$outboundSchema
|
|
@@ -85,6 +78,11 @@ export async function subscribersCredentialsDelete(
|
|
|
85
78
|
|
|
86
79
|
const headers = new Headers({
|
|
87
80
|
Accept: "application/json",
|
|
81
|
+
"Idempotency-Key": encodeSimple(
|
|
82
|
+
"Idempotency-Key",
|
|
83
|
+
payload["Idempotency-Key"],
|
|
84
|
+
{ explode: false, charEncoding: "none" },
|
|
85
|
+
),
|
|
88
86
|
});
|
|
89
87
|
|
|
90
88
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -103,7 +101,7 @@ export async function subscribersCredentialsDelete(
|
|
|
103
101
|
|| {
|
|
104
102
|
strategy: "backoff",
|
|
105
103
|
backoff: {
|
|
106
|
-
initialInterval:
|
|
104
|
+
initialInterval: 1000,
|
|
107
105
|
maxInterval: 30000,
|
|
108
106
|
exponent: 1.5,
|
|
109
107
|
maxElapsedTime: 3600000,
|
|
@@ -111,7 +109,7 @@ export async function subscribersCredentialsDelete(
|
|
|
111
109
|
retryConnectionErrors: true,
|
|
112
110
|
}
|
|
113
111
|
|| { strategy: "none" },
|
|
114
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
112
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
115
113
|
};
|
|
116
114
|
|
|
117
115
|
const requestRes = client._createRequest(context, {
|
|
@@ -9,7 +9,6 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
10
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
11
|
import { pathToFunc } from "../lib/url.js";
|
|
12
|
-
import * as components from "../models/components/index.js";
|
|
13
12
|
import {
|
|
14
13
|
ConnectionError,
|
|
15
14
|
InvalidRequestError,
|
|
@@ -31,9 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
30
|
*/
|
|
32
31
|
export async function subscribersCredentialsUpdate(
|
|
33
32
|
client: NovuCore,
|
|
34
|
-
|
|
35
|
-
components.UpdateSubscriberChannelRequestDto,
|
|
36
|
-
subscriberId: string,
|
|
33
|
+
request: operations.SubscribersControllerUpdateSubscriberChannelRequest,
|
|
37
34
|
options?: RequestOptions,
|
|
38
35
|
): Promise<
|
|
39
36
|
Result<
|
|
@@ -49,14 +46,8 @@ export async function subscribersCredentialsUpdate(
|
|
|
49
46
|
| ConnectionError
|
|
50
47
|
>
|
|
51
48
|
> {
|
|
52
|
-
const input: operations.SubscribersControllerUpdateSubscriberChannelRequest =
|
|
53
|
-
{
|
|
54
|
-
updateSubscriberChannelRequestDto: updateSubscriberChannelRequestDto,
|
|
55
|
-
subscriberId: subscriberId,
|
|
56
|
-
};
|
|
57
|
-
|
|
58
49
|
const parsed = safeParse(
|
|
59
|
-
|
|
50
|
+
request,
|
|
60
51
|
(value) =>
|
|
61
52
|
operations
|
|
62
53
|
.SubscribersControllerUpdateSubscriberChannelRequest$outboundSchema
|
|
@@ -85,6 +76,11 @@ export async function subscribersCredentialsUpdate(
|
|
|
85
76
|
const headers = new Headers({
|
|
86
77
|
"Content-Type": "application/json",
|
|
87
78
|
Accept: "application/json",
|
|
79
|
+
"Idempotency-Key": encodeSimple(
|
|
80
|
+
"Idempotency-Key",
|
|
81
|
+
payload["Idempotency-Key"],
|
|
82
|
+
{ explode: false, charEncoding: "none" },
|
|
83
|
+
),
|
|
88
84
|
});
|
|
89
85
|
|
|
90
86
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -103,7 +99,7 @@ export async function subscribersCredentialsUpdate(
|
|
|
103
99
|
|| {
|
|
104
100
|
strategy: "backoff",
|
|
105
101
|
backoff: {
|
|
106
|
-
initialInterval:
|
|
102
|
+
initialInterval: 1000,
|
|
107
103
|
maxInterval: 30000,
|
|
108
104
|
exponent: 1.5,
|
|
109
105
|
maxElapsedTime: 3600000,
|
|
@@ -111,7 +107,7 @@ export async function subscribersCredentialsUpdate(
|
|
|
111
107
|
retryConnectionErrors: true,
|
|
112
108
|
}
|
|
113
109
|
|| { strategy: "none" },
|
|
114
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
110
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
115
111
|
};
|
|
116
112
|
|
|
117
113
|
const requestRes = client._createRequest(context, {
|
|
@@ -31,6 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
export async function subscribersDelete(
|
|
32
32
|
client: NovuCore,
|
|
33
33
|
subscriberId: string,
|
|
34
|
+
idempotencyKey?: string | undefined,
|
|
34
35
|
options?: RequestOptions,
|
|
35
36
|
): Promise<
|
|
36
37
|
Result<
|
|
@@ -48,6 +49,7 @@ export async function subscribersDelete(
|
|
|
48
49
|
> {
|
|
49
50
|
const input: operations.SubscribersControllerRemoveSubscriberRequest = {
|
|
50
51
|
subscriberId: subscriberId,
|
|
52
|
+
idempotencyKey: idempotencyKey,
|
|
51
53
|
};
|
|
52
54
|
|
|
53
55
|
const parsed = safeParse(
|
|
@@ -74,6 +76,11 @@ export async function subscribersDelete(
|
|
|
74
76
|
|
|
75
77
|
const headers = new Headers({
|
|
76
78
|
Accept: "application/json",
|
|
79
|
+
"Idempotency-Key": encodeSimple(
|
|
80
|
+
"Idempotency-Key",
|
|
81
|
+
payload["Idempotency-Key"],
|
|
82
|
+
{ explode: false, charEncoding: "none" },
|
|
83
|
+
),
|
|
77
84
|
});
|
|
78
85
|
|
|
79
86
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -92,7 +99,7 @@ export async function subscribersDelete(
|
|
|
92
99
|
|| {
|
|
93
100
|
strategy: "backoff",
|
|
94
101
|
backoff: {
|
|
95
|
-
initialInterval:
|
|
102
|
+
initialInterval: 1000,
|
|
96
103
|
maxInterval: 30000,
|
|
97
104
|
exponent: 1.5,
|
|
98
105
|
maxElapsedTime: 3600000,
|
|
@@ -100,7 +107,7 @@ export async function subscribersDelete(
|
|
|
100
107
|
retryConnectionErrors: true,
|
|
101
108
|
}
|
|
102
109
|
|| { strategy: "none" },
|
|
103
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
110
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
104
111
|
};
|
|
105
112
|
|
|
106
113
|
const requestRes = client._createRequest(context, {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { dlv } from "../lib/dlv.js";
|
|
7
|
-
import { encodeFormQuery } from "../lib/encodings.js";
|
|
7
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
8
8
|
import * as M from "../lib/matchers.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
10
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -37,8 +37,7 @@ import {
|
|
|
37
37
|
*/
|
|
38
38
|
export async function subscribersList(
|
|
39
39
|
client: NovuCore,
|
|
40
|
-
|
|
41
|
-
limit?: number | undefined,
|
|
40
|
+
request: operations.SubscribersControllerListSubscribersRequest,
|
|
42
41
|
options?: RequestOptions,
|
|
43
42
|
): Promise<
|
|
44
43
|
PageIterator<
|
|
@@ -57,13 +56,8 @@ export async function subscribersList(
|
|
|
57
56
|
{ page: number }
|
|
58
57
|
>
|
|
59
58
|
> {
|
|
60
|
-
const input: operations.SubscribersControllerListSubscribersRequest = {
|
|
61
|
-
page: page,
|
|
62
|
-
limit: limit,
|
|
63
|
-
};
|
|
64
|
-
|
|
65
59
|
const parsed = safeParse(
|
|
66
|
-
|
|
60
|
+
request,
|
|
67
61
|
(value) =>
|
|
68
62
|
operations.SubscribersControllerListSubscribersRequest$outboundSchema
|
|
69
63
|
.parse(value),
|
|
@@ -84,6 +78,11 @@ export async function subscribersList(
|
|
|
84
78
|
|
|
85
79
|
const headers = new Headers({
|
|
86
80
|
Accept: "application/json",
|
|
81
|
+
"Idempotency-Key": encodeSimple(
|
|
82
|
+
"Idempotency-Key",
|
|
83
|
+
payload["Idempotency-Key"],
|
|
84
|
+
{ explode: false, charEncoding: "none" },
|
|
85
|
+
),
|
|
87
86
|
});
|
|
88
87
|
|
|
89
88
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -102,7 +101,7 @@ export async function subscribersList(
|
|
|
102
101
|
|| {
|
|
103
102
|
strategy: "backoff",
|
|
104
103
|
backoff: {
|
|
105
|
-
initialInterval:
|
|
104
|
+
initialInterval: 1000,
|
|
106
105
|
maxInterval: 30000,
|
|
107
106
|
exponent: 1.5,
|
|
108
107
|
maxElapsedTime: 3600000,
|
|
@@ -110,7 +109,7 @@ export async function subscribersList(
|
|
|
110
109
|
retryConnectionErrors: true,
|
|
111
110
|
}
|
|
112
111
|
|| { strategy: "none" },
|
|
113
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
112
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
114
113
|
};
|
|
115
114
|
|
|
116
115
|
const requestRes = client._createRequest(context, {
|
|
@@ -188,7 +187,7 @@ export async function subscribersList(
|
|
|
188
187
|
>;
|
|
189
188
|
"~next"?: { page: number };
|
|
190
189
|
} => {
|
|
191
|
-
const page =
|
|
190
|
+
const page = request?.page ?? 1;
|
|
192
191
|
const nextPage = page + 1;
|
|
193
192
|
|
|
194
193
|
if (!responseData) {
|
|
@@ -198,7 +197,7 @@ export async function subscribersList(
|
|
|
198
197
|
if (!Array.isArray(results) || !results.length) {
|
|
199
198
|
return { next: () => null };
|
|
200
199
|
}
|
|
201
|
-
const limit =
|
|
200
|
+
const limit = request?.limit ?? 10;
|
|
202
201
|
if (results.length < limit) {
|
|
203
202
|
return { next: () => null };
|
|
204
203
|
}
|
|
@@ -206,14 +205,16 @@ export async function subscribersList(
|
|
|
206
205
|
const nextVal = () =>
|
|
207
206
|
subscribersList(
|
|
208
207
|
client,
|
|
209
|
-
|
|
210
|
-
|
|
208
|
+
{
|
|
209
|
+
...request,
|
|
210
|
+
page: nextPage,
|
|
211
|
+
},
|
|
211
212
|
options,
|
|
212
213
|
);
|
|
213
214
|
|
|
214
215
|
return { next: nextVal, "~next": { page: nextPage } };
|
|
215
216
|
};
|
|
216
217
|
|
|
217
|
-
const page
|
|
218
|
-
return { ...page
|
|
218
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
219
|
+
return { ...page, ...createPageIterator(page, (v) => !v.ok) };
|
|
219
220
|
}
|
|
@@ -9,7 +9,6 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
10
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
11
|
import { pathToFunc } from "../lib/url.js";
|
|
12
|
-
import * as components from "../models/components/index.js";
|
|
13
12
|
import {
|
|
14
13
|
ConnectionError,
|
|
15
14
|
InvalidRequestError,
|
|
@@ -28,8 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
27
|
*/
|
|
29
28
|
export async function subscribersMessagesMarkAll(
|
|
30
29
|
client: NovuCore,
|
|
31
|
-
|
|
32
|
-
subscriberId: string,
|
|
30
|
+
request: operations.SubscribersControllerMarkAllUnreadAsReadRequest,
|
|
33
31
|
options?: RequestOptions,
|
|
34
32
|
): Promise<
|
|
35
33
|
Result<
|
|
@@ -45,13 +43,8 @@ export async function subscribersMessagesMarkAll(
|
|
|
45
43
|
| ConnectionError
|
|
46
44
|
>
|
|
47
45
|
> {
|
|
48
|
-
const input: operations.SubscribersControllerMarkAllUnreadAsReadRequest = {
|
|
49
|
-
markAllMessageAsRequestDto: markAllMessageAsRequestDto,
|
|
50
|
-
subscriberId: subscriberId,
|
|
51
|
-
};
|
|
52
|
-
|
|
53
46
|
const parsed = safeParse(
|
|
54
|
-
|
|
47
|
+
request,
|
|
55
48
|
(value) =>
|
|
56
49
|
operations.SubscribersControllerMarkAllUnreadAsReadRequest$outboundSchema
|
|
57
50
|
.parse(value),
|
|
@@ -79,6 +72,11 @@ export async function subscribersMessagesMarkAll(
|
|
|
79
72
|
const headers = new Headers({
|
|
80
73
|
"Content-Type": "application/json",
|
|
81
74
|
Accept: "application/json",
|
|
75
|
+
"Idempotency-Key": encodeSimple(
|
|
76
|
+
"Idempotency-Key",
|
|
77
|
+
payload["Idempotency-Key"],
|
|
78
|
+
{ explode: false, charEncoding: "none" },
|
|
79
|
+
),
|
|
82
80
|
});
|
|
83
81
|
|
|
84
82
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -97,7 +95,7 @@ export async function subscribersMessagesMarkAll(
|
|
|
97
95
|
|| {
|
|
98
96
|
strategy: "backoff",
|
|
99
97
|
backoff: {
|
|
100
|
-
initialInterval:
|
|
98
|
+
initialInterval: 1000,
|
|
101
99
|
maxInterval: 30000,
|
|
102
100
|
exponent: 1.5,
|
|
103
101
|
maxElapsedTime: 3600000,
|
|
@@ -105,7 +103,7 @@ export async function subscribersMessagesMarkAll(
|
|
|
105
103
|
retryConnectionErrors: true,
|
|
106
104
|
}
|
|
107
105
|
|| { strategy: "none" },
|
|
108
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
106
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
109
107
|
};
|
|
110
108
|
|
|
111
109
|
const requestRes = client._createRequest(context, {
|
|
@@ -9,7 +9,6 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
10
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
11
|
import { pathToFunc } from "../lib/url.js";
|
|
12
|
-
import * as components from "../models/components/index.js";
|
|
13
12
|
import {
|
|
14
13
|
ConnectionError,
|
|
15
14
|
InvalidRequestError,
|
|
@@ -28,8 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
27
|
*/
|
|
29
28
|
export async function subscribersMessagesMarkAllAs(
|
|
30
29
|
client: NovuCore,
|
|
31
|
-
|
|
32
|
-
subscriberId: string,
|
|
30
|
+
request: operations.SubscribersControllerMarkMessagesAsRequest,
|
|
33
31
|
options?: RequestOptions,
|
|
34
32
|
): Promise<
|
|
35
33
|
Result<
|
|
@@ -45,13 +43,8 @@ export async function subscribersMessagesMarkAllAs(
|
|
|
45
43
|
| ConnectionError
|
|
46
44
|
>
|
|
47
45
|
> {
|
|
48
|
-
const input: operations.SubscribersControllerMarkMessagesAsRequest = {
|
|
49
|
-
messageMarkAsRequestDto: messageMarkAsRequestDto,
|
|
50
|
-
subscriberId: subscriberId,
|
|
51
|
-
};
|
|
52
|
-
|
|
53
46
|
const parsed = safeParse(
|
|
54
|
-
|
|
47
|
+
request,
|
|
55
48
|
(value) =>
|
|
56
49
|
operations.SubscribersControllerMarkMessagesAsRequest$outboundSchema
|
|
57
50
|
.parse(value),
|
|
@@ -79,6 +72,11 @@ export async function subscribersMessagesMarkAllAs(
|
|
|
79
72
|
const headers = new Headers({
|
|
80
73
|
"Content-Type": "application/json",
|
|
81
74
|
Accept: "application/json",
|
|
75
|
+
"Idempotency-Key": encodeSimple(
|
|
76
|
+
"Idempotency-Key",
|
|
77
|
+
payload["Idempotency-Key"],
|
|
78
|
+
{ explode: false, charEncoding: "none" },
|
|
79
|
+
),
|
|
82
80
|
});
|
|
83
81
|
|
|
84
82
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -97,7 +95,7 @@ export async function subscribersMessagesMarkAllAs(
|
|
|
97
95
|
|| {
|
|
98
96
|
strategy: "backoff",
|
|
99
97
|
backoff: {
|
|
100
|
-
initialInterval:
|
|
98
|
+
initialInterval: 1000,
|
|
101
99
|
maxInterval: 30000,
|
|
102
100
|
exponent: 1.5,
|
|
103
101
|
maxElapsedTime: 3600000,
|
|
@@ -105,7 +103,7 @@ export async function subscribersMessagesMarkAllAs(
|
|
|
105
103
|
retryConnectionErrors: true,
|
|
106
104
|
}
|
|
107
105
|
|| { strategy: "none" },
|
|
108
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
106
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
109
107
|
};
|
|
110
108
|
|
|
111
109
|
const requestRes = client._createRequest(context, {
|
|
@@ -80,6 +80,11 @@ export async function subscribersMessagesUpdateAsSeen(
|
|
|
80
80
|
const headers = new Headers({
|
|
81
81
|
"Content-Type": "application/json",
|
|
82
82
|
Accept: "application/json",
|
|
83
|
+
"Idempotency-Key": encodeSimple(
|
|
84
|
+
"Idempotency-Key",
|
|
85
|
+
payload["Idempotency-Key"],
|
|
86
|
+
{ explode: false, charEncoding: "none" },
|
|
87
|
+
),
|
|
83
88
|
});
|
|
84
89
|
|
|
85
90
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -98,7 +103,7 @@ export async function subscribersMessagesUpdateAsSeen(
|
|
|
98
103
|
|| {
|
|
99
104
|
strategy: "backoff",
|
|
100
105
|
backoff: {
|
|
101
|
-
initialInterval:
|
|
106
|
+
initialInterval: 1000,
|
|
102
107
|
maxInterval: 30000,
|
|
103
108
|
exponent: 1.5,
|
|
104
109
|
maxElapsedTime: 3600000,
|
|
@@ -106,7 +111,7 @@ export async function subscribersMessagesUpdateAsSeen(
|
|
|
106
111
|
retryConnectionErrors: true,
|
|
107
112
|
}
|
|
108
113
|
|| { strategy: "none" },
|
|
109
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
114
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
110
115
|
};
|
|
111
116
|
|
|
112
117
|
const requestRes = client._createRequest(context, {
|
|
@@ -77,6 +77,11 @@ export async function subscribersNotificationsFeed(
|
|
|
77
77
|
|
|
78
78
|
const headers = new Headers({
|
|
79
79
|
Accept: "application/json",
|
|
80
|
+
"Idempotency-Key": encodeSimple(
|
|
81
|
+
"Idempotency-Key",
|
|
82
|
+
payload["Idempotency-Key"],
|
|
83
|
+
{ explode: false, charEncoding: "none" },
|
|
84
|
+
),
|
|
80
85
|
});
|
|
81
86
|
|
|
82
87
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -95,7 +100,7 @@ export async function subscribersNotificationsFeed(
|
|
|
95
100
|
|| {
|
|
96
101
|
strategy: "backoff",
|
|
97
102
|
backoff: {
|
|
98
|
-
initialInterval:
|
|
103
|
+
initialInterval: 1000,
|
|
99
104
|
maxInterval: 30000,
|
|
100
105
|
exponent: 1.5,
|
|
101
106
|
maxElapsedTime: 3600000,
|
|
@@ -103,7 +108,7 @@ export async function subscribersNotificationsFeed(
|
|
|
103
108
|
retryConnectionErrors: true,
|
|
104
109
|
}
|
|
105
110
|
|| { strategy: "none" },
|
|
106
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
111
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
107
112
|
};
|
|
108
113
|
|
|
109
114
|
const requestRes = client._createRequest(context, {
|
|
@@ -74,6 +74,11 @@ export async function subscribersNotificationsUnseenCount(
|
|
|
74
74
|
|
|
75
75
|
const headers = new Headers({
|
|
76
76
|
Accept: "application/json",
|
|
77
|
+
"Idempotency-Key": encodeSimple(
|
|
78
|
+
"Idempotency-Key",
|
|
79
|
+
payload["Idempotency-Key"],
|
|
80
|
+
{ explode: false, charEncoding: "none" },
|
|
81
|
+
),
|
|
77
82
|
});
|
|
78
83
|
|
|
79
84
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -92,7 +97,7 @@ export async function subscribersNotificationsUnseenCount(
|
|
|
92
97
|
|| {
|
|
93
98
|
strategy: "backoff",
|
|
94
99
|
backoff: {
|
|
95
|
-
initialInterval:
|
|
100
|
+
initialInterval: 1000,
|
|
96
101
|
maxInterval: 30000,
|
|
97
102
|
exponent: 1.5,
|
|
98
103
|
maxElapsedTime: 3600000,
|
|
@@ -100,7 +105,7 @@ export async function subscribersNotificationsUnseenCount(
|
|
|
100
105
|
retryConnectionErrors: true,
|
|
101
106
|
}
|
|
102
107
|
|| { strategy: "none" },
|
|
103
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
108
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
104
109
|
};
|
|
105
110
|
|
|
106
111
|
const requestRes = client._createRequest(context, {
|
|
@@ -27,8 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
*/
|
|
28
28
|
export async function subscribersPreferencesList(
|
|
29
29
|
client: NovuCore,
|
|
30
|
-
|
|
31
|
-
includeInactiveChannels?: boolean | undefined,
|
|
30
|
+
request: operations.SubscribersControllerListSubscriberPreferencesRequest,
|
|
32
31
|
options?: RequestOptions,
|
|
33
32
|
): Promise<
|
|
34
33
|
Result<
|
|
@@ -44,14 +43,8 @@ export async function subscribersPreferencesList(
|
|
|
44
43
|
| ConnectionError
|
|
45
44
|
>
|
|
46
45
|
> {
|
|
47
|
-
const input:
|
|
48
|
-
operations.SubscribersControllerListSubscriberPreferencesRequest = {
|
|
49
|
-
subscriberId: subscriberId,
|
|
50
|
-
includeInactiveChannels: includeInactiveChannels,
|
|
51
|
-
};
|
|
52
|
-
|
|
53
46
|
const parsed = safeParse(
|
|
54
|
-
|
|
47
|
+
request,
|
|
55
48
|
(value) =>
|
|
56
49
|
operations
|
|
57
50
|
.SubscribersControllerListSubscriberPreferencesRequest$outboundSchema
|
|
@@ -81,6 +74,11 @@ export async function subscribersPreferencesList(
|
|
|
81
74
|
|
|
82
75
|
const headers = new Headers({
|
|
83
76
|
Accept: "application/json",
|
|
77
|
+
"Idempotency-Key": encodeSimple(
|
|
78
|
+
"Idempotency-Key",
|
|
79
|
+
payload["Idempotency-Key"],
|
|
80
|
+
{ explode: false, charEncoding: "none" },
|
|
81
|
+
),
|
|
84
82
|
});
|
|
85
83
|
|
|
86
84
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -99,7 +97,7 @@ export async function subscribersPreferencesList(
|
|
|
99
97
|
|| {
|
|
100
98
|
strategy: "backoff",
|
|
101
99
|
backoff: {
|
|
102
|
-
initialInterval:
|
|
100
|
+
initialInterval: 1000,
|
|
103
101
|
maxInterval: 30000,
|
|
104
102
|
exponent: 1.5,
|
|
105
103
|
maxElapsedTime: 3600000,
|
|
@@ -107,7 +105,7 @@ export async function subscribersPreferencesList(
|
|
|
107
105
|
retryConnectionErrors: true,
|
|
108
106
|
}
|
|
109
107
|
|| { strategy: "none" },
|
|
110
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
108
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
111
109
|
};
|
|
112
110
|
|
|
113
111
|
const requestRes = client._createRequest(context, {
|