@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/bin/mcp-server.js
CHANGED
|
@@ -34257,10 +34257,10 @@ var init_config = __esm(() => {
|
|
|
34257
34257
|
];
|
|
34258
34258
|
SDK_METADATA = {
|
|
34259
34259
|
language: "typescript",
|
|
34260
|
-
openapiDocVersion: "2.
|
|
34261
|
-
sdkVersion: "1.
|
|
34262
|
-
genVersion: "2.
|
|
34263
|
-
userAgent: "speakeasy-sdk/typescript 1.
|
|
34260
|
+
openapiDocVersion: "2.2.0",
|
|
34261
|
+
sdkVersion: "1.1.0",
|
|
34262
|
+
genVersion: "2.605.6",
|
|
34263
|
+
userAgent: "speakeasy-sdk/typescript 1.1.0 2.605.6 2.2.0 @novu/api"
|
|
34264
34264
|
};
|
|
34265
34265
|
});
|
|
34266
34266
|
|
|
@@ -35348,9 +35348,6 @@ function jsonErr(codes, schema, options) {
|
|
|
35348
35348
|
function json(codes, schema, options) {
|
|
35349
35349
|
return { ...options, enc: "json", codes, schema };
|
|
35350
35350
|
}
|
|
35351
|
-
function text(codes, schema, options) {
|
|
35352
|
-
return { ...options, enc: "text", codes, schema };
|
|
35353
|
-
}
|
|
35354
35351
|
function nil(codes, schema, options) {
|
|
35355
35352
|
return { ...options, enc: "nil", codes, schema };
|
|
35356
35353
|
}
|
|
@@ -36659,68 +36656,6 @@ var init_activitiesresponsedto = __esm(() => {
|
|
|
36659
36656
|
})(ActivitiesResponseDto$ ||= {});
|
|
36660
36657
|
});
|
|
36661
36658
|
|
|
36662
|
-
// src/models/components/activitygraphstatesresponse.ts
|
|
36663
|
-
var Channels, Channels$inboundSchema, Channels$outboundSchema, Channels$, ActivityGraphStatesResponse$inboundSchema, ActivityGraphStatesResponse$outboundSchema, ActivityGraphStatesResponse$;
|
|
36664
|
-
var init_activitygraphstatesresponse = __esm(() => {
|
|
36665
|
-
init_lib();
|
|
36666
|
-
init_primitives();
|
|
36667
|
-
Channels = {
|
|
36668
|
-
InApp: "in_app",
|
|
36669
|
-
Email: "email",
|
|
36670
|
-
Sms: "sms",
|
|
36671
|
-
Chat: "chat",
|
|
36672
|
-
Push: "push"
|
|
36673
|
-
};
|
|
36674
|
-
Channels$inboundSchema = nativeEnumType(Channels);
|
|
36675
|
-
Channels$outboundSchema = Channels$inboundSchema;
|
|
36676
|
-
((Channels$) => {
|
|
36677
|
-
Channels$.inboundSchema = Channels$inboundSchema;
|
|
36678
|
-
Channels$.outboundSchema = Channels$outboundSchema;
|
|
36679
|
-
})(Channels$ ||= {});
|
|
36680
|
-
ActivityGraphStatesResponse$inboundSchema = objectType({
|
|
36681
|
-
_id: stringType(),
|
|
36682
|
-
count: numberType(),
|
|
36683
|
-
templates: arrayType(stringType()),
|
|
36684
|
-
channels: arrayType(Channels$inboundSchema)
|
|
36685
|
-
}).transform((v2) => {
|
|
36686
|
-
return remap(v2, {
|
|
36687
|
-
_id: "id"
|
|
36688
|
-
});
|
|
36689
|
-
});
|
|
36690
|
-
ActivityGraphStatesResponse$outboundSchema = objectType({
|
|
36691
|
-
id: stringType(),
|
|
36692
|
-
count: numberType(),
|
|
36693
|
-
templates: arrayType(stringType()),
|
|
36694
|
-
channels: arrayType(Channels$outboundSchema)
|
|
36695
|
-
}).transform((v2) => {
|
|
36696
|
-
return remap(v2, {
|
|
36697
|
-
id: "_id"
|
|
36698
|
-
});
|
|
36699
|
-
});
|
|
36700
|
-
((ActivityGraphStatesResponse$) => {
|
|
36701
|
-
ActivityGraphStatesResponse$.inboundSchema = ActivityGraphStatesResponse$inboundSchema;
|
|
36702
|
-
ActivityGraphStatesResponse$.outboundSchema = ActivityGraphStatesResponse$outboundSchema;
|
|
36703
|
-
})(ActivityGraphStatesResponse$ ||= {});
|
|
36704
|
-
});
|
|
36705
|
-
|
|
36706
|
-
// src/models/components/activitystatsresponsedto.ts
|
|
36707
|
-
var ActivityStatsResponseDto$inboundSchema, ActivityStatsResponseDto$outboundSchema, ActivityStatsResponseDto$;
|
|
36708
|
-
var init_activitystatsresponsedto = __esm(() => {
|
|
36709
|
-
init_lib();
|
|
36710
|
-
ActivityStatsResponseDto$inboundSchema = objectType({
|
|
36711
|
-
weeklySent: numberType(),
|
|
36712
|
-
monthlySent: numberType()
|
|
36713
|
-
});
|
|
36714
|
-
ActivityStatsResponseDto$outboundSchema = objectType({
|
|
36715
|
-
weeklySent: numberType(),
|
|
36716
|
-
monthlySent: numberType()
|
|
36717
|
-
});
|
|
36718
|
-
((ActivityStatsResponseDto$) => {
|
|
36719
|
-
ActivityStatsResponseDto$.inboundSchema = ActivityStatsResponseDto$inboundSchema;
|
|
36720
|
-
ActivityStatsResponseDto$.outboundSchema = ActivityStatsResponseDto$outboundSchema;
|
|
36721
|
-
})(ActivityStatsResponseDto$ ||= {});
|
|
36722
|
-
});
|
|
36723
|
-
|
|
36724
36659
|
// src/models/components/actortypeenum.ts
|
|
36725
36660
|
var ActorTypeEnum, ActorTypeEnum$inboundSchema, ActorTypeEnum$outboundSchema, ActorTypeEnum$;
|
|
36726
36661
|
var init_actortypeenum = __esm(() => {
|
|
@@ -38392,7 +38327,7 @@ var init_notificationfeeditemdto = __esm(() => {
|
|
|
38392
38327
|
_organizationId: stringType(),
|
|
38393
38328
|
_notificationId: stringType(),
|
|
38394
38329
|
_subscriberId: stringType(),
|
|
38395
|
-
_feedId: stringType(),
|
|
38330
|
+
_feedId: nullableType(stringType()).optional(),
|
|
38396
38331
|
_jobId: stringType(),
|
|
38397
38332
|
createdAt: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
|
|
38398
38333
|
updatedAt: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
|
|
@@ -38432,7 +38367,7 @@ var init_notificationfeeditemdto = __esm(() => {
|
|
|
38432
38367
|
organizationId: stringType(),
|
|
38433
38368
|
notificationId: stringType(),
|
|
38434
38369
|
subscriberId: stringType(),
|
|
38435
|
-
feedId: stringType(),
|
|
38370
|
+
feedId: nullableType(stringType()).optional(),
|
|
38436
38371
|
jobId: stringType(),
|
|
38437
38372
|
createdAt: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
|
|
38438
38373
|
updatedAt: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
|
|
@@ -39959,37 +39894,6 @@ var init_updatesubscriberonlineflagrequestdto = __esm(() => {
|
|
|
39959
39894
|
})(UpdateSubscriberOnlineFlagRequestDto$ ||= {});
|
|
39960
39895
|
});
|
|
39961
39896
|
|
|
39962
|
-
// src/models/components/updatesubscriberrequestdto.ts
|
|
39963
|
-
var UpdateSubscriberRequestDto$inboundSchema, UpdateSubscriberRequestDto$outboundSchema, UpdateSubscriberRequestDto$;
|
|
39964
|
-
var init_updatesubscriberrequestdto = __esm(() => {
|
|
39965
|
-
init_lib();
|
|
39966
|
-
init_subscriberchanneldto();
|
|
39967
|
-
UpdateSubscriberRequestDto$inboundSchema = objectType({
|
|
39968
|
-
email: stringType().optional(),
|
|
39969
|
-
firstName: stringType().optional(),
|
|
39970
|
-
lastName: stringType().optional(),
|
|
39971
|
-
phone: stringType().optional(),
|
|
39972
|
-
avatar: stringType().optional(),
|
|
39973
|
-
locale: stringType().optional(),
|
|
39974
|
-
data: recordType(anyType()).optional(),
|
|
39975
|
-
channels: arrayType(SubscriberChannelDto$inboundSchema).optional()
|
|
39976
|
-
});
|
|
39977
|
-
UpdateSubscriberRequestDto$outboundSchema = objectType({
|
|
39978
|
-
email: stringType().optional(),
|
|
39979
|
-
firstName: stringType().optional(),
|
|
39980
|
-
lastName: stringType().optional(),
|
|
39981
|
-
phone: stringType().optional(),
|
|
39982
|
-
avatar: stringType().optional(),
|
|
39983
|
-
locale: stringType().optional(),
|
|
39984
|
-
data: recordType(anyType()).optional(),
|
|
39985
|
-
channels: arrayType(SubscriberChannelDto$outboundSchema).optional()
|
|
39986
|
-
});
|
|
39987
|
-
((UpdateSubscriberRequestDto$) => {
|
|
39988
|
-
UpdateSubscriberRequestDto$.inboundSchema = UpdateSubscriberRequestDto$inboundSchema;
|
|
39989
|
-
UpdateSubscriberRequestDto$.outboundSchema = UpdateSubscriberRequestDto$outboundSchema;
|
|
39990
|
-
})(UpdateSubscriberRequestDto$ ||= {});
|
|
39991
|
-
});
|
|
39992
|
-
|
|
39993
39897
|
// src/models/components/updatetopicrequestdto.ts
|
|
39994
39898
|
var UpdateTopicRequestDto$inboundSchema, UpdateTopicRequestDto$outboundSchema, UpdateTopicRequestDto$;
|
|
39995
39899
|
var init_updatetopicrequestdto = __esm(() => {
|
|
@@ -40009,14 +39913,12 @@ var init_updatetopicrequestdto = __esm(() => {
|
|
|
40009
39913
|
// src/models/components/index.ts
|
|
40010
39914
|
var init_components = __esm(() => {
|
|
40011
39915
|
init_activitiesresponsedto();
|
|
40012
|
-
init_activitygraphstatesresponse();
|
|
40013
39916
|
init_activitynotificationexecutiondetailresponsedto();
|
|
40014
39917
|
init_activitynotificationjobresponsedto();
|
|
40015
39918
|
init_activitynotificationresponsedto();
|
|
40016
39919
|
init_activitynotificationstepresponsedto();
|
|
40017
39920
|
init_activitynotificationsubscriberresponsedto();
|
|
40018
39921
|
init_activitynotificationtemplateresponsedto();
|
|
40019
|
-
init_activitystatsresponsedto();
|
|
40020
39922
|
init_activitytopicdto();
|
|
40021
39923
|
init_actorfeeditemdto();
|
|
40022
39924
|
init_actortypeenum();
|
|
@@ -40130,7 +40032,6 @@ var init_components = __esm(() => {
|
|
|
40130
40032
|
init_updateintegrationrequestdto();
|
|
40131
40033
|
init_updatesubscriberchannelrequestdto();
|
|
40132
40034
|
init_updatesubscriberonlineflagrequestdto();
|
|
40133
|
-
init_updatesubscriberrequestdto();
|
|
40134
40035
|
init_updatetopicrequestdto();
|
|
40135
40036
|
init_workfloworiginenum();
|
|
40136
40037
|
init_workflowresponse();
|
|
@@ -40546,55 +40447,6 @@ var init_integrationscontrollergetactiveintegrations = __esm(() => {
|
|
|
40546
40447
|
})(IntegrationsControllerGetActiveIntegrationsResponse$ ||= {});
|
|
40547
40448
|
});
|
|
40548
40449
|
|
|
40549
|
-
// src/models/operations/integrationscontrollergetwebhooksupportstatus.ts
|
|
40550
|
-
var IntegrationsControllerGetWebhookSupportStatusRequest$inboundSchema, IntegrationsControllerGetWebhookSupportStatusRequest$outboundSchema, IntegrationsControllerGetWebhookSupportStatusRequest$, IntegrationsControllerGetWebhookSupportStatusResponse$inboundSchema, IntegrationsControllerGetWebhookSupportStatusResponse$outboundSchema, IntegrationsControllerGetWebhookSupportStatusResponse$;
|
|
40551
|
-
var init_integrationscontrollergetwebhooksupportstatus = __esm(() => {
|
|
40552
|
-
init_lib();
|
|
40553
|
-
init_primitives();
|
|
40554
|
-
IntegrationsControllerGetWebhookSupportStatusRequest$inboundSchema = objectType({
|
|
40555
|
-
providerOrIntegrationId: stringType(),
|
|
40556
|
-
"idempotency-key": stringType().optional()
|
|
40557
|
-
}).transform((v2) => {
|
|
40558
|
-
return remap(v2, {
|
|
40559
|
-
"idempotency-key": "idempotencyKey"
|
|
40560
|
-
});
|
|
40561
|
-
});
|
|
40562
|
-
IntegrationsControllerGetWebhookSupportStatusRequest$outboundSchema = objectType({
|
|
40563
|
-
providerOrIntegrationId: stringType(),
|
|
40564
|
-
idempotencyKey: stringType().optional()
|
|
40565
|
-
}).transform((v2) => {
|
|
40566
|
-
return remap(v2, {
|
|
40567
|
-
idempotencyKey: "idempotency-key"
|
|
40568
|
-
});
|
|
40569
|
-
});
|
|
40570
|
-
((IntegrationsControllerGetWebhookSupportStatusRequest$) => {
|
|
40571
|
-
IntegrationsControllerGetWebhookSupportStatusRequest$.inboundSchema = IntegrationsControllerGetWebhookSupportStatusRequest$inboundSchema;
|
|
40572
|
-
IntegrationsControllerGetWebhookSupportStatusRequest$.outboundSchema = IntegrationsControllerGetWebhookSupportStatusRequest$outboundSchema;
|
|
40573
|
-
})(IntegrationsControllerGetWebhookSupportStatusRequest$ ||= {});
|
|
40574
|
-
IntegrationsControllerGetWebhookSupportStatusResponse$inboundSchema = objectType({
|
|
40575
|
-
Headers: recordType(arrayType(stringType())),
|
|
40576
|
-
Result: booleanType()
|
|
40577
|
-
}).transform((v2) => {
|
|
40578
|
-
return remap(v2, {
|
|
40579
|
-
Headers: "headers",
|
|
40580
|
-
Result: "result"
|
|
40581
|
-
});
|
|
40582
|
-
});
|
|
40583
|
-
IntegrationsControllerGetWebhookSupportStatusResponse$outboundSchema = objectType({
|
|
40584
|
-
headers: recordType(arrayType(stringType())),
|
|
40585
|
-
result: booleanType()
|
|
40586
|
-
}).transform((v2) => {
|
|
40587
|
-
return remap(v2, {
|
|
40588
|
-
headers: "Headers",
|
|
40589
|
-
result: "Result"
|
|
40590
|
-
});
|
|
40591
|
-
});
|
|
40592
|
-
((IntegrationsControllerGetWebhookSupportStatusResponse$) => {
|
|
40593
|
-
IntegrationsControllerGetWebhookSupportStatusResponse$.inboundSchema = IntegrationsControllerGetWebhookSupportStatusResponse$inboundSchema;
|
|
40594
|
-
IntegrationsControllerGetWebhookSupportStatusResponse$.outboundSchema = IntegrationsControllerGetWebhookSupportStatusResponse$outboundSchema;
|
|
40595
|
-
})(IntegrationsControllerGetWebhookSupportStatusResponse$ ||= {});
|
|
40596
|
-
});
|
|
40597
|
-
|
|
40598
40450
|
// src/models/operations/integrationscontrollerlistintegrations.ts
|
|
40599
40451
|
var IntegrationsControllerListIntegrationsRequest$inboundSchema, IntegrationsControllerListIntegrationsRequest$outboundSchema, IntegrationsControllerListIntegrationsRequest$, IntegrationsControllerListIntegrationsResponse$inboundSchema, IntegrationsControllerListIntegrationsResponse$outboundSchema, IntegrationsControllerListIntegrationsResponse$;
|
|
40600
40452
|
var init_integrationscontrollerlistintegrations = __esm(() => {
|
|
@@ -40965,104 +40817,6 @@ var init_messagescontrollergetmessages = __esm(() => {
|
|
|
40965
40817
|
})(MessagesControllerGetMessagesResponse$ ||= {});
|
|
40966
40818
|
});
|
|
40967
40819
|
|
|
40968
|
-
// src/models/operations/notificationscontrollergetactivitygraphstats.ts
|
|
40969
|
-
var NotificationsControllerGetActivityGraphStatsRequest$inboundSchema, NotificationsControllerGetActivityGraphStatsRequest$outboundSchema, NotificationsControllerGetActivityGraphStatsRequest$, NotificationsControllerGetActivityGraphStatsResponse$inboundSchema, NotificationsControllerGetActivityGraphStatsResponse$outboundSchema, NotificationsControllerGetActivityGraphStatsResponse$;
|
|
40970
|
-
var init_notificationscontrollergetactivitygraphstats = __esm(() => {
|
|
40971
|
-
init_lib();
|
|
40972
|
-
init_primitives();
|
|
40973
|
-
init_components();
|
|
40974
|
-
NotificationsControllerGetActivityGraphStatsRequest$inboundSchema = objectType({
|
|
40975
|
-
days: numberType().optional(),
|
|
40976
|
-
"idempotency-key": stringType().optional()
|
|
40977
|
-
}).transform((v2) => {
|
|
40978
|
-
return remap(v2, {
|
|
40979
|
-
"idempotency-key": "idempotencyKey"
|
|
40980
|
-
});
|
|
40981
|
-
});
|
|
40982
|
-
NotificationsControllerGetActivityGraphStatsRequest$outboundSchema = objectType({
|
|
40983
|
-
days: numberType().optional(),
|
|
40984
|
-
idempotencyKey: stringType().optional()
|
|
40985
|
-
}).transform((v2) => {
|
|
40986
|
-
return remap(v2, {
|
|
40987
|
-
idempotencyKey: "idempotency-key"
|
|
40988
|
-
});
|
|
40989
|
-
});
|
|
40990
|
-
((NotificationsControllerGetActivityGraphStatsRequest$) => {
|
|
40991
|
-
NotificationsControllerGetActivityGraphStatsRequest$.inboundSchema = NotificationsControllerGetActivityGraphStatsRequest$inboundSchema;
|
|
40992
|
-
NotificationsControllerGetActivityGraphStatsRequest$.outboundSchema = NotificationsControllerGetActivityGraphStatsRequest$outboundSchema;
|
|
40993
|
-
})(NotificationsControllerGetActivityGraphStatsRequest$ ||= {});
|
|
40994
|
-
NotificationsControllerGetActivityGraphStatsResponse$inboundSchema = objectType({
|
|
40995
|
-
Headers: recordType(arrayType(stringType())),
|
|
40996
|
-
Result: arrayType(ActivityGraphStatesResponse$inboundSchema)
|
|
40997
|
-
}).transform((v2) => {
|
|
40998
|
-
return remap(v2, {
|
|
40999
|
-
Headers: "headers",
|
|
41000
|
-
Result: "result"
|
|
41001
|
-
});
|
|
41002
|
-
});
|
|
41003
|
-
NotificationsControllerGetActivityGraphStatsResponse$outboundSchema = objectType({
|
|
41004
|
-
headers: recordType(arrayType(stringType())),
|
|
41005
|
-
result: arrayType(ActivityGraphStatesResponse$outboundSchema)
|
|
41006
|
-
}).transform((v2) => {
|
|
41007
|
-
return remap(v2, {
|
|
41008
|
-
headers: "Headers",
|
|
41009
|
-
result: "Result"
|
|
41010
|
-
});
|
|
41011
|
-
});
|
|
41012
|
-
((NotificationsControllerGetActivityGraphStatsResponse$) => {
|
|
41013
|
-
NotificationsControllerGetActivityGraphStatsResponse$.inboundSchema = NotificationsControllerGetActivityGraphStatsResponse$inboundSchema;
|
|
41014
|
-
NotificationsControllerGetActivityGraphStatsResponse$.outboundSchema = NotificationsControllerGetActivityGraphStatsResponse$outboundSchema;
|
|
41015
|
-
})(NotificationsControllerGetActivityGraphStatsResponse$ ||= {});
|
|
41016
|
-
});
|
|
41017
|
-
|
|
41018
|
-
// src/models/operations/notificationscontrollergetactivitystats.ts
|
|
41019
|
-
var NotificationsControllerGetActivityStatsRequest$inboundSchema, NotificationsControllerGetActivityStatsRequest$outboundSchema, NotificationsControllerGetActivityStatsRequest$, NotificationsControllerGetActivityStatsResponse$inboundSchema, NotificationsControllerGetActivityStatsResponse$outboundSchema, NotificationsControllerGetActivityStatsResponse$;
|
|
41020
|
-
var init_notificationscontrollergetactivitystats = __esm(() => {
|
|
41021
|
-
init_lib();
|
|
41022
|
-
init_primitives();
|
|
41023
|
-
init_components();
|
|
41024
|
-
NotificationsControllerGetActivityStatsRequest$inboundSchema = objectType({
|
|
41025
|
-
"idempotency-key": stringType().optional()
|
|
41026
|
-
}).transform((v2) => {
|
|
41027
|
-
return remap(v2, {
|
|
41028
|
-
"idempotency-key": "idempotencyKey"
|
|
41029
|
-
});
|
|
41030
|
-
});
|
|
41031
|
-
NotificationsControllerGetActivityStatsRequest$outboundSchema = objectType({
|
|
41032
|
-
idempotencyKey: stringType().optional()
|
|
41033
|
-
}).transform((v2) => {
|
|
41034
|
-
return remap(v2, {
|
|
41035
|
-
idempotencyKey: "idempotency-key"
|
|
41036
|
-
});
|
|
41037
|
-
});
|
|
41038
|
-
((NotificationsControllerGetActivityStatsRequest$) => {
|
|
41039
|
-
NotificationsControllerGetActivityStatsRequest$.inboundSchema = NotificationsControllerGetActivityStatsRequest$inboundSchema;
|
|
41040
|
-
NotificationsControllerGetActivityStatsRequest$.outboundSchema = NotificationsControllerGetActivityStatsRequest$outboundSchema;
|
|
41041
|
-
})(NotificationsControllerGetActivityStatsRequest$ ||= {});
|
|
41042
|
-
NotificationsControllerGetActivityStatsResponse$inboundSchema = objectType({
|
|
41043
|
-
Headers: recordType(arrayType(stringType())),
|
|
41044
|
-
Result: ActivityStatsResponseDto$inboundSchema
|
|
41045
|
-
}).transform((v2) => {
|
|
41046
|
-
return remap(v2, {
|
|
41047
|
-
Headers: "headers",
|
|
41048
|
-
Result: "result"
|
|
41049
|
-
});
|
|
41050
|
-
});
|
|
41051
|
-
NotificationsControllerGetActivityStatsResponse$outboundSchema = objectType({
|
|
41052
|
-
headers: recordType(arrayType(stringType())),
|
|
41053
|
-
result: ActivityStatsResponseDto$outboundSchema
|
|
41054
|
-
}).transform((v2) => {
|
|
41055
|
-
return remap(v2, {
|
|
41056
|
-
headers: "Headers",
|
|
41057
|
-
result: "Result"
|
|
41058
|
-
});
|
|
41059
|
-
});
|
|
41060
|
-
((NotificationsControllerGetActivityStatsResponse$) => {
|
|
41061
|
-
NotificationsControllerGetActivityStatsResponse$.inboundSchema = NotificationsControllerGetActivityStatsResponse$inboundSchema;
|
|
41062
|
-
NotificationsControllerGetActivityStatsResponse$.outboundSchema = NotificationsControllerGetActivityStatsResponse$outboundSchema;
|
|
41063
|
-
})(NotificationsControllerGetActivityStatsResponse$ ||= {});
|
|
41064
|
-
});
|
|
41065
|
-
|
|
41066
40820
|
// src/models/operations/notificationscontrollergetnotification.ts
|
|
41067
40821
|
var NotificationsControllerGetNotificationRequest$inboundSchema, NotificationsControllerGetNotificationRequest$outboundSchema, NotificationsControllerGetNotificationRequest$, NotificationsControllerGetNotificationResponse$inboundSchema, NotificationsControllerGetNotificationResponse$outboundSchema, NotificationsControllerGetNotificationResponse$;
|
|
41068
40822
|
var init_notificationscontrollergetnotification = __esm(() => {
|
|
@@ -41697,124 +41451,6 @@ var init_subscribersv1controllerbulkcreatesubscribers = __esm(() => {
|
|
|
41697
41451
|
})(SubscribersV1ControllerBulkCreateSubscribersResponse$ ||= {});
|
|
41698
41452
|
});
|
|
41699
41453
|
|
|
41700
|
-
// src/models/operations/subscribersv1controllerchataccessoauth.ts
|
|
41701
|
-
var SubscribersV1ControllerChatAccessOauthRequest$inboundSchema, SubscribersV1ControllerChatAccessOauthRequest$outboundSchema, SubscribersV1ControllerChatAccessOauthRequest$, SubscribersV1ControllerChatAccessOauthResponse$inboundSchema, SubscribersV1ControllerChatAccessOauthResponse$outboundSchema, SubscribersV1ControllerChatAccessOauthResponse$;
|
|
41702
|
-
var init_subscribersv1controllerchataccessoauth = __esm(() => {
|
|
41703
|
-
init_lib();
|
|
41704
|
-
init_primitives();
|
|
41705
|
-
SubscribersV1ControllerChatAccessOauthRequest$inboundSchema = objectType({
|
|
41706
|
-
subscriberId: stringType(),
|
|
41707
|
-
providerId: anyType().optional(),
|
|
41708
|
-
hmacHash: stringType(),
|
|
41709
|
-
environmentId: stringType(),
|
|
41710
|
-
integrationIdentifier: stringType().optional(),
|
|
41711
|
-
"idempotency-key": stringType().optional()
|
|
41712
|
-
}).transform((v2) => {
|
|
41713
|
-
return remap(v2, {
|
|
41714
|
-
"idempotency-key": "idempotencyKey"
|
|
41715
|
-
});
|
|
41716
|
-
});
|
|
41717
|
-
SubscribersV1ControllerChatAccessOauthRequest$outboundSchema = objectType({
|
|
41718
|
-
subscriberId: stringType(),
|
|
41719
|
-
providerId: anyType().optional(),
|
|
41720
|
-
hmacHash: stringType(),
|
|
41721
|
-
environmentId: stringType(),
|
|
41722
|
-
integrationIdentifier: stringType().optional(),
|
|
41723
|
-
idempotencyKey: stringType().optional()
|
|
41724
|
-
}).transform((v2) => {
|
|
41725
|
-
return remap(v2, {
|
|
41726
|
-
idempotencyKey: "idempotency-key"
|
|
41727
|
-
});
|
|
41728
|
-
});
|
|
41729
|
-
((SubscribersV1ControllerChatAccessOauthRequest$) => {
|
|
41730
|
-
SubscribersV1ControllerChatAccessOauthRequest$.inboundSchema = SubscribersV1ControllerChatAccessOauthRequest$inboundSchema;
|
|
41731
|
-
SubscribersV1ControllerChatAccessOauthRequest$.outboundSchema = SubscribersV1ControllerChatAccessOauthRequest$outboundSchema;
|
|
41732
|
-
})(SubscribersV1ControllerChatAccessOauthRequest$ ||= {});
|
|
41733
|
-
SubscribersV1ControllerChatAccessOauthResponse$inboundSchema = objectType({
|
|
41734
|
-
Headers: recordType(arrayType(stringType()))
|
|
41735
|
-
}).transform((v2) => {
|
|
41736
|
-
return remap(v2, {
|
|
41737
|
-
Headers: "headers"
|
|
41738
|
-
});
|
|
41739
|
-
});
|
|
41740
|
-
SubscribersV1ControllerChatAccessOauthResponse$outboundSchema = objectType({
|
|
41741
|
-
headers: recordType(arrayType(stringType()))
|
|
41742
|
-
}).transform((v2) => {
|
|
41743
|
-
return remap(v2, {
|
|
41744
|
-
headers: "Headers"
|
|
41745
|
-
});
|
|
41746
|
-
});
|
|
41747
|
-
((SubscribersV1ControllerChatAccessOauthResponse$) => {
|
|
41748
|
-
SubscribersV1ControllerChatAccessOauthResponse$.inboundSchema = SubscribersV1ControllerChatAccessOauthResponse$inboundSchema;
|
|
41749
|
-
SubscribersV1ControllerChatAccessOauthResponse$.outboundSchema = SubscribersV1ControllerChatAccessOauthResponse$outboundSchema;
|
|
41750
|
-
})(SubscribersV1ControllerChatAccessOauthResponse$ ||= {});
|
|
41751
|
-
});
|
|
41752
|
-
|
|
41753
|
-
// src/models/operations/subscribersv1controllerchatoauthcallback.ts
|
|
41754
|
-
var SubscribersV1ControllerChatOauthCallbackRequest$inboundSchema, SubscribersV1ControllerChatOauthCallbackRequest$outboundSchema, SubscribersV1ControllerChatOauthCallbackRequest$, SubscribersV1ControllerChatOauthCallbackResponseResult$inboundSchema, SubscribersV1ControllerChatOauthCallbackResponseResult$outboundSchema, SubscribersV1ControllerChatOauthCallbackResponseResult$, SubscribersV1ControllerChatOauthCallbackResponse$inboundSchema, SubscribersV1ControllerChatOauthCallbackResponse$outboundSchema, SubscribersV1ControllerChatOauthCallbackResponse$;
|
|
41755
|
-
var init_subscribersv1controllerchatoauthcallback = __esm(() => {
|
|
41756
|
-
init_lib();
|
|
41757
|
-
init_primitives();
|
|
41758
|
-
SubscribersV1ControllerChatOauthCallbackRequest$inboundSchema = objectType({
|
|
41759
|
-
subscriberId: stringType(),
|
|
41760
|
-
providerId: anyType().optional(),
|
|
41761
|
-
hmacHash: stringType(),
|
|
41762
|
-
environmentId: stringType(),
|
|
41763
|
-
integrationIdentifier: stringType().optional(),
|
|
41764
|
-
code: stringType(),
|
|
41765
|
-
"idempotency-key": stringType().optional()
|
|
41766
|
-
}).transform((v2) => {
|
|
41767
|
-
return remap(v2, {
|
|
41768
|
-
"idempotency-key": "idempotencyKey"
|
|
41769
|
-
});
|
|
41770
|
-
});
|
|
41771
|
-
SubscribersV1ControllerChatOauthCallbackRequest$outboundSchema = objectType({
|
|
41772
|
-
subscriberId: stringType(),
|
|
41773
|
-
providerId: anyType().optional(),
|
|
41774
|
-
hmacHash: stringType(),
|
|
41775
|
-
environmentId: stringType(),
|
|
41776
|
-
integrationIdentifier: stringType().optional(),
|
|
41777
|
-
code: stringType(),
|
|
41778
|
-
idempotencyKey: stringType().optional()
|
|
41779
|
-
}).transform((v2) => {
|
|
41780
|
-
return remap(v2, {
|
|
41781
|
-
idempotencyKey: "idempotency-key"
|
|
41782
|
-
});
|
|
41783
|
-
});
|
|
41784
|
-
((SubscribersV1ControllerChatOauthCallbackRequest$) => {
|
|
41785
|
-
SubscribersV1ControllerChatOauthCallbackRequest$.inboundSchema = SubscribersV1ControllerChatOauthCallbackRequest$inboundSchema;
|
|
41786
|
-
SubscribersV1ControllerChatOauthCallbackRequest$.outboundSchema = SubscribersV1ControllerChatOauthCallbackRequest$outboundSchema;
|
|
41787
|
-
})(SubscribersV1ControllerChatOauthCallbackRequest$ ||= {});
|
|
41788
|
-
SubscribersV1ControllerChatOauthCallbackResponseResult$inboundSchema = unionType([stringType(), stringType()]);
|
|
41789
|
-
SubscribersV1ControllerChatOauthCallbackResponseResult$outboundSchema = unionType([stringType(), stringType()]);
|
|
41790
|
-
((SubscribersV1ControllerChatOauthCallbackResponseResult$) => {
|
|
41791
|
-
SubscribersV1ControllerChatOauthCallbackResponseResult$.inboundSchema = SubscribersV1ControllerChatOauthCallbackResponseResult$inboundSchema;
|
|
41792
|
-
SubscribersV1ControllerChatOauthCallbackResponseResult$.outboundSchema = SubscribersV1ControllerChatOauthCallbackResponseResult$outboundSchema;
|
|
41793
|
-
})(SubscribersV1ControllerChatOauthCallbackResponseResult$ ||= {});
|
|
41794
|
-
SubscribersV1ControllerChatOauthCallbackResponse$inboundSchema = objectType({
|
|
41795
|
-
Headers: recordType(arrayType(stringType())),
|
|
41796
|
-
Result: unionType([stringType(), stringType()])
|
|
41797
|
-
}).transform((v2) => {
|
|
41798
|
-
return remap(v2, {
|
|
41799
|
-
Headers: "headers",
|
|
41800
|
-
Result: "result"
|
|
41801
|
-
});
|
|
41802
|
-
});
|
|
41803
|
-
SubscribersV1ControllerChatOauthCallbackResponse$outboundSchema = objectType({
|
|
41804
|
-
headers: recordType(arrayType(stringType())),
|
|
41805
|
-
result: unionType([stringType(), stringType()])
|
|
41806
|
-
}).transform((v2) => {
|
|
41807
|
-
return remap(v2, {
|
|
41808
|
-
headers: "Headers",
|
|
41809
|
-
result: "Result"
|
|
41810
|
-
});
|
|
41811
|
-
});
|
|
41812
|
-
((SubscribersV1ControllerChatOauthCallbackResponse$) => {
|
|
41813
|
-
SubscribersV1ControllerChatOauthCallbackResponse$.inboundSchema = SubscribersV1ControllerChatOauthCallbackResponse$inboundSchema;
|
|
41814
|
-
SubscribersV1ControllerChatOauthCallbackResponse$.outboundSchema = SubscribersV1ControllerChatOauthCallbackResponse$outboundSchema;
|
|
41815
|
-
})(SubscribersV1ControllerChatOauthCallbackResponse$ ||= {});
|
|
41816
|
-
});
|
|
41817
|
-
|
|
41818
41454
|
// src/models/operations/subscribersv1controllerdeletesubscribercredentials.ts
|
|
41819
41455
|
var SubscribersV1ControllerDeleteSubscriberCredentialsRequest$inboundSchema, SubscribersV1ControllerDeleteSubscriberCredentialsRequest$outboundSchema, SubscribersV1ControllerDeleteSubscriberCredentialsRequest$, SubscribersV1ControllerDeleteSubscriberCredentialsResponse$inboundSchema, SubscribersV1ControllerDeleteSubscriberCredentialsResponse$outboundSchema, SubscribersV1ControllerDeleteSubscriberCredentialsResponse$;
|
|
41820
41456
|
var init_subscribersv1controllerdeletesubscribercredentials = __esm(() => {
|
|
@@ -41976,74 +41612,6 @@ var init_subscribersv1controllergetunseencount = __esm(() => {
|
|
|
41976
41612
|
})(SubscribersV1ControllerGetUnseenCountResponse$ ||= {});
|
|
41977
41613
|
});
|
|
41978
41614
|
|
|
41979
|
-
// src/models/operations/subscribersv1controllerlistsubscribers.ts
|
|
41980
|
-
var SubscribersV1ControllerListSubscribersRequest$inboundSchema, SubscribersV1ControllerListSubscribersRequest$outboundSchema, SubscribersV1ControllerListSubscribersRequest$, SubscribersV1ControllerListSubscribersResponseBody$inboundSchema, SubscribersV1ControllerListSubscribersResponseBody$outboundSchema, SubscribersV1ControllerListSubscribersResponseBody$, SubscribersV1ControllerListSubscribersResponse$inboundSchema, SubscribersV1ControllerListSubscribersResponse$outboundSchema, SubscribersV1ControllerListSubscribersResponse$;
|
|
41981
|
-
var init_subscribersv1controllerlistsubscribers = __esm(() => {
|
|
41982
|
-
init_lib();
|
|
41983
|
-
init_primitives();
|
|
41984
|
-
init_components();
|
|
41985
|
-
SubscribersV1ControllerListSubscribersRequest$inboundSchema = objectType({
|
|
41986
|
-
page: numberType().optional(),
|
|
41987
|
-
limit: numberType().default(10),
|
|
41988
|
-
"idempotency-key": stringType().optional()
|
|
41989
|
-
}).transform((v2) => {
|
|
41990
|
-
return remap(v2, {
|
|
41991
|
-
"idempotency-key": "idempotencyKey"
|
|
41992
|
-
});
|
|
41993
|
-
});
|
|
41994
|
-
SubscribersV1ControllerListSubscribersRequest$outboundSchema = objectType({
|
|
41995
|
-
page: numberType().optional(),
|
|
41996
|
-
limit: numberType().default(10),
|
|
41997
|
-
idempotencyKey: stringType().optional()
|
|
41998
|
-
}).transform((v2) => {
|
|
41999
|
-
return remap(v2, {
|
|
42000
|
-
idempotencyKey: "idempotency-key"
|
|
42001
|
-
});
|
|
42002
|
-
});
|
|
42003
|
-
((SubscribersV1ControllerListSubscribersRequest$) => {
|
|
42004
|
-
SubscribersV1ControllerListSubscribersRequest$.inboundSchema = SubscribersV1ControllerListSubscribersRequest$inboundSchema;
|
|
42005
|
-
SubscribersV1ControllerListSubscribersRequest$.outboundSchema = SubscribersV1ControllerListSubscribersRequest$outboundSchema;
|
|
42006
|
-
})(SubscribersV1ControllerListSubscribersRequest$ ||= {});
|
|
42007
|
-
SubscribersV1ControllerListSubscribersResponseBody$inboundSchema = objectType({
|
|
42008
|
-
page: numberType(),
|
|
42009
|
-
hasMore: booleanType(),
|
|
42010
|
-
pageSize: numberType(),
|
|
42011
|
-
data: arrayType(SubscriberResponseDto$inboundSchema)
|
|
42012
|
-
});
|
|
42013
|
-
SubscribersV1ControllerListSubscribersResponseBody$outboundSchema = objectType({
|
|
42014
|
-
page: numberType(),
|
|
42015
|
-
hasMore: booleanType(),
|
|
42016
|
-
pageSize: numberType(),
|
|
42017
|
-
data: arrayType(SubscriberResponseDto$outboundSchema)
|
|
42018
|
-
});
|
|
42019
|
-
((SubscribersV1ControllerListSubscribersResponseBody$) => {
|
|
42020
|
-
SubscribersV1ControllerListSubscribersResponseBody$.inboundSchema = SubscribersV1ControllerListSubscribersResponseBody$inboundSchema;
|
|
42021
|
-
SubscribersV1ControllerListSubscribersResponseBody$.outboundSchema = SubscribersV1ControllerListSubscribersResponseBody$outboundSchema;
|
|
42022
|
-
})(SubscribersV1ControllerListSubscribersResponseBody$ ||= {});
|
|
42023
|
-
SubscribersV1ControllerListSubscribersResponse$inboundSchema = objectType({
|
|
42024
|
-
Headers: recordType(arrayType(stringType())),
|
|
42025
|
-
Result: lazyType(() => SubscribersV1ControllerListSubscribersResponseBody$inboundSchema)
|
|
42026
|
-
}).transform((v2) => {
|
|
42027
|
-
return remap(v2, {
|
|
42028
|
-
Headers: "headers",
|
|
42029
|
-
Result: "result"
|
|
42030
|
-
});
|
|
42031
|
-
});
|
|
42032
|
-
SubscribersV1ControllerListSubscribersResponse$outboundSchema = objectType({
|
|
42033
|
-
headers: recordType(arrayType(stringType())),
|
|
42034
|
-
result: lazyType(() => SubscribersV1ControllerListSubscribersResponseBody$outboundSchema)
|
|
42035
|
-
}).transform((v2) => {
|
|
42036
|
-
return remap(v2, {
|
|
42037
|
-
headers: "Headers",
|
|
42038
|
-
result: "Result"
|
|
42039
|
-
});
|
|
42040
|
-
});
|
|
42041
|
-
((SubscribersV1ControllerListSubscribersResponse$) => {
|
|
42042
|
-
SubscribersV1ControllerListSubscribersResponse$.inboundSchema = SubscribersV1ControllerListSubscribersResponse$inboundSchema;
|
|
42043
|
-
SubscribersV1ControllerListSubscribersResponse$.outboundSchema = SubscribersV1ControllerListSubscribersResponse$outboundSchema;
|
|
42044
|
-
})(SubscribersV1ControllerListSubscribersResponse$ ||= {});
|
|
42045
|
-
});
|
|
42046
|
-
|
|
42047
41615
|
// src/models/operations/subscribersv1controllermarkactionasseen.ts
|
|
42048
41616
|
var SubscribersV1ControllerMarkActionAsSeenRequest$inboundSchema, SubscribersV1ControllerMarkActionAsSeenRequest$outboundSchema, SubscribersV1ControllerMarkActionAsSeenRequest$, SubscribersV1ControllerMarkActionAsSeenResponse$inboundSchema, SubscribersV1ControllerMarkActionAsSeenResponse$outboundSchema, SubscribersV1ControllerMarkActionAsSeenResponse$;
|
|
42049
41617
|
var init_subscribersv1controllermarkactionasseen = __esm(() => {
|
|
@@ -42264,60 +41832,6 @@ var init_subscribersv1controllermodifysubscriberchannel = __esm(() => {
|
|
|
42264
41832
|
})(SubscribersV1ControllerModifySubscriberChannelResponse$ ||= {});
|
|
42265
41833
|
});
|
|
42266
41834
|
|
|
42267
|
-
// src/models/operations/subscribersv1controllerupdatesubscriber.ts
|
|
42268
|
-
var SubscribersV1ControllerUpdateSubscriberRequest$inboundSchema, SubscribersV1ControllerUpdateSubscriberRequest$outboundSchema, SubscribersV1ControllerUpdateSubscriberRequest$, SubscribersV1ControllerUpdateSubscriberResponse$inboundSchema, SubscribersV1ControllerUpdateSubscriberResponse$outboundSchema, SubscribersV1ControllerUpdateSubscriberResponse$;
|
|
42269
|
-
var init_subscribersv1controllerupdatesubscriber = __esm(() => {
|
|
42270
|
-
init_lib();
|
|
42271
|
-
init_primitives();
|
|
42272
|
-
init_components();
|
|
42273
|
-
SubscribersV1ControllerUpdateSubscriberRequest$inboundSchema = objectType({
|
|
42274
|
-
subscriberId: stringType(),
|
|
42275
|
-
"idempotency-key": stringType().optional(),
|
|
42276
|
-
UpdateSubscriberRequestDto: UpdateSubscriberRequestDto$inboundSchema
|
|
42277
|
-
}).transform((v2) => {
|
|
42278
|
-
return remap(v2, {
|
|
42279
|
-
"idempotency-key": "idempotencyKey",
|
|
42280
|
-
UpdateSubscriberRequestDto: "updateSubscriberRequestDto"
|
|
42281
|
-
});
|
|
42282
|
-
});
|
|
42283
|
-
SubscribersV1ControllerUpdateSubscriberRequest$outboundSchema = objectType({
|
|
42284
|
-
subscriberId: stringType(),
|
|
42285
|
-
idempotencyKey: stringType().optional(),
|
|
42286
|
-
updateSubscriberRequestDto: UpdateSubscriberRequestDto$outboundSchema
|
|
42287
|
-
}).transform((v2) => {
|
|
42288
|
-
return remap(v2, {
|
|
42289
|
-
idempotencyKey: "idempotency-key",
|
|
42290
|
-
updateSubscriberRequestDto: "UpdateSubscriberRequestDto"
|
|
42291
|
-
});
|
|
42292
|
-
});
|
|
42293
|
-
((SubscribersV1ControllerUpdateSubscriberRequest$) => {
|
|
42294
|
-
SubscribersV1ControllerUpdateSubscriberRequest$.inboundSchema = SubscribersV1ControllerUpdateSubscriberRequest$inboundSchema;
|
|
42295
|
-
SubscribersV1ControllerUpdateSubscriberRequest$.outboundSchema = SubscribersV1ControllerUpdateSubscriberRequest$outboundSchema;
|
|
42296
|
-
})(SubscribersV1ControllerUpdateSubscriberRequest$ ||= {});
|
|
42297
|
-
SubscribersV1ControllerUpdateSubscriberResponse$inboundSchema = objectType({
|
|
42298
|
-
Headers: recordType(arrayType(stringType())),
|
|
42299
|
-
Result: SubscriberResponseDto$inboundSchema
|
|
42300
|
-
}).transform((v2) => {
|
|
42301
|
-
return remap(v2, {
|
|
42302
|
-
Headers: "headers",
|
|
42303
|
-
Result: "result"
|
|
42304
|
-
});
|
|
42305
|
-
});
|
|
42306
|
-
SubscribersV1ControllerUpdateSubscriberResponse$outboundSchema = objectType({
|
|
42307
|
-
headers: recordType(arrayType(stringType())),
|
|
42308
|
-
result: SubscriberResponseDto$outboundSchema
|
|
42309
|
-
}).transform((v2) => {
|
|
42310
|
-
return remap(v2, {
|
|
42311
|
-
headers: "Headers",
|
|
42312
|
-
result: "Result"
|
|
42313
|
-
});
|
|
42314
|
-
});
|
|
42315
|
-
((SubscribersV1ControllerUpdateSubscriberResponse$) => {
|
|
42316
|
-
SubscribersV1ControllerUpdateSubscriberResponse$.inboundSchema = SubscribersV1ControllerUpdateSubscriberResponse$inboundSchema;
|
|
42317
|
-
SubscribersV1ControllerUpdateSubscriberResponse$.outboundSchema = SubscribersV1ControllerUpdateSubscriberResponse$outboundSchema;
|
|
42318
|
-
})(SubscribersV1ControllerUpdateSubscriberResponse$ ||= {});
|
|
42319
|
-
});
|
|
42320
|
-
|
|
42321
41835
|
// src/models/operations/subscribersv1controllerupdatesubscriberchannel.ts
|
|
42322
41836
|
var SubscribersV1ControllerUpdateSubscriberChannelRequest$inboundSchema, SubscribersV1ControllerUpdateSubscriberChannelRequest$outboundSchema, SubscribersV1ControllerUpdateSubscriberChannelRequest$, SubscribersV1ControllerUpdateSubscriberChannelResponse$inboundSchema, SubscribersV1ControllerUpdateSubscriberChannelResponse$outboundSchema, SubscribersV1ControllerUpdateSubscriberChannelResponse$;
|
|
42323
41837
|
var init_subscribersv1controllerupdatesubscriberchannel = __esm(() => {
|
|
@@ -42948,7 +42462,6 @@ var init_operations = __esm(() => {
|
|
|
42948
42462
|
init_eventscontrollertriggerbulk();
|
|
42949
42463
|
init_integrationscontrollercreateintegration();
|
|
42950
42464
|
init_integrationscontrollergetactiveintegrations();
|
|
42951
|
-
init_integrationscontrollergetwebhooksupportstatus();
|
|
42952
42465
|
init_integrationscontrollerlistintegrations();
|
|
42953
42466
|
init_integrationscontrollerremoveintegration();
|
|
42954
42467
|
init_integrationscontrollersetintegrationasprimary();
|
|
@@ -42956,8 +42469,6 @@ var init_operations = __esm(() => {
|
|
|
42956
42469
|
init_messagescontrollerdeletemessage();
|
|
42957
42470
|
init_messagescontrollerdeletemessagesbytransactionid();
|
|
42958
42471
|
init_messagescontrollergetmessages();
|
|
42959
|
-
init_notificationscontrollergetactivitygraphstats();
|
|
42960
|
-
init_notificationscontrollergetactivitystats();
|
|
42961
42472
|
init_notificationscontrollergetnotification();
|
|
42962
42473
|
init_notificationscontrollerlistnotifications();
|
|
42963
42474
|
init_subscriberscontrollercreatesubscriber();
|
|
@@ -42969,17 +42480,13 @@ var init_operations = __esm(() => {
|
|
|
42969
42480
|
init_subscriberscontrollersearchsubscribers();
|
|
42970
42481
|
init_subscriberscontrollerupdatesubscriberpreferences();
|
|
42971
42482
|
init_subscribersv1controllerbulkcreatesubscribers();
|
|
42972
|
-
init_subscribersv1controllerchataccessoauth();
|
|
42973
|
-
init_subscribersv1controllerchatoauthcallback();
|
|
42974
42483
|
init_subscribersv1controllerdeletesubscribercredentials();
|
|
42975
42484
|
init_subscribersv1controllergetnotificationsfeed();
|
|
42976
42485
|
init_subscribersv1controllergetunseencount();
|
|
42977
|
-
init_subscribersv1controllerlistsubscribers();
|
|
42978
42486
|
init_subscribersv1controllermarkactionasseen();
|
|
42979
42487
|
init_subscribersv1controllermarkallunreadasread();
|
|
42980
42488
|
init_subscribersv1controllermarkmessagesas();
|
|
42981
42489
|
init_subscribersv1controllermodifysubscriberchannel();
|
|
42982
|
-
init_subscribersv1controllerupdatesubscriber();
|
|
42983
42490
|
init_subscribersv1controllerupdatesubscriberchannel();
|
|
42984
42491
|
init_subscribersv1controllerupdatesubscriberonlineflag();
|
|
42985
42492
|
init_topicscontrollercreatetopicsubscriptions();
|
|
@@ -43279,9 +42786,10 @@ var init_integrationsCreate2 = __esm(() => {
|
|
|
43279
42786
|
};
|
|
43280
42787
|
tool$integrationsCreate = {
|
|
43281
42788
|
name: "integrations-create",
|
|
43282
|
-
description: `Create integration
|
|
42789
|
+
description: `Create an integration
|
|
43283
42790
|
|
|
43284
|
-
Create an integration for the current environment the user is based on the API key provided
|
|
42791
|
+
Create an integration for the current environment the user is based on the API key provided.
|
|
42792
|
+
Each provider supports different credentials, check the provider documentation for more details.`,
|
|
43285
42793
|
args: args2,
|
|
43286
42794
|
tool: async (client, args3, ctx) => {
|
|
43287
42795
|
const [result, apiCall] = await integrationsCreate(client, args3.createIntegrationRequestDto, args3.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -43416,7 +42924,10 @@ var init_integrationsDelete2 = __esm(() => {
|
|
|
43416
42924
|
};
|
|
43417
42925
|
tool$integrationsDelete = {
|
|
43418
42926
|
name: "integrations-delete",
|
|
43419
|
-
description: `Delete integration
|
|
42927
|
+
description: `Delete an integration
|
|
42928
|
+
|
|
42929
|
+
Delete an integration by its unique key identifier **integrationId**.
|
|
42930
|
+
This action is irreversible.`,
|
|
43420
42931
|
args: args3,
|
|
43421
42932
|
tool: async (client, args4, ctx) => {
|
|
43422
42933
|
const [result, apiCall] = await integrationsDelete(client, args4.integrationId, args4.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -43543,9 +43054,9 @@ var init_integrationsList2 = __esm(() => {
|
|
|
43543
43054
|
};
|
|
43544
43055
|
tool$integrationsList = {
|
|
43545
43056
|
name: "integrations-list",
|
|
43546
|
-
description: `
|
|
43057
|
+
description: `List all integrations
|
|
43547
43058
|
|
|
43548
|
-
|
|
43059
|
+
List all the channels integrations created in the organization`,
|
|
43549
43060
|
args: args4,
|
|
43550
43061
|
tool: async (client, args5, ctx) => {
|
|
43551
43062
|
const [result, apiCall] = await integrationsList(client, args5.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -43672,9 +43183,9 @@ var init_integrationsListActive2 = __esm(() => {
|
|
|
43672
43183
|
};
|
|
43673
43184
|
tool$integrationsListActive = {
|
|
43674
43185
|
name: "integrations-list-active",
|
|
43675
|
-
description: `
|
|
43186
|
+
description: `List active integrations
|
|
43676
43187
|
|
|
43677
|
-
|
|
43188
|
+
List all the active integrations created in the organization`,
|
|
43678
43189
|
args: args5,
|
|
43679
43190
|
tool: async (client, args6, ctx) => {
|
|
43680
43191
|
const [result, apiCall] = await integrationsListActive(client, args6.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -43809,7 +43320,11 @@ var init_integrationsSetAsPrimary2 = __esm(() => {
|
|
|
43809
43320
|
};
|
|
43810
43321
|
tool$integrationsSetAsPrimary = {
|
|
43811
43322
|
name: "integrations-set-as-primary",
|
|
43812
|
-
description: `
|
|
43323
|
+
description: `Update integration as primary
|
|
43324
|
+
|
|
43325
|
+
Update an integration as **primary** by its unique key identifier **integrationId**.
|
|
43326
|
+
This API will set the integration as primary for that channel in the current environment.
|
|
43327
|
+
Primary integration is used to deliver notification for sms and email channels in the workflow.`,
|
|
43813
43328
|
args: args6,
|
|
43814
43329
|
tool: async (client, args7, ctx) => {
|
|
43815
43330
|
const [result, apiCall] = await integrationsSetAsPrimary(client, args7.integrationId, args7.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -43950,7 +43465,10 @@ var init_integrationsUpdate2 = __esm(() => {
|
|
|
43950
43465
|
};
|
|
43951
43466
|
tool$integrationsUpdate = {
|
|
43952
43467
|
name: "integrations-update",
|
|
43953
|
-
description: `Update integration
|
|
43468
|
+
description: `Update an integration
|
|
43469
|
+
|
|
43470
|
+
Update an integration by its unique key identifier **integrationId**.
|
|
43471
|
+
Each provider supports different credentials, check the provider documentation for more details.`,
|
|
43954
43472
|
args: args7,
|
|
43955
43473
|
tool: async (client, args8, ctx) => {
|
|
43956
43474
|
const [result, apiCall] = await integrationsUpdate(client, args8.updateIntegrationRequestDto, args8.integrationId, args8.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -43966,145 +43484,11 @@ var init_integrationsUpdate2 = __esm(() => {
|
|
|
43966
43484
|
};
|
|
43967
43485
|
});
|
|
43968
43486
|
|
|
43969
|
-
// src/funcs/integrationsWebhooksRetrieve.ts
|
|
43970
|
-
function integrationsWebhooksRetrieve(client, providerOrIntegrationId, idempotencyKey, options) {
|
|
43971
|
-
return new APIPromise($do8(client, providerOrIntegrationId, idempotencyKey, options));
|
|
43972
|
-
}
|
|
43973
|
-
async function $do8(client, providerOrIntegrationId, idempotencyKey, options) {
|
|
43974
|
-
const input = {
|
|
43975
|
-
providerOrIntegrationId,
|
|
43976
|
-
idempotencyKey
|
|
43977
|
-
};
|
|
43978
|
-
const parsed = safeParse(input, (value) => IntegrationsControllerGetWebhookSupportStatusRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43979
|
-
if (!parsed.ok) {
|
|
43980
|
-
return [parsed, { status: "invalid" }];
|
|
43981
|
-
}
|
|
43982
|
-
const payload = parsed.value;
|
|
43983
|
-
const body = null;
|
|
43984
|
-
const pathParams = {
|
|
43985
|
-
providerOrIntegrationId: encodeSimple("providerOrIntegrationId", payload.providerOrIntegrationId, { explode: false, charEncoding: "percent" })
|
|
43986
|
-
};
|
|
43987
|
-
const path = pathToFunc("/v1/integrations/webhook/provider/{providerOrIntegrationId}/status")(pathParams);
|
|
43988
|
-
const headers = new Headers(compactMap({
|
|
43989
|
-
Accept: "application/json",
|
|
43990
|
-
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
43991
|
-
}));
|
|
43992
|
-
const secConfig = await extractSecurity(client._options.secretKey);
|
|
43993
|
-
const securityInput = secConfig == null ? {} : { secretKey: secConfig };
|
|
43994
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43995
|
-
const context = {
|
|
43996
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
43997
|
-
operationID: "IntegrationsController_getWebhookSupportStatus",
|
|
43998
|
-
oAuth2Scopes: [],
|
|
43999
|
-
resolvedSecurity: requestSecurity,
|
|
44000
|
-
securitySource: client._options.secretKey,
|
|
44001
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
44002
|
-
strategy: "backoff",
|
|
44003
|
-
backoff: {
|
|
44004
|
-
initialInterval: 1000,
|
|
44005
|
-
maxInterval: 30000,
|
|
44006
|
-
exponent: 1.5,
|
|
44007
|
-
maxElapsedTime: 3600000
|
|
44008
|
-
},
|
|
44009
|
-
retryConnectionErrors: true
|
|
44010
|
-
},
|
|
44011
|
-
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"]
|
|
44012
|
-
};
|
|
44013
|
-
const requestRes = client._createRequest(context, {
|
|
44014
|
-
security: requestSecurity,
|
|
44015
|
-
method: "GET",
|
|
44016
|
-
baseURL: options?.serverURL,
|
|
44017
|
-
path,
|
|
44018
|
-
headers,
|
|
44019
|
-
body,
|
|
44020
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44021
|
-
}, options);
|
|
44022
|
-
if (!requestRes.ok) {
|
|
44023
|
-
return [requestRes, { status: "invalid" }];
|
|
44024
|
-
}
|
|
44025
|
-
const req = requestRes.value;
|
|
44026
|
-
const doResult = await client._do(req, {
|
|
44027
|
-
context,
|
|
44028
|
-
errorCodes: [
|
|
44029
|
-
"400",
|
|
44030
|
-
"401",
|
|
44031
|
-
"403",
|
|
44032
|
-
"404",
|
|
44033
|
-
"405",
|
|
44034
|
-
"409",
|
|
44035
|
-
"413",
|
|
44036
|
-
"414",
|
|
44037
|
-
"415",
|
|
44038
|
-
"422",
|
|
44039
|
-
"429",
|
|
44040
|
-
"4XX",
|
|
44041
|
-
"500",
|
|
44042
|
-
"503",
|
|
44043
|
-
"5XX"
|
|
44044
|
-
],
|
|
44045
|
-
retryConfig: context.retryConfig,
|
|
44046
|
-
retryCodes: context.retryCodes
|
|
44047
|
-
});
|
|
44048
|
-
if (!doResult.ok) {
|
|
44049
|
-
return [doResult, { status: "request-error", request: req }];
|
|
44050
|
-
}
|
|
44051
|
-
const response = doResult.value;
|
|
44052
|
-
const responseFields = {
|
|
44053
|
-
HttpMeta: { Response: response, Request: req }
|
|
44054
|
-
};
|
|
44055
|
-
const [result] = await match(json(200, IntegrationsControllerGetWebhookSupportStatusResponse$inboundSchema, { hdrs: true, key: "Result" }), jsonErr(414, ErrorDto$inboundSchema), jsonErr([400, 401, 403, 404, 405, 409, 413, 415], ErrorDto$inboundSchema, { hdrs: true }), jsonErr(422, ValidationErrorDto$inboundSchema, { hdrs: true }), fail(429), jsonErr(500, ErrorDto$inboundSchema, { hdrs: true }), fail(503), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
44056
|
-
if (!result.ok) {
|
|
44057
|
-
return [result, { status: "complete", request: req, response }];
|
|
44058
|
-
}
|
|
44059
|
-
return [result, { status: "complete", request: req, response }];
|
|
44060
|
-
}
|
|
44061
|
-
var init_integrationsWebhooksRetrieve = __esm(() => {
|
|
44062
|
-
init_encodings();
|
|
44063
|
-
init_matchers();
|
|
44064
|
-
init_primitives();
|
|
44065
|
-
init_schemas();
|
|
44066
|
-
init_security();
|
|
44067
|
-
init_url();
|
|
44068
|
-
init_errors();
|
|
44069
|
-
init_operations();
|
|
44070
|
-
init_async();
|
|
44071
|
-
});
|
|
44072
|
-
|
|
44073
|
-
// src/mcp-server/tools/integrationsWebhooksRetrieve.ts
|
|
44074
|
-
var args8, tool$integrationsWebhooksRetrieve;
|
|
44075
|
-
var init_integrationsWebhooksRetrieve2 = __esm(() => {
|
|
44076
|
-
init_lib();
|
|
44077
|
-
init_integrationsWebhooksRetrieve();
|
|
44078
|
-
init_tools();
|
|
44079
|
-
args8 = {
|
|
44080
|
-
providerOrIntegrationId: stringType(),
|
|
44081
|
-
idempotencyKey: stringType().optional()
|
|
44082
|
-
};
|
|
44083
|
-
tool$integrationsWebhooksRetrieve = {
|
|
44084
|
-
name: "integrations-webhooks-retrieve",
|
|
44085
|
-
description: `Get webhook support status for provider
|
|
44086
|
-
|
|
44087
|
-
Return the status of the webhook for this provider, if it is supported or if it is not based on a boolean value`,
|
|
44088
|
-
args: args8,
|
|
44089
|
-
tool: async (client, args9, ctx) => {
|
|
44090
|
-
const [result, apiCall] = await integrationsWebhooksRetrieve(client, args9.providerOrIntegrationId, args9.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44091
|
-
if (!result.ok) {
|
|
44092
|
-
return {
|
|
44093
|
-
content: [{ type: "text", text: result.error.message }],
|
|
44094
|
-
isError: true
|
|
44095
|
-
};
|
|
44096
|
-
}
|
|
44097
|
-
const value = result.value.result;
|
|
44098
|
-
return formatResult(value, apiCall);
|
|
44099
|
-
}
|
|
44100
|
-
};
|
|
44101
|
-
});
|
|
44102
|
-
|
|
44103
43487
|
// src/funcs/messagesDelete.ts
|
|
44104
43488
|
function messagesDelete(client, messageId, idempotencyKey, options) {
|
|
44105
|
-
return new APIPromise($
|
|
43489
|
+
return new APIPromise($do8(client, messageId, idempotencyKey, options));
|
|
44106
43490
|
}
|
|
44107
|
-
async function $
|
|
43491
|
+
async function $do8(client, messageId, idempotencyKey, options) {
|
|
44108
43492
|
const input = {
|
|
44109
43493
|
messageId,
|
|
44110
43494
|
idempotencyKey
|
|
@@ -44208,23 +43592,24 @@ var init_messagesDelete = __esm(() => {
|
|
|
44208
43592
|
});
|
|
44209
43593
|
|
|
44210
43594
|
// src/mcp-server/tools/messagesDelete.ts
|
|
44211
|
-
var
|
|
43595
|
+
var args8, tool$messagesDelete;
|
|
44212
43596
|
var init_messagesDelete2 = __esm(() => {
|
|
44213
43597
|
init_lib();
|
|
44214
43598
|
init_messagesDelete();
|
|
44215
43599
|
init_tools();
|
|
44216
|
-
|
|
43600
|
+
args8 = {
|
|
44217
43601
|
messageId: stringType(),
|
|
44218
43602
|
idempotencyKey: stringType().optional()
|
|
44219
43603
|
};
|
|
44220
43604
|
tool$messagesDelete = {
|
|
44221
43605
|
name: "messages-delete",
|
|
44222
|
-
description: `Delete message
|
|
43606
|
+
description: `Delete a message
|
|
44223
43607
|
|
|
44224
|
-
|
|
44225
|
-
|
|
44226
|
-
|
|
44227
|
-
|
|
43608
|
+
Delete a message entity from the Novu platform by **messageId**.
|
|
43609
|
+
This action is irreversible. **messageId** is required and of mongodbId type.`,
|
|
43610
|
+
args: args8,
|
|
43611
|
+
tool: async (client, args9, ctx) => {
|
|
43612
|
+
const [result, apiCall] = await messagesDelete(client, args9.messageId, args9.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44228
43613
|
if (!result.ok) {
|
|
44229
43614
|
return {
|
|
44230
43615
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44239,9 +43624,9 @@ Deletes a message entity from the Novu platform`,
|
|
|
44239
43624
|
|
|
44240
43625
|
// src/funcs/messagesDeleteByTransactionId.ts
|
|
44241
43626
|
function messagesDeleteByTransactionId(client, transactionId, channel, idempotencyKey, options) {
|
|
44242
|
-
return new APIPromise($
|
|
43627
|
+
return new APIPromise($do9(client, transactionId, channel, idempotencyKey, options));
|
|
44243
43628
|
}
|
|
44244
|
-
async function $
|
|
43629
|
+
async function $do9(client, transactionId, channel, idempotencyKey, options) {
|
|
44245
43630
|
const input = {
|
|
44246
43631
|
transactionId,
|
|
44247
43632
|
channel,
|
|
@@ -44350,13 +43735,13 @@ var init_messagesDeleteByTransactionId = __esm(() => {
|
|
|
44350
43735
|
});
|
|
44351
43736
|
|
|
44352
43737
|
// src/mcp-server/tools/messagesDeleteByTransactionId.ts
|
|
44353
|
-
var
|
|
43738
|
+
var args9, tool$messagesDeleteByTransactionId;
|
|
44354
43739
|
var init_messagesDeleteByTransactionId2 = __esm(() => {
|
|
44355
43740
|
init_lib();
|
|
44356
43741
|
init_messagesDeleteByTransactionId();
|
|
44357
43742
|
init_operations();
|
|
44358
43743
|
init_tools();
|
|
44359
|
-
|
|
43744
|
+
args9 = {
|
|
44360
43745
|
transactionId: stringType(),
|
|
44361
43746
|
channel: Channel$inboundSchema2.optional(),
|
|
44362
43747
|
idempotencyKey: stringType().optional()
|
|
@@ -44365,10 +43750,11 @@ var init_messagesDeleteByTransactionId2 = __esm(() => {
|
|
|
44365
43750
|
name: "messages-delete-by-transaction-id",
|
|
44366
43751
|
description: `Delete messages by transactionId
|
|
44367
43752
|
|
|
44368
|
-
|
|
44369
|
-
|
|
44370
|
-
|
|
44371
|
-
|
|
43753
|
+
Delete multiple messages from the Novu platform using **transactionId** of triggered event.
|
|
43754
|
+
This API supports filtering by **channel** and delete all messages associated with the **transactionId**.`,
|
|
43755
|
+
args: args9,
|
|
43756
|
+
tool: async (client, args10, ctx) => {
|
|
43757
|
+
const [result, apiCall] = await messagesDeleteByTransactionId(client, args10.transactionId, args10.channel, args10.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44372
43758
|
if (!result.ok) {
|
|
44373
43759
|
return {
|
|
44374
43760
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44382,9 +43768,9 @@ Deletes messages entity from the Novu platform using TransactionId of message`,
|
|
|
44382
43768
|
|
|
44383
43769
|
// src/funcs/messagesRetrieve.ts
|
|
44384
43770
|
function messagesRetrieve(client, request, options) {
|
|
44385
|
-
return new APIPromise($
|
|
43771
|
+
return new APIPromise($do10(client, request, options));
|
|
44386
43772
|
}
|
|
44387
|
-
async function $
|
|
43773
|
+
async function $do10(client, request, options) {
|
|
44388
43774
|
const parsed = safeParse(request, (value) => MessagesControllerGetMessagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44389
43775
|
if (!parsed.ok) {
|
|
44390
43776
|
return [parsed, { status: "invalid" }];
|
|
@@ -44486,22 +43872,24 @@ var init_messagesRetrieve = __esm(() => {
|
|
|
44486
43872
|
});
|
|
44487
43873
|
|
|
44488
43874
|
// src/mcp-server/tools/messagesRetrieve.ts
|
|
44489
|
-
var
|
|
43875
|
+
var args10, tool$messagesRetrieve;
|
|
44490
43876
|
var init_messagesRetrieve2 = __esm(() => {
|
|
44491
43877
|
init_messagesRetrieve();
|
|
44492
43878
|
init_operations();
|
|
44493
43879
|
init_tools();
|
|
44494
|
-
|
|
43880
|
+
args10 = {
|
|
44495
43881
|
request: MessagesControllerGetMessagesRequest$inboundSchema
|
|
44496
43882
|
};
|
|
44497
43883
|
tool$messagesRetrieve = {
|
|
44498
43884
|
name: "messages-retrieve",
|
|
44499
|
-
description: `
|
|
43885
|
+
description: `List all messages
|
|
44500
43886
|
|
|
44501
|
-
|
|
44502
|
-
|
|
44503
|
-
|
|
44504
|
-
|
|
43887
|
+
List all messages for the current environment.
|
|
43888
|
+
This API supports filtering by **channel**, **subscriberId**, and **transactionId**.
|
|
43889
|
+
This API returns a paginated list of messages.`,
|
|
43890
|
+
args: args10,
|
|
43891
|
+
tool: async (client, args11, ctx) => {
|
|
43892
|
+
const [result, apiCall] = await messagesRetrieve(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44505
43893
|
if (!result.ok) {
|
|
44506
43894
|
return {
|
|
44507
43895
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44516,9 +43904,9 @@ Returns a list of messages, could paginate using the \`page\` query parameter`,
|
|
|
44516
43904
|
|
|
44517
43905
|
// src/funcs/notificationsList.ts
|
|
44518
43906
|
function notificationsList(client, request, options) {
|
|
44519
|
-
return new APIPromise($
|
|
43907
|
+
return new APIPromise($do11(client, request, options));
|
|
44520
43908
|
}
|
|
44521
|
-
async function $
|
|
43909
|
+
async function $do11(client, request, options) {
|
|
44522
43910
|
const parsed = safeParse(request, (value) => NotificationsControllerListNotificationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44523
43911
|
if (!parsed.ok) {
|
|
44524
43912
|
return [parsed, { status: "invalid" }];
|
|
@@ -44626,20 +44014,25 @@ var init_notificationsList = __esm(() => {
|
|
|
44626
44014
|
});
|
|
44627
44015
|
|
|
44628
44016
|
// src/mcp-server/tools/notificationsList.ts
|
|
44629
|
-
var
|
|
44017
|
+
var args11, tool$notificationsList;
|
|
44630
44018
|
var init_notificationsList2 = __esm(() => {
|
|
44631
44019
|
init_notificationsList();
|
|
44632
44020
|
init_operations();
|
|
44633
44021
|
init_tools();
|
|
44634
|
-
|
|
44022
|
+
args11 = {
|
|
44635
44023
|
request: NotificationsControllerListNotificationsRequest$inboundSchema
|
|
44636
44024
|
};
|
|
44637
44025
|
tool$notificationsList = {
|
|
44638
44026
|
name: "notifications-list",
|
|
44639
|
-
description: `
|
|
44640
|
-
|
|
44641
|
-
|
|
44642
|
-
|
|
44027
|
+
description: `List all events
|
|
44028
|
+
|
|
44029
|
+
List all notification events (triggered events) for the current environment.
|
|
44030
|
+
This API supports filtering by **channels**, **templates**, **emails**, **subscriberIds**, **transactionId**, **topicKey**.
|
|
44031
|
+
Checkout all available filters in the query section.
|
|
44032
|
+
This API returns event triggers, to list each channel notifications, check messages APIs.`,
|
|
44033
|
+
args: args11,
|
|
44034
|
+
tool: async (client, args12, ctx) => {
|
|
44035
|
+
const [result, apiCall] = await notificationsList(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44643
44036
|
if (!result.ok) {
|
|
44644
44037
|
return {
|
|
44645
44038
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44654,9 +44047,9 @@ var init_notificationsList2 = __esm(() => {
|
|
|
44654
44047
|
|
|
44655
44048
|
// src/funcs/notificationsRetrieve.ts
|
|
44656
44049
|
function notificationsRetrieve(client, notificationId, idempotencyKey, options) {
|
|
44657
|
-
return new APIPromise($
|
|
44050
|
+
return new APIPromise($do12(client, notificationId, idempotencyKey, options));
|
|
44658
44051
|
}
|
|
44659
|
-
async function $
|
|
44052
|
+
async function $do12(client, notificationId, idempotencyKey, options) {
|
|
44660
44053
|
const input = {
|
|
44661
44054
|
notificationId,
|
|
44662
44055
|
idempotencyKey
|
|
@@ -44760,21 +44153,25 @@ var init_notificationsRetrieve = __esm(() => {
|
|
|
44760
44153
|
});
|
|
44761
44154
|
|
|
44762
44155
|
// src/mcp-server/tools/notificationsRetrieve.ts
|
|
44763
|
-
var
|
|
44156
|
+
var args12, tool$notificationsRetrieve;
|
|
44764
44157
|
var init_notificationsRetrieve2 = __esm(() => {
|
|
44765
44158
|
init_lib();
|
|
44766
44159
|
init_notificationsRetrieve();
|
|
44767
44160
|
init_tools();
|
|
44768
|
-
|
|
44161
|
+
args12 = {
|
|
44769
44162
|
notificationId: stringType(),
|
|
44770
44163
|
idempotencyKey: stringType().optional()
|
|
44771
44164
|
};
|
|
44772
44165
|
tool$notificationsRetrieve = {
|
|
44773
44166
|
name: "notifications-retrieve",
|
|
44774
|
-
description: `
|
|
44775
|
-
|
|
44776
|
-
|
|
44777
|
-
|
|
44167
|
+
description: `Retrieve an event
|
|
44168
|
+
|
|
44169
|
+
Retrieve an event by its unique key identifier **notificationId**.
|
|
44170
|
+
Here **notificationId** is of mongodbId type.
|
|
44171
|
+
This API returns the event details - execution logs, status, actual notification (message) generated by each workflow step.`,
|
|
44172
|
+
args: args12,
|
|
44173
|
+
tool: async (client, args13, ctx) => {
|
|
44174
|
+
const [result, apiCall] = await notificationsRetrieve(client, args13.notificationId, args13.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44778
44175
|
if (!result.ok) {
|
|
44779
44176
|
return {
|
|
44780
44177
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44787,26 +44184,26 @@ var init_notificationsRetrieve2 = __esm(() => {
|
|
|
44787
44184
|
};
|
|
44788
44185
|
});
|
|
44789
44186
|
|
|
44790
|
-
// src/funcs/
|
|
44791
|
-
function
|
|
44792
|
-
return new APIPromise($
|
|
44187
|
+
// src/funcs/subscribersCreate.ts
|
|
44188
|
+
function subscribersCreate(client, createSubscriberRequestDto, idempotencyKey, options) {
|
|
44189
|
+
return new APIPromise($do13(client, createSubscriberRequestDto, idempotencyKey, options));
|
|
44793
44190
|
}
|
|
44794
|
-
async function $
|
|
44191
|
+
async function $do13(client, createSubscriberRequestDto, idempotencyKey, options) {
|
|
44795
44192
|
const input = {
|
|
44796
|
-
|
|
44193
|
+
createSubscriberRequestDto,
|
|
44797
44194
|
idempotencyKey
|
|
44798
44195
|
};
|
|
44799
|
-
const parsed = safeParse(input, (value) =>
|
|
44196
|
+
const parsed = safeParse(input, (value) => SubscribersControllerCreateSubscriberRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44800
44197
|
if (!parsed.ok) {
|
|
44801
44198
|
return [parsed, { status: "invalid" }];
|
|
44802
44199
|
}
|
|
44803
44200
|
const payload = parsed.value;
|
|
44804
|
-
const body =
|
|
44805
|
-
|
|
44806
|
-
const query = encodeFormQuery({
|
|
44807
|
-
days: payload.days
|
|
44201
|
+
const body = encodeJSON("body", payload.CreateSubscriberRequestDto, {
|
|
44202
|
+
explode: true
|
|
44808
44203
|
});
|
|
44204
|
+
const path = pathToFunc("/v2/subscribers")();
|
|
44809
44205
|
const headers = new Headers(compactMap({
|
|
44206
|
+
"Content-Type": "application/json",
|
|
44810
44207
|
Accept: "application/json",
|
|
44811
44208
|
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
44812
44209
|
}));
|
|
@@ -44815,7 +44212,7 @@ async function $do14(client, days, idempotencyKey, options) {
|
|
|
44815
44212
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44816
44213
|
const context = {
|
|
44817
44214
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44818
|
-
operationID: "
|
|
44215
|
+
operationID: "SubscribersController_createSubscriber",
|
|
44819
44216
|
oAuth2Scopes: [],
|
|
44820
44217
|
resolvedSecurity: requestSecurity,
|
|
44821
44218
|
securitySource: client._options.secretKey,
|
|
@@ -44833,11 +44230,10 @@ async function $do14(client, days, idempotencyKey, options) {
|
|
|
44833
44230
|
};
|
|
44834
44231
|
const requestRes = client._createRequest(context, {
|
|
44835
44232
|
security: requestSecurity,
|
|
44836
|
-
method: "
|
|
44233
|
+
method: "POST",
|
|
44837
44234
|
baseURL: options?.serverURL,
|
|
44838
44235
|
path,
|
|
44839
44236
|
headers,
|
|
44840
|
-
query,
|
|
44841
44237
|
body,
|
|
44842
44238
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44843
44239
|
}, options);
|
|
@@ -44874,13 +44270,13 @@ async function $do14(client, days, idempotencyKey, options) {
|
|
|
44874
44270
|
const responseFields = {
|
|
44875
44271
|
HttpMeta: { Response: response, Request: req }
|
|
44876
44272
|
};
|
|
44877
|
-
const [result] = await match(json(
|
|
44273
|
+
const [result] = await match(json(201, SubscribersControllerCreateSubscriberResponse$inboundSchema, { hdrs: true, key: "Result" }), jsonErr(414, ErrorDto$inboundSchema), jsonErr([400, 401, 403, 404, 405, 409, 413, 415], ErrorDto$inboundSchema, { hdrs: true }), jsonErr(422, ValidationErrorDto$inboundSchema, { hdrs: true }), fail(429), jsonErr(500, ErrorDto$inboundSchema, { hdrs: true }), fail(503), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
44878
44274
|
if (!result.ok) {
|
|
44879
44275
|
return [result, { status: "complete", request: req, response }];
|
|
44880
44276
|
}
|
|
44881
44277
|
return [result, { status: "complete", request: req, response }];
|
|
44882
44278
|
}
|
|
44883
|
-
var
|
|
44279
|
+
var init_subscribersCreate = __esm(() => {
|
|
44884
44280
|
init_encodings();
|
|
44885
44281
|
init_matchers();
|
|
44886
44282
|
init_primitives();
|
|
@@ -44892,22 +44288,26 @@ var init_notificationsStatsGraph = __esm(() => {
|
|
|
44892
44288
|
init_async();
|
|
44893
44289
|
});
|
|
44894
44290
|
|
|
44895
|
-
// src/mcp-server/tools/
|
|
44896
|
-
var
|
|
44897
|
-
var
|
|
44291
|
+
// src/mcp-server/tools/subscribersCreate.ts
|
|
44292
|
+
var args13, tool$subscribersCreate;
|
|
44293
|
+
var init_subscribersCreate2 = __esm(() => {
|
|
44898
44294
|
init_lib();
|
|
44899
|
-
|
|
44295
|
+
init_subscribersCreate();
|
|
44296
|
+
init_components();
|
|
44900
44297
|
init_tools();
|
|
44901
|
-
|
|
44902
|
-
|
|
44298
|
+
args13 = {
|
|
44299
|
+
createSubscriberRequestDto: CreateSubscriberRequestDto$inboundSchema,
|
|
44903
44300
|
idempotencyKey: stringType().optional()
|
|
44904
44301
|
};
|
|
44905
|
-
tool$
|
|
44906
|
-
name: "
|
|
44907
|
-
description: `
|
|
44908
|
-
|
|
44909
|
-
|
|
44910
|
-
|
|
44302
|
+
tool$subscribersCreate = {
|
|
44303
|
+
name: "subscribers-create",
|
|
44304
|
+
description: `Create a subscriber
|
|
44305
|
+
|
|
44306
|
+
Create a subscriber with the subscriber attributes.
|
|
44307
|
+
**subscriberId** is a required field, rest other fields are optional, if the subscriber already exists, it will be updated`,
|
|
44308
|
+
args: args13,
|
|
44309
|
+
tool: async (client, args14, ctx) => {
|
|
44310
|
+
const [result, apiCall] = await subscribersCreate(client, args14.createSubscriberRequestDto, args14.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44911
44311
|
if (!result.ok) {
|
|
44912
44312
|
return {
|
|
44913
44313
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44920,22 +44320,26 @@ var init_notificationsStatsGraph2 = __esm(() => {
|
|
|
44920
44320
|
};
|
|
44921
44321
|
});
|
|
44922
44322
|
|
|
44923
|
-
// src/funcs/
|
|
44924
|
-
function
|
|
44925
|
-
return new APIPromise($
|
|
44323
|
+
// src/funcs/subscribersCreateBulk.ts
|
|
44324
|
+
function subscribersCreateBulk(client, bulkSubscriberCreateDto, idempotencyKey, options) {
|
|
44325
|
+
return new APIPromise($do14(client, bulkSubscriberCreateDto, idempotencyKey, options));
|
|
44926
44326
|
}
|
|
44927
|
-
async function $
|
|
44327
|
+
async function $do14(client, bulkSubscriberCreateDto, idempotencyKey, options) {
|
|
44928
44328
|
const input = {
|
|
44329
|
+
bulkSubscriberCreateDto,
|
|
44929
44330
|
idempotencyKey
|
|
44930
44331
|
};
|
|
44931
|
-
const parsed = safeParse(input, (value) =>
|
|
44332
|
+
const parsed = safeParse(input, (value) => SubscribersV1ControllerBulkCreateSubscribersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44932
44333
|
if (!parsed.ok) {
|
|
44933
44334
|
return [parsed, { status: "invalid" }];
|
|
44934
44335
|
}
|
|
44935
44336
|
const payload = parsed.value;
|
|
44936
|
-
const body =
|
|
44937
|
-
|
|
44337
|
+
const body = encodeJSON("body", payload.BulkSubscriberCreateDto, {
|
|
44338
|
+
explode: true
|
|
44339
|
+
});
|
|
44340
|
+
const path = pathToFunc("/v1/subscribers/bulk")();
|
|
44938
44341
|
const headers = new Headers(compactMap({
|
|
44342
|
+
"Content-Type": "application/json",
|
|
44939
44343
|
Accept: "application/json",
|
|
44940
44344
|
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
44941
44345
|
}));
|
|
@@ -44944,7 +44348,7 @@ async function $do15(client, idempotencyKey, options) {
|
|
|
44944
44348
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44945
44349
|
const context = {
|
|
44946
44350
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44947
|
-
operationID: "
|
|
44351
|
+
operationID: "SubscribersV1Controller_bulkCreateSubscribers",
|
|
44948
44352
|
oAuth2Scopes: [],
|
|
44949
44353
|
resolvedSecurity: requestSecurity,
|
|
44950
44354
|
securitySource: client._options.secretKey,
|
|
@@ -44962,7 +44366,7 @@ async function $do15(client, idempotencyKey, options) {
|
|
|
44962
44366
|
};
|
|
44963
44367
|
const requestRes = client._createRequest(context, {
|
|
44964
44368
|
security: requestSecurity,
|
|
44965
|
-
method: "
|
|
44369
|
+
method: "POST",
|
|
44966
44370
|
baseURL: options?.serverURL,
|
|
44967
44371
|
path,
|
|
44968
44372
|
headers,
|
|
@@ -45002,13 +44406,13 @@ async function $do15(client, idempotencyKey, options) {
|
|
|
45002
44406
|
const responseFields = {
|
|
45003
44407
|
HttpMeta: { Response: response, Request: req }
|
|
45004
44408
|
};
|
|
45005
|
-
const [result] = await match(json(
|
|
44409
|
+
const [result] = await match(json(201, SubscribersV1ControllerBulkCreateSubscribersResponse$inboundSchema, { hdrs: true, key: "Result" }), jsonErr(414, ErrorDto$inboundSchema), jsonErr([400, 401, 403, 404, 405, 409, 413, 415], ErrorDto$inboundSchema, { hdrs: true }), jsonErr(422, ValidationErrorDto$inboundSchema, { hdrs: true }), fail(429), jsonErr(500, ErrorDto$inboundSchema, { hdrs: true }), fail(503), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45006
44410
|
if (!result.ok) {
|
|
45007
44411
|
return [result, { status: "complete", request: req, response }];
|
|
45008
44412
|
}
|
|
45009
44413
|
return [result, { status: "complete", request: req, response }];
|
|
45010
44414
|
}
|
|
45011
|
-
var
|
|
44415
|
+
var init_subscribersCreateBulk = __esm(() => {
|
|
45012
44416
|
init_encodings();
|
|
45013
44417
|
init_matchers();
|
|
45014
44418
|
init_primitives();
|
|
@@ -45020,21 +44424,27 @@ var init_notificationsStatsRetrieve = __esm(() => {
|
|
|
45020
44424
|
init_async();
|
|
45021
44425
|
});
|
|
45022
44426
|
|
|
45023
|
-
// src/mcp-server/tools/
|
|
45024
|
-
var
|
|
45025
|
-
var
|
|
44427
|
+
// src/mcp-server/tools/subscribersCreateBulk.ts
|
|
44428
|
+
var args14, tool$subscribersCreateBulk;
|
|
44429
|
+
var init_subscribersCreateBulk2 = __esm(() => {
|
|
45026
44430
|
init_lib();
|
|
45027
|
-
|
|
44431
|
+
init_subscribersCreateBulk();
|
|
44432
|
+
init_components();
|
|
45028
44433
|
init_tools();
|
|
45029
|
-
|
|
44434
|
+
args14 = {
|
|
44435
|
+
bulkSubscriberCreateDto: BulkSubscriberCreateDto$inboundSchema,
|
|
45030
44436
|
idempotencyKey: stringType().optional()
|
|
45031
44437
|
};
|
|
45032
|
-
tool$
|
|
45033
|
-
name: "
|
|
45034
|
-
description: `
|
|
45035
|
-
|
|
45036
|
-
|
|
45037
|
-
|
|
44438
|
+
tool$subscribersCreateBulk = {
|
|
44439
|
+
name: "subscribers-create-bulk",
|
|
44440
|
+
description: `Bulk create subscribers
|
|
44441
|
+
|
|
44442
|
+
|
|
44443
|
+
Using this endpoint multiple subscribers can be created at once. The bulk API is limited to 500 subscribers per request.
|
|
44444
|
+
`,
|
|
44445
|
+
args: args14,
|
|
44446
|
+
tool: async (client, args15, ctx) => {
|
|
44447
|
+
const [result, apiCall] = await subscribersCreateBulk(client, args15.bulkSubscriberCreateDto, args15.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45038
44448
|
if (!result.ok) {
|
|
45039
44449
|
return {
|
|
45040
44450
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45047,570 +44457,17 @@ var init_notificationsStatsRetrieve2 = __esm(() => {
|
|
|
45047
44457
|
};
|
|
45048
44458
|
});
|
|
45049
44459
|
|
|
45050
|
-
// src/funcs/
|
|
45051
|
-
function
|
|
45052
|
-
return new APIPromise($
|
|
44460
|
+
// src/funcs/subscribersCredentialsAppend.ts
|
|
44461
|
+
function subscribersCredentialsAppend(client, updateSubscriberChannelRequestDto, subscriberId, idempotencyKey, options) {
|
|
44462
|
+
return new APIPromise($do15(client, updateSubscriberChannelRequestDto, subscriberId, idempotencyKey, options));
|
|
45053
44463
|
}
|
|
45054
|
-
async function $
|
|
45055
|
-
const
|
|
45056
|
-
|
|
45057
|
-
|
|
45058
|
-
|
|
45059
|
-
|
|
45060
|
-
const
|
|
45061
|
-
const pathParams = {
|
|
45062
|
-
providerId: encodeSimple("providerId", payload.providerId, {
|
|
45063
|
-
explode: false,
|
|
45064
|
-
charEncoding: "percent"
|
|
45065
|
-
}),
|
|
45066
|
-
subscriberId: encodeSimple("subscriberId", payload.subscriberId, {
|
|
45067
|
-
explode: false,
|
|
45068
|
-
charEncoding: "percent"
|
|
45069
|
-
})
|
|
45070
|
-
};
|
|
45071
|
-
const path = pathToFunc("/v1/subscribers/{subscriberId}/credentials/{providerId}/oauth")(pathParams);
|
|
45072
|
-
const query = encodeFormQuery({
|
|
45073
|
-
environmentId: payload.environmentId,
|
|
45074
|
-
hmacHash: payload.hmacHash,
|
|
45075
|
-
integrationIdentifier: payload.integrationIdentifier
|
|
45076
|
-
});
|
|
45077
|
-
const headers = new Headers(compactMap({
|
|
45078
|
-
Accept: "application/json",
|
|
45079
|
-
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
45080
|
-
}));
|
|
45081
|
-
const secConfig = await extractSecurity(client._options.secretKey);
|
|
45082
|
-
const securityInput = secConfig == null ? {} : { secretKey: secConfig };
|
|
45083
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45084
|
-
const context = {
|
|
45085
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45086
|
-
operationID: "SubscribersV1Controller_chatAccessOauth",
|
|
45087
|
-
oAuth2Scopes: [],
|
|
45088
|
-
resolvedSecurity: requestSecurity,
|
|
45089
|
-
securitySource: client._options.secretKey,
|
|
45090
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
45091
|
-
strategy: "backoff",
|
|
45092
|
-
backoff: {
|
|
45093
|
-
initialInterval: 1000,
|
|
45094
|
-
maxInterval: 30000,
|
|
45095
|
-
exponent: 1.5,
|
|
45096
|
-
maxElapsedTime: 3600000
|
|
45097
|
-
},
|
|
45098
|
-
retryConnectionErrors: true
|
|
45099
|
-
},
|
|
45100
|
-
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"]
|
|
45101
|
-
};
|
|
45102
|
-
const requestRes = client._createRequest(context, {
|
|
45103
|
-
security: requestSecurity,
|
|
45104
|
-
method: "GET",
|
|
45105
|
-
baseURL: options?.serverURL,
|
|
45106
|
-
path,
|
|
45107
|
-
headers,
|
|
45108
|
-
query,
|
|
45109
|
-
body,
|
|
45110
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45111
|
-
}, options);
|
|
45112
|
-
if (!requestRes.ok) {
|
|
45113
|
-
return [requestRes, { status: "invalid" }];
|
|
45114
|
-
}
|
|
45115
|
-
const req = requestRes.value;
|
|
45116
|
-
const doResult = await client._do(req, {
|
|
45117
|
-
context,
|
|
45118
|
-
errorCodes: [
|
|
45119
|
-
"400",
|
|
45120
|
-
"401",
|
|
45121
|
-
"403",
|
|
45122
|
-
"404",
|
|
45123
|
-
"405",
|
|
45124
|
-
"409",
|
|
45125
|
-
"413",
|
|
45126
|
-
"414",
|
|
45127
|
-
"415",
|
|
45128
|
-
"422",
|
|
45129
|
-
"429",
|
|
45130
|
-
"4XX",
|
|
45131
|
-
"500",
|
|
45132
|
-
"503",
|
|
45133
|
-
"5XX"
|
|
45134
|
-
],
|
|
45135
|
-
retryConfig: context.retryConfig,
|
|
45136
|
-
retryCodes: context.retryCodes
|
|
45137
|
-
});
|
|
45138
|
-
if (!doResult.ok) {
|
|
45139
|
-
return [doResult, { status: "request-error", request: req }];
|
|
45140
|
-
}
|
|
45141
|
-
const response = doResult.value;
|
|
45142
|
-
const responseFields = {
|
|
45143
|
-
HttpMeta: { Response: response, Request: req }
|
|
45144
|
-
};
|
|
45145
|
-
const [result] = await match(nil(200, SubscribersV1ControllerChatAccessOauthResponse$inboundSchema.optional()), jsonErr(414, ErrorDto$inboundSchema), jsonErr([400, 401, 403, 404, 405, 409, 413, 415], ErrorDto$inboundSchema, { hdrs: true }), jsonErr(422, ValidationErrorDto$inboundSchema, { hdrs: true }), fail(429), jsonErr(500, ErrorDto$inboundSchema, { hdrs: true }), fail(503), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45146
|
-
if (!result.ok) {
|
|
45147
|
-
return [result, { status: "complete", request: req, response }];
|
|
45148
|
-
}
|
|
45149
|
-
return [result, { status: "complete", request: req, response }];
|
|
45150
|
-
}
|
|
45151
|
-
var init_subscribersAuthenticationChatAccessOauth = __esm(() => {
|
|
45152
|
-
init_encodings();
|
|
45153
|
-
init_matchers();
|
|
45154
|
-
init_primitives();
|
|
45155
|
-
init_schemas();
|
|
45156
|
-
init_security();
|
|
45157
|
-
init_url();
|
|
45158
|
-
init_errors();
|
|
45159
|
-
init_operations();
|
|
45160
|
-
init_async();
|
|
45161
|
-
});
|
|
45162
|
-
|
|
45163
|
-
// src/mcp-server/tools/subscribersAuthenticationChatAccessOauth.ts
|
|
45164
|
-
var args16, tool$subscribersAuthenticationChatAccessOauth;
|
|
45165
|
-
var init_subscribersAuthenticationChatAccessOauth2 = __esm(() => {
|
|
45166
|
-
init_subscribersAuthenticationChatAccessOauth();
|
|
45167
|
-
init_operations();
|
|
45168
|
-
init_tools();
|
|
45169
|
-
args16 = {
|
|
45170
|
-
request: SubscribersV1ControllerChatAccessOauthRequest$inboundSchema
|
|
45171
|
-
};
|
|
45172
|
-
tool$subscribersAuthenticationChatAccessOauth = {
|
|
45173
|
-
name: "subscribers-authentication-chat-access-oauth",
|
|
45174
|
-
description: `Handle chat oauth`,
|
|
45175
|
-
args: args16,
|
|
45176
|
-
tool: async (client, args17, ctx) => {
|
|
45177
|
-
const [result, apiCall] = await subscribersAuthenticationChatAccessOauth(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45178
|
-
if (!result.ok) {
|
|
45179
|
-
return {
|
|
45180
|
-
content: [{ type: "text", text: result.error.message }],
|
|
45181
|
-
isError: true
|
|
45182
|
-
};
|
|
45183
|
-
}
|
|
45184
|
-
return formatResult(undefined, apiCall);
|
|
45185
|
-
}
|
|
45186
|
-
};
|
|
45187
|
-
});
|
|
45188
|
-
|
|
45189
|
-
// src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts
|
|
45190
|
-
function subscribersAuthenticationChatAccessOauthCallBack(client, request, options) {
|
|
45191
|
-
return new APIPromise($do17(client, request, options));
|
|
45192
|
-
}
|
|
45193
|
-
async function $do17(client, request, options) {
|
|
45194
|
-
const parsed = safeParse(request, (value) => SubscribersV1ControllerChatOauthCallbackRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45195
|
-
if (!parsed.ok) {
|
|
45196
|
-
return [parsed, { status: "invalid" }];
|
|
45197
|
-
}
|
|
45198
|
-
const payload = parsed.value;
|
|
45199
|
-
const body = null;
|
|
45200
|
-
const pathParams = {
|
|
45201
|
-
providerId: encodeSimple("providerId", payload.providerId, {
|
|
45202
|
-
explode: false,
|
|
45203
|
-
charEncoding: "percent"
|
|
45204
|
-
}),
|
|
45205
|
-
subscriberId: encodeSimple("subscriberId", payload.subscriberId, {
|
|
45206
|
-
explode: false,
|
|
45207
|
-
charEncoding: "percent"
|
|
45208
|
-
})
|
|
45209
|
-
};
|
|
45210
|
-
const path = pathToFunc("/v1/subscribers/{subscriberId}/credentials/{providerId}/oauth/callback")(pathParams);
|
|
45211
|
-
const query = encodeFormQuery({
|
|
45212
|
-
code: payload.code,
|
|
45213
|
-
environmentId: payload.environmentId,
|
|
45214
|
-
hmacHash: payload.hmacHash,
|
|
45215
|
-
integrationIdentifier: payload.integrationIdentifier
|
|
45216
|
-
});
|
|
45217
|
-
const headers = new Headers(compactMap({
|
|
45218
|
-
Accept: options?.acceptHeaderOverride || "application/json;q=1, text/html;q=0",
|
|
45219
|
-
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
45220
|
-
}));
|
|
45221
|
-
const secConfig = await extractSecurity(client._options.secretKey);
|
|
45222
|
-
const securityInput = secConfig == null ? {} : { secretKey: secConfig };
|
|
45223
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45224
|
-
const context = {
|
|
45225
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45226
|
-
operationID: "SubscribersV1Controller_chatOauthCallback",
|
|
45227
|
-
oAuth2Scopes: [],
|
|
45228
|
-
resolvedSecurity: requestSecurity,
|
|
45229
|
-
securitySource: client._options.secretKey,
|
|
45230
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
45231
|
-
strategy: "backoff",
|
|
45232
|
-
backoff: {
|
|
45233
|
-
initialInterval: 1000,
|
|
45234
|
-
maxInterval: 30000,
|
|
45235
|
-
exponent: 1.5,
|
|
45236
|
-
maxElapsedTime: 3600000
|
|
45237
|
-
},
|
|
45238
|
-
retryConnectionErrors: true
|
|
45239
|
-
},
|
|
45240
|
-
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"]
|
|
45241
|
-
};
|
|
45242
|
-
const requestRes = client._createRequest(context, {
|
|
45243
|
-
security: requestSecurity,
|
|
45244
|
-
method: "GET",
|
|
45245
|
-
baseURL: options?.serverURL,
|
|
45246
|
-
path,
|
|
45247
|
-
headers,
|
|
45248
|
-
query,
|
|
45249
|
-
body,
|
|
45250
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45251
|
-
}, options);
|
|
45252
|
-
if (!requestRes.ok) {
|
|
45253
|
-
return [requestRes, { status: "invalid" }];
|
|
45254
|
-
}
|
|
45255
|
-
const req = requestRes.value;
|
|
45256
|
-
const doResult = await client._do(req, {
|
|
45257
|
-
context,
|
|
45258
|
-
errorCodes: [
|
|
45259
|
-
"400",
|
|
45260
|
-
"401",
|
|
45261
|
-
"403",
|
|
45262
|
-
"404",
|
|
45263
|
-
"405",
|
|
45264
|
-
"409",
|
|
45265
|
-
"413",
|
|
45266
|
-
"414",
|
|
45267
|
-
"415",
|
|
45268
|
-
"422",
|
|
45269
|
-
"429",
|
|
45270
|
-
"4XX",
|
|
45271
|
-
"500",
|
|
45272
|
-
"503",
|
|
45273
|
-
"5XX"
|
|
45274
|
-
],
|
|
45275
|
-
retryConfig: context.retryConfig,
|
|
45276
|
-
retryCodes: context.retryCodes
|
|
45277
|
-
});
|
|
45278
|
-
if (!doResult.ok) {
|
|
45279
|
-
return [doResult, { status: "request-error", request: req }];
|
|
45280
|
-
}
|
|
45281
|
-
const response = doResult.value;
|
|
45282
|
-
const responseFields = {
|
|
45283
|
-
HttpMeta: { Response: response, Request: req }
|
|
45284
|
-
};
|
|
45285
|
-
const [result] = await match(text(200, SubscribersV1ControllerChatOauthCallbackResponse$inboundSchema, { ctype: "text/html", hdrs: true, key: "Result" }), json(302, SubscribersV1ControllerChatOauthCallbackResponse$inboundSchema, { hdrs: true, key: "Result" }), jsonErr(414, ErrorDto$inboundSchema), jsonErr([400, 401, 403, 404, 405, 409, 413, 415], ErrorDto$inboundSchema, { hdrs: true }), jsonErr(422, ValidationErrorDto$inboundSchema, { hdrs: true }), fail(429), jsonErr(500, ErrorDto$inboundSchema, { hdrs: true }), fail(503), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45286
|
-
if (!result.ok) {
|
|
45287
|
-
return [result, { status: "complete", request: req, response }];
|
|
45288
|
-
}
|
|
45289
|
-
return [result, { status: "complete", request: req, response }];
|
|
45290
|
-
}
|
|
45291
|
-
var init_subscribersAuthenticationChatAccessOauthCallBack = __esm(() => {
|
|
45292
|
-
init_encodings();
|
|
45293
|
-
init_matchers();
|
|
45294
|
-
init_primitives();
|
|
45295
|
-
init_schemas();
|
|
45296
|
-
init_security();
|
|
45297
|
-
init_url();
|
|
45298
|
-
init_errors();
|
|
45299
|
-
init_operations();
|
|
45300
|
-
init_async();
|
|
45301
|
-
});
|
|
45302
|
-
|
|
45303
|
-
// src/mcp-server/tools/subscribersAuthenticationChatAccessOauthCallBack.ts
|
|
45304
|
-
var args17, tool$subscribersAuthenticationChatAccessOauthCallBack;
|
|
45305
|
-
var init_subscribersAuthenticationChatAccessOauthCallBack2 = __esm(() => {
|
|
45306
|
-
init_subscribersAuthenticationChatAccessOauthCallBack();
|
|
45307
|
-
init_operations();
|
|
45308
|
-
init_tools();
|
|
45309
|
-
args17 = {
|
|
45310
|
-
request: SubscribersV1ControllerChatOauthCallbackRequest$inboundSchema
|
|
45311
|
-
};
|
|
45312
|
-
tool$subscribersAuthenticationChatAccessOauthCallBack = {
|
|
45313
|
-
name: "subscribers-authentication-chat-access-oauth-call-back",
|
|
45314
|
-
description: `Handle providers oauth redirect`,
|
|
45315
|
-
args: args17,
|
|
45316
|
-
tool: async (client, args18, ctx) => {
|
|
45317
|
-
const [result, apiCall] = await subscribersAuthenticationChatAccessOauthCallBack(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45318
|
-
if (!result.ok) {
|
|
45319
|
-
return {
|
|
45320
|
-
content: [{ type: "text", text: result.error.message }],
|
|
45321
|
-
isError: true
|
|
45322
|
-
};
|
|
45323
|
-
}
|
|
45324
|
-
const value = result.value.result;
|
|
45325
|
-
return formatResult(value, apiCall);
|
|
45326
|
-
}
|
|
45327
|
-
};
|
|
45328
|
-
});
|
|
45329
|
-
|
|
45330
|
-
// src/funcs/subscribersCreate.ts
|
|
45331
|
-
function subscribersCreate(client, createSubscriberRequestDto, idempotencyKey, options) {
|
|
45332
|
-
return new APIPromise($do18(client, createSubscriberRequestDto, idempotencyKey, options));
|
|
45333
|
-
}
|
|
45334
|
-
async function $do18(client, createSubscriberRequestDto, idempotencyKey, options) {
|
|
45335
|
-
const input = {
|
|
45336
|
-
createSubscriberRequestDto,
|
|
45337
|
-
idempotencyKey
|
|
45338
|
-
};
|
|
45339
|
-
const parsed = safeParse(input, (value) => SubscribersControllerCreateSubscriberRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45340
|
-
if (!parsed.ok) {
|
|
45341
|
-
return [parsed, { status: "invalid" }];
|
|
45342
|
-
}
|
|
45343
|
-
const payload = parsed.value;
|
|
45344
|
-
const body = encodeJSON("body", payload.CreateSubscriberRequestDto, {
|
|
45345
|
-
explode: true
|
|
45346
|
-
});
|
|
45347
|
-
const path = pathToFunc("/v2/subscribers")();
|
|
45348
|
-
const headers = new Headers(compactMap({
|
|
45349
|
-
"Content-Type": "application/json",
|
|
45350
|
-
Accept: "application/json",
|
|
45351
|
-
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
45352
|
-
}));
|
|
45353
|
-
const secConfig = await extractSecurity(client._options.secretKey);
|
|
45354
|
-
const securityInput = secConfig == null ? {} : { secretKey: secConfig };
|
|
45355
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45356
|
-
const context = {
|
|
45357
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45358
|
-
operationID: "SubscribersController_createSubscriber",
|
|
45359
|
-
oAuth2Scopes: [],
|
|
45360
|
-
resolvedSecurity: requestSecurity,
|
|
45361
|
-
securitySource: client._options.secretKey,
|
|
45362
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
45363
|
-
strategy: "backoff",
|
|
45364
|
-
backoff: {
|
|
45365
|
-
initialInterval: 1000,
|
|
45366
|
-
maxInterval: 30000,
|
|
45367
|
-
exponent: 1.5,
|
|
45368
|
-
maxElapsedTime: 3600000
|
|
45369
|
-
},
|
|
45370
|
-
retryConnectionErrors: true
|
|
45371
|
-
},
|
|
45372
|
-
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"]
|
|
45373
|
-
};
|
|
45374
|
-
const requestRes = client._createRequest(context, {
|
|
45375
|
-
security: requestSecurity,
|
|
45376
|
-
method: "POST",
|
|
45377
|
-
baseURL: options?.serverURL,
|
|
45378
|
-
path,
|
|
45379
|
-
headers,
|
|
45380
|
-
body,
|
|
45381
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45382
|
-
}, options);
|
|
45383
|
-
if (!requestRes.ok) {
|
|
45384
|
-
return [requestRes, { status: "invalid" }];
|
|
45385
|
-
}
|
|
45386
|
-
const req = requestRes.value;
|
|
45387
|
-
const doResult = await client._do(req, {
|
|
45388
|
-
context,
|
|
45389
|
-
errorCodes: [
|
|
45390
|
-
"400",
|
|
45391
|
-
"401",
|
|
45392
|
-
"403",
|
|
45393
|
-
"404",
|
|
45394
|
-
"405",
|
|
45395
|
-
"409",
|
|
45396
|
-
"413",
|
|
45397
|
-
"414",
|
|
45398
|
-
"415",
|
|
45399
|
-
"422",
|
|
45400
|
-
"429",
|
|
45401
|
-
"4XX",
|
|
45402
|
-
"500",
|
|
45403
|
-
"503",
|
|
45404
|
-
"5XX"
|
|
45405
|
-
],
|
|
45406
|
-
retryConfig: context.retryConfig,
|
|
45407
|
-
retryCodes: context.retryCodes
|
|
45408
|
-
});
|
|
45409
|
-
if (!doResult.ok) {
|
|
45410
|
-
return [doResult, { status: "request-error", request: req }];
|
|
45411
|
-
}
|
|
45412
|
-
const response = doResult.value;
|
|
45413
|
-
const responseFields = {
|
|
45414
|
-
HttpMeta: { Response: response, Request: req }
|
|
45415
|
-
};
|
|
45416
|
-
const [result] = await match(json(201, SubscribersControllerCreateSubscriberResponse$inboundSchema, { hdrs: true, key: "Result" }), jsonErr(414, ErrorDto$inboundSchema), jsonErr([400, 401, 403, 404, 405, 409, 413, 415], ErrorDto$inboundSchema, { hdrs: true }), jsonErr(422, ValidationErrorDto$inboundSchema, { hdrs: true }), fail(429), jsonErr(500, ErrorDto$inboundSchema, { hdrs: true }), fail(503), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45417
|
-
if (!result.ok) {
|
|
45418
|
-
return [result, { status: "complete", request: req, response }];
|
|
45419
|
-
}
|
|
45420
|
-
return [result, { status: "complete", request: req, response }];
|
|
45421
|
-
}
|
|
45422
|
-
var init_subscribersCreate = __esm(() => {
|
|
45423
|
-
init_encodings();
|
|
45424
|
-
init_matchers();
|
|
45425
|
-
init_primitives();
|
|
45426
|
-
init_schemas();
|
|
45427
|
-
init_security();
|
|
45428
|
-
init_url();
|
|
45429
|
-
init_errors();
|
|
45430
|
-
init_operations();
|
|
45431
|
-
init_async();
|
|
45432
|
-
});
|
|
45433
|
-
|
|
45434
|
-
// src/mcp-server/tools/subscribersCreate.ts
|
|
45435
|
-
var args18, tool$subscribersCreate;
|
|
45436
|
-
var init_subscribersCreate2 = __esm(() => {
|
|
45437
|
-
init_lib();
|
|
45438
|
-
init_subscribersCreate();
|
|
45439
|
-
init_components();
|
|
45440
|
-
init_tools();
|
|
45441
|
-
args18 = {
|
|
45442
|
-
createSubscriberRequestDto: CreateSubscriberRequestDto$inboundSchema,
|
|
45443
|
-
idempotencyKey: stringType().optional()
|
|
45444
|
-
};
|
|
45445
|
-
tool$subscribersCreate = {
|
|
45446
|
-
name: "subscribers-create",
|
|
45447
|
-
description: `Create subscriber
|
|
45448
|
-
|
|
45449
|
-
Create subscriber with the given data, if the subscriber already exists, it will be updated`,
|
|
45450
|
-
args: args18,
|
|
45451
|
-
tool: async (client, args19, ctx) => {
|
|
45452
|
-
const [result, apiCall] = await subscribersCreate(client, args19.createSubscriberRequestDto, args19.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45453
|
-
if (!result.ok) {
|
|
45454
|
-
return {
|
|
45455
|
-
content: [{ type: "text", text: result.error.message }],
|
|
45456
|
-
isError: true
|
|
45457
|
-
};
|
|
45458
|
-
}
|
|
45459
|
-
const value = result.value.result;
|
|
45460
|
-
return formatResult(value, apiCall);
|
|
45461
|
-
}
|
|
45462
|
-
};
|
|
45463
|
-
});
|
|
45464
|
-
|
|
45465
|
-
// src/funcs/subscribersCreateBulk.ts
|
|
45466
|
-
function subscribersCreateBulk(client, bulkSubscriberCreateDto, idempotencyKey, options) {
|
|
45467
|
-
return new APIPromise($do19(client, bulkSubscriberCreateDto, idempotencyKey, options));
|
|
45468
|
-
}
|
|
45469
|
-
async function $do19(client, bulkSubscriberCreateDto, idempotencyKey, options) {
|
|
45470
|
-
const input = {
|
|
45471
|
-
bulkSubscriberCreateDto,
|
|
45472
|
-
idempotencyKey
|
|
45473
|
-
};
|
|
45474
|
-
const parsed = safeParse(input, (value) => SubscribersV1ControllerBulkCreateSubscribersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45475
|
-
if (!parsed.ok) {
|
|
45476
|
-
return [parsed, { status: "invalid" }];
|
|
45477
|
-
}
|
|
45478
|
-
const payload = parsed.value;
|
|
45479
|
-
const body = encodeJSON("body", payload.BulkSubscriberCreateDto, {
|
|
45480
|
-
explode: true
|
|
45481
|
-
});
|
|
45482
|
-
const path = pathToFunc("/v1/subscribers/bulk")();
|
|
45483
|
-
const headers = new Headers(compactMap({
|
|
45484
|
-
"Content-Type": "application/json",
|
|
45485
|
-
Accept: "application/json",
|
|
45486
|
-
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
45487
|
-
}));
|
|
45488
|
-
const secConfig = await extractSecurity(client._options.secretKey);
|
|
45489
|
-
const securityInput = secConfig == null ? {} : { secretKey: secConfig };
|
|
45490
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45491
|
-
const context = {
|
|
45492
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45493
|
-
operationID: "SubscribersV1Controller_bulkCreateSubscribers",
|
|
45494
|
-
oAuth2Scopes: [],
|
|
45495
|
-
resolvedSecurity: requestSecurity,
|
|
45496
|
-
securitySource: client._options.secretKey,
|
|
45497
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
45498
|
-
strategy: "backoff",
|
|
45499
|
-
backoff: {
|
|
45500
|
-
initialInterval: 1000,
|
|
45501
|
-
maxInterval: 30000,
|
|
45502
|
-
exponent: 1.5,
|
|
45503
|
-
maxElapsedTime: 3600000
|
|
45504
|
-
},
|
|
45505
|
-
retryConnectionErrors: true
|
|
45506
|
-
},
|
|
45507
|
-
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"]
|
|
45508
|
-
};
|
|
45509
|
-
const requestRes = client._createRequest(context, {
|
|
45510
|
-
security: requestSecurity,
|
|
45511
|
-
method: "POST",
|
|
45512
|
-
baseURL: options?.serverURL,
|
|
45513
|
-
path,
|
|
45514
|
-
headers,
|
|
45515
|
-
body,
|
|
45516
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45517
|
-
}, options);
|
|
45518
|
-
if (!requestRes.ok) {
|
|
45519
|
-
return [requestRes, { status: "invalid" }];
|
|
45520
|
-
}
|
|
45521
|
-
const req = requestRes.value;
|
|
45522
|
-
const doResult = await client._do(req, {
|
|
45523
|
-
context,
|
|
45524
|
-
errorCodes: [
|
|
45525
|
-
"400",
|
|
45526
|
-
"401",
|
|
45527
|
-
"403",
|
|
45528
|
-
"404",
|
|
45529
|
-
"405",
|
|
45530
|
-
"409",
|
|
45531
|
-
"413",
|
|
45532
|
-
"414",
|
|
45533
|
-
"415",
|
|
45534
|
-
"422",
|
|
45535
|
-
"429",
|
|
45536
|
-
"4XX",
|
|
45537
|
-
"500",
|
|
45538
|
-
"503",
|
|
45539
|
-
"5XX"
|
|
45540
|
-
],
|
|
45541
|
-
retryConfig: context.retryConfig,
|
|
45542
|
-
retryCodes: context.retryCodes
|
|
45543
|
-
});
|
|
45544
|
-
if (!doResult.ok) {
|
|
45545
|
-
return [doResult, { status: "request-error", request: req }];
|
|
45546
|
-
}
|
|
45547
|
-
const response = doResult.value;
|
|
45548
|
-
const responseFields = {
|
|
45549
|
-
HttpMeta: { Response: response, Request: req }
|
|
45550
|
-
};
|
|
45551
|
-
const [result] = await match(json(201, SubscribersV1ControllerBulkCreateSubscribersResponse$inboundSchema, { hdrs: true, key: "Result" }), jsonErr(414, ErrorDto$inboundSchema), jsonErr([400, 401, 403, 404, 405, 409, 413, 415], ErrorDto$inboundSchema, { hdrs: true }), jsonErr(422, ValidationErrorDto$inboundSchema, { hdrs: true }), fail(429), jsonErr(500, ErrorDto$inboundSchema, { hdrs: true }), fail(503), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45552
|
-
if (!result.ok) {
|
|
45553
|
-
return [result, { status: "complete", request: req, response }];
|
|
45554
|
-
}
|
|
45555
|
-
return [result, { status: "complete", request: req, response }];
|
|
45556
|
-
}
|
|
45557
|
-
var init_subscribersCreateBulk = __esm(() => {
|
|
45558
|
-
init_encodings();
|
|
45559
|
-
init_matchers();
|
|
45560
|
-
init_primitives();
|
|
45561
|
-
init_schemas();
|
|
45562
|
-
init_security();
|
|
45563
|
-
init_url();
|
|
45564
|
-
init_errors();
|
|
45565
|
-
init_operations();
|
|
45566
|
-
init_async();
|
|
45567
|
-
});
|
|
45568
|
-
|
|
45569
|
-
// src/mcp-server/tools/subscribersCreateBulk.ts
|
|
45570
|
-
var args19, tool$subscribersCreateBulk;
|
|
45571
|
-
var init_subscribersCreateBulk2 = __esm(() => {
|
|
45572
|
-
init_lib();
|
|
45573
|
-
init_subscribersCreateBulk();
|
|
45574
|
-
init_components();
|
|
45575
|
-
init_tools();
|
|
45576
|
-
args19 = {
|
|
45577
|
-
bulkSubscriberCreateDto: BulkSubscriberCreateDto$inboundSchema,
|
|
45578
|
-
idempotencyKey: stringType().optional()
|
|
45579
|
-
};
|
|
45580
|
-
tool$subscribersCreateBulk = {
|
|
45581
|
-
name: "subscribers-create-bulk",
|
|
45582
|
-
description: `Bulk create subscribers
|
|
45583
|
-
|
|
45584
|
-
|
|
45585
|
-
Using this endpoint you can create multiple subscribers at once, to avoid multiple calls to the API.
|
|
45586
|
-
The bulk API is limited to 500 subscribers per request.
|
|
45587
|
-
`,
|
|
45588
|
-
args: args19,
|
|
45589
|
-
tool: async (client, args20, ctx) => {
|
|
45590
|
-
const [result, apiCall] = await subscribersCreateBulk(client, args20.bulkSubscriberCreateDto, args20.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45591
|
-
if (!result.ok) {
|
|
45592
|
-
return {
|
|
45593
|
-
content: [{ type: "text", text: result.error.message }],
|
|
45594
|
-
isError: true
|
|
45595
|
-
};
|
|
45596
|
-
}
|
|
45597
|
-
const value = result.value.result;
|
|
45598
|
-
return formatResult(value, apiCall);
|
|
45599
|
-
}
|
|
45600
|
-
};
|
|
45601
|
-
});
|
|
45602
|
-
|
|
45603
|
-
// src/funcs/subscribersCredentialsAppend.ts
|
|
45604
|
-
function subscribersCredentialsAppend(client, updateSubscriberChannelRequestDto, subscriberId, idempotencyKey, options) {
|
|
45605
|
-
return new APIPromise($do20(client, updateSubscriberChannelRequestDto, subscriberId, idempotencyKey, options));
|
|
45606
|
-
}
|
|
45607
|
-
async function $do20(client, updateSubscriberChannelRequestDto, subscriberId, idempotencyKey, options) {
|
|
45608
|
-
const input = {
|
|
45609
|
-
updateSubscriberChannelRequestDto,
|
|
45610
|
-
subscriberId,
|
|
45611
|
-
idempotencyKey
|
|
45612
|
-
};
|
|
45613
|
-
const parsed = safeParse(input, (value) => SubscribersV1ControllerModifySubscriberChannelRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44464
|
+
async function $do15(client, updateSubscriberChannelRequestDto, subscriberId, idempotencyKey, options) {
|
|
44465
|
+
const input = {
|
|
44466
|
+
updateSubscriberChannelRequestDto,
|
|
44467
|
+
subscriberId,
|
|
44468
|
+
idempotencyKey
|
|
44469
|
+
};
|
|
44470
|
+
const parsed = safeParse(input, (value) => SubscribersV1ControllerModifySubscriberChannelRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45614
44471
|
if (!parsed.ok) {
|
|
45615
44472
|
return [parsed, { status: "invalid" }];
|
|
45616
44473
|
}
|
|
@@ -45712,26 +44569,26 @@ var init_subscribersCredentialsAppend = __esm(() => {
|
|
|
45712
44569
|
});
|
|
45713
44570
|
|
|
45714
44571
|
// src/mcp-server/tools/subscribersCredentialsAppend.ts
|
|
45715
|
-
var
|
|
44572
|
+
var args15, tool$subscribersCredentialsAppend;
|
|
45716
44573
|
var init_subscribersCredentialsAppend2 = __esm(() => {
|
|
45717
44574
|
init_lib();
|
|
45718
44575
|
init_subscribersCredentialsAppend();
|
|
45719
44576
|
init_components();
|
|
45720
44577
|
init_tools();
|
|
45721
|
-
|
|
44578
|
+
args15 = {
|
|
45722
44579
|
updateSubscriberChannelRequestDto: UpdateSubscriberChannelRequestDto$inboundSchema,
|
|
45723
44580
|
subscriberId: stringType(),
|
|
45724
44581
|
idempotencyKey: stringType().optional()
|
|
45725
44582
|
};
|
|
45726
44583
|
tool$subscribersCredentialsAppend = {
|
|
45727
44584
|
name: "subscribers-credentials-append",
|
|
45728
|
-
description: `
|
|
44585
|
+
description: `Upsert provider credentials
|
|
45729
44586
|
|
|
45730
|
-
|
|
45731
|
-
|
|
45732
|
-
args:
|
|
45733
|
-
tool: async (client,
|
|
45734
|
-
const [result, apiCall] = await subscribersCredentialsAppend(client,
|
|
44587
|
+
Update credentials for a provider such as **slack** and **FCM**.
|
|
44588
|
+
**providerId** is required field. This API replaces the existing deviceTokens with the provided ones.`,
|
|
44589
|
+
args: args15,
|
|
44590
|
+
tool: async (client, args16, ctx) => {
|
|
44591
|
+
const [result, apiCall] = await subscribersCredentialsAppend(client, args16.updateSubscriberChannelRequestDto, args16.subscriberId, args16.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45735
44592
|
if (!result.ok) {
|
|
45736
44593
|
return {
|
|
45737
44594
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45746,9 +44603,9 @@ Subscriber credentials associated to the delivery methods such as slack and push
|
|
|
45746
44603
|
|
|
45747
44604
|
// src/funcs/subscribersCredentialsDelete.ts
|
|
45748
44605
|
function subscribersCredentialsDelete(client, subscriberId, providerId, idempotencyKey, options) {
|
|
45749
|
-
return new APIPromise($
|
|
44606
|
+
return new APIPromise($do16(client, subscriberId, providerId, idempotencyKey, options));
|
|
45750
44607
|
}
|
|
45751
|
-
async function $
|
|
44608
|
+
async function $do16(client, subscriberId, providerId, idempotencyKey, options) {
|
|
45752
44609
|
const input = {
|
|
45753
44610
|
subscriberId,
|
|
45754
44611
|
providerId,
|
|
@@ -45857,24 +44714,25 @@ var init_subscribersCredentialsDelete = __esm(() => {
|
|
|
45857
44714
|
});
|
|
45858
44715
|
|
|
45859
44716
|
// src/mcp-server/tools/subscribersCredentialsDelete.ts
|
|
45860
|
-
var
|
|
44717
|
+
var args16, tool$subscribersCredentialsDelete;
|
|
45861
44718
|
var init_subscribersCredentialsDelete2 = __esm(() => {
|
|
45862
44719
|
init_lib();
|
|
45863
44720
|
init_subscribersCredentialsDelete();
|
|
45864
44721
|
init_tools();
|
|
45865
|
-
|
|
44722
|
+
args16 = {
|
|
45866
44723
|
subscriberId: stringType(),
|
|
45867
44724
|
providerId: stringType(),
|
|
45868
44725
|
idempotencyKey: stringType().optional()
|
|
45869
44726
|
};
|
|
45870
44727
|
tool$subscribersCredentialsDelete = {
|
|
45871
44728
|
name: "subscribers-credentials-delete",
|
|
45872
|
-
description: `Delete
|
|
44729
|
+
description: `Delete provider credentials
|
|
45873
44730
|
|
|
45874
|
-
Delete subscriber credentials such as slack and
|
|
45875
|
-
|
|
45876
|
-
|
|
45877
|
-
|
|
44731
|
+
Delete subscriber credentials for a provider such as **slack** and **FCM** by **providerId**.
|
|
44732
|
+
This action is irreversible and will remove the credentials for the provider for particular **subscriberId**.`,
|
|
44733
|
+
args: args16,
|
|
44734
|
+
tool: async (client, args17, ctx) => {
|
|
44735
|
+
const [result, apiCall] = await subscribersCredentialsDelete(client, args17.subscriberId, args17.providerId, args17.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45878
44736
|
if (!result.ok) {
|
|
45879
44737
|
return {
|
|
45880
44738
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45888,9 +44746,9 @@ Delete subscriber credentials such as slack and expo tokens.`,
|
|
|
45888
44746
|
|
|
45889
44747
|
// src/funcs/subscribersCredentialsUpdate.ts
|
|
45890
44748
|
function subscribersCredentialsUpdate(client, updateSubscriberChannelRequestDto, subscriberId, idempotencyKey, options) {
|
|
45891
|
-
return new APIPromise($
|
|
44749
|
+
return new APIPromise($do17(client, updateSubscriberChannelRequestDto, subscriberId, idempotencyKey, options));
|
|
45892
44750
|
}
|
|
45893
|
-
async function $
|
|
44751
|
+
async function $do17(client, updateSubscriberChannelRequestDto, subscriberId, idempotencyKey, options) {
|
|
45894
44752
|
const input = {
|
|
45895
44753
|
updateSubscriberChannelRequestDto,
|
|
45896
44754
|
subscriberId,
|
|
@@ -45998,25 +44856,26 @@ var init_subscribersCredentialsUpdate = __esm(() => {
|
|
|
45998
44856
|
});
|
|
45999
44857
|
|
|
46000
44858
|
// src/mcp-server/tools/subscribersCredentialsUpdate.ts
|
|
46001
|
-
var
|
|
44859
|
+
var args17, tool$subscribersCredentialsUpdate;
|
|
46002
44860
|
var init_subscribersCredentialsUpdate2 = __esm(() => {
|
|
46003
44861
|
init_lib();
|
|
46004
44862
|
init_subscribersCredentialsUpdate();
|
|
46005
44863
|
init_components();
|
|
46006
44864
|
init_tools();
|
|
46007
|
-
|
|
44865
|
+
args17 = {
|
|
46008
44866
|
updateSubscriberChannelRequestDto: UpdateSubscriberChannelRequestDto$inboundSchema,
|
|
46009
44867
|
subscriberId: stringType(),
|
|
46010
44868
|
idempotencyKey: stringType().optional()
|
|
46011
44869
|
};
|
|
46012
44870
|
tool$subscribersCredentialsUpdate = {
|
|
46013
44871
|
name: "subscribers-credentials-update",
|
|
46014
|
-
description: `Update
|
|
44872
|
+
description: `Update provider credentials
|
|
46015
44873
|
|
|
46016
|
-
|
|
46017
|
-
|
|
46018
|
-
|
|
46019
|
-
|
|
44874
|
+
Update credentials for a provider such as slack and push tokens.
|
|
44875
|
+
**providerId** is required field. This API appends the **deviceTokens** to the existing ones.`,
|
|
44876
|
+
args: args17,
|
|
44877
|
+
tool: async (client, args18, ctx) => {
|
|
44878
|
+
const [result, apiCall] = await subscribersCredentialsUpdate(client, args18.updateSubscriberChannelRequestDto, args18.subscriberId, args18.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46020
44879
|
if (!result.ok) {
|
|
46021
44880
|
return {
|
|
46022
44881
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46031,9 +44890,9 @@ Subscriber credentials associated to the delivery methods such as slack and push
|
|
|
46031
44890
|
|
|
46032
44891
|
// src/funcs/subscribersDelete.ts
|
|
46033
44892
|
function subscribersDelete(client, subscriberId, idempotencyKey, options) {
|
|
46034
|
-
return new APIPromise($
|
|
44893
|
+
return new APIPromise($do18(client, subscriberId, idempotencyKey, options));
|
|
46035
44894
|
}
|
|
46036
|
-
async function $
|
|
44895
|
+
async function $do18(client, subscriberId, idempotencyKey, options) {
|
|
46037
44896
|
const input = {
|
|
46038
44897
|
subscriberId,
|
|
46039
44898
|
idempotencyKey
|
|
@@ -46137,12 +44996,12 @@ var init_subscribersDelete = __esm(() => {
|
|
|
46137
44996
|
});
|
|
46138
44997
|
|
|
46139
44998
|
// src/mcp-server/tools/subscribersDelete.ts
|
|
46140
|
-
var
|
|
44999
|
+
var args18, tool$subscribersDelete;
|
|
46141
45000
|
var init_subscribersDelete2 = __esm(() => {
|
|
46142
45001
|
init_lib();
|
|
46143
45002
|
init_subscribersDelete();
|
|
46144
45003
|
init_tools();
|
|
46145
|
-
|
|
45004
|
+
args18 = {
|
|
46146
45005
|
subscriberId: stringType(),
|
|
46147
45006
|
idempotencyKey: stringType().optional()
|
|
46148
45007
|
};
|
|
@@ -46150,217 +45009,10 @@ var init_subscribersDelete2 = __esm(() => {
|
|
|
46150
45009
|
name: "subscribers-delete",
|
|
46151
45010
|
description: `Delete subscriber
|
|
46152
45011
|
|
|
46153
|
-
Deletes a subscriber entity from the Novu platform`,
|
|
46154
|
-
args:
|
|
46155
|
-
tool: async (client,
|
|
46156
|
-
const [result, apiCall] = await subscribersDelete(client,
|
|
46157
|
-
if (!result.ok) {
|
|
46158
|
-
return {
|
|
46159
|
-
content: [{ type: "text", text: result.error.message }],
|
|
46160
|
-
isError: true
|
|
46161
|
-
};
|
|
46162
|
-
}
|
|
46163
|
-
const value = result.value.result;
|
|
46164
|
-
return formatResult(value, apiCall);
|
|
46165
|
-
}
|
|
46166
|
-
};
|
|
46167
|
-
});
|
|
46168
|
-
|
|
46169
|
-
// src/lib/dlv.ts
|
|
46170
|
-
function dlv(obj, key, def, p, undef) {
|
|
46171
|
-
key = Array.isArray(key) ? key : key.split(".");
|
|
46172
|
-
for (p = 0;p < key.length; p++) {
|
|
46173
|
-
const k2 = key[p];
|
|
46174
|
-
obj = k2 != null && obj ? obj[k2] : undef;
|
|
46175
|
-
}
|
|
46176
|
-
return obj === undef ? def : obj;
|
|
46177
|
-
}
|
|
46178
|
-
|
|
46179
|
-
// src/types/operations.ts
|
|
46180
|
-
function createPageIterator(page, halt) {
|
|
46181
|
-
return {
|
|
46182
|
-
[Symbol.asyncIterator]: async function* paginator() {
|
|
46183
|
-
yield page;
|
|
46184
|
-
if (halt(page)) {
|
|
46185
|
-
return;
|
|
46186
|
-
}
|
|
46187
|
-
let p = page;
|
|
46188
|
-
for (p = await p.next();p != null; p = await p.next()) {
|
|
46189
|
-
yield p;
|
|
46190
|
-
if (halt(p)) {
|
|
46191
|
-
return;
|
|
46192
|
-
}
|
|
46193
|
-
}
|
|
46194
|
-
}
|
|
46195
|
-
};
|
|
46196
|
-
}
|
|
46197
|
-
function haltIterator(v2) {
|
|
46198
|
-
return {
|
|
46199
|
-
...v2,
|
|
46200
|
-
next: () => null,
|
|
46201
|
-
[Symbol.asyncIterator]: async function* paginator() {
|
|
46202
|
-
yield v2;
|
|
46203
|
-
}
|
|
46204
|
-
};
|
|
46205
|
-
}
|
|
46206
|
-
var URL_OVERRIDE;
|
|
46207
|
-
var init_operations2 = __esm(() => {
|
|
46208
|
-
URL_OVERRIDE = Symbol("URL_OVERRIDE");
|
|
46209
|
-
});
|
|
46210
|
-
|
|
46211
|
-
// src/funcs/subscribersList.ts
|
|
46212
|
-
function subscribersList(client, page, limit, idempotencyKey, options) {
|
|
46213
|
-
return new APIPromise($do24(client, page, limit, idempotencyKey, options));
|
|
46214
|
-
}
|
|
46215
|
-
async function $do24(client, page, limit, idempotencyKey, options) {
|
|
46216
|
-
const input = {
|
|
46217
|
-
page,
|
|
46218
|
-
limit,
|
|
46219
|
-
idempotencyKey
|
|
46220
|
-
};
|
|
46221
|
-
const parsed = safeParse(input, (value) => SubscribersV1ControllerListSubscribersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46222
|
-
if (!parsed.ok) {
|
|
46223
|
-
return [haltIterator(parsed), { status: "invalid" }];
|
|
46224
|
-
}
|
|
46225
|
-
const payload = parsed.value;
|
|
46226
|
-
const body = null;
|
|
46227
|
-
const path = pathToFunc("/v1/subscribers")();
|
|
46228
|
-
const query = encodeFormQuery({
|
|
46229
|
-
limit: payload.limit,
|
|
46230
|
-
page: payload.page
|
|
46231
|
-
});
|
|
46232
|
-
const headers = new Headers(compactMap({
|
|
46233
|
-
Accept: "application/json",
|
|
46234
|
-
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
46235
|
-
}));
|
|
46236
|
-
const secConfig = await extractSecurity(client._options.secretKey);
|
|
46237
|
-
const securityInput = secConfig == null ? {} : { secretKey: secConfig };
|
|
46238
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
46239
|
-
const context = {
|
|
46240
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
46241
|
-
operationID: "SubscribersV1Controller_listSubscribers",
|
|
46242
|
-
oAuth2Scopes: [],
|
|
46243
|
-
resolvedSecurity: requestSecurity,
|
|
46244
|
-
securitySource: client._options.secretKey,
|
|
46245
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
46246
|
-
strategy: "backoff",
|
|
46247
|
-
backoff: {
|
|
46248
|
-
initialInterval: 1000,
|
|
46249
|
-
maxInterval: 30000,
|
|
46250
|
-
exponent: 1.5,
|
|
46251
|
-
maxElapsedTime: 3600000
|
|
46252
|
-
},
|
|
46253
|
-
retryConnectionErrors: true
|
|
46254
|
-
},
|
|
46255
|
-
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"]
|
|
46256
|
-
};
|
|
46257
|
-
const requestRes = client._createRequest(context, {
|
|
46258
|
-
security: requestSecurity,
|
|
46259
|
-
method: "GET",
|
|
46260
|
-
baseURL: options?.serverURL,
|
|
46261
|
-
path,
|
|
46262
|
-
headers,
|
|
46263
|
-
query,
|
|
46264
|
-
body,
|
|
46265
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
46266
|
-
}, options);
|
|
46267
|
-
if (!requestRes.ok) {
|
|
46268
|
-
return [haltIterator(requestRes), { status: "invalid" }];
|
|
46269
|
-
}
|
|
46270
|
-
const req = requestRes.value;
|
|
46271
|
-
const doResult = await client._do(req, {
|
|
46272
|
-
context,
|
|
46273
|
-
errorCodes: [
|
|
46274
|
-
"400",
|
|
46275
|
-
"401",
|
|
46276
|
-
"403",
|
|
46277
|
-
"404",
|
|
46278
|
-
"405",
|
|
46279
|
-
"409",
|
|
46280
|
-
"413",
|
|
46281
|
-
"414",
|
|
46282
|
-
"415",
|
|
46283
|
-
"422",
|
|
46284
|
-
"429",
|
|
46285
|
-
"4XX",
|
|
46286
|
-
"500",
|
|
46287
|
-
"503",
|
|
46288
|
-
"5XX"
|
|
46289
|
-
],
|
|
46290
|
-
retryConfig: context.retryConfig,
|
|
46291
|
-
retryCodes: context.retryCodes
|
|
46292
|
-
});
|
|
46293
|
-
if (!doResult.ok) {
|
|
46294
|
-
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
46295
|
-
}
|
|
46296
|
-
const response = doResult.value;
|
|
46297
|
-
const responseFields = {
|
|
46298
|
-
HttpMeta: { Response: response, Request: req }
|
|
46299
|
-
};
|
|
46300
|
-
const [result, raw] = await match(json(200, SubscribersV1ControllerListSubscribersResponse$inboundSchema, { hdrs: true, key: "Result" }), jsonErr(414, ErrorDto$inboundSchema), jsonErr([400, 401, 403, 404, 405, 409, 413, 415], ErrorDto$inboundSchema, { hdrs: true }), jsonErr(422, ValidationErrorDto$inboundSchema, { hdrs: true }), fail(429), jsonErr(500, ErrorDto$inboundSchema, { hdrs: true }), fail(503), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46301
|
-
if (!result.ok) {
|
|
46302
|
-
return [haltIterator(result), {
|
|
46303
|
-
status: "complete",
|
|
46304
|
-
request: req,
|
|
46305
|
-
response
|
|
46306
|
-
}];
|
|
46307
|
-
}
|
|
46308
|
-
const nextFunc = (responseData) => {
|
|
46309
|
-
const page2 = input?.page ?? 1;
|
|
46310
|
-
const nextPage = page2 + 1;
|
|
46311
|
-
if (!responseData) {
|
|
46312
|
-
return { next: () => null };
|
|
46313
|
-
}
|
|
46314
|
-
const results = dlv(responseData, "data.resultArray");
|
|
46315
|
-
if (!Array.isArray(results) || !results.length) {
|
|
46316
|
-
return { next: () => null };
|
|
46317
|
-
}
|
|
46318
|
-
const limit2 = input?.limit ?? 10;
|
|
46319
|
-
if (results.length < limit2) {
|
|
46320
|
-
return { next: () => null };
|
|
46321
|
-
}
|
|
46322
|
-
const nextVal = () => subscribersList(client, nextPage, limit2, idempotencyKey, options);
|
|
46323
|
-
return { next: nextVal, "~next": { page: nextPage } };
|
|
46324
|
-
};
|
|
46325
|
-
const page$ = { ...result, ...nextFunc(raw) };
|
|
46326
|
-
return [{ ...page$, ...createPageIterator(page$, (v2) => !v2.ok) }, {
|
|
46327
|
-
status: "complete",
|
|
46328
|
-
request: req,
|
|
46329
|
-
response
|
|
46330
|
-
}];
|
|
46331
|
-
}
|
|
46332
|
-
var init_subscribersList = __esm(() => {
|
|
46333
|
-
init_encodings();
|
|
46334
|
-
init_matchers();
|
|
46335
|
-
init_primitives();
|
|
46336
|
-
init_schemas();
|
|
46337
|
-
init_security();
|
|
46338
|
-
init_url();
|
|
46339
|
-
init_errors();
|
|
46340
|
-
init_operations();
|
|
46341
|
-
init_async();
|
|
46342
|
-
init_operations2();
|
|
46343
|
-
});
|
|
46344
|
-
|
|
46345
|
-
// src/mcp-server/tools/subscribersList.ts
|
|
46346
|
-
var args24, tool$subscribersList;
|
|
46347
|
-
var init_subscribersList2 = __esm(() => {
|
|
46348
|
-
init_lib();
|
|
46349
|
-
init_subscribersList();
|
|
46350
|
-
init_tools();
|
|
46351
|
-
args24 = {
|
|
46352
|
-
page: numberType().optional(),
|
|
46353
|
-
limit: numberType().default(10),
|
|
46354
|
-
idempotencyKey: stringType().optional()
|
|
46355
|
-
};
|
|
46356
|
-
tool$subscribersList = {
|
|
46357
|
-
name: "subscribers-list",
|
|
46358
|
-
description: `Get subscribers
|
|
46359
|
-
|
|
46360
|
-
Returns a list of subscribers, could paginated using the \`page\` and \`limit\` query parameter`,
|
|
46361
|
-
args: args24,
|
|
46362
|
-
tool: async (client, args25, ctx) => {
|
|
46363
|
-
const [result, apiCall] = await subscribersList(client, args25.page, args25.limit, args25.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45012
|
+
Deletes a subscriber entity from the Novu platform along with associated messages, preferences, and topic subscriptions`,
|
|
45013
|
+
args: args18,
|
|
45014
|
+
tool: async (client, args19, ctx) => {
|
|
45015
|
+
const [result, apiCall] = await subscribersDelete(client, args19.subscriberId, args19.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46364
45016
|
if (!result.ok) {
|
|
46365
45017
|
return {
|
|
46366
45018
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46375,9 +45027,9 @@ Returns a list of subscribers, could paginated using the \`page\` and \`limit\`
|
|
|
46375
45027
|
|
|
46376
45028
|
// src/funcs/subscribersMessagesMarkAll.ts
|
|
46377
45029
|
function subscribersMessagesMarkAll(client, markAllMessageAsRequestDto, subscriberId, idempotencyKey, options) {
|
|
46378
|
-
return new APIPromise($
|
|
45030
|
+
return new APIPromise($do19(client, markAllMessageAsRequestDto, subscriberId, idempotencyKey, options));
|
|
46379
45031
|
}
|
|
46380
|
-
async function $
|
|
45032
|
+
async function $do19(client, markAllMessageAsRequestDto, subscriberId, idempotencyKey, options) {
|
|
46381
45033
|
const input = {
|
|
46382
45034
|
markAllMessageAsRequestDto,
|
|
46383
45035
|
subscriberId,
|
|
@@ -46485,23 +45137,25 @@ var init_subscribersMessagesMarkAll = __esm(() => {
|
|
|
46485
45137
|
});
|
|
46486
45138
|
|
|
46487
45139
|
// src/mcp-server/tools/subscribersMessagesMarkAll.ts
|
|
46488
|
-
var
|
|
45140
|
+
var args19, tool$subscribersMessagesMarkAll;
|
|
46489
45141
|
var init_subscribersMessagesMarkAll2 = __esm(() => {
|
|
46490
45142
|
init_lib();
|
|
46491
45143
|
init_subscribersMessagesMarkAll();
|
|
46492
45144
|
init_components();
|
|
46493
45145
|
init_tools();
|
|
46494
|
-
|
|
45146
|
+
args19 = {
|
|
46495
45147
|
markAllMessageAsRequestDto: MarkAllMessageAsRequestDto$inboundSchema,
|
|
46496
45148
|
subscriberId: stringType(),
|
|
46497
45149
|
idempotencyKey: stringType().optional()
|
|
46498
45150
|
};
|
|
46499
45151
|
tool$subscribersMessagesMarkAll = {
|
|
46500
45152
|
name: "subscribers-messages-mark-all",
|
|
46501
|
-
description: `
|
|
46502
|
-
|
|
46503
|
-
|
|
46504
|
-
|
|
45153
|
+
description: `Update all notifications state
|
|
45154
|
+
|
|
45155
|
+
Update all subscriber in-app (inbox) notifications state such as read, unread, seen or unseen by **subscriberId**.`,
|
|
45156
|
+
args: args19,
|
|
45157
|
+
tool: async (client, args20, ctx) => {
|
|
45158
|
+
const [result, apiCall] = await subscribersMessagesMarkAll(client, args20.markAllMessageAsRequestDto, args20.subscriberId, args20.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46505
45159
|
if (!result.ok) {
|
|
46506
45160
|
return {
|
|
46507
45161
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46516,9 +45170,9 @@ var init_subscribersMessagesMarkAll2 = __esm(() => {
|
|
|
46516
45170
|
|
|
46517
45171
|
// src/funcs/subscribersMessagesMarkAllAs.ts
|
|
46518
45172
|
function subscribersMessagesMarkAllAs(client, messageMarkAsRequestDto, subscriberId, idempotencyKey, options) {
|
|
46519
|
-
return new APIPromise($
|
|
45173
|
+
return new APIPromise($do20(client, messageMarkAsRequestDto, subscriberId, idempotencyKey, options));
|
|
46520
45174
|
}
|
|
46521
|
-
async function $
|
|
45175
|
+
async function $do20(client, messageMarkAsRequestDto, subscriberId, idempotencyKey, options) {
|
|
46522
45176
|
const input = {
|
|
46523
45177
|
messageMarkAsRequestDto,
|
|
46524
45178
|
subscriberId,
|
|
@@ -46626,23 +45280,26 @@ var init_subscribersMessagesMarkAllAs = __esm(() => {
|
|
|
46626
45280
|
});
|
|
46627
45281
|
|
|
46628
45282
|
// src/mcp-server/tools/subscribersMessagesMarkAllAs.ts
|
|
46629
|
-
var
|
|
45283
|
+
var args20, tool$subscribersMessagesMarkAllAs;
|
|
46630
45284
|
var init_subscribersMessagesMarkAllAs2 = __esm(() => {
|
|
46631
45285
|
init_lib();
|
|
46632
45286
|
init_subscribersMessagesMarkAllAs();
|
|
46633
45287
|
init_components();
|
|
46634
45288
|
init_tools();
|
|
46635
|
-
|
|
45289
|
+
args20 = {
|
|
46636
45290
|
messageMarkAsRequestDto: MessageMarkAsRequestDto$inboundSchema,
|
|
46637
45291
|
subscriberId: stringType(),
|
|
46638
45292
|
idempotencyKey: stringType().optional()
|
|
46639
45293
|
};
|
|
46640
45294
|
tool$subscribersMessagesMarkAllAs = {
|
|
46641
45295
|
name: "subscribers-messages-mark-all-as",
|
|
46642
|
-
description: `
|
|
46643
|
-
|
|
46644
|
-
|
|
46645
|
-
|
|
45296
|
+
description: `Update notifications state
|
|
45297
|
+
|
|
45298
|
+
Update subscriber's multiple in-app (inbox) notifications state such as seen, read, unseen or unread by **subscriberId**.
|
|
45299
|
+
**messageId** is of type mongodbId of notifications`,
|
|
45300
|
+
args: args20,
|
|
45301
|
+
tool: async (client, args21, ctx) => {
|
|
45302
|
+
const [result, apiCall] = await subscribersMessagesMarkAllAs(client, args21.messageMarkAsRequestDto, args21.subscriberId, args21.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46646
45303
|
if (!result.ok) {
|
|
46647
45304
|
return {
|
|
46648
45305
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46657,9 +45314,9 @@ var init_subscribersMessagesMarkAllAs2 = __esm(() => {
|
|
|
46657
45314
|
|
|
46658
45315
|
// src/funcs/subscribersMessagesUpdateAsSeen.ts
|
|
46659
45316
|
function subscribersMessagesUpdateAsSeen(client, request, options) {
|
|
46660
|
-
return new APIPromise($
|
|
45317
|
+
return new APIPromise($do21(client, request, options));
|
|
46661
45318
|
}
|
|
46662
|
-
async function $
|
|
45319
|
+
async function $do21(client, request, options) {
|
|
46663
45320
|
const parsed = safeParse(request, (value) => SubscribersV1ControllerMarkActionAsSeenRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46664
45321
|
if (!parsed.ok) {
|
|
46665
45322
|
return [parsed, { status: "invalid" }];
|
|
@@ -46770,20 +45427,23 @@ var init_subscribersMessagesUpdateAsSeen = __esm(() => {
|
|
|
46770
45427
|
});
|
|
46771
45428
|
|
|
46772
45429
|
// src/mcp-server/tools/subscribersMessagesUpdateAsSeen.ts
|
|
46773
|
-
var
|
|
45430
|
+
var args21, tool$subscribersMessagesUpdateAsSeen;
|
|
46774
45431
|
var init_subscribersMessagesUpdateAsSeen2 = __esm(() => {
|
|
46775
45432
|
init_subscribersMessagesUpdateAsSeen();
|
|
46776
45433
|
init_operations();
|
|
46777
45434
|
init_tools();
|
|
46778
|
-
|
|
45435
|
+
args21 = {
|
|
46779
45436
|
request: SubscribersV1ControllerMarkActionAsSeenRequest$inboundSchema
|
|
46780
45437
|
};
|
|
46781
45438
|
tool$subscribersMessagesUpdateAsSeen = {
|
|
46782
45439
|
name: "subscribers-messages-update-as-seen",
|
|
46783
|
-
description: `
|
|
46784
|
-
|
|
46785
|
-
|
|
46786
|
-
|
|
45440
|
+
description: `Update notification action status
|
|
45441
|
+
|
|
45442
|
+
Update in-app (inbox) notification's action status by its unique key identifier **messageId** and type field **type**.
|
|
45443
|
+
**type** field can be **primary** or **secondary**`,
|
|
45444
|
+
args: args21,
|
|
45445
|
+
tool: async (client, args22, ctx) => {
|
|
45446
|
+
const [result, apiCall] = await subscribersMessagesUpdateAsSeen(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46787
45447
|
if (!result.ok) {
|
|
46788
45448
|
return {
|
|
46789
45449
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46798,9 +45458,9 @@ var init_subscribersMessagesUpdateAsSeen2 = __esm(() => {
|
|
|
46798
45458
|
|
|
46799
45459
|
// src/funcs/subscribersNotificationsFeed.ts
|
|
46800
45460
|
function subscribersNotificationsFeed(client, request, options) {
|
|
46801
|
-
return new APIPromise($
|
|
45461
|
+
return new APIPromise($do22(client, request, options));
|
|
46802
45462
|
}
|
|
46803
|
-
async function $
|
|
45463
|
+
async function $do22(client, request, options) {
|
|
46804
45464
|
const parsed = safeParse(request, (value) => SubscribersV1ControllerGetNotificationsFeedRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46805
45465
|
if (!parsed.ok) {
|
|
46806
45466
|
return [parsed, { status: "invalid" }];
|
|
@@ -46908,20 +45568,22 @@ var init_subscribersNotificationsFeed = __esm(() => {
|
|
|
46908
45568
|
});
|
|
46909
45569
|
|
|
46910
45570
|
// src/mcp-server/tools/subscribersNotificationsFeed.ts
|
|
46911
|
-
var
|
|
45571
|
+
var args22, tool$subscribersNotificationsFeed;
|
|
46912
45572
|
var init_subscribersNotificationsFeed2 = __esm(() => {
|
|
46913
45573
|
init_subscribersNotificationsFeed();
|
|
46914
45574
|
init_operations();
|
|
46915
45575
|
init_tools();
|
|
46916
|
-
|
|
45576
|
+
args22 = {
|
|
46917
45577
|
request: SubscribersV1ControllerGetNotificationsFeedRequest$inboundSchema
|
|
46918
45578
|
};
|
|
46919
45579
|
tool$subscribersNotificationsFeed = {
|
|
46920
45580
|
name: "subscribers-notifications-feed",
|
|
46921
|
-
description: `
|
|
46922
|
-
|
|
46923
|
-
|
|
46924
|
-
|
|
45581
|
+
description: `Retrieve subscriber notifications
|
|
45582
|
+
|
|
45583
|
+
Retrieve subscriber in-app (inbox) notifications by its unique key identifier **subscriberId**.`,
|
|
45584
|
+
args: args22,
|
|
45585
|
+
tool: async (client, args23, ctx) => {
|
|
45586
|
+
const [result, apiCall] = await subscribersNotificationsFeed(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46925
45587
|
if (!result.ok) {
|
|
46926
45588
|
return {
|
|
46927
45589
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46936,9 +45598,9 @@ var init_subscribersNotificationsFeed2 = __esm(() => {
|
|
|
46936
45598
|
|
|
46937
45599
|
// src/funcs/subscribersNotificationsUnseenCount.ts
|
|
46938
45600
|
function subscribersNotificationsUnseenCount(client, request, options) {
|
|
46939
|
-
return new APIPromise($
|
|
45601
|
+
return new APIPromise($do23(client, request, options));
|
|
46940
45602
|
}
|
|
46941
|
-
async function $
|
|
45603
|
+
async function $do23(client, request, options) {
|
|
46942
45604
|
const parsed = safeParse(request, (value) => SubscribersV1ControllerGetUnseenCountRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46943
45605
|
if (!parsed.ok) {
|
|
46944
45606
|
return [parsed, { status: "invalid" }];
|
|
@@ -47043,20 +45705,22 @@ var init_subscribersNotificationsUnseenCount = __esm(() => {
|
|
|
47043
45705
|
});
|
|
47044
45706
|
|
|
47045
45707
|
// src/mcp-server/tools/subscribersNotificationsUnseenCount.ts
|
|
47046
|
-
var
|
|
45708
|
+
var args23, tool$subscribersNotificationsUnseenCount;
|
|
47047
45709
|
var init_subscribersNotificationsUnseenCount2 = __esm(() => {
|
|
47048
45710
|
init_subscribersNotificationsUnseenCount();
|
|
47049
45711
|
init_operations();
|
|
47050
45712
|
init_tools();
|
|
47051
|
-
|
|
45713
|
+
args23 = {
|
|
47052
45714
|
request: SubscribersV1ControllerGetUnseenCountRequest$inboundSchema
|
|
47053
45715
|
};
|
|
47054
45716
|
tool$subscribersNotificationsUnseenCount = {
|
|
47055
45717
|
name: "subscribers-notifications-unseen-count",
|
|
47056
|
-
description: `
|
|
47057
|
-
|
|
47058
|
-
|
|
47059
|
-
|
|
45718
|
+
description: `Retrieve unseen notifications count
|
|
45719
|
+
|
|
45720
|
+
Retrieve unseen in-app (inbox) notifications count for a subscriber by its unique key identifier **subscriberId**.`,
|
|
45721
|
+
args: args23,
|
|
45722
|
+
tool: async (client, args24, ctx) => {
|
|
45723
|
+
const [result, apiCall] = await subscribersNotificationsUnseenCount(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47060
45724
|
if (!result.ok) {
|
|
47061
45725
|
return {
|
|
47062
45726
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47071,9 +45735,9 @@ var init_subscribersNotificationsUnseenCount2 = __esm(() => {
|
|
|
47071
45735
|
|
|
47072
45736
|
// src/funcs/subscribersPatch.ts
|
|
47073
45737
|
function subscribersPatch(client, patchSubscriberRequestDto, subscriberId, idempotencyKey, options) {
|
|
47074
|
-
return new APIPromise($
|
|
45738
|
+
return new APIPromise($do24(client, patchSubscriberRequestDto, subscriberId, idempotencyKey, options));
|
|
47075
45739
|
}
|
|
47076
|
-
async function $
|
|
45740
|
+
async function $do24(client, patchSubscriberRequestDto, subscriberId, idempotencyKey, options) {
|
|
47077
45741
|
const input = {
|
|
47078
45742
|
patchSubscriberRequestDto,
|
|
47079
45743
|
subscriberId,
|
|
@@ -47181,25 +45845,26 @@ var init_subscribersPatch = __esm(() => {
|
|
|
47181
45845
|
});
|
|
47182
45846
|
|
|
47183
45847
|
// src/mcp-server/tools/subscribersPatch.ts
|
|
47184
|
-
var
|
|
45848
|
+
var args24, tool$subscribersPatch;
|
|
47185
45849
|
var init_subscribersPatch2 = __esm(() => {
|
|
47186
45850
|
init_lib();
|
|
47187
45851
|
init_subscribersPatch();
|
|
47188
45852
|
init_components();
|
|
47189
45853
|
init_tools();
|
|
47190
|
-
|
|
45854
|
+
args24 = {
|
|
47191
45855
|
patchSubscriberRequestDto: PatchSubscriberRequestDto$inboundSchema,
|
|
47192
45856
|
subscriberId: stringType(),
|
|
47193
45857
|
idempotencyKey: stringType().optional()
|
|
47194
45858
|
};
|
|
47195
45859
|
tool$subscribersPatch = {
|
|
47196
45860
|
name: "subscribers-patch",
|
|
47197
|
-
description: `
|
|
45861
|
+
description: `Update a subscriber
|
|
47198
45862
|
|
|
47199
|
-
|
|
47200
|
-
|
|
47201
|
-
|
|
47202
|
-
|
|
45863
|
+
Update a subscriber by its unique key identifier **subscriberId**.
|
|
45864
|
+
**subscriberId** is a required field, rest other fields are optional`,
|
|
45865
|
+
args: args24,
|
|
45866
|
+
tool: async (client, args25, ctx) => {
|
|
45867
|
+
const [result, apiCall] = await subscribersPatch(client, args25.patchSubscriberRequestDto, args25.subscriberId, args25.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47203
45868
|
if (!result.ok) {
|
|
47204
45869
|
return {
|
|
47205
45870
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47214,9 +45879,9 @@ Patch subscriber by your internal id used to identify the subscriber`,
|
|
|
47214
45879
|
|
|
47215
45880
|
// src/funcs/subscribersPreferencesList.ts
|
|
47216
45881
|
function subscribersPreferencesList(client, subscriberId, idempotencyKey, options) {
|
|
47217
|
-
return new APIPromise($
|
|
45882
|
+
return new APIPromise($do25(client, subscriberId, idempotencyKey, options));
|
|
47218
45883
|
}
|
|
47219
|
-
async function $
|
|
45884
|
+
async function $do25(client, subscriberId, idempotencyKey, options) {
|
|
47220
45885
|
const input = {
|
|
47221
45886
|
subscriberId,
|
|
47222
45887
|
idempotencyKey
|
|
@@ -47320,23 +45985,24 @@ var init_subscribersPreferencesList = __esm(() => {
|
|
|
47320
45985
|
});
|
|
47321
45986
|
|
|
47322
45987
|
// src/mcp-server/tools/subscribersPreferencesList.ts
|
|
47323
|
-
var
|
|
45988
|
+
var args25, tool$subscribersPreferencesList;
|
|
47324
45989
|
var init_subscribersPreferencesList2 = __esm(() => {
|
|
47325
45990
|
init_lib();
|
|
47326
45991
|
init_subscribersPreferencesList();
|
|
47327
45992
|
init_tools();
|
|
47328
|
-
|
|
45993
|
+
args25 = {
|
|
47329
45994
|
subscriberId: stringType(),
|
|
47330
45995
|
idempotencyKey: stringType().optional()
|
|
47331
45996
|
};
|
|
47332
45997
|
tool$subscribersPreferencesList = {
|
|
47333
45998
|
name: "subscribers-preferences-list",
|
|
47334
|
-
description: `
|
|
45999
|
+
description: `Retrieve subscriber preferences
|
|
47335
46000
|
|
|
47336
|
-
|
|
47337
|
-
|
|
47338
|
-
|
|
47339
|
-
|
|
46001
|
+
Retrieve subscriber channel preferences by its unique key identifier **subscriberId**.
|
|
46002
|
+
This API returns all five channels preferences for all workflows and global preferences.`,
|
|
46003
|
+
args: args25,
|
|
46004
|
+
tool: async (client, args26, ctx) => {
|
|
46005
|
+
const [result, apiCall] = await subscribersPreferencesList(client, args26.subscriberId, args26.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47340
46006
|
if (!result.ok) {
|
|
47341
46007
|
return {
|
|
47342
46008
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47351,9 +46017,9 @@ Get subscriber global and workflow specific preferences`,
|
|
|
47351
46017
|
|
|
47352
46018
|
// src/funcs/subscribersPreferencesUpdate.ts
|
|
47353
46019
|
function subscribersPreferencesUpdate(client, patchSubscriberPreferencesDto, subscriberId, idempotencyKey, options) {
|
|
47354
|
-
return new APIPromise($
|
|
46020
|
+
return new APIPromise($do26(client, patchSubscriberPreferencesDto, subscriberId, idempotencyKey, options));
|
|
47355
46021
|
}
|
|
47356
|
-
async function $
|
|
46022
|
+
async function $do26(client, patchSubscriberPreferencesDto, subscriberId, idempotencyKey, options) {
|
|
47357
46023
|
const input = {
|
|
47358
46024
|
patchSubscriberPreferencesDto,
|
|
47359
46025
|
subscriberId,
|
|
@@ -47461,25 +46127,27 @@ var init_subscribersPreferencesUpdate = __esm(() => {
|
|
|
47461
46127
|
});
|
|
47462
46128
|
|
|
47463
46129
|
// src/mcp-server/tools/subscribersPreferencesUpdate.ts
|
|
47464
|
-
var
|
|
46130
|
+
var args26, tool$subscribersPreferencesUpdate;
|
|
47465
46131
|
var init_subscribersPreferencesUpdate2 = __esm(() => {
|
|
47466
46132
|
init_lib();
|
|
47467
46133
|
init_subscribersPreferencesUpdate();
|
|
47468
46134
|
init_components();
|
|
47469
46135
|
init_tools();
|
|
47470
|
-
|
|
46136
|
+
args26 = {
|
|
47471
46137
|
patchSubscriberPreferencesDto: PatchSubscriberPreferencesDto$inboundSchema,
|
|
47472
46138
|
subscriberId: stringType(),
|
|
47473
46139
|
idempotencyKey: stringType().optional()
|
|
47474
46140
|
};
|
|
47475
46141
|
tool$subscribersPreferencesUpdate = {
|
|
47476
46142
|
name: "subscribers-preferences-update",
|
|
47477
|
-
description: `Update subscriber
|
|
46143
|
+
description: `Update subscriber preferences
|
|
47478
46144
|
|
|
47479
|
-
Update subscriber
|
|
47480
|
-
|
|
47481
|
-
|
|
47482
|
-
|
|
46145
|
+
Update subscriber preferences by its unique key identifier **subscriberId**.
|
|
46146
|
+
**workflowId** is optional field, if provided, this API will update that workflow preference,
|
|
46147
|
+
otherwise it will update global preferences`,
|
|
46148
|
+
args: args26,
|
|
46149
|
+
tool: async (client, args27, ctx) => {
|
|
46150
|
+
const [result, apiCall] = await subscribersPreferencesUpdate(client, args27.patchSubscriberPreferencesDto, args27.subscriberId, args27.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47483
46151
|
if (!result.ok) {
|
|
47484
46152
|
return {
|
|
47485
46153
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47494,9 +46162,9 @@ Update subscriber global or workflow specific preferences`,
|
|
|
47494
46162
|
|
|
47495
46163
|
// src/funcs/subscribersPropertiesUpdateOnlineFlag.ts
|
|
47496
46164
|
function subscribersPropertiesUpdateOnlineFlag(client, updateSubscriberOnlineFlagRequestDto, subscriberId, idempotencyKey, options) {
|
|
47497
|
-
return new APIPromise($
|
|
46165
|
+
return new APIPromise($do27(client, updateSubscriberOnlineFlagRequestDto, subscriberId, idempotencyKey, options));
|
|
47498
46166
|
}
|
|
47499
|
-
async function $
|
|
46167
|
+
async function $do27(client, updateSubscriberOnlineFlagRequestDto, subscriberId, idempotencyKey, options) {
|
|
47500
46168
|
const input = {
|
|
47501
46169
|
updateSubscriberOnlineFlagRequestDto,
|
|
47502
46170
|
subscriberId,
|
|
@@ -47602,13 +46270,13 @@ var init_subscribersPropertiesUpdateOnlineFlag = __esm(() => {
|
|
|
47602
46270
|
});
|
|
47603
46271
|
|
|
47604
46272
|
// src/mcp-server/tools/subscribersPropertiesUpdateOnlineFlag.ts
|
|
47605
|
-
var
|
|
46273
|
+
var args27, tool$subscribersPropertiesUpdateOnlineFlag;
|
|
47606
46274
|
var init_subscribersPropertiesUpdateOnlineFlag2 = __esm(() => {
|
|
47607
46275
|
init_lib();
|
|
47608
46276
|
init_subscribersPropertiesUpdateOnlineFlag();
|
|
47609
46277
|
init_components();
|
|
47610
46278
|
init_tools();
|
|
47611
|
-
|
|
46279
|
+
args27 = {
|
|
47612
46280
|
updateSubscriberOnlineFlagRequestDto: UpdateSubscriberOnlineFlagRequestDto$inboundSchema,
|
|
47613
46281
|
subscriberId: stringType(),
|
|
47614
46282
|
idempotencyKey: stringType().optional()
|
|
@@ -47617,10 +46285,10 @@ var init_subscribersPropertiesUpdateOnlineFlag2 = __esm(() => {
|
|
|
47617
46285
|
name: "subscribers-properties-update-online-flag",
|
|
47618
46286
|
description: `Update subscriber online status
|
|
47619
46287
|
|
|
47620
|
-
|
|
47621
|
-
args:
|
|
47622
|
-
tool: async (client,
|
|
47623
|
-
const [result, apiCall] = await subscribersPropertiesUpdateOnlineFlag(client,
|
|
46288
|
+
Update the subscriber online status by its unique key identifier **subscriberId**`,
|
|
46289
|
+
args: args27,
|
|
46290
|
+
tool: async (client, args28, ctx) => {
|
|
46291
|
+
const [result, apiCall] = await subscribersPropertiesUpdateOnlineFlag(client, args28.updateSubscriberOnlineFlagRequestDto, args28.subscriberId, args28.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47624
46292
|
if (!result.ok) {
|
|
47625
46293
|
return {
|
|
47626
46294
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47635,9 +46303,9 @@ Used to update the subscriber isOnline flag.`,
|
|
|
47635
46303
|
|
|
47636
46304
|
// src/funcs/subscribersRetrieve.ts
|
|
47637
46305
|
function subscribersRetrieve(client, subscriberId, idempotencyKey, options) {
|
|
47638
|
-
return new APIPromise($
|
|
46306
|
+
return new APIPromise($do28(client, subscriberId, idempotencyKey, options));
|
|
47639
46307
|
}
|
|
47640
|
-
async function $
|
|
46308
|
+
async function $do28(client, subscriberId, idempotencyKey, options) {
|
|
47641
46309
|
const input = {
|
|
47642
46310
|
subscriberId,
|
|
47643
46311
|
idempotencyKey
|
|
@@ -47741,23 +46409,24 @@ var init_subscribersRetrieve = __esm(() => {
|
|
|
47741
46409
|
});
|
|
47742
46410
|
|
|
47743
46411
|
// src/mcp-server/tools/subscribersRetrieve.ts
|
|
47744
|
-
var
|
|
46412
|
+
var args28, tool$subscribersRetrieve;
|
|
47745
46413
|
var init_subscribersRetrieve2 = __esm(() => {
|
|
47746
46414
|
init_lib();
|
|
47747
46415
|
init_subscribersRetrieve();
|
|
47748
46416
|
init_tools();
|
|
47749
|
-
|
|
46417
|
+
args28 = {
|
|
47750
46418
|
subscriberId: stringType(),
|
|
47751
46419
|
idempotencyKey: stringType().optional()
|
|
47752
46420
|
};
|
|
47753
46421
|
tool$subscribersRetrieve = {
|
|
47754
46422
|
name: "subscribers-retrieve",
|
|
47755
|
-
description: `
|
|
46423
|
+
description: `Retrieve a subscriber
|
|
47756
46424
|
|
|
47757
|
-
|
|
47758
|
-
|
|
47759
|
-
|
|
47760
|
-
|
|
46425
|
+
Retrive a subscriber by its unique key identifier **subscriberId**.
|
|
46426
|
+
**subscriberId** field is required.`,
|
|
46427
|
+
args: args28,
|
|
46428
|
+
tool: async (client, args29, ctx) => {
|
|
46429
|
+
const [result, apiCall] = await subscribersRetrieve(client, args29.subscriberId, args29.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47761
46430
|
if (!result.ok) {
|
|
47762
46431
|
return {
|
|
47763
46432
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47772,9 +46441,9 @@ Get subscriber by your internal id used to identify the subscriber`,
|
|
|
47772
46441
|
|
|
47773
46442
|
// src/funcs/subscribersSearch.ts
|
|
47774
46443
|
function subscribersSearch(client, request, options) {
|
|
47775
|
-
return new APIPromise($
|
|
46444
|
+
return new APIPromise($do29(client, request, options));
|
|
47776
46445
|
}
|
|
47777
|
-
async function $
|
|
46446
|
+
async function $do29(client, request, options) {
|
|
47778
46447
|
const parsed = safeParse(request, (value) => SubscribersControllerSearchSubscribersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47779
46448
|
if (!parsed.ok) {
|
|
47780
46449
|
return [parsed, { status: "invalid" }];
|
|
@@ -47881,20 +46550,23 @@ var init_subscribersSearch = __esm(() => {
|
|
|
47881
46550
|
});
|
|
47882
46551
|
|
|
47883
46552
|
// src/mcp-server/tools/subscribersSearch.ts
|
|
47884
|
-
var
|
|
46553
|
+
var args29, tool$subscribersSearch;
|
|
47885
46554
|
var init_subscribersSearch2 = __esm(() => {
|
|
47886
46555
|
init_subscribersSearch();
|
|
47887
46556
|
init_operations();
|
|
47888
46557
|
init_tools();
|
|
47889
|
-
|
|
46558
|
+
args29 = {
|
|
47890
46559
|
request: SubscribersControllerSearchSubscribersRequest$inboundSchema
|
|
47891
46560
|
};
|
|
47892
46561
|
tool$subscribersSearch = {
|
|
47893
46562
|
name: "subscribers-search",
|
|
47894
|
-
description: `Search
|
|
47895
|
-
|
|
47896
|
-
|
|
47897
|
-
|
|
46563
|
+
description: `Search subscribers
|
|
46564
|
+
|
|
46565
|
+
Search subscribers by their **email**, **phone**, **subscriberId** and **name**.
|
|
46566
|
+
The search is case sensitive and supports pagination.Checkout all available filters in the query section.`,
|
|
46567
|
+
args: args29,
|
|
46568
|
+
tool: async (client, args30, ctx) => {
|
|
46569
|
+
const [result, apiCall] = await subscribersSearch(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47898
46570
|
if (!result.ok) {
|
|
47899
46571
|
return {
|
|
47900
46572
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47909,9 +46581,9 @@ var init_subscribersSearch2 = __esm(() => {
|
|
|
47909
46581
|
|
|
47910
46582
|
// src/funcs/subscribersTopicsList.ts
|
|
47911
46583
|
function subscribersTopicsList(client, request, options) {
|
|
47912
|
-
return new APIPromise($
|
|
46584
|
+
return new APIPromise($do30(client, request, options));
|
|
47913
46585
|
}
|
|
47914
|
-
async function $
|
|
46586
|
+
async function $do30(client, request, options) {
|
|
47915
46587
|
const parsed = safeParse(request, (value) => SubscribersControllerListSubscriberTopicsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47916
46588
|
if (!parsed.ok) {
|
|
47917
46589
|
return [parsed, { status: "invalid" }];
|
|
@@ -48021,165 +46693,23 @@ var init_subscribersTopicsList = __esm(() => {
|
|
|
48021
46693
|
});
|
|
48022
46694
|
|
|
48023
46695
|
// src/mcp-server/tools/subscribersTopicsList.ts
|
|
48024
|
-
var
|
|
46696
|
+
var args30, tool$subscribersTopicsList;
|
|
48025
46697
|
var init_subscribersTopicsList2 = __esm(() => {
|
|
48026
46698
|
init_subscribersTopicsList();
|
|
48027
46699
|
init_operations();
|
|
48028
46700
|
init_tools();
|
|
48029
|
-
|
|
46701
|
+
args30 = {
|
|
48030
46702
|
request: SubscribersControllerListSubscriberTopicsRequest$inboundSchema
|
|
48031
46703
|
};
|
|
48032
46704
|
tool$subscribersTopicsList = {
|
|
48033
46705
|
name: "subscribers-topics-list",
|
|
48034
|
-
description: `
|
|
48035
|
-
|
|
48036
|
-
List topic subscriptions for a subscriber with pagination and filtering`,
|
|
48037
|
-
args: args36,
|
|
48038
|
-
tool: async (client, args37, ctx) => {
|
|
48039
|
-
const [result, apiCall] = await subscribersTopicsList(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48040
|
-
if (!result.ok) {
|
|
48041
|
-
return {
|
|
48042
|
-
content: [{ type: "text", text: result.error.message }],
|
|
48043
|
-
isError: true
|
|
48044
|
-
};
|
|
48045
|
-
}
|
|
48046
|
-
const value = result.value.result;
|
|
48047
|
-
return formatResult(value, apiCall);
|
|
48048
|
-
}
|
|
48049
|
-
};
|
|
48050
|
-
});
|
|
48051
|
-
|
|
48052
|
-
// src/funcs/subscribersUpsert.ts
|
|
48053
|
-
function subscribersUpsert(client, updateSubscriberRequestDto, subscriberId, idempotencyKey, options) {
|
|
48054
|
-
return new APIPromise($do37(client, updateSubscriberRequestDto, subscriberId, idempotencyKey, options));
|
|
48055
|
-
}
|
|
48056
|
-
async function $do37(client, updateSubscriberRequestDto, subscriberId, idempotencyKey, options) {
|
|
48057
|
-
const input = {
|
|
48058
|
-
updateSubscriberRequestDto,
|
|
48059
|
-
subscriberId,
|
|
48060
|
-
idempotencyKey
|
|
48061
|
-
};
|
|
48062
|
-
const parsed = safeParse(input, (value) => SubscribersV1ControllerUpdateSubscriberRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48063
|
-
if (!parsed.ok) {
|
|
48064
|
-
return [parsed, { status: "invalid" }];
|
|
48065
|
-
}
|
|
48066
|
-
const payload = parsed.value;
|
|
48067
|
-
const body = encodeJSON("body", payload.UpdateSubscriberRequestDto, {
|
|
48068
|
-
explode: true
|
|
48069
|
-
});
|
|
48070
|
-
const pathParams = {
|
|
48071
|
-
subscriberId: encodeSimple("subscriberId", payload.subscriberId, {
|
|
48072
|
-
explode: false,
|
|
48073
|
-
charEncoding: "percent"
|
|
48074
|
-
})
|
|
48075
|
-
};
|
|
48076
|
-
const path = pathToFunc("/v1/subscribers/{subscriberId}")(pathParams);
|
|
48077
|
-
const headers = new Headers(compactMap({
|
|
48078
|
-
"Content-Type": "application/json",
|
|
48079
|
-
Accept: "application/json",
|
|
48080
|
-
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
48081
|
-
}));
|
|
48082
|
-
const secConfig = await extractSecurity(client._options.secretKey);
|
|
48083
|
-
const securityInput = secConfig == null ? {} : { secretKey: secConfig };
|
|
48084
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48085
|
-
const context = {
|
|
48086
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48087
|
-
operationID: "SubscribersV1Controller_updateSubscriber",
|
|
48088
|
-
oAuth2Scopes: [],
|
|
48089
|
-
resolvedSecurity: requestSecurity,
|
|
48090
|
-
securitySource: client._options.secretKey,
|
|
48091
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
48092
|
-
strategy: "backoff",
|
|
48093
|
-
backoff: {
|
|
48094
|
-
initialInterval: 1000,
|
|
48095
|
-
maxInterval: 30000,
|
|
48096
|
-
exponent: 1.5,
|
|
48097
|
-
maxElapsedTime: 3600000
|
|
48098
|
-
},
|
|
48099
|
-
retryConnectionErrors: true
|
|
48100
|
-
},
|
|
48101
|
-
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"]
|
|
48102
|
-
};
|
|
48103
|
-
const requestRes = client._createRequest(context, {
|
|
48104
|
-
security: requestSecurity,
|
|
48105
|
-
method: "PUT",
|
|
48106
|
-
baseURL: options?.serverURL,
|
|
48107
|
-
path,
|
|
48108
|
-
headers,
|
|
48109
|
-
body,
|
|
48110
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48111
|
-
}, options);
|
|
48112
|
-
if (!requestRes.ok) {
|
|
48113
|
-
return [requestRes, { status: "invalid" }];
|
|
48114
|
-
}
|
|
48115
|
-
const req = requestRes.value;
|
|
48116
|
-
const doResult = await client._do(req, {
|
|
48117
|
-
context,
|
|
48118
|
-
errorCodes: [
|
|
48119
|
-
"400",
|
|
48120
|
-
"401",
|
|
48121
|
-
"403",
|
|
48122
|
-
"404",
|
|
48123
|
-
"405",
|
|
48124
|
-
"409",
|
|
48125
|
-
"413",
|
|
48126
|
-
"414",
|
|
48127
|
-
"415",
|
|
48128
|
-
"422",
|
|
48129
|
-
"429",
|
|
48130
|
-
"4XX",
|
|
48131
|
-
"500",
|
|
48132
|
-
"503",
|
|
48133
|
-
"5XX"
|
|
48134
|
-
],
|
|
48135
|
-
retryConfig: context.retryConfig,
|
|
48136
|
-
retryCodes: context.retryCodes
|
|
48137
|
-
});
|
|
48138
|
-
if (!doResult.ok) {
|
|
48139
|
-
return [doResult, { status: "request-error", request: req }];
|
|
48140
|
-
}
|
|
48141
|
-
const response = doResult.value;
|
|
48142
|
-
const responseFields = {
|
|
48143
|
-
HttpMeta: { Response: response, Request: req }
|
|
48144
|
-
};
|
|
48145
|
-
const [result] = await match(json(200, SubscribersV1ControllerUpdateSubscriberResponse$inboundSchema, { hdrs: true, key: "Result" }), jsonErr(414, ErrorDto$inboundSchema), jsonErr([400, 401, 403, 404, 405, 409, 413, 415], ErrorDto$inboundSchema, { hdrs: true }), jsonErr(422, ValidationErrorDto$inboundSchema, { hdrs: true }), fail(429), jsonErr(500, ErrorDto$inboundSchema, { hdrs: true }), fail(503), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48146
|
-
if (!result.ok) {
|
|
48147
|
-
return [result, { status: "complete", request: req, response }];
|
|
48148
|
-
}
|
|
48149
|
-
return [result, { status: "complete", request: req, response }];
|
|
48150
|
-
}
|
|
48151
|
-
var init_subscribersUpsert = __esm(() => {
|
|
48152
|
-
init_encodings();
|
|
48153
|
-
init_matchers();
|
|
48154
|
-
init_primitives();
|
|
48155
|
-
init_schemas();
|
|
48156
|
-
init_security();
|
|
48157
|
-
init_url();
|
|
48158
|
-
init_errors();
|
|
48159
|
-
init_operations();
|
|
48160
|
-
init_async();
|
|
48161
|
-
});
|
|
48162
|
-
|
|
48163
|
-
// src/mcp-server/tools/subscribersUpsert.ts
|
|
48164
|
-
var args37, tool$subscribersUpsert;
|
|
48165
|
-
var init_subscribersUpsert2 = __esm(() => {
|
|
48166
|
-
init_lib();
|
|
48167
|
-
init_subscribersUpsert();
|
|
48168
|
-
init_components();
|
|
48169
|
-
init_tools();
|
|
48170
|
-
args37 = {
|
|
48171
|
-
updateSubscriberRequestDto: UpdateSubscriberRequestDto$inboundSchema,
|
|
48172
|
-
subscriberId: stringType(),
|
|
48173
|
-
idempotencyKey: stringType().optional()
|
|
48174
|
-
};
|
|
48175
|
-
tool$subscribersUpsert = {
|
|
48176
|
-
name: "subscribers-upsert",
|
|
48177
|
-
description: `Upsert subscriber
|
|
46706
|
+
description: `Retrieve subscriber subscriptions
|
|
48178
46707
|
|
|
48179
|
-
|
|
48180
|
-
|
|
48181
|
-
|
|
48182
|
-
|
|
46708
|
+
Retrieve subscriber's topic subscriptions by its unique key identifier **subscriberId**.
|
|
46709
|
+
Checkout all available filters in the query section.`,
|
|
46710
|
+
args: args30,
|
|
46711
|
+
tool: async (client, args31, ctx) => {
|
|
46712
|
+
const [result, apiCall] = await subscribersTopicsList(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48183
46713
|
if (!result.ok) {
|
|
48184
46714
|
return {
|
|
48185
46715
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48194,9 +46724,9 @@ Used to upsert the subscriber entity with new information`,
|
|
|
48194
46724
|
|
|
48195
46725
|
// src/funcs/topicsCreate.ts
|
|
48196
46726
|
function topicsCreate(client, createUpdateTopicRequestDto, idempotencyKey, options) {
|
|
48197
|
-
return new APIPromise($
|
|
46727
|
+
return new APIPromise($do31(client, createUpdateTopicRequestDto, idempotencyKey, options));
|
|
48198
46728
|
}
|
|
48199
|
-
async function $
|
|
46729
|
+
async function $do31(client, createUpdateTopicRequestDto, idempotencyKey, options) {
|
|
48200
46730
|
const input = {
|
|
48201
46731
|
createUpdateTopicRequestDto,
|
|
48202
46732
|
idempotencyKey
|
|
@@ -48297,24 +46827,24 @@ var init_topicsCreate = __esm(() => {
|
|
|
48297
46827
|
});
|
|
48298
46828
|
|
|
48299
46829
|
// src/mcp-server/tools/topicsCreate.ts
|
|
48300
|
-
var
|
|
46830
|
+
var args31, tool$topicsCreate;
|
|
48301
46831
|
var init_topicsCreate2 = __esm(() => {
|
|
48302
46832
|
init_lib();
|
|
48303
46833
|
init_topicsCreate();
|
|
48304
46834
|
init_components();
|
|
48305
46835
|
init_tools();
|
|
48306
|
-
|
|
46836
|
+
args31 = {
|
|
48307
46837
|
createUpdateTopicRequestDto: CreateUpdateTopicRequestDto$inboundSchema,
|
|
48308
46838
|
idempotencyKey: stringType().optional()
|
|
48309
46839
|
};
|
|
48310
46840
|
tool$topicsCreate = {
|
|
48311
46841
|
name: "topics-create",
|
|
48312
|
-
description: `Create
|
|
46842
|
+
description: `Create a topic
|
|
48313
46843
|
|
|
48314
46844
|
Creates a new topic if it does not exist, or updates an existing topic if it already exists`,
|
|
48315
|
-
args:
|
|
48316
|
-
tool: async (client,
|
|
48317
|
-
const [result, apiCall] = await topicsCreate(client,
|
|
46845
|
+
args: args31,
|
|
46846
|
+
tool: async (client, args32, ctx) => {
|
|
46847
|
+
const [result, apiCall] = await topicsCreate(client, args32.createUpdateTopicRequestDto, args32.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48318
46848
|
if (!result.ok) {
|
|
48319
46849
|
return {
|
|
48320
46850
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48329,9 +46859,9 @@ Creates a new topic if it does not exist, or updates an existing topic if it alr
|
|
|
48329
46859
|
|
|
48330
46860
|
// src/funcs/topicsDelete.ts
|
|
48331
46861
|
function topicsDelete(client, topicKey, idempotencyKey, options) {
|
|
48332
|
-
return new APIPromise($
|
|
46862
|
+
return new APIPromise($do32(client, topicKey, idempotencyKey, options));
|
|
48333
46863
|
}
|
|
48334
|
-
async function $
|
|
46864
|
+
async function $do32(client, topicKey, idempotencyKey, options) {
|
|
48335
46865
|
const input = {
|
|
48336
46866
|
topicKey,
|
|
48337
46867
|
idempotencyKey
|
|
@@ -48438,21 +46968,24 @@ var init_topicsDelete = __esm(() => {
|
|
|
48438
46968
|
});
|
|
48439
46969
|
|
|
48440
46970
|
// src/mcp-server/tools/topicsDelete.ts
|
|
48441
|
-
var
|
|
46971
|
+
var args32, tool$topicsDelete;
|
|
48442
46972
|
var init_topicsDelete2 = __esm(() => {
|
|
48443
46973
|
init_lib();
|
|
48444
46974
|
init_topicsDelete();
|
|
48445
46975
|
init_tools();
|
|
48446
|
-
|
|
46976
|
+
args32 = {
|
|
48447
46977
|
topicKey: stringType(),
|
|
48448
46978
|
idempotencyKey: stringType().optional()
|
|
48449
46979
|
};
|
|
48450
46980
|
tool$topicsDelete = {
|
|
48451
46981
|
name: "topics-delete",
|
|
48452
|
-
description: `Delete topic
|
|
48453
|
-
|
|
48454
|
-
|
|
48455
|
-
|
|
46982
|
+
description: `Delete a topic
|
|
46983
|
+
|
|
46984
|
+
Delete a topic by its unique key identifier **topicKey**.
|
|
46985
|
+
This action is irreversible and will remove all subscriptions to the topic.`,
|
|
46986
|
+
args: args32,
|
|
46987
|
+
tool: async (client, args33, ctx) => {
|
|
46988
|
+
const [result, apiCall] = await topicsDelete(client, args33.topicKey, args33.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48456
46989
|
if (!result.ok) {
|
|
48457
46990
|
return {
|
|
48458
46991
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48467,9 +47000,9 @@ var init_topicsDelete2 = __esm(() => {
|
|
|
48467
47000
|
|
|
48468
47001
|
// src/funcs/topicsGet.ts
|
|
48469
47002
|
function topicsGet(client, topicKey, idempotencyKey, options) {
|
|
48470
|
-
return new APIPromise($
|
|
47003
|
+
return new APIPromise($do33(client, topicKey, idempotencyKey, options));
|
|
48471
47004
|
}
|
|
48472
|
-
async function $
|
|
47005
|
+
async function $do33(client, topicKey, idempotencyKey, options) {
|
|
48473
47006
|
const input = {
|
|
48474
47007
|
topicKey,
|
|
48475
47008
|
idempotencyKey
|
|
@@ -48576,21 +47109,23 @@ var init_topicsGet = __esm(() => {
|
|
|
48576
47109
|
});
|
|
48577
47110
|
|
|
48578
47111
|
// src/mcp-server/tools/topicsGet.ts
|
|
48579
|
-
var
|
|
47112
|
+
var args33, tool$topicsGet;
|
|
48580
47113
|
var init_topicsGet2 = __esm(() => {
|
|
48581
47114
|
init_lib();
|
|
48582
47115
|
init_topicsGet();
|
|
48583
47116
|
init_tools();
|
|
48584
|
-
|
|
47117
|
+
args33 = {
|
|
48585
47118
|
topicKey: stringType(),
|
|
48586
47119
|
idempotencyKey: stringType().optional()
|
|
48587
47120
|
};
|
|
48588
47121
|
tool$topicsGet = {
|
|
48589
47122
|
name: "topics-get",
|
|
48590
|
-
description: `
|
|
48591
|
-
|
|
48592
|
-
|
|
48593
|
-
|
|
47123
|
+
description: `Retrieve a topic
|
|
47124
|
+
|
|
47125
|
+
Retrieve a topic by its unique key identifier **topicKey**`,
|
|
47126
|
+
args: args33,
|
|
47127
|
+
tool: async (client, args34, ctx) => {
|
|
47128
|
+
const [result, apiCall] = await topicsGet(client, args34.topicKey, args34.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48594
47129
|
if (!result.ok) {
|
|
48595
47130
|
return {
|
|
48596
47131
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48605,9 +47140,9 @@ var init_topicsGet2 = __esm(() => {
|
|
|
48605
47140
|
|
|
48606
47141
|
// src/funcs/topicsList.ts
|
|
48607
47142
|
function topicsList(client, request, options) {
|
|
48608
|
-
return new APIPromise($
|
|
47143
|
+
return new APIPromise($do34(client, request, options));
|
|
48609
47144
|
}
|
|
48610
|
-
async function $
|
|
47145
|
+
async function $do34(client, request, options) {
|
|
48611
47146
|
const parsed = safeParse(request, (value) => TopicsControllerListTopicsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48612
47147
|
if (!parsed.ok) {
|
|
48613
47148
|
return [parsed, { status: "invalid" }];
|
|
@@ -48715,20 +47250,24 @@ var init_topicsList = __esm(() => {
|
|
|
48715
47250
|
});
|
|
48716
47251
|
|
|
48717
47252
|
// src/mcp-server/tools/topicsList.ts
|
|
48718
|
-
var
|
|
47253
|
+
var args34, tool$topicsList;
|
|
48719
47254
|
var init_topicsList2 = __esm(() => {
|
|
48720
47255
|
init_topicsList();
|
|
48721
47256
|
init_operations();
|
|
48722
47257
|
init_tools();
|
|
48723
|
-
|
|
47258
|
+
args34 = {
|
|
48724
47259
|
request: TopicsControllerListTopicsRequest$inboundSchema
|
|
48725
47260
|
};
|
|
48726
47261
|
tool$topicsList = {
|
|
48727
47262
|
name: "topics-list",
|
|
48728
|
-
description: `
|
|
48729
|
-
|
|
48730
|
-
|
|
48731
|
-
|
|
47263
|
+
description: `List all topics
|
|
47264
|
+
|
|
47265
|
+
This api returns a paginated list of topics.
|
|
47266
|
+
Topics can be filtered by **key**, **name**, or **includeCursor** to paginate through the list.
|
|
47267
|
+
Checkout all available filters in the query section.`,
|
|
47268
|
+
args: args34,
|
|
47269
|
+
tool: async (client, args35, ctx) => {
|
|
47270
|
+
const [result, apiCall] = await topicsList(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48732
47271
|
if (!result.ok) {
|
|
48733
47272
|
return {
|
|
48734
47273
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48743,9 +47282,9 @@ var init_topicsList2 = __esm(() => {
|
|
|
48743
47282
|
|
|
48744
47283
|
// src/funcs/topicsSubscribersRetrieve.ts
|
|
48745
47284
|
function topicsSubscribersRetrieve(client, externalSubscriberId, topicKey, idempotencyKey, options) {
|
|
48746
|
-
return new APIPromise($
|
|
47285
|
+
return new APIPromise($do35(client, externalSubscriberId, topicKey, idempotencyKey, options));
|
|
48747
47286
|
}
|
|
48748
|
-
async function $
|
|
47287
|
+
async function $do35(client, externalSubscriberId, topicKey, idempotencyKey, options) {
|
|
48749
47288
|
const input = {
|
|
48750
47289
|
externalSubscriberId,
|
|
48751
47290
|
topicKey,
|
|
@@ -48851,12 +47390,12 @@ var init_topicsSubscribersRetrieve = __esm(() => {
|
|
|
48851
47390
|
});
|
|
48852
47391
|
|
|
48853
47392
|
// src/mcp-server/tools/topicsSubscribersRetrieve.ts
|
|
48854
|
-
var
|
|
47393
|
+
var args35, tool$topicsSubscribersRetrieve;
|
|
48855
47394
|
var init_topicsSubscribersRetrieve2 = __esm(() => {
|
|
48856
47395
|
init_lib();
|
|
48857
47396
|
init_topicsSubscribersRetrieve();
|
|
48858
47397
|
init_tools();
|
|
48859
|
-
|
|
47398
|
+
args35 = {
|
|
48860
47399
|
externalSubscriberId: stringType(),
|
|
48861
47400
|
topicKey: stringType(),
|
|
48862
47401
|
idempotencyKey: stringType().optional()
|
|
@@ -48866,9 +47405,9 @@ var init_topicsSubscribersRetrieve2 = __esm(() => {
|
|
|
48866
47405
|
description: `Check topic subscriber
|
|
48867
47406
|
|
|
48868
47407
|
Check if a subscriber belongs to a certain topic`,
|
|
48869
|
-
args:
|
|
48870
|
-
tool: async (client,
|
|
48871
|
-
const [result, apiCall] = await topicsSubscribersRetrieve(client,
|
|
47408
|
+
args: args35,
|
|
47409
|
+
tool: async (client, args36, ctx) => {
|
|
47410
|
+
const [result, apiCall] = await topicsSubscribersRetrieve(client, args36.externalSubscriberId, args36.topicKey, args36.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48872
47411
|
if (!result.ok) {
|
|
48873
47412
|
return {
|
|
48874
47413
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48883,9 +47422,9 @@ Check if a subscriber belongs to a certain topic`,
|
|
|
48883
47422
|
|
|
48884
47423
|
// src/funcs/topicsSubscriptionsCreate.ts
|
|
48885
47424
|
function topicsSubscriptionsCreate(client, createTopicSubscriptionsRequestDto, topicKey, idempotencyKey, options) {
|
|
48886
|
-
return new APIPromise($
|
|
47425
|
+
return new APIPromise($do36(client, createTopicSubscriptionsRequestDto, topicKey, idempotencyKey, options));
|
|
48887
47426
|
}
|
|
48888
|
-
async function $
|
|
47427
|
+
async function $do36(client, createTopicSubscriptionsRequestDto, topicKey, idempotencyKey, options) {
|
|
48889
47428
|
const input = {
|
|
48890
47429
|
createTopicSubscriptionsRequestDto,
|
|
48891
47430
|
topicKey,
|
|
@@ -48993,23 +47532,26 @@ var init_topicsSubscriptionsCreate = __esm(() => {
|
|
|
48993
47532
|
});
|
|
48994
47533
|
|
|
48995
47534
|
// src/mcp-server/tools/topicsSubscriptionsCreate.ts
|
|
48996
|
-
var
|
|
47535
|
+
var args36, tool$topicsSubscriptionsCreate;
|
|
48997
47536
|
var init_topicsSubscriptionsCreate2 = __esm(() => {
|
|
48998
47537
|
init_lib();
|
|
48999
47538
|
init_topicsSubscriptionsCreate();
|
|
49000
47539
|
init_components();
|
|
49001
47540
|
init_tools();
|
|
49002
|
-
|
|
47541
|
+
args36 = {
|
|
49003
47542
|
createTopicSubscriptionsRequestDto: CreateTopicSubscriptionsRequestDto$inboundSchema,
|
|
49004
47543
|
topicKey: stringType(),
|
|
49005
47544
|
idempotencyKey: stringType().optional()
|
|
49006
47545
|
};
|
|
49007
47546
|
tool$topicsSubscriptionsCreate = {
|
|
49008
47547
|
name: "topics-subscriptions-create",
|
|
49009
|
-
description: `Create topic subscriptions
|
|
49010
|
-
|
|
49011
|
-
|
|
49012
|
-
|
|
47548
|
+
description: `Create topic subscriptions
|
|
47549
|
+
|
|
47550
|
+
This api will create subscription for subscriberIds for a topic.
|
|
47551
|
+
Its like subscribing to a common interest group. if topic does not exist, it will be created.`,
|
|
47552
|
+
args: args36,
|
|
47553
|
+
tool: async (client, args37, ctx) => {
|
|
47554
|
+
const [result, apiCall] = await topicsSubscriptionsCreate(client, args37.createTopicSubscriptionsRequestDto, args37.topicKey, args37.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49013
47555
|
if (!result.ok) {
|
|
49014
47556
|
return {
|
|
49015
47557
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49024,9 +47566,9 @@ var init_topicsSubscriptionsCreate2 = __esm(() => {
|
|
|
49024
47566
|
|
|
49025
47567
|
// src/funcs/topicsSubscriptionsDelete.ts
|
|
49026
47568
|
function topicsSubscriptionsDelete(client, deleteTopicSubscriptionsRequestDto, topicKey, idempotencyKey, options) {
|
|
49027
|
-
return new APIPromise($
|
|
47569
|
+
return new APIPromise($do37(client, deleteTopicSubscriptionsRequestDto, topicKey, idempotencyKey, options));
|
|
49028
47570
|
}
|
|
49029
|
-
async function $
|
|
47571
|
+
async function $do37(client, deleteTopicSubscriptionsRequestDto, topicKey, idempotencyKey, options) {
|
|
49030
47572
|
const input = {
|
|
49031
47573
|
deleteTopicSubscriptionsRequestDto,
|
|
49032
47574
|
topicKey,
|
|
@@ -49134,23 +47676,25 @@ var init_topicsSubscriptionsDelete = __esm(() => {
|
|
|
49134
47676
|
});
|
|
49135
47677
|
|
|
49136
47678
|
// src/mcp-server/tools/topicsSubscriptionsDelete.ts
|
|
49137
|
-
var
|
|
47679
|
+
var args37, tool$topicsSubscriptionsDelete;
|
|
49138
47680
|
var init_topicsSubscriptionsDelete2 = __esm(() => {
|
|
49139
47681
|
init_lib();
|
|
49140
47682
|
init_topicsSubscriptionsDelete();
|
|
49141
47683
|
init_components();
|
|
49142
47684
|
init_tools();
|
|
49143
|
-
|
|
47685
|
+
args37 = {
|
|
49144
47686
|
deleteTopicSubscriptionsRequestDto: DeleteTopicSubscriptionsRequestDto$inboundSchema,
|
|
49145
47687
|
topicKey: stringType(),
|
|
49146
47688
|
idempotencyKey: stringType().optional()
|
|
49147
47689
|
};
|
|
49148
47690
|
tool$topicsSubscriptionsDelete = {
|
|
49149
47691
|
name: "topics-subscriptions-delete",
|
|
49150
|
-
description: `Delete topic subscriptions
|
|
49151
|
-
|
|
49152
|
-
|
|
49153
|
-
|
|
47692
|
+
description: `Delete topic subscriptions
|
|
47693
|
+
|
|
47694
|
+
Delete subscriptions for subscriberIds for a topic.`,
|
|
47695
|
+
args: args37,
|
|
47696
|
+
tool: async (client, args38, ctx) => {
|
|
47697
|
+
const [result, apiCall] = await topicsSubscriptionsDelete(client, args38.deleteTopicSubscriptionsRequestDto, args38.topicKey, args38.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49154
47698
|
if (!result.ok) {
|
|
49155
47699
|
return {
|
|
49156
47700
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49165,9 +47709,9 @@ var init_topicsSubscriptionsDelete2 = __esm(() => {
|
|
|
49165
47709
|
|
|
49166
47710
|
// src/funcs/topicsSubscriptionsList.ts
|
|
49167
47711
|
function topicsSubscriptionsList(client, request, options) {
|
|
49168
|
-
return new APIPromise($
|
|
47712
|
+
return new APIPromise($do38(client, request, options));
|
|
49169
47713
|
}
|
|
49170
|
-
async function $
|
|
47714
|
+
async function $do38(client, request, options) {
|
|
49171
47715
|
const parsed = safeParse(request, (value) => TopicsControllerListTopicSubscriptionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49172
47716
|
if (!parsed.ok) {
|
|
49173
47717
|
return [parsed, { status: "invalid" }];
|
|
@@ -49277,20 +47821,23 @@ var init_topicsSubscriptionsList = __esm(() => {
|
|
|
49277
47821
|
});
|
|
49278
47822
|
|
|
49279
47823
|
// src/mcp-server/tools/topicsSubscriptionsList.ts
|
|
49280
|
-
var
|
|
47824
|
+
var args38, tool$topicsSubscriptionsList;
|
|
49281
47825
|
var init_topicsSubscriptionsList2 = __esm(() => {
|
|
49282
47826
|
init_topicsSubscriptionsList();
|
|
49283
47827
|
init_operations();
|
|
49284
47828
|
init_tools();
|
|
49285
|
-
|
|
47829
|
+
args38 = {
|
|
49286
47830
|
request: TopicsControllerListTopicSubscriptionsRequest$inboundSchema
|
|
49287
47831
|
};
|
|
49288
47832
|
tool$topicsSubscriptionsList = {
|
|
49289
47833
|
name: "topics-subscriptions-list",
|
|
49290
|
-
description: `List topic subscriptions
|
|
49291
|
-
|
|
49292
|
-
|
|
49293
|
-
|
|
47834
|
+
description: `List topic subscriptions
|
|
47835
|
+
|
|
47836
|
+
List all topics that a subscriber is subscribed to.
|
|
47837
|
+
Checkout all available filters in the query section.`,
|
|
47838
|
+
args: args38,
|
|
47839
|
+
tool: async (client, args39, ctx) => {
|
|
47840
|
+
const [result, apiCall] = await topicsSubscriptionsList(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49294
47841
|
if (!result.ok) {
|
|
49295
47842
|
return {
|
|
49296
47843
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49305,9 +47852,9 @@ var init_topicsSubscriptionsList2 = __esm(() => {
|
|
|
49305
47852
|
|
|
49306
47853
|
// src/funcs/topicsUpdate.ts
|
|
49307
47854
|
function topicsUpdate(client, updateTopicRequestDto, topicKey, idempotencyKey, options) {
|
|
49308
|
-
return new APIPromise($
|
|
47855
|
+
return new APIPromise($do39(client, updateTopicRequestDto, topicKey, idempotencyKey, options));
|
|
49309
47856
|
}
|
|
49310
|
-
async function $
|
|
47857
|
+
async function $do39(client, updateTopicRequestDto, topicKey, idempotencyKey, options) {
|
|
49311
47858
|
const input = {
|
|
49312
47859
|
updateTopicRequestDto,
|
|
49313
47860
|
topicKey,
|
|
@@ -49418,23 +47965,25 @@ var init_topicsUpdate = __esm(() => {
|
|
|
49418
47965
|
});
|
|
49419
47966
|
|
|
49420
47967
|
// src/mcp-server/tools/topicsUpdate.ts
|
|
49421
|
-
var
|
|
47968
|
+
var args39, tool$topicsUpdate;
|
|
49422
47969
|
var init_topicsUpdate2 = __esm(() => {
|
|
49423
47970
|
init_lib();
|
|
49424
47971
|
init_topicsUpdate();
|
|
49425
47972
|
init_components();
|
|
49426
47973
|
init_tools();
|
|
49427
|
-
|
|
47974
|
+
args39 = {
|
|
49428
47975
|
updateTopicRequestDto: UpdateTopicRequestDto$inboundSchema,
|
|
49429
47976
|
topicKey: stringType(),
|
|
49430
47977
|
idempotencyKey: stringType().optional()
|
|
49431
47978
|
};
|
|
49432
47979
|
tool$topicsUpdate = {
|
|
49433
47980
|
name: "topics-update",
|
|
49434
|
-
description: `Update topic
|
|
49435
|
-
|
|
49436
|
-
|
|
49437
|
-
|
|
47981
|
+
description: `Update a topic
|
|
47982
|
+
|
|
47983
|
+
Update a topic name by its unique key identifier **topicKey**`,
|
|
47984
|
+
args: args39,
|
|
47985
|
+
tool: async (client, args40, ctx) => {
|
|
47986
|
+
const [result, apiCall] = await topicsUpdate(client, args40.updateTopicRequestDto, args40.topicKey, args40.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49438
47987
|
if (!result.ok) {
|
|
49439
47988
|
return {
|
|
49440
47989
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49449,9 +47998,9 @@ var init_topicsUpdate2 = __esm(() => {
|
|
|
49449
47998
|
|
|
49450
47999
|
// src/funcs/trigger.ts
|
|
49451
48000
|
function trigger(client, triggerEventRequestDto, idempotencyKey, options) {
|
|
49452
|
-
return new APIPromise($
|
|
48001
|
+
return new APIPromise($do40(client, triggerEventRequestDto, idempotencyKey, options));
|
|
49453
48002
|
}
|
|
49454
|
-
async function $
|
|
48003
|
+
async function $do40(client, triggerEventRequestDto, idempotencyKey, options) {
|
|
49455
48004
|
const input = {
|
|
49456
48005
|
triggerEventRequestDto,
|
|
49457
48006
|
idempotencyKey
|
|
@@ -49555,13 +48104,13 @@ var init_trigger = __esm(() => {
|
|
|
49555
48104
|
});
|
|
49556
48105
|
|
|
49557
48106
|
// src/mcp-server/tools/trigger.ts
|
|
49558
|
-
var
|
|
48107
|
+
var args40, tool$trigger;
|
|
49559
48108
|
var init_trigger2 = __esm(() => {
|
|
49560
48109
|
init_lib();
|
|
49561
48110
|
init_trigger();
|
|
49562
48111
|
init_components();
|
|
49563
48112
|
init_tools();
|
|
49564
|
-
|
|
48113
|
+
args40 = {
|
|
49565
48114
|
triggerEventRequestDto: TriggerEventRequestDto$inboundSchema,
|
|
49566
48115
|
idempotencyKey: stringType().optional()
|
|
49567
48116
|
};
|
|
@@ -49574,9 +48123,9 @@ var init_trigger2 = __esm(() => {
|
|
|
49574
48123
|
The trigger identifier is used to match the particular workflow associated with it.
|
|
49575
48124
|
Additional information can be passed according the body interface below.
|
|
49576
48125
|
`,
|
|
49577
|
-
args:
|
|
49578
|
-
tool: async (client,
|
|
49579
|
-
const [result, apiCall] = await trigger(client,
|
|
48126
|
+
args: args40,
|
|
48127
|
+
tool: async (client, args41, ctx) => {
|
|
48128
|
+
const [result, apiCall] = await trigger(client, args41.triggerEventRequestDto, args41.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49580
48129
|
if (!result.ok) {
|
|
49581
48130
|
return {
|
|
49582
48131
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49591,9 +48140,9 @@ var init_trigger2 = __esm(() => {
|
|
|
49591
48140
|
|
|
49592
48141
|
// src/funcs/triggerBroadcast.ts
|
|
49593
48142
|
function triggerBroadcast(client, triggerEventToAllRequestDto, idempotencyKey, options) {
|
|
49594
|
-
return new APIPromise($
|
|
48143
|
+
return new APIPromise($do41(client, triggerEventToAllRequestDto, idempotencyKey, options));
|
|
49595
48144
|
}
|
|
49596
|
-
async function $
|
|
48145
|
+
async function $do41(client, triggerEventToAllRequestDto, idempotencyKey, options) {
|
|
49597
48146
|
const input = {
|
|
49598
48147
|
triggerEventToAllRequestDto,
|
|
49599
48148
|
idempotencyKey
|
|
@@ -49694,13 +48243,13 @@ var init_triggerBroadcast = __esm(() => {
|
|
|
49694
48243
|
});
|
|
49695
48244
|
|
|
49696
48245
|
// src/mcp-server/tools/triggerBroadcast.ts
|
|
49697
|
-
var
|
|
48246
|
+
var args41, tool$triggerBroadcast;
|
|
49698
48247
|
var init_triggerBroadcast2 = __esm(() => {
|
|
49699
48248
|
init_lib();
|
|
49700
48249
|
init_triggerBroadcast();
|
|
49701
48250
|
init_components();
|
|
49702
48251
|
init_tools();
|
|
49703
|
-
|
|
48252
|
+
args41 = {
|
|
49704
48253
|
triggerEventToAllRequestDto: TriggerEventToAllRequestDto$inboundSchema,
|
|
49705
48254
|
idempotencyKey: stringType().optional()
|
|
49706
48255
|
};
|
|
@@ -49710,9 +48259,9 @@ var init_triggerBroadcast2 = __esm(() => {
|
|
|
49710
48259
|
|
|
49711
48260
|
Trigger a broadcast event to all existing subscribers, could be used to send announcements, etc.
|
|
49712
48261
|
In the future could be used to trigger events to a subset of subscribers based on defined filters.`,
|
|
49713
|
-
args:
|
|
49714
|
-
tool: async (client,
|
|
49715
|
-
const [result, apiCall] = await triggerBroadcast(client,
|
|
48262
|
+
args: args41,
|
|
48263
|
+
tool: async (client, args42, ctx) => {
|
|
48264
|
+
const [result, apiCall] = await triggerBroadcast(client, args42.triggerEventToAllRequestDto, args42.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49716
48265
|
if (!result.ok) {
|
|
49717
48266
|
return {
|
|
49718
48267
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49727,9 +48276,9 @@ Trigger a broadcast event to all existing subscribers, could be used to send ann
|
|
|
49727
48276
|
|
|
49728
48277
|
// src/funcs/triggerBulk.ts
|
|
49729
48278
|
function triggerBulk(client, bulkTriggerEventDto, idempotencyKey, options) {
|
|
49730
|
-
return new APIPromise($
|
|
48279
|
+
return new APIPromise($do42(client, bulkTriggerEventDto, idempotencyKey, options));
|
|
49731
48280
|
}
|
|
49732
|
-
async function $
|
|
48281
|
+
async function $do42(client, bulkTriggerEventDto, idempotencyKey, options) {
|
|
49733
48282
|
const input = {
|
|
49734
48283
|
bulkTriggerEventDto,
|
|
49735
48284
|
idempotencyKey
|
|
@@ -49833,13 +48382,13 @@ var init_triggerBulk = __esm(() => {
|
|
|
49833
48382
|
});
|
|
49834
48383
|
|
|
49835
48384
|
// src/mcp-server/tools/triggerBulk.ts
|
|
49836
|
-
var
|
|
48385
|
+
var args42, tool$triggerBulk;
|
|
49837
48386
|
var init_triggerBulk2 = __esm(() => {
|
|
49838
48387
|
init_lib();
|
|
49839
48388
|
init_triggerBulk();
|
|
49840
48389
|
init_components();
|
|
49841
48390
|
init_tools();
|
|
49842
|
-
|
|
48391
|
+
args42 = {
|
|
49843
48392
|
bulkTriggerEventDto: BulkTriggerEventDto$inboundSchema,
|
|
49844
48393
|
idempotencyKey: stringType().optional()
|
|
49845
48394
|
};
|
|
@@ -49851,9 +48400,9 @@ var init_triggerBulk2 = __esm(() => {
|
|
|
49851
48400
|
Using this endpoint you can trigger multiple events at once, to avoid multiple calls to the API.
|
|
49852
48401
|
The bulk API is limited to 100 events per request.
|
|
49853
48402
|
`,
|
|
49854
|
-
args:
|
|
49855
|
-
tool: async (client,
|
|
49856
|
-
const [result, apiCall] = await triggerBulk(client,
|
|
48403
|
+
args: args42,
|
|
48404
|
+
tool: async (client, args43, ctx) => {
|
|
48405
|
+
const [result, apiCall] = await triggerBulk(client, args43.bulkTriggerEventDto, args43.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49857
48406
|
if (!result.ok) {
|
|
49858
48407
|
return {
|
|
49859
48408
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49870,7 +48419,7 @@ var init_triggerBulk2 = __esm(() => {
|
|
|
49870
48419
|
function createMCPServer(deps) {
|
|
49871
48420
|
const server = new McpServer({
|
|
49872
48421
|
name: "Novu",
|
|
49873
|
-
version: "1.
|
|
48422
|
+
version: "1.1.0"
|
|
49874
48423
|
});
|
|
49875
48424
|
const client = new NovuCore({
|
|
49876
48425
|
secretKey: deps.secretKey,
|
|
@@ -49893,8 +48442,6 @@ function createMCPServer(deps) {
|
|
|
49893
48442
|
tool(tool$subscribersRetrieve);
|
|
49894
48443
|
tool(tool$subscribersPatch);
|
|
49895
48444
|
tool(tool$subscribersDelete);
|
|
49896
|
-
tool(tool$subscribersList);
|
|
49897
|
-
tool(tool$subscribersUpsert);
|
|
49898
48445
|
tool(tool$subscribersCreateBulk);
|
|
49899
48446
|
tool(tool$topicsList);
|
|
49900
48447
|
tool(tool$topicsCreate);
|
|
@@ -49918,8 +48465,6 @@ function createMCPServer(deps) {
|
|
|
49918
48465
|
tool(tool$subscribersCredentialsUpdate);
|
|
49919
48466
|
tool(tool$subscribersCredentialsAppend);
|
|
49920
48467
|
tool(tool$subscribersCredentialsDelete);
|
|
49921
|
-
tool(tool$subscribersAuthenticationChatAccessOauth);
|
|
49922
|
-
tool(tool$subscribersAuthenticationChatAccessOauthCallBack);
|
|
49923
48468
|
tool(tool$subscribersMessagesUpdateAsSeen);
|
|
49924
48469
|
tool(tool$subscribersMessagesMarkAll);
|
|
49925
48470
|
tool(tool$subscribersMessagesMarkAllAs);
|
|
@@ -49930,9 +48475,6 @@ function createMCPServer(deps) {
|
|
|
49930
48475
|
tool(tool$topicsSubscriptionsCreate);
|
|
49931
48476
|
tool(tool$topicsSubscriptionsDelete);
|
|
49932
48477
|
tool(tool$topicsSubscribersRetrieve);
|
|
49933
|
-
tool(tool$integrationsWebhooksRetrieve);
|
|
49934
|
-
tool(tool$notificationsStatsGraph);
|
|
49935
|
-
tool(tool$notificationsStatsRetrieve);
|
|
49936
48478
|
return server;
|
|
49937
48479
|
}
|
|
49938
48480
|
var init_server2 = __esm(() => {
|
|
@@ -49947,23 +48489,17 @@ var init_server2 = __esm(() => {
|
|
|
49947
48489
|
init_integrationsListActive2();
|
|
49948
48490
|
init_integrationsSetAsPrimary2();
|
|
49949
48491
|
init_integrationsUpdate2();
|
|
49950
|
-
init_integrationsWebhooksRetrieve2();
|
|
49951
48492
|
init_messagesDelete2();
|
|
49952
48493
|
init_messagesDeleteByTransactionId2();
|
|
49953
48494
|
init_messagesRetrieve2();
|
|
49954
48495
|
init_notificationsList2();
|
|
49955
48496
|
init_notificationsRetrieve2();
|
|
49956
|
-
init_notificationsStatsGraph2();
|
|
49957
|
-
init_notificationsStatsRetrieve2();
|
|
49958
|
-
init_subscribersAuthenticationChatAccessOauth2();
|
|
49959
|
-
init_subscribersAuthenticationChatAccessOauthCallBack2();
|
|
49960
48497
|
init_subscribersCreate2();
|
|
49961
48498
|
init_subscribersCreateBulk2();
|
|
49962
48499
|
init_subscribersCredentialsAppend2();
|
|
49963
48500
|
init_subscribersCredentialsDelete2();
|
|
49964
48501
|
init_subscribersCredentialsUpdate2();
|
|
49965
48502
|
init_subscribersDelete2();
|
|
49966
|
-
init_subscribersList2();
|
|
49967
48503
|
init_subscribersMessagesMarkAll2();
|
|
49968
48504
|
init_subscribersMessagesMarkAllAs2();
|
|
49969
48505
|
init_subscribersMessagesUpdateAsSeen2();
|
|
@@ -49976,7 +48512,6 @@ var init_server2 = __esm(() => {
|
|
|
49976
48512
|
init_subscribersRetrieve2();
|
|
49977
48513
|
init_subscribersSearch2();
|
|
49978
48514
|
init_subscribersTopicsList2();
|
|
49979
|
-
init_subscribersUpsert2();
|
|
49980
48515
|
init_topicsCreate2();
|
|
49981
48516
|
init_topicsDelete2();
|
|
49982
48517
|
init_topicsGet2();
|
|
@@ -50018,7 +48553,7 @@ async function startStdio(flags) {
|
|
|
50018
48553
|
logger,
|
|
50019
48554
|
allowedTools: flags.tool,
|
|
50020
48555
|
scopes: flags.scope,
|
|
50021
|
-
...{ secretKey: flags["secret-key"] },
|
|
48556
|
+
...{ secretKey: flags["secret-key"] ?? "" },
|
|
50022
48557
|
serverURL: flags["server-url"],
|
|
50023
48558
|
serverIdx: flags["server-index"]
|
|
50024
48559
|
});
|
|
@@ -50037,7 +48572,7 @@ async function startSSE(flags) {
|
|
|
50037
48572
|
logger,
|
|
50038
48573
|
allowedTools: flags.tool,
|
|
50039
48574
|
scopes: flags.scope,
|
|
50040
|
-
...{ secretKey: flags["secret-key"] },
|
|
48575
|
+
...{ secretKey: flags["secret-key"] ?? "" },
|
|
50041
48576
|
serverURL: flags["server-url"],
|
|
50042
48577
|
serverIdx: flags["server-index"]
|
|
50043
48578
|
});
|
|
@@ -51182,7 +49717,7 @@ var routes = rn({
|
|
|
51182
49717
|
var app = Ve(routes, {
|
|
51183
49718
|
name: "mcp",
|
|
51184
49719
|
versionInfo: {
|
|
51185
|
-
currentVersion: "1.
|
|
49720
|
+
currentVersion: "1.1.0"
|
|
51186
49721
|
}
|
|
51187
49722
|
});
|
|
51188
49723
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -51190,5 +49725,5 @@ export {
|
|
|
51190
49725
|
app
|
|
51191
49726
|
};
|
|
51192
49727
|
|
|
51193
|
-
//# debugId=
|
|
49728
|
+
//# debugId=1ED11BE21BF0F1ED64756E2164756E21
|
|
51194
49729
|
//# sourceMappingURL=mcp-server.js.map
|