@novu/api 2.6.5 → 2.6.6
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 +124 -0
- package/REACT_QUERY.md +354 -0
- package/README.md +1032 -0
- package/docs/sdks/authentication/README.md +247 -0
- package/docs/sdks/credentials/README.md +372 -0
- package/docs/sdks/integrations/README.md +631 -0
- package/docs/sdks/messages/README.md +318 -0
- package/docs/sdks/notifications/README.md +226 -0
- package/docs/sdks/novu/README.md +598 -0
- package/docs/sdks/novumessages/README.md +329 -0
- package/docs/sdks/novunotifications/README.md +235 -0
- package/docs/sdks/novusubscribers/README.md +340 -0
- package/docs/sdks/preferences/README.md +221 -0
- package/docs/sdks/properties/README.md +111 -0
- package/docs/sdks/stats/README.md +226 -0
- package/docs/sdks/subscribers/README.md +763 -0
- package/docs/sdks/topics/README.md +541 -0
- package/docs/sdks/webhooks/README.md +117 -0
- package/docs/sdks/workflows/README.md +1123 -0
- package/funcs/cancel.d.ts.map +1 -1
- package/funcs/cancel.js +1 -0
- package/funcs/cancel.js.map +1 -1
- package/funcs/environmentsGenerateSession.d.ts +10 -0
- package/funcs/environmentsGenerateSession.d.ts.map +1 -0
- package/funcs/environmentsGenerateSession.js +131 -0
- package/funcs/environmentsGenerateSession.js.map +1 -0
- package/funcs/environmentsRetrieve.d.ts +10 -0
- package/funcs/environmentsRetrieve.d.ts.map +1 -0
- package/funcs/environmentsRetrieve.js +131 -0
- package/funcs/environmentsRetrieve.js.map +1 -0
- package/funcs/integrationsCreate.d.ts.map +1 -1
- package/funcs/integrationsCreate.js +1 -0
- package/funcs/integrationsCreate.js.map +1 -1
- package/funcs/integrationsDelete.d.ts.map +1 -1
- package/funcs/integrationsDelete.js +1 -0
- package/funcs/integrationsDelete.js.map +1 -1
- package/funcs/integrationsList.d.ts.map +1 -1
- package/funcs/integrationsList.js +1 -0
- package/funcs/integrationsList.js.map +1 -1
- package/funcs/integrationsListActive.d.ts.map +1 -1
- package/funcs/integrationsListActive.js +1 -0
- package/funcs/integrationsListActive.js.map +1 -1
- package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
- package/funcs/integrationsSetAsPrimary.js +1 -0
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.d.ts.map +1 -1
- package/funcs/integrationsUpdate.js +1 -0
- package/funcs/integrationsUpdate.js.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.d.ts.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.js +1 -0
- package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
- package/funcs/messagesDelete.d.ts.map +1 -1
- package/funcs/messagesDelete.js +1 -0
- package/funcs/messagesDelete.js.map +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
- package/funcs/messagesDeleteByTransactionId.js +1 -0
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/messagesRetrieve.d.ts.map +1 -1
- package/funcs/messagesRetrieve.js +1 -0
- package/funcs/messagesRetrieve.js.map +1 -1
- package/funcs/notificationsList.d.ts.map +1 -1
- package/funcs/notificationsList.js +2 -0
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/notificationsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsRetrieve.js +1 -0
- package/funcs/notificationsRetrieve.js.map +1 -1
- package/funcs/notificationsStatsGraph.d.ts.map +1 -1
- package/funcs/notificationsStatsGraph.js +1 -0
- package/funcs/notificationsStatsGraph.js.map +1 -1
- package/funcs/notificationsStatsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsStatsRetrieve.js +1 -0
- package/funcs/notificationsStatsRetrieve.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.js +1 -0
- package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +1 -0
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
- package/funcs/subscribersCreate.d.ts.map +1 -1
- package/funcs/subscribersCreate.js +2 -1
- package/funcs/subscribersCreate.js.map +1 -1
- package/funcs/subscribersCreateBulk.d.ts.map +1 -1
- package/funcs/subscribersCreateBulk.js +1 -0
- package/funcs/subscribersCreateBulk.js.map +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
- package/funcs/subscribersCredentialsAppend.js +1 -0
- package/funcs/subscribersCredentialsAppend.js.map +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
- package/funcs/subscribersCredentialsDelete.js +1 -0
- package/funcs/subscribersCredentialsDelete.js.map +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
- package/funcs/subscribersCredentialsUpdate.js +1 -0
- package/funcs/subscribersCredentialsUpdate.js.map +1 -1
- package/funcs/subscribersDelete.d.ts.map +1 -1
- package/funcs/subscribersDelete.js +1 -0
- package/funcs/subscribersDelete.js.map +1 -1
- package/funcs/subscribersList.d.ts.map +1 -1
- package/funcs/subscribersList.js +1 -0
- package/funcs/subscribersList.js.map +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAll.js +1 -0
- package/funcs/subscribersMessagesMarkAll.js.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +1 -0
- package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +1 -0
- package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +1 -0
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +1 -0
- package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
- package/funcs/subscribersPatch.d.ts.map +1 -1
- package/funcs/subscribersPatch.js +1 -0
- package/funcs/subscribersPatch.js.map +1 -1
- package/funcs/subscribersPreferencesList.d.ts.map +1 -1
- package/funcs/subscribersPreferencesList.js +1 -0
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdate.js +1 -0
- package/funcs/subscribersPreferencesUpdate.js.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js +1 -0
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
- package/funcs/subscribersRetrieve.d.ts.map +1 -1
- package/funcs/subscribersRetrieve.js +1 -0
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/subscribersSearch.d.ts.map +1 -1
- package/funcs/subscribersSearch.js +1 -0
- package/funcs/subscribersSearch.js.map +1 -1
- package/funcs/topicsCreate.d.ts.map +1 -1
- package/funcs/topicsCreate.js +1 -0
- package/funcs/topicsCreate.js.map +1 -1
- package/funcs/topicsDelete.d.ts.map +1 -1
- package/funcs/topicsDelete.js +1 -0
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/topicsList.d.ts.map +1 -1
- package/funcs/topicsList.js +1 -0
- package/funcs/topicsList.js.map +1 -1
- package/funcs/topicsRename.d.ts.map +1 -1
- package/funcs/topicsRename.js +1 -0
- package/funcs/topicsRename.js.map +1 -1
- package/funcs/topicsRetrieve.d.ts.map +1 -1
- package/funcs/topicsRetrieve.js +1 -0
- package/funcs/topicsRetrieve.js.map +1 -1
- package/funcs/topicsSubscribersAssign.d.ts.map +1 -1
- package/funcs/topicsSubscribersAssign.js +1 -0
- package/funcs/topicsSubscribersAssign.js.map +1 -1
- package/funcs/topicsSubscribersRemove.d.ts.map +1 -1
- package/funcs/topicsSubscribersRemove.js +1 -0
- package/funcs/topicsSubscribersRemove.js.map +1 -1
- package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
- package/funcs/topicsSubscribersRetrieve.js +1 -0
- package/funcs/topicsSubscribersRetrieve.js.map +1 -1
- package/funcs/trigger.d.ts.map +1 -1
- package/funcs/trigger.js +1 -0
- package/funcs/trigger.js.map +1 -1
- package/funcs/triggerBroadcast.d.ts.map +1 -1
- package/funcs/triggerBroadcast.js +1 -0
- package/funcs/triggerBroadcast.js.map +1 -1
- package/funcs/triggerBulk.d.ts.map +1 -1
- package/funcs/triggerBulk.js +1 -0
- package/funcs/triggerBulk.js.map +1 -1
- package/funcs/workflowsCreate.d.ts.map +1 -1
- package/funcs/workflowsCreate.js +1 -0
- package/funcs/workflowsCreate.js.map +1 -1
- package/funcs/workflowsDelete.d.ts.map +1 -1
- package/funcs/workflowsDelete.js +1 -0
- package/funcs/workflowsDelete.js.map +1 -1
- package/funcs/workflowsGetStepData.d.ts.map +1 -1
- package/funcs/workflowsGetStepData.js +1 -0
- package/funcs/workflowsGetStepData.js.map +1 -1
- package/funcs/workflowsGetWorkflowTestData.d.ts.map +1 -1
- package/funcs/workflowsGetWorkflowTestData.js +1 -0
- package/funcs/workflowsGetWorkflowTestData.js.map +1 -1
- package/funcs/workflowsRetrieve.d.ts.map +1 -1
- package/funcs/workflowsRetrieve.js +1 -0
- package/funcs/workflowsRetrieve.js.map +1 -1
- package/funcs/workflowsUpdate.d.ts.map +1 -1
- package/funcs/workflowsUpdate.js +1 -0
- package/funcs/workflowsUpdate.js.map +1 -1
- package/funcs/workflowsWorkflowControllerGeneratePreview.d.ts.map +1 -1
- package/funcs/workflowsWorkflowControllerGeneratePreview.js +1 -0
- package/funcs/workflowsWorkflowControllerGeneratePreview.js.map +1 -1
- package/funcs/workflowsWorkflowControllerPatchWorkflow.d.ts.map +1 -1
- package/funcs/workflowsWorkflowControllerPatchWorkflow.js +1 -0
- package/funcs/workflowsWorkflowControllerPatchWorkflow.js.map +1 -1
- package/funcs/workflowsWorkflowControllerPatchWorkflowStepData.d.ts.map +1 -1
- package/funcs/workflowsWorkflowControllerPatchWorkflowStepData.js +1 -0
- package/funcs/workflowsWorkflowControllerPatchWorkflowStepData.js.map +1 -1
- package/funcs/workflowsWorkflowControllerSearchWorkflows.d.ts.map +1 -1
- package/funcs/workflowsWorkflowControllerSearchWorkflows.js +1 -0
- package/funcs/workflowsWorkflowControllerSearchWorkflows.js.map +1 -1
- package/funcs/workflowsWorkflowControllerSync.d.ts.map +1 -1
- package/funcs/workflowsWorkflowControllerSync.js +1 -0
- package/funcs/workflowsWorkflowControllerSync.js.map +1 -1
- package/hooks/types.d.ts +1 -0
- package/hooks/types.d.ts.map +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js.map +1 -1
- package/models/components/activitynotificationtemplateresponsedto.d.ts +6 -0
- package/models/components/activitynotificationtemplateresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationtemplateresponsedto.js +3 -0
- package/models/components/activitynotificationtemplateresponsedto.js.map +1 -1
- package/models/components/createsubscriberrequestdto.d.ts +28 -50
- package/models/components/createsubscriberrequestdto.d.ts.map +1 -1
- package/models/components/createsubscriberrequestdto.js +17 -41
- package/models/components/createsubscriberrequestdto.js.map +1 -1
- package/models/components/getenvironmenttagsdto.d.ts +29 -0
- package/models/components/getenvironmenttagsdto.d.ts.map +1 -0
- package/models/components/getenvironmenttagsdto.js +59 -0
- package/models/components/getenvironmenttagsdto.js.map +1 -0
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/patchsubscriberrequestdto.d.ts +0 -5
- package/models/components/patchsubscriberrequestdto.d.ts.map +1 -1
- package/models/components/patchsubscriberrequestdto.js +0 -2
- package/models/components/patchsubscriberrequestdto.js.map +1 -1
- package/models/components/sessiongeneratedresponsedto.d.ts +32 -0
- package/models/components/sessiongeneratedresponsedto.d.ts.map +1 -0
- package/models/components/sessiongeneratedresponsedto.js +59 -0
- package/models/components/sessiongeneratedresponsedto.js.map +1 -0
- package/models/components/subscriberpayloaddto.d.ts +5 -0
- package/models/components/subscriberpayloaddto.d.ts.map +1 -1
- package/models/components/subscriberpayloaddto.js +2 -0
- package/models/components/subscriberpayloaddto.js.map +1 -1
- package/models/components/triggereventresponsedto.d.ts +3 -0
- package/models/components/triggereventresponsedto.d.ts.map +1 -1
- package/models/components/triggereventresponsedto.js +1 -0
- package/models/components/triggereventresponsedto.js.map +1 -1
- package/models/components/workfloworiginenum.d.ts +37 -0
- package/models/components/workfloworiginenum.d.ts.map +1 -0
- package/models/components/workfloworiginenum.js +54 -0
- package/models/components/workfloworiginenum.js.map +1 -0
- package/models/operations/environmentscontrollergeneratesession.d.ts +66 -0
- package/models/operations/environmentscontrollergeneratesession.d.ts.map +1 -0
- package/models/operations/environmentscontrollergeneratesession.js +110 -0
- package/models/operations/environmentscontrollergeneratesession.js.map +1 -0
- package/models/operations/environmentscontrollergetenvironmenttags.d.ts +66 -0
- package/models/operations/environmentscontrollergetenvironmenttags.d.ts.map +1 -0
- package/models/operations/environmentscontrollergetenvironmenttags.js +110 -0
- package/models/operations/environmentscontrollergetenvironmenttags.js.map +1 -0
- 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/package.json +1 -1
- package/react-query/environmentsGenerateSession.d.ts +18 -0
- package/react-query/environmentsGenerateSession.d.ts.map +1 -0
- package/react-query/environmentsGenerateSession.js +41 -0
- package/react-query/environmentsGenerateSession.js.map +1 -0
- package/react-query/environmentsRetrieve.d.ts +30 -0
- package/react-query/environmentsRetrieve.d.ts.map +1 -0
- package/react-query/environmentsRetrieve.js +70 -0
- package/react-query/environmentsRetrieve.js.map +1 -0
- package/react-query/notificationsList.d.ts +3 -0
- package/react-query/notificationsList.d.ts.map +1 -1
- package/react-query/notificationsList.js +1 -0
- package/react-query/notificationsList.js.map +1 -1
- package/sdk/environments.d.ts +13 -0
- package/sdk/environments.d.ts.map +1 -0
- package/sdk/environments.js +26 -0
- package/sdk/environments.js.map +1 -0
- package/sources/json-development.json +32352 -0
- package/src/funcs/cancel.ts +1 -0
- package/src/funcs/integrationsCreate.ts +1 -0
- package/src/funcs/integrationsDelete.ts +1 -0
- package/src/funcs/integrationsList.ts +1 -0
- package/src/funcs/integrationsListActive.ts +1 -0
- package/src/funcs/integrationsSetAsPrimary.ts +1 -0
- package/src/funcs/integrationsUpdate.ts +1 -0
- package/src/funcs/integrationsWebhooksRetrieve.ts +1 -0
- package/src/funcs/messagesDelete.ts +1 -0
- package/src/funcs/messagesDeleteByTransactionId.ts +1 -0
- package/src/funcs/messagesRetrieve.ts +1 -0
- package/src/funcs/notificationsList.ts +2 -0
- package/src/funcs/notificationsRetrieve.ts +1 -0
- package/src/funcs/notificationsStatsGraph.ts +1 -0
- package/src/funcs/notificationsStatsRetrieve.ts +1 -0
- package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +1 -0
- package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +1 -0
- package/src/funcs/subscribersCreate.ts +2 -1
- package/src/funcs/subscribersCreateBulk.ts +1 -0
- package/src/funcs/subscribersCredentialsAppend.ts +1 -0
- package/src/funcs/subscribersCredentialsDelete.ts +1 -0
- package/src/funcs/subscribersCredentialsUpdate.ts +1 -0
- package/src/funcs/subscribersDelete.ts +1 -0
- package/src/funcs/subscribersList.ts +1 -0
- package/src/funcs/subscribersMessagesMarkAll.ts +1 -0
- package/src/funcs/subscribersMessagesMarkAllAs.ts +1 -0
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +1 -0
- package/src/funcs/subscribersNotificationsFeed.ts +1 -0
- package/src/funcs/subscribersNotificationsUnseenCount.ts +1 -0
- package/src/funcs/subscribersPatch.ts +1 -0
- package/src/funcs/subscribersPreferencesList.ts +1 -0
- package/src/funcs/subscribersPreferencesUpdate.ts +1 -0
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +1 -0
- package/src/funcs/subscribersRetrieve.ts +1 -0
- package/src/funcs/subscribersSearch.ts +1 -0
- package/src/funcs/topicsCreate.ts +1 -0
- package/src/funcs/topicsDelete.ts +1 -0
- package/src/funcs/topicsList.ts +1 -0
- package/src/funcs/topicsRename.ts +1 -0
- package/src/funcs/topicsRetrieve.ts +1 -0
- package/src/funcs/topicsSubscribersAssign.ts +1 -0
- package/src/funcs/topicsSubscribersRemove.ts +1 -0
- package/src/funcs/topicsSubscribersRetrieve.ts +1 -0
- package/src/funcs/trigger.ts +1 -0
- package/src/funcs/triggerBroadcast.ts +1 -0
- package/src/funcs/triggerBulk.ts +1 -0
- package/src/funcs/workflowsCreate.ts +1 -0
- package/src/funcs/workflowsDelete.ts +1 -0
- package/src/funcs/workflowsGetStepData.ts +1 -0
- package/src/funcs/workflowsGetWorkflowTestData.ts +1 -0
- package/src/funcs/workflowsRetrieve.ts +1 -0
- package/src/funcs/workflowsUpdate.ts +1 -0
- package/src/funcs/workflowsWorkflowControllerGeneratePreview.ts +1 -0
- package/src/funcs/workflowsWorkflowControllerPatchWorkflow.ts +1 -0
- package/src/funcs/workflowsWorkflowControllerPatchWorkflowStepData.ts +1 -0
- package/src/funcs/workflowsWorkflowControllerSearchWorkflows.ts +1 -0
- package/src/funcs/workflowsWorkflowControllerSync.ts +1 -0
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/lib/security.ts +0 -1
- package/src/models/components/activitynotificationtemplateresponsedto.ts +12 -0
- package/src/models/components/createsubscriberrequestdto.ts +41 -111
- package/src/models/components/index.ts +1 -0
- package/src/models/components/patchsubscriberrequestdto.ts +0 -7
- package/src/models/components/subscriberpayloaddto.ts +7 -0
- package/src/models/components/triggereventresponsedto.ts +1 -0
- package/src/models/components/workfloworiginenum.ts +40 -0
- package/src/models/operations/notificationscontrollerlistnotifications.ts +7 -0
- package/src/react-query/notificationsList.ts +4 -0
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
# Topics
|
|
2
|
+
(*topics*)
|
|
3
|
+
|
|
4
|
+
## Overview
|
|
5
|
+
|
|
6
|
+
Topics are a way to group subscribers together so that they can be notified of events at once. A topic is identified by a custom key. This can be helpful for things like sending out marketing emails or notifying users of new features. Topics can also be used to send notifications to the subscribers who have been grouped together based on their interests, location, activities and much more.
|
|
7
|
+
<https://docs.novu.co/subscribers/topics>
|
|
8
|
+
|
|
9
|
+
### Available Operations
|
|
10
|
+
|
|
11
|
+
* [create](#create) - Topic creation
|
|
12
|
+
* [list](#list) - Get topic list filtered
|
|
13
|
+
* [delete](#delete) - Delete topic
|
|
14
|
+
* [retrieve](#retrieve) - Get topic
|
|
15
|
+
* [rename](#rename) - Rename a topic
|
|
16
|
+
|
|
17
|
+
## create
|
|
18
|
+
|
|
19
|
+
Create a topic
|
|
20
|
+
|
|
21
|
+
### Example Usage
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { Novu } from "@novu/api";
|
|
25
|
+
|
|
26
|
+
const novu = new Novu({
|
|
27
|
+
security: {
|
|
28
|
+
secretKey: "YOUR_SECRET_KEY_HERE",
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
async function run() {
|
|
33
|
+
const result = await novu.topics.create({
|
|
34
|
+
key: "<key>",
|
|
35
|
+
name: "<value>",
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
// Handle the result
|
|
39
|
+
console.log(result);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
run();
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Standalone function
|
|
46
|
+
|
|
47
|
+
The standalone function version of this method:
|
|
48
|
+
|
|
49
|
+
```typescript
|
|
50
|
+
import { NovuCore } from "@novu/api/core.js";
|
|
51
|
+
import { topicsCreate } from "@novu/api/funcs/topicsCreate.js";
|
|
52
|
+
|
|
53
|
+
// Use `NovuCore` for best tree-shaking performance.
|
|
54
|
+
// You can create one instance of it to use across an application.
|
|
55
|
+
const novu = new NovuCore({
|
|
56
|
+
security: {
|
|
57
|
+
secretKey: "YOUR_SECRET_KEY_HERE",
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
async function run() {
|
|
62
|
+
const res = await topicsCreate(novu, {
|
|
63
|
+
key: "<key>",
|
|
64
|
+
name: "<value>",
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
if (!res.ok) {
|
|
68
|
+
throw res.error;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const { value: result } = res;
|
|
72
|
+
|
|
73
|
+
// Handle the result
|
|
74
|
+
console.log(result);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
run();
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### React hooks and utilities
|
|
81
|
+
|
|
82
|
+
This method can be used in React components through the following hooks and
|
|
83
|
+
associated utilities.
|
|
84
|
+
|
|
85
|
+
> Check out [this guide][hook-guide] for information about each of the utilities
|
|
86
|
+
> below and how to get started using React hooks.
|
|
87
|
+
|
|
88
|
+
[hook-guide]: ../../../REACT_QUERY.md
|
|
89
|
+
|
|
90
|
+
```tsx
|
|
91
|
+
import {
|
|
92
|
+
// Mutation hook for triggering the API call.
|
|
93
|
+
useTopicsCreateMutation
|
|
94
|
+
} from "@novu/api/react-query/topicsCreate.js";
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Parameters
|
|
98
|
+
|
|
99
|
+
| Parameter | Type | Required | Description |
|
|
100
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
101
|
+
| `createTopicRequestDto` | [components.CreateTopicRequestDto](../../models/components/createtopicrequestdto.md) | :heavy_check_mark: | N/A |
|
|
102
|
+
| `idempotencyKey` | *string* | :heavy_minus_sign: | A header for idempotency purposes |
|
|
103
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
104
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
105
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
106
|
+
|
|
107
|
+
### Response
|
|
108
|
+
|
|
109
|
+
**Promise\<[operations.TopicsControllerCreateTopicResponse](../../models/operations/topicscontrollercreatetopicresponse.md)\>**
|
|
110
|
+
|
|
111
|
+
### Errors
|
|
112
|
+
|
|
113
|
+
| Error Type | Status Code | Content Type |
|
|
114
|
+
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
115
|
+
| errors.ErrorDto | 414 | application/json |
|
|
116
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
117
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
118
|
+
| errors.ErrorDto | 500 | application/json |
|
|
119
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
120
|
+
|
|
121
|
+
## list
|
|
122
|
+
|
|
123
|
+
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
|
|
124
|
+
|
|
125
|
+
### Example Usage
|
|
126
|
+
|
|
127
|
+
```typescript
|
|
128
|
+
import { Novu } from "@novu/api";
|
|
129
|
+
|
|
130
|
+
const novu = new Novu({
|
|
131
|
+
security: {
|
|
132
|
+
secretKey: "YOUR_SECRET_KEY_HERE",
|
|
133
|
+
},
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
async function run() {
|
|
137
|
+
const result = await novu.topics.list({
|
|
138
|
+
key: "exampleKey",
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
// Handle the result
|
|
142
|
+
console.log(result);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
run();
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### Standalone function
|
|
149
|
+
|
|
150
|
+
The standalone function version of this method:
|
|
151
|
+
|
|
152
|
+
```typescript
|
|
153
|
+
import { NovuCore } from "@novu/api/core.js";
|
|
154
|
+
import { topicsList } from "@novu/api/funcs/topicsList.js";
|
|
155
|
+
|
|
156
|
+
// Use `NovuCore` for best tree-shaking performance.
|
|
157
|
+
// You can create one instance of it to use across an application.
|
|
158
|
+
const novu = new NovuCore({
|
|
159
|
+
security: {
|
|
160
|
+
secretKey: "YOUR_SECRET_KEY_HERE",
|
|
161
|
+
},
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
async function run() {
|
|
165
|
+
const res = await topicsList(novu, {
|
|
166
|
+
key: "exampleKey",
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
if (!res.ok) {
|
|
170
|
+
throw res.error;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const { value: result } = res;
|
|
174
|
+
|
|
175
|
+
// Handle the result
|
|
176
|
+
console.log(result);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
run();
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### React hooks and utilities
|
|
183
|
+
|
|
184
|
+
This method can be used in React components through the following hooks and
|
|
185
|
+
associated utilities.
|
|
186
|
+
|
|
187
|
+
> Check out [this guide][hook-guide] for information about each of the utilities
|
|
188
|
+
> below and how to get started using React hooks.
|
|
189
|
+
|
|
190
|
+
[hook-guide]: ../../../REACT_QUERY.md
|
|
191
|
+
|
|
192
|
+
```tsx
|
|
193
|
+
import {
|
|
194
|
+
// Query hooks for fetching data.
|
|
195
|
+
useTopicsList,
|
|
196
|
+
useTopicsListSuspense,
|
|
197
|
+
|
|
198
|
+
// Utility for prefetching data during server-side rendering and in React
|
|
199
|
+
// Server Components that will be immediately available to client components
|
|
200
|
+
// using the hooks.
|
|
201
|
+
prefetchTopicsList,
|
|
202
|
+
|
|
203
|
+
// Utilities to invalidate the query cache for this query in response to
|
|
204
|
+
// mutations and other user actions.
|
|
205
|
+
invalidateTopicsList,
|
|
206
|
+
invalidateAllTopicsList,
|
|
207
|
+
} from "@novu/api/react-query/topicsList.js";
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### Parameters
|
|
211
|
+
|
|
212
|
+
| Parameter | Type | Required | Description |
|
|
213
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
214
|
+
| `request` | [operations.TopicsControllerListTopicsRequest](../../models/operations/topicscontrollerlisttopicsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
215
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
216
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
217
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
218
|
+
|
|
219
|
+
### Response
|
|
220
|
+
|
|
221
|
+
**Promise\<[operations.TopicsControllerListTopicsResponse](../../models/operations/topicscontrollerlisttopicsresponse.md)\>**
|
|
222
|
+
|
|
223
|
+
### Errors
|
|
224
|
+
|
|
225
|
+
| Error Type | Status Code | Content Type |
|
|
226
|
+
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
227
|
+
| errors.ErrorDto | 414 | application/json |
|
|
228
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
229
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
230
|
+
| errors.ErrorDto | 500 | application/json |
|
|
231
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
232
|
+
|
|
233
|
+
## delete
|
|
234
|
+
|
|
235
|
+
Delete a topic by its topic key if it has no subscribers
|
|
236
|
+
|
|
237
|
+
### Example Usage
|
|
238
|
+
|
|
239
|
+
```typescript
|
|
240
|
+
import { Novu } from "@novu/api";
|
|
241
|
+
|
|
242
|
+
const novu = new Novu({
|
|
243
|
+
security: {
|
|
244
|
+
secretKey: "YOUR_SECRET_KEY_HERE",
|
|
245
|
+
},
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
async function run() {
|
|
249
|
+
const result = await novu.topics.delete("<value>");
|
|
250
|
+
|
|
251
|
+
// Handle the result
|
|
252
|
+
console.log(result);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
run();
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
### Standalone function
|
|
259
|
+
|
|
260
|
+
The standalone function version of this method:
|
|
261
|
+
|
|
262
|
+
```typescript
|
|
263
|
+
import { NovuCore } from "@novu/api/core.js";
|
|
264
|
+
import { topicsDelete } from "@novu/api/funcs/topicsDelete.js";
|
|
265
|
+
|
|
266
|
+
// Use `NovuCore` for best tree-shaking performance.
|
|
267
|
+
// You can create one instance of it to use across an application.
|
|
268
|
+
const novu = new NovuCore({
|
|
269
|
+
security: {
|
|
270
|
+
secretKey: "YOUR_SECRET_KEY_HERE",
|
|
271
|
+
},
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
async function run() {
|
|
275
|
+
const res = await topicsDelete(novu, "<value>");
|
|
276
|
+
|
|
277
|
+
if (!res.ok) {
|
|
278
|
+
throw res.error;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
const { value: result } = res;
|
|
282
|
+
|
|
283
|
+
// Handle the result
|
|
284
|
+
console.log(result);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
run();
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
### React hooks and utilities
|
|
291
|
+
|
|
292
|
+
This method can be used in React components through the following hooks and
|
|
293
|
+
associated utilities.
|
|
294
|
+
|
|
295
|
+
> Check out [this guide][hook-guide] for information about each of the utilities
|
|
296
|
+
> below and how to get started using React hooks.
|
|
297
|
+
|
|
298
|
+
[hook-guide]: ../../../REACT_QUERY.md
|
|
299
|
+
|
|
300
|
+
```tsx
|
|
301
|
+
import {
|
|
302
|
+
// Mutation hook for triggering the API call.
|
|
303
|
+
useTopicsDeleteMutation
|
|
304
|
+
} from "@novu/api/react-query/topicsDelete.js";
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
### Parameters
|
|
308
|
+
|
|
309
|
+
| Parameter | Type | Required | Description |
|
|
310
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
311
|
+
| `topicKey` | *string* | :heavy_check_mark: | The topic key |
|
|
312
|
+
| `idempotencyKey` | *string* | :heavy_minus_sign: | A header for idempotency purposes |
|
|
313
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
314
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
315
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
316
|
+
|
|
317
|
+
### Response
|
|
318
|
+
|
|
319
|
+
**Promise\<[operations.TopicsControllerDeleteTopicResponse](../../models/operations/topicscontrollerdeletetopicresponse.md)\>**
|
|
320
|
+
|
|
321
|
+
### Errors
|
|
322
|
+
|
|
323
|
+
| Error Type | Status Code | Content Type |
|
|
324
|
+
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
325
|
+
| errors.ErrorDto | 414 | application/json |
|
|
326
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
327
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
328
|
+
| errors.ErrorDto | 500 | application/json |
|
|
329
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
330
|
+
|
|
331
|
+
## retrieve
|
|
332
|
+
|
|
333
|
+
Get a topic by its topic key
|
|
334
|
+
|
|
335
|
+
### Example Usage
|
|
336
|
+
|
|
337
|
+
```typescript
|
|
338
|
+
import { Novu } from "@novu/api";
|
|
339
|
+
|
|
340
|
+
const novu = new Novu({
|
|
341
|
+
security: {
|
|
342
|
+
secretKey: "YOUR_SECRET_KEY_HERE",
|
|
343
|
+
},
|
|
344
|
+
});
|
|
345
|
+
|
|
346
|
+
async function run() {
|
|
347
|
+
const result = await novu.topics.retrieve("<value>");
|
|
348
|
+
|
|
349
|
+
// Handle the result
|
|
350
|
+
console.log(result);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
run();
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
### Standalone function
|
|
357
|
+
|
|
358
|
+
The standalone function version of this method:
|
|
359
|
+
|
|
360
|
+
```typescript
|
|
361
|
+
import { NovuCore } from "@novu/api/core.js";
|
|
362
|
+
import { topicsRetrieve } from "@novu/api/funcs/topicsRetrieve.js";
|
|
363
|
+
|
|
364
|
+
// Use `NovuCore` for best tree-shaking performance.
|
|
365
|
+
// You can create one instance of it to use across an application.
|
|
366
|
+
const novu = new NovuCore({
|
|
367
|
+
security: {
|
|
368
|
+
secretKey: "YOUR_SECRET_KEY_HERE",
|
|
369
|
+
},
|
|
370
|
+
});
|
|
371
|
+
|
|
372
|
+
async function run() {
|
|
373
|
+
const res = await topicsRetrieve(novu, "<value>");
|
|
374
|
+
|
|
375
|
+
if (!res.ok) {
|
|
376
|
+
throw res.error;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
const { value: result } = res;
|
|
380
|
+
|
|
381
|
+
// Handle the result
|
|
382
|
+
console.log(result);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
run();
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
### React hooks and utilities
|
|
389
|
+
|
|
390
|
+
This method can be used in React components through the following hooks and
|
|
391
|
+
associated utilities.
|
|
392
|
+
|
|
393
|
+
> Check out [this guide][hook-guide] for information about each of the utilities
|
|
394
|
+
> below and how to get started using React hooks.
|
|
395
|
+
|
|
396
|
+
[hook-guide]: ../../../REACT_QUERY.md
|
|
397
|
+
|
|
398
|
+
```tsx
|
|
399
|
+
import {
|
|
400
|
+
// Query hooks for fetching data.
|
|
401
|
+
useTopicsRetrieve,
|
|
402
|
+
useTopicsRetrieveSuspense,
|
|
403
|
+
|
|
404
|
+
// Utility for prefetching data during server-side rendering and in React
|
|
405
|
+
// Server Components that will be immediately available to client components
|
|
406
|
+
// using the hooks.
|
|
407
|
+
prefetchTopicsRetrieve,
|
|
408
|
+
|
|
409
|
+
// Utilities to invalidate the query cache for this query in response to
|
|
410
|
+
// mutations and other user actions.
|
|
411
|
+
invalidateTopicsRetrieve,
|
|
412
|
+
invalidateAllTopicsRetrieve,
|
|
413
|
+
} from "@novu/api/react-query/topicsRetrieve.js";
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
### Parameters
|
|
417
|
+
|
|
418
|
+
| Parameter | Type | Required | Description |
|
|
419
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
420
|
+
| `topicKey` | *string* | :heavy_check_mark: | The topic key |
|
|
421
|
+
| `idempotencyKey` | *string* | :heavy_minus_sign: | A header for idempotency purposes |
|
|
422
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
423
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
424
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
425
|
+
|
|
426
|
+
### Response
|
|
427
|
+
|
|
428
|
+
**Promise\<[operations.TopicsControllerGetTopicResponse](../../models/operations/topicscontrollergettopicresponse.md)\>**
|
|
429
|
+
|
|
430
|
+
### Errors
|
|
431
|
+
|
|
432
|
+
| Error Type | Status Code | Content Type |
|
|
433
|
+
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
434
|
+
| errors.ErrorDto | 414 | application/json |
|
|
435
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
436
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
437
|
+
| errors.ErrorDto | 500 | application/json |
|
|
438
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
439
|
+
|
|
440
|
+
## rename
|
|
441
|
+
|
|
442
|
+
Rename a topic by providing a new name
|
|
443
|
+
|
|
444
|
+
### Example Usage
|
|
445
|
+
|
|
446
|
+
```typescript
|
|
447
|
+
import { Novu } from "@novu/api";
|
|
448
|
+
|
|
449
|
+
const novu = new Novu({
|
|
450
|
+
security: {
|
|
451
|
+
secretKey: "YOUR_SECRET_KEY_HERE",
|
|
452
|
+
},
|
|
453
|
+
});
|
|
454
|
+
|
|
455
|
+
async function run() {
|
|
456
|
+
const result = await novu.topics.rename({
|
|
457
|
+
name: "<value>",
|
|
458
|
+
}, "<value>");
|
|
459
|
+
|
|
460
|
+
// Handle the result
|
|
461
|
+
console.log(result);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
run();
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
### Standalone function
|
|
468
|
+
|
|
469
|
+
The standalone function version of this method:
|
|
470
|
+
|
|
471
|
+
```typescript
|
|
472
|
+
import { NovuCore } from "@novu/api/core.js";
|
|
473
|
+
import { topicsRename } from "@novu/api/funcs/topicsRename.js";
|
|
474
|
+
|
|
475
|
+
// Use `NovuCore` for best tree-shaking performance.
|
|
476
|
+
// You can create one instance of it to use across an application.
|
|
477
|
+
const novu = new NovuCore({
|
|
478
|
+
security: {
|
|
479
|
+
secretKey: "YOUR_SECRET_KEY_HERE",
|
|
480
|
+
},
|
|
481
|
+
});
|
|
482
|
+
|
|
483
|
+
async function run() {
|
|
484
|
+
const res = await topicsRename(novu, {
|
|
485
|
+
name: "<value>",
|
|
486
|
+
}, "<value>");
|
|
487
|
+
|
|
488
|
+
if (!res.ok) {
|
|
489
|
+
throw res.error;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
const { value: result } = res;
|
|
493
|
+
|
|
494
|
+
// Handle the result
|
|
495
|
+
console.log(result);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
run();
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
### React hooks and utilities
|
|
502
|
+
|
|
503
|
+
This method can be used in React components through the following hooks and
|
|
504
|
+
associated utilities.
|
|
505
|
+
|
|
506
|
+
> Check out [this guide][hook-guide] for information about each of the utilities
|
|
507
|
+
> below and how to get started using React hooks.
|
|
508
|
+
|
|
509
|
+
[hook-guide]: ../../../REACT_QUERY.md
|
|
510
|
+
|
|
511
|
+
```tsx
|
|
512
|
+
import {
|
|
513
|
+
// Mutation hook for triggering the API call.
|
|
514
|
+
useTopicsRenameMutation
|
|
515
|
+
} from "@novu/api/react-query/topicsRename.js";
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
### Parameters
|
|
519
|
+
|
|
520
|
+
| Parameter | Type | Required | Description |
|
|
521
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
522
|
+
| `topicKey` | *string* | :heavy_check_mark: | The topic key |
|
|
523
|
+
| `renameTopicRequestDto` | [components.RenameTopicRequestDto](../../models/components/renametopicrequestdto.md) | :heavy_check_mark: | N/A |
|
|
524
|
+
| `idempotencyKey` | *string* | :heavy_minus_sign: | A header for idempotency purposes |
|
|
525
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
526
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
527
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
528
|
+
|
|
529
|
+
### Response
|
|
530
|
+
|
|
531
|
+
**Promise\<[operations.TopicsControllerRenameTopicResponse](../../models/operations/topicscontrollerrenametopicresponse.md)\>**
|
|
532
|
+
|
|
533
|
+
### Errors
|
|
534
|
+
|
|
535
|
+
| Error Type | Status Code | Content Type |
|
|
536
|
+
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
537
|
+
| errors.ErrorDto | 414 | application/json |
|
|
538
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
539
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
540
|
+
| errors.ErrorDto | 500 | application/json |
|
|
541
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|