@novu/api 0.0.1-alpha.191 → 0.0.1-alpha.192
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/docs/sdks/messages/README.md +1 -1
- package/docs/sdks/novu/README.md +3 -0
- package/docs/sdks/preferences/README.md +1 -1
- package/docs/sdks/stats/README.md +1 -1
- package/docs/sdks/subscribers/README.md +2 -2
- package/funcs/messagesDeleteByTransactionId.d.ts +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
- package/funcs/messagesDeleteByTransactionId.js +2 -2
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/notificationsStatsGraph.d.ts +1 -1
- package/funcs/notificationsStatsGraph.d.ts.map +1 -1
- package/funcs/notificationsStatsGraph.js +2 -2
- package/funcs/notificationsStatsGraph.js.map +1 -1
- package/funcs/subscribersList.d.ts +1 -1
- package/funcs/subscribersList.d.ts.map +1 -1
- package/funcs/subscribersList.js +3 -3
- package/funcs/subscribersList.js.map +1 -1
- package/funcs/subscribersPreferencesList.d.ts +1 -1
- package/funcs/subscribersPreferencesList.d.ts.map +1 -1
- package/funcs/subscribersPreferencesList.js +2 -2
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersRetrieve.d.ts +1 -1
- package/funcs/subscribersRetrieve.d.ts.map +1 -1
- package/funcs/subscribersRetrieve.js +2 -2
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.d.ts +1 -1
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.d.ts.map +1 -1
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.js +17 -1
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.js.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.d.ts +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.d.ts.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.js +17 -1
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.js.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.d.ts +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.d.ts.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.js +17 -1
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/operations/eventscontrollercancel.d.ts +2 -2
- package/models/operations/eventscontrollercancel.d.ts.map +1 -1
- package/models/operations/eventscontrollercancel.js +2 -2
- package/models/operations/eventscontrollercancel.js.map +1 -1
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/integrationscontrollergetwebhooksupportstatus.d.ts +2 -2
- package/models/operations/integrationscontrollergetwebhooksupportstatus.d.ts.map +1 -1
- package/models/operations/integrationscontrollergetwebhooksupportstatus.js +2 -2
- package/models/operations/integrationscontrollergetwebhooksupportstatus.js.map +1 -1
- package/models/operations/integrationscontrollerremoveintegration.d.ts +2 -2
- package/models/operations/integrationscontrollerremoveintegration.d.ts.map +1 -1
- package/models/operations/integrationscontrollerremoveintegration.js +2 -2
- package/models/operations/integrationscontrollerremoveintegration.js.map +1 -1
- package/models/operations/integrationscontrollersetintegrationasprimary.d.ts +2 -2
- package/models/operations/integrationscontrollersetintegrationasprimary.d.ts.map +1 -1
- package/models/operations/integrationscontrollersetintegrationasprimary.js +2 -2
- package/models/operations/integrationscontrollersetintegrationasprimary.js.map +1 -1
- package/models/operations/integrationscontrollerupdateintegrationbyid.d.ts +2 -2
- package/models/operations/integrationscontrollerupdateintegrationbyid.d.ts.map +1 -1
- package/models/operations/integrationscontrollerupdateintegrationbyid.js +2 -2
- package/models/operations/integrationscontrollerupdateintegrationbyid.js.map +1 -1
- package/models/operations/messagescontrollerdeletemessage.d.ts +2 -2
- package/models/operations/messagescontrollerdeletemessage.d.ts.map +1 -1
- package/models/operations/messagescontrollerdeletemessage.js +2 -2
- package/models/operations/messagescontrollerdeletemessage.js.map +1 -1
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts +5 -5
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts.map +1 -1
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.js +2 -2
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.js.map +1 -1
- package/models/operations/messagescontrollergetmessages.d.ts +5 -5
- package/models/operations/messagescontrollergetmessages.d.ts.map +1 -1
- package/models/operations/messagescontrollergetmessages.js +2 -2
- package/models/operations/messagescontrollergetmessages.js.map +1 -1
- package/models/operations/notificationscontrollergetactivitygraphstats.d.ts +2 -2
- package/models/operations/notificationscontrollergetactivitygraphstats.d.ts.map +1 -1
- package/models/operations/notificationscontrollergetactivitygraphstats.js +2 -2
- package/models/operations/notificationscontrollergetactivitygraphstats.js.map +1 -1
- package/models/operations/notificationscontrollergetnotification.d.ts +2 -2
- package/models/operations/notificationscontrollergetnotification.d.ts.map +1 -1
- package/models/operations/notificationscontrollergetnotification.js +2 -2
- package/models/operations/notificationscontrollergetnotification.js.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.d.ts +5 -5
- package/models/operations/notificationscontrollerlistnotifications.d.ts.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.js +2 -2
- package/models/operations/notificationscontrollerlistnotifications.js.map +1 -1
- package/models/operations/subscriberscontrollerchataccessoauth.d.ts +5 -5
- package/models/operations/subscriberscontrollerchataccessoauth.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerchataccessoauth.js +2 -2
- package/models/operations/subscriberscontrollerchataccessoauth.js.map +1 -1
- package/models/operations/subscriberscontrollerchatoauthcallback.d.ts +5 -5
- package/models/operations/subscriberscontrollerchatoauthcallback.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerchatoauthcallback.js +2 -2
- package/models/operations/subscriberscontrollerchatoauthcallback.js.map +1 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts +3 -3
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js +2 -2
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js.map +1 -1
- package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts +5 -5
- package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetnotificationsfeed.js +2 -2
- package/models/operations/subscriberscontrollergetnotificationsfeed.js.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriber.d.ts +5 -5
- package/models/operations/subscriberscontrollergetsubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriber.js +2 -2
- package/models/operations/subscriberscontrollergetsubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts +5 -5
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js +2 -2
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js.map +1 -1
- package/models/operations/subscriberscontrollergetunseencount.d.ts +5 -5
- package/models/operations/subscriberscontrollergetunseencount.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetunseencount.js +2 -2
- package/models/operations/subscriberscontrollergetunseencount.js.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts +5 -5
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.js +2 -2
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.js.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscribers.d.ts +3 -3
- package/models/operations/subscriberscontrollerlistsubscribers.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscribers.js +2 -2
- package/models/operations/subscriberscontrollerlistsubscribers.js.map +1 -1
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts +4 -4
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkactionasseen.js +2 -2
- package/models/operations/subscriberscontrollermarkactionasseen.js.map +1 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts +2 -2
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.js +2 -2
- package/models/operations/subscriberscontrollermarkallunreadasread.js.map +1 -1
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts +2 -2
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkmessagesas.js +2 -2
- package/models/operations/subscriberscontrollermarkmessagesas.js.map +1 -1
- package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts +2 -2
- package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermodifysubscriberchannel.js +2 -2
- package/models/operations/subscriberscontrollermodifysubscriberchannel.js.map +1 -1
- package/models/operations/subscriberscontrollerremovesubscriber.d.ts +2 -2
- package/models/operations/subscriberscontrollerremovesubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerremovesubscriber.js +2 -2
- package/models/operations/subscriberscontrollerremovesubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriber.d.ts +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriber.js +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.js +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts +3 -3
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.js +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.js.map +1 -1
- package/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.d.ts +32 -0
- package/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.d.ts.map +1 -0
- package/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.js +70 -0
- package/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.js.map +1 -0
- package/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.d.ts +32 -0
- package/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.d.ts.map +1 -0
- package/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.js +70 -0
- package/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.js.map +1 -0
- package/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.d.ts +32 -0
- package/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.d.ts.map +1 -0
- package/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.js +70 -0
- package/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.js.map +1 -0
- package/models/operations/topicscontrollerassign.d.ts +5 -5
- package/models/operations/topicscontrollerassign.d.ts.map +1 -1
- package/models/operations/topicscontrollerassign.js +2 -2
- package/models/operations/topicscontrollerassign.js.map +1 -1
- package/models/operations/topicscontrollerdeletetopic.d.ts +5 -5
- package/models/operations/topicscontrollerdeletetopic.d.ts.map +1 -1
- package/models/operations/topicscontrollerdeletetopic.js +2 -2
- package/models/operations/topicscontrollerdeletetopic.js.map +1 -1
- package/models/operations/topicscontrollergettopic.d.ts +5 -5
- package/models/operations/topicscontrollergettopic.d.ts.map +1 -1
- package/models/operations/topicscontrollergettopic.js +2 -2
- package/models/operations/topicscontrollergettopic.js.map +1 -1
- package/models/operations/topicscontrollergettopicsubscriber.d.ts +5 -5
- package/models/operations/topicscontrollergettopicsubscriber.d.ts.map +1 -1
- package/models/operations/topicscontrollergettopicsubscriber.js +2 -2
- package/models/operations/topicscontrollergettopicsubscriber.js.map +1 -1
- package/models/operations/topicscontrollerlisttopics.d.ts +5 -5
- package/models/operations/topicscontrollerlisttopics.d.ts.map +1 -1
- package/models/operations/topicscontrollerlisttopics.js +2 -2
- package/models/operations/topicscontrollerlisttopics.js.map +1 -1
- package/models/operations/topicscontrollerremovesubscribers.d.ts +5 -5
- package/models/operations/topicscontrollerremovesubscribers.d.ts.map +1 -1
- package/models/operations/topicscontrollerremovesubscribers.js +2 -2
- package/models/operations/topicscontrollerremovesubscribers.js.map +1 -1
- package/models/operations/topicscontrollerrenametopic.d.ts +5 -5
- package/models/operations/topicscontrollerrenametopic.d.ts.map +1 -1
- package/models/operations/topicscontrollerrenametopic.js +2 -2
- package/models/operations/topicscontrollerrenametopic.js.map +1 -1
- package/package.json +1 -1
- package/sdk/messages.d.ts +1 -1
- package/sdk/messages.d.ts.map +1 -1
- package/sdk/messages.js +2 -2
- package/sdk/messages.js.map +1 -1
- package/sdk/preferences.d.ts +1 -1
- package/sdk/preferences.d.ts.map +1 -1
- package/sdk/preferences.js +2 -2
- package/sdk/preferences.js.map +1 -1
- package/sdk/sdk.d.ts +3 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +6 -6
- package/sdk/sdk.js.map +1 -1
- package/sdk/stats.d.ts +1 -1
- package/sdk/stats.d.ts.map +1 -1
- package/sdk/stats.js +2 -2
- package/sdk/stats.js.map +1 -1
- package/sdk/subscribers.d.ts +2 -2
- package/sdk/subscribers.d.ts.map +1 -1
- package/sdk/subscribers.js +4 -4
- package/sdk/subscribers.js.map +1 -1
- package/src/funcs/messagesDeleteByTransactionId.ts +2 -2
- package/src/funcs/notificationsStatsGraph.ts +2 -2
- package/src/funcs/subscribersList.ts +3 -3
- package/src/funcs/subscribersPreferencesList.ts +2 -2
- package/src/funcs/subscribersRetrieve.ts +2 -2
- package/src/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.ts +30 -0
- package/src/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.ts +29 -0
- package/src/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.ts +30 -0
- package/src/lib/config.ts +3 -3
- package/src/models/operations/eventscontrollercancel.ts +4 -4
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/integrationscontrollergetwebhooksupportstatus.ts +4 -4
- package/src/models/operations/integrationscontrollerremoveintegration.ts +4 -4
- package/src/models/operations/integrationscontrollersetintegrationasprimary.ts +4 -4
- package/src/models/operations/integrationscontrollerupdateintegrationbyid.ts +4 -4
- package/src/models/operations/messagescontrollerdeletemessage.ts +4 -4
- package/src/models/operations/messagescontrollerdeletemessagesbytransactionid.ts +7 -7
- package/src/models/operations/messagescontrollergetmessages.ts +7 -7
- package/src/models/operations/notificationscontrollergetactivitygraphstats.ts +4 -4
- package/src/models/operations/notificationscontrollergetnotification.ts +4 -4
- package/src/models/operations/notificationscontrollerlistnotifications.ts +7 -7
- package/src/models/operations/subscriberscontrollerchataccessoauth.ts +7 -7
- package/src/models/operations/subscriberscontrollerchatoauthcallback.ts +7 -7
- package/src/models/operations/subscriberscontrollerdeletesubscribercredentials.ts +5 -5
- package/src/models/operations/subscriberscontrollergetnotificationsfeed.ts +7 -7
- package/src/models/operations/subscriberscontrollergetsubscriber.ts +7 -7
- package/src/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.ts +7 -7
- package/src/models/operations/subscriberscontrollergetunseencount.ts +7 -7
- package/src/models/operations/subscriberscontrollerlistsubscriberpreferences.ts +7 -7
- package/src/models/operations/subscriberscontrollerlistsubscribers.ts +5 -5
- package/src/models/operations/subscriberscontrollermarkactionasseen.ts +6 -6
- package/src/models/operations/subscriberscontrollermarkallunreadasread.ts +4 -4
- package/src/models/operations/subscriberscontrollermarkmessagesas.ts +4 -4
- package/src/models/operations/subscriberscontrollermodifysubscriberchannel.ts +4 -4
- package/src/models/operations/subscriberscontrollerremovesubscriber.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriber.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriberchannel.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriberonlineflag.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriberpreference.ts +5 -5
- package/src/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.ts +92 -0
- package/src/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.ts +91 -0
- package/src/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.ts +92 -0
- package/src/models/operations/topicscontrollerassign.ts +7 -7
- package/src/models/operations/topicscontrollerdeletetopic.ts +7 -7
- package/src/models/operations/topicscontrollergettopic.ts +7 -7
- package/src/models/operations/topicscontrollergettopicsubscriber.ts +7 -7
- package/src/models/operations/topicscontrollerlisttopics.ts +7 -7
- package/src/models/operations/topicscontrollerremovesubscribers.ts +7 -7
- package/src/models/operations/topicscontrollerrenametopic.ts +7 -7
- package/src/sdk/messages.ts +2 -2
- package/src/sdk/preferences.ts +2 -2
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/stats.ts +2 -2
- package/src/sdk/subscribers.ts +4 -4
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest =
|
|
12
|
+
{
|
|
13
|
+
/**
|
|
14
|
+
* A header for idempotency purposes
|
|
15
|
+
*/
|
|
16
|
+
idempotencyKey?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest$inboundSchema:
|
|
21
|
+
z.ZodType<
|
|
22
|
+
TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
"Idempotency-Key": z.string().optional(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"Idempotency-Key": "idempotencyKey",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest$Outbound =
|
|
35
|
+
{
|
|
36
|
+
"Idempotency-Key"?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest$outboundSchema:
|
|
41
|
+
z.ZodType<
|
|
42
|
+
TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest
|
|
45
|
+
> = z.object({
|
|
46
|
+
idempotencyKey: z.string().optional(),
|
|
47
|
+
}).transform((v) => {
|
|
48
|
+
return remap$(v, {
|
|
49
|
+
idempotencyKey: "Idempotency-Key",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest$ {
|
|
58
|
+
/** @deprecated use `TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema =
|
|
60
|
+
TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest$inboundSchema;
|
|
61
|
+
/** @deprecated use `TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema =
|
|
63
|
+
TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest$outboundSchema;
|
|
64
|
+
/** @deprecated use `TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest$Outbound` instead. */
|
|
65
|
+
export type Outbound =
|
|
66
|
+
TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest$Outbound;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function testApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequestToJSON(
|
|
70
|
+
testApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest:
|
|
71
|
+
TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest,
|
|
72
|
+
): string {
|
|
73
|
+
return JSON.stringify(
|
|
74
|
+
TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest$outboundSchema
|
|
75
|
+
.parse(testApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function testApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequestFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<
|
|
82
|
+
TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest,
|
|
83
|
+
SDKValidationError
|
|
84
|
+
> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) =>
|
|
88
|
+
TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest$inboundSchema
|
|
89
|
+
.parse(JSON.parse(x)),
|
|
90
|
+
`Failed to parse 'TestApiRateLimitBulkControllerGlobalCategoryNoCostOverrideRequest' from JSON`,
|
|
91
|
+
);
|
|
92
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* A header for idempotency purposes
|
|
14
|
+
*/
|
|
15
|
+
idempotencyKey?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest$inboundSchema:
|
|
20
|
+
z.ZodType<
|
|
21
|
+
TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
"Idempotency-Key": z.string().optional(),
|
|
26
|
+
}).transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
"Idempotency-Key": "idempotencyKey",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest$Outbound =
|
|
34
|
+
{
|
|
35
|
+
"Idempotency-Key"?: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest$outboundSchema:
|
|
40
|
+
z.ZodType<
|
|
41
|
+
TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest
|
|
44
|
+
> = z.object({
|
|
45
|
+
idempotencyKey: z.string().optional(),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
idempotencyKey: "Idempotency-Key",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export namespace TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest$ {
|
|
57
|
+
/** @deprecated use `TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest$inboundSchema` instead. */
|
|
58
|
+
export const inboundSchema =
|
|
59
|
+
TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest$inboundSchema;
|
|
60
|
+
/** @deprecated use `TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema =
|
|
62
|
+
TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest$outboundSchema;
|
|
63
|
+
/** @deprecated use `TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest$Outbound` instead. */
|
|
64
|
+
export type Outbound =
|
|
65
|
+
TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest$Outbound;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function testApiRateLimitBulkControllerNoCategoryNoCostOverrideRequestToJSON(
|
|
69
|
+
testApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest:
|
|
70
|
+
TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest,
|
|
71
|
+
): string {
|
|
72
|
+
return JSON.stringify(
|
|
73
|
+
TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest$outboundSchema
|
|
74
|
+
.parse(testApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest),
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function testApiRateLimitBulkControllerNoCategoryNoCostOverrideRequestFromJSON(
|
|
79
|
+
jsonString: string,
|
|
80
|
+
): SafeParseResult<
|
|
81
|
+
TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest,
|
|
82
|
+
SDKValidationError
|
|
83
|
+
> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) =>
|
|
87
|
+
TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest$inboundSchema
|
|
88
|
+
.parse(JSON.parse(x)),
|
|
89
|
+
`Failed to parse 'TestApiRateLimitBulkControllerNoCategoryNoCostOverrideRequest' from JSON`,
|
|
90
|
+
);
|
|
91
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest =
|
|
12
|
+
{
|
|
13
|
+
/**
|
|
14
|
+
* A header for idempotency purposes
|
|
15
|
+
*/
|
|
16
|
+
idempotencyKey?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest$inboundSchema:
|
|
21
|
+
z.ZodType<
|
|
22
|
+
TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
"Idempotency-Key": z.string().optional(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"Idempotency-Key": "idempotencyKey",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest$Outbound =
|
|
35
|
+
{
|
|
36
|
+
"Idempotency-Key"?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest$outboundSchema:
|
|
41
|
+
z.ZodType<
|
|
42
|
+
TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest
|
|
45
|
+
> = z.object({
|
|
46
|
+
idempotencyKey: z.string().optional(),
|
|
47
|
+
}).transform((v) => {
|
|
48
|
+
return remap$(v, {
|
|
49
|
+
idempotencyKey: "Idempotency-Key",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest$ {
|
|
58
|
+
/** @deprecated use `TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema =
|
|
60
|
+
TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest$inboundSchema;
|
|
61
|
+
/** @deprecated use `TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema =
|
|
63
|
+
TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest$outboundSchema;
|
|
64
|
+
/** @deprecated use `TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest$Outbound` instead. */
|
|
65
|
+
export type Outbound =
|
|
66
|
+
TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest$Outbound;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function testApiRateLimitBulkControllerNoCategorySingleCostOverrideRequestToJSON(
|
|
70
|
+
testApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest:
|
|
71
|
+
TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest,
|
|
72
|
+
): string {
|
|
73
|
+
return JSON.stringify(
|
|
74
|
+
TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest$outboundSchema
|
|
75
|
+
.parse(testApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function testApiRateLimitBulkControllerNoCategorySingleCostOverrideRequestFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<
|
|
82
|
+
TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest,
|
|
83
|
+
SDKValidationError
|
|
84
|
+
> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) =>
|
|
88
|
+
TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest$inboundSchema
|
|
89
|
+
.parse(JSON.parse(x)),
|
|
90
|
+
`Failed to parse 'TestApiRateLimitBulkControllerNoCategorySingleCostOverrideRequest' from JSON`,
|
|
91
|
+
);
|
|
92
|
+
}
|
|
@@ -10,14 +10,14 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type TopicsControllerAssignRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* A header for idempotency purposes
|
|
15
|
-
*/
|
|
16
|
-
idempotencyKey?: string | undefined;
|
|
17
13
|
/**
|
|
18
14
|
* The topic key
|
|
19
15
|
*/
|
|
20
16
|
topicKey: string;
|
|
17
|
+
/**
|
|
18
|
+
* A header for idempotency purposes
|
|
19
|
+
*/
|
|
20
|
+
idempotencyKey?: string | undefined;
|
|
21
21
|
addSubscribersRequestDto: components.AddSubscribersRequestDto;
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -32,8 +32,8 @@ export const TopicsControllerAssignRequest$inboundSchema: z.ZodType<
|
|
|
32
32
|
z.ZodTypeDef,
|
|
33
33
|
unknown
|
|
34
34
|
> = z.object({
|
|
35
|
-
"Idempotency-Key": z.string().optional(),
|
|
36
35
|
topicKey: z.string(),
|
|
36
|
+
"Idempotency-Key": z.string().optional(),
|
|
37
37
|
AddSubscribersRequestDto: components.AddSubscribersRequestDto$inboundSchema,
|
|
38
38
|
}).transform((v) => {
|
|
39
39
|
return remap$(v, {
|
|
@@ -44,8 +44,8 @@ export const TopicsControllerAssignRequest$inboundSchema: z.ZodType<
|
|
|
44
44
|
|
|
45
45
|
/** @internal */
|
|
46
46
|
export type TopicsControllerAssignRequest$Outbound = {
|
|
47
|
-
"Idempotency-Key"?: string | undefined;
|
|
48
47
|
topicKey: string;
|
|
48
|
+
"Idempotency-Key"?: string | undefined;
|
|
49
49
|
AddSubscribersRequestDto: components.AddSubscribersRequestDto$Outbound;
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -55,8 +55,8 @@ export const TopicsControllerAssignRequest$outboundSchema: z.ZodType<
|
|
|
55
55
|
z.ZodTypeDef,
|
|
56
56
|
TopicsControllerAssignRequest
|
|
57
57
|
> = z.object({
|
|
58
|
-
idempotencyKey: z.string().optional(),
|
|
59
58
|
topicKey: z.string(),
|
|
59
|
+
idempotencyKey: z.string().optional(),
|
|
60
60
|
addSubscribersRequestDto: components.AddSubscribersRequestDto$outboundSchema,
|
|
61
61
|
}).transform((v) => {
|
|
62
62
|
return remap$(v, {
|
|
@@ -9,14 +9,14 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type TopicsControllerDeleteTopicRequest = {
|
|
12
|
-
/**
|
|
13
|
-
* A header for idempotency purposes
|
|
14
|
-
*/
|
|
15
|
-
idempotencyKey?: string | undefined;
|
|
16
12
|
/**
|
|
17
13
|
* The topic key
|
|
18
14
|
*/
|
|
19
15
|
topicKey: string;
|
|
16
|
+
/**
|
|
17
|
+
* A header for idempotency purposes
|
|
18
|
+
*/
|
|
19
|
+
idempotencyKey?: string | undefined;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export type TopicsControllerDeleteTopicResponse = {
|
|
@@ -29,8 +29,8 @@ export const TopicsControllerDeleteTopicRequest$inboundSchema: z.ZodType<
|
|
|
29
29
|
z.ZodTypeDef,
|
|
30
30
|
unknown
|
|
31
31
|
> = z.object({
|
|
32
|
-
"Idempotency-Key": z.string().optional(),
|
|
33
32
|
topicKey: z.string(),
|
|
33
|
+
"Idempotency-Key": z.string().optional(),
|
|
34
34
|
}).transform((v) => {
|
|
35
35
|
return remap$(v, {
|
|
36
36
|
"Idempotency-Key": "idempotencyKey",
|
|
@@ -39,8 +39,8 @@ export const TopicsControllerDeleteTopicRequest$inboundSchema: z.ZodType<
|
|
|
39
39
|
|
|
40
40
|
/** @internal */
|
|
41
41
|
export type TopicsControllerDeleteTopicRequest$Outbound = {
|
|
42
|
-
"Idempotency-Key"?: string | undefined;
|
|
43
42
|
topicKey: string;
|
|
43
|
+
"Idempotency-Key"?: string | undefined;
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
/** @internal */
|
|
@@ -49,8 +49,8 @@ export const TopicsControllerDeleteTopicRequest$outboundSchema: z.ZodType<
|
|
|
49
49
|
z.ZodTypeDef,
|
|
50
50
|
TopicsControllerDeleteTopicRequest
|
|
51
51
|
> = z.object({
|
|
52
|
-
idempotencyKey: z.string().optional(),
|
|
53
52
|
topicKey: z.string(),
|
|
53
|
+
idempotencyKey: z.string().optional(),
|
|
54
54
|
}).transform((v) => {
|
|
55
55
|
return remap$(v, {
|
|
56
56
|
idempotencyKey: "Idempotency-Key",
|
|
@@ -10,14 +10,14 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type TopicsControllerGetTopicRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* A header for idempotency purposes
|
|
15
|
-
*/
|
|
16
|
-
idempotencyKey?: string | undefined;
|
|
17
13
|
/**
|
|
18
14
|
* The topic key
|
|
19
15
|
*/
|
|
20
16
|
topicKey: string;
|
|
17
|
+
/**
|
|
18
|
+
* A header for idempotency purposes
|
|
19
|
+
*/
|
|
20
|
+
idempotencyKey?: string | undefined;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
export type TopicsControllerGetTopicResponse = {
|
|
@@ -31,8 +31,8 @@ export const TopicsControllerGetTopicRequest$inboundSchema: z.ZodType<
|
|
|
31
31
|
z.ZodTypeDef,
|
|
32
32
|
unknown
|
|
33
33
|
> = z.object({
|
|
34
|
-
"Idempotency-Key": z.string().optional(),
|
|
35
34
|
topicKey: z.string(),
|
|
35
|
+
"Idempotency-Key": z.string().optional(),
|
|
36
36
|
}).transform((v) => {
|
|
37
37
|
return remap$(v, {
|
|
38
38
|
"Idempotency-Key": "idempotencyKey",
|
|
@@ -41,8 +41,8 @@ export const TopicsControllerGetTopicRequest$inboundSchema: z.ZodType<
|
|
|
41
41
|
|
|
42
42
|
/** @internal */
|
|
43
43
|
export type TopicsControllerGetTopicRequest$Outbound = {
|
|
44
|
-
"Idempotency-Key"?: string | undefined;
|
|
45
44
|
topicKey: string;
|
|
45
|
+
"Idempotency-Key"?: string | undefined;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
/** @internal */
|
|
@@ -51,8 +51,8 @@ export const TopicsControllerGetTopicRequest$outboundSchema: z.ZodType<
|
|
|
51
51
|
z.ZodTypeDef,
|
|
52
52
|
TopicsControllerGetTopicRequest
|
|
53
53
|
> = z.object({
|
|
54
|
-
idempotencyKey: z.string().optional(),
|
|
55
54
|
topicKey: z.string(),
|
|
55
|
+
idempotencyKey: z.string().optional(),
|
|
56
56
|
}).transform((v) => {
|
|
57
57
|
return remap$(v, {
|
|
58
58
|
idempotencyKey: "Idempotency-Key",
|
|
@@ -10,10 +10,6 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type TopicsControllerGetTopicSubscriberRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* A header for idempotency purposes
|
|
15
|
-
*/
|
|
16
|
-
idempotencyKey?: string | undefined;
|
|
17
13
|
/**
|
|
18
14
|
* The external subscriber id
|
|
19
15
|
*/
|
|
@@ -22,6 +18,10 @@ export type TopicsControllerGetTopicSubscriberRequest = {
|
|
|
22
18
|
* The topic key
|
|
23
19
|
*/
|
|
24
20
|
topicKey: string;
|
|
21
|
+
/**
|
|
22
|
+
* A header for idempotency purposes
|
|
23
|
+
*/
|
|
24
|
+
idempotencyKey?: string | undefined;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export type TopicsControllerGetTopicSubscriberResponse = {
|
|
@@ -35,9 +35,9 @@ export const TopicsControllerGetTopicSubscriberRequest$inboundSchema: z.ZodType<
|
|
|
35
35
|
z.ZodTypeDef,
|
|
36
36
|
unknown
|
|
37
37
|
> = z.object({
|
|
38
|
-
"Idempotency-Key": z.string().optional(),
|
|
39
38
|
externalSubscriberId: z.string(),
|
|
40
39
|
topicKey: z.string(),
|
|
40
|
+
"Idempotency-Key": z.string().optional(),
|
|
41
41
|
}).transform((v) => {
|
|
42
42
|
return remap$(v, {
|
|
43
43
|
"Idempotency-Key": "idempotencyKey",
|
|
@@ -46,9 +46,9 @@ export const TopicsControllerGetTopicSubscriberRequest$inboundSchema: z.ZodType<
|
|
|
46
46
|
|
|
47
47
|
/** @internal */
|
|
48
48
|
export type TopicsControllerGetTopicSubscriberRequest$Outbound = {
|
|
49
|
-
"Idempotency-Key"?: string | undefined;
|
|
50
49
|
externalSubscriberId: string;
|
|
51
50
|
topicKey: string;
|
|
51
|
+
"Idempotency-Key"?: string | undefined;
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
/** @internal */
|
|
@@ -58,9 +58,9 @@ export const TopicsControllerGetTopicSubscriberRequest$outboundSchema:
|
|
|
58
58
|
z.ZodTypeDef,
|
|
59
59
|
TopicsControllerGetTopicSubscriberRequest
|
|
60
60
|
> = z.object({
|
|
61
|
-
idempotencyKey: z.string().optional(),
|
|
62
61
|
externalSubscriberId: z.string(),
|
|
63
62
|
topicKey: z.string(),
|
|
63
|
+
idempotencyKey: z.string().optional(),
|
|
64
64
|
}).transform((v) => {
|
|
65
65
|
return remap$(v, {
|
|
66
66
|
idempotencyKey: "Idempotency-Key",
|
|
@@ -10,10 +10,6 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type TopicsControllerListTopicsRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* A header for idempotency purposes
|
|
15
|
-
*/
|
|
16
|
-
idempotencyKey?: string | undefined;
|
|
17
13
|
/**
|
|
18
14
|
* The page number to retrieve (starts from 0)
|
|
19
15
|
*/
|
|
@@ -26,6 +22,10 @@ export type TopicsControllerListTopicsRequest = {
|
|
|
26
22
|
* A filter key to apply to the results
|
|
27
23
|
*/
|
|
28
24
|
key?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* A header for idempotency purposes
|
|
27
|
+
*/
|
|
28
|
+
idempotencyKey?: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export type TopicsControllerListTopicsResponse = {
|
|
@@ -39,10 +39,10 @@ export const TopicsControllerListTopicsRequest$inboundSchema: z.ZodType<
|
|
|
39
39
|
z.ZodTypeDef,
|
|
40
40
|
unknown
|
|
41
41
|
> = z.object({
|
|
42
|
-
"Idempotency-Key": z.string().optional(),
|
|
43
42
|
page: z.number().int().default(0),
|
|
44
43
|
pageSize: z.number().int().default(10),
|
|
45
44
|
key: z.string().optional(),
|
|
45
|
+
"Idempotency-Key": z.string().optional(),
|
|
46
46
|
}).transform((v) => {
|
|
47
47
|
return remap$(v, {
|
|
48
48
|
"Idempotency-Key": "idempotencyKey",
|
|
@@ -51,10 +51,10 @@ export const TopicsControllerListTopicsRequest$inboundSchema: z.ZodType<
|
|
|
51
51
|
|
|
52
52
|
/** @internal */
|
|
53
53
|
export type TopicsControllerListTopicsRequest$Outbound = {
|
|
54
|
-
"Idempotency-Key"?: string | undefined;
|
|
55
54
|
page: number;
|
|
56
55
|
pageSize: number;
|
|
57
56
|
key?: string | undefined;
|
|
57
|
+
"Idempotency-Key"?: string | undefined;
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
/** @internal */
|
|
@@ -63,10 +63,10 @@ export const TopicsControllerListTopicsRequest$outboundSchema: z.ZodType<
|
|
|
63
63
|
z.ZodTypeDef,
|
|
64
64
|
TopicsControllerListTopicsRequest
|
|
65
65
|
> = z.object({
|
|
66
|
-
idempotencyKey: z.string().optional(),
|
|
67
66
|
page: z.number().int().default(0),
|
|
68
67
|
pageSize: z.number().int().default(10),
|
|
69
68
|
key: z.string().optional(),
|
|
69
|
+
idempotencyKey: z.string().optional(),
|
|
70
70
|
}).transform((v) => {
|
|
71
71
|
return remap$(v, {
|
|
72
72
|
idempotencyKey: "Idempotency-Key",
|
|
@@ -10,14 +10,14 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type TopicsControllerRemoveSubscribersRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* A header for idempotency purposes
|
|
15
|
-
*/
|
|
16
|
-
idempotencyKey?: string | undefined;
|
|
17
13
|
/**
|
|
18
14
|
* The topic key
|
|
19
15
|
*/
|
|
20
16
|
topicKey: string;
|
|
17
|
+
/**
|
|
18
|
+
* A header for idempotency purposes
|
|
19
|
+
*/
|
|
20
|
+
idempotencyKey?: string | undefined;
|
|
21
21
|
removeSubscribersRequestDto: components.RemoveSubscribersRequestDto;
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -31,8 +31,8 @@ export const TopicsControllerRemoveSubscribersRequest$inboundSchema: z.ZodType<
|
|
|
31
31
|
z.ZodTypeDef,
|
|
32
32
|
unknown
|
|
33
33
|
> = z.object({
|
|
34
|
-
"Idempotency-Key": z.string().optional(),
|
|
35
34
|
topicKey: z.string(),
|
|
35
|
+
"Idempotency-Key": z.string().optional(),
|
|
36
36
|
RemoveSubscribersRequestDto:
|
|
37
37
|
components.RemoveSubscribersRequestDto$inboundSchema,
|
|
38
38
|
}).transform((v) => {
|
|
@@ -44,8 +44,8 @@ export const TopicsControllerRemoveSubscribersRequest$inboundSchema: z.ZodType<
|
|
|
44
44
|
|
|
45
45
|
/** @internal */
|
|
46
46
|
export type TopicsControllerRemoveSubscribersRequest$Outbound = {
|
|
47
|
-
"Idempotency-Key"?: string | undefined;
|
|
48
47
|
topicKey: string;
|
|
48
|
+
"Idempotency-Key"?: string | undefined;
|
|
49
49
|
RemoveSubscribersRequestDto: components.RemoveSubscribersRequestDto$Outbound;
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -55,8 +55,8 @@ export const TopicsControllerRemoveSubscribersRequest$outboundSchema: z.ZodType<
|
|
|
55
55
|
z.ZodTypeDef,
|
|
56
56
|
TopicsControllerRemoveSubscribersRequest
|
|
57
57
|
> = z.object({
|
|
58
|
-
idempotencyKey: z.string().optional(),
|
|
59
58
|
topicKey: z.string(),
|
|
59
|
+
idempotencyKey: z.string().optional(),
|
|
60
60
|
removeSubscribersRequestDto:
|
|
61
61
|
components.RemoveSubscribersRequestDto$outboundSchema,
|
|
62
62
|
}).transform((v) => {
|
|
@@ -10,14 +10,14 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type TopicsControllerRenameTopicRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* A header for idempotency purposes
|
|
15
|
-
*/
|
|
16
|
-
idempotencyKey?: string | undefined;
|
|
17
13
|
/**
|
|
18
14
|
* The topic key
|
|
19
15
|
*/
|
|
20
16
|
topicKey: string;
|
|
17
|
+
/**
|
|
18
|
+
* A header for idempotency purposes
|
|
19
|
+
*/
|
|
20
|
+
idempotencyKey?: string | undefined;
|
|
21
21
|
renameTopicRequestDto: components.RenameTopicRequestDto;
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -32,8 +32,8 @@ export const TopicsControllerRenameTopicRequest$inboundSchema: z.ZodType<
|
|
|
32
32
|
z.ZodTypeDef,
|
|
33
33
|
unknown
|
|
34
34
|
> = z.object({
|
|
35
|
-
"Idempotency-Key": z.string().optional(),
|
|
36
35
|
topicKey: z.string(),
|
|
36
|
+
"Idempotency-Key": z.string().optional(),
|
|
37
37
|
RenameTopicRequestDto: components.RenameTopicRequestDto$inboundSchema,
|
|
38
38
|
}).transform((v) => {
|
|
39
39
|
return remap$(v, {
|
|
@@ -44,8 +44,8 @@ export const TopicsControllerRenameTopicRequest$inboundSchema: z.ZodType<
|
|
|
44
44
|
|
|
45
45
|
/** @internal */
|
|
46
46
|
export type TopicsControllerRenameTopicRequest$Outbound = {
|
|
47
|
-
"Idempotency-Key"?: string | undefined;
|
|
48
47
|
topicKey: string;
|
|
48
|
+
"Idempotency-Key"?: string | undefined;
|
|
49
49
|
RenameTopicRequestDto: components.RenameTopicRequestDto$Outbound;
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -55,8 +55,8 @@ export const TopicsControllerRenameTopicRequest$outboundSchema: z.ZodType<
|
|
|
55
55
|
z.ZodTypeDef,
|
|
56
56
|
TopicsControllerRenameTopicRequest
|
|
57
57
|
> = z.object({
|
|
58
|
-
idempotencyKey: z.string().optional(),
|
|
59
58
|
topicKey: z.string(),
|
|
59
|
+
idempotencyKey: z.string().optional(),
|
|
60
60
|
renameTopicRequestDto: components.RenameTopicRequestDto$outboundSchema,
|
|
61
61
|
}).transform((v) => {
|
|
62
62
|
return remap$(v, {
|
package/src/sdk/messages.ts
CHANGED
|
@@ -54,8 +54,8 @@ export class Messages extends ClientSDK {
|
|
|
54
54
|
*/
|
|
55
55
|
async deleteByTransactionId(
|
|
56
56
|
transactionId: string,
|
|
57
|
-
idempotencyKey?: string | undefined,
|
|
58
57
|
channel?: operations.Channel | undefined,
|
|
58
|
+
idempotencyKey?: string | undefined,
|
|
59
59
|
options?: RequestOptions,
|
|
60
60
|
): Promise<
|
|
61
61
|
| operations.MessagesControllerDeleteMessagesByTransactionIdResponse
|
|
@@ -64,8 +64,8 @@ export class Messages extends ClientSDK {
|
|
|
64
64
|
return unwrapAsync(messagesDeleteByTransactionId(
|
|
65
65
|
this,
|
|
66
66
|
transactionId,
|
|
67
|
-
idempotencyKey,
|
|
68
67
|
channel,
|
|
68
|
+
idempotencyKey,
|
|
69
69
|
options,
|
|
70
70
|
));
|
|
71
71
|
}
|
package/src/sdk/preferences.ts
CHANGED
|
@@ -17,8 +17,8 @@ export class Preferences extends ClientSDK {
|
|
|
17
17
|
*/
|
|
18
18
|
async list(
|
|
19
19
|
subscriberId: string,
|
|
20
|
-
idempotencyKey?: string | undefined,
|
|
21
20
|
includeInactiveChannels?: boolean | undefined,
|
|
21
|
+
idempotencyKey?: string | undefined,
|
|
22
22
|
options?: RequestOptions,
|
|
23
23
|
): Promise<
|
|
24
24
|
operations.SubscribersControllerListSubscriberPreferencesResponse
|
|
@@ -26,8 +26,8 @@ export class Preferences extends ClientSDK {
|
|
|
26
26
|
return unwrapAsync(subscribersPreferencesList(
|
|
27
27
|
this,
|
|
28
28
|
subscriberId,
|
|
29
|
-
idempotencyKey,
|
|
30
29
|
includeInactiveChannels,
|
|
30
|
+
idempotencyKey,
|
|
31
31
|
options,
|
|
32
32
|
));
|
|
33
33
|
}
|