@novu/api 0.0.1-alpha.193 → 0.0.1-alpha.196
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 +12 -6
- package/docs/sdks/admin/README.md +14 -12
- package/docs/sdks/authentication/README.md +14 -12
- package/docs/sdks/credentials/README.md +21 -18
- package/docs/sdks/integrations/README.md +42 -36
- package/docs/sdks/messages/README.md +21 -18
- package/docs/sdks/notifications/README.md +14 -12
- package/docs/sdks/novu/README.md +28 -24
- package/docs/sdks/novumessages/README.md +21 -18
- package/docs/sdks/novunotifications/README.md +14 -12
- package/docs/sdks/novusubscribers/README.md +21 -18
- package/docs/sdks/preferences/README.md +28 -24
- package/docs/sdks/properties/README.md +7 -6
- package/docs/sdks/stats/README.md +14 -12
- package/docs/sdks/subscribers/README.md +42 -36
- package/docs/sdks/topics/README.md +35 -30
- package/docs/sdks/webhooks/README.md +7 -6
- package/funcs/adminIdempotencyGet.d.ts +1 -1
- package/funcs/adminIdempotencyGet.d.ts.map +1 -1
- package/funcs/adminIdempotencyGet.js +3 -3
- package/funcs/adminIdempotencyGet.js.map +1 -1
- package/funcs/adminIdempotencyPost.d.ts +1 -1
- package/funcs/adminIdempotencyPost.d.ts.map +1 -1
- package/funcs/adminIdempotencyPost.js +3 -3
- package/funcs/adminIdempotencyPost.js.map +1 -1
- package/funcs/cancel.d.ts +1 -1
- package/funcs/cancel.d.ts.map +1 -1
- package/funcs/cancel.js +3 -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 +3 -3
- 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 +3 -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 +3 -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 +3 -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 +3 -3
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.d.ts +1 -1
- package/funcs/integrationsUpdate.d.ts.map +1 -1
- package/funcs/integrationsUpdate.js +3 -3
- 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 +3 -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 +3 -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 +3 -3
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/messagesRetrieve.d.ts +1 -1
- package/funcs/messagesRetrieve.d.ts.map +1 -1
- package/funcs/messagesRetrieve.js +3 -3
- package/funcs/messagesRetrieve.js.map +1 -1
- package/funcs/notificationsList.d.ts +1 -1
- package/funcs/notificationsList.d.ts.map +1 -1
- package/funcs/notificationsList.js +3 -3
- 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 +3 -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 +3 -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 +3 -3
- 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 +3 -3
- package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/subscribersUpdate.d.ts +1 -1
- package/funcs/subscribersUpdate.d.ts.map +1 -1
- package/funcs/subscribersUpdate.js +3 -3
- package/funcs/subscribersUpdate.js.map +1 -1
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.d.ts.map +1 -1
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.js +3 -3
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.js.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.d.ts.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.js +3 -3
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.js.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.d.ts.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.js +3 -3
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.js.map +1 -1
- package/funcs/topicsCreate.d.ts +1 -1
- package/funcs/topicsCreate.d.ts.map +1 -1
- package/funcs/topicsCreate.js +3 -3
- 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 +3 -3
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/topicsList.d.ts +1 -1
- package/funcs/topicsList.d.ts.map +1 -1
- package/funcs/topicsList.js +3 -3
- package/funcs/topicsList.js.map +1 -1
- package/funcs/topicsRename.d.ts +1 -1
- package/funcs/topicsRename.d.ts.map +1 -1
- package/funcs/topicsRename.js +3 -3
- 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 +3 -3
- package/funcs/topicsRetrieve.js.map +1 -1
- package/funcs/topicsSubscribersAssign.d.ts +1 -1
- package/funcs/topicsSubscribersAssign.d.ts.map +1 -1
- package/funcs/topicsSubscribersAssign.js +3 -3
- package/funcs/topicsSubscribersAssign.js.map +1 -1
- package/funcs/topicsSubscribersRemove.d.ts +1 -1
- package/funcs/topicsSubscribersRemove.d.ts.map +1 -1
- package/funcs/topicsSubscribersRemove.js +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- package/funcs/triggerBulk.js.map +1 -1
- package/hooks/novu-custom-hook.js +2 -2
- package/hooks/novu-custom-hook.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts +2 -2
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationexecutiondetailresponsedto.js +2 -2
- package/models/components/activitynotificationexecutiondetailresponsedto.js.map +1 -1
- package/models/components/activitynotificationsubscriberresponsedto.d.ts +5 -0
- package/models/components/activitynotificationsubscriberresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationsubscriberresponsedto.js +2 -0
- package/models/components/activitynotificationsubscriberresponsedto.js.map +1 -1
- package/models/operations/eventscontrollerbroadcasteventtoall.d.ts +1 -1
- package/models/operations/eventscontrollerbroadcasteventtoall.js +3 -3
- package/models/operations/eventscontrollercancel.d.ts +1 -1
- package/models/operations/eventscontrollercancel.js +3 -3
- package/models/operations/eventscontrollertrigger.d.ts +1 -1
- package/models/operations/eventscontrollertrigger.js +3 -3
- package/models/operations/eventscontrollertriggerbulk.d.ts +1 -1
- package/models/operations/eventscontrollertriggerbulk.js +3 -3
- package/models/operations/integrationscontrollercreateintegration.d.ts +1 -1
- package/models/operations/integrationscontrollercreateintegration.js +3 -3
- package/models/operations/integrationscontrollergetactiveintegrations.d.ts +1 -1
- package/models/operations/integrationscontrollergetactiveintegrations.js +3 -3
- package/models/operations/integrationscontrollergetwebhooksupportstatus.d.ts +1 -1
- package/models/operations/integrationscontrollergetwebhooksupportstatus.js +3 -3
- package/models/operations/integrationscontrollerlistintegrations.d.ts +1 -1
- package/models/operations/integrationscontrollerlistintegrations.js +3 -3
- package/models/operations/integrationscontrollerremoveintegration.d.ts +1 -1
- package/models/operations/integrationscontrollerremoveintegration.js +3 -3
- package/models/operations/integrationscontrollersetintegrationasprimary.d.ts +1 -1
- package/models/operations/integrationscontrollersetintegrationasprimary.js +3 -3
- package/models/operations/integrationscontrollerupdateintegrationbyid.d.ts +1 -1
- package/models/operations/integrationscontrollerupdateintegrationbyid.js +3 -3
- package/models/operations/messagescontrollerdeletemessage.d.ts +1 -1
- package/models/operations/messagescontrollerdeletemessage.js +3 -3
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts +1 -1
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.js +3 -3
- package/models/operations/messagescontrollergetmessages.d.ts +1 -1
- package/models/operations/messagescontrollergetmessages.js +3 -3
- package/models/operations/notificationscontrollergetactivitygraphstats.d.ts +1 -1
- package/models/operations/notificationscontrollergetactivitygraphstats.js +3 -3
- package/models/operations/notificationscontrollergetactivitystats.d.ts +1 -1
- package/models/operations/notificationscontrollergetactivitystats.js +3 -3
- package/models/operations/notificationscontrollergetnotification.d.ts +1 -1
- package/models/operations/notificationscontrollergetnotification.js +3 -3
- package/models/operations/notificationscontrollerlistnotifications.d.ts +1 -1
- package/models/operations/notificationscontrollerlistnotifications.js +3 -3
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts +1 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.js +3 -3
- package/models/operations/subscriberscontrollerchataccessoauth.d.ts +1 -1
- package/models/operations/subscriberscontrollerchataccessoauth.js +3 -3
- package/models/operations/subscriberscontrollerchatoauthcallback.d.ts +1 -1
- package/models/operations/subscriberscontrollerchatoauthcallback.js +3 -3
- package/models/operations/subscriberscontrollercreatesubscriber.d.ts +1 -1
- package/models/operations/subscriberscontrollercreatesubscriber.js +3 -3
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts +1 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js +3 -3
- package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts +1 -1
- package/models/operations/subscriberscontrollergetnotificationsfeed.js +3 -3
- package/models/operations/subscriberscontrollergetsubscriber.d.ts +1 -1
- package/models/operations/subscriberscontrollergetsubscriber.js +3 -3
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts +1 -1
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js +3 -3
- package/models/operations/subscriberscontrollergetunseencount.d.ts +1 -1
- package/models/operations/subscriberscontrollergetunseencount.js +3 -3
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts +1 -1
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.js +3 -3
- package/models/operations/subscriberscontrollerlistsubscribers.d.ts +1 -1
- package/models/operations/subscriberscontrollerlistsubscribers.js +3 -3
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts +1 -1
- package/models/operations/subscriberscontrollermarkactionasseen.js +3 -3
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts +1 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.js +3 -3
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts +1 -1
- package/models/operations/subscriberscontrollermarkmessagesas.js +3 -3
- package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts +1 -1
- package/models/operations/subscriberscontrollermodifysubscriberchannel.js +3 -3
- package/models/operations/subscriberscontrollerremovesubscriber.d.ts +1 -1
- package/models/operations/subscriberscontrollerremovesubscriber.js +3 -3
- package/models/operations/subscriberscontrollerupdatesubscriber.d.ts +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriber.js +3 -3
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.js +3 -3
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js +3 -3
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js +3 -3
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.js +3 -3
- package/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.d.ts +1 -1
- package/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.js +3 -3
- package/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.d.ts +1 -1
- package/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.js +3 -3
- package/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.d.ts +1 -1
- package/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.js +3 -3
- package/models/operations/testingcontrolleridempotency.d.ts +1 -1
- package/models/operations/testingcontrolleridempotency.js +3 -3
- package/models/operations/testingcontrolleridempotencyget.d.ts +1 -1
- package/models/operations/testingcontrolleridempotencyget.js +3 -3
- package/models/operations/topicscontrollerassign.d.ts +1 -1
- package/models/operations/topicscontrollerassign.js +3 -3
- package/models/operations/topicscontrollercreatetopic.d.ts +1 -1
- package/models/operations/topicscontrollercreatetopic.js +3 -3
- package/models/operations/topicscontrollerdeletetopic.d.ts +1 -1
- package/models/operations/topicscontrollerdeletetopic.js +3 -3
- package/models/operations/topicscontrollergettopic.d.ts +1 -1
- package/models/operations/topicscontrollergettopic.js +3 -3
- package/models/operations/topicscontrollergettopicsubscriber.d.ts +1 -1
- package/models/operations/topicscontrollergettopicsubscriber.js +3 -3
- package/models/operations/topicscontrollerlisttopics.d.ts +1 -1
- package/models/operations/topicscontrollerlisttopics.js +3 -3
- package/models/operations/topicscontrollerremovesubscribers.d.ts +1 -1
- package/models/operations/topicscontrollerremovesubscribers.js +3 -3
- package/models/operations/topicscontrollerrenametopic.d.ts +1 -1
- package/models/operations/topicscontrollerrenametopic.js +3 -3
- package/package.json +1 -1
- package/src/funcs/adminIdempotencyGet.ts +12 -7
- package/src/funcs/adminIdempotencyPost.ts +12 -7
- package/src/funcs/cancel.ts +12 -7
- package/src/funcs/integrationsCreate.ts +12 -7
- package/src/funcs/integrationsDelete.ts +12 -7
- package/src/funcs/integrationsList.ts +12 -7
- package/src/funcs/integrationsListActive.ts +12 -7
- package/src/funcs/integrationsSetAsPrimary.ts +12 -7
- package/src/funcs/integrationsUpdate.ts +12 -7
- package/src/funcs/integrationsWebhooksRetrieve.ts +12 -7
- package/src/funcs/messagesDelete.ts +12 -7
- package/src/funcs/messagesDeleteByTransactionId.ts +12 -7
- package/src/funcs/messagesRetrieve.ts +12 -7
- package/src/funcs/notificationsList.ts +12 -7
- package/src/funcs/notificationsRetrieve.ts +12 -7
- package/src/funcs/notificationsStatsGraph.ts +12 -7
- package/src/funcs/notificationsStatsRetrieve.ts +12 -7
- package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +12 -7
- package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +12 -7
- package/src/funcs/subscribersCreate.ts +12 -7
- package/src/funcs/subscribersCreateBulk.ts +12 -7
- package/src/funcs/subscribersCredentialsAppend.ts +12 -7
- package/src/funcs/subscribersCredentialsDelete.ts +12 -7
- package/src/funcs/subscribersCredentialsUpdate.ts +12 -7
- package/src/funcs/subscribersDelete.ts +12 -7
- package/src/funcs/subscribersList.ts +13 -7
- package/src/funcs/subscribersMessagesMarkAll.ts +12 -7
- package/src/funcs/subscribersMessagesMarkAllAs.ts +12 -7
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +12 -7
- package/src/funcs/subscribersNotificationsFeed.ts +12 -7
- package/src/funcs/subscribersNotificationsUnseenCount.ts +12 -7
- package/src/funcs/subscribersPreferencesList.ts +12 -7
- package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +12 -7
- package/src/funcs/subscribersPreferencesUpdate.ts +12 -7
- package/src/funcs/subscribersPreferencesUpdateGlobal.ts +12 -7
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +12 -7
- package/src/funcs/subscribersRetrieve.ts +12 -7
- package/src/funcs/subscribersUpdate.ts +12 -7
- package/src/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.ts +6 -5
- package/src/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.ts +6 -5
- package/src/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.ts +6 -5
- package/src/funcs/topicsCreate.ts +12 -7
- package/src/funcs/topicsDelete.ts +12 -7
- package/src/funcs/topicsList.ts +12 -7
- package/src/funcs/topicsRename.ts +12 -7
- package/src/funcs/topicsRetrieve.ts +12 -7
- package/src/funcs/topicsSubscribersAssign.ts +12 -7
- package/src/funcs/topicsSubscribersRemove.ts +12 -7
- package/src/funcs/topicsSubscribersRetrieve.ts +12 -7
- package/src/funcs/trigger.ts +12 -7
- package/src/funcs/triggerBroadcast.ts +12 -7
- package/src/funcs/triggerBulk.ts +12 -7
- package/src/hooks/novu-custom-hook.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/models/components/activitynotificationexecutiondetailresponsedto.ts +4 -4
- package/src/models/components/activitynotificationsubscriberresponsedto.ts +7 -0
- package/src/models/operations/eventscontrollerbroadcasteventtoall.ts +4 -4
- package/src/models/operations/eventscontrollercancel.ts +4 -4
- package/src/models/operations/eventscontrollertrigger.ts +4 -4
- package/src/models/operations/eventscontrollertriggerbulk.ts +4 -4
- package/src/models/operations/integrationscontrollercreateintegration.ts +4 -4
- package/src/models/operations/integrationscontrollergetactiveintegrations.ts +4 -4
- package/src/models/operations/integrationscontrollergetwebhooksupportstatus.ts +4 -4
- package/src/models/operations/integrationscontrollerlistintegrations.ts +4 -4
- package/src/models/operations/integrationscontrollerremoveintegration.ts +4 -4
- package/src/models/operations/integrationscontrollersetintegrationasprimary.ts +4 -4
- package/src/models/operations/integrationscontrollerupdateintegrationbyid.ts +4 -4
- package/src/models/operations/messagescontrollerdeletemessage.ts +4 -4
- package/src/models/operations/messagescontrollerdeletemessagesbytransactionid.ts +4 -4
- package/src/models/operations/messagescontrollergetmessages.ts +4 -4
- package/src/models/operations/notificationscontrollergetactivitygraphstats.ts +4 -4
- package/src/models/operations/notificationscontrollergetactivitystats.ts +4 -4
- package/src/models/operations/notificationscontrollergetnotification.ts +4 -4
- package/src/models/operations/notificationscontrollerlistnotifications.ts +4 -4
- package/src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts +4 -4
- package/src/models/operations/subscriberscontrollerchataccessoauth.ts +4 -4
- package/src/models/operations/subscriberscontrollerchatoauthcallback.ts +4 -4
- package/src/models/operations/subscriberscontrollercreatesubscriber.ts +4 -4
- package/src/models/operations/subscriberscontrollerdeletesubscribercredentials.ts +4 -4
- package/src/models/operations/subscriberscontrollergetnotificationsfeed.ts +4 -4
- package/src/models/operations/subscriberscontrollergetsubscriber.ts +4 -4
- package/src/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.ts +4 -4
- package/src/models/operations/subscriberscontrollergetunseencount.ts +4 -4
- package/src/models/operations/subscriberscontrollerlistsubscriberpreferences.ts +4 -4
- package/src/models/operations/subscriberscontrollerlistsubscribers.ts +4 -4
- package/src/models/operations/subscriberscontrollermarkactionasseen.ts +4 -4
- package/src/models/operations/subscriberscontrollermarkallunreadasread.ts +4 -4
- package/src/models/operations/subscriberscontrollermarkmessagesas.ts +4 -4
- package/src/models/operations/subscriberscontrollermodifysubscriberchannel.ts +4 -4
- package/src/models/operations/subscriberscontrollerremovesubscriber.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriber.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriberchannel.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriberonlineflag.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriberpreference.ts +4 -4
- package/src/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.ts +4 -4
- package/src/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.ts +4 -4
- package/src/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.ts +4 -4
- package/src/models/operations/testingcontrolleridempotency.ts +4 -4
- package/src/models/operations/testingcontrolleridempotencyget.ts +4 -4
- package/src/models/operations/topicscontrollerassign.ts +4 -4
- package/src/models/operations/topicscontrollercreatetopic.ts +4 -4
- package/src/models/operations/topicscontrollerdeletetopic.ts +4 -4
- package/src/models/operations/topicscontrollergettopic.ts +4 -4
- package/src/models/operations/topicscontrollergettopicsubscriber.ts +4 -4
- package/src/models/operations/topicscontrollerlisttopics.ts +4 -4
- package/src/models/operations/topicscontrollerremovesubscribers.ts +4 -4
- package/src/models/operations/topicscontrollerrenametopic.ts +4 -4
|
@@ -40,6 +40,7 @@ export async function topicsRetrieve(
|
|
|
40
40
|
| errors.ErrorDto
|
|
41
41
|
| errors.ErrorDto
|
|
42
42
|
| errors.ValidationErrorDto
|
|
43
|
+
| errors.ErrorDto
|
|
43
44
|
| SDKError
|
|
44
45
|
| SDKValidationError
|
|
45
46
|
| UnexpectedClientError
|
|
@@ -77,9 +78,9 @@ export async function topicsRetrieve(
|
|
|
77
78
|
|
|
78
79
|
const headers = new Headers(compactMap({
|
|
79
80
|
Accept: "application/json",
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
payload["
|
|
81
|
+
"idempotency-key": encodeSimple(
|
|
82
|
+
"idempotency-key",
|
|
83
|
+
payload["idempotency-key"],
|
|
83
84
|
{ explode: false, charEncoding: "none" },
|
|
84
85
|
),
|
|
85
86
|
}));
|
|
@@ -108,7 +109,7 @@ export async function topicsRetrieve(
|
|
|
108
109
|
retryConnectionErrors: true,
|
|
109
110
|
}
|
|
110
111
|
|| { strategy: "none" },
|
|
111
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
112
|
+
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"],
|
|
112
113
|
};
|
|
113
114
|
|
|
114
115
|
const requestRes = client._createRequest(context, {
|
|
@@ -161,6 +162,7 @@ export async function topicsRetrieve(
|
|
|
161
162
|
| errors.ErrorDto
|
|
162
163
|
| errors.ErrorDto
|
|
163
164
|
| errors.ValidationErrorDto
|
|
165
|
+
| errors.ErrorDto
|
|
164
166
|
| SDKError
|
|
165
167
|
| SDKValidationError
|
|
166
168
|
| UnexpectedClientError
|
|
@@ -174,14 +176,17 @@ export async function topicsRetrieve(
|
|
|
174
176
|
key: "Result",
|
|
175
177
|
}),
|
|
176
178
|
M.jsonErr(
|
|
177
|
-
[400, 401, 403, 404, 405, 409, 413, 415
|
|
179
|
+
[400, 401, 403, 404, 405, 409, 413, 415],
|
|
178
180
|
errors.ErrorDto$inboundSchema,
|
|
179
181
|
{ hdrs: true },
|
|
180
182
|
),
|
|
181
183
|
M.jsonErr(414, errors.ErrorDto$inboundSchema),
|
|
182
184
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
183
|
-
M.fail(
|
|
184
|
-
M.
|
|
185
|
+
M.fail(429),
|
|
186
|
+
M.jsonErr(500, errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
187
|
+
M.fail(503),
|
|
188
|
+
M.fail("4XX"),
|
|
189
|
+
M.fail("5XX"),
|
|
185
190
|
)(response, { extraFields: responseFields });
|
|
186
191
|
if (!result.ok) {
|
|
187
192
|
return result;
|
|
@@ -42,6 +42,7 @@ export async function topicsSubscribersAssign(
|
|
|
42
42
|
| errors.ErrorDto
|
|
43
43
|
| errors.ErrorDto
|
|
44
44
|
| errors.ValidationErrorDto
|
|
45
|
+
| errors.ErrorDto
|
|
45
46
|
| SDKError
|
|
46
47
|
| SDKValidationError
|
|
47
48
|
| UnexpectedClientError
|
|
@@ -83,9 +84,9 @@ export async function topicsSubscribersAssign(
|
|
|
83
84
|
const headers = new Headers(compactMap({
|
|
84
85
|
"Content-Type": "application/json",
|
|
85
86
|
Accept: "application/json",
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
payload["
|
|
87
|
+
"idempotency-key": encodeSimple(
|
|
88
|
+
"idempotency-key",
|
|
89
|
+
payload["idempotency-key"],
|
|
89
90
|
{ explode: false, charEncoding: "none" },
|
|
90
91
|
),
|
|
91
92
|
}));
|
|
@@ -114,7 +115,7 @@ export async function topicsSubscribersAssign(
|
|
|
114
115
|
retryConnectionErrors: true,
|
|
115
116
|
}
|
|
116
117
|
|| { strategy: "none" },
|
|
117
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
118
|
+
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"],
|
|
118
119
|
};
|
|
119
120
|
|
|
120
121
|
const requestRes = client._createRequest(context, {
|
|
@@ -167,6 +168,7 @@ export async function topicsSubscribersAssign(
|
|
|
167
168
|
| errors.ErrorDto
|
|
168
169
|
| errors.ErrorDto
|
|
169
170
|
| errors.ValidationErrorDto
|
|
171
|
+
| errors.ErrorDto
|
|
170
172
|
| SDKError
|
|
171
173
|
| SDKValidationError
|
|
172
174
|
| UnexpectedClientError
|
|
@@ -180,14 +182,17 @@ export async function topicsSubscribersAssign(
|
|
|
180
182
|
key: "Result",
|
|
181
183
|
}),
|
|
182
184
|
M.jsonErr(
|
|
183
|
-
[400, 401, 403, 404, 405, 409, 413, 415
|
|
185
|
+
[400, 401, 403, 404, 405, 409, 413, 415],
|
|
184
186
|
errors.ErrorDto$inboundSchema,
|
|
185
187
|
{ hdrs: true },
|
|
186
188
|
),
|
|
187
189
|
M.jsonErr(414, errors.ErrorDto$inboundSchema),
|
|
188
190
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
189
|
-
M.fail(
|
|
190
|
-
M.
|
|
191
|
+
M.fail(429),
|
|
192
|
+
M.jsonErr(500, errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
193
|
+
M.fail(503),
|
|
194
|
+
M.fail("4XX"),
|
|
195
|
+
M.fail("5XX"),
|
|
191
196
|
)(response, { extraFields: responseFields });
|
|
192
197
|
if (!result.ok) {
|
|
193
198
|
return result;
|
|
@@ -42,6 +42,7 @@ export async function topicsSubscribersRemove(
|
|
|
42
42
|
| errors.ErrorDto
|
|
43
43
|
| errors.ErrorDto
|
|
44
44
|
| errors.ValidationErrorDto
|
|
45
|
+
| errors.ErrorDto
|
|
45
46
|
| SDKError
|
|
46
47
|
| SDKValidationError
|
|
47
48
|
| UnexpectedClientError
|
|
@@ -87,9 +88,9 @@ export async function topicsSubscribersRemove(
|
|
|
87
88
|
const headers = new Headers(compactMap({
|
|
88
89
|
"Content-Type": "application/json",
|
|
89
90
|
Accept: "application/json",
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
payload["
|
|
91
|
+
"idempotency-key": encodeSimple(
|
|
92
|
+
"idempotency-key",
|
|
93
|
+
payload["idempotency-key"],
|
|
93
94
|
{ explode: false, charEncoding: "none" },
|
|
94
95
|
),
|
|
95
96
|
}));
|
|
@@ -118,7 +119,7 @@ export async function topicsSubscribersRemove(
|
|
|
118
119
|
retryConnectionErrors: true,
|
|
119
120
|
}
|
|
120
121
|
|| { strategy: "none" },
|
|
121
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
122
|
+
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"],
|
|
122
123
|
};
|
|
123
124
|
|
|
124
125
|
const requestRes = client._createRequest(context, {
|
|
@@ -171,6 +172,7 @@ export async function topicsSubscribersRemove(
|
|
|
171
172
|
| errors.ErrorDto
|
|
172
173
|
| errors.ErrorDto
|
|
173
174
|
| errors.ValidationErrorDto
|
|
175
|
+
| errors.ErrorDto
|
|
174
176
|
| SDKError
|
|
175
177
|
| SDKValidationError
|
|
176
178
|
| UnexpectedClientError
|
|
@@ -186,14 +188,17 @@ export async function topicsSubscribersRemove(
|
|
|
186
188
|
{ hdrs: true },
|
|
187
189
|
),
|
|
188
190
|
M.jsonErr(
|
|
189
|
-
[400, 401, 403, 404, 405, 409, 413, 415
|
|
191
|
+
[400, 401, 403, 404, 405, 409, 413, 415],
|
|
190
192
|
errors.ErrorDto$inboundSchema,
|
|
191
193
|
{ hdrs: true },
|
|
192
194
|
),
|
|
193
195
|
M.jsonErr(414, errors.ErrorDto$inboundSchema),
|
|
194
196
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
195
|
-
M.fail(
|
|
196
|
-
M.
|
|
197
|
+
M.fail(429),
|
|
198
|
+
M.jsonErr(500, errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
199
|
+
M.fail(503),
|
|
200
|
+
M.fail("4XX"),
|
|
201
|
+
M.fail("5XX"),
|
|
197
202
|
)(response, { extraFields: responseFields });
|
|
198
203
|
if (!result.ok) {
|
|
199
204
|
return result;
|
|
@@ -41,6 +41,7 @@ export async function topicsSubscribersRetrieve(
|
|
|
41
41
|
| errors.ErrorDto
|
|
42
42
|
| errors.ErrorDto
|
|
43
43
|
| errors.ValidationErrorDto
|
|
44
|
+
| errors.ErrorDto
|
|
44
45
|
| SDKError
|
|
45
46
|
| SDKValidationError
|
|
46
47
|
| UnexpectedClientError
|
|
@@ -88,9 +89,9 @@ export async function topicsSubscribersRetrieve(
|
|
|
88
89
|
|
|
89
90
|
const headers = new Headers(compactMap({
|
|
90
91
|
Accept: "application/json",
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
payload["
|
|
92
|
+
"idempotency-key": encodeSimple(
|
|
93
|
+
"idempotency-key",
|
|
94
|
+
payload["idempotency-key"],
|
|
94
95
|
{ explode: false, charEncoding: "none" },
|
|
95
96
|
),
|
|
96
97
|
}));
|
|
@@ -119,7 +120,7 @@ export async function topicsSubscribersRetrieve(
|
|
|
119
120
|
retryConnectionErrors: true,
|
|
120
121
|
}
|
|
121
122
|
|| { strategy: "none" },
|
|
122
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
123
|
+
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"],
|
|
123
124
|
};
|
|
124
125
|
|
|
125
126
|
const requestRes = client._createRequest(context, {
|
|
@@ -172,6 +173,7 @@ export async function topicsSubscribersRetrieve(
|
|
|
172
173
|
| errors.ErrorDto
|
|
173
174
|
| errors.ErrorDto
|
|
174
175
|
| errors.ValidationErrorDto
|
|
176
|
+
| errors.ErrorDto
|
|
175
177
|
| SDKError
|
|
176
178
|
| SDKValidationError
|
|
177
179
|
| UnexpectedClientError
|
|
@@ -186,14 +188,17 @@ export async function topicsSubscribersRetrieve(
|
|
|
186
188
|
{ hdrs: true, key: "Result" },
|
|
187
189
|
),
|
|
188
190
|
M.jsonErr(
|
|
189
|
-
[400, 401, 403, 404, 405, 409, 413, 415
|
|
191
|
+
[400, 401, 403, 404, 405, 409, 413, 415],
|
|
190
192
|
errors.ErrorDto$inboundSchema,
|
|
191
193
|
{ hdrs: true },
|
|
192
194
|
),
|
|
193
195
|
M.jsonErr(414, errors.ErrorDto$inboundSchema),
|
|
194
196
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
195
|
-
M.fail(
|
|
196
|
-
M.
|
|
197
|
+
M.fail(429),
|
|
198
|
+
M.jsonErr(500, errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
199
|
+
M.fail(503),
|
|
200
|
+
M.fail("4XX"),
|
|
201
|
+
M.fail("5XX"),
|
|
197
202
|
)(response, { extraFields: responseFields });
|
|
198
203
|
if (!result.ok) {
|
|
199
204
|
return result;
|
package/src/funcs/trigger.ts
CHANGED
|
@@ -44,6 +44,7 @@ export async function trigger(
|
|
|
44
44
|
| errors.ErrorDto
|
|
45
45
|
| errors.ErrorDto
|
|
46
46
|
| errors.ValidationErrorDto
|
|
47
|
+
| errors.ErrorDto
|
|
47
48
|
| SDKError
|
|
48
49
|
| SDKValidationError
|
|
49
50
|
| UnexpectedClientError
|
|
@@ -77,9 +78,9 @@ export async function trigger(
|
|
|
77
78
|
const headers = new Headers(compactMap({
|
|
78
79
|
"Content-Type": "application/json",
|
|
79
80
|
Accept: "application/json",
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
payload["
|
|
81
|
+
"idempotency-key": encodeSimple(
|
|
82
|
+
"idempotency-key",
|
|
83
|
+
payload["idempotency-key"],
|
|
83
84
|
{ explode: false, charEncoding: "none" },
|
|
84
85
|
),
|
|
85
86
|
}));
|
|
@@ -108,7 +109,7 @@ export async function trigger(
|
|
|
108
109
|
retryConnectionErrors: true,
|
|
109
110
|
}
|
|
110
111
|
|| { strategy: "none" },
|
|
111
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
112
|
+
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"],
|
|
112
113
|
};
|
|
113
114
|
|
|
114
115
|
const requestRes = client._createRequest(context, {
|
|
@@ -161,6 +162,7 @@ export async function trigger(
|
|
|
161
162
|
| errors.ErrorDto
|
|
162
163
|
| errors.ErrorDto
|
|
163
164
|
| errors.ValidationErrorDto
|
|
165
|
+
| errors.ErrorDto
|
|
164
166
|
| SDKError
|
|
165
167
|
| SDKValidationError
|
|
166
168
|
| UnexpectedClientError
|
|
@@ -174,14 +176,17 @@ export async function trigger(
|
|
|
174
176
|
key: "Result",
|
|
175
177
|
}),
|
|
176
178
|
M.jsonErr(
|
|
177
|
-
[400, 401, 403, 404, 405, 409, 413, 415
|
|
179
|
+
[400, 401, 403, 404, 405, 409, 413, 415],
|
|
178
180
|
errors.ErrorDto$inboundSchema,
|
|
179
181
|
{ hdrs: true },
|
|
180
182
|
),
|
|
181
183
|
M.jsonErr(414, errors.ErrorDto$inboundSchema),
|
|
182
184
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
183
|
-
M.fail(
|
|
184
|
-
M.
|
|
185
|
+
M.fail(429),
|
|
186
|
+
M.jsonErr(500, errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
187
|
+
M.fail(503),
|
|
188
|
+
M.fail("4XX"),
|
|
189
|
+
M.fail("5XX"),
|
|
185
190
|
)(response, { extraFields: responseFields });
|
|
186
191
|
if (!result.ok) {
|
|
187
192
|
return result;
|
|
@@ -42,6 +42,7 @@ export async function triggerBroadcast(
|
|
|
42
42
|
| errors.ErrorDto
|
|
43
43
|
| errors.ErrorDto
|
|
44
44
|
| errors.ValidationErrorDto
|
|
45
|
+
| errors.ErrorDto
|
|
45
46
|
| SDKError
|
|
46
47
|
| SDKValidationError
|
|
47
48
|
| UnexpectedClientError
|
|
@@ -76,9 +77,9 @@ export async function triggerBroadcast(
|
|
|
76
77
|
const headers = new Headers(compactMap({
|
|
77
78
|
"Content-Type": "application/json",
|
|
78
79
|
Accept: "application/json",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
payload["
|
|
80
|
+
"idempotency-key": encodeSimple(
|
|
81
|
+
"idempotency-key",
|
|
82
|
+
payload["idempotency-key"],
|
|
82
83
|
{ explode: false, charEncoding: "none" },
|
|
83
84
|
),
|
|
84
85
|
}));
|
|
@@ -107,7 +108,7 @@ export async function triggerBroadcast(
|
|
|
107
108
|
retryConnectionErrors: true,
|
|
108
109
|
}
|
|
109
110
|
|| { strategy: "none" },
|
|
110
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
111
|
+
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"],
|
|
111
112
|
};
|
|
112
113
|
|
|
113
114
|
const requestRes = client._createRequest(context, {
|
|
@@ -160,6 +161,7 @@ export async function triggerBroadcast(
|
|
|
160
161
|
| errors.ErrorDto
|
|
161
162
|
| errors.ErrorDto
|
|
162
163
|
| errors.ValidationErrorDto
|
|
164
|
+
| errors.ErrorDto
|
|
163
165
|
| SDKError
|
|
164
166
|
| SDKValidationError
|
|
165
167
|
| UnexpectedClientError
|
|
@@ -174,14 +176,17 @@ export async function triggerBroadcast(
|
|
|
174
176
|
{ hdrs: true, key: "Result" },
|
|
175
177
|
),
|
|
176
178
|
M.jsonErr(
|
|
177
|
-
[400, 401, 403, 404, 405, 409, 413, 415
|
|
179
|
+
[400, 401, 403, 404, 405, 409, 413, 415],
|
|
178
180
|
errors.ErrorDto$inboundSchema,
|
|
179
181
|
{ hdrs: true },
|
|
180
182
|
),
|
|
181
183
|
M.jsonErr(414, errors.ErrorDto$inboundSchema),
|
|
182
184
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
183
|
-
M.fail(
|
|
184
|
-
M.
|
|
185
|
+
M.fail(429),
|
|
186
|
+
M.jsonErr(500, errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
187
|
+
M.fail(503),
|
|
188
|
+
M.fail("4XX"),
|
|
189
|
+
M.fail("5XX"),
|
|
185
190
|
)(response, { extraFields: responseFields });
|
|
186
191
|
if (!result.ok) {
|
|
187
192
|
return result;
|
package/src/funcs/triggerBulk.ts
CHANGED
|
@@ -43,6 +43,7 @@ export async function triggerBulk(
|
|
|
43
43
|
| errors.ErrorDto
|
|
44
44
|
| errors.ErrorDto
|
|
45
45
|
| errors.ValidationErrorDto
|
|
46
|
+
| errors.ErrorDto
|
|
46
47
|
| SDKError
|
|
47
48
|
| SDKValidationError
|
|
48
49
|
| UnexpectedClientError
|
|
@@ -76,9 +77,9 @@ export async function triggerBulk(
|
|
|
76
77
|
const headers = new Headers(compactMap({
|
|
77
78
|
"Content-Type": "application/json",
|
|
78
79
|
Accept: "application/json",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
payload["
|
|
80
|
+
"idempotency-key": encodeSimple(
|
|
81
|
+
"idempotency-key",
|
|
82
|
+
payload["idempotency-key"],
|
|
82
83
|
{ explode: false, charEncoding: "none" },
|
|
83
84
|
),
|
|
84
85
|
}));
|
|
@@ -107,7 +108,7 @@ export async function triggerBulk(
|
|
|
107
108
|
retryConnectionErrors: true,
|
|
108
109
|
}
|
|
109
110
|
|| { strategy: "none" },
|
|
110
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
111
|
+
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"],
|
|
111
112
|
};
|
|
112
113
|
|
|
113
114
|
const requestRes = client._createRequest(context, {
|
|
@@ -160,6 +161,7 @@ export async function triggerBulk(
|
|
|
160
161
|
| errors.ErrorDto
|
|
161
162
|
| errors.ErrorDto
|
|
162
163
|
| errors.ValidationErrorDto
|
|
164
|
+
| errors.ErrorDto
|
|
163
165
|
| SDKError
|
|
164
166
|
| SDKValidationError
|
|
165
167
|
| UnexpectedClientError
|
|
@@ -173,14 +175,17 @@ export async function triggerBulk(
|
|
|
173
175
|
key: "Result",
|
|
174
176
|
}),
|
|
175
177
|
M.jsonErr(
|
|
176
|
-
[400, 401, 403, 404, 405, 409, 413, 415
|
|
178
|
+
[400, 401, 403, 404, 405, 409, 413, 415],
|
|
177
179
|
errors.ErrorDto$inboundSchema,
|
|
178
180
|
{ hdrs: true },
|
|
179
181
|
),
|
|
180
182
|
M.jsonErr(414, errors.ErrorDto$inboundSchema),
|
|
181
183
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
182
|
-
M.fail(
|
|
183
|
-
M.
|
|
184
|
+
M.fail(429),
|
|
185
|
+
M.jsonErr(500, errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
186
|
+
M.fail(503),
|
|
187
|
+
M.fail("4XX"),
|
|
188
|
+
M.fail("5XX"),
|
|
184
189
|
)(response, { extraFields: responseFields });
|
|
185
190
|
if (!result.ok) {
|
|
186
191
|
return result;
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
export class NovuCustomHook
|
|
12
12
|
implements BeforeRequestHook, AfterSuccessHook, BeforeCreateRequestHook {
|
|
13
13
|
beforeCreateRequest(_hookCtx: HookContext, input: RequestInput): RequestInput {
|
|
14
|
-
const idempotencyKey = '
|
|
14
|
+
const idempotencyKey = 'idempotency-key';
|
|
15
15
|
const headers = input.options?.headers
|
|
16
16
|
if (!headers) {
|
|
17
17
|
return input
|
|
@@ -68,7 +68,7 @@ export class NovuCustomHook
|
|
|
68
68
|
): Record<string, string> {
|
|
69
69
|
const headersRecord = this.convertToRecord(headers);
|
|
70
70
|
|
|
71
|
-
if (!(key in headersRecord) || headersRecord[key]
|
|
71
|
+
if (!(key in headersRecord) || headersRecord[key] == '') {
|
|
72
72
|
headersRecord[key] = defaultValueFunction();
|
|
73
73
|
}
|
|
74
74
|
|
package/src/lib/config.ts
CHANGED
|
@@ -55,7 +55,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
55
55
|
export const SDK_METADATA = {
|
|
56
56
|
language: "typescript",
|
|
57
57
|
openapiDocVersion: "1.0",
|
|
58
|
-
sdkVersion: "0.0.1-alpha.
|
|
59
|
-
genVersion: "2.493.
|
|
60
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
58
|
+
sdkVersion: "0.0.1-alpha.196",
|
|
59
|
+
genVersion: "2.493.19",
|
|
60
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.196 2.493.19 1.0 @novu/api",
|
|
61
61
|
} as const;
|
|
@@ -55,7 +55,7 @@ export type ActivityNotificationExecutionDetailResponseDto = {
|
|
|
55
55
|
/**
|
|
56
56
|
* Raw data of the execution
|
|
57
57
|
*/
|
|
58
|
-
raw?: string | undefined;
|
|
58
|
+
raw?: string | null | undefined;
|
|
59
59
|
/**
|
|
60
60
|
* Source of the execution detail
|
|
61
61
|
*/
|
|
@@ -76,7 +76,7 @@ export const ActivityNotificationExecutionDetailResponseDto$inboundSchema:
|
|
|
76
76
|
isRetry: z.boolean(),
|
|
77
77
|
isTest: z.boolean(),
|
|
78
78
|
providerId: ProvidersIdEnum$inboundSchema,
|
|
79
|
-
raw: z.string().optional(),
|
|
79
|
+
raw: z.nullable(z.string()).optional(),
|
|
80
80
|
source: ExecutionDetailsSourceEnum$inboundSchema,
|
|
81
81
|
}).transform((v) => {
|
|
82
82
|
return remap$(v, {
|
|
@@ -93,7 +93,7 @@ export type ActivityNotificationExecutionDetailResponseDto$Outbound = {
|
|
|
93
93
|
isRetry: boolean;
|
|
94
94
|
isTest: boolean;
|
|
95
95
|
providerId: string;
|
|
96
|
-
raw?: string | undefined;
|
|
96
|
+
raw?: string | null | undefined;
|
|
97
97
|
source: string;
|
|
98
98
|
};
|
|
99
99
|
|
|
@@ -111,7 +111,7 @@ export const ActivityNotificationExecutionDetailResponseDto$outboundSchema:
|
|
|
111
111
|
isRetry: z.boolean(),
|
|
112
112
|
isTest: z.boolean(),
|
|
113
113
|
providerId: ProvidersIdEnum$outboundSchema,
|
|
114
|
-
raw: z.string().optional(),
|
|
114
|
+
raw: z.nullable(z.string()).optional(),
|
|
115
115
|
source: ExecutionDetailsSourceEnum$outboundSchema,
|
|
116
116
|
}).transform((v) => {
|
|
117
117
|
return remap$(v, {
|
|
@@ -16,6 +16,10 @@ export type ActivityNotificationSubscriberResponseDto = {
|
|
|
16
16
|
/**
|
|
17
17
|
* External unique identifier of the subscriber
|
|
18
18
|
*/
|
|
19
|
+
subscriberId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Internal to Novu unique identifier of the subscriber
|
|
22
|
+
*/
|
|
19
23
|
id: string;
|
|
20
24
|
/**
|
|
21
25
|
* Last name of the subscriber
|
|
@@ -38,6 +42,7 @@ export const ActivityNotificationSubscriberResponseDto$inboundSchema: z.ZodType<
|
|
|
38
42
|
unknown
|
|
39
43
|
> = z.object({
|
|
40
44
|
firstName: z.string().optional(),
|
|
45
|
+
subscriberId: z.string(),
|
|
41
46
|
_id: z.string(),
|
|
42
47
|
lastName: z.string().optional(),
|
|
43
48
|
email: z.string().optional(),
|
|
@@ -51,6 +56,7 @@ export const ActivityNotificationSubscriberResponseDto$inboundSchema: z.ZodType<
|
|
|
51
56
|
/** @internal */
|
|
52
57
|
export type ActivityNotificationSubscriberResponseDto$Outbound = {
|
|
53
58
|
firstName?: string | undefined;
|
|
59
|
+
subscriberId: string;
|
|
54
60
|
_id: string;
|
|
55
61
|
lastName?: string | undefined;
|
|
56
62
|
email?: string | undefined;
|
|
@@ -65,6 +71,7 @@ export const ActivityNotificationSubscriberResponseDto$outboundSchema:
|
|
|
65
71
|
ActivityNotificationSubscriberResponseDto
|
|
66
72
|
> = z.object({
|
|
67
73
|
firstName: z.string().optional(),
|
|
74
|
+
subscriberId: z.string(),
|
|
68
75
|
id: z.string(),
|
|
69
76
|
lastName: z.string().optional(),
|
|
70
77
|
email: z.string().optional(),
|
|
@@ -26,19 +26,19 @@ export type EventsControllerBroadcastEventToAllResponse = {
|
|
|
26
26
|
export const EventsControllerBroadcastEventToAllRequest$inboundSchema:
|
|
27
27
|
z.ZodType<EventsControllerBroadcastEventToAllRequest, z.ZodTypeDef, unknown> =
|
|
28
28
|
z.object({
|
|
29
|
-
"
|
|
29
|
+
"idempotency-key": z.string().optional(),
|
|
30
30
|
TriggerEventToAllRequestDto:
|
|
31
31
|
components.TriggerEventToAllRequestDto$inboundSchema,
|
|
32
32
|
}).transform((v) => {
|
|
33
33
|
return remap$(v, {
|
|
34
|
-
"
|
|
34
|
+
"idempotency-key": "idempotencyKey",
|
|
35
35
|
"TriggerEventToAllRequestDto": "triggerEventToAllRequestDto",
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
/** @internal */
|
|
40
40
|
export type EventsControllerBroadcastEventToAllRequest$Outbound = {
|
|
41
|
-
"
|
|
41
|
+
"idempotency-key"?: string | undefined;
|
|
42
42
|
TriggerEventToAllRequestDto: components.TriggerEventToAllRequestDto$Outbound;
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -54,7 +54,7 @@ export const EventsControllerBroadcastEventToAllRequest$outboundSchema:
|
|
|
54
54
|
components.TriggerEventToAllRequestDto$outboundSchema,
|
|
55
55
|
}).transform((v) => {
|
|
56
56
|
return remap$(v, {
|
|
57
|
-
idempotencyKey: "
|
|
57
|
+
idempotencyKey: "idempotency-key",
|
|
58
58
|
triggerEventToAllRequestDto: "TriggerEventToAllRequestDto",
|
|
59
59
|
});
|
|
60
60
|
});
|
|
@@ -29,17 +29,17 @@ export const EventsControllerCancelRequest$inboundSchema: z.ZodType<
|
|
|
29
29
|
unknown
|
|
30
30
|
> = z.object({
|
|
31
31
|
transactionId: z.string(),
|
|
32
|
-
"
|
|
32
|
+
"idempotency-key": z.string().optional(),
|
|
33
33
|
}).transform((v) => {
|
|
34
34
|
return remap$(v, {
|
|
35
|
-
"
|
|
35
|
+
"idempotency-key": "idempotencyKey",
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
/** @internal */
|
|
40
40
|
export type EventsControllerCancelRequest$Outbound = {
|
|
41
41
|
transactionId: string;
|
|
42
|
-
"
|
|
42
|
+
"idempotency-key"?: string | undefined;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
/** @internal */
|
|
@@ -52,7 +52,7 @@ export const EventsControllerCancelRequest$outboundSchema: z.ZodType<
|
|
|
52
52
|
idempotencyKey: z.string().optional(),
|
|
53
53
|
}).transform((v) => {
|
|
54
54
|
return remap$(v, {
|
|
55
|
-
idempotencyKey: "
|
|
55
|
+
idempotencyKey: "idempotency-key",
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
58
|
|
|
@@ -28,18 +28,18 @@ export const EventsControllerTriggerRequest$inboundSchema: z.ZodType<
|
|
|
28
28
|
z.ZodTypeDef,
|
|
29
29
|
unknown
|
|
30
30
|
> = z.object({
|
|
31
|
-
"
|
|
31
|
+
"idempotency-key": z.string().optional(),
|
|
32
32
|
TriggerEventRequestDto: components.TriggerEventRequestDto$inboundSchema,
|
|
33
33
|
}).transform((v) => {
|
|
34
34
|
return remap$(v, {
|
|
35
|
-
"
|
|
35
|
+
"idempotency-key": "idempotencyKey",
|
|
36
36
|
"TriggerEventRequestDto": "triggerEventRequestDto",
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
/** @internal */
|
|
41
41
|
export type EventsControllerTriggerRequest$Outbound = {
|
|
42
|
-
"
|
|
42
|
+
"idempotency-key"?: string | undefined;
|
|
43
43
|
TriggerEventRequestDto: components.TriggerEventRequestDto$Outbound;
|
|
44
44
|
};
|
|
45
45
|
|
|
@@ -53,7 +53,7 @@ export const EventsControllerTriggerRequest$outboundSchema: z.ZodType<
|
|
|
53
53
|
triggerEventRequestDto: components.TriggerEventRequestDto$outboundSchema,
|
|
54
54
|
}).transform((v) => {
|
|
55
55
|
return remap$(v, {
|
|
56
|
-
idempotencyKey: "
|
|
56
|
+
idempotencyKey: "idempotency-key",
|
|
57
57
|
triggerEventRequestDto: "TriggerEventRequestDto",
|
|
58
58
|
});
|
|
59
59
|
});
|
|
@@ -28,18 +28,18 @@ export const EventsControllerTriggerBulkRequest$inboundSchema: z.ZodType<
|
|
|
28
28
|
z.ZodTypeDef,
|
|
29
29
|
unknown
|
|
30
30
|
> = z.object({
|
|
31
|
-
"
|
|
31
|
+
"idempotency-key": z.string().optional(),
|
|
32
32
|
BulkTriggerEventDto: components.BulkTriggerEventDto$inboundSchema,
|
|
33
33
|
}).transform((v) => {
|
|
34
34
|
return remap$(v, {
|
|
35
|
-
"
|
|
35
|
+
"idempotency-key": "idempotencyKey",
|
|
36
36
|
"BulkTriggerEventDto": "bulkTriggerEventDto",
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
/** @internal */
|
|
41
41
|
export type EventsControllerTriggerBulkRequest$Outbound = {
|
|
42
|
-
"
|
|
42
|
+
"idempotency-key"?: string | undefined;
|
|
43
43
|
BulkTriggerEventDto: components.BulkTriggerEventDto$Outbound;
|
|
44
44
|
};
|
|
45
45
|
|
|
@@ -53,7 +53,7 @@ export const EventsControllerTriggerBulkRequest$outboundSchema: z.ZodType<
|
|
|
53
53
|
bulkTriggerEventDto: components.BulkTriggerEventDto$outboundSchema,
|
|
54
54
|
}).transform((v) => {
|
|
55
55
|
return remap$(v, {
|
|
56
|
-
idempotencyKey: "
|
|
56
|
+
idempotencyKey: "idempotency-key",
|
|
57
57
|
bulkTriggerEventDto: "BulkTriggerEventDto",
|
|
58
58
|
});
|
|
59
59
|
});
|
|
@@ -29,19 +29,19 @@ export const IntegrationsControllerCreateIntegrationRequest$inboundSchema:
|
|
|
29
29
|
z.ZodTypeDef,
|
|
30
30
|
unknown
|
|
31
31
|
> = z.object({
|
|
32
|
-
"
|
|
32
|
+
"idempotency-key": z.string().optional(),
|
|
33
33
|
CreateIntegrationRequestDto:
|
|
34
34
|
components.CreateIntegrationRequestDto$inboundSchema,
|
|
35
35
|
}).transform((v) => {
|
|
36
36
|
return remap$(v, {
|
|
37
|
-
"
|
|
37
|
+
"idempotency-key": "idempotencyKey",
|
|
38
38
|
"CreateIntegrationRequestDto": "createIntegrationRequestDto",
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
/** @internal */
|
|
43
43
|
export type IntegrationsControllerCreateIntegrationRequest$Outbound = {
|
|
44
|
-
"
|
|
44
|
+
"idempotency-key"?: string | undefined;
|
|
45
45
|
CreateIntegrationRequestDto: components.CreateIntegrationRequestDto$Outbound;
|
|
46
46
|
};
|
|
47
47
|
|
|
@@ -57,7 +57,7 @@ export const IntegrationsControllerCreateIntegrationRequest$outboundSchema:
|
|
|
57
57
|
components.CreateIntegrationRequestDto$outboundSchema,
|
|
58
58
|
}).transform((v) => {
|
|
59
59
|
return remap$(v, {
|
|
60
|
-
idempotencyKey: "
|
|
60
|
+
idempotencyKey: "idempotency-key",
|
|
61
61
|
createIntegrationRequestDto: "CreateIntegrationRequestDto",
|
|
62
62
|
});
|
|
63
63
|
});
|