@novu/api 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +16 -10
- package/README.md +182 -100
- package/docs/sdks/authentication/README.md +10 -10
- package/docs/sdks/credentials/README.md +56 -12
- package/docs/sdks/integrations/README.md +18 -18
- package/docs/sdks/messages/README.md +17 -11
- package/docs/sdks/notifications/README.md +8 -38
- package/docs/sdks/novu/README.md +138 -66
- package/docs/sdks/novumessages/README.md +17 -17
- package/docs/sdks/novunotifications/README.md +14 -12
- package/docs/sdks/novusubscribers/README.md +9 -9
- package/docs/sdks/preferences/README.md +22 -22
- package/docs/sdks/properties/README.md +6 -6
- package/docs/sdks/stats/README.md +6 -6
- package/docs/sdks/subscribers/README.md +349 -37
- package/docs/sdks/topics/README.md +15 -15
- package/docs/sdks/webhooks/README.md +3 -3
- package/funcs/cancel.js +4 -4
- package/funcs/cancel.js.map +1 -1
- package/funcs/integrationsCreate.js +4 -4
- package/funcs/integrationsCreate.js.map +1 -1
- package/funcs/integrationsDelete.js +4 -4
- package/funcs/integrationsDelete.js.map +1 -1
- package/funcs/integrationsList.js +4 -4
- package/funcs/integrationsList.js.map +1 -1
- package/funcs/integrationsListActive.js +4 -4
- package/funcs/integrationsListActive.js.map +1 -1
- package/funcs/integrationsSetAsPrimary.js +4 -4
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.js +4 -4
- package/funcs/integrationsUpdate.js.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.js +4 -4
- package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
- package/funcs/messagesDelete.js +4 -4
- package/funcs/messagesDelete.js.map +1 -1
- package/funcs/messagesDeleteByTransactionId.js +4 -4
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/messagesRetrieve.js +4 -4
- package/funcs/messagesRetrieve.js.map +1 -1
- package/funcs/notificationsList.js +4 -4
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/notificationsRetrieve.js +4 -4
- package/funcs/notificationsRetrieve.js.map +1 -1
- package/funcs/notificationsStatsGraph.js +4 -4
- package/funcs/notificationsStatsGraph.js.map +1 -1
- package/funcs/notificationsStatsRetrieve.js +4 -4
- package/funcs/notificationsStatsRetrieve.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.js +7 -7
- package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts +2 -2
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +6 -6
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
- package/funcs/subscribersCreate.d.ts +1 -1
- package/funcs/subscribersCreate.d.ts.map +1 -1
- package/funcs/subscribersCreate.js +6 -6
- package/funcs/subscribersCreate.js.map +1 -1
- package/funcs/subscribersCreateBulk.d.ts +1 -1
- package/funcs/subscribersCreateBulk.d.ts.map +1 -1
- package/funcs/subscribersCreateBulk.js +7 -6
- package/funcs/subscribersCreateBulk.js.map +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
- package/funcs/subscribersCredentialsAppend.js +6 -6
- package/funcs/subscribersCredentialsAppend.js.map +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
- package/funcs/subscribersCredentialsDelete.js +7 -7
- package/funcs/subscribersCredentialsDelete.js.map +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
- package/funcs/subscribersCredentialsUpdate.js +6 -6
- package/funcs/subscribersCredentialsUpdate.js.map +1 -1
- package/funcs/subscribersDelete.js +5 -5
- package/funcs/subscribersDelete.js.map +1 -1
- package/funcs/subscribersDeleteLegacy.d.ts +18 -0
- package/funcs/subscribersDeleteLegacy.d.ts.map +1 -0
- package/funcs/subscribersDeleteLegacy.js +141 -0
- package/funcs/subscribersDeleteLegacy.js.map +1 -0
- package/funcs/subscribersList.d.ts +1 -1
- package/funcs/subscribersList.d.ts.map +1 -1
- package/funcs/subscribersList.js +6 -6
- package/funcs/subscribersList.js.map +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAll.js +8 -7
- package/funcs/subscribersMessagesMarkAll.js.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +6 -6
- package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +6 -6
- package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +7 -6
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +6 -6
- package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
- package/funcs/subscribersPatch.d.ts +17 -0
- package/funcs/subscribersPatch.d.ts.map +1 -0
- package/funcs/subscribersPatch.js +143 -0
- package/funcs/subscribersPatch.js.map +1 -0
- package/funcs/subscribersPreferencesList.d.ts +1 -1
- package/funcs/subscribersPreferencesList.d.ts.map +1 -1
- package/funcs/subscribersPreferencesList.js +6 -6
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.d.ts +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.d.ts.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.js +6 -6
- package/funcs/subscribersPreferencesRetrieveByLevel.js.map +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdate.js +6 -6
- package/funcs/subscribersPreferencesUpdate.js.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.d.ts +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.js +6 -6
- package/funcs/subscribersPreferencesUpdateGlobal.js.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js +6 -6
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
- package/funcs/subscribersRetrieve.d.ts +1 -1
- package/funcs/subscribersRetrieve.d.ts.map +1 -1
- package/funcs/subscribersRetrieve.js +6 -11
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/subscribersRetrieveLegacy.d.ts +16 -0
- package/funcs/subscribersRetrieveLegacy.d.ts.map +1 -0
- package/funcs/subscribersRetrieveLegacy.js +144 -0
- package/funcs/subscribersRetrieveLegacy.js.map +1 -0
- package/funcs/subscribersSearch.d.ts +13 -0
- package/funcs/subscribersSearch.d.ts.map +1 -0
- package/funcs/subscribersSearch.js +138 -0
- package/funcs/subscribersSearch.js.map +1 -0
- package/funcs/subscribersUpdate.d.ts +1 -1
- package/funcs/subscribersUpdate.d.ts.map +1 -1
- package/funcs/subscribersUpdate.js +6 -6
- package/funcs/subscribersUpdate.js.map +1 -1
- package/funcs/topicsCreate.js +4 -4
- package/funcs/topicsCreate.js.map +1 -1
- package/funcs/topicsDelete.js +4 -4
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/topicsList.js +4 -4
- package/funcs/topicsList.js.map +1 -1
- package/funcs/topicsRename.js +4 -4
- package/funcs/topicsRename.js.map +1 -1
- package/funcs/topicsRetrieve.js +4 -4
- package/funcs/topicsRetrieve.js.map +1 -1
- package/funcs/topicsSubscribersAssign.js +4 -4
- package/funcs/topicsSubscribersAssign.js.map +1 -1
- package/funcs/topicsSubscribersRemove.js +4 -4
- package/funcs/topicsSubscribersRemove.js.map +1 -1
- package/funcs/topicsSubscribersRetrieve.js +4 -4
- package/funcs/topicsSubscribersRetrieve.js.map +1 -1
- package/funcs/trigger.js +4 -4
- package/funcs/trigger.js.map +1 -1
- package/funcs/triggerBroadcast.js +4 -4
- package/funcs/triggerBroadcast.js.map +1 -1
- package/funcs/triggerBulk.js +4 -4
- package/funcs/triggerBulk.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/retries.js +0 -1
- package/lib/retries.js.map +1 -1
- package/lib/schemas.d.ts +1 -1
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +4 -1
- package/lib/schemas.js.map +1 -1
- package/lib/security.js +1 -1
- package/lib/security.js.map +1 -1
- package/models/components/{channelsettings.d.ts → channelsettingsdto.d.ts} +22 -22
- package/models/components/channelsettingsdto.d.ts.map +1 -0
- package/models/components/{channelsettings.js → channelsettingsdto.js} +29 -29
- package/models/components/channelsettingsdto.js.map +1 -0
- package/models/components/index.d.ts +4 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -2
- package/models/components/index.js.map +1 -1
- package/models/components/listsubscribersresponsedto.d.ts +43 -0
- package/models/components/listsubscribersresponsedto.d.ts.map +1 -0
- package/models/components/listsubscribersresponsedto.js +64 -0
- package/models/components/listsubscribersresponsedto.js.map +1 -0
- package/models/components/patchsubscriberrequestdto.d.ts +96 -0
- package/models/components/patchsubscriberrequestdto.d.ts.map +1 -0
- package/models/components/patchsubscriberrequestdto.js +100 -0
- package/models/components/patchsubscriberrequestdto.js.map +1 -0
- package/models/components/removesubscriberresponsedto.d.ts +37 -0
- package/models/components/removesubscriberresponsedto.d.ts.map +1 -0
- package/models/components/removesubscriberresponsedto.js +61 -0
- package/models/components/removesubscriberresponsedto.js.map +1 -0
- package/models/components/security.d.ts +2 -2
- package/models/components/security.d.ts.map +1 -1
- package/models/components/security.js +2 -11
- package/models/components/security.js.map +1 -1
- package/models/components/subscriberresponsedto.d.ts +14 -3
- package/models/components/subscriberresponsedto.d.ts.map +1 -1
- package/models/components/subscriberresponsedto.js +5 -3
- package/models/components/subscriberresponsedto.js.map +1 -1
- package/models/components/triggereventrequestdto.d.ts +1 -12
- package/models/components/triggereventrequestdto.d.ts.map +1 -1
- package/models/components/triggereventrequestdto.js +10 -6
- package/models/components/triggereventrequestdto.js.map +1 -1
- package/models/operations/index.d.ts +23 -19
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +23 -19
- package/models/operations/index.js.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriber.d.ts +0 -5
- package/models/operations/subscriberscontrollergetsubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriber.js +0 -2
- package/models/operations/subscriberscontrollergetsubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollerpatchsubscriber.d.ts +68 -0
- package/models/operations/subscriberscontrollerpatchsubscriber.d.ts.map +1 -0
- package/models/operations/subscriberscontrollerpatchsubscriber.js +114 -0
- package/models/operations/subscriberscontrollerpatchsubscriber.js.map +1 -0
- package/models/operations/subscriberscontrollerremovesubscriber.d.ts +2 -2
- package/models/operations/subscriberscontrollerremovesubscriber.js +2 -2
- package/models/operations/subscriberscontrollersearchsubscribers.d.ts +126 -0
- package/models/operations/subscriberscontrollersearchsubscribers.d.ts.map +1 -0
- package/models/operations/subscriberscontrollersearchsubscribers.js +145 -0
- package/models/operations/subscriberscontrollersearchsubscribers.js.map +1 -0
- package/models/operations/subscribersv1controllerbulkcreatesubscribers.d.ts +66 -0
- package/models/operations/subscribersv1controllerbulkcreatesubscribers.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerbulkcreatesubscribers.js +112 -0
- package/models/operations/subscribersv1controllerbulkcreatesubscribers.js.map +1 -0
- package/models/operations/subscribersv1controllerchataccessoauth.d.ts +80 -0
- package/models/operations/subscribersv1controllerchataccessoauth.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerchataccessoauth.js +113 -0
- package/models/operations/subscribersv1controllerchataccessoauth.js.map +1 -0
- package/models/operations/subscribersv1controllerchatoauthcallback.d.ts +108 -0
- package/models/operations/subscribersv1controllerchatoauthcallback.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerchatoauthcallback.js +143 -0
- package/models/operations/subscribersv1controllerchatoauthcallback.js.map +1 -0
- package/models/operations/subscribersv1controllercreatesubscriber.d.ts +66 -0
- package/models/operations/subscribersv1controllercreatesubscriber.d.ts.map +1 -0
- package/models/operations/subscribersv1controllercreatesubscriber.js +112 -0
- package/models/operations/subscribersv1controllercreatesubscriber.js.map +1 -0
- package/models/operations/subscribersv1controllerdeletesubscribercredentials.d.ts +65 -0
- package/models/operations/subscribersv1controllerdeletesubscribercredentials.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerdeletesubscribercredentials.js +111 -0
- package/models/operations/subscribersv1controllerdeletesubscribercredentials.js.map +1 -0
- package/models/operations/subscribersv1controllergetnotificationsfeed.d.ts +79 -0
- package/models/operations/subscribersv1controllergetnotificationsfeed.d.ts.map +1 -0
- package/models/operations/subscribersv1controllergetnotificationsfeed.js +120 -0
- package/models/operations/subscribersv1controllergetnotificationsfeed.js.map +1 -0
- package/models/operations/subscribersv1controllergetsubscriber.d.ts +71 -0
- package/models/operations/subscribersv1controllergetsubscriber.d.ts.map +1 -0
- package/models/operations/subscribersv1controllergetsubscriber.js +112 -0
- package/models/operations/subscribersv1controllergetsubscriber.js.map +1 -0
- package/models/operations/subscribersv1controllergetsubscriberpreferencebylevel.d.ts +108 -0
- package/models/operations/subscribersv1controllergetsubscriberpreferencebylevel.d.ts.map +1 -0
- package/models/operations/subscribersv1controllergetsubscriberpreferencebylevel.js +141 -0
- package/models/operations/subscribersv1controllergetsubscriberpreferencebylevel.js.map +1 -0
- package/models/operations/subscribersv1controllergetunseencount.d.ts +76 -0
- package/models/operations/subscribersv1controllergetunseencount.d.ts.map +1 -0
- package/models/operations/subscribersv1controllergetunseencount.js +114 -0
- package/models/operations/subscribersv1controllergetunseencount.js.map +1 -0
- package/models/operations/subscribersv1controllerlistsubscriberpreferences.d.ts +71 -0
- package/models/operations/subscribersv1controllerlistsubscriberpreferences.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerlistsubscriberpreferences.js +116 -0
- package/models/operations/subscribersv1controllerlistsubscriberpreferences.js.map +1 -0
- package/models/operations/subscribersv1controllerlistsubscribers.d.ts +108 -0
- package/models/operations/subscribersv1controllerlistsubscribers.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerlistsubscribers.js +145 -0
- package/models/operations/subscribersv1controllerlistsubscribers.js.map +1 -0
- package/models/operations/subscribersv1controllermarkactionasseen.d.ts +72 -0
- package/models/operations/subscribersv1controllermarkactionasseen.d.ts.map +1 -0
- package/models/operations/subscribersv1controllermarkactionasseen.js +118 -0
- package/models/operations/subscribersv1controllermarkactionasseen.js.map +1 -0
- package/models/operations/subscribersv1controllermarkallunreadasread.d.ts +68 -0
- package/models/operations/subscribersv1controllermarkallunreadasread.d.ts.map +1 -0
- package/models/operations/subscribersv1controllermarkallunreadasread.js +114 -0
- package/models/operations/subscribersv1controllermarkallunreadasread.js.map +1 -0
- package/models/operations/subscribersv1controllermarkmessagesas.d.ts +68 -0
- package/models/operations/subscribersv1controllermarkmessagesas.d.ts.map +1 -0
- package/models/operations/subscribersv1controllermarkmessagesas.js +114 -0
- package/models/operations/subscribersv1controllermarkmessagesas.js.map +1 -0
- package/models/operations/subscribersv1controllermodifysubscriberchannel.d.ts +68 -0
- package/models/operations/subscribersv1controllermodifysubscriberchannel.d.ts.map +1 -0
- package/models/operations/subscribersv1controllermodifysubscriberchannel.js +115 -0
- package/models/operations/subscribersv1controllermodifysubscriberchannel.js.map +1 -0
- package/models/operations/subscribersv1controllerremovesubscriber.d.ts +66 -0
- package/models/operations/subscribersv1controllerremovesubscriber.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerremovesubscriber.js +110 -0
- package/models/operations/subscribersv1controllerremovesubscriber.js.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriber.d.ts +68 -0
- package/models/operations/subscribersv1controllerupdatesubscriber.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriber.js +114 -0
- package/models/operations/subscribersv1controllerupdatesubscriber.js.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriberchannel.d.ts +68 -0
- package/models/operations/subscribersv1controllerupdatesubscriberchannel.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriberchannel.js +115 -0
- package/models/operations/subscribersv1controllerupdatesubscriberchannel.js.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.d.ts +68 -0
- package/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.js +118 -0
- package/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.js.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriberonlineflag.d.ts +68 -0
- package/models/operations/subscribersv1controllerupdatesubscriberonlineflag.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriberonlineflag.js +118 -0
- package/models/operations/subscribersv1controllerupdatesubscriberonlineflag.js.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriberpreference.d.ts +70 -0
- package/models/operations/subscribersv1controllerupdatesubscriberpreference.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriberpreference.js +120 -0
- package/models/operations/subscribersv1controllerupdatesubscriberpreference.js.map +1 -0
- package/package.json +10 -7
- package/sdk/authentication.d.ts +3 -3
- package/sdk/authentication.d.ts.map +1 -1
- package/sdk/authentication.js.map +1 -1
- package/sdk/credentials.d.ts +3 -3
- package/sdk/credentials.d.ts.map +1 -1
- package/sdk/credentials.js.map +1 -1
- package/sdk/novumessages.d.ts +3 -3
- package/sdk/novumessages.d.ts.map +1 -1
- package/sdk/novumessages.js.map +1 -1
- package/sdk/novunotifications.d.ts +2 -2
- package/sdk/novunotifications.d.ts.map +1 -1
- package/sdk/novunotifications.js.map +1 -1
- package/sdk/preferences.d.ts +4 -4
- package/sdk/preferences.d.ts.map +1 -1
- package/sdk/preferences.js.map +1 -1
- package/sdk/properties.d.ts +1 -1
- package/sdk/properties.d.ts.map +1 -1
- package/sdk/subscribers.d.ts +33 -6
- package/sdk/subscribers.d.ts.map +1 -1
- package/sdk/subscribers.js +43 -4
- package/sdk/subscribers.js.map +1 -1
- package/sources/json-development.json +2327 -228
- package/src/funcs/cancel.ts +4 -4
- package/src/funcs/integrationsCreate.ts +4 -4
- package/src/funcs/integrationsDelete.ts +4 -4
- package/src/funcs/integrationsList.ts +4 -4
- package/src/funcs/integrationsListActive.ts +4 -4
- package/src/funcs/integrationsSetAsPrimary.ts +5 -5
- package/src/funcs/integrationsUpdate.ts +5 -5
- package/src/funcs/integrationsWebhooksRetrieve.ts +4 -4
- package/src/funcs/messagesDelete.ts +4 -4
- package/src/funcs/messagesDeleteByTransactionId.ts +4 -4
- package/src/funcs/messagesRetrieve.ts +4 -4
- package/src/funcs/notificationsList.ts +4 -4
- package/src/funcs/notificationsRetrieve.ts +4 -4
- package/src/funcs/notificationsStatsGraph.ts +4 -4
- package/src/funcs/notificationsStatsRetrieve.ts +4 -4
- package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +10 -10
- package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +11 -11
- package/src/funcs/subscribersCreate.ts +10 -10
- package/src/funcs/subscribersCreateBulk.ts +15 -15
- package/src/funcs/subscribersCredentialsAppend.ts +11 -11
- package/src/funcs/subscribersCredentialsDelete.ts +10 -10
- package/src/funcs/subscribersCredentialsUpdate.ts +11 -11
- package/src/funcs/subscribersDelete.ts +5 -5
- package/src/funcs/subscribersDeleteLegacy.ts +200 -0
- package/src/funcs/subscribersList.ts +11 -11
- package/src/funcs/subscribersMessagesMarkAll.ts +14 -11
- package/src/funcs/subscribersMessagesMarkAllAs.ts +10 -10
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +10 -10
- package/src/funcs/subscribersNotificationsFeed.ts +11 -10
- package/src/funcs/subscribersNotificationsUnseenCount.ts +10 -10
- package/src/funcs/subscribersPatch.ts +204 -0
- package/src/funcs/subscribersPreferencesList.ts +10 -10
- package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +10 -10
- package/src/funcs/subscribersPreferencesUpdate.ts +10 -10
- package/src/funcs/subscribersPreferencesUpdateGlobal.ts +16 -15
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +10 -10
- package/src/funcs/subscribersRetrieve.ts +6 -13
- package/src/funcs/subscribersRetrieveLegacy.ts +205 -0
- package/src/funcs/subscribersSearch.ts +195 -0
- package/src/funcs/subscribersUpdate.ts +10 -10
- package/src/funcs/topicsCreate.ts +4 -4
- package/src/funcs/topicsDelete.ts +4 -4
- package/src/funcs/topicsList.ts +4 -4
- package/src/funcs/topicsRename.ts +4 -4
- package/src/funcs/topicsRetrieve.ts +4 -4
- package/src/funcs/topicsSubscribersAssign.ts +4 -4
- package/src/funcs/topicsSubscribersRemove.ts +4 -4
- package/src/funcs/topicsSubscribersRetrieve.ts +4 -4
- package/src/funcs/trigger.ts +4 -4
- package/src/funcs/triggerBroadcast.ts +4 -4
- package/src/funcs/triggerBulk.ts +4 -4
- package/src/lib/config.ts +4 -4
- package/src/lib/retries.ts +0 -1
- package/src/lib/schemas.ts +5 -0
- package/src/lib/security.ts +1 -1
- package/src/models/components/{channelsettings.ts → channelsettingsdto.ts} +40 -38
- package/src/models/components/index.ts +4 -2
- package/src/models/components/listsubscribersresponsedto.ts +89 -0
- package/src/models/components/patchsubscriberrequestdto.ts +182 -0
- package/src/models/components/removesubscriberresponsedto.ts +78 -0
- package/src/models/components/security.ts +4 -13
- package/src/models/components/subscriberresponsedto.ts +18 -9
- package/src/models/components/triggereventrequestdto.ts +11 -22
- package/src/models/operations/index.ts +23 -19
- package/src/models/operations/subscriberscontrollergetsubscriber.ts +0 -7
- package/src/models/operations/subscriberscontrollerpatchsubscriber.ts +189 -0
- package/src/models/operations/subscriberscontrollerremovesubscriber.ts +4 -4
- package/src/models/operations/subscriberscontrollersearchsubscribers.ts +260 -0
- package/src/models/operations/subscribersv1controllerbulkcreatesubscribers.ts +185 -0
- package/src/models/operations/{subscriberscontrollerchataccessoauth.ts → subscribersv1controllerchataccessoauth.ts} +47 -46
- package/src/models/operations/subscribersv1controllerchatoauthcallback.ts +281 -0
- package/src/models/operations/subscribersv1controllercreatesubscriber.ts +187 -0
- package/src/models/operations/subscribersv1controllerdeletesubscribercredentials.ts +178 -0
- package/src/models/operations/{subscriberscontrollergetnotificationsfeed.ts → subscribersv1controllergetnotificationsfeed.ts} +46 -46
- package/src/models/operations/subscribersv1controllergetsubscriber.ts +188 -0
- package/src/models/operations/{subscriberscontrollergetsubscriberpreferencebylevel.ts → subscribersv1controllergetsubscriberpreferencebylevel.ts} +46 -46
- package/src/models/operations/subscribersv1controllergetunseencount.ts +195 -0
- package/src/models/operations/subscribersv1controllerlistsubscriberpreferences.ts +191 -0
- package/src/models/operations/subscribersv1controllerlistsubscribers.ts +283 -0
- package/src/models/operations/{subscriberscontrollermarkactionasseen.ts → subscribersv1controllermarkactionasseen.ts} +48 -46
- package/src/models/operations/subscribersv1controllermarkallunreadasread.ts +191 -0
- package/src/models/operations/subscribersv1controllermarkmessagesas.ts +187 -0
- package/src/models/operations/subscribersv1controllermodifysubscriberchannel.ts +192 -0
- package/src/models/operations/subscribersv1controllerremovesubscriber.ts +183 -0
- package/src/models/operations/{subscriberscontrollerupdatesubscriber.ts → subscribersv1controllerupdatesubscriber.ts} +48 -46
- package/src/models/operations/subscribersv1controllerupdatesubscriberchannel.ts +192 -0
- package/src/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.ts +195 -0
- package/src/models/operations/subscribersv1controllerupdatesubscriberonlineflag.ts +193 -0
- package/src/models/operations/subscribersv1controllerupdatesubscriberpreference.ts +197 -0
- package/src/sdk/authentication.ts +4 -4
- package/src/sdk/credentials.ts +7 -3
- package/src/sdk/novumessages.ts +4 -4
- package/src/sdk/novunotifications.ts +4 -4
- package/src/sdk/preferences.ts +7 -6
- package/src/sdk/properties.ts +1 -1
- package/src/sdk/subscribers.ts +89 -10
- package/models/components/channelsettings.d.ts.map +0 -1
- package/models/components/channelsettings.js.map +0 -1
- package/models/components/workflowtostepcontrolvaluesdto.d.ts +0 -40
- package/models/components/workflowtostepcontrolvaluesdto.d.ts.map +0 -1
- package/models/components/workflowtostepcontrolvaluesdto.js +0 -59
- package/models/components/workflowtostepcontrolvaluesdto.js.map +0 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts +0 -66
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.js +0 -112
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.js.map +0 -1
- package/models/operations/subscriberscontrollerchataccessoauth.d.ts +0 -80
- package/models/operations/subscriberscontrollerchataccessoauth.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerchataccessoauth.js +0 -113
- package/models/operations/subscriberscontrollerchataccessoauth.js.map +0 -1
- package/models/operations/subscriberscontrollerchatoauthcallback.d.ts +0 -108
- package/models/operations/subscriberscontrollerchatoauthcallback.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerchatoauthcallback.js +0 -142
- package/models/operations/subscriberscontrollerchatoauthcallback.js.map +0 -1
- package/models/operations/subscriberscontrollercreatesubscriber.d.ts +0 -66
- package/models/operations/subscriberscontrollercreatesubscriber.d.ts.map +0 -1
- package/models/operations/subscriberscontrollercreatesubscriber.js +0 -112
- package/models/operations/subscriberscontrollercreatesubscriber.js.map +0 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts +0 -65
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js +0 -111
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js.map +0 -1
- package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts +0 -79
- package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts.map +0 -1
- package/models/operations/subscriberscontrollergetnotificationsfeed.js +0 -120
- package/models/operations/subscriberscontrollergetnotificationsfeed.js.map +0 -1
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts +0 -108
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts.map +0 -1
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js +0 -141
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js.map +0 -1
- package/models/operations/subscriberscontrollergetunseencount.d.ts +0 -76
- package/models/operations/subscriberscontrollergetunseencount.d.ts.map +0 -1
- package/models/operations/subscriberscontrollergetunseencount.js +0 -114
- package/models/operations/subscriberscontrollergetunseencount.js.map +0 -1
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts +0 -71
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.js +0 -113
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.js.map +0 -1
- package/models/operations/subscriberscontrollerlistsubscribers.d.ts +0 -108
- package/models/operations/subscriberscontrollerlistsubscribers.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerlistsubscribers.js +0 -145
- package/models/operations/subscriberscontrollerlistsubscribers.js.map +0 -1
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts +0 -72
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts.map +0 -1
- package/models/operations/subscriberscontrollermarkactionasseen.js +0 -118
- package/models/operations/subscriberscontrollermarkactionasseen.js.map +0 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts +0 -68
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts.map +0 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.js +0 -114
- package/models/operations/subscriberscontrollermarkallunreadasread.js.map +0 -1
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts +0 -68
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts.map +0 -1
- package/models/operations/subscriberscontrollermarkmessagesas.js +0 -114
- package/models/operations/subscriberscontrollermarkmessagesas.js.map +0 -1
- package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts +0 -68
- package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts.map +0 -1
- package/models/operations/subscriberscontrollermodifysubscriberchannel.js +0 -114
- package/models/operations/subscriberscontrollermodifysubscriberchannel.js.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriber.d.ts +0 -68
- package/models/operations/subscriberscontrollerupdatesubscriber.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriber.js +0 -114
- package/models/operations/subscriberscontrollerupdatesubscriber.js.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts +0 -68
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.js +0 -114
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.js.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts +0 -68
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js +0 -118
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts +0 -68
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js +0 -117
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts +0 -70
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts.map +0 -1
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.js +0 -119
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.js.map +0 -1
- package/src/models/components/workflowtostepcontrolvaluesdto.ts +0 -71
- package/src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts +0 -185
- package/src/models/operations/subscriberscontrollerchatoauthcallback.ts +0 -281
- package/src/models/operations/subscriberscontrollercreatesubscriber.ts +0 -185
- package/src/models/operations/subscriberscontrollerdeletesubscribercredentials.ts +0 -177
- package/src/models/operations/subscriberscontrollergetunseencount.ts +0 -192
- package/src/models/operations/subscriberscontrollerlistsubscriberpreferences.ts +0 -193
- package/src/models/operations/subscriberscontrollerlistsubscribers.ts +0 -282
- package/src/models/operations/subscriberscontrollermarkallunreadasread.ts +0 -191
- package/src/models/operations/subscriberscontrollermarkmessagesas.ts +0 -184
- package/src/models/operations/subscriberscontrollermodifysubscriberchannel.ts +0 -193
- package/src/models/operations/subscriberscontrollerupdatesubscriberchannel.ts +0 -193
- package/src/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.ts +0 -195
- package/src/models/operations/subscriberscontrollerupdatesubscriberonlineflag.ts +0 -192
- package/src/models/operations/subscriberscontrollerupdatesubscriberpreference.ts +0 -196
|
@@ -19,7 +19,7 @@ Subscriber credentials associated to the delivery methods such as slack and push
|
|
|
19
19
|
import { Novu } from "@novu/api";
|
|
20
20
|
|
|
21
21
|
const novu = new Novu({
|
|
22
|
-
|
|
22
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
async function run() {
|
|
@@ -27,6 +27,17 @@ async function run() {
|
|
|
27
27
|
providerId: "pushpad",
|
|
28
28
|
credentials: {
|
|
29
29
|
webhookUrl: "https://example.com/webhook",
|
|
30
|
+
channel: "general",
|
|
31
|
+
deviceTokens: [
|
|
32
|
+
"token1",
|
|
33
|
+
"token2",
|
|
34
|
+
"token3",
|
|
35
|
+
],
|
|
36
|
+
alertUid: "12345-abcde",
|
|
37
|
+
title: "Critical Alert",
|
|
38
|
+
imageUrl: "https://example.com/image.png",
|
|
39
|
+
state: "resolved",
|
|
40
|
+
externalUrl: "https://example.com/details",
|
|
30
41
|
},
|
|
31
42
|
}, "<id>");
|
|
32
43
|
|
|
@@ -48,7 +59,7 @@ import { subscribersCredentialsUpdate } from "@novu/api/funcs/subscribersCredent
|
|
|
48
59
|
// Use `NovuCore` for best tree-shaking performance.
|
|
49
60
|
// You can create one instance of it to use across an application.
|
|
50
61
|
const novu = new NovuCore({
|
|
51
|
-
|
|
62
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
52
63
|
});
|
|
53
64
|
|
|
54
65
|
async function run() {
|
|
@@ -56,6 +67,17 @@ async function run() {
|
|
|
56
67
|
providerId: "pushpad",
|
|
57
68
|
credentials: {
|
|
58
69
|
webhookUrl: "https://example.com/webhook",
|
|
70
|
+
channel: "general",
|
|
71
|
+
deviceTokens: [
|
|
72
|
+
"token1",
|
|
73
|
+
"token2",
|
|
74
|
+
"token3",
|
|
75
|
+
],
|
|
76
|
+
alertUid: "12345-abcde",
|
|
77
|
+
title: "Critical Alert",
|
|
78
|
+
imageUrl: "https://example.com/image.png",
|
|
79
|
+
state: "resolved",
|
|
80
|
+
externalUrl: "https://example.com/details",
|
|
59
81
|
},
|
|
60
82
|
}, "<id>");
|
|
61
83
|
|
|
@@ -85,14 +107,14 @@ run();
|
|
|
85
107
|
|
|
86
108
|
### Response
|
|
87
109
|
|
|
88
|
-
**Promise\<[operations.
|
|
110
|
+
**Promise\<[operations.SubscribersV1ControllerUpdateSubscriberChannelResponse](../../models/operations/subscribersv1controllerupdatesubscriberchannelresponse.md)\>**
|
|
89
111
|
|
|
90
112
|
### Errors
|
|
91
113
|
|
|
92
114
|
| Error Type | Status Code | Content Type |
|
|
93
115
|
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
94
|
-
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
95
116
|
| errors.ErrorDto | 414 | application/json |
|
|
117
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
96
118
|
| errors.ValidationErrorDto | 422 | application/json |
|
|
97
119
|
| errors.ErrorDto | 500 | application/json |
|
|
98
120
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -108,7 +130,7 @@ Subscriber credentials associated to the delivery methods such as slack and push
|
|
|
108
130
|
import { Novu } from "@novu/api";
|
|
109
131
|
|
|
110
132
|
const novu = new Novu({
|
|
111
|
-
|
|
133
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
112
134
|
});
|
|
113
135
|
|
|
114
136
|
async function run() {
|
|
@@ -116,6 +138,17 @@ async function run() {
|
|
|
116
138
|
providerId: "zulip",
|
|
117
139
|
credentials: {
|
|
118
140
|
webhookUrl: "https://example.com/webhook",
|
|
141
|
+
channel: "general",
|
|
142
|
+
deviceTokens: [
|
|
143
|
+
"token1",
|
|
144
|
+
"token2",
|
|
145
|
+
"token3",
|
|
146
|
+
],
|
|
147
|
+
alertUid: "12345-abcde",
|
|
148
|
+
title: "Critical Alert",
|
|
149
|
+
imageUrl: "https://example.com/image.png",
|
|
150
|
+
state: "resolved",
|
|
151
|
+
externalUrl: "https://example.com/details",
|
|
119
152
|
},
|
|
120
153
|
}, "<id>");
|
|
121
154
|
|
|
@@ -137,7 +170,7 @@ import { subscribersCredentialsAppend } from "@novu/api/funcs/subscribersCredent
|
|
|
137
170
|
// Use `NovuCore` for best tree-shaking performance.
|
|
138
171
|
// You can create one instance of it to use across an application.
|
|
139
172
|
const novu = new NovuCore({
|
|
140
|
-
|
|
173
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
141
174
|
});
|
|
142
175
|
|
|
143
176
|
async function run() {
|
|
@@ -145,6 +178,17 @@ async function run() {
|
|
|
145
178
|
providerId: "zulip",
|
|
146
179
|
credentials: {
|
|
147
180
|
webhookUrl: "https://example.com/webhook",
|
|
181
|
+
channel: "general",
|
|
182
|
+
deviceTokens: [
|
|
183
|
+
"token1",
|
|
184
|
+
"token2",
|
|
185
|
+
"token3",
|
|
186
|
+
],
|
|
187
|
+
alertUid: "12345-abcde",
|
|
188
|
+
title: "Critical Alert",
|
|
189
|
+
imageUrl: "https://example.com/image.png",
|
|
190
|
+
state: "resolved",
|
|
191
|
+
externalUrl: "https://example.com/details",
|
|
148
192
|
},
|
|
149
193
|
}, "<id>");
|
|
150
194
|
|
|
@@ -174,14 +218,14 @@ run();
|
|
|
174
218
|
|
|
175
219
|
### Response
|
|
176
220
|
|
|
177
|
-
**Promise\<[operations.
|
|
221
|
+
**Promise\<[operations.SubscribersV1ControllerModifySubscriberChannelResponse](../../models/operations/subscribersv1controllermodifysubscriberchannelresponse.md)\>**
|
|
178
222
|
|
|
179
223
|
### Errors
|
|
180
224
|
|
|
181
225
|
| Error Type | Status Code | Content Type |
|
|
182
226
|
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
183
|
-
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
184
227
|
| errors.ErrorDto | 414 | application/json |
|
|
228
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
185
229
|
| errors.ValidationErrorDto | 422 | application/json |
|
|
186
230
|
| errors.ErrorDto | 500 | application/json |
|
|
187
231
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -196,7 +240,7 @@ Delete subscriber credentials such as slack and expo tokens.
|
|
|
196
240
|
import { Novu } from "@novu/api";
|
|
197
241
|
|
|
198
242
|
const novu = new Novu({
|
|
199
|
-
|
|
243
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
200
244
|
});
|
|
201
245
|
|
|
202
246
|
async function run() {
|
|
@@ -220,7 +264,7 @@ import { subscribersCredentialsDelete } from "@novu/api/funcs/subscribersCredent
|
|
|
220
264
|
// Use `NovuCore` for best tree-shaking performance.
|
|
221
265
|
// You can create one instance of it to use across an application.
|
|
222
266
|
const novu = new NovuCore({
|
|
223
|
-
|
|
267
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
224
268
|
});
|
|
225
269
|
|
|
226
270
|
async function run() {
|
|
@@ -252,14 +296,14 @@ run();
|
|
|
252
296
|
|
|
253
297
|
### Response
|
|
254
298
|
|
|
255
|
-
**Promise\<[operations.
|
|
299
|
+
**Promise\<[operations.SubscribersV1ControllerDeleteSubscriberCredentialsResponse](../../models/operations/subscribersv1controllerdeletesubscribercredentialsresponse.md)\>**
|
|
256
300
|
|
|
257
301
|
### Errors
|
|
258
302
|
|
|
259
303
|
| Error Type | Status Code | Content Type |
|
|
260
304
|
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
261
|
-
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
262
305
|
| errors.ErrorDto | 414 | application/json |
|
|
306
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
263
307
|
| errors.ValidationErrorDto | 422 | application/json |
|
|
264
308
|
| errors.ErrorDto | 500 | application/json |
|
|
265
309
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -25,7 +25,7 @@ Return all the integrations the user has created for that organization. Review v
|
|
|
25
25
|
import { Novu } from "@novu/api";
|
|
26
26
|
|
|
27
27
|
const novu = new Novu({
|
|
28
|
-
|
|
28
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
async function run() {
|
|
@@ -49,7 +49,7 @@ import { integrationsList } from "@novu/api/funcs/integrationsList.js";
|
|
|
49
49
|
// Use `NovuCore` for best tree-shaking performance.
|
|
50
50
|
// You can create one instance of it to use across an application.
|
|
51
51
|
const novu = new NovuCore({
|
|
52
|
-
|
|
52
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
async function run() {
|
|
@@ -85,8 +85,8 @@ run();
|
|
|
85
85
|
|
|
86
86
|
| Error Type | Status Code | Content Type |
|
|
87
87
|
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
88
|
-
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
89
88
|
| errors.ErrorDto | 414 | application/json |
|
|
89
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
90
90
|
| errors.ValidationErrorDto | 422 | application/json |
|
|
91
91
|
| errors.ErrorDto | 500 | application/json |
|
|
92
92
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -101,7 +101,7 @@ Create an integration for the current environment the user is based on the API k
|
|
|
101
101
|
import { Novu } from "@novu/api";
|
|
102
102
|
|
|
103
103
|
const novu = new Novu({
|
|
104
|
-
|
|
104
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
105
105
|
});
|
|
106
106
|
|
|
107
107
|
async function run() {
|
|
@@ -128,7 +128,7 @@ import { integrationsCreate } from "@novu/api/funcs/integrationsCreate.js";
|
|
|
128
128
|
// Use `NovuCore` for best tree-shaking performance.
|
|
129
129
|
// You can create one instance of it to use across an application.
|
|
130
130
|
const novu = new NovuCore({
|
|
131
|
-
|
|
131
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
132
132
|
});
|
|
133
133
|
|
|
134
134
|
async function run() {
|
|
@@ -168,8 +168,8 @@ run();
|
|
|
168
168
|
|
|
169
169
|
| Error Type | Status Code | Content Type |
|
|
170
170
|
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
171
|
-
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
172
171
|
| errors.ErrorDto | 414 | application/json |
|
|
172
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
173
173
|
| errors.ValidationErrorDto | 422 | application/json |
|
|
174
174
|
| errors.ErrorDto | 500 | application/json |
|
|
175
175
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -184,7 +184,7 @@ Return all the active integrations the user has created for that organization. R
|
|
|
184
184
|
import { Novu } from "@novu/api";
|
|
185
185
|
|
|
186
186
|
const novu = new Novu({
|
|
187
|
-
|
|
187
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
188
188
|
});
|
|
189
189
|
|
|
190
190
|
async function run() {
|
|
@@ -208,7 +208,7 @@ import { integrationsListActive } from "@novu/api/funcs/integrationsListActive.j
|
|
|
208
208
|
// Use `NovuCore` for best tree-shaking performance.
|
|
209
209
|
// You can create one instance of it to use across an application.
|
|
210
210
|
const novu = new NovuCore({
|
|
211
|
-
|
|
211
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
212
212
|
});
|
|
213
213
|
|
|
214
214
|
async function run() {
|
|
@@ -244,8 +244,8 @@ run();
|
|
|
244
244
|
|
|
245
245
|
| Error Type | Status Code | Content Type |
|
|
246
246
|
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
247
|
-
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
248
247
|
| errors.ErrorDto | 414 | application/json |
|
|
248
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
249
249
|
| errors.ValidationErrorDto | 422 | application/json |
|
|
250
250
|
| errors.ErrorDto | 500 | application/json |
|
|
251
251
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -260,7 +260,7 @@ Update integration
|
|
|
260
260
|
import { Novu } from "@novu/api";
|
|
261
261
|
|
|
262
262
|
const novu = new Novu({
|
|
263
|
-
|
|
263
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
264
264
|
});
|
|
265
265
|
|
|
266
266
|
async function run() {
|
|
@@ -284,7 +284,7 @@ import { integrationsUpdate } from "@novu/api/funcs/integrationsUpdate.js";
|
|
|
284
284
|
// Use `NovuCore` for best tree-shaking performance.
|
|
285
285
|
// You can create one instance of it to use across an application.
|
|
286
286
|
const novu = new NovuCore({
|
|
287
|
-
|
|
287
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
288
288
|
});
|
|
289
289
|
|
|
290
290
|
async function run() {
|
|
@@ -322,8 +322,8 @@ run();
|
|
|
322
322
|
|
|
323
323
|
| Error Type | Status Code | Content Type |
|
|
324
324
|
| --------------------------------- | --------------------------------- | --------------------------------- |
|
|
325
|
-
| errors.ErrorDto | 400, 401, 403, 405, 409, 413, 415 | application/json |
|
|
326
325
|
| errors.ErrorDto | 414 | application/json |
|
|
326
|
+
| errors.ErrorDto | 400, 401, 403, 405, 409, 413, 415 | application/json |
|
|
327
327
|
| errors.ValidationErrorDto | 422 | application/json |
|
|
328
328
|
| errors.ErrorDto | 500 | application/json |
|
|
329
329
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -338,7 +338,7 @@ Delete integration
|
|
|
338
338
|
import { Novu } from "@novu/api";
|
|
339
339
|
|
|
340
340
|
const novu = new Novu({
|
|
341
|
-
|
|
341
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
342
342
|
});
|
|
343
343
|
|
|
344
344
|
async function run() {
|
|
@@ -362,7 +362,7 @@ import { integrationsDelete } from "@novu/api/funcs/integrationsDelete.js";
|
|
|
362
362
|
// Use `NovuCore` for best tree-shaking performance.
|
|
363
363
|
// You can create one instance of it to use across an application.
|
|
364
364
|
const novu = new NovuCore({
|
|
365
|
-
|
|
365
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
366
366
|
});
|
|
367
367
|
|
|
368
368
|
async function run() {
|
|
@@ -399,8 +399,8 @@ run();
|
|
|
399
399
|
|
|
400
400
|
| Error Type | Status Code | Content Type |
|
|
401
401
|
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
402
|
-
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
403
402
|
| errors.ErrorDto | 414 | application/json |
|
|
403
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
404
404
|
| errors.ValidationErrorDto | 422 | application/json |
|
|
405
405
|
| errors.ErrorDto | 500 | application/json |
|
|
406
406
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -415,7 +415,7 @@ Set integration as primary
|
|
|
415
415
|
import { Novu } from "@novu/api";
|
|
416
416
|
|
|
417
417
|
const novu = new Novu({
|
|
418
|
-
|
|
418
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
419
419
|
});
|
|
420
420
|
|
|
421
421
|
async function run() {
|
|
@@ -439,7 +439,7 @@ import { integrationsSetAsPrimary } from "@novu/api/funcs/integrationsSetAsPrima
|
|
|
439
439
|
// Use `NovuCore` for best tree-shaking performance.
|
|
440
440
|
// You can create one instance of it to use across an application.
|
|
441
441
|
const novu = new NovuCore({
|
|
442
|
-
|
|
442
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
443
443
|
});
|
|
444
444
|
|
|
445
445
|
async function run() {
|
|
@@ -476,8 +476,8 @@ run();
|
|
|
476
476
|
|
|
477
477
|
| Error Type | Status Code | Content Type |
|
|
478
478
|
| --------------------------------- | --------------------------------- | --------------------------------- |
|
|
479
|
-
| errors.ErrorDto | 400, 401, 403, 405, 409, 413, 415 | application/json |
|
|
480
479
|
| errors.ErrorDto | 414 | application/json |
|
|
480
|
+
| errors.ErrorDto | 400, 401, 403, 405, 409, 413, 415 | application/json |
|
|
481
481
|
| errors.ValidationErrorDto | 422 | application/json |
|
|
482
482
|
| errors.ErrorDto | 500 | application/json |
|
|
483
483
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -22,11 +22,14 @@ Returns a list of messages, could paginate using the `page` query parameter
|
|
|
22
22
|
import { Novu } from "@novu/api";
|
|
23
23
|
|
|
24
24
|
const novu = new Novu({
|
|
25
|
-
|
|
25
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
async function run() {
|
|
29
|
-
const result = await novu.messages.retrieve({
|
|
29
|
+
const result = await novu.messages.retrieve({
|
|
30
|
+
page: 0,
|
|
31
|
+
limit: 10,
|
|
32
|
+
});
|
|
30
33
|
|
|
31
34
|
// Handle the result
|
|
32
35
|
console.log(result);
|
|
@@ -46,11 +49,14 @@ import { messagesRetrieve } from "@novu/api/funcs/messagesRetrieve.js";
|
|
|
46
49
|
// Use `NovuCore` for best tree-shaking performance.
|
|
47
50
|
// You can create one instance of it to use across an application.
|
|
48
51
|
const novu = new NovuCore({
|
|
49
|
-
|
|
52
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
50
53
|
});
|
|
51
54
|
|
|
52
55
|
async function run() {
|
|
53
|
-
const res = await messagesRetrieve(novu, {
|
|
56
|
+
const res = await messagesRetrieve(novu, {
|
|
57
|
+
page: 0,
|
|
58
|
+
limit: 10,
|
|
59
|
+
});
|
|
54
60
|
|
|
55
61
|
if (!res.ok) {
|
|
56
62
|
throw res.error;
|
|
@@ -82,8 +88,8 @@ run();
|
|
|
82
88
|
|
|
83
89
|
| Error Type | Status Code | Content Type |
|
|
84
90
|
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
85
|
-
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
86
91
|
| errors.ErrorDto | 414 | application/json |
|
|
92
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
87
93
|
| errors.ValidationErrorDto | 422 | application/json |
|
|
88
94
|
| errors.ErrorDto | 500 | application/json |
|
|
89
95
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -98,7 +104,7 @@ Deletes a message entity from the Novu platform
|
|
|
98
104
|
import { Novu } from "@novu/api";
|
|
99
105
|
|
|
100
106
|
const novu = new Novu({
|
|
101
|
-
|
|
107
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
102
108
|
});
|
|
103
109
|
|
|
104
110
|
async function run() {
|
|
@@ -122,7 +128,7 @@ import { messagesDelete } from "@novu/api/funcs/messagesDelete.js";
|
|
|
122
128
|
// Use `NovuCore` for best tree-shaking performance.
|
|
123
129
|
// You can create one instance of it to use across an application.
|
|
124
130
|
const novu = new NovuCore({
|
|
125
|
-
|
|
131
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
126
132
|
});
|
|
127
133
|
|
|
128
134
|
async function run() {
|
|
@@ -159,8 +165,8 @@ run();
|
|
|
159
165
|
|
|
160
166
|
| Error Type | Status Code | Content Type |
|
|
161
167
|
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
162
|
-
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
163
168
|
| errors.ErrorDto | 414 | application/json |
|
|
169
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
164
170
|
| errors.ValidationErrorDto | 422 | application/json |
|
|
165
171
|
| errors.ErrorDto | 500 | application/json |
|
|
166
172
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -175,7 +181,7 @@ Deletes messages entity from the Novu platform using TransactionId of message
|
|
|
175
181
|
import { Novu } from "@novu/api";
|
|
176
182
|
|
|
177
183
|
const novu = new Novu({
|
|
178
|
-
|
|
184
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
179
185
|
});
|
|
180
186
|
|
|
181
187
|
async function run() {
|
|
@@ -199,7 +205,7 @@ import { messagesDeleteByTransactionId } from "@novu/api/funcs/messagesDeleteByT
|
|
|
199
205
|
// Use `NovuCore` for best tree-shaking performance.
|
|
200
206
|
// You can create one instance of it to use across an application.
|
|
201
207
|
const novu = new NovuCore({
|
|
202
|
-
|
|
208
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
203
209
|
});
|
|
204
210
|
|
|
205
211
|
async function run() {
|
|
@@ -237,8 +243,8 @@ run();
|
|
|
237
243
|
|
|
238
244
|
| Error Type | Status Code | Content Type |
|
|
239
245
|
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
240
|
-
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
241
246
|
| errors.ErrorDto | 414 | application/json |
|
|
247
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
242
248
|
| errors.ValidationErrorDto | 422 | application/json |
|
|
243
249
|
| errors.ErrorDto | 500 | application/json |
|
|
244
250
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -18,27 +18,12 @@ Get notifications
|
|
|
18
18
|
import { Novu } from "@novu/api";
|
|
19
19
|
|
|
20
20
|
const novu = new Novu({
|
|
21
|
-
|
|
21
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
async function run() {
|
|
25
25
|
const result = await novu.notifications.list({
|
|
26
|
-
|
|
27
|
-
"sms",
|
|
28
|
-
"chat",
|
|
29
|
-
"in_app",
|
|
30
|
-
],
|
|
31
|
-
templates: [
|
|
32
|
-
|
|
33
|
-
],
|
|
34
|
-
emails: [
|
|
35
|
-
|
|
36
|
-
],
|
|
37
|
-
search: "<value>",
|
|
38
|
-
subscriberIds: [
|
|
39
|
-
"<value>",
|
|
40
|
-
"<value>",
|
|
41
|
-
],
|
|
26
|
+
page: 0,
|
|
42
27
|
});
|
|
43
28
|
|
|
44
29
|
// Handle the result
|
|
@@ -59,27 +44,12 @@ import { notificationsList } from "@novu/api/funcs/notificationsList.js";
|
|
|
59
44
|
// Use `NovuCore` for best tree-shaking performance.
|
|
60
45
|
// You can create one instance of it to use across an application.
|
|
61
46
|
const novu = new NovuCore({
|
|
62
|
-
|
|
47
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
63
48
|
});
|
|
64
49
|
|
|
65
50
|
async function run() {
|
|
66
51
|
const res = await notificationsList(novu, {
|
|
67
|
-
|
|
68
|
-
"sms",
|
|
69
|
-
"chat",
|
|
70
|
-
"in_app",
|
|
71
|
-
],
|
|
72
|
-
templates: [
|
|
73
|
-
|
|
74
|
-
],
|
|
75
|
-
emails: [
|
|
76
|
-
|
|
77
|
-
],
|
|
78
|
-
search: "<value>",
|
|
79
|
-
subscriberIds: [
|
|
80
|
-
"<value>",
|
|
81
|
-
"<value>",
|
|
82
|
-
],
|
|
52
|
+
page: 0,
|
|
83
53
|
});
|
|
84
54
|
|
|
85
55
|
if (!res.ok) {
|
|
@@ -112,8 +82,8 @@ run();
|
|
|
112
82
|
|
|
113
83
|
| Error Type | Status Code | Content Type |
|
|
114
84
|
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
115
|
-
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
116
85
|
| errors.ErrorDto | 414 | application/json |
|
|
86
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
117
87
|
| errors.ValidationErrorDto | 422 | application/json |
|
|
118
88
|
| errors.ErrorDto | 500 | application/json |
|
|
119
89
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -128,7 +98,7 @@ Get notification
|
|
|
128
98
|
import { Novu } from "@novu/api";
|
|
129
99
|
|
|
130
100
|
const novu = new Novu({
|
|
131
|
-
|
|
101
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
132
102
|
});
|
|
133
103
|
|
|
134
104
|
async function run() {
|
|
@@ -152,7 +122,7 @@ import { notificationsRetrieve } from "@novu/api/funcs/notificationsRetrieve.js"
|
|
|
152
122
|
// Use `NovuCore` for best tree-shaking performance.
|
|
153
123
|
// You can create one instance of it to use across an application.
|
|
154
124
|
const novu = new NovuCore({
|
|
155
|
-
|
|
125
|
+
secretKey: "<YOUR_API_KEY_HERE>",
|
|
156
126
|
});
|
|
157
127
|
|
|
158
128
|
async function run() {
|
|
@@ -189,8 +159,8 @@ run();
|
|
|
189
159
|
|
|
190
160
|
| Error Type | Status Code | Content Type |
|
|
191
161
|
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
192
|
-
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
193
162
|
| errors.ErrorDto | 414 | application/json |
|
|
163
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
194
164
|
| errors.ValidationErrorDto | 422 | application/json |
|
|
195
165
|
| errors.ErrorDto | 500 | application/json |
|
|
196
166
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|