@novu/api 0.7.0 → 1.0.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/README.md +27 -17
- package/bin/mcp-server.js +1397 -746
- package/bin/mcp-server.js.map +62 -49
- package/docs/sdks/novumessages/README.md +2 -2
- package/docs/sdks/novusubscribers/README.md +1 -181
- package/docs/sdks/novutopics/README.md +88 -0
- package/docs/sdks/subscribers/README.md +1 -1
- package/docs/sdks/subscriptions/README.md +266 -0
- package/docs/sdks/topics/README.md +52 -52
- package/funcs/notificationsList.js +1 -0
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/subscribersCreate.d.ts +1 -1
- package/funcs/subscribersCreate.js +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts +1 -1
- package/funcs/subscribersMessagesMarkAll.js +1 -1
- package/funcs/subscribersTopicsList.d.ts +17 -0
- package/funcs/subscribersTopicsList.d.ts.map +1 -0
- package/funcs/subscribersTopicsList.js +151 -0
- package/funcs/subscribersTopicsList.js.map +1 -0
- package/funcs/topicsCreate.d.ts +3 -3
- package/funcs/topicsCreate.d.ts.map +1 -1
- package/funcs/topicsCreate.js +11 -14
- package/funcs/topicsCreate.js.map +1 -1
- package/funcs/topicsDelete.d.ts +2 -5
- package/funcs/topicsDelete.d.ts.map +1 -1
- package/funcs/topicsDelete.js +6 -6
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/{topicsRetrieve.d.ts → topicsGet.d.ts} +3 -6
- package/funcs/topicsGet.d.ts.map +1 -0
- package/funcs/{topicsRetrieve.js → topicsGet.js} +6 -9
- package/funcs/topicsGet.js.map +1 -0
- package/funcs/topicsList.d.ts +1 -4
- package/funcs/topicsList.d.ts.map +1 -1
- package/funcs/topicsList.js +9 -7
- package/funcs/topicsList.js.map +1 -1
- package/funcs/topicsSubscribersRetrieve.d.ts +1 -1
- package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
- package/funcs/topicsSubscribersRetrieve.js +4 -3
- package/funcs/topicsSubscribersRetrieve.js.map +1 -1
- package/funcs/topicsSubscriptionsCreate.d.ts +15 -0
- package/funcs/topicsSubscriptionsCreate.d.ts.map +1 -0
- package/funcs/{topicsSubscribersRemove.js → topicsSubscriptionsCreate.js} +14 -17
- package/funcs/topicsSubscriptionsCreate.js.map +1 -0
- package/funcs/{topicsSubscribersAssign.d.ts → topicsSubscriptionsDelete.d.ts} +3 -6
- package/funcs/topicsSubscriptionsDelete.d.ts.map +1 -0
- package/funcs/{topicsSubscribersAssign.js → topicsSubscriptionsDelete.js} +15 -20
- package/funcs/topicsSubscriptionsDelete.js.map +1 -0
- package/funcs/{topicsSubscribersRemove.d.ts → topicsSubscriptionsList.d.ts} +3 -7
- package/funcs/topicsSubscriptionsList.d.ts.map +1 -0
- package/funcs/topicsSubscriptionsList.js +147 -0
- package/funcs/topicsSubscriptionsList.js.map +1 -0
- package/funcs/{topicsRename.d.ts → topicsUpdate.d.ts} +3 -6
- package/funcs/topicsUpdate.d.ts.map +1 -0
- package/funcs/{topicsRename.js → topicsUpdate.js} +13 -16
- package/funcs/topicsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +17 -13
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/subscribersCreate.js +1 -1
- package/mcp-server/tools/subscribersCreate.js.map +1 -1
- package/mcp-server/tools/subscribersMessagesMarkAll.js +1 -1
- package/mcp-server/tools/subscribersMessagesMarkAll.js.map +1 -1
- package/mcp-server/tools/subscribersTopicsList.d.ts +8 -0
- package/mcp-server/tools/subscribersTopicsList.d.ts.map +1 -0
- package/mcp-server/tools/subscribersTopicsList.js +54 -0
- package/mcp-server/tools/subscribersTopicsList.js.map +1 -0
- package/mcp-server/tools/topicsCreate.d.ts +1 -1
- package/mcp-server/tools/topicsCreate.d.ts.map +1 -1
- package/mcp-server/tools/topicsCreate.js +4 -4
- package/mcp-server/tools/topicsCreate.js.map +1 -1
- package/mcp-server/tools/topicsDelete.js +3 -4
- package/mcp-server/tools/topicsDelete.js.map +1 -1
- package/mcp-server/tools/{topicsRetrieve.d.ts → topicsGet.d.ts} +2 -2
- package/mcp-server/tools/topicsGet.d.ts.map +1 -0
- package/mcp-server/tools/{topicsRetrieve.js → topicsGet.js} +7 -9
- package/mcp-server/tools/topicsGet.js.map +1 -0
- package/mcp-server/tools/topicsList.d.ts.map +1 -1
- package/mcp-server/tools/topicsList.js +1 -3
- package/mcp-server/tools/topicsList.js.map +1 -1
- package/mcp-server/tools/topicsSubscriptionsCreate.d.ts +11 -0
- package/mcp-server/tools/topicsSubscriptionsCreate.d.ts.map +1 -0
- package/mcp-server/tools/{topicsSubscribersRemove.js → topicsSubscriptionsCreate.js} +10 -11
- package/mcp-server/tools/topicsSubscriptionsCreate.js.map +1 -0
- package/mcp-server/tools/topicsSubscriptionsDelete.d.ts +11 -0
- package/mcp-server/tools/topicsSubscriptionsDelete.d.ts.map +1 -0
- package/mcp-server/tools/{topicsSubscribersAssign.js → topicsSubscriptionsDelete.js} +8 -10
- package/mcp-server/tools/topicsSubscriptionsDelete.js.map +1 -0
- package/mcp-server/tools/topicsSubscriptionsList.d.ts +8 -0
- package/mcp-server/tools/topicsSubscriptionsList.d.ts.map +1 -0
- package/mcp-server/tools/topicsSubscriptionsList.js +52 -0
- package/mcp-server/tools/topicsSubscriptionsList.js.map +1 -0
- package/mcp-server/tools/{topicsRename.d.ts → topicsUpdate.d.ts} +3 -3
- package/mcp-server/tools/{topicsRename.d.ts.map → topicsUpdate.d.ts.map} +1 -1
- package/mcp-server/tools/{topicsRename.js → topicsUpdate.js} +8 -10
- package/mcp-server/tools/topicsUpdate.js.map +1 -0
- package/models/components/activitynotificationresponsedto.d.ts +6 -0
- package/models/components/activitynotificationresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationresponsedto.js +3 -0
- package/models/components/activitynotificationresponsedto.js.map +1 -1
- package/models/components/activitytopicdto.d.ts +37 -0
- package/models/components/activitytopicdto.d.ts.map +1 -0
- package/models/components/activitytopicdto.js +70 -0
- package/models/components/activitytopicdto.js.map +1 -0
- package/models/components/createtopicsubscriptionsrequestdto.d.ts +32 -0
- package/models/components/createtopicsubscriptionsrequestdto.d.ts.map +1 -0
- package/models/components/createtopicsubscriptionsrequestdto.js +59 -0
- package/models/components/createtopicsubscriptionsrequestdto.js.map +1 -0
- package/models/components/createtopicsubscriptionsresponsedto.d.ts +45 -0
- package/models/components/createtopicsubscriptionsresponsedto.d.ts.map +1 -0
- package/models/components/createtopicsubscriptionsresponsedto.js +66 -0
- package/models/components/createtopicsubscriptionsresponsedto.js.map +1 -0
- package/models/components/createupdatetopicrequestdto.d.ts +37 -0
- package/models/components/createupdatetopicrequestdto.d.ts.map +1 -0
- package/models/components/{removesubscribersrequestdto.js → createupdatetopicrequestdto.js} +21 -19
- package/models/components/createupdatetopicrequestdto.js.map +1 -0
- package/models/components/deletetopicresponsedto.d.ts +32 -0
- package/models/components/deletetopicresponsedto.d.ts.map +1 -0
- package/models/components/{createtopicrequestdto.js → deletetopicresponsedto.js} +19 -21
- package/models/components/deletetopicresponsedto.js.map +1 -0
- package/models/components/deletetopicsubscriptionsrequestdto.d.ts +32 -0
- package/models/components/deletetopicsubscriptionsrequestdto.d.ts.map +1 -0
- package/models/components/deletetopicsubscriptionsrequestdto.js +59 -0
- package/models/components/deletetopicsubscriptionsrequestdto.js.map +1 -0
- package/models/components/deletetopicsubscriptionsresponsedto.d.ts +45 -0
- package/models/components/deletetopicsubscriptionsresponsedto.d.ts.map +1 -0
- package/models/components/deletetopicsubscriptionsresponsedto.js +66 -0
- package/models/components/deletetopicsubscriptionsresponsedto.js.map +1 -0
- package/models/components/index.d.ts +17 -10
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +17 -10
- package/models/components/index.js.map +1 -1
- package/models/components/listtopicsresponsedto.d.ts +43 -0
- package/models/components/listtopicsresponsedto.d.ts.map +1 -0
- package/models/components/listtopicsresponsedto.js +64 -0
- package/models/components/listtopicsresponsedto.js.map +1 -0
- package/models/components/listtopicsubscriptionsresponsedto.d.ts +43 -0
- package/models/components/listtopicsubscriptionsresponsedto.d.ts.map +1 -0
- package/models/components/listtopicsubscriptionsresponsedto.js +64 -0
- package/models/components/listtopicsubscriptionsresponsedto.js.map +1 -0
- package/models/components/metadto.d.ts +42 -0
- package/models/components/metadto.d.ts.map +1 -0
- package/models/components/{addsubscribersrequestdto.js → metadto.js} +23 -19
- package/models/components/metadto.js.map +1 -0
- package/models/components/subscriberdto.d.ts +57 -0
- package/models/components/subscriberdto.d.ts.map +1 -0
- package/models/components/subscriberdto.js +78 -0
- package/models/components/subscriberdto.js.map +1 -0
- package/models/components/subscriptiondto.d.ts +109 -0
- package/models/components/subscriptiondto.d.ts.map +1 -0
- package/models/components/subscriptiondto.js +122 -0
- package/models/components/subscriptiondto.js.map +1 -0
- package/models/components/subscriptionerrordto.d.ts +42 -0
- package/models/components/subscriptionerrordto.d.ts.map +1 -0
- package/models/components/{failedassignmentsdto.js → subscriptionerrordto.js} +23 -19
- package/models/components/subscriptionerrordto.js.map +1 -0
- package/models/components/subscriptionsdeleteerrordto.d.ts +42 -0
- package/models/components/subscriptionsdeleteerrordto.d.ts.map +1 -0
- package/models/components/subscriptionsdeleteerrordto.js +63 -0
- package/models/components/subscriptionsdeleteerrordto.js.map +1 -0
- package/models/components/topicdto.d.ts +13 -10
- package/models/components/topicdto.d.ts.map +1 -1
- package/models/components/topicdto.js +4 -14
- package/models/components/topicdto.js.map +1 -1
- package/models/components/topicresponsedto.d.ts +52 -0
- package/models/components/topicresponsedto.d.ts.map +1 -0
- package/models/components/{createtopicresponsedto.js → topicresponsedto.js} +25 -19
- package/models/components/topicresponsedto.js.map +1 -0
- package/models/components/topicsubscriptionresponsedto.d.ts +49 -0
- package/models/components/topicsubscriptionresponsedto.d.ts.map +1 -0
- package/models/components/topicsubscriptionresponsedto.js +76 -0
- package/models/components/topicsubscriptionresponsedto.js.map +1 -0
- package/models/components/updatetopicrequestdto.d.ts +32 -0
- package/models/components/{renametopicrequestdto.d.ts.map → updatetopicrequestdto.d.ts.map} +1 -1
- package/models/components/{renametopicrequestdto.js → updatetopicrequestdto.js} +17 -17
- package/models/components/{renametopicrequestdto.js.map → updatetopicrequestdto.js.map} +1 -1
- package/models/operations/index.d.ts +7 -5
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +7 -5
- package/models/operations/index.js.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.d.ts +5 -0
- package/models/operations/notificationscontrollerlistnotifications.d.ts.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.js +2 -0
- package/models/operations/notificationscontrollerlistnotifications.js.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscribertopics.d.ts +136 -0
- package/models/operations/subscriberscontrollerlistsubscribertopics.d.ts.map +1 -0
- package/models/operations/subscriberscontrollerlistsubscribertopics.js +146 -0
- package/models/operations/subscriberscontrollerlistsubscribertopics.js.map +1 -0
- package/models/operations/topicscontrollercreatetopicsubscriptions.d.ts +71 -0
- package/models/operations/topicscontrollercreatetopicsubscriptions.d.ts.map +1 -0
- package/models/operations/topicscontrollercreatetopicsubscriptions.js +114 -0
- package/models/operations/topicscontrollercreatetopicsubscriptions.js.map +1 -0
- package/models/operations/topicscontrollerdeletetopic.d.ts +4 -1
- package/models/operations/topicscontrollerdeletetopic.d.ts.map +1 -1
- package/models/operations/topicscontrollerdeletetopic.js +5 -0
- package/models/operations/topicscontrollerdeletetopic.js.map +1 -1
- package/models/operations/topicscontrollerdeletetopicsubscriptions.d.ts +71 -0
- package/models/operations/topicscontrollerdeletetopicsubscriptions.d.ts.map +1 -0
- package/models/operations/topicscontrollerdeletetopicsubscriptions.js +114 -0
- package/models/operations/topicscontrollerdeletetopicsubscriptions.js.map +1 -0
- package/models/operations/topicscontrollergettopic.d.ts +3 -3
- package/models/operations/topicscontrollergettopic.d.ts.map +1 -1
- package/models/operations/topicscontrollergettopic.js +2 -2
- package/models/operations/topicscontrollergettopic.js.map +1 -1
- package/models/operations/topicscontrollerlisttopics.d.ts +66 -9
- package/models/operations/topicscontrollerlisttopics.d.ts.map +1 -1
- package/models/operations/topicscontrollerlisttopics.js +41 -7
- package/models/operations/topicscontrollerlisttopics.js.map +1 -1
- package/models/operations/topicscontrollerlisttopicsubscriptions.d.ts +136 -0
- package/models/operations/topicscontrollerlisttopicsubscriptions.d.ts.map +1 -0
- package/models/operations/topicscontrollerlisttopicsubscriptions.js +148 -0
- package/models/operations/topicscontrollerlisttopicsubscriptions.js.map +1 -0
- package/models/operations/topicscontrollerupdatetopic.d.ts +71 -0
- package/models/operations/{topicscontrollerrenametopic.d.ts.map → topicscontrollerupdatetopic.d.ts.map} +1 -1
- package/models/operations/topicscontrollerupdatetopic.js +114 -0
- package/models/operations/{topicscontrollerrenametopic.js.map → topicscontrollerupdatetopic.js.map} +1 -1
- package/models/operations/topicscontrollerupserttopic.d.ts +66 -0
- package/models/operations/{topicscontrollercreatetopic.d.ts.map → topicscontrollerupserttopic.d.ts.map} +1 -1
- package/models/operations/topicscontrollerupserttopic.js +112 -0
- package/models/operations/topicscontrollerupserttopic.js.map +1 -0
- package/models/operations/topicsv1controllergettopicsubscriber.d.ts +74 -0
- package/models/operations/topicsv1controllergettopicsubscriber.d.ts.map +1 -0
- package/models/operations/topicsv1controllergettopicsubscriber.js +112 -0
- package/models/operations/topicsv1controllergettopicsubscriber.js.map +1 -0
- package/package.json +1 -1
- package/sdk/novumessages.d.ts +1 -1
- package/sdk/novumessages.js +1 -1
- package/sdk/novusubscribers.d.ts +1 -16
- package/sdk/novusubscribers.d.ts.map +1 -1
- package/sdk/novusubscribers.js +0 -20
- package/sdk/novusubscribers.js.map +1 -1
- package/sdk/novutopics.d.ts +12 -0
- package/sdk/novutopics.d.ts.map +1 -0
- package/sdk/novutopics.js +22 -0
- package/sdk/novutopics.js.map +1 -0
- package/sdk/sdk.d.ts +2 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/subscribers.d.ts +4 -1
- package/sdk/subscribers.d.ts.map +1 -1
- package/sdk/subscribers.js +5 -1
- package/sdk/subscribers.js.map +1 -1
- package/sdk/subscriptions.d.ts +18 -0
- package/sdk/subscriptions.d.ts.map +1 -0
- package/sdk/subscriptions.js +33 -0
- package/sdk/subscriptions.js.map +1 -0
- package/sdk/topics.d.ts +14 -23
- package/sdk/topics.d.ts.map +1 -1
- package/sdk/topics.js +22 -30
- package/sdk/topics.js.map +1 -1
- package/sources/json-development.json +2720 -1282
- package/src/funcs/notificationsList.ts +1 -0
- package/src/funcs/subscribersCreate.ts +1 -1
- package/src/funcs/subscribersMessagesMarkAll.ts +1 -1
- package/src/funcs/subscribersTopicsList.ts +238 -0
- package/src/funcs/topicsCreate.ts +19 -18
- package/src/funcs/topicsDelete.ts +9 -13
- package/src/funcs/{topicsRetrieve.ts → topicsGet.ts} +3 -6
- package/src/funcs/topicsList.ts +9 -7
- package/src/funcs/topicsSubscribersRetrieve.ts +8 -9
- package/src/funcs/{topicsSubscribersAssign.ts → topicsSubscriptionsCreate.ts} +22 -21
- package/src/funcs/{topicsSubscribersRemove.ts → topicsSubscriptionsDelete.ts} +22 -27
- package/src/funcs/topicsSubscriptionsList.ts +232 -0
- package/src/funcs/{topicsRename.ts → topicsUpdate.ts} +15 -18
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +17 -13
- package/src/mcp-server/tools/subscribersCreate.ts +1 -1
- package/src/mcp-server/tools/subscribersMessagesMarkAll.ts +1 -1
- package/src/mcp-server/tools/subscribersTopicsList.ts +38 -0
- package/src/mcp-server/tools/topicsCreate.ts +5 -4
- package/src/mcp-server/tools/topicsDelete.ts +4 -4
- package/src/mcp-server/tools/{topicsRetrieve.ts → topicsGet.ts} +5 -7
- package/src/mcp-server/tools/topicsList.ts +1 -3
- package/src/mcp-server/tools/{topicsSubscribersRemove.ts → topicsSubscriptionsCreate.ts} +12 -11
- package/src/mcp-server/tools/{topicsSubscribersAssign.ts → topicsSubscriptionsDelete.ts} +8 -9
- package/src/mcp-server/tools/topicsSubscriptionsList.ts +36 -0
- package/src/mcp-server/tools/{topicsRename.ts → topicsUpdate.ts} +7 -9
- package/src/models/components/activitynotificationresponsedto.ts +13 -0
- package/src/models/components/activitytopicdto.ts +85 -0
- package/src/models/components/createtopicsubscriptionsrequestdto.ts +73 -0
- package/src/models/components/createtopicsubscriptionsresponsedto.ts +106 -0
- package/src/models/components/createupdatetopicrequestdto.ts +78 -0
- package/src/models/components/deletetopicresponsedto.ts +69 -0
- package/src/models/components/deletetopicsubscriptionsrequestdto.ts +73 -0
- package/src/models/components/deletetopicsubscriptionsresponsedto.ts +106 -0
- package/src/models/components/index.ts +17 -10
- package/src/models/components/listtopicsresponsedto.ts +89 -0
- package/src/models/components/listtopicsubscriptionsresponsedto.ts +92 -0
- package/src/models/components/metadto.ts +76 -0
- package/src/models/components/subscriberdto.ts +109 -0
- package/src/models/components/subscriptiondto.ts +213 -0
- package/src/models/components/subscriptionerrordto.ts +83 -0
- package/src/models/components/subscriptionsdeleteerrordto.ts +85 -0
- package/src/models/components/topicdto.ts +17 -24
- package/src/models/components/topicresponsedto.ts +106 -0
- package/src/models/components/topicsubscriptionresponsedto.ts +113 -0
- package/src/models/components/updatetopicrequestdto.ts +69 -0
- package/src/models/operations/index.ts +7 -5
- package/src/models/operations/notificationscontrollerlistnotifications.ts +7 -0
- package/src/models/operations/subscriberscontrollerlistsubscribertopics.ts +271 -0
- package/src/models/operations/topicscontrollercreatetopicsubscriptions.ts +197 -0
- package/src/models/operations/topicscontrollerdeletetopic.ts +8 -1
- package/src/models/operations/topicscontrollerdeletetopicsubscriptions.ts +197 -0
- package/src/models/operations/topicscontrollergettopic.ts +5 -5
- package/src/models/operations/topicscontrollerlisttopics.ts +93 -15
- package/src/models/operations/topicscontrollerlisttopicsubscriptions.ts +284 -0
- package/src/models/operations/topicscontrollerupdatetopic.ts +173 -0
- package/src/models/operations/topicscontrollerupserttopic.ts +168 -0
- package/src/models/operations/topicsv1controllergettopicsubscriber.ts +191 -0
- package/src/sdk/novumessages.ts +1 -1
- package/src/sdk/novusubscribers.ts +1 -46
- package/src/sdk/novutopics.ts +27 -0
- package/src/sdk/sdk.ts +5 -5
- package/src/sdk/subscribers.ts +7 -1
- package/src/sdk/subscriptions.ts +65 -0
- package/src/sdk/topics.ts +37 -43
- package/funcs/topicsRename.d.ts.map +0 -1
- package/funcs/topicsRename.js.map +0 -1
- package/funcs/topicsRetrieve.d.ts.map +0 -1
- package/funcs/topicsRetrieve.js.map +0 -1
- package/funcs/topicsSubscribersAssign.d.ts.map +0 -1
- package/funcs/topicsSubscribersAssign.js.map +0 -1
- package/funcs/topicsSubscribersRemove.d.ts.map +0 -1
- package/funcs/topicsSubscribersRemove.js.map +0 -1
- package/mcp-server/tools/topicsRename.js.map +0 -1
- package/mcp-server/tools/topicsRetrieve.d.ts.map +0 -1
- package/mcp-server/tools/topicsRetrieve.js.map +0 -1
- package/mcp-server/tools/topicsSubscribersAssign.d.ts +0 -11
- package/mcp-server/tools/topicsSubscribersAssign.d.ts.map +0 -1
- package/mcp-server/tools/topicsSubscribersAssign.js.map +0 -1
- package/mcp-server/tools/topicsSubscribersRemove.d.ts +0 -11
- package/mcp-server/tools/topicsSubscribersRemove.d.ts.map +0 -1
- package/mcp-server/tools/topicsSubscribersRemove.js.map +0 -1
- package/models/components/addsubscribersrequestdto.d.ts +0 -32
- package/models/components/addsubscribersrequestdto.d.ts.map +0 -1
- package/models/components/addsubscribersrequestdto.js.map +0 -1
- package/models/components/assignsubscribertotopicdto.d.ts +0 -38
- package/models/components/assignsubscribertotopicdto.d.ts.map +0 -1
- package/models/components/assignsubscribertotopicdto.js +0 -62
- package/models/components/assignsubscribertotopicdto.js.map +0 -1
- package/models/components/createtopicrequestdto.d.ts +0 -37
- package/models/components/createtopicrequestdto.d.ts.map +0 -1
- package/models/components/createtopicrequestdto.js.map +0 -1
- package/models/components/createtopicresponsedto.d.ts +0 -37
- package/models/components/createtopicresponsedto.d.ts.map +0 -1
- package/models/components/createtopicresponsedto.js.map +0 -1
- package/models/components/failedassignmentsdto.d.ts +0 -32
- package/models/components/failedassignmentsdto.d.ts.map +0 -1
- package/models/components/failedassignmentsdto.js.map +0 -1
- package/models/components/filtertopicsresponsedto.d.ts +0 -48
- package/models/components/filtertopicsresponsedto.d.ts.map +0 -1
- package/models/components/filtertopicsresponsedto.js +0 -66
- package/models/components/filtertopicsresponsedto.js.map +0 -1
- package/models/components/gettopicresponsedto.d.ts +0 -39
- package/models/components/gettopicresponsedto.d.ts.map +0 -1
- package/models/components/gettopicresponsedto.js +0 -82
- package/models/components/gettopicresponsedto.js.map +0 -1
- package/models/components/removesubscribersrequestdto.d.ts +0 -32
- package/models/components/removesubscribersrequestdto.d.ts.map +0 -1
- package/models/components/removesubscribersrequestdto.js.map +0 -1
- package/models/components/renametopicrequestdto.d.ts +0 -32
- package/models/components/renametopicresponsedto.d.ts +0 -39
- package/models/components/renametopicresponsedto.d.ts.map +0 -1
- package/models/components/renametopicresponsedto.js +0 -82
- package/models/components/renametopicresponsedto.js.map +0 -1
- package/models/operations/topicscontrollerassign.d.ts +0 -71
- package/models/operations/topicscontrollerassign.d.ts.map +0 -1
- package/models/operations/topicscontrollerassign.js +0 -114
- package/models/operations/topicscontrollerassign.js.map +0 -1
- package/models/operations/topicscontrollercreatetopic.d.ts +0 -66
- package/models/operations/topicscontrollercreatetopic.js +0 -112
- package/models/operations/topicscontrollercreatetopic.js.map +0 -1
- package/models/operations/topicscontrollergettopicsubscriber.d.ts +0 -74
- package/models/operations/topicscontrollergettopicsubscriber.d.ts.map +0 -1
- package/models/operations/topicscontrollergettopicsubscriber.js +0 -112
- package/models/operations/topicscontrollergettopicsubscriber.js.map +0 -1
- package/models/operations/topicscontrollerremovesubscribers.d.ts +0 -69
- package/models/operations/topicscontrollerremovesubscribers.d.ts.map +0 -1
- package/models/operations/topicscontrollerremovesubscribers.js +0 -110
- package/models/operations/topicscontrollerremovesubscribers.js.map +0 -1
- package/models/operations/topicscontrollerrenametopic.d.ts +0 -71
- package/models/operations/topicscontrollerrenametopic.js +0 -114
- package/src/models/components/addsubscribersrequestdto.ts +0 -69
- package/src/models/components/assignsubscribertotopicdto.ts +0 -82
- package/src/models/components/createtopicrequestdto.ts +0 -76
- package/src/models/components/createtopicresponsedto.ts +0 -85
- package/src/models/components/failedassignmentsdto.ts +0 -69
- package/src/models/components/filtertopicsresponsedto.ts +0 -96
- package/src/models/components/gettopicresponsedto.ts +0 -99
- package/src/models/components/removesubscribersrequestdto.ts +0 -71
- package/src/models/components/renametopicrequestdto.ts +0 -69
- package/src/models/components/renametopicresponsedto.ts +0 -99
- package/src/models/operations/topicscontrollerassign.ts +0 -168
- package/src/models/operations/topicscontrollercreatetopic.ts +0 -166
- package/src/models/operations/topicscontrollergettopicsubscriber.ts +0 -187
- package/src/models/operations/topicscontrollerremovesubscribers.ts +0 -183
- package/src/models/operations/topicscontrollerrenametopic.ts +0 -173
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
6
|
+
import { topicsGet } from "../../funcs/topicsGet.js";
|
|
7
7
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
8
|
|
|
9
9
|
const args = {
|
|
@@ -11,14 +11,12 @@ const args = {
|
|
|
11
11
|
idempotencyKey: z.string().optional(),
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
export const tool$
|
|
15
|
-
name: "topics-
|
|
16
|
-
description: `Get topic
|
|
17
|
-
|
|
18
|
-
Get a topic by its topic key`,
|
|
14
|
+
export const tool$topicsGet: ToolDefinition<typeof args> = {
|
|
15
|
+
name: "topics-get",
|
|
16
|
+
description: `Get topic by key`,
|
|
19
17
|
args,
|
|
20
18
|
tool: async (client, args, ctx) => {
|
|
21
|
-
const [result, apiCall] = await
|
|
19
|
+
const [result, apiCall] = await topicsGet(
|
|
22
20
|
client,
|
|
23
21
|
args.topicKey,
|
|
24
22
|
args.idempotencyKey,
|
|
@@ -12,9 +12,7 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$topicsList: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "topics-list",
|
|
15
|
-
description: `Get
|
|
16
|
-
|
|
17
|
-
Returns a list of topics that can be paginated using the \`page\` query parameter and filtered by the topic key with the \`key\` query parameter`,
|
|
15
|
+
description: `Get topics list`,
|
|
18
16
|
args,
|
|
19
17
|
tool: async (client, args, ctx) => {
|
|
20
18
|
const [result, apiCall] = await topicsList(
|
|
@@ -3,27 +3,26 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
6
|
+
import { topicsSubscriptionsCreate } from "../../funcs/topicsSubscriptionsCreate.js";
|
|
7
7
|
import * as components from "../../models/components/index.js";
|
|
8
8
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
9
9
|
|
|
10
10
|
const args = {
|
|
11
|
-
|
|
12
|
-
components.
|
|
11
|
+
createTopicSubscriptionsRequestDto:
|
|
12
|
+
components.CreateTopicSubscriptionsRequestDto$inboundSchema,
|
|
13
13
|
topicKey: z.string(),
|
|
14
14
|
idempotencyKey: z.string().optional(),
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
export const tool$
|
|
18
|
-
name: "topics-
|
|
19
|
-
description:
|
|
20
|
-
|
|
21
|
-
Remove subscribers from a topic`,
|
|
17
|
+
export const tool$topicsSubscriptionsCreate: ToolDefinition<typeof args> = {
|
|
18
|
+
name: "topics-subscriptions-create",
|
|
19
|
+
description:
|
|
20
|
+
`Create topic subscriptions, if the topic does not exist, it will be created.`,
|
|
22
21
|
args,
|
|
23
22
|
tool: async (client, args, ctx) => {
|
|
24
|
-
const [result, apiCall] = await
|
|
23
|
+
const [result, apiCall] = await topicsSubscriptionsCreate(
|
|
25
24
|
client,
|
|
26
|
-
args.
|
|
25
|
+
args.createTopicSubscriptionsRequestDto,
|
|
27
26
|
args.topicKey,
|
|
28
27
|
args.idempotencyKey,
|
|
29
28
|
{ fetchOptions: { signal: ctx.signal } },
|
|
@@ -36,6 +35,8 @@ Remove subscribers from a topic`,
|
|
|
36
35
|
};
|
|
37
36
|
}
|
|
38
37
|
|
|
39
|
-
|
|
38
|
+
const value = result.value.result;
|
|
39
|
+
|
|
40
|
+
return formatResult(value, apiCall);
|
|
40
41
|
},
|
|
41
42
|
};
|
|
@@ -3,26 +3,25 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
6
|
+
import { topicsSubscriptionsDelete } from "../../funcs/topicsSubscriptionsDelete.js";
|
|
7
7
|
import * as components from "../../models/components/index.js";
|
|
8
8
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
9
9
|
|
|
10
10
|
const args = {
|
|
11
|
-
|
|
11
|
+
deleteTopicSubscriptionsRequestDto:
|
|
12
|
+
components.DeleteTopicSubscriptionsRequestDto$inboundSchema,
|
|
12
13
|
topicKey: z.string(),
|
|
13
14
|
idempotencyKey: z.string().optional(),
|
|
14
15
|
};
|
|
15
16
|
|
|
16
|
-
export const tool$
|
|
17
|
-
name: "topics-
|
|
18
|
-
description: `
|
|
19
|
-
|
|
20
|
-
Add subscribers to a topic by key`,
|
|
17
|
+
export const tool$topicsSubscriptionsDelete: ToolDefinition<typeof args> = {
|
|
18
|
+
name: "topics-subscriptions-delete",
|
|
19
|
+
description: `Delete topic subscriptions`,
|
|
21
20
|
args,
|
|
22
21
|
tool: async (client, args, ctx) => {
|
|
23
|
-
const [result, apiCall] = await
|
|
22
|
+
const [result, apiCall] = await topicsSubscriptionsDelete(
|
|
24
23
|
client,
|
|
25
|
-
args.
|
|
24
|
+
args.deleteTopicSubscriptionsRequestDto,
|
|
26
25
|
args.topicKey,
|
|
27
26
|
args.idempotencyKey,
|
|
28
27
|
{ fetchOptions: { signal: ctx.signal } },
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { topicsSubscriptionsList } from "../../funcs/topicsSubscriptionsList.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request:
|
|
11
|
+
operations.TopicsControllerListTopicSubscriptionsRequest$inboundSchema,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const tool$topicsSubscriptionsList: ToolDefinition<typeof args> = {
|
|
15
|
+
name: "topics-subscriptions-list",
|
|
16
|
+
description: `List topic subscriptions`,
|
|
17
|
+
args,
|
|
18
|
+
tool: async (client, args, ctx) => {
|
|
19
|
+
const [result, apiCall] = await topicsSubscriptionsList(
|
|
20
|
+
client,
|
|
21
|
+
args.request,
|
|
22
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
23
|
+
).$inspect();
|
|
24
|
+
|
|
25
|
+
if (!result.ok) {
|
|
26
|
+
return {
|
|
27
|
+
content: [{ type: "text", text: result.error.message }],
|
|
28
|
+
isError: true,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const value = result.value.result;
|
|
33
|
+
|
|
34
|
+
return formatResult(value, apiCall);
|
|
35
|
+
},
|
|
36
|
+
};
|
|
@@ -3,26 +3,24 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
6
|
+
import { topicsUpdate } from "../../funcs/topicsUpdate.js";
|
|
7
7
|
import * as components from "../../models/components/index.js";
|
|
8
8
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
9
9
|
|
|
10
10
|
const args = {
|
|
11
|
-
|
|
11
|
+
updateTopicRequestDto: components.UpdateTopicRequestDto$inboundSchema,
|
|
12
12
|
topicKey: z.string(),
|
|
13
13
|
idempotencyKey: z.string().optional(),
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
export const tool$
|
|
17
|
-
name: "topics-
|
|
18
|
-
description: `
|
|
19
|
-
|
|
20
|
-
Rename a topic by providing a new name`,
|
|
16
|
+
export const tool$topicsUpdate: ToolDefinition<typeof args> = {
|
|
17
|
+
name: "topics-update",
|
|
18
|
+
description: `Update topic by key`,
|
|
21
19
|
args,
|
|
22
20
|
tool: async (client, args, ctx) => {
|
|
23
|
-
const [result, apiCall] = await
|
|
21
|
+
const [result, apiCall] = await topicsUpdate(
|
|
24
22
|
client,
|
|
25
|
-
args.
|
|
23
|
+
args.updateTopicRequestDto,
|
|
26
24
|
args.topicKey,
|
|
27
25
|
args.idempotencyKey,
|
|
28
26
|
{ fetchOptions: { signal: ctx.signal } },
|
|
@@ -25,6 +25,12 @@ import {
|
|
|
25
25
|
ActivityNotificationTemplateResponseDto$Outbound,
|
|
26
26
|
ActivityNotificationTemplateResponseDto$outboundSchema,
|
|
27
27
|
} from "./activitynotificationtemplateresponsedto.js";
|
|
28
|
+
import {
|
|
29
|
+
ActivityTopicDto,
|
|
30
|
+
ActivityTopicDto$inboundSchema,
|
|
31
|
+
ActivityTopicDto$Outbound,
|
|
32
|
+
ActivityTopicDto$outboundSchema,
|
|
33
|
+
} from "./activitytopicdto.js";
|
|
28
34
|
import {
|
|
29
35
|
StepTypeEnum,
|
|
30
36
|
StepTypeEnum$inboundSchema,
|
|
@@ -112,6 +118,10 @@ export type ActivityNotificationResponseDto = {
|
|
|
112
118
|
* To field for subscriber definition
|
|
113
119
|
*/
|
|
114
120
|
to?: ActivityNotificationResponseDtoTo | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* Topics of the notification
|
|
123
|
+
*/
|
|
124
|
+
topics?: Array<ActivityTopicDto> | undefined;
|
|
115
125
|
};
|
|
116
126
|
|
|
117
127
|
/** @internal */
|
|
@@ -288,6 +298,7 @@ export const ActivityNotificationResponseDto$inboundSchema: z.ZodType<
|
|
|
288
298
|
tags: z.array(z.string()).optional(),
|
|
289
299
|
controls: z.lazy(() => Controls$inboundSchema).optional(),
|
|
290
300
|
to: z.lazy(() => ActivityNotificationResponseDtoTo$inboundSchema).optional(),
|
|
301
|
+
topics: z.array(ActivityTopicDto$inboundSchema).optional(),
|
|
291
302
|
}).transform((v) => {
|
|
292
303
|
return remap$(v, {
|
|
293
304
|
"_id": "id",
|
|
@@ -318,6 +329,7 @@ export type ActivityNotificationResponseDto$Outbound = {
|
|
|
318
329
|
tags?: Array<string> | undefined;
|
|
319
330
|
controls?: Controls$Outbound | undefined;
|
|
320
331
|
to?: ActivityNotificationResponseDtoTo$Outbound | undefined;
|
|
332
|
+
topics?: Array<ActivityTopicDto$Outbound> | undefined;
|
|
321
333
|
};
|
|
322
334
|
|
|
323
335
|
/** @internal */
|
|
@@ -345,6 +357,7 @@ export const ActivityNotificationResponseDto$outboundSchema: z.ZodType<
|
|
|
345
357
|
tags: z.array(z.string()).optional(),
|
|
346
358
|
controls: z.lazy(() => Controls$outboundSchema).optional(),
|
|
347
359
|
to: z.lazy(() => ActivityNotificationResponseDtoTo$outboundSchema).optional(),
|
|
360
|
+
topics: z.array(ActivityTopicDto$outboundSchema).optional(),
|
|
348
361
|
}).transform((v) => {
|
|
349
362
|
return remap$(v, {
|
|
350
363
|
id: "_id",
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type ActivityTopicDto = {
|
|
12
|
+
/**
|
|
13
|
+
* Internal Topic ID of the notification
|
|
14
|
+
*/
|
|
15
|
+
topicId: string;
|
|
16
|
+
/**
|
|
17
|
+
* Topic Key of the notification
|
|
18
|
+
*/
|
|
19
|
+
topicKey: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const ActivityTopicDto$inboundSchema: z.ZodType<
|
|
24
|
+
ActivityTopicDto,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
_topicId: z.string(),
|
|
29
|
+
topicKey: z.string(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"_topicId": "topicId",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type ActivityTopicDto$Outbound = {
|
|
38
|
+
_topicId: string;
|
|
39
|
+
topicKey: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const ActivityTopicDto$outboundSchema: z.ZodType<
|
|
44
|
+
ActivityTopicDto$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
ActivityTopicDto
|
|
47
|
+
> = z.object({
|
|
48
|
+
topicId: z.string(),
|
|
49
|
+
topicKey: z.string(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return remap$(v, {
|
|
52
|
+
topicId: "_topicId",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
export namespace ActivityTopicDto$ {
|
|
61
|
+
/** @deprecated use `ActivityTopicDto$inboundSchema` instead. */
|
|
62
|
+
export const inboundSchema = ActivityTopicDto$inboundSchema;
|
|
63
|
+
/** @deprecated use `ActivityTopicDto$outboundSchema` instead. */
|
|
64
|
+
export const outboundSchema = ActivityTopicDto$outboundSchema;
|
|
65
|
+
/** @deprecated use `ActivityTopicDto$Outbound` instead. */
|
|
66
|
+
export type Outbound = ActivityTopicDto$Outbound;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function activityTopicDtoToJSON(
|
|
70
|
+
activityTopicDto: ActivityTopicDto,
|
|
71
|
+
): string {
|
|
72
|
+
return JSON.stringify(
|
|
73
|
+
ActivityTopicDto$outboundSchema.parse(activityTopicDto),
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function activityTopicDtoFromJSON(
|
|
78
|
+
jsonString: string,
|
|
79
|
+
): SafeParseResult<ActivityTopicDto, SDKValidationError> {
|
|
80
|
+
return safeParse(
|
|
81
|
+
jsonString,
|
|
82
|
+
(x) => ActivityTopicDto$inboundSchema.parse(JSON.parse(x)),
|
|
83
|
+
`Failed to parse 'ActivityTopicDto' from JSON`,
|
|
84
|
+
);
|
|
85
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type CreateTopicSubscriptionsRequestDto = {
|
|
11
|
+
/**
|
|
12
|
+
* List of subscriber identifiers to subscribe to the topic (max: 100)
|
|
13
|
+
*/
|
|
14
|
+
subscriberIds: Array<string>;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const CreateTopicSubscriptionsRequestDto$inboundSchema: z.ZodType<
|
|
19
|
+
CreateTopicSubscriptionsRequestDto,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
subscriberIds: z.array(z.string()),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type CreateTopicSubscriptionsRequestDto$Outbound = {
|
|
28
|
+
subscriberIds: Array<string>;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const CreateTopicSubscriptionsRequestDto$outboundSchema: z.ZodType<
|
|
33
|
+
CreateTopicSubscriptionsRequestDto$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
CreateTopicSubscriptionsRequestDto
|
|
36
|
+
> = z.object({
|
|
37
|
+
subscriberIds: z.array(z.string()),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
+
*/
|
|
44
|
+
export namespace CreateTopicSubscriptionsRequestDto$ {
|
|
45
|
+
/** @deprecated use `CreateTopicSubscriptionsRequestDto$inboundSchema` instead. */
|
|
46
|
+
export const inboundSchema = CreateTopicSubscriptionsRequestDto$inboundSchema;
|
|
47
|
+
/** @deprecated use `CreateTopicSubscriptionsRequestDto$outboundSchema` instead. */
|
|
48
|
+
export const outboundSchema =
|
|
49
|
+
CreateTopicSubscriptionsRequestDto$outboundSchema;
|
|
50
|
+
/** @deprecated use `CreateTopicSubscriptionsRequestDto$Outbound` instead. */
|
|
51
|
+
export type Outbound = CreateTopicSubscriptionsRequestDto$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function createTopicSubscriptionsRequestDtoToJSON(
|
|
55
|
+
createTopicSubscriptionsRequestDto: CreateTopicSubscriptionsRequestDto,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
CreateTopicSubscriptionsRequestDto$outboundSchema.parse(
|
|
59
|
+
createTopicSubscriptionsRequestDto,
|
|
60
|
+
),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function createTopicSubscriptionsRequestDtoFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<CreateTopicSubscriptionsRequestDto, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) =>
|
|
70
|
+
CreateTopicSubscriptionsRequestDto$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'CreateTopicSubscriptionsRequestDto' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
MetaDto,
|
|
11
|
+
MetaDto$inboundSchema,
|
|
12
|
+
MetaDto$Outbound,
|
|
13
|
+
MetaDto$outboundSchema,
|
|
14
|
+
} from "./metadto.js";
|
|
15
|
+
import {
|
|
16
|
+
SubscriptionDto,
|
|
17
|
+
SubscriptionDto$inboundSchema,
|
|
18
|
+
SubscriptionDto$Outbound,
|
|
19
|
+
SubscriptionDto$outboundSchema,
|
|
20
|
+
} from "./subscriptiondto.js";
|
|
21
|
+
import {
|
|
22
|
+
SubscriptionErrorDto,
|
|
23
|
+
SubscriptionErrorDto$inboundSchema,
|
|
24
|
+
SubscriptionErrorDto$Outbound,
|
|
25
|
+
SubscriptionErrorDto$outboundSchema,
|
|
26
|
+
} from "./subscriptionerrordto.js";
|
|
27
|
+
|
|
28
|
+
export type CreateTopicSubscriptionsResponseDto = {
|
|
29
|
+
/**
|
|
30
|
+
* The list of successfully created subscriptions
|
|
31
|
+
*/
|
|
32
|
+
data: Array<SubscriptionDto>;
|
|
33
|
+
/**
|
|
34
|
+
* Metadata about the operation
|
|
35
|
+
*/
|
|
36
|
+
meta: MetaDto;
|
|
37
|
+
/**
|
|
38
|
+
* The list of errors for failed subscription attempts
|
|
39
|
+
*/
|
|
40
|
+
errors?: Array<SubscriptionErrorDto> | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const CreateTopicSubscriptionsResponseDto$inboundSchema: z.ZodType<
|
|
45
|
+
CreateTopicSubscriptionsResponseDto,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
unknown
|
|
48
|
+
> = z.object({
|
|
49
|
+
data: z.array(SubscriptionDto$inboundSchema),
|
|
50
|
+
meta: MetaDto$inboundSchema,
|
|
51
|
+
errors: z.array(SubscriptionErrorDto$inboundSchema).optional(),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type CreateTopicSubscriptionsResponseDto$Outbound = {
|
|
56
|
+
data: Array<SubscriptionDto$Outbound>;
|
|
57
|
+
meta: MetaDto$Outbound;
|
|
58
|
+
errors?: Array<SubscriptionErrorDto$Outbound> | undefined;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const CreateTopicSubscriptionsResponseDto$outboundSchema: z.ZodType<
|
|
63
|
+
CreateTopicSubscriptionsResponseDto$Outbound,
|
|
64
|
+
z.ZodTypeDef,
|
|
65
|
+
CreateTopicSubscriptionsResponseDto
|
|
66
|
+
> = z.object({
|
|
67
|
+
data: z.array(SubscriptionDto$outboundSchema),
|
|
68
|
+
meta: MetaDto$outboundSchema,
|
|
69
|
+
errors: z.array(SubscriptionErrorDto$outboundSchema).optional(),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
+
*/
|
|
76
|
+
export namespace CreateTopicSubscriptionsResponseDto$ {
|
|
77
|
+
/** @deprecated use `CreateTopicSubscriptionsResponseDto$inboundSchema` instead. */
|
|
78
|
+
export const inboundSchema =
|
|
79
|
+
CreateTopicSubscriptionsResponseDto$inboundSchema;
|
|
80
|
+
/** @deprecated use `CreateTopicSubscriptionsResponseDto$outboundSchema` instead. */
|
|
81
|
+
export const outboundSchema =
|
|
82
|
+
CreateTopicSubscriptionsResponseDto$outboundSchema;
|
|
83
|
+
/** @deprecated use `CreateTopicSubscriptionsResponseDto$Outbound` instead. */
|
|
84
|
+
export type Outbound = CreateTopicSubscriptionsResponseDto$Outbound;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function createTopicSubscriptionsResponseDtoToJSON(
|
|
88
|
+
createTopicSubscriptionsResponseDto: CreateTopicSubscriptionsResponseDto,
|
|
89
|
+
): string {
|
|
90
|
+
return JSON.stringify(
|
|
91
|
+
CreateTopicSubscriptionsResponseDto$outboundSchema.parse(
|
|
92
|
+
createTopicSubscriptionsResponseDto,
|
|
93
|
+
),
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function createTopicSubscriptionsResponseDtoFromJSON(
|
|
98
|
+
jsonString: string,
|
|
99
|
+
): SafeParseResult<CreateTopicSubscriptionsResponseDto, SDKValidationError> {
|
|
100
|
+
return safeParse(
|
|
101
|
+
jsonString,
|
|
102
|
+
(x) =>
|
|
103
|
+
CreateTopicSubscriptionsResponseDto$inboundSchema.parse(JSON.parse(x)),
|
|
104
|
+
`Failed to parse 'CreateTopicSubscriptionsResponseDto' from JSON`,
|
|
105
|
+
);
|
|
106
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type CreateUpdateTopicRequestDto = {
|
|
11
|
+
/**
|
|
12
|
+
* The unique key identifier for the topic. The key must contain only alphanumeric characters (a-z, A-Z, 0-9), hyphens (-), underscores (_), colons (:), or be a valid email address.
|
|
13
|
+
*/
|
|
14
|
+
key: string;
|
|
15
|
+
/**
|
|
16
|
+
* The display name for the topic
|
|
17
|
+
*/
|
|
18
|
+
name?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const CreateUpdateTopicRequestDto$inboundSchema: z.ZodType<
|
|
23
|
+
CreateUpdateTopicRequestDto,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
key: z.string(),
|
|
28
|
+
name: z.string().optional(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type CreateUpdateTopicRequestDto$Outbound = {
|
|
33
|
+
key: string;
|
|
34
|
+
name?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const CreateUpdateTopicRequestDto$outboundSchema: z.ZodType<
|
|
39
|
+
CreateUpdateTopicRequestDto$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
CreateUpdateTopicRequestDto
|
|
42
|
+
> = z.object({
|
|
43
|
+
key: z.string(),
|
|
44
|
+
name: z.string().optional(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export namespace CreateUpdateTopicRequestDto$ {
|
|
52
|
+
/** @deprecated use `CreateUpdateTopicRequestDto$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = CreateUpdateTopicRequestDto$inboundSchema;
|
|
54
|
+
/** @deprecated use `CreateUpdateTopicRequestDto$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = CreateUpdateTopicRequestDto$outboundSchema;
|
|
56
|
+
/** @deprecated use `CreateUpdateTopicRequestDto$Outbound` instead. */
|
|
57
|
+
export type Outbound = CreateUpdateTopicRequestDto$Outbound;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function createUpdateTopicRequestDtoToJSON(
|
|
61
|
+
createUpdateTopicRequestDto: CreateUpdateTopicRequestDto,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
CreateUpdateTopicRequestDto$outboundSchema.parse(
|
|
65
|
+
createUpdateTopicRequestDto,
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function createUpdateTopicRequestDtoFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<CreateUpdateTopicRequestDto, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => CreateUpdateTopicRequestDto$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'CreateUpdateTopicRequestDto' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type DeleteTopicResponseDto = {
|
|
11
|
+
/**
|
|
12
|
+
* Indicates if the operation was acknowledged
|
|
13
|
+
*/
|
|
14
|
+
acknowledged: boolean;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const DeleteTopicResponseDto$inboundSchema: z.ZodType<
|
|
19
|
+
DeleteTopicResponseDto,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
acknowledged: z.boolean(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type DeleteTopicResponseDto$Outbound = {
|
|
28
|
+
acknowledged: boolean;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const DeleteTopicResponseDto$outboundSchema: z.ZodType<
|
|
33
|
+
DeleteTopicResponseDto$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
DeleteTopicResponseDto
|
|
36
|
+
> = z.object({
|
|
37
|
+
acknowledged: z.boolean(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
+
*/
|
|
44
|
+
export namespace DeleteTopicResponseDto$ {
|
|
45
|
+
/** @deprecated use `DeleteTopicResponseDto$inboundSchema` instead. */
|
|
46
|
+
export const inboundSchema = DeleteTopicResponseDto$inboundSchema;
|
|
47
|
+
/** @deprecated use `DeleteTopicResponseDto$outboundSchema` instead. */
|
|
48
|
+
export const outboundSchema = DeleteTopicResponseDto$outboundSchema;
|
|
49
|
+
/** @deprecated use `DeleteTopicResponseDto$Outbound` instead. */
|
|
50
|
+
export type Outbound = DeleteTopicResponseDto$Outbound;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function deleteTopicResponseDtoToJSON(
|
|
54
|
+
deleteTopicResponseDto: DeleteTopicResponseDto,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
DeleteTopicResponseDto$outboundSchema.parse(deleteTopicResponseDto),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function deleteTopicResponseDtoFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<DeleteTopicResponseDto, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => DeleteTopicResponseDto$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'DeleteTopicResponseDto' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|