@novu/api 0.0.1-alpha.179 → 0.0.1-alpha.182
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 +6 -8
- package/docs/sdks/admin/README.md +2 -2
- package/docs/sdks/authentication/README.md +2 -2
- package/docs/sdks/credentials/README.md +3 -3
- package/docs/sdks/integrations/README.md +6 -6
- package/docs/sdks/messages/README.md +3 -3
- package/docs/sdks/notifications/README.md +6 -6
- package/docs/sdks/novu/README.md +6 -6
- package/docs/sdks/novumessages/README.md +3 -3
- package/docs/sdks/novunotifications/README.md +2 -2
- package/docs/sdks/novusubscribers/README.md +3 -3
- package/docs/sdks/preferences/README.md +4 -4
- package/docs/sdks/properties/README.md +1 -1
- package/docs/sdks/stats/README.md +2 -2
- package/docs/sdks/subscribers/README.md +6 -6
- package/docs/sdks/topics/README.md +5 -5
- package/docs/sdks/webhooks/README.md +1 -1
- package/funcs/adminTestingControllerIdempotency.d.ts.map +1 -1
- package/funcs/adminTestingControllerIdempotency.js +7 -4
- package/funcs/adminTestingControllerIdempotency.js.map +1 -1
- package/funcs/adminTestingControllerIdempotencyGet.d.ts.map +1 -1
- package/funcs/adminTestingControllerIdempotencyGet.js +7 -4
- package/funcs/adminTestingControllerIdempotencyGet.js.map +1 -1
- package/funcs/cancel.d.ts.map +1 -1
- package/funcs/cancel.js +7 -4
- package/funcs/cancel.js.map +1 -1
- package/funcs/integrationsCreate.d.ts.map +1 -1
- package/funcs/integrationsCreate.js +7 -4
- package/funcs/integrationsCreate.js.map +1 -1
- package/funcs/integrationsDelete.d.ts.map +1 -1
- package/funcs/integrationsDelete.js +7 -4
- package/funcs/integrationsDelete.js.map +1 -1
- package/funcs/integrationsList.d.ts.map +1 -1
- package/funcs/integrationsList.js +7 -4
- package/funcs/integrationsList.js.map +1 -1
- package/funcs/integrationsListActive.d.ts.map +1 -1
- package/funcs/integrationsListActive.js +7 -4
- package/funcs/integrationsListActive.js.map +1 -1
- package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
- package/funcs/integrationsSetAsPrimary.js +5 -4
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.d.ts.map +1 -1
- package/funcs/integrationsUpdate.js +5 -4
- package/funcs/integrationsUpdate.js.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.d.ts.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.js +7 -4
- package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
- package/funcs/messagesDelete.d.ts.map +1 -1
- package/funcs/messagesDelete.js +7 -4
- package/funcs/messagesDelete.js.map +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
- package/funcs/messagesDeleteByTransactionId.js +7 -4
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/messagesRetrieve.d.ts.map +1 -1
- package/funcs/messagesRetrieve.js +7 -4
- package/funcs/messagesRetrieve.js.map +1 -1
- package/funcs/notificationsList.d.ts.map +1 -1
- package/funcs/notificationsList.js +7 -4
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/notificationsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsRetrieve.js +7 -4
- package/funcs/notificationsRetrieve.js.map +1 -1
- package/funcs/notificationsStatsGraph.d.ts.map +1 -1
- package/funcs/notificationsStatsGraph.js +7 -4
- package/funcs/notificationsStatsGraph.js.map +1 -1
- package/funcs/notificationsStatsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsStatsRetrieve.js +7 -4
- package/funcs/notificationsStatsRetrieve.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.js +7 -4
- package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +7 -4
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
- package/funcs/subscribersCreate.d.ts.map +1 -1
- package/funcs/subscribersCreate.js +7 -4
- package/funcs/subscribersCreate.js.map +1 -1
- package/funcs/subscribersCreateBulk.d.ts.map +1 -1
- package/funcs/subscribersCreateBulk.js +7 -4
- package/funcs/subscribersCreateBulk.js.map +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
- package/funcs/subscribersCredentialsAppend.js +7 -4
- package/funcs/subscribersCredentialsAppend.js.map +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
- package/funcs/subscribersCredentialsDelete.js +7 -4
- package/funcs/subscribersCredentialsDelete.js.map +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
- package/funcs/subscribersCredentialsUpdate.js +7 -4
- package/funcs/subscribersCredentialsUpdate.js.map +1 -1
- package/funcs/subscribersDelete.d.ts.map +1 -1
- package/funcs/subscribersDelete.js +7 -4
- package/funcs/subscribersDelete.js.map +1 -1
- package/funcs/subscribersList.d.ts.map +1 -1
- package/funcs/subscribersList.js +7 -4
- package/funcs/subscribersList.js.map +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAll.js +7 -4
- package/funcs/subscribersMessagesMarkAll.js.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +7 -4
- package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +7 -4
- package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +7 -4
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +7 -4
- package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
- package/funcs/subscribersPreferencesList.d.ts.map +1 -1
- package/funcs/subscribersPreferencesList.js +7 -4
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.d.ts.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.js +7 -4
- package/funcs/subscribersPreferencesRetrieveByLevel.js.map +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdate.js +7 -4
- package/funcs/subscribersPreferencesUpdate.js.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.js +7 -4
- package/funcs/subscribersPreferencesUpdateGlobal.js.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js +7 -4
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
- package/funcs/subscribersRetrieve.d.ts.map +1 -1
- package/funcs/subscribersRetrieve.js +7 -4
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/subscribersUpdate.d.ts.map +1 -1
- package/funcs/subscribersUpdate.js +7 -4
- package/funcs/subscribersUpdate.js.map +1 -1
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.d.ts.map +1 -1
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.js +3 -2
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.js.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.d.ts.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.js +3 -2
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.js.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.d.ts.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.js +3 -2
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.js.map +1 -1
- package/funcs/topicsCreate.d.ts.map +1 -1
- package/funcs/topicsCreate.js +7 -4
- package/funcs/topicsCreate.js.map +1 -1
- package/funcs/topicsDelete.d.ts.map +1 -1
- package/funcs/topicsDelete.js +7 -4
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/topicsList.d.ts.map +1 -1
- package/funcs/topicsList.js +7 -4
- package/funcs/topicsList.js.map +1 -1
- package/funcs/topicsRename.d.ts.map +1 -1
- package/funcs/topicsRename.js +7 -4
- package/funcs/topicsRename.js.map +1 -1
- package/funcs/topicsRetrieve.d.ts.map +1 -1
- package/funcs/topicsRetrieve.js +7 -4
- package/funcs/topicsRetrieve.js.map +1 -1
- package/funcs/topicsSubscribersAssign.d.ts.map +1 -1
- package/funcs/topicsSubscribersAssign.js +7 -4
- package/funcs/topicsSubscribersAssign.js.map +1 -1
- package/funcs/topicsSubscribersRemove.d.ts.map +1 -1
- package/funcs/topicsSubscribersRemove.js +7 -4
- package/funcs/topicsSubscribersRemove.js.map +1 -1
- package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
- package/funcs/topicsSubscribersRetrieve.js +7 -4
- package/funcs/topicsSubscribersRetrieve.js.map +1 -1
- package/funcs/trigger.d.ts.map +1 -1
- package/funcs/trigger.js +7 -4
- package/funcs/trigger.js.map +1 -1
- package/funcs/triggerBroadcast.d.ts.map +1 -1
- package/funcs/triggerBroadcast.js +7 -4
- package/funcs/triggerBroadcast.js.map +1 -1
- package/funcs/triggerBulk.d.ts.map +1 -1
- package/funcs/triggerBulk.js +7 -4
- package/funcs/triggerBulk.js.map +1 -1
- package/hooks/novu-custom-hook.js +1 -1
- package/hooks/novu-custom-hook.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/encodings.d.ts +10 -9
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +74 -48
- package/lib/encodings.js.map +1 -1
- package/lib/primitives.d.ts +1 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +11 -1
- package/lib/primitives.js.map +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +4 -1
- package/lib/sdks.js.map +1 -1
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts +5 -0
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationexecutiondetailresponsedto.js +2 -0
- package/models/components/activitynotificationexecutiondetailresponsedto.js.map +1 -1
- package/models/components/activitynotificationjobresponsedto.d.ts +5 -0
- package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationjobresponsedto.js +2 -0
- package/models/components/activitynotificationjobresponsedto.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/adminTestingControllerIdempotency.ts +7 -4
- package/src/funcs/adminTestingControllerIdempotencyGet.ts +7 -4
- package/src/funcs/cancel.ts +7 -4
- package/src/funcs/integrationsCreate.ts +7 -4
- package/src/funcs/integrationsDelete.ts +7 -4
- package/src/funcs/integrationsList.ts +7 -4
- package/src/funcs/integrationsListActive.ts +7 -4
- package/src/funcs/integrationsSetAsPrimary.ts +5 -4
- package/src/funcs/integrationsUpdate.ts +5 -4
- package/src/funcs/integrationsWebhooksRetrieve.ts +7 -4
- package/src/funcs/messagesDelete.ts +7 -4
- package/src/funcs/messagesDeleteByTransactionId.ts +7 -4
- package/src/funcs/messagesRetrieve.ts +7 -4
- package/src/funcs/notificationsList.ts +7 -4
- package/src/funcs/notificationsRetrieve.ts +7 -4
- package/src/funcs/notificationsStatsGraph.ts +7 -4
- package/src/funcs/notificationsStatsRetrieve.ts +7 -4
- package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +7 -4
- package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +7 -4
- package/src/funcs/subscribersCreate.ts +7 -4
- package/src/funcs/subscribersCreateBulk.ts +7 -4
- package/src/funcs/subscribersCredentialsAppend.ts +7 -4
- package/src/funcs/subscribersCredentialsDelete.ts +7 -4
- package/src/funcs/subscribersCredentialsUpdate.ts +7 -4
- package/src/funcs/subscribersDelete.ts +7 -4
- package/src/funcs/subscribersList.ts +7 -4
- package/src/funcs/subscribersMessagesMarkAll.ts +7 -4
- package/src/funcs/subscribersMessagesMarkAllAs.ts +7 -4
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +7 -4
- package/src/funcs/subscribersNotificationsFeed.ts +7 -4
- package/src/funcs/subscribersNotificationsUnseenCount.ts +7 -4
- package/src/funcs/subscribersPreferencesList.ts +7 -4
- package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +7 -4
- package/src/funcs/subscribersPreferencesUpdate.ts +7 -4
- package/src/funcs/subscribersPreferencesUpdateGlobal.ts +7 -4
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +7 -4
- package/src/funcs/subscribersRetrieve.ts +7 -4
- package/src/funcs/subscribersUpdate.ts +7 -4
- package/src/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.ts +3 -2
- package/src/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.ts +3 -2
- package/src/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.ts +3 -2
- package/src/funcs/topicsCreate.ts +7 -4
- package/src/funcs/topicsDelete.ts +7 -4
- package/src/funcs/topicsList.ts +7 -4
- package/src/funcs/topicsRename.ts +7 -4
- package/src/funcs/topicsRetrieve.ts +7 -4
- package/src/funcs/topicsSubscribersAssign.ts +7 -4
- package/src/funcs/topicsSubscribersRemove.ts +7 -4
- package/src/funcs/topicsSubscribersRetrieve.ts +7 -4
- package/src/funcs/trigger.ts +7 -4
- package/src/funcs/triggerBroadcast.ts +7 -4
- package/src/funcs/triggerBulk.ts +7 -4
- package/src/hooks/novu-custom-hook.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +95 -61
- package/src/lib/primitives.ts +14 -0
- package/src/lib/sdks.ts +4 -1
- package/src/models/components/activitynotificationexecutiondetailresponsedto.ts +7 -0
- package/src/models/components/activitynotificationjobresponsedto.ts +7 -0
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -70,14 +71,14 @@ export async function messagesRetrieve(
|
|
|
70
71
|
"transactionId": payload.transactionId,
|
|
71
72
|
});
|
|
72
73
|
|
|
73
|
-
const headers = new Headers({
|
|
74
|
+
const headers = new Headers(compactMap({
|
|
74
75
|
Accept: "application/json",
|
|
75
76
|
"Idempotency-Key": encodeSimple(
|
|
76
77
|
"Idempotency-Key",
|
|
77
78
|
payload["Idempotency-Key"],
|
|
78
79
|
{ explode: false, charEncoding: "none" },
|
|
79
80
|
),
|
|
80
|
-
});
|
|
81
|
+
}));
|
|
81
82
|
|
|
82
83
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
83
84
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -123,7 +124,7 @@ export async function messagesRetrieve(
|
|
|
123
124
|
|
|
124
125
|
const doResult = await client._do(req, {
|
|
125
126
|
context,
|
|
126
|
-
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
127
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"],
|
|
127
128
|
retryConfig: context.retryConfig,
|
|
128
129
|
retryCodes: context.retryCodes,
|
|
129
130
|
});
|
|
@@ -153,7 +154,9 @@ export async function messagesRetrieve(
|
|
|
153
154
|
operations.MessagesControllerGetMessagesResponse$inboundSchema,
|
|
154
155
|
{ hdrs: true, key: "Result" },
|
|
155
156
|
),
|
|
156
|
-
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, {
|
|
157
|
+
M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, {
|
|
158
|
+
hdrs: true,
|
|
159
|
+
}),
|
|
157
160
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
158
161
|
M.fail([429, 503]),
|
|
159
162
|
M.fail(["4XX", "5XX"]),
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -70,14 +71,14 @@ export async function notificationsList(
|
|
|
70
71
|
"transactionId": payload.transactionId,
|
|
71
72
|
});
|
|
72
73
|
|
|
73
|
-
const headers = new Headers({
|
|
74
|
+
const headers = new Headers(compactMap({
|
|
74
75
|
Accept: "application/json",
|
|
75
76
|
"Idempotency-Key": encodeSimple(
|
|
76
77
|
"Idempotency-Key",
|
|
77
78
|
payload["Idempotency-Key"],
|
|
78
79
|
{ explode: false, charEncoding: "none" },
|
|
79
80
|
),
|
|
80
|
-
});
|
|
81
|
+
}));
|
|
81
82
|
|
|
82
83
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
83
84
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -123,7 +124,7 @@ export async function notificationsList(
|
|
|
123
124
|
|
|
124
125
|
const doResult = await client._do(req, {
|
|
125
126
|
context,
|
|
126
|
-
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
127
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"],
|
|
127
128
|
retryConfig: context.retryConfig,
|
|
128
129
|
retryCodes: context.retryCodes,
|
|
129
130
|
});
|
|
@@ -153,7 +154,9 @@ export async function notificationsList(
|
|
|
153
154
|
operations.NotificationsControllerListNotificationsResponse$inboundSchema,
|
|
154
155
|
{ hdrs: true, key: "Result" },
|
|
155
156
|
),
|
|
156
|
-
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, {
|
|
157
|
+
M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, {
|
|
158
|
+
hdrs: true,
|
|
159
|
+
}),
|
|
157
160
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
158
161
|
M.fail([429, 503]),
|
|
159
162
|
M.fail(["4XX", "5XX"]),
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -71,14 +72,14 @@ export async function notificationsRetrieve(
|
|
|
71
72
|
|
|
72
73
|
const path = pathToFunc("/v1/notifications/{notificationId}")(pathParams);
|
|
73
74
|
|
|
74
|
-
const headers = new Headers({
|
|
75
|
+
const headers = new Headers(compactMap({
|
|
75
76
|
Accept: "application/json",
|
|
76
77
|
"Idempotency-Key": encodeSimple(
|
|
77
78
|
"Idempotency-Key",
|
|
78
79
|
payload["Idempotency-Key"],
|
|
79
80
|
{ explode: false, charEncoding: "none" },
|
|
80
81
|
),
|
|
81
|
-
});
|
|
82
|
+
}));
|
|
82
83
|
|
|
83
84
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
84
85
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -123,7 +124,7 @@ export async function notificationsRetrieve(
|
|
|
123
124
|
|
|
124
125
|
const doResult = await client._do(req, {
|
|
125
126
|
context,
|
|
126
|
-
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
127
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"],
|
|
127
128
|
retryConfig: context.retryConfig,
|
|
128
129
|
retryCodes: context.retryCodes,
|
|
129
130
|
});
|
|
@@ -153,7 +154,9 @@ export async function notificationsRetrieve(
|
|
|
153
154
|
operations.NotificationsControllerGetNotificationResponse$inboundSchema,
|
|
154
155
|
{ hdrs: true, key: "Result" },
|
|
155
156
|
),
|
|
156
|
-
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, {
|
|
157
|
+
M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, {
|
|
158
|
+
hdrs: true,
|
|
159
|
+
}),
|
|
157
160
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
158
161
|
M.fail([429, 503]),
|
|
159
162
|
M.fail(["4XX", "5XX"]),
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -70,14 +71,14 @@ export async function notificationsStatsGraph(
|
|
|
70
71
|
"days": payload.days,
|
|
71
72
|
});
|
|
72
73
|
|
|
73
|
-
const headers = new Headers({
|
|
74
|
+
const headers = new Headers(compactMap({
|
|
74
75
|
Accept: "application/json",
|
|
75
76
|
"Idempotency-Key": encodeSimple(
|
|
76
77
|
"Idempotency-Key",
|
|
77
78
|
payload["Idempotency-Key"],
|
|
78
79
|
{ explode: false, charEncoding: "none" },
|
|
79
80
|
),
|
|
80
|
-
});
|
|
81
|
+
}));
|
|
81
82
|
|
|
82
83
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
83
84
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -123,7 +124,7 @@ export async function notificationsStatsGraph(
|
|
|
123
124
|
|
|
124
125
|
const doResult = await client._do(req, {
|
|
125
126
|
context,
|
|
126
|
-
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
127
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"],
|
|
127
128
|
retryConfig: context.retryConfig,
|
|
128
129
|
retryCodes: context.retryCodes,
|
|
129
130
|
});
|
|
@@ -154,7 +155,9 @@ export async function notificationsStatsGraph(
|
|
|
154
155
|
.NotificationsControllerGetActivityGraphStatsResponse$inboundSchema,
|
|
155
156
|
{ hdrs: true, key: "Result" },
|
|
156
157
|
),
|
|
157
|
-
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, {
|
|
158
|
+
M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, {
|
|
159
|
+
hdrs: true,
|
|
160
|
+
}),
|
|
158
161
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
159
162
|
M.fail([429, 503]),
|
|
160
163
|
M.fail(["4XX", "5XX"]),
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -62,14 +63,14 @@ export async function notificationsStatsRetrieve(
|
|
|
62
63
|
|
|
63
64
|
const path = pathToFunc("/v1/notifications/stats")();
|
|
64
65
|
|
|
65
|
-
const headers = new Headers({
|
|
66
|
+
const headers = new Headers(compactMap({
|
|
66
67
|
Accept: "application/json",
|
|
67
68
|
"Idempotency-Key": encodeSimple(
|
|
68
69
|
"Idempotency-Key",
|
|
69
70
|
payload["Idempotency-Key"],
|
|
70
71
|
{ explode: false, charEncoding: "none" },
|
|
71
72
|
),
|
|
72
|
-
});
|
|
73
|
+
}));
|
|
73
74
|
|
|
74
75
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
75
76
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -114,7 +115,7 @@ export async function notificationsStatsRetrieve(
|
|
|
114
115
|
|
|
115
116
|
const doResult = await client._do(req, {
|
|
116
117
|
context,
|
|
117
|
-
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
118
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"],
|
|
118
119
|
retryConfig: context.retryConfig,
|
|
119
120
|
retryCodes: context.retryCodes,
|
|
120
121
|
});
|
|
@@ -144,7 +145,9 @@ export async function notificationsStatsRetrieve(
|
|
|
144
145
|
operations.NotificationsControllerGetActivityStatsResponse$inboundSchema,
|
|
145
146
|
{ hdrs: true, key: "Result" },
|
|
146
147
|
),
|
|
147
|
-
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, {
|
|
148
|
+
M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, {
|
|
149
|
+
hdrs: true,
|
|
150
|
+
}),
|
|
148
151
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
149
152
|
M.fail([429, 503]),
|
|
150
153
|
M.fail(["4XX", "5XX"]),
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -77,14 +78,14 @@ export async function subscribersAuthenticationChatAccessOauth(
|
|
|
77
78
|
"integrationIdentifier": payload.integrationIdentifier,
|
|
78
79
|
});
|
|
79
80
|
|
|
80
|
-
const headers = new Headers({
|
|
81
|
+
const headers = new Headers(compactMap({
|
|
81
82
|
Accept: "application/json",
|
|
82
83
|
"Idempotency-Key": encodeSimple(
|
|
83
84
|
"Idempotency-Key",
|
|
84
85
|
payload["Idempotency-Key"],
|
|
85
86
|
{ explode: false, charEncoding: "none" },
|
|
86
87
|
),
|
|
87
|
-
});
|
|
88
|
+
}));
|
|
88
89
|
|
|
89
90
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
90
91
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -130,7 +131,7 @@ export async function subscribersAuthenticationChatAccessOauth(
|
|
|
130
131
|
|
|
131
132
|
const doResult = await client._do(req, {
|
|
132
133
|
context,
|
|
133
|
-
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
134
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"],
|
|
134
135
|
retryConfig: context.retryConfig,
|
|
135
136
|
retryCodes: context.retryCodes,
|
|
136
137
|
});
|
|
@@ -160,7 +161,9 @@ export async function subscribersAuthenticationChatAccessOauth(
|
|
|
160
161
|
operations.SubscribersControllerChatAccessOauthResponse$inboundSchema
|
|
161
162
|
.optional(),
|
|
162
163
|
),
|
|
163
|
-
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, {
|
|
164
|
+
M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, {
|
|
165
|
+
hdrs: true,
|
|
166
|
+
}),
|
|
164
167
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
165
168
|
M.fail([429, 503]),
|
|
166
169
|
M.fail(["4XX", "5XX"]),
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -85,7 +86,7 @@ export async function subscribersAuthenticationChatAccessOauthCallBack(
|
|
|
85
86
|
"integrationIdentifier": payload.integrationIdentifier,
|
|
86
87
|
});
|
|
87
88
|
|
|
88
|
-
const headers = new Headers({
|
|
89
|
+
const headers = new Headers(compactMap({
|
|
89
90
|
Accept: options?.acceptHeaderOverride
|
|
90
91
|
|| "application/json;q=1, text/html;q=0",
|
|
91
92
|
"Idempotency-Key": encodeSimple(
|
|
@@ -93,7 +94,7 @@ export async function subscribersAuthenticationChatAccessOauthCallBack(
|
|
|
93
94
|
payload["Idempotency-Key"],
|
|
94
95
|
{ explode: false, charEncoding: "none" },
|
|
95
96
|
),
|
|
96
|
-
});
|
|
97
|
+
}));
|
|
97
98
|
|
|
98
99
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
99
100
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -139,7 +140,7 @@ export async function subscribersAuthenticationChatAccessOauthCallBack(
|
|
|
139
140
|
|
|
140
141
|
const doResult = await client._do(req, {
|
|
141
142
|
context,
|
|
142
|
-
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
143
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"],
|
|
143
144
|
retryConfig: context.retryConfig,
|
|
144
145
|
retryCodes: context.retryCodes,
|
|
145
146
|
});
|
|
@@ -174,7 +175,9 @@ export async function subscribersAuthenticationChatAccessOauthCallBack(
|
|
|
174
175
|
operations.SubscribersControllerChatOauthCallbackResponse$inboundSchema,
|
|
175
176
|
{ hdrs: true, key: "Result" },
|
|
176
177
|
),
|
|
177
|
-
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, {
|
|
178
|
+
M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, {
|
|
179
|
+
hdrs: true,
|
|
180
|
+
}),
|
|
178
181
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
179
182
|
M.fail([429, 503]),
|
|
180
183
|
M.fail(["4XX", "5XX"]),
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -70,7 +71,7 @@ export async function subscribersCreate(
|
|
|
70
71
|
|
|
71
72
|
const path = pathToFunc("/v1/subscribers")();
|
|
72
73
|
|
|
73
|
-
const headers = new Headers({
|
|
74
|
+
const headers = new Headers(compactMap({
|
|
74
75
|
"Content-Type": "application/json",
|
|
75
76
|
Accept: "application/json",
|
|
76
77
|
"Idempotency-Key": encodeSimple(
|
|
@@ -78,7 +79,7 @@ export async function subscribersCreate(
|
|
|
78
79
|
payload["Idempotency-Key"],
|
|
79
80
|
{ explode: false, charEncoding: "none" },
|
|
80
81
|
),
|
|
81
|
-
});
|
|
82
|
+
}));
|
|
82
83
|
|
|
83
84
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
84
85
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -123,7 +124,7 @@ export async function subscribersCreate(
|
|
|
123
124
|
|
|
124
125
|
const doResult = await client._do(req, {
|
|
125
126
|
context,
|
|
126
|
-
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
127
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"],
|
|
127
128
|
retryConfig: context.retryConfig,
|
|
128
129
|
retryCodes: context.retryCodes,
|
|
129
130
|
});
|
|
@@ -153,7 +154,9 @@ export async function subscribersCreate(
|
|
|
153
154
|
operations.SubscribersControllerCreateSubscriberResponse$inboundSchema,
|
|
154
155
|
{ hdrs: true, key: "Result" },
|
|
155
156
|
),
|
|
156
|
-
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, {
|
|
157
|
+
M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, {
|
|
158
|
+
hdrs: true,
|
|
159
|
+
}),
|
|
157
160
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
158
161
|
M.fail([429, 503]),
|
|
159
162
|
M.fail(["4XX", "5XX"]),
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -74,7 +75,7 @@ export async function subscribersCreateBulk(
|
|
|
74
75
|
|
|
75
76
|
const path = pathToFunc("/v1/subscribers/bulk")();
|
|
76
77
|
|
|
77
|
-
const headers = new Headers({
|
|
78
|
+
const headers = new Headers(compactMap({
|
|
78
79
|
"Content-Type": "application/json",
|
|
79
80
|
Accept: "application/json",
|
|
80
81
|
"Idempotency-Key": encodeSimple(
|
|
@@ -82,7 +83,7 @@ export async function subscribersCreateBulk(
|
|
|
82
83
|
payload["Idempotency-Key"],
|
|
83
84
|
{ explode: false, charEncoding: "none" },
|
|
84
85
|
),
|
|
85
|
-
});
|
|
86
|
+
}));
|
|
86
87
|
|
|
87
88
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
88
89
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -127,7 +128,7 @@ export async function subscribersCreateBulk(
|
|
|
127
128
|
|
|
128
129
|
const doResult = await client._do(req, {
|
|
129
130
|
context,
|
|
130
|
-
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
131
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"],
|
|
131
132
|
retryConfig: context.retryConfig,
|
|
132
133
|
retryCodes: context.retryCodes,
|
|
133
134
|
});
|
|
@@ -158,7 +159,9 @@ export async function subscribersCreateBulk(
|
|
|
158
159
|
.SubscribersControllerBulkCreateSubscribersResponse$inboundSchema,
|
|
159
160
|
{ hdrs: true, key: "Result" },
|
|
160
161
|
),
|
|
161
|
-
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, {
|
|
162
|
+
M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, {
|
|
163
|
+
hdrs: true,
|
|
164
|
+
}),
|
|
162
165
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
163
166
|
M.fail([429, 503]),
|
|
164
167
|
M.fail(["4XX", "5XX"]),
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -85,7 +86,7 @@ export async function subscribersCredentialsAppend(
|
|
|
85
86
|
pathParams,
|
|
86
87
|
);
|
|
87
88
|
|
|
88
|
-
const headers = new Headers({
|
|
89
|
+
const headers = new Headers(compactMap({
|
|
89
90
|
"Content-Type": "application/json",
|
|
90
91
|
Accept: "application/json",
|
|
91
92
|
"Idempotency-Key": encodeSimple(
|
|
@@ -93,7 +94,7 @@ export async function subscribersCredentialsAppend(
|
|
|
93
94
|
payload["Idempotency-Key"],
|
|
94
95
|
{ explode: false, charEncoding: "none" },
|
|
95
96
|
),
|
|
96
|
-
});
|
|
97
|
+
}));
|
|
97
98
|
|
|
98
99
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
99
100
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -138,7 +139,7 @@ export async function subscribersCredentialsAppend(
|
|
|
138
139
|
|
|
139
140
|
const doResult = await client._do(req, {
|
|
140
141
|
context,
|
|
141
|
-
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
142
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"],
|
|
142
143
|
retryConfig: context.retryConfig,
|
|
143
144
|
retryCodes: context.retryCodes,
|
|
144
145
|
});
|
|
@@ -169,7 +170,9 @@ export async function subscribersCredentialsAppend(
|
|
|
169
170
|
.SubscribersControllerModifySubscriberChannelResponse$inboundSchema,
|
|
170
171
|
{ hdrs: true, key: "Result" },
|
|
171
172
|
),
|
|
172
|
-
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, {
|
|
173
|
+
M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, {
|
|
174
|
+
hdrs: true,
|
|
175
|
+
}),
|
|
173
176
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
174
177
|
M.fail([429, 503]),
|
|
175
178
|
M.fail(["4XX", "5XX"]),
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -85,14 +86,14 @@ export async function subscribersCredentialsDelete(
|
|
|
85
86
|
"/v1/subscribers/{subscriberId}/credentials/{providerId}",
|
|
86
87
|
)(pathParams);
|
|
87
88
|
|
|
88
|
-
const headers = new Headers({
|
|
89
|
+
const headers = new Headers(compactMap({
|
|
89
90
|
Accept: "application/json",
|
|
90
91
|
"Idempotency-Key": encodeSimple(
|
|
91
92
|
"Idempotency-Key",
|
|
92
93
|
payload["Idempotency-Key"],
|
|
93
94
|
{ explode: false, charEncoding: "none" },
|
|
94
95
|
),
|
|
95
|
-
});
|
|
96
|
+
}));
|
|
96
97
|
|
|
97
98
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
98
99
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -137,7 +138,7 @@ export async function subscribersCredentialsDelete(
|
|
|
137
138
|
|
|
138
139
|
const doResult = await client._do(req, {
|
|
139
140
|
context,
|
|
140
|
-
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
141
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"],
|
|
141
142
|
retryConfig: context.retryConfig,
|
|
142
143
|
retryCodes: context.retryCodes,
|
|
143
144
|
});
|
|
@@ -170,7 +171,9 @@ export async function subscribersCredentialsDelete(
|
|
|
170
171
|
.optional(),
|
|
171
172
|
{ hdrs: true },
|
|
172
173
|
),
|
|
173
|
-
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, {
|
|
174
|
+
M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, {
|
|
175
|
+
hdrs: true,
|
|
176
|
+
}),
|
|
174
177
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
175
178
|
M.fail([429, 503]),
|
|
176
179
|
M.fail(["4XX", "5XX"]),
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -84,7 +85,7 @@ export async function subscribersCredentialsUpdate(
|
|
|
84
85
|
pathParams,
|
|
85
86
|
);
|
|
86
87
|
|
|
87
|
-
const headers = new Headers({
|
|
88
|
+
const headers = new Headers(compactMap({
|
|
88
89
|
"Content-Type": "application/json",
|
|
89
90
|
Accept: "application/json",
|
|
90
91
|
"Idempotency-Key": encodeSimple(
|
|
@@ -92,7 +93,7 @@ export async function subscribersCredentialsUpdate(
|
|
|
92
93
|
payload["Idempotency-Key"],
|
|
93
94
|
{ explode: false, charEncoding: "none" },
|
|
94
95
|
),
|
|
95
|
-
});
|
|
96
|
+
}));
|
|
96
97
|
|
|
97
98
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
98
99
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -137,7 +138,7 @@ export async function subscribersCredentialsUpdate(
|
|
|
137
138
|
|
|
138
139
|
const doResult = await client._do(req, {
|
|
139
140
|
context,
|
|
140
|
-
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
141
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"],
|
|
141
142
|
retryConfig: context.retryConfig,
|
|
142
143
|
retryCodes: context.retryCodes,
|
|
143
144
|
});
|
|
@@ -168,7 +169,9 @@ export async function subscribersCredentialsUpdate(
|
|
|
168
169
|
.SubscribersControllerUpdateSubscriberChannelResponse$inboundSchema,
|
|
169
170
|
{ hdrs: true, key: "Result" },
|
|
170
171
|
),
|
|
171
|
-
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, {
|
|
172
|
+
M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, {
|
|
173
|
+
hdrs: true,
|
|
174
|
+
}),
|
|
172
175
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
173
176
|
M.fail([429, 503]),
|
|
174
177
|
M.fail(["4XX", "5XX"]),
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -74,14 +75,14 @@ export async function subscribersDelete(
|
|
|
74
75
|
|
|
75
76
|
const path = pathToFunc("/v1/subscribers/{subscriberId}")(pathParams);
|
|
76
77
|
|
|
77
|
-
const headers = new Headers({
|
|
78
|
+
const headers = new Headers(compactMap({
|
|
78
79
|
Accept: "application/json",
|
|
79
80
|
"Idempotency-Key": encodeSimple(
|
|
80
81
|
"Idempotency-Key",
|
|
81
82
|
payload["Idempotency-Key"],
|
|
82
83
|
{ explode: false, charEncoding: "none" },
|
|
83
84
|
),
|
|
84
|
-
});
|
|
85
|
+
}));
|
|
85
86
|
|
|
86
87
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
87
88
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -126,7 +127,7 @@ export async function subscribersDelete(
|
|
|
126
127
|
|
|
127
128
|
const doResult = await client._do(req, {
|
|
128
129
|
context,
|
|
129
|
-
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
130
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"],
|
|
130
131
|
retryConfig: context.retryConfig,
|
|
131
132
|
retryCodes: context.retryCodes,
|
|
132
133
|
});
|
|
@@ -156,7 +157,9 @@ export async function subscribersDelete(
|
|
|
156
157
|
operations.SubscribersControllerRemoveSubscriberResponse$inboundSchema,
|
|
157
158
|
{ hdrs: true, key: "Result" },
|
|
158
159
|
),
|
|
159
|
-
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, {
|
|
160
|
+
M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, {
|
|
161
|
+
hdrs: true,
|
|
162
|
+
}),
|
|
160
163
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
161
164
|
M.fail([429, 503]),
|
|
162
165
|
M.fail(["4XX", "5XX"]),
|
|
@@ -6,6 +6,7 @@ import { NovuCore } from "../core.js";
|
|
|
6
6
|
import { dlv } from "../lib/dlv.js";
|
|
7
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
8
8
|
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
10
11
|
import { RequestOptions } from "../lib/sdks.js";
|
|
11
12
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -84,14 +85,14 @@ export async function subscribersList(
|
|
|
84
85
|
"page": payload.page,
|
|
85
86
|
});
|
|
86
87
|
|
|
87
|
-
const headers = new Headers({
|
|
88
|
+
const headers = new Headers(compactMap({
|
|
88
89
|
Accept: "application/json",
|
|
89
90
|
"Idempotency-Key": encodeSimple(
|
|
90
91
|
"Idempotency-Key",
|
|
91
92
|
payload["Idempotency-Key"],
|
|
92
93
|
{ explode: false, charEncoding: "none" },
|
|
93
94
|
),
|
|
94
|
-
});
|
|
95
|
+
}));
|
|
95
96
|
|
|
96
97
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
97
98
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -137,7 +138,7 @@ export async function subscribersList(
|
|
|
137
138
|
|
|
138
139
|
const doResult = await client._do(req, {
|
|
139
140
|
context,
|
|
140
|
-
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
141
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "500", "503", "5XX"],
|
|
141
142
|
retryConfig: context.retryConfig,
|
|
142
143
|
retryCodes: context.retryCodes,
|
|
143
144
|
});
|
|
@@ -167,7 +168,9 @@ export async function subscribersList(
|
|
|
167
168
|
operations.SubscribersControllerListSubscribersResponse$inboundSchema,
|
|
168
169
|
{ hdrs: true, key: "Result" },
|
|
169
170
|
),
|
|
170
|
-
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, {
|
|
171
|
+
M.jsonErr([400, 404, 409, 500], errors.ErrorDto$inboundSchema, {
|
|
172
|
+
hdrs: true,
|
|
173
|
+
}),
|
|
171
174
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
172
175
|
M.fail([429, 503]),
|
|
173
176
|
M.fail(["4XX", "5XX"]),
|