@novu/api 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +2 -19
- package/README.md +82 -327
- package/bin/mcp-server.js +427 -1892
- package/bin/mcp-server.js.map +84 -110
- package/docs/sdks/credentials/README.md +13 -11
- package/docs/sdks/integrations/README.md +19 -14
- package/docs/sdks/messages/README.md +28 -24
- package/docs/sdks/notifications/README.md +9 -4
- package/docs/sdks/novu/README.md +16 -188
- package/docs/sdks/novumessages/README.md +16 -14
- package/docs/sdks/novunotifications/README.md +4 -4
- package/docs/sdks/novutopics/README.md +3 -2
- package/docs/sdks/preferences/README.md +7 -4
- package/docs/sdks/properties/README.md +1 -1
- package/docs/sdks/subscribers/README.md +15 -208
- package/docs/sdks/subscriptions/README.md +6 -4
- package/docs/sdks/topics/README.md +14 -15
- package/funcs/integrationsCreate.d.ts +3 -2
- package/funcs/integrationsCreate.d.ts.map +1 -1
- package/funcs/integrationsCreate.js +3 -2
- package/funcs/integrationsCreate.js.map +1 -1
- package/funcs/integrationsDelete.d.ts +5 -1
- package/funcs/integrationsDelete.d.ts.map +1 -1
- package/funcs/integrationsDelete.js +5 -1
- package/funcs/integrationsDelete.js.map +1 -1
- package/funcs/integrationsList.d.ts +2 -2
- package/funcs/integrationsList.js +2 -2
- package/funcs/integrationsListActive.d.ts +2 -2
- package/funcs/integrationsListActive.js +2 -2
- package/funcs/integrationsSetAsPrimary.d.ts +6 -1
- package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
- package/funcs/integrationsSetAsPrimary.js +6 -1
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.d.ts +5 -1
- package/funcs/integrationsUpdate.d.ts.map +1 -1
- package/funcs/integrationsUpdate.js +5 -1
- package/funcs/integrationsUpdate.js.map +1 -1
- package/funcs/messagesDelete.d.ts +3 -2
- package/funcs/messagesDelete.d.ts.map +1 -1
- package/funcs/messagesDelete.js +3 -2
- package/funcs/messagesDelete.js.map +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts +2 -1
- package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
- package/funcs/messagesDeleteByTransactionId.js +2 -1
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/messagesRetrieve.d.ts +4 -2
- package/funcs/messagesRetrieve.d.ts.map +1 -1
- package/funcs/messagesRetrieve.js +4 -2
- package/funcs/messagesRetrieve.js.map +1 -1
- package/funcs/notificationsList.d.ts +7 -1
- package/funcs/notificationsList.d.ts.map +1 -1
- package/funcs/notificationsList.js +7 -1
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/notificationsRetrieve.d.ts +6 -1
- package/funcs/notificationsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsRetrieve.js +6 -1
- package/funcs/notificationsRetrieve.js.map +1 -1
- package/funcs/subscribersCreate.d.ts +3 -2
- package/funcs/subscribersCreate.d.ts.map +1 -1
- package/funcs/subscribersCreate.js +3 -2
- package/funcs/subscribersCreate.js.map +1 -1
- package/funcs/subscribersCreateBulk.d.ts +1 -2
- package/funcs/subscribersCreateBulk.d.ts.map +1 -1
- package/funcs/subscribersCreateBulk.js +1 -2
- package/funcs/subscribersCreateBulk.js.map +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts +3 -3
- package/funcs/subscribersCredentialsAppend.js +3 -3
- package/funcs/subscribersCredentialsDelete.d.ts +3 -2
- package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
- package/funcs/subscribersCredentialsDelete.js +3 -2
- package/funcs/subscribersCredentialsDelete.js.map +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts +3 -2
- package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
- package/funcs/subscribersCredentialsUpdate.js +3 -2
- package/funcs/subscribersCredentialsUpdate.js.map +1 -1
- package/funcs/subscribersDelete.d.ts +1 -1
- package/funcs/subscribersDelete.js +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts +4 -1
- package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAll.js +4 -1
- package/funcs/subscribersMessagesMarkAll.js.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts +5 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +5 -1
- package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts +5 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +5 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts +4 -1
- package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +4 -1
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts +4 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +4 -1
- package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
- package/funcs/subscribersPatch.d.ts +3 -2
- package/funcs/subscribersPatch.d.ts.map +1 -1
- package/funcs/subscribersPatch.js +3 -2
- package/funcs/subscribersPatch.js.map +1 -1
- package/funcs/subscribersPreferencesList.d.ts +3 -2
- package/funcs/subscribersPreferencesList.d.ts.map +1 -1
- package/funcs/subscribersPreferencesList.js +3 -2
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts +4 -2
- package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdate.js +4 -2
- package/funcs/subscribersPreferencesUpdate.js.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js +1 -1
- package/funcs/subscribersRetrieve.d.ts +3 -2
- package/funcs/subscribersRetrieve.d.ts.map +1 -1
- package/funcs/subscribersRetrieve.js +3 -2
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/subscribersSearch.d.ts +5 -1
- package/funcs/subscribersSearch.d.ts.map +1 -1
- package/funcs/subscribersSearch.js +5 -1
- package/funcs/subscribersSearch.js.map +1 -1
- package/funcs/subscribersTopicsList.d.ts +3 -2
- package/funcs/subscribersTopicsList.d.ts.map +1 -1
- package/funcs/subscribersTopicsList.js +3 -2
- package/funcs/subscribersTopicsList.js.map +1 -1
- package/funcs/topicsCreate.d.ts +1 -1
- package/funcs/topicsCreate.js +1 -1
- package/funcs/topicsDelete.d.ts +5 -1
- package/funcs/topicsDelete.d.ts.map +1 -1
- package/funcs/topicsDelete.js +5 -1
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/topicsGet.d.ts +4 -1
- package/funcs/topicsGet.d.ts.map +1 -1
- package/funcs/topicsGet.js +4 -1
- package/funcs/topicsGet.js.map +1 -1
- package/funcs/topicsList.d.ts +6 -1
- package/funcs/topicsList.d.ts.map +1 -1
- package/funcs/topicsList.js +6 -1
- package/funcs/topicsList.js.map +1 -1
- package/funcs/topicsSubscriptionsCreate.d.ts +5 -1
- package/funcs/topicsSubscriptionsCreate.d.ts.map +1 -1
- package/funcs/topicsSubscriptionsCreate.js +5 -1
- package/funcs/topicsSubscriptionsCreate.js.map +1 -1
- package/funcs/topicsSubscriptionsDelete.d.ts +3 -0
- package/funcs/topicsSubscriptionsDelete.d.ts.map +1 -1
- package/funcs/topicsSubscriptionsDelete.js +3 -0
- package/funcs/topicsSubscriptionsDelete.js.map +1 -1
- package/funcs/topicsSubscriptionsList.d.ts +4 -0
- package/funcs/topicsSubscriptionsList.d.ts.map +1 -1
- package/funcs/topicsSubscriptionsList.js +4 -0
- package/funcs/topicsSubscriptionsList.js.map +1 -1
- package/funcs/topicsUpdate.d.ts +4 -1
- package/funcs/topicsUpdate.d.ts.map +1 -1
- package/funcs/topicsUpdate.js +4 -1
- package/funcs/topicsUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/config.js.map +1 -1
- package/mcp-server/cli/start/impl.js +2 -2
- package/mcp-server/cli/start/impl.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +1 -15
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/integrationsCreate.d.ts.map +1 -1
- package/mcp-server/tools/integrationsCreate.js +3 -2
- package/mcp-server/tools/integrationsCreate.js.map +1 -1
- package/mcp-server/tools/integrationsDelete.d.ts.map +1 -1
- package/mcp-server/tools/integrationsDelete.js +4 -1
- package/mcp-server/tools/integrationsDelete.js.map +1 -1
- package/mcp-server/tools/integrationsList.js +2 -2
- package/mcp-server/tools/integrationsList.js.map +1 -1
- package/mcp-server/tools/integrationsListActive.js +2 -2
- package/mcp-server/tools/integrationsListActive.js.map +1 -1
- package/mcp-server/tools/integrationsSetAsPrimary.d.ts.map +1 -1
- package/mcp-server/tools/integrationsSetAsPrimary.js +5 -1
- package/mcp-server/tools/integrationsSetAsPrimary.js.map +1 -1
- package/mcp-server/tools/integrationsUpdate.d.ts.map +1 -1
- package/mcp-server/tools/integrationsUpdate.js +4 -1
- package/mcp-server/tools/integrationsUpdate.js.map +1 -1
- package/mcp-server/tools/messagesDelete.d.ts.map +1 -1
- package/mcp-server/tools/messagesDelete.js +3 -2
- package/mcp-server/tools/messagesDelete.js.map +1 -1
- package/mcp-server/tools/messagesDeleteByTransactionId.d.ts.map +1 -1
- package/mcp-server/tools/messagesDeleteByTransactionId.js +2 -1
- package/mcp-server/tools/messagesDeleteByTransactionId.js.map +1 -1
- package/mcp-server/tools/messagesRetrieve.d.ts.map +1 -1
- package/mcp-server/tools/messagesRetrieve.js +4 -2
- package/mcp-server/tools/messagesRetrieve.js.map +1 -1
- package/mcp-server/tools/notificationsList.d.ts.map +1 -1
- package/mcp-server/tools/notificationsList.js +6 -1
- package/mcp-server/tools/notificationsList.js.map +1 -1
- package/mcp-server/tools/notificationsRetrieve.d.ts.map +1 -1
- package/mcp-server/tools/notificationsRetrieve.js +5 -1
- package/mcp-server/tools/notificationsRetrieve.js.map +1 -1
- package/mcp-server/tools/subscribersCreate.d.ts.map +1 -1
- package/mcp-server/tools/subscribersCreate.js +3 -2
- package/mcp-server/tools/subscribersCreate.js.map +1 -1
- package/mcp-server/tools/subscribersCreateBulk.d.ts.map +1 -1
- package/mcp-server/tools/subscribersCreateBulk.js +1 -2
- package/mcp-server/tools/subscribersCreateBulk.js.map +1 -1
- package/mcp-server/tools/subscribersCredentialsAppend.js +3 -3
- package/mcp-server/tools/subscribersCredentialsAppend.js.map +1 -1
- package/mcp-server/tools/subscribersCredentialsDelete.d.ts.map +1 -1
- package/mcp-server/tools/subscribersCredentialsDelete.js +3 -2
- package/mcp-server/tools/subscribersCredentialsDelete.js.map +1 -1
- package/mcp-server/tools/subscribersCredentialsUpdate.d.ts.map +1 -1
- package/mcp-server/tools/subscribersCredentialsUpdate.js +3 -2
- package/mcp-server/tools/subscribersCredentialsUpdate.js.map +1 -1
- package/mcp-server/tools/subscribersDelete.js +1 -1
- package/mcp-server/tools/subscribersDelete.js.map +1 -1
- package/mcp-server/tools/subscribersMessagesMarkAll.d.ts.map +1 -1
- package/mcp-server/tools/subscribersMessagesMarkAll.js +3 -1
- package/mcp-server/tools/subscribersMessagesMarkAll.js.map +1 -1
- package/mcp-server/tools/subscribersMessagesMarkAllAs.d.ts.map +1 -1
- package/mcp-server/tools/subscribersMessagesMarkAllAs.js +4 -1
- package/mcp-server/tools/subscribersMessagesMarkAllAs.js.map +1 -1
- package/mcp-server/tools/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
- package/mcp-server/tools/subscribersMessagesUpdateAsSeen.js +4 -1
- package/mcp-server/tools/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/mcp-server/tools/subscribersNotificationsFeed.d.ts.map +1 -1
- package/mcp-server/tools/subscribersNotificationsFeed.js +3 -1
- package/mcp-server/tools/subscribersNotificationsFeed.js.map +1 -1
- package/mcp-server/tools/subscribersNotificationsUnseenCount.d.ts.map +1 -1
- package/mcp-server/tools/subscribersNotificationsUnseenCount.js +3 -1
- package/mcp-server/tools/subscribersNotificationsUnseenCount.js.map +1 -1
- package/mcp-server/tools/subscribersPatch.d.ts.map +1 -1
- package/mcp-server/tools/subscribersPatch.js +3 -2
- package/mcp-server/tools/subscribersPatch.js.map +1 -1
- package/mcp-server/tools/subscribersPreferencesList.d.ts.map +1 -1
- package/mcp-server/tools/subscribersPreferencesList.js +3 -2
- package/mcp-server/tools/subscribersPreferencesList.js.map +1 -1
- package/mcp-server/tools/subscribersPreferencesUpdate.d.ts.map +1 -1
- package/mcp-server/tools/subscribersPreferencesUpdate.js +4 -2
- package/mcp-server/tools/subscribersPreferencesUpdate.js.map +1 -1
- package/mcp-server/tools/subscribersPropertiesUpdateOnlineFlag.js +1 -1
- package/mcp-server/tools/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
- package/mcp-server/tools/subscribersRetrieve.d.ts.map +1 -1
- package/mcp-server/tools/subscribersRetrieve.js +3 -2
- package/mcp-server/tools/subscribersRetrieve.js.map +1 -1
- package/mcp-server/tools/subscribersSearch.d.ts.map +1 -1
- package/mcp-server/tools/subscribersSearch.js +4 -1
- package/mcp-server/tools/subscribersSearch.js.map +1 -1
- package/mcp-server/tools/subscribersTopicsList.d.ts.map +1 -1
- package/mcp-server/tools/subscribersTopicsList.js +3 -2
- package/mcp-server/tools/subscribersTopicsList.js.map +1 -1
- package/mcp-server/tools/topicsCreate.js +1 -1
- package/mcp-server/tools/topicsDelete.d.ts.map +1 -1
- package/mcp-server/tools/topicsDelete.js +4 -1
- package/mcp-server/tools/topicsDelete.js.map +1 -1
- package/mcp-server/tools/topicsGet.d.ts.map +1 -1
- package/mcp-server/tools/topicsGet.js +3 -1
- package/mcp-server/tools/topicsGet.js.map +1 -1
- package/mcp-server/tools/topicsList.d.ts.map +1 -1
- package/mcp-server/tools/topicsList.js +5 -1
- package/mcp-server/tools/topicsList.js.map +1 -1
- package/mcp-server/tools/topicsSubscriptionsCreate.d.ts.map +1 -1
- package/mcp-server/tools/topicsSubscriptionsCreate.js +4 -1
- package/mcp-server/tools/topicsSubscriptionsCreate.js.map +1 -1
- package/mcp-server/tools/topicsSubscriptionsDelete.d.ts.map +1 -1
- package/mcp-server/tools/topicsSubscriptionsDelete.js +3 -1
- package/mcp-server/tools/topicsSubscriptionsDelete.js.map +1 -1
- package/mcp-server/tools/topicsSubscriptionsList.d.ts.map +1 -1
- package/mcp-server/tools/topicsSubscriptionsList.js +4 -1
- package/mcp-server/tools/topicsSubscriptionsList.js.map +1 -1
- package/mcp-server/tools/topicsUpdate.d.ts.map +1 -1
- package/mcp-server/tools/topicsUpdate.js +3 -1
- package/mcp-server/tools/topicsUpdate.js.map +1 -1
- package/models/components/index.d.ts +0 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -3
- package/models/components/index.js.map +1 -1
- package/models/components/notificationfeeditemdto.d.ts +2 -2
- package/models/components/notificationfeeditemdto.d.ts.map +1 -1
- package/models/components/notificationfeeditemdto.js +2 -2
- package/models/components/notificationfeeditemdto.js.map +1 -1
- package/models/operations/index.d.ts +0 -7
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -7
- package/models/operations/index.js.map +1 -1
- package/package.json +2 -2
- package/sdk/credentials.d.ts +9 -7
- package/sdk/credentials.d.ts.map +1 -1
- package/sdk/credentials.js +9 -7
- package/sdk/credentials.js.map +1 -1
- package/sdk/integrations.d.ts +23 -12
- package/sdk/integrations.d.ts.map +1 -1
- package/sdk/integrations.js +23 -13
- package/sdk/integrations.js.map +1 -1
- package/sdk/messages.d.ts +9 -5
- package/sdk/messages.d.ts.map +1 -1
- package/sdk/messages.js +9 -5
- package/sdk/messages.js.map +1 -1
- package/sdk/notifications.d.ts +13 -5
- package/sdk/notifications.d.ts.map +1 -1
- package/sdk/notifications.js +13 -6
- package/sdk/notifications.js.map +1 -1
- package/sdk/novumessages.d.ts +14 -3
- package/sdk/novumessages.d.ts.map +1 -1
- package/sdk/novumessages.js +14 -3
- package/sdk/novumessages.js.map +1 -1
- package/sdk/novunotifications.d.ts +8 -2
- package/sdk/novunotifications.d.ts.map +1 -1
- package/sdk/novunotifications.js +8 -2
- package/sdk/novunotifications.js.map +1 -1
- package/sdk/novutopics.d.ts +3 -2
- package/sdk/novutopics.d.ts.map +1 -1
- package/sdk/novutopics.js +3 -2
- package/sdk/novutopics.js.map +1 -1
- package/sdk/preferences.d.ts +7 -4
- package/sdk/preferences.d.ts.map +1 -1
- package/sdk/preferences.js +7 -4
- package/sdk/preferences.js.map +1 -1
- package/sdk/properties.d.ts +1 -1
- package/sdk/properties.js +1 -1
- package/sdk/subscribers.d.ts +16 -30
- package/sdk/subscribers.d.ts.map +1 -1
- package/sdk/subscribers.js +16 -35
- package/sdk/subscribers.js.map +1 -1
- package/sdk/subscriptions.d.ts +12 -1
- package/sdk/subscriptions.d.ts.map +1 -1
- package/sdk/subscriptions.js +12 -1
- package/sdk/subscriptions.js.map +1 -1
- package/sdk/topics.d.ts +20 -5
- package/sdk/topics.d.ts.map +1 -1
- package/sdk/topics.js +20 -5
- package/sdk/topics.js.map +1 -1
- package/sources/json-development.json +2597 -5944
- package/src/funcs/integrationsCreate.ts +3 -2
- package/src/funcs/integrationsDelete.ts +5 -1
- package/src/funcs/integrationsList.ts +2 -2
- package/src/funcs/integrationsListActive.ts +2 -2
- package/src/funcs/integrationsSetAsPrimary.ts +6 -1
- package/src/funcs/integrationsUpdate.ts +5 -1
- package/src/funcs/messagesDelete.ts +3 -2
- package/src/funcs/messagesDeleteByTransactionId.ts +2 -1
- package/src/funcs/messagesRetrieve.ts +4 -2
- package/src/funcs/notificationsList.ts +7 -1
- package/src/funcs/notificationsRetrieve.ts +6 -1
- package/src/funcs/subscribersCreate.ts +3 -2
- package/src/funcs/subscribersCreateBulk.ts +1 -2
- package/src/funcs/subscribersCredentialsAppend.ts +3 -3
- package/src/funcs/subscribersCredentialsDelete.ts +3 -2
- package/src/funcs/subscribersCredentialsUpdate.ts +3 -2
- package/src/funcs/subscribersDelete.ts +1 -1
- package/src/funcs/subscribersMessagesMarkAll.ts +4 -1
- package/src/funcs/subscribersMessagesMarkAllAs.ts +5 -1
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +5 -1
- package/src/funcs/subscribersNotificationsFeed.ts +4 -1
- package/src/funcs/subscribersNotificationsUnseenCount.ts +4 -1
- package/src/funcs/subscribersPatch.ts +3 -2
- package/src/funcs/subscribersPreferencesList.ts +3 -2
- package/src/funcs/subscribersPreferencesUpdate.ts +4 -2
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +1 -1
- package/src/funcs/subscribersRetrieve.ts +3 -2
- package/src/funcs/subscribersSearch.ts +5 -1
- package/src/funcs/subscribersTopicsList.ts +3 -2
- package/src/funcs/topicsCreate.ts +1 -1
- package/src/funcs/topicsDelete.ts +5 -1
- package/src/funcs/topicsGet.ts +4 -1
- package/src/funcs/topicsList.ts +6 -1
- package/src/funcs/topicsSubscriptionsCreate.ts +5 -1
- package/src/funcs/topicsSubscriptionsDelete.ts +3 -0
- package/src/funcs/topicsSubscriptionsList.ts +4 -0
- package/src/funcs/topicsUpdate.ts +4 -1
- package/src/lib/config.ts +4 -4
- package/src/mcp-server/cli/start/impl.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -15
- package/src/mcp-server/tools/integrationsCreate.ts +3 -2
- package/src/mcp-server/tools/integrationsDelete.ts +4 -1
- package/src/mcp-server/tools/integrationsList.ts +2 -2
- package/src/mcp-server/tools/integrationsListActive.ts +2 -2
- package/src/mcp-server/tools/integrationsSetAsPrimary.ts +5 -1
- package/src/mcp-server/tools/integrationsUpdate.ts +4 -1
- package/src/mcp-server/tools/messagesDelete.ts +3 -2
- package/src/mcp-server/tools/messagesDeleteByTransactionId.ts +2 -1
- package/src/mcp-server/tools/messagesRetrieve.ts +4 -2
- package/src/mcp-server/tools/notificationsList.ts +6 -1
- package/src/mcp-server/tools/notificationsRetrieve.ts +5 -1
- package/src/mcp-server/tools/subscribersCreate.ts +3 -2
- package/src/mcp-server/tools/subscribersCreateBulk.ts +1 -2
- package/src/mcp-server/tools/subscribersCredentialsAppend.ts +3 -3
- package/src/mcp-server/tools/subscribersCredentialsDelete.ts +3 -2
- package/src/mcp-server/tools/subscribersCredentialsUpdate.ts +3 -2
- package/src/mcp-server/tools/subscribersDelete.ts +1 -1
- package/src/mcp-server/tools/subscribersMessagesMarkAll.ts +3 -2
- package/src/mcp-server/tools/subscribersMessagesMarkAllAs.ts +4 -1
- package/src/mcp-server/tools/subscribersMessagesUpdateAsSeen.ts +4 -1
- package/src/mcp-server/tools/subscribersNotificationsFeed.ts +3 -1
- package/src/mcp-server/tools/subscribersNotificationsUnseenCount.ts +3 -1
- package/src/mcp-server/tools/subscribersPatch.ts +3 -2
- package/src/mcp-server/tools/subscribersPreferencesList.ts +3 -2
- package/src/mcp-server/tools/subscribersPreferencesUpdate.ts +4 -2
- package/src/mcp-server/tools/subscribersPropertiesUpdateOnlineFlag.ts +1 -1
- package/src/mcp-server/tools/subscribersRetrieve.ts +3 -2
- package/src/mcp-server/tools/subscribersSearch.ts +4 -1
- package/src/mcp-server/tools/subscribersTopicsList.ts +3 -2
- package/src/mcp-server/tools/topicsCreate.ts +1 -1
- package/src/mcp-server/tools/topicsDelete.ts +4 -1
- package/src/mcp-server/tools/topicsGet.ts +3 -1
- package/src/mcp-server/tools/topicsList.ts +5 -1
- package/src/mcp-server/tools/topicsSubscriptionsCreate.ts +4 -2
- package/src/mcp-server/tools/topicsSubscriptionsDelete.ts +3 -1
- package/src/mcp-server/tools/topicsSubscriptionsList.ts +4 -1
- package/src/mcp-server/tools/topicsUpdate.ts +3 -1
- package/src/models/components/index.ts +0 -3
- package/src/models/components/notificationfeeditemdto.ts +4 -4
- package/src/models/operations/index.ts +0 -7
- package/src/sdk/credentials.ts +9 -7
- package/src/sdk/integrations.ts +23 -15
- package/src/sdk/messages.ts +9 -5
- package/src/sdk/notifications.ts +13 -8
- package/src/sdk/novumessages.ts +14 -3
- package/src/sdk/novunotifications.ts +8 -2
- package/src/sdk/novutopics.ts +3 -2
- package/src/sdk/preferences.ts +7 -4
- package/src/sdk/properties.ts +1 -1
- package/src/sdk/subscribers.ts +16 -66
- package/src/sdk/subscriptions.ts +12 -1
- package/src/sdk/topics.ts +20 -5
- package/docs/sdks/authentication/README.md +0 -183
- package/docs/sdks/stats/README.md +0 -162
- package/docs/sdks/webhooks/README.md +0 -85
- package/funcs/integrationsWebhooksRetrieve.d.ts +0 -17
- package/funcs/integrationsWebhooksRetrieve.d.ts.map +0 -1
- package/funcs/integrationsWebhooksRetrieve.js +0 -143
- package/funcs/integrationsWebhooksRetrieve.js.map +0 -1
- package/funcs/notificationsStatsGraph.d.ts +0 -14
- package/funcs/notificationsStatsGraph.d.ts.map +0 -1
- package/funcs/notificationsStatsGraph.js +0 -141
- package/funcs/notificationsStatsGraph.js.map +0 -1
- package/funcs/notificationsStatsRetrieve.d.ts +0 -14
- package/funcs/notificationsStatsRetrieve.d.ts.map +0 -1
- package/funcs/notificationsStatsRetrieve.js +0 -134
- package/funcs/notificationsStatsRetrieve.js.map +0 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts +0 -14
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +0 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.js +0 -148
- package/funcs/subscribersAuthenticationChatAccessOauth.js.map +0 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts +0 -20
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +0 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +0 -154
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +0 -1
- package/funcs/subscribersList.d.ts +0 -20
- package/funcs/subscribersList.d.ts.map +0 -1
- package/funcs/subscribersList.js +0 -172
- package/funcs/subscribersList.js.map +0 -1
- package/funcs/subscribersUpsert.d.ts +0 -18
- package/funcs/subscribersUpsert.d.ts.map +0 -1
- package/funcs/subscribersUpsert.js +0 -148
- package/funcs/subscribersUpsert.js.map +0 -1
- package/mcp-server/tools/integrationsWebhooksRetrieve.d.ts +0 -9
- package/mcp-server/tools/integrationsWebhooksRetrieve.d.ts.map +0 -1
- package/mcp-server/tools/integrationsWebhooksRetrieve.js +0 -55
- package/mcp-server/tools/integrationsWebhooksRetrieve.js.map +0 -1
- package/mcp-server/tools/notificationsStatsGraph.d.ts +0 -9
- package/mcp-server/tools/notificationsStatsGraph.d.ts.map +0 -1
- package/mcp-server/tools/notificationsStatsGraph.js +0 -53
- package/mcp-server/tools/notificationsStatsGraph.js.map +0 -1
- package/mcp-server/tools/notificationsStatsRetrieve.d.ts +0 -8
- package/mcp-server/tools/notificationsStatsRetrieve.d.ts.map +0 -1
- package/mcp-server/tools/notificationsStatsRetrieve.js +0 -52
- package/mcp-server/tools/notificationsStatsRetrieve.js.map +0 -1
- package/mcp-server/tools/subscribersAuthenticationChatAccessOauth.d.ts +0 -8
- package/mcp-server/tools/subscribersAuthenticationChatAccessOauth.d.ts.map +0 -1
- package/mcp-server/tools/subscribersAuthenticationChatAccessOauth.js +0 -51
- package/mcp-server/tools/subscribersAuthenticationChatAccessOauth.js.map +0 -1
- package/mcp-server/tools/subscribersAuthenticationChatAccessOauthCallBack.d.ts +0 -8
- package/mcp-server/tools/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +0 -1
- package/mcp-server/tools/subscribersAuthenticationChatAccessOauthCallBack.js +0 -52
- package/mcp-server/tools/subscribersAuthenticationChatAccessOauthCallBack.js.map +0 -1
- package/mcp-server/tools/subscribersList.d.ts +0 -10
- package/mcp-server/tools/subscribersList.d.ts.map +0 -1
- package/mcp-server/tools/subscribersList.js +0 -56
- package/mcp-server/tools/subscribersList.js.map +0 -1
- package/mcp-server/tools/subscribersUpsert.d.ts +0 -11
- package/mcp-server/tools/subscribersUpsert.d.ts.map +0 -1
- package/mcp-server/tools/subscribersUpsert.js +0 -57
- package/mcp-server/tools/subscribersUpsert.js.map +0 -1
- package/models/components/activitygraphstatesresponse.d.ts +0 -70
- package/models/components/activitygraphstatesresponse.d.ts.map +0 -1
- package/models/components/activitygraphstatesresponse.js +0 -97
- package/models/components/activitygraphstatesresponse.js.map +0 -1
- package/models/components/activitystatsresponsedto.d.ts +0 -31
- package/models/components/activitystatsresponsedto.d.ts.map +0 -1
- package/models/components/activitystatsresponsedto.js +0 -61
- package/models/components/activitystatsresponsedto.js.map +0 -1
- package/models/components/updatesubscriberrequestdto.d.ts +0 -72
- package/models/components/updatesubscriberrequestdto.d.ts.map +0 -1
- package/models/components/updatesubscriberrequestdto.js +0 -74
- package/models/components/updatesubscriberrequestdto.js.map +0 -1
- package/models/operations/integrationscontrollergetwebhooksupportstatus.d.ts +0 -65
- package/models/operations/integrationscontrollergetwebhooksupportstatus.d.ts.map +0 -1
- package/models/operations/integrationscontrollergetwebhooksupportstatus.js +0 -109
- package/models/operations/integrationscontrollergetwebhooksupportstatus.js.map +0 -1
- package/models/operations/notificationscontrollergetactivitygraphstats.d.ts +0 -66
- package/models/operations/notificationscontrollergetactivitygraphstats.d.ts.map +0 -1
- package/models/operations/notificationscontrollergetactivitygraphstats.js +0 -110
- package/models/operations/notificationscontrollergetactivitygraphstats.js.map +0 -1
- package/models/operations/notificationscontrollergetactivitystats.d.ts +0 -64
- package/models/operations/notificationscontrollergetactivitystats.d.ts.map +0 -1
- package/models/operations/notificationscontrollergetactivitystats.js +0 -108
- package/models/operations/notificationscontrollergetactivitystats.js.map +0 -1
- package/models/operations/subscribersv1controllerchataccessoauth.d.ts +0 -80
- package/models/operations/subscribersv1controllerchataccessoauth.d.ts.map +0 -1
- package/models/operations/subscribersv1controllerchataccessoauth.js +0 -113
- package/models/operations/subscribersv1controllerchataccessoauth.js.map +0 -1
- package/models/operations/subscribersv1controllerchatoauthcallback.d.ts +0 -108
- package/models/operations/subscribersv1controllerchatoauthcallback.d.ts.map +0 -1
- package/models/operations/subscribersv1controllerchatoauthcallback.js +0 -143
- package/models/operations/subscribersv1controllerchatoauthcallback.js.map +0 -1
- package/models/operations/subscribersv1controllerlistsubscribers.d.ts +0 -108
- package/models/operations/subscribersv1controllerlistsubscribers.d.ts.map +0 -1
- package/models/operations/subscribersv1controllerlistsubscribers.js +0 -145
- package/models/operations/subscribersv1controllerlistsubscribers.js.map +0 -1
- package/models/operations/subscribersv1controllerupdatesubscriber.d.ts +0 -68
- package/models/operations/subscribersv1controllerupdatesubscriber.d.ts.map +0 -1
- package/models/operations/subscribersv1controllerupdatesubscriber.js +0 -114
- package/models/operations/subscribersv1controllerupdatesubscriber.js.map +0 -1
- package/sdk/authentication.d.ts +0 -17
- package/sdk/authentication.d.ts.map +0 -1
- package/sdk/authentication.js +0 -28
- package/sdk/authentication.js.map +0 -1
- package/sdk/stats.d.ts +0 -13
- package/sdk/stats.d.ts.map +0 -1
- package/sdk/stats.js +0 -26
- package/sdk/stats.js.map +0 -1
- package/sdk/webhooks.d.ts +0 -12
- package/sdk/webhooks.d.ts.map +0 -1
- package/sdk/webhooks.js +0 -22
- package/sdk/webhooks.js.map +0 -1
- package/src/funcs/integrationsWebhooksRetrieve.ts +0 -238
- package/src/funcs/notificationsStatsGraph.ts +0 -230
- package/src/funcs/notificationsStatsRetrieve.ts +0 -218
- package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +0 -234
- package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +0 -250
- package/src/funcs/subscribersList.ts +0 -305
- package/src/funcs/subscribersUpsert.ts +0 -240
- package/src/mcp-server/tools/integrationsWebhooksRetrieve.ts +0 -39
- package/src/mcp-server/tools/notificationsStatsGraph.ts +0 -37
- package/src/mcp-server/tools/notificationsStatsRetrieve.ts +0 -35
- package/src/mcp-server/tools/subscribersAuthenticationChatAccessOauth.ts +0 -36
- package/src/mcp-server/tools/subscribersAuthenticationChatAccessOauthCallBack.ts +0 -38
- package/src/mcp-server/tools/subscribersList.ts +0 -41
- package/src/mcp-server/tools/subscribersUpsert.ts +0 -43
- package/src/models/components/activitygraphstatesresponse.ts +0 -118
- package/src/models/components/activitystatsresponsedto.ts +0 -70
- package/src/models/components/updatesubscriberrequestdto.ts +0 -124
- package/src/models/operations/integrationscontrollergetwebhooksupportstatus.ts +0 -182
- package/src/models/operations/notificationscontrollergetactivitygraphstats.ts +0 -183
- package/src/models/operations/notificationscontrollergetactivitystats.ts +0 -179
- package/src/models/operations/subscribersv1controllerchataccessoauth.ts +0 -200
- package/src/models/operations/subscribersv1controllerchatoauthcallback.ts +0 -281
- package/src/models/operations/subscribersv1controllerlistsubscribers.ts +0 -283
- package/src/models/operations/subscribersv1controllerupdatesubscriber.ts +0 -191
- package/src/sdk/authentication.ts +0 -48
- package/src/sdk/stats.ts +0 -41
- package/src/sdk/webhooks.ts +0 -29
package/src/sdk/integrations.ts
CHANGED
|
@@ -12,19 +12,13 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
|
12
12
|
import * as components from "../models/components/index.js";
|
|
13
13
|
import * as operations from "../models/operations/index.js";
|
|
14
14
|
import { unwrapAsync } from "../types/fp.js";
|
|
15
|
-
import { Webhooks } from "./webhooks.js";
|
|
16
15
|
|
|
17
16
|
export class Integrations extends ClientSDK {
|
|
18
|
-
private _webhooks?: Webhooks;
|
|
19
|
-
get webhooks(): Webhooks {
|
|
20
|
-
return (this._webhooks ??= new Webhooks(this._options));
|
|
21
|
-
}
|
|
22
|
-
|
|
23
17
|
/**
|
|
24
|
-
*
|
|
18
|
+
* List all integrations
|
|
25
19
|
*
|
|
26
20
|
* @remarks
|
|
27
|
-
*
|
|
21
|
+
* List all the channels integrations created in the organization
|
|
28
22
|
*/
|
|
29
23
|
async list(
|
|
30
24
|
idempotencyKey?: string | undefined,
|
|
@@ -38,10 +32,11 @@ export class Integrations extends ClientSDK {
|
|
|
38
32
|
}
|
|
39
33
|
|
|
40
34
|
/**
|
|
41
|
-
* Create integration
|
|
35
|
+
* Create an integration
|
|
42
36
|
*
|
|
43
37
|
* @remarks
|
|
44
|
-
* Create an integration for the current environment the user is based on the API key provided
|
|
38
|
+
* Create an integration for the current environment the user is based on the API key provided.
|
|
39
|
+
* Each provider supports different credentials, check the provider documentation for more details.
|
|
45
40
|
*/
|
|
46
41
|
async create(
|
|
47
42
|
createIntegrationRequestDto: components.CreateIntegrationRequestDto,
|
|
@@ -57,7 +52,11 @@ export class Integrations extends ClientSDK {
|
|
|
57
52
|
}
|
|
58
53
|
|
|
59
54
|
/**
|
|
60
|
-
* Update integration
|
|
55
|
+
* Update an integration
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* Update an integration by its unique key identifier **integrationId**.
|
|
59
|
+
* Each provider supports different credentials, check the provider documentation for more details.
|
|
61
60
|
*/
|
|
62
61
|
async update(
|
|
63
62
|
updateIntegrationRequestDto: components.UpdateIntegrationRequestDto,
|
|
@@ -75,7 +74,11 @@ export class Integrations extends ClientSDK {
|
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
/**
|
|
78
|
-
* Delete integration
|
|
77
|
+
* Delete an integration
|
|
78
|
+
*
|
|
79
|
+
* @remarks
|
|
80
|
+
* Delete an integration by its unique key identifier **integrationId**.
|
|
81
|
+
* This action is irreversible.
|
|
79
82
|
*/
|
|
80
83
|
async delete(
|
|
81
84
|
integrationId: string,
|
|
@@ -91,7 +94,12 @@ export class Integrations extends ClientSDK {
|
|
|
91
94
|
}
|
|
92
95
|
|
|
93
96
|
/**
|
|
94
|
-
*
|
|
97
|
+
* Update integration as primary
|
|
98
|
+
*
|
|
99
|
+
* @remarks
|
|
100
|
+
* Update an integration as **primary** by its unique key identifier **integrationId**.
|
|
101
|
+
* This API will set the integration as primary for that channel in the current environment.
|
|
102
|
+
* Primary integration is used to deliver notification for sms and email channels in the workflow.
|
|
95
103
|
*/
|
|
96
104
|
async setAsPrimary(
|
|
97
105
|
integrationId: string,
|
|
@@ -107,10 +115,10 @@ export class Integrations extends ClientSDK {
|
|
|
107
115
|
}
|
|
108
116
|
|
|
109
117
|
/**
|
|
110
|
-
*
|
|
118
|
+
* List active integrations
|
|
111
119
|
*
|
|
112
120
|
* @remarks
|
|
113
|
-
*
|
|
121
|
+
* List all the active integrations created in the organization
|
|
114
122
|
*/
|
|
115
123
|
async listActive(
|
|
116
124
|
idempotencyKey?: string | undefined,
|
package/src/sdk/messages.ts
CHANGED
|
@@ -11,10 +11,12 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
11
11
|
|
|
12
12
|
export class Messages extends ClientSDK {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* List all messages
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
*
|
|
17
|
+
* List all messages for the current environment.
|
|
18
|
+
* This API supports filtering by **channel**, **subscriberId**, and **transactionId**.
|
|
19
|
+
* This API returns a paginated list of messages.
|
|
18
20
|
*/
|
|
19
21
|
async retrieve(
|
|
20
22
|
request: operations.MessagesControllerGetMessagesRequest,
|
|
@@ -28,10 +30,11 @@ export class Messages extends ClientSDK {
|
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
/**
|
|
31
|
-
* Delete message
|
|
33
|
+
* Delete a message
|
|
32
34
|
*
|
|
33
35
|
* @remarks
|
|
34
|
-
*
|
|
36
|
+
* Delete a message entity from the Novu platform by **messageId**.
|
|
37
|
+
* This action is irreversible. **messageId** is required and of mongodbId type.
|
|
35
38
|
*/
|
|
36
39
|
async delete(
|
|
37
40
|
messageId: string,
|
|
@@ -50,7 +53,8 @@ export class Messages extends ClientSDK {
|
|
|
50
53
|
* Delete messages by transactionId
|
|
51
54
|
*
|
|
52
55
|
* @remarks
|
|
53
|
-
*
|
|
56
|
+
* Delete multiple messages from the Novu platform using **transactionId** of triggered event.
|
|
57
|
+
* This API supports filtering by **channel** and delete all messages associated with the **transactionId**.
|
|
54
58
|
*/
|
|
55
59
|
async deleteByTransactionId(
|
|
56
60
|
transactionId: string,
|
package/src/sdk/notifications.ts
CHANGED
|
@@ -7,16 +7,16 @@ import { notificationsRetrieve } from "../funcs/notificationsRetrieve.js";
|
|
|
7
7
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
8
|
import * as operations from "../models/operations/index.js";
|
|
9
9
|
import { unwrapAsync } from "../types/fp.js";
|
|
10
|
-
import { Stats } from "./stats.js";
|
|
11
10
|
|
|
12
11
|
export class Notifications extends ClientSDK {
|
|
13
|
-
private _stats?: Stats;
|
|
14
|
-
get stats(): Stats {
|
|
15
|
-
return (this._stats ??= new Stats(this._options));
|
|
16
|
-
}
|
|
17
|
-
|
|
18
12
|
/**
|
|
19
|
-
*
|
|
13
|
+
* List all events
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* List all notification events (triggered events) for the current environment.
|
|
17
|
+
* This API supports filtering by **channels**, **templates**, **emails**, **subscriberIds**, **transactionId**, **topicKey**.
|
|
18
|
+
* Checkout all available filters in the query section.
|
|
19
|
+
* This API returns event triggers, to list each channel notifications, check messages APIs.
|
|
20
20
|
*/
|
|
21
21
|
async list(
|
|
22
22
|
request: operations.NotificationsControllerListNotificationsRequest,
|
|
@@ -30,7 +30,12 @@ export class Notifications extends ClientSDK {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Retrieve an event
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Retrieve an event by its unique key identifier **notificationId**.
|
|
37
|
+
* Here **notificationId** is of mongodbId type.
|
|
38
|
+
* This API returns the event details - execution logs, status, actual notification (message) generated by each workflow step.
|
|
34
39
|
*/
|
|
35
40
|
async retrieve(
|
|
36
41
|
notificationId: string,
|
package/src/sdk/novumessages.ts
CHANGED
|
@@ -12,7 +12,11 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
12
12
|
|
|
13
13
|
export class NovuMessages extends ClientSDK {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Update notification action status
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Update in-app (inbox) notification's action status by its unique key identifier **messageId** and type field **type**.
|
|
19
|
+
* **type** field can be **primary** or **secondary**
|
|
16
20
|
*/
|
|
17
21
|
async updateAsSeen(
|
|
18
22
|
request: operations.SubscribersV1ControllerMarkActionAsSeenRequest,
|
|
@@ -26,7 +30,10 @@ export class NovuMessages extends ClientSDK {
|
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
/**
|
|
29
|
-
*
|
|
33
|
+
* Update all notifications state
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Update all subscriber in-app (inbox) notifications state such as read, unread, seen or unseen by **subscriberId**.
|
|
30
37
|
*/
|
|
31
38
|
async markAll(
|
|
32
39
|
markAllMessageAsRequestDto: components.MarkAllMessageAsRequestDto,
|
|
@@ -44,7 +51,11 @@ export class NovuMessages extends ClientSDK {
|
|
|
44
51
|
}
|
|
45
52
|
|
|
46
53
|
/**
|
|
47
|
-
*
|
|
54
|
+
* Update notifications state
|
|
55
|
+
*
|
|
56
|
+
* @remarks
|
|
57
|
+
* Update subscriber's multiple in-app (inbox) notifications state such as seen, read, unseen or unread by **subscriberId**.
|
|
58
|
+
* **messageId** is of type mongodbId of notifications
|
|
48
59
|
*/
|
|
49
60
|
async markAllAs(
|
|
50
61
|
messageMarkAsRequestDto: components.MessageMarkAsRequestDto,
|
|
@@ -10,7 +10,10 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
10
10
|
|
|
11
11
|
export class NovuNotifications extends ClientSDK {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Retrieve subscriber notifications
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Retrieve subscriber in-app (inbox) notifications by its unique key identifier **subscriberId**.
|
|
14
17
|
*/
|
|
15
18
|
async feed(
|
|
16
19
|
request: operations.SubscribersV1ControllerGetNotificationsFeedRequest,
|
|
@@ -24,7 +27,10 @@ export class NovuNotifications extends ClientSDK {
|
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
/**
|
|
27
|
-
*
|
|
30
|
+
* Retrieve unseen notifications count
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Retrieve unseen in-app (inbox) notifications count for a subscriber by its unique key identifier **subscriberId**.
|
|
28
34
|
*/
|
|
29
35
|
async unseenCount(
|
|
30
36
|
request: operations.SubscribersV1ControllerGetUnseenCountRequest,
|
package/src/sdk/novutopics.ts
CHANGED
|
@@ -9,10 +9,11 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
9
9
|
|
|
10
10
|
export class NovuTopics extends ClientSDK {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Retrieve subscriber subscriptions
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
15
|
+
* Retrieve subscriber's topic subscriptions by its unique key identifier **subscriberId**.
|
|
16
|
+
* Checkout all available filters in the query section.
|
|
16
17
|
*/
|
|
17
18
|
async list(
|
|
18
19
|
request: operations.SubscribersControllerListSubscriberTopicsRequest,
|
package/src/sdk/preferences.ts
CHANGED
|
@@ -11,10 +11,11 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
11
11
|
|
|
12
12
|
export class Preferences extends ClientSDK {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Retrieve subscriber preferences
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
*
|
|
17
|
+
* Retrieve subscriber channel preferences by its unique key identifier **subscriberId**.
|
|
18
|
+
* This API returns all five channels preferences for all workflows and global preferences.
|
|
18
19
|
*/
|
|
19
20
|
async list(
|
|
20
21
|
subscriberId: string,
|
|
@@ -30,10 +31,12 @@ export class Preferences extends ClientSDK {
|
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
|
-
* Update subscriber
|
|
34
|
+
* Update subscriber preferences
|
|
34
35
|
*
|
|
35
36
|
* @remarks
|
|
36
|
-
* Update subscriber
|
|
37
|
+
* Update subscriber preferences by its unique key identifier **subscriberId**.
|
|
38
|
+
* **workflowId** is optional field, if provided, this API will update that workflow preference,
|
|
39
|
+
* otherwise it will update global preferences
|
|
37
40
|
*/
|
|
38
41
|
async update(
|
|
39
42
|
patchSubscriberPreferencesDto: components.PatchSubscriberPreferencesDto,
|
package/src/sdk/properties.ts
CHANGED
|
@@ -13,7 +13,7 @@ export class Properties extends ClientSDK {
|
|
|
13
13
|
* Update subscriber online status
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
*
|
|
16
|
+
* Update the subscriber online status by its unique key identifier **subscriberId**
|
|
17
17
|
*/
|
|
18
18
|
async updateOnlineFlag(
|
|
19
19
|
updateSubscriberOnlineFlagRequestDto:
|
package/src/sdk/subscribers.ts
CHANGED
|
@@ -5,17 +5,13 @@
|
|
|
5
5
|
import { subscribersCreate } from "../funcs/subscribersCreate.js";
|
|
6
6
|
import { subscribersCreateBulk } from "../funcs/subscribersCreateBulk.js";
|
|
7
7
|
import { subscribersDelete } from "../funcs/subscribersDelete.js";
|
|
8
|
-
import { subscribersList } from "../funcs/subscribersList.js";
|
|
9
8
|
import { subscribersPatch } from "../funcs/subscribersPatch.js";
|
|
10
9
|
import { subscribersRetrieve } from "../funcs/subscribersRetrieve.js";
|
|
11
10
|
import { subscribersSearch } from "../funcs/subscribersSearch.js";
|
|
12
|
-
import { subscribersUpsert } from "../funcs/subscribersUpsert.js";
|
|
13
11
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
14
12
|
import * as components from "../models/components/index.js";
|
|
15
13
|
import * as operations from "../models/operations/index.js";
|
|
16
14
|
import { unwrapAsync } from "../types/fp.js";
|
|
17
|
-
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
18
|
-
import { Authentication } from "./authentication.js";
|
|
19
15
|
import { Credentials } from "./credentials.js";
|
|
20
16
|
import { NovuMessages } from "./novumessages.js";
|
|
21
17
|
import { NovuNotifications } from "./novunotifications.js";
|
|
@@ -39,11 +35,6 @@ export class Subscribers extends ClientSDK {
|
|
|
39
35
|
return (this._credentials ??= new Credentials(this._options));
|
|
40
36
|
}
|
|
41
37
|
|
|
42
|
-
private _authentication?: Authentication;
|
|
43
|
-
get authentication(): Authentication {
|
|
44
|
-
return (this._authentication ??= new Authentication(this._options));
|
|
45
|
-
}
|
|
46
|
-
|
|
47
38
|
private _messages?: NovuMessages;
|
|
48
39
|
get messages(): NovuMessages {
|
|
49
40
|
return (this._messages ??= new NovuMessages(this._options));
|
|
@@ -60,7 +51,11 @@ export class Subscribers extends ClientSDK {
|
|
|
60
51
|
}
|
|
61
52
|
|
|
62
53
|
/**
|
|
63
|
-
* Search
|
|
54
|
+
* Search subscribers
|
|
55
|
+
*
|
|
56
|
+
* @remarks
|
|
57
|
+
* Search subscribers by their **email**, **phone**, **subscriberId** and **name**.
|
|
58
|
+
* The search is case sensitive and supports pagination.Checkout all available filters in the query section.
|
|
64
59
|
*/
|
|
65
60
|
async search(
|
|
66
61
|
request: operations.SubscribersControllerSearchSubscribersRequest,
|
|
@@ -74,10 +69,11 @@ export class Subscribers extends ClientSDK {
|
|
|
74
69
|
}
|
|
75
70
|
|
|
76
71
|
/**
|
|
77
|
-
* Create subscriber
|
|
72
|
+
* Create a subscriber
|
|
78
73
|
*
|
|
79
74
|
* @remarks
|
|
80
|
-
* Create subscriber with the
|
|
75
|
+
* Create a subscriber with the subscriber attributes.
|
|
76
|
+
* **subscriberId** is a required field, rest other fields are optional, if the subscriber already exists, it will be updated
|
|
81
77
|
*/
|
|
82
78
|
async create(
|
|
83
79
|
createSubscriberRequestDto: components.CreateSubscriberRequestDto,
|
|
@@ -93,10 +89,11 @@ export class Subscribers extends ClientSDK {
|
|
|
93
89
|
}
|
|
94
90
|
|
|
95
91
|
/**
|
|
96
|
-
*
|
|
92
|
+
* Retrieve a subscriber
|
|
97
93
|
*
|
|
98
94
|
* @remarks
|
|
99
|
-
*
|
|
95
|
+
* Retrive a subscriber by its unique key identifier **subscriberId**.
|
|
96
|
+
* **subscriberId** field is required.
|
|
100
97
|
*/
|
|
101
98
|
async retrieve(
|
|
102
99
|
subscriberId: string,
|
|
@@ -112,10 +109,11 @@ export class Subscribers extends ClientSDK {
|
|
|
112
109
|
}
|
|
113
110
|
|
|
114
111
|
/**
|
|
115
|
-
*
|
|
112
|
+
* Update a subscriber
|
|
116
113
|
*
|
|
117
114
|
* @remarks
|
|
118
|
-
*
|
|
115
|
+
* Update a subscriber by its unique key identifier **subscriberId**.
|
|
116
|
+
* **subscriberId** is a required field, rest other fields are optional
|
|
119
117
|
*/
|
|
120
118
|
async patch(
|
|
121
119
|
patchSubscriberRequestDto: components.PatchSubscriberRequestDto,
|
|
@@ -136,7 +134,7 @@ export class Subscribers extends ClientSDK {
|
|
|
136
134
|
* Delete subscriber
|
|
137
135
|
*
|
|
138
136
|
* @remarks
|
|
139
|
-
* Deletes a subscriber entity from the Novu platform
|
|
137
|
+
* Deletes a subscriber entity from the Novu platform along with associated messages, preferences, and topic subscriptions
|
|
140
138
|
*/
|
|
141
139
|
async delete(
|
|
142
140
|
subscriberId: string,
|
|
@@ -151,60 +149,12 @@ export class Subscribers extends ClientSDK {
|
|
|
151
149
|
));
|
|
152
150
|
}
|
|
153
151
|
|
|
154
|
-
/**
|
|
155
|
-
* Get subscribers
|
|
156
|
-
*
|
|
157
|
-
* @remarks
|
|
158
|
-
* Returns a list of subscribers, could paginated using the `page` and `limit` query parameter
|
|
159
|
-
*/
|
|
160
|
-
async list(
|
|
161
|
-
page?: number | undefined,
|
|
162
|
-
limit?: number | undefined,
|
|
163
|
-
idempotencyKey?: string | undefined,
|
|
164
|
-
options?: RequestOptions,
|
|
165
|
-
): Promise<
|
|
166
|
-
PageIterator<
|
|
167
|
-
operations.SubscribersV1ControllerListSubscribersResponse,
|
|
168
|
-
{ page: number }
|
|
169
|
-
>
|
|
170
|
-
> {
|
|
171
|
-
return unwrapResultIterator(subscribersList(
|
|
172
|
-
this,
|
|
173
|
-
page,
|
|
174
|
-
limit,
|
|
175
|
-
idempotencyKey,
|
|
176
|
-
options,
|
|
177
|
-
));
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Upsert subscriber
|
|
182
|
-
*
|
|
183
|
-
* @remarks
|
|
184
|
-
* Used to upsert the subscriber entity with new information
|
|
185
|
-
*/
|
|
186
|
-
async upsert(
|
|
187
|
-
updateSubscriberRequestDto: components.UpdateSubscriberRequestDto,
|
|
188
|
-
subscriberId: string,
|
|
189
|
-
idempotencyKey?: string | undefined,
|
|
190
|
-
options?: RequestOptions,
|
|
191
|
-
): Promise<operations.SubscribersV1ControllerUpdateSubscriberResponse> {
|
|
192
|
-
return unwrapAsync(subscribersUpsert(
|
|
193
|
-
this,
|
|
194
|
-
updateSubscriberRequestDto,
|
|
195
|
-
subscriberId,
|
|
196
|
-
idempotencyKey,
|
|
197
|
-
options,
|
|
198
|
-
));
|
|
199
|
-
}
|
|
200
|
-
|
|
201
152
|
/**
|
|
202
153
|
* Bulk create subscribers
|
|
203
154
|
*
|
|
204
155
|
* @remarks
|
|
205
156
|
*
|
|
206
|
-
* Using this endpoint
|
|
207
|
-
* The bulk API is limited to 500 subscribers per request.
|
|
157
|
+
* Using this endpoint multiple subscribers can be created at once. The bulk API is limited to 500 subscribers per request.
|
|
208
158
|
*/
|
|
209
159
|
async createBulk(
|
|
210
160
|
bulkSubscriberCreateDto: components.BulkSubscriberCreateDto,
|
package/src/sdk/subscriptions.ts
CHANGED
|
@@ -13,6 +13,10 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
13
13
|
export class Subscriptions extends ClientSDK {
|
|
14
14
|
/**
|
|
15
15
|
* List topic subscriptions
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* List all topics that a subscriber is subscribed to.
|
|
19
|
+
* Checkout all available filters in the query section.
|
|
16
20
|
*/
|
|
17
21
|
async list(
|
|
18
22
|
request: operations.TopicsControllerListTopicSubscriptionsRequest,
|
|
@@ -26,7 +30,11 @@ export class Subscriptions extends ClientSDK {
|
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
/**
|
|
29
|
-
* Create topic subscriptions
|
|
33
|
+
* Create topic subscriptions
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* This api will create subscription for subscriberIds for a topic.
|
|
37
|
+
* Its like subscribing to a common interest group. if topic does not exist, it will be created.
|
|
30
38
|
*/
|
|
31
39
|
async create(
|
|
32
40
|
createTopicSubscriptionsRequestDto:
|
|
@@ -46,6 +54,9 @@ export class Subscriptions extends ClientSDK {
|
|
|
46
54
|
|
|
47
55
|
/**
|
|
48
56
|
* Delete topic subscriptions
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* Delete subscriptions for subscriberIds for a topic.
|
|
49
60
|
*/
|
|
50
61
|
async delete(
|
|
51
62
|
deleteTopicSubscriptionsRequestDto:
|
package/src/sdk/topics.ts
CHANGED
|
@@ -26,7 +26,12 @@ export class Topics extends ClientSDK {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* List all topics
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* This api returns a paginated list of topics.
|
|
33
|
+
* Topics can be filtered by **key**, **name**, or **includeCursor** to paginate through the list.
|
|
34
|
+
* Checkout all available filters in the query section.
|
|
30
35
|
*/
|
|
31
36
|
async list(
|
|
32
37
|
request: operations.TopicsControllerListTopicsRequest,
|
|
@@ -40,7 +45,7 @@ export class Topics extends ClientSDK {
|
|
|
40
45
|
}
|
|
41
46
|
|
|
42
47
|
/**
|
|
43
|
-
* Create
|
|
48
|
+
* Create a topic
|
|
44
49
|
*
|
|
45
50
|
* @remarks
|
|
46
51
|
* Creates a new topic if it does not exist, or updates an existing topic if it already exists
|
|
@@ -59,7 +64,10 @@ export class Topics extends ClientSDK {
|
|
|
59
64
|
}
|
|
60
65
|
|
|
61
66
|
/**
|
|
62
|
-
*
|
|
67
|
+
* Retrieve a topic
|
|
68
|
+
*
|
|
69
|
+
* @remarks
|
|
70
|
+
* Retrieve a topic by its unique key identifier **topicKey**
|
|
63
71
|
*/
|
|
64
72
|
async get(
|
|
65
73
|
topicKey: string,
|
|
@@ -75,7 +83,10 @@ export class Topics extends ClientSDK {
|
|
|
75
83
|
}
|
|
76
84
|
|
|
77
85
|
/**
|
|
78
|
-
* Update topic
|
|
86
|
+
* Update a topic
|
|
87
|
+
*
|
|
88
|
+
* @remarks
|
|
89
|
+
* Update a topic name by its unique key identifier **topicKey**
|
|
79
90
|
*/
|
|
80
91
|
async update(
|
|
81
92
|
updateTopicRequestDto: components.UpdateTopicRequestDto,
|
|
@@ -93,7 +104,11 @@ export class Topics extends ClientSDK {
|
|
|
93
104
|
}
|
|
94
105
|
|
|
95
106
|
/**
|
|
96
|
-
* Delete topic
|
|
107
|
+
* Delete a topic
|
|
108
|
+
*
|
|
109
|
+
* @remarks
|
|
110
|
+
* Delete a topic by its unique key identifier **topicKey**.
|
|
111
|
+
* This action is irreversible and will remove all subscriptions to the topic.
|
|
97
112
|
*/
|
|
98
113
|
async delete(
|
|
99
114
|
topicKey: string,
|