@novu/api 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +5 -22
- package/README.md +48 -74
- package/bin/mcp-server.js +1440 -1157
- package/bin/mcp-server.js.map +71 -60
- package/docs/sdks/credentials/README.md +15 -27
- package/docs/sdks/integrations/README.md +30 -54
- package/docs/sdks/messages/README.md +15 -27
- package/docs/sdks/notifications/README.md +10 -18
- package/docs/sdks/novu/README.md +44 -57
- package/docs/sdks/novumessages/README.md +15 -27
- package/docs/sdks/novunotifications/README.md +10 -18
- package/docs/sdks/novusubscribers/README.md +5 -9
- package/docs/sdks/novutopics/README.md +5 -9
- package/docs/sdks/preferences/README.md +10 -18
- package/docs/sdks/properties/README.md +5 -9
- package/docs/sdks/subscribers/README.md +34 -57
- package/docs/sdks/subscriptions/README.md +16 -28
- package/docs/sdks/topics/README.md +25 -45
- package/funcs/cancel.d.ts +1 -1
- package/funcs/cancel.d.ts.map +1 -1
- package/funcs/cancel.js +2 -0
- package/funcs/cancel.js.map +1 -1
- package/funcs/integrationsCreate.d.ts +1 -1
- package/funcs/integrationsCreate.d.ts.map +1 -1
- package/funcs/integrationsCreate.js +2 -0
- package/funcs/integrationsCreate.js.map +1 -1
- package/funcs/integrationsDelete.d.ts +1 -1
- package/funcs/integrationsDelete.d.ts.map +1 -1
- package/funcs/integrationsDelete.js +2 -0
- package/funcs/integrationsDelete.js.map +1 -1
- package/funcs/integrationsList.d.ts +1 -1
- package/funcs/integrationsList.d.ts.map +1 -1
- package/funcs/integrationsList.js +2 -0
- package/funcs/integrationsList.js.map +1 -1
- package/funcs/integrationsListActive.d.ts +1 -1
- package/funcs/integrationsListActive.d.ts.map +1 -1
- package/funcs/integrationsListActive.js +2 -0
- package/funcs/integrationsListActive.js.map +1 -1
- package/funcs/integrationsSetAsPrimary.d.ts +1 -1
- package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
- package/funcs/integrationsSetAsPrimary.js +2 -0
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.d.ts +1 -1
- package/funcs/integrationsUpdate.d.ts.map +1 -1
- package/funcs/integrationsUpdate.js +2 -0
- package/funcs/integrationsUpdate.js.map +1 -1
- package/funcs/messagesDelete.d.ts +1 -1
- package/funcs/messagesDelete.d.ts.map +1 -1
- package/funcs/messagesDelete.js +2 -0
- package/funcs/messagesDelete.js.map +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
- package/funcs/messagesDeleteByTransactionId.js +2 -0
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/messagesRetrieve.d.ts +1 -1
- package/funcs/messagesRetrieve.d.ts.map +1 -1
- package/funcs/messagesRetrieve.js +2 -0
- package/funcs/messagesRetrieve.js.map +1 -1
- package/funcs/notificationsList.d.ts +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 +1 -1
- package/funcs/notificationsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsRetrieve.js +2 -0
- package/funcs/notificationsRetrieve.js.map +1 -1
- package/funcs/subscribersCreate.d.ts +1 -1
- package/funcs/subscribersCreate.d.ts.map +1 -1
- package/funcs/subscribersCreate.js +2 -0
- package/funcs/subscribersCreate.js.map +1 -1
- package/funcs/subscribersCreateBulk.d.ts +1 -1
- package/funcs/subscribersCreateBulk.d.ts.map +1 -1
- package/funcs/subscribersCreateBulk.js +2 -0
- package/funcs/subscribersCreateBulk.js.map +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
- package/funcs/subscribersCredentialsAppend.js +2 -0
- package/funcs/subscribersCredentialsAppend.js.map +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
- package/funcs/subscribersCredentialsDelete.js +2 -0
- package/funcs/subscribersCredentialsDelete.js.map +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
- package/funcs/subscribersCredentialsUpdate.js +2 -0
- package/funcs/subscribersCredentialsUpdate.js.map +1 -1
- package/funcs/subscribersDelete.d.ts +4 -3
- package/funcs/subscribersDelete.d.ts.map +1 -1
- package/funcs/subscribersDelete.js +5 -2
- package/funcs/subscribersDelete.js.map +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAll.js +2 -0
- package/funcs/subscribersMessagesMarkAll.js.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +2 -0
- package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +2 -0
- package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +2 -0
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +2 -0
- package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
- package/funcs/subscribersPatch.d.ts +1 -1
- package/funcs/subscribersPatch.d.ts.map +1 -1
- package/funcs/subscribersPatch.js +2 -0
- package/funcs/subscribersPatch.js.map +1 -1
- package/funcs/subscribersPreferencesList.d.ts +1 -1
- package/funcs/subscribersPreferencesList.d.ts.map +1 -1
- package/funcs/subscribersPreferencesList.js +2 -0
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdate.js +2 -0
- package/funcs/subscribersPreferencesUpdate.js.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js +2 -0
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
- package/funcs/subscribersRetrieve.d.ts +2 -2
- package/funcs/subscribersRetrieve.d.ts.map +1 -1
- package/funcs/subscribersRetrieve.js +3 -1
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/subscribersSearch.d.ts +1 -1
- package/funcs/subscribersSearch.d.ts.map +1 -1
- package/funcs/subscribersSearch.js +2 -0
- package/funcs/subscribersSearch.js.map +1 -1
- package/funcs/subscribersTopicsList.d.ts +1 -1
- package/funcs/subscribersTopicsList.d.ts.map +1 -1
- package/funcs/subscribersTopicsList.js +2 -0
- package/funcs/subscribersTopicsList.js.map +1 -1
- package/funcs/topicsCreate.d.ts +1 -1
- package/funcs/topicsCreate.d.ts.map +1 -1
- package/funcs/topicsCreate.js +2 -0
- package/funcs/topicsCreate.js.map +1 -1
- package/funcs/topicsDelete.d.ts +1 -1
- package/funcs/topicsDelete.d.ts.map +1 -1
- package/funcs/topicsDelete.js +2 -0
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/topicsGet.d.ts +1 -1
- package/funcs/topicsGet.d.ts.map +1 -1
- package/funcs/topicsGet.js +2 -0
- package/funcs/topicsGet.js.map +1 -1
- package/funcs/topicsList.d.ts +1 -1
- package/funcs/topicsList.d.ts.map +1 -1
- package/funcs/topicsList.js +2 -0
- 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 +2 -0
- package/funcs/topicsSubscribersRetrieve.js.map +1 -1
- package/funcs/topicsSubscriptionsCreate.d.ts +1 -1
- package/funcs/topicsSubscriptionsCreate.d.ts.map +1 -1
- package/funcs/topicsSubscriptionsCreate.js +2 -0
- package/funcs/topicsSubscriptionsCreate.js.map +1 -1
- package/funcs/topicsSubscriptionsDelete.d.ts +1 -1
- package/funcs/topicsSubscriptionsDelete.d.ts.map +1 -1
- package/funcs/topicsSubscriptionsDelete.js +2 -0
- package/funcs/topicsSubscriptionsDelete.js.map +1 -1
- package/funcs/topicsSubscriptionsList.d.ts +2 -2
- package/funcs/topicsSubscriptionsList.d.ts.map +1 -1
- package/funcs/topicsSubscriptionsList.js +3 -1
- package/funcs/topicsSubscriptionsList.js.map +1 -1
- package/funcs/topicsUpdate.d.ts +1 -1
- package/funcs/topicsUpdate.d.ts.map +1 -1
- package/funcs/topicsUpdate.js +2 -0
- package/funcs/topicsUpdate.js.map +1 -1
- package/funcs/trigger.d.ts +1 -1
- package/funcs/trigger.d.ts.map +1 -1
- package/funcs/trigger.js +5 -1
- package/funcs/trigger.js.map +1 -1
- package/funcs/triggerBroadcast.d.ts +1 -1
- package/funcs/triggerBroadcast.d.ts.map +1 -1
- package/funcs/triggerBroadcast.js +5 -1
- package/funcs/triggerBroadcast.js.map +1 -1
- package/funcs/triggerBulk.d.ts +1 -1
- package/funcs/triggerBulk.d.ts.map +1 -1
- package/funcs/triggerBulk.js +5 -1
- package/funcs/triggerBulk.js.map +1 -1
- package/hooks/types.d.ts +2 -0
- package/hooks/types.d.ts.map +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +7 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/sdks.d.ts +1 -0
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +3 -3
- package/lib/sdks.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/tools/subscribersDelete.d.ts.map +1 -1
- package/mcp-server/tools/subscribersDelete.js +3 -2
- package/mcp-server/tools/subscribersDelete.js.map +1 -1
- package/mcp-server/tools/subscribersRetrieve.js +1 -1
- package/mcp-server/tools/topicsSubscriptionsList.js +1 -1
- 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/notificationfeeditemdto.d.ts +2 -2
- package/models/components/notificationfeeditemdto.d.ts.map +1 -1
- package/models/components/notificationfeeditemdto.js +2 -2
- package/models/components/notificationfeeditemdto.js.map +1 -1
- package/models/components/patchsubscriberrequestdto.d.ts +6 -26
- package/models/components/patchsubscriberrequestdto.d.ts.map +1 -1
- package/models/components/patchsubscriberrequestdto.js +3 -27
- package/models/components/patchsubscriberrequestdto.js.map +1 -1
- package/models/components/payloadvalidationerrordto.d.ts +125 -0
- package/models/components/payloadvalidationerrordto.d.ts.map +1 -0
- package/models/components/payloadvalidationerrordto.js +160 -0
- package/models/components/payloadvalidationerrordto.js.map +1 -0
- package/models/components/subscriberpayloaddto.d.ts +13 -13
- package/models/components/subscriberpayloaddto.d.ts.map +1 -1
- package/models/components/subscriberpayloaddto.js +17 -16
- package/models/components/subscriberpayloaddto.js.map +1 -1
- package/models/components/updateintegrationrequestdto.d.ts +0 -5
- package/models/components/updateintegrationrequestdto.d.ts.map +1 -1
- package/models/components/updateintegrationrequestdto.js +0 -2
- package/models/components/updateintegrationrequestdto.js.map +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/payloadvalidationexceptiondto.d.ts +222 -0
- package/models/errors/payloadvalidationexceptiondto.d.ts.map +1 -0
- package/models/errors/payloadvalidationexceptiondto.js +212 -0
- package/models/errors/payloadvalidationexceptiondto.js.map +1 -0
- package/models/errors/sdkerror.d.ts +14 -2
- package/models/errors/sdkerror.d.ts.map +1 -1
- package/models/errors/sdkerror.js +1 -1
- package/models/errors/sdkerror.js.map +1 -1
- package/package.json +2 -2
- package/sdk/subscribers.d.ts +4 -3
- package/sdk/subscribers.d.ts.map +1 -1
- package/sdk/subscribers.js +4 -3
- package/sdk/subscribers.js.map +1 -1
- package/sdk/subscriptions.d.ts +1 -1
- package/sdk/subscriptions.js +1 -1
- package/sources/json-development.json +233 -49
- package/src/funcs/cancel.ts +2 -6
- package/src/funcs/integrationsCreate.ts +2 -6
- package/src/funcs/integrationsDelete.ts +2 -6
- package/src/funcs/integrationsList.ts +2 -6
- package/src/funcs/integrationsListActive.ts +2 -6
- package/src/funcs/integrationsSetAsPrimary.ts +2 -6
- package/src/funcs/integrationsUpdate.ts +2 -6
- package/src/funcs/messagesDelete.ts +2 -6
- package/src/funcs/messagesDeleteByTransactionId.ts +2 -6
- package/src/funcs/messagesRetrieve.ts +2 -6
- package/src/funcs/notificationsList.ts +2 -6
- package/src/funcs/notificationsRetrieve.ts +2 -6
- package/src/funcs/subscribersCreate.ts +2 -6
- package/src/funcs/subscribersCreateBulk.ts +2 -6
- package/src/funcs/subscribersCredentialsAppend.ts +2 -6
- package/src/funcs/subscribersCredentialsDelete.ts +2 -6
- package/src/funcs/subscribersCredentialsUpdate.ts +2 -6
- package/src/funcs/subscribersDelete.ts +5 -8
- package/src/funcs/subscribersMessagesMarkAll.ts +2 -6
- package/src/funcs/subscribersMessagesMarkAllAs.ts +2 -6
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +2 -6
- package/src/funcs/subscribersNotificationsFeed.ts +2 -6
- package/src/funcs/subscribersNotificationsUnseenCount.ts +2 -6
- package/src/funcs/subscribersPatch.ts +2 -6
- package/src/funcs/subscribersPreferencesList.ts +2 -6
- package/src/funcs/subscribersPreferencesUpdate.ts +2 -6
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +2 -6
- package/src/funcs/subscribersRetrieve.ts +3 -7
- package/src/funcs/subscribersSearch.ts +2 -6
- package/src/funcs/subscribersTopicsList.ts +2 -6
- package/src/funcs/topicsCreate.ts +2 -6
- package/src/funcs/topicsDelete.ts +2 -6
- package/src/funcs/topicsGet.ts +2 -6
- package/src/funcs/topicsList.ts +2 -6
- package/src/funcs/topicsSubscribersRetrieve.ts +2 -6
- package/src/funcs/topicsSubscriptionsCreate.ts +2 -6
- package/src/funcs/topicsSubscriptionsDelete.ts +2 -6
- package/src/funcs/topicsSubscriptionsList.ts +3 -7
- package/src/funcs/topicsUpdate.ts +2 -6
- package/src/funcs/trigger.ts +9 -7
- package/src/funcs/triggerBroadcast.ts +9 -7
- package/src/funcs/triggerBulk.ts +9 -7
- package/src/hooks/types.ts +2 -0
- package/src/index.ts +2 -0
- package/src/lib/config.ts +7 -3
- package/src/lib/sdks.ts +10 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/subscribersDelete.ts +3 -2
- package/src/mcp-server/tools/subscribersRetrieve.ts +1 -1
- package/src/mcp-server/tools/topicsSubscriptionsList.ts +1 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/notificationfeeditemdto.ts +4 -4
- package/src/models/components/patchsubscriberrequestdto.ts +4 -47
- package/src/models/components/payloadvalidationerrordto.ts +299 -0
- package/src/models/components/subscriberpayloaddto.ts +19 -37
- package/src/models/components/updateintegrationrequestdto.ts +0 -7
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/payloadvalidationexceptiondto.ts +466 -0
- package/src/models/errors/sdkerror.ts +18 -3
- package/src/sdk/subscribers.ts +4 -3
- package/src/sdk/subscriptions.ts +1 -1
|
@@ -41,9 +41,7 @@ export function integrationsSetAsPrimary(
|
|
|
41
41
|
Result<
|
|
42
42
|
operations.IntegrationsControllerSetIntegrationAsPrimaryResponse,
|
|
43
43
|
| errors.ErrorDto
|
|
44
|
-
| errors.ErrorDto
|
|
45
44
|
| errors.ValidationErrorDto
|
|
46
|
-
| errors.ErrorDto
|
|
47
45
|
| SDKError
|
|
48
46
|
| SDKValidationError
|
|
49
47
|
| UnexpectedClientError
|
|
@@ -71,9 +69,7 @@ async function $do(
|
|
|
71
69
|
Result<
|
|
72
70
|
operations.IntegrationsControllerSetIntegrationAsPrimaryResponse,
|
|
73
71
|
| errors.ErrorDto
|
|
74
|
-
| errors.ErrorDto
|
|
75
72
|
| errors.ValidationErrorDto
|
|
76
|
-
| errors.ErrorDto
|
|
77
73
|
| SDKError
|
|
78
74
|
| SDKValidationError
|
|
79
75
|
| UnexpectedClientError
|
|
@@ -130,6 +126,7 @@ async function $do(
|
|
|
130
126
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
131
127
|
|
|
132
128
|
const context = {
|
|
129
|
+
options: client._options,
|
|
133
130
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134
131
|
operationID: "IntegrationsController_setIntegrationAsPrimary",
|
|
135
132
|
oAuth2Scopes: [],
|
|
@@ -160,6 +157,7 @@ async function $do(
|
|
|
160
157
|
path: path,
|
|
161
158
|
headers: headers,
|
|
162
159
|
body: body,
|
|
160
|
+
userAgent: client._options.userAgent,
|
|
163
161
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
164
162
|
}, options);
|
|
165
163
|
if (!requestRes.ok) {
|
|
@@ -201,9 +199,7 @@ async function $do(
|
|
|
201
199
|
const [result] = await M.match<
|
|
202
200
|
operations.IntegrationsControllerSetIntegrationAsPrimaryResponse,
|
|
203
201
|
| errors.ErrorDto
|
|
204
|
-
| errors.ErrorDto
|
|
205
202
|
| errors.ValidationErrorDto
|
|
206
|
-
| errors.ErrorDto
|
|
207
203
|
| SDKError
|
|
208
204
|
| SDKValidationError
|
|
209
205
|
| UnexpectedClientError
|
|
@@ -42,9 +42,7 @@ export function integrationsUpdate(
|
|
|
42
42
|
Result<
|
|
43
43
|
operations.IntegrationsControllerUpdateIntegrationByIdResponse,
|
|
44
44
|
| errors.ErrorDto
|
|
45
|
-
| errors.ErrorDto
|
|
46
45
|
| errors.ValidationErrorDto
|
|
47
|
-
| errors.ErrorDto
|
|
48
46
|
| SDKError
|
|
49
47
|
| SDKValidationError
|
|
50
48
|
| UnexpectedClientError
|
|
@@ -74,9 +72,7 @@ async function $do(
|
|
|
74
72
|
Result<
|
|
75
73
|
operations.IntegrationsControllerUpdateIntegrationByIdResponse,
|
|
76
74
|
| errors.ErrorDto
|
|
77
|
-
| errors.ErrorDto
|
|
78
75
|
| errors.ValidationErrorDto
|
|
79
|
-
| errors.ErrorDto
|
|
80
76
|
| SDKError
|
|
81
77
|
| SDKValidationError
|
|
82
78
|
| UnexpectedClientError
|
|
@@ -134,6 +130,7 @@ async function $do(
|
|
|
134
130
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
135
131
|
|
|
136
132
|
const context = {
|
|
133
|
+
options: client._options,
|
|
137
134
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
138
135
|
operationID: "IntegrationsController_updateIntegrationById",
|
|
139
136
|
oAuth2Scopes: [],
|
|
@@ -164,6 +161,7 @@ async function $do(
|
|
|
164
161
|
path: path,
|
|
165
162
|
headers: headers,
|
|
166
163
|
body: body,
|
|
164
|
+
userAgent: client._options.userAgent,
|
|
167
165
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
168
166
|
}, options);
|
|
169
167
|
if (!requestRes.ok) {
|
|
@@ -205,9 +203,7 @@ async function $do(
|
|
|
205
203
|
const [result] = await M.match<
|
|
206
204
|
operations.IntegrationsControllerUpdateIntegrationByIdResponse,
|
|
207
205
|
| errors.ErrorDto
|
|
208
|
-
| errors.ErrorDto
|
|
209
206
|
| errors.ValidationErrorDto
|
|
210
|
-
| errors.ErrorDto
|
|
211
207
|
| SDKError
|
|
212
208
|
| SDKValidationError
|
|
213
209
|
| UnexpectedClientError
|
|
@@ -40,9 +40,7 @@ export function messagesDelete(
|
|
|
40
40
|
Result<
|
|
41
41
|
operations.MessagesControllerDeleteMessageResponse,
|
|
42
42
|
| errors.ErrorDto
|
|
43
|
-
| errors.ErrorDto
|
|
44
43
|
| errors.ValidationErrorDto
|
|
45
|
-
| errors.ErrorDto
|
|
46
44
|
| SDKError
|
|
47
45
|
| SDKValidationError
|
|
48
46
|
| UnexpectedClientError
|
|
@@ -70,9 +68,7 @@ async function $do(
|
|
|
70
68
|
Result<
|
|
71
69
|
operations.MessagesControllerDeleteMessageResponse,
|
|
72
70
|
| errors.ErrorDto
|
|
73
|
-
| errors.ErrorDto
|
|
74
71
|
| errors.ValidationErrorDto
|
|
75
|
-
| errors.ErrorDto
|
|
76
72
|
| SDKError
|
|
77
73
|
| SDKValidationError
|
|
78
74
|
| UnexpectedClientError
|
|
@@ -126,6 +122,7 @@ async function $do(
|
|
|
126
122
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
127
123
|
|
|
128
124
|
const context = {
|
|
125
|
+
options: client._options,
|
|
129
126
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
130
127
|
operationID: "MessagesController_deleteMessage",
|
|
131
128
|
oAuth2Scopes: [],
|
|
@@ -156,6 +153,7 @@ async function $do(
|
|
|
156
153
|
path: path,
|
|
157
154
|
headers: headers,
|
|
158
155
|
body: body,
|
|
156
|
+
userAgent: client._options.userAgent,
|
|
159
157
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
160
158
|
}, options);
|
|
161
159
|
if (!requestRes.ok) {
|
|
@@ -197,9 +195,7 @@ async function $do(
|
|
|
197
195
|
const [result] = await M.match<
|
|
198
196
|
operations.MessagesControllerDeleteMessageResponse,
|
|
199
197
|
| errors.ErrorDto
|
|
200
|
-
| errors.ErrorDto
|
|
201
198
|
| errors.ValidationErrorDto
|
|
202
|
-
| errors.ErrorDto
|
|
203
199
|
| SDKError
|
|
204
200
|
| SDKValidationError
|
|
205
201
|
| UnexpectedClientError
|
|
@@ -42,9 +42,7 @@ export function messagesDeleteByTransactionId(
|
|
|
42
42
|
| operations.MessagesControllerDeleteMessagesByTransactionIdResponse
|
|
43
43
|
| undefined,
|
|
44
44
|
| errors.ErrorDto
|
|
45
|
-
| errors.ErrorDto
|
|
46
45
|
| errors.ValidationErrorDto
|
|
47
|
-
| errors.ErrorDto
|
|
48
46
|
| SDKError
|
|
49
47
|
| SDKValidationError
|
|
50
48
|
| UnexpectedClientError
|
|
@@ -75,9 +73,7 @@ async function $do(
|
|
|
75
73
|
| operations.MessagesControllerDeleteMessagesByTransactionIdResponse
|
|
76
74
|
| undefined,
|
|
77
75
|
| errors.ErrorDto
|
|
78
|
-
| errors.ErrorDto
|
|
79
76
|
| errors.ValidationErrorDto
|
|
80
|
-
| errors.ErrorDto
|
|
81
77
|
| SDKError
|
|
82
78
|
| SDKValidationError
|
|
83
79
|
| UnexpectedClientError
|
|
@@ -139,6 +135,7 @@ async function $do(
|
|
|
139
135
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
140
136
|
|
|
141
137
|
const context = {
|
|
138
|
+
options: client._options,
|
|
142
139
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
143
140
|
operationID: "MessagesController_deleteMessagesByTransactionId",
|
|
144
141
|
oAuth2Scopes: [],
|
|
@@ -170,6 +167,7 @@ async function $do(
|
|
|
170
167
|
headers: headers,
|
|
171
168
|
query: query,
|
|
172
169
|
body: body,
|
|
170
|
+
userAgent: client._options.userAgent,
|
|
173
171
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
174
172
|
}, options);
|
|
175
173
|
if (!requestRes.ok) {
|
|
@@ -212,9 +210,7 @@ async function $do(
|
|
|
212
210
|
| operations.MessagesControllerDeleteMessagesByTransactionIdResponse
|
|
213
211
|
| undefined,
|
|
214
212
|
| errors.ErrorDto
|
|
215
|
-
| errors.ErrorDto
|
|
216
213
|
| errors.ValidationErrorDto
|
|
217
|
-
| errors.ErrorDto
|
|
218
214
|
| SDKError
|
|
219
215
|
| SDKValidationError
|
|
220
216
|
| UnexpectedClientError
|
|
@@ -40,9 +40,7 @@ export function messagesRetrieve(
|
|
|
40
40
|
Result<
|
|
41
41
|
operations.MessagesControllerGetMessagesResponse,
|
|
42
42
|
| errors.ErrorDto
|
|
43
|
-
| errors.ErrorDto
|
|
44
43
|
| errors.ValidationErrorDto
|
|
45
|
-
| errors.ErrorDto
|
|
46
44
|
| SDKError
|
|
47
45
|
| SDKValidationError
|
|
48
46
|
| UnexpectedClientError
|
|
@@ -68,9 +66,7 @@ async function $do(
|
|
|
68
66
|
Result<
|
|
69
67
|
operations.MessagesControllerGetMessagesResponse,
|
|
70
68
|
| errors.ErrorDto
|
|
71
|
-
| errors.ErrorDto
|
|
72
69
|
| errors.ValidationErrorDto
|
|
73
|
-
| errors.ErrorDto
|
|
74
70
|
| SDKError
|
|
75
71
|
| SDKValidationError
|
|
76
72
|
| UnexpectedClientError
|
|
@@ -120,6 +116,7 @@ async function $do(
|
|
|
120
116
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
121
117
|
|
|
122
118
|
const context = {
|
|
119
|
+
options: client._options,
|
|
123
120
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
124
121
|
operationID: "MessagesController_getMessages",
|
|
125
122
|
oAuth2Scopes: [],
|
|
@@ -151,6 +148,7 @@ async function $do(
|
|
|
151
148
|
headers: headers,
|
|
152
149
|
query: query,
|
|
153
150
|
body: body,
|
|
151
|
+
userAgent: client._options.userAgent,
|
|
154
152
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
155
153
|
}, options);
|
|
156
154
|
if (!requestRes.ok) {
|
|
@@ -192,9 +190,7 @@ async function $do(
|
|
|
192
190
|
const [result] = await M.match<
|
|
193
191
|
operations.MessagesControllerGetMessagesResponse,
|
|
194
192
|
| errors.ErrorDto
|
|
195
|
-
| errors.ErrorDto
|
|
196
193
|
| errors.ValidationErrorDto
|
|
197
|
-
| errors.ErrorDto
|
|
198
194
|
| SDKError
|
|
199
195
|
| SDKValidationError
|
|
200
196
|
| UnexpectedClientError
|
|
@@ -41,9 +41,7 @@ export function notificationsList(
|
|
|
41
41
|
Result<
|
|
42
42
|
operations.NotificationsControllerListNotificationsResponse,
|
|
43
43
|
| errors.ErrorDto
|
|
44
|
-
| errors.ErrorDto
|
|
45
44
|
| errors.ValidationErrorDto
|
|
46
|
-
| errors.ErrorDto
|
|
47
45
|
| SDKError
|
|
48
46
|
| SDKValidationError
|
|
49
47
|
| UnexpectedClientError
|
|
@@ -69,9 +67,7 @@ async function $do(
|
|
|
69
67
|
Result<
|
|
70
68
|
operations.NotificationsControllerListNotificationsResponse,
|
|
71
69
|
| errors.ErrorDto
|
|
72
|
-
| errors.ErrorDto
|
|
73
70
|
| errors.ValidationErrorDto
|
|
74
|
-
| errors.ErrorDto
|
|
75
71
|
| SDKError
|
|
76
72
|
| SDKValidationError
|
|
77
73
|
| UnexpectedClientError
|
|
@@ -126,6 +122,7 @@ async function $do(
|
|
|
126
122
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
127
123
|
|
|
128
124
|
const context = {
|
|
125
|
+
options: client._options,
|
|
129
126
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
130
127
|
operationID: "NotificationsController_listNotifications",
|
|
131
128
|
oAuth2Scopes: [],
|
|
@@ -157,6 +154,7 @@ async function $do(
|
|
|
157
154
|
headers: headers,
|
|
158
155
|
query: query,
|
|
159
156
|
body: body,
|
|
157
|
+
userAgent: client._options.userAgent,
|
|
160
158
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
161
159
|
}, options);
|
|
162
160
|
if (!requestRes.ok) {
|
|
@@ -198,9 +196,7 @@ async function $do(
|
|
|
198
196
|
const [result] = await M.match<
|
|
199
197
|
operations.NotificationsControllerListNotificationsResponse,
|
|
200
198
|
| errors.ErrorDto
|
|
201
|
-
| errors.ErrorDto
|
|
202
199
|
| errors.ValidationErrorDto
|
|
203
|
-
| errors.ErrorDto
|
|
204
200
|
| SDKError
|
|
205
201
|
| SDKValidationError
|
|
206
202
|
| UnexpectedClientError
|
|
@@ -41,9 +41,7 @@ export function notificationsRetrieve(
|
|
|
41
41
|
Result<
|
|
42
42
|
operations.NotificationsControllerGetNotificationResponse,
|
|
43
43
|
| errors.ErrorDto
|
|
44
|
-
| errors.ErrorDto
|
|
45
44
|
| errors.ValidationErrorDto
|
|
46
|
-
| errors.ErrorDto
|
|
47
45
|
| SDKError
|
|
48
46
|
| SDKValidationError
|
|
49
47
|
| UnexpectedClientError
|
|
@@ -71,9 +69,7 @@ async function $do(
|
|
|
71
69
|
Result<
|
|
72
70
|
operations.NotificationsControllerGetNotificationResponse,
|
|
73
71
|
| errors.ErrorDto
|
|
74
|
-
| errors.ErrorDto
|
|
75
72
|
| errors.ValidationErrorDto
|
|
76
|
-
| errors.ErrorDto
|
|
77
73
|
| SDKError
|
|
78
74
|
| SDKValidationError
|
|
79
75
|
| UnexpectedClientError
|
|
@@ -126,6 +122,7 @@ async function $do(
|
|
|
126
122
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
127
123
|
|
|
128
124
|
const context = {
|
|
125
|
+
options: client._options,
|
|
129
126
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
130
127
|
operationID: "NotificationsController_getNotification",
|
|
131
128
|
oAuth2Scopes: [],
|
|
@@ -156,6 +153,7 @@ async function $do(
|
|
|
156
153
|
path: path,
|
|
157
154
|
headers: headers,
|
|
158
155
|
body: body,
|
|
156
|
+
userAgent: client._options.userAgent,
|
|
159
157
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
160
158
|
}, options);
|
|
161
159
|
if (!requestRes.ok) {
|
|
@@ -197,9 +195,7 @@ async function $do(
|
|
|
197
195
|
const [result] = await M.match<
|
|
198
196
|
operations.NotificationsControllerGetNotificationResponse,
|
|
199
197
|
| errors.ErrorDto
|
|
200
|
-
| errors.ErrorDto
|
|
201
198
|
| errors.ValidationErrorDto
|
|
202
|
-
| errors.ErrorDto
|
|
203
199
|
| SDKError
|
|
204
200
|
| SDKValidationError
|
|
205
201
|
| UnexpectedClientError
|
|
@@ -41,9 +41,7 @@ export function subscribersCreate(
|
|
|
41
41
|
Result<
|
|
42
42
|
operations.SubscribersControllerCreateSubscriberResponse,
|
|
43
43
|
| errors.ErrorDto
|
|
44
|
-
| errors.ErrorDto
|
|
45
44
|
| errors.ValidationErrorDto
|
|
46
|
-
| errors.ErrorDto
|
|
47
45
|
| SDKError
|
|
48
46
|
| SDKValidationError
|
|
49
47
|
| UnexpectedClientError
|
|
@@ -71,9 +69,7 @@ async function $do(
|
|
|
71
69
|
Result<
|
|
72
70
|
operations.SubscribersControllerCreateSubscriberResponse,
|
|
73
71
|
| errors.ErrorDto
|
|
74
|
-
| errors.ErrorDto
|
|
75
72
|
| errors.ValidationErrorDto
|
|
76
|
-
| errors.ErrorDto
|
|
77
73
|
| SDKError
|
|
78
74
|
| SDKValidationError
|
|
79
75
|
| UnexpectedClientError
|
|
@@ -122,6 +118,7 @@ async function $do(
|
|
|
122
118
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
123
119
|
|
|
124
120
|
const context = {
|
|
121
|
+
options: client._options,
|
|
125
122
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
126
123
|
operationID: "SubscribersController_createSubscriber",
|
|
127
124
|
oAuth2Scopes: [],
|
|
@@ -152,6 +149,7 @@ async function $do(
|
|
|
152
149
|
path: path,
|
|
153
150
|
headers: headers,
|
|
154
151
|
body: body,
|
|
152
|
+
userAgent: client._options.userAgent,
|
|
155
153
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
156
154
|
}, options);
|
|
157
155
|
if (!requestRes.ok) {
|
|
@@ -193,9 +191,7 @@ async function $do(
|
|
|
193
191
|
const [result] = await M.match<
|
|
194
192
|
operations.SubscribersControllerCreateSubscriberResponse,
|
|
195
193
|
| errors.ErrorDto
|
|
196
|
-
| errors.ErrorDto
|
|
197
194
|
| errors.ValidationErrorDto
|
|
198
|
-
| errors.ErrorDto
|
|
199
195
|
| SDKError
|
|
200
196
|
| SDKValidationError
|
|
201
197
|
| UnexpectedClientError
|
|
@@ -41,9 +41,7 @@ export function subscribersCreateBulk(
|
|
|
41
41
|
Result<
|
|
42
42
|
operations.SubscribersV1ControllerBulkCreateSubscribersResponse,
|
|
43
43
|
| errors.ErrorDto
|
|
44
|
-
| errors.ErrorDto
|
|
45
44
|
| errors.ValidationErrorDto
|
|
46
|
-
| errors.ErrorDto
|
|
47
45
|
| SDKError
|
|
48
46
|
| SDKValidationError
|
|
49
47
|
| UnexpectedClientError
|
|
@@ -71,9 +69,7 @@ async function $do(
|
|
|
71
69
|
Result<
|
|
72
70
|
operations.SubscribersV1ControllerBulkCreateSubscribersResponse,
|
|
73
71
|
| errors.ErrorDto
|
|
74
|
-
| errors.ErrorDto
|
|
75
72
|
| errors.ValidationErrorDto
|
|
76
|
-
| errors.ErrorDto
|
|
77
73
|
| SDKError
|
|
78
74
|
| SDKValidationError
|
|
79
75
|
| UnexpectedClientError
|
|
@@ -124,6 +120,7 @@ async function $do(
|
|
|
124
120
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
125
121
|
|
|
126
122
|
const context = {
|
|
123
|
+
options: client._options,
|
|
127
124
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
128
125
|
operationID: "SubscribersV1Controller_bulkCreateSubscribers",
|
|
129
126
|
oAuth2Scopes: [],
|
|
@@ -154,6 +151,7 @@ async function $do(
|
|
|
154
151
|
path: path,
|
|
155
152
|
headers: headers,
|
|
156
153
|
body: body,
|
|
154
|
+
userAgent: client._options.userAgent,
|
|
157
155
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
158
156
|
}, options);
|
|
159
157
|
if (!requestRes.ok) {
|
|
@@ -195,9 +193,7 @@ async function $do(
|
|
|
195
193
|
const [result] = await M.match<
|
|
196
194
|
operations.SubscribersV1ControllerBulkCreateSubscribersResponse,
|
|
197
195
|
| errors.ErrorDto
|
|
198
|
-
| errors.ErrorDto
|
|
199
196
|
| errors.ValidationErrorDto
|
|
200
|
-
| errors.ErrorDto
|
|
201
197
|
| SDKError
|
|
202
198
|
| SDKValidationError
|
|
203
199
|
| UnexpectedClientError
|
|
@@ -43,9 +43,7 @@ export function subscribersCredentialsAppend(
|
|
|
43
43
|
Result<
|
|
44
44
|
operations.SubscribersV1ControllerModifySubscriberChannelResponse,
|
|
45
45
|
| errors.ErrorDto
|
|
46
|
-
| errors.ErrorDto
|
|
47
46
|
| errors.ValidationErrorDto
|
|
48
|
-
| errors.ErrorDto
|
|
49
47
|
| SDKError
|
|
50
48
|
| SDKValidationError
|
|
51
49
|
| UnexpectedClientError
|
|
@@ -76,9 +74,7 @@ async function $do(
|
|
|
76
74
|
Result<
|
|
77
75
|
operations.SubscribersV1ControllerModifySubscriberChannelResponse,
|
|
78
76
|
| errors.ErrorDto
|
|
79
|
-
| errors.ErrorDto
|
|
80
77
|
| errors.ValidationErrorDto
|
|
81
|
-
| errors.ErrorDto
|
|
82
78
|
| SDKError
|
|
83
79
|
| SDKValidationError
|
|
84
80
|
| UnexpectedClientError
|
|
@@ -139,6 +135,7 @@ async function $do(
|
|
|
139
135
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
140
136
|
|
|
141
137
|
const context = {
|
|
138
|
+
options: client._options,
|
|
142
139
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
143
140
|
operationID: "SubscribersV1Controller_modifySubscriberChannel",
|
|
144
141
|
oAuth2Scopes: [],
|
|
@@ -169,6 +166,7 @@ async function $do(
|
|
|
169
166
|
path: path,
|
|
170
167
|
headers: headers,
|
|
171
168
|
body: body,
|
|
169
|
+
userAgent: client._options.userAgent,
|
|
172
170
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
173
171
|
}, options);
|
|
174
172
|
if (!requestRes.ok) {
|
|
@@ -210,9 +208,7 @@ async function $do(
|
|
|
210
208
|
const [result] = await M.match<
|
|
211
209
|
operations.SubscribersV1ControllerModifySubscriberChannelResponse,
|
|
212
210
|
| errors.ErrorDto
|
|
213
|
-
| errors.ErrorDto
|
|
214
211
|
| errors.ValidationErrorDto
|
|
215
|
-
| errors.ErrorDto
|
|
216
212
|
| SDKError
|
|
217
213
|
| SDKValidationError
|
|
218
214
|
| UnexpectedClientError
|
|
@@ -42,9 +42,7 @@ export function subscribersCredentialsDelete(
|
|
|
42
42
|
| operations.SubscribersV1ControllerDeleteSubscriberCredentialsResponse
|
|
43
43
|
| undefined,
|
|
44
44
|
| errors.ErrorDto
|
|
45
|
-
| errors.ErrorDto
|
|
46
45
|
| errors.ValidationErrorDto
|
|
47
|
-
| errors.ErrorDto
|
|
48
46
|
| SDKError
|
|
49
47
|
| SDKValidationError
|
|
50
48
|
| UnexpectedClientError
|
|
@@ -75,9 +73,7 @@ async function $do(
|
|
|
75
73
|
| operations.SubscribersV1ControllerDeleteSubscriberCredentialsResponse
|
|
76
74
|
| undefined,
|
|
77
75
|
| errors.ErrorDto
|
|
78
|
-
| errors.ErrorDto
|
|
79
76
|
| errors.ValidationErrorDto
|
|
80
|
-
| errors.ErrorDto
|
|
81
77
|
| SDKError
|
|
82
78
|
| SDKValidationError
|
|
83
79
|
| UnexpectedClientError
|
|
@@ -139,6 +135,7 @@ async function $do(
|
|
|
139
135
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
140
136
|
|
|
141
137
|
const context = {
|
|
138
|
+
options: client._options,
|
|
142
139
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
143
140
|
operationID: "SubscribersV1Controller_deleteSubscriberCredentials",
|
|
144
141
|
oAuth2Scopes: [],
|
|
@@ -169,6 +166,7 @@ async function $do(
|
|
|
169
166
|
path: path,
|
|
170
167
|
headers: headers,
|
|
171
168
|
body: body,
|
|
169
|
+
userAgent: client._options.userAgent,
|
|
172
170
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
173
171
|
}, options);
|
|
174
172
|
if (!requestRes.ok) {
|
|
@@ -211,9 +209,7 @@ async function $do(
|
|
|
211
209
|
| operations.SubscribersV1ControllerDeleteSubscriberCredentialsResponse
|
|
212
210
|
| undefined,
|
|
213
211
|
| errors.ErrorDto
|
|
214
|
-
| errors.ErrorDto
|
|
215
212
|
| errors.ValidationErrorDto
|
|
216
|
-
| errors.ErrorDto
|
|
217
213
|
| SDKError
|
|
218
214
|
| SDKValidationError
|
|
219
215
|
| UnexpectedClientError
|
|
@@ -43,9 +43,7 @@ export function subscribersCredentialsUpdate(
|
|
|
43
43
|
Result<
|
|
44
44
|
operations.SubscribersV1ControllerUpdateSubscriberChannelResponse,
|
|
45
45
|
| errors.ErrorDto
|
|
46
|
-
| errors.ErrorDto
|
|
47
46
|
| errors.ValidationErrorDto
|
|
48
|
-
| errors.ErrorDto
|
|
49
47
|
| SDKError
|
|
50
48
|
| SDKValidationError
|
|
51
49
|
| UnexpectedClientError
|
|
@@ -76,9 +74,7 @@ async function $do(
|
|
|
76
74
|
Result<
|
|
77
75
|
operations.SubscribersV1ControllerUpdateSubscriberChannelResponse,
|
|
78
76
|
| errors.ErrorDto
|
|
79
|
-
| errors.ErrorDto
|
|
80
77
|
| errors.ValidationErrorDto
|
|
81
|
-
| errors.ErrorDto
|
|
82
78
|
| SDKError
|
|
83
79
|
| SDKValidationError
|
|
84
80
|
| UnexpectedClientError
|
|
@@ -139,6 +135,7 @@ async function $do(
|
|
|
139
135
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
140
136
|
|
|
141
137
|
const context = {
|
|
138
|
+
options: client._options,
|
|
142
139
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
143
140
|
operationID: "SubscribersV1Controller_updateSubscriberChannel",
|
|
144
141
|
oAuth2Scopes: [],
|
|
@@ -169,6 +166,7 @@ async function $do(
|
|
|
169
166
|
path: path,
|
|
170
167
|
headers: headers,
|
|
171
168
|
body: body,
|
|
169
|
+
userAgent: client._options.userAgent,
|
|
172
170
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
173
171
|
}, options);
|
|
174
172
|
if (!requestRes.ok) {
|
|
@@ -210,9 +208,7 @@ async function $do(
|
|
|
210
208
|
const [result] = await M.match<
|
|
211
209
|
operations.SubscribersV1ControllerUpdateSubscriberChannelResponse,
|
|
212
210
|
| errors.ErrorDto
|
|
213
|
-
| errors.ErrorDto
|
|
214
211
|
| errors.ValidationErrorDto
|
|
215
|
-
| errors.ErrorDto
|
|
216
212
|
| SDKError
|
|
217
213
|
| SDKValidationError
|
|
218
214
|
| UnexpectedClientError
|
|
@@ -25,10 +25,11 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
25
25
|
import { Result } from "../types/fp.js";
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* Delete subscriber
|
|
28
|
+
* Delete a subscriber
|
|
29
29
|
*
|
|
30
30
|
* @remarks
|
|
31
|
-
* Deletes a subscriber entity from the Novu platform along with associated messages, preferences, and topic subscriptions
|
|
31
|
+
* Deletes a subscriber entity from the Novu platform along with associated messages, preferences, and topic subscriptions.
|
|
32
|
+
* **subscriberId** is a required field.
|
|
32
33
|
*/
|
|
33
34
|
export function subscribersDelete(
|
|
34
35
|
client: NovuCore,
|
|
@@ -39,9 +40,7 @@ export function subscribersDelete(
|
|
|
39
40
|
Result<
|
|
40
41
|
operations.SubscribersControllerRemoveSubscriberResponse,
|
|
41
42
|
| errors.ErrorDto
|
|
42
|
-
| errors.ErrorDto
|
|
43
43
|
| errors.ValidationErrorDto
|
|
44
|
-
| errors.ErrorDto
|
|
45
44
|
| SDKError
|
|
46
45
|
| SDKValidationError
|
|
47
46
|
| UnexpectedClientError
|
|
@@ -69,9 +68,7 @@ async function $do(
|
|
|
69
68
|
Result<
|
|
70
69
|
operations.SubscribersControllerRemoveSubscriberResponse,
|
|
71
70
|
| errors.ErrorDto
|
|
72
|
-
| errors.ErrorDto
|
|
73
71
|
| errors.ValidationErrorDto
|
|
74
|
-
| errors.ErrorDto
|
|
75
72
|
| SDKError
|
|
76
73
|
| SDKValidationError
|
|
77
74
|
| UnexpectedClientError
|
|
@@ -124,6 +121,7 @@ async function $do(
|
|
|
124
121
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
125
122
|
|
|
126
123
|
const context = {
|
|
124
|
+
options: client._options,
|
|
127
125
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
128
126
|
operationID: "SubscribersController_removeSubscriber",
|
|
129
127
|
oAuth2Scopes: [],
|
|
@@ -154,6 +152,7 @@ async function $do(
|
|
|
154
152
|
path: path,
|
|
155
153
|
headers: headers,
|
|
156
154
|
body: body,
|
|
155
|
+
userAgent: client._options.userAgent,
|
|
157
156
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
158
157
|
}, options);
|
|
159
158
|
if (!requestRes.ok) {
|
|
@@ -195,9 +194,7 @@ async function $do(
|
|
|
195
194
|
const [result] = await M.match<
|
|
196
195
|
operations.SubscribersControllerRemoveSubscriberResponse,
|
|
197
196
|
| errors.ErrorDto
|
|
198
|
-
| errors.ErrorDto
|
|
199
197
|
| errors.ValidationErrorDto
|
|
200
|
-
| errors.ErrorDto
|
|
201
198
|
| SDKError
|
|
202
199
|
| SDKValidationError
|
|
203
200
|
| UnexpectedClientError
|
|
@@ -41,9 +41,7 @@ export function subscribersMessagesMarkAll(
|
|
|
41
41
|
Result<
|
|
42
42
|
operations.SubscribersV1ControllerMarkAllUnreadAsReadResponse,
|
|
43
43
|
| errors.ErrorDto
|
|
44
|
-
| errors.ErrorDto
|
|
45
44
|
| errors.ValidationErrorDto
|
|
46
|
-
| errors.ErrorDto
|
|
47
45
|
| SDKError
|
|
48
46
|
| SDKValidationError
|
|
49
47
|
| UnexpectedClientError
|
|
@@ -73,9 +71,7 @@ async function $do(
|
|
|
73
71
|
Result<
|
|
74
72
|
operations.SubscribersV1ControllerMarkAllUnreadAsReadResponse,
|
|
75
73
|
| errors.ErrorDto
|
|
76
|
-
| errors.ErrorDto
|
|
77
74
|
| errors.ValidationErrorDto
|
|
78
|
-
| errors.ErrorDto
|
|
79
75
|
| SDKError
|
|
80
76
|
| SDKValidationError
|
|
81
77
|
| UnexpectedClientError
|
|
@@ -136,6 +132,7 @@ async function $do(
|
|
|
136
132
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
137
133
|
|
|
138
134
|
const context = {
|
|
135
|
+
options: client._options,
|
|
139
136
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
140
137
|
operationID: "SubscribersV1Controller_markAllUnreadAsRead",
|
|
141
138
|
oAuth2Scopes: [],
|
|
@@ -166,6 +163,7 @@ async function $do(
|
|
|
166
163
|
path: path,
|
|
167
164
|
headers: headers,
|
|
168
165
|
body: body,
|
|
166
|
+
userAgent: client._options.userAgent,
|
|
169
167
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
170
168
|
}, options);
|
|
171
169
|
if (!requestRes.ok) {
|
|
@@ -207,9 +205,7 @@ async function $do(
|
|
|
207
205
|
const [result] = await M.match<
|
|
208
206
|
operations.SubscribersV1ControllerMarkAllUnreadAsReadResponse,
|
|
209
207
|
| errors.ErrorDto
|
|
210
|
-
| errors.ErrorDto
|
|
211
208
|
| errors.ValidationErrorDto
|
|
212
|
-
| errors.ErrorDto
|
|
213
209
|
| SDKError
|
|
214
210
|
| SDKValidationError
|
|
215
211
|
| UnexpectedClientError
|
|
@@ -42,9 +42,7 @@ export function subscribersMessagesMarkAllAs(
|
|
|
42
42
|
Result<
|
|
43
43
|
operations.SubscribersV1ControllerMarkMessagesAsResponse,
|
|
44
44
|
| errors.ErrorDto
|
|
45
|
-
| errors.ErrorDto
|
|
46
45
|
| errors.ValidationErrorDto
|
|
47
|
-
| errors.ErrorDto
|
|
48
46
|
| SDKError
|
|
49
47
|
| SDKValidationError
|
|
50
48
|
| UnexpectedClientError
|
|
@@ -74,9 +72,7 @@ async function $do(
|
|
|
74
72
|
Result<
|
|
75
73
|
operations.SubscribersV1ControllerMarkMessagesAsResponse,
|
|
76
74
|
| errors.ErrorDto
|
|
77
|
-
| errors.ErrorDto
|
|
78
75
|
| errors.ValidationErrorDto
|
|
79
|
-
| errors.ErrorDto
|
|
80
76
|
| SDKError
|
|
81
77
|
| SDKValidationError
|
|
82
78
|
| UnexpectedClientError
|
|
@@ -135,6 +131,7 @@ async function $do(
|
|
|
135
131
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
136
132
|
|
|
137
133
|
const context = {
|
|
134
|
+
options: client._options,
|
|
138
135
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
139
136
|
operationID: "SubscribersV1Controller_markMessagesAs",
|
|
140
137
|
oAuth2Scopes: [],
|
|
@@ -165,6 +162,7 @@ async function $do(
|
|
|
165
162
|
path: path,
|
|
166
163
|
headers: headers,
|
|
167
164
|
body: body,
|
|
165
|
+
userAgent: client._options.userAgent,
|
|
168
166
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
169
167
|
}, options);
|
|
170
168
|
if (!requestRes.ok) {
|
|
@@ -206,9 +204,7 @@ async function $do(
|
|
|
206
204
|
const [result] = await M.match<
|
|
207
205
|
operations.SubscribersV1ControllerMarkMessagesAsResponse,
|
|
208
206
|
| errors.ErrorDto
|
|
209
|
-
| errors.ErrorDto
|
|
210
207
|
| errors.ValidationErrorDto
|
|
211
|
-
| errors.ErrorDto
|
|
212
208
|
| SDKError
|
|
213
209
|
| SDKValidationError
|
|
214
210
|
| UnexpectedClientError
|