@novu/api 3.12.0 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/examples/package-lock.json +1 -1
- package/funcs/subscribersPreferencesList.d.ts +1 -1
- package/funcs/subscribersPreferencesList.d.ts.map +1 -1
- package/funcs/subscribersPreferencesList.js +5 -9
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersTopicsList.js +1 -0
- package/funcs/subscribersTopicsList.js.map +1 -1
- package/funcs/topicsSubscriptionsList.js +1 -0
- package/funcs/topicsSubscriptionsList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/sdks.js +2 -2
- package/lib/sdks.js.map +1 -1
- package/models/components/activitynotificationjobresponsedto.d.ts +4 -4
- package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationjobresponsedto.js +6 -7
- package/models/components/activitynotificationjobresponsedto.js.map +1 -1
- package/models/components/bulkupdatesubscriberpreferencesdto.d.ts +34 -0
- package/models/components/bulkupdatesubscriberpreferencesdto.d.ts.map +1 -1
- package/models/components/bulkupdatesubscriberpreferencesdto.js +17 -1
- package/models/components/bulkupdatesubscriberpreferencesdto.js.map +1 -1
- package/models/components/createchannelconnectionrequestdto.d.ts +10 -10
- package/models/components/createchannelconnectionrequestdto.d.ts.map +1 -1
- package/models/components/createchannelconnectionrequestdto.js +16 -12
- package/models/components/createchannelconnectionrequestdto.js.map +1 -1
- package/models/components/createslackchannelendpointdto.d.ts +8 -8
- package/models/components/createslackchannelendpointdto.d.ts.map +1 -1
- package/models/components/createslackchannelendpointdto.js +13 -7
- package/models/components/createslackchannelendpointdto.js.map +1 -1
- package/models/components/createtopicsubscriptionsrequestdto.d.ts +34 -0
- package/models/components/createtopicsubscriptionsrequestdto.d.ts.map +1 -1
- package/models/components/createtopicsubscriptionsrequestdto.js +23 -1
- package/models/components/createtopicsubscriptionsrequestdto.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/messageactionresult.d.ts +3 -8
- package/models/components/messageactionresult.d.ts.map +1 -1
- package/models/components/messageactionresult.js +2 -8
- package/models/components/messageactionresult.js.map +1 -1
- package/models/components/messageresponsedto.d.ts +6 -16
- package/models/components/messageresponsedto.d.ts.map +1 -1
- package/models/components/messageresponsedto.js +3 -15
- package/models/components/messageresponsedto.js.map +1 -1
- package/models/components/patchsubscriberpreferencesdto.d.ts +34 -0
- package/models/components/patchsubscriberpreferencesdto.d.ts.map +1 -1
- package/models/components/patchsubscriberpreferencesdto.js +19 -1
- package/models/components/patchsubscriberpreferencesdto.js.map +1 -1
- package/models/components/subscriberworkflowpreferencedto.d.ts +4 -0
- package/models/components/subscriberworkflowpreferencedto.d.ts.map +1 -1
- package/models/components/subscriberworkflowpreferencedto.js +1 -0
- package/models/components/subscriberworkflowpreferencedto.js.map +1 -1
- package/models/components/subscriptiondetailsresponsedto.d.ts +30 -0
- package/models/components/subscriptiondetailsresponsedto.d.ts.map +1 -0
- package/models/components/{createtopicsubscriptionsresponsedto.js → subscriptiondetailsresponsedto.js} +12 -12
- package/models/components/subscriptiondetailsresponsedto.js.map +1 -0
- package/models/components/subscriptiondto.d.ts +4 -0
- package/models/components/subscriptiondto.d.ts.map +1 -1
- package/models/components/subscriptiondto.js +1 -0
- package/models/components/subscriptiondto.js.map +1 -1
- package/models/components/subscriptionresponsedto.d.ts +4 -0
- package/models/components/subscriptionresponsedto.d.ts.map +1 -1
- package/models/components/subscriptionresponsedto.js +1 -0
- package/models/components/subscriptionresponsedto.js.map +1 -1
- package/models/components/topicsubscriptionresponsedto.d.ts +4 -0
- package/models/components/topicsubscriptionresponsedto.d.ts.map +1 -1
- package/models/components/topicsubscriptionresponsedto.js +1 -0
- package/models/components/topicsubscriptionresponsedto.js.map +1 -1
- package/models/operations/inboundwebhookscontrollerhandlewebhook.d.ts +6 -2
- package/models/operations/inboundwebhookscontrollerhandlewebhook.d.ts.map +1 -1
- package/models/operations/inboundwebhookscontrollerhandlewebhook.js +1 -1
- package/models/operations/inboundwebhookscontrollerhandlewebhook.js.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriberpreferences.d.ts +5 -0
- package/models/operations/subscriberscontrollergetsubscriberpreferences.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriberpreferences.js +1 -0
- package/models/operations/subscriberscontrollergetsubscriberpreferences.js.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscribertopics.d.ts +5 -0
- package/models/operations/subscriberscontrollerlistsubscribertopics.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscribertopics.js +1 -0
- package/models/operations/subscriberscontrollerlistsubscribertopics.js.map +1 -1
- package/models/operations/topicscontrollergettopicsubscription.d.ts +1 -1
- package/models/operations/topicscontrollergettopicsubscription.d.ts.map +1 -1
- package/models/operations/topicscontrollergettopicsubscription.js +1 -1
- package/models/operations/topicscontrollergettopicsubscription.js.map +1 -1
- package/models/operations/topicscontrollerlisttopicsubscriptions.d.ts +5 -0
- package/models/operations/topicscontrollerlisttopicsubscriptions.d.ts.map +1 -1
- package/models/operations/topicscontrollerlisttopicsubscriptions.js +1 -0
- package/models/operations/topicscontrollerlisttopicsubscriptions.js.map +1 -1
- package/package.json +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/sources/json-development.json +238 -6
- package/src/funcs/subscribersPreferencesList.ts +5 -17
- package/src/funcs/subscribersTopicsList.ts +1 -0
- package/src/funcs/topicsSubscriptionsList.ts +1 -0
- package/src/lib/config.ts +4 -4
- package/src/lib/sdks.ts +2 -2
- package/src/models/components/activitynotificationjobresponsedto.ts +9 -19
- package/src/models/components/bulkupdatesubscriberpreferencesdto.ts +62 -0
- package/src/models/components/createchannelconnectionrequestdto.ts +51 -18
- package/src/models/components/createslackchannelendpointdto.ts +31 -13
- package/src/models/components/createtopicsubscriptionsrequestdto.ts +82 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/messageactionresult.ts +2 -21
- package/src/models/components/messageresponsedto.ts +4 -48
- package/src/models/components/patchsubscriberpreferencesdto.ts +48 -0
- package/src/models/components/subscriberworkflowpreferencedto.ts +5 -0
- package/src/models/components/subscriptiondetailsresponsedto.ts +58 -0
- package/src/models/components/subscriptiondto.ts +5 -0
- package/src/models/components/subscriptionresponsedto.ts +5 -0
- package/src/models/components/topicsubscriptionresponsedto.ts +5 -0
- package/src/models/operations/inboundwebhookscontrollerhandlewebhook.ts +3 -3
- package/src/models/operations/subscriberscontrollergetsubscriberpreferences.ts +6 -0
- package/src/models/operations/subscriberscontrollerlistsubscribertopics.ts +6 -0
- package/src/models/operations/topicscontrollergettopicsubscription.ts +2 -2
- package/src/models/operations/topicscontrollerlisttopicsubscriptions.ts +6 -0
- package/src/sdk/preferences.ts +2 -6
- package/models/components/createtopicsubscriptionsresponsedto.d.ts +0 -24
- package/models/components/createtopicsubscriptionsresponsedto.d.ts.map +0 -1
- package/models/components/createtopicsubscriptionsresponsedto.js.map +0 -1
- package/models/components/steptypeenum.d.ts +0 -26
- package/models/components/steptypeenum.d.ts.map +0 -1
- package/models/components/steptypeenum.js +0 -60
- package/models/components/steptypeenum.js.map +0 -1
- package/models/components/uploadtranslationsrequestdto.d.ts +0 -34
- package/models/components/uploadtranslationsrequestdto.d.ts.map +0 -1
- package/models/components/uploadtranslationsrequestdto.js +0 -60
- package/models/components/uploadtranslationsrequestdto.js.map +0 -1
- package/src/models/components/createtopicsubscriptionsresponsedto.ts +0 -54
- package/src/models/components/steptypeenum.ts +0 -33
- package/src/models/components/uploadtranslationsrequestdto.ts +0 -62
- package/temp/example.ts +0 -5
|
@@ -21,7 +21,7 @@ export type InboundWebhooksControllerHandleWebhookRequest = {
|
|
|
21
21
|
/**
|
|
22
22
|
* Webhook event payload from the delivery provider
|
|
23
23
|
*/
|
|
24
|
-
requestBody
|
|
24
|
+
requestBody: { [k: string]: any };
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
/** @internal */
|
|
@@ -29,7 +29,7 @@ export type InboundWebhooksControllerHandleWebhookRequest$Outbound = {
|
|
|
29
29
|
environmentId: string;
|
|
30
30
|
integrationId: string;
|
|
31
31
|
"idempotency-key"?: string | undefined;
|
|
32
|
-
RequestBody
|
|
32
|
+
RequestBody: { [k: string]: any };
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
/** @internal */
|
|
@@ -42,7 +42,7 @@ export const InboundWebhooksControllerHandleWebhookRequest$outboundSchema:
|
|
|
42
42
|
environmentId: z.string(),
|
|
43
43
|
integrationId: z.string(),
|
|
44
44
|
idempotencyKey: z.string().optional(),
|
|
45
|
-
requestBody: z.
|
|
45
|
+
requestBody: z.record(z.any()),
|
|
46
46
|
}).transform((v) => {
|
|
47
47
|
return remap$(v, {
|
|
48
48
|
idempotencyKey: "idempotency-key",
|
|
@@ -20,6 +20,10 @@ export type Criticality = ClosedEnum<typeof Criticality>;
|
|
|
20
20
|
export type SubscribersControllerGetSubscriberPreferencesRequest = {
|
|
21
21
|
subscriberId: string;
|
|
22
22
|
criticality?: Criticality | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Context keys for filtering preferences (e.g., ["tenant:acme"])
|
|
25
|
+
*/
|
|
26
|
+
contextKeys?: Array<string> | undefined;
|
|
23
27
|
/**
|
|
24
28
|
* A header for idempotency purposes
|
|
25
29
|
*/
|
|
@@ -39,6 +43,7 @@ export const Criticality$outboundSchema: z.ZodNativeEnum<typeof Criticality> = z
|
|
|
39
43
|
export type SubscribersControllerGetSubscriberPreferencesRequest$Outbound = {
|
|
40
44
|
subscriberId: string;
|
|
41
45
|
criticality: string;
|
|
46
|
+
contextKeys?: Array<string> | undefined;
|
|
42
47
|
"idempotency-key"?: string | undefined;
|
|
43
48
|
};
|
|
44
49
|
|
|
@@ -51,6 +56,7 @@ export const SubscribersControllerGetSubscriberPreferencesRequest$outboundSchema
|
|
|
51
56
|
> = z.object({
|
|
52
57
|
subscriberId: z.string(),
|
|
53
58
|
criticality: Criticality$outboundSchema.default("nonCritical"),
|
|
59
|
+
contextKeys: z.array(z.string()).optional(),
|
|
54
60
|
idempotencyKey: z.string().optional(),
|
|
55
61
|
}).transform((v) => {
|
|
56
62
|
return remap$(v, {
|
|
@@ -61,6 +61,10 @@ export type SubscribersControllerListSubscriberTopicsRequest = {
|
|
|
61
61
|
* Filter by topic key
|
|
62
62
|
*/
|
|
63
63
|
key?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Filter by exact context keys, order insensitive (format: "type:id")
|
|
66
|
+
*/
|
|
67
|
+
contextKeys?: Array<string> | undefined;
|
|
64
68
|
/**
|
|
65
69
|
* A header for idempotency purposes
|
|
66
70
|
*/
|
|
@@ -90,6 +94,7 @@ export type SubscribersControllerListSubscriberTopicsRequest$Outbound = {
|
|
|
90
94
|
orderBy?: string | undefined;
|
|
91
95
|
includeCursor?: boolean | undefined;
|
|
92
96
|
key?: string | undefined;
|
|
97
|
+
contextKeys?: Array<string> | undefined;
|
|
93
98
|
"idempotency-key"?: string | undefined;
|
|
94
99
|
};
|
|
95
100
|
|
|
@@ -110,6 +115,7 @@ export const SubscribersControllerListSubscriberTopicsRequest$outboundSchema:
|
|
|
110
115
|
orderBy: z.string().optional(),
|
|
111
116
|
includeCursor: z.boolean().optional(),
|
|
112
117
|
key: z.string().optional(),
|
|
118
|
+
contextKeys: z.array(z.string()).optional(),
|
|
113
119
|
idempotencyKey: z.string().optional(),
|
|
114
120
|
}).transform((v) => {
|
|
115
121
|
return remap$(v, {
|
|
@@ -26,7 +26,7 @@ export type TopicsControllerGetTopicSubscriptionRequest = {
|
|
|
26
26
|
|
|
27
27
|
export type TopicsControllerGetTopicSubscriptionResponse = {
|
|
28
28
|
headers: { [k: string]: Array<string> };
|
|
29
|
-
result: components.
|
|
29
|
+
result: components.SubscriptionDetailsResponseDto;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
/** @internal */
|
|
@@ -71,7 +71,7 @@ export const TopicsControllerGetTopicSubscriptionResponse$inboundSchema:
|
|
|
71
71
|
unknown
|
|
72
72
|
> = z.object({
|
|
73
73
|
Headers: z.record(z.array(z.string())).default({}),
|
|
74
|
-
Result: components.
|
|
74
|
+
Result: components.SubscriptionDetailsResponseDto$inboundSchema,
|
|
75
75
|
}).transform((v) => {
|
|
76
76
|
return remap$(v, {
|
|
77
77
|
"Headers": "headers",
|
|
@@ -60,6 +60,10 @@ export type TopicsControllerListTopicSubscriptionsRequest = {
|
|
|
60
60
|
* Filter by subscriber ID
|
|
61
61
|
*/
|
|
62
62
|
subscriberId?: string | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Filter by exact context keys, order insensitive (format: "type:id")
|
|
65
|
+
*/
|
|
66
|
+
contextKeys?: Array<string> | undefined;
|
|
63
67
|
/**
|
|
64
68
|
* A header for idempotency purposes
|
|
65
69
|
*/
|
|
@@ -89,6 +93,7 @@ export type TopicsControllerListTopicSubscriptionsRequest$Outbound = {
|
|
|
89
93
|
orderBy?: string | undefined;
|
|
90
94
|
includeCursor?: boolean | undefined;
|
|
91
95
|
subscriberId?: string | undefined;
|
|
96
|
+
contextKeys?: Array<string> | undefined;
|
|
92
97
|
"idempotency-key"?: string | undefined;
|
|
93
98
|
};
|
|
94
99
|
|
|
@@ -109,6 +114,7 @@ export const TopicsControllerListTopicSubscriptionsRequest$outboundSchema:
|
|
|
109
114
|
orderBy: z.string().optional(),
|
|
110
115
|
includeCursor: z.boolean().optional(),
|
|
111
116
|
subscriberId: z.string().optional(),
|
|
117
|
+
contextKeys: z.array(z.string()).optional(),
|
|
112
118
|
idempotencyKey: z.string().optional(),
|
|
113
119
|
}).transform((v) => {
|
|
114
120
|
return remap$(v, {
|
package/src/sdk/preferences.ts
CHANGED
|
@@ -19,16 +19,12 @@ export class Preferences extends ClientSDK {
|
|
|
19
19
|
* This API returns all five channels preferences for all workflows and global preferences.
|
|
20
20
|
*/
|
|
21
21
|
async list(
|
|
22
|
-
|
|
23
|
-
criticality?: operations.Criticality | undefined,
|
|
24
|
-
idempotencyKey?: string | undefined,
|
|
22
|
+
request: operations.SubscribersControllerGetSubscriberPreferencesRequest,
|
|
25
23
|
options?: RequestOptions,
|
|
26
24
|
): Promise<operations.SubscribersControllerGetSubscriberPreferencesResponse> {
|
|
27
25
|
return unwrapAsync(subscribersPreferencesList(
|
|
28
26
|
this,
|
|
29
|
-
|
|
30
|
-
criticality,
|
|
31
|
-
idempotencyKey,
|
|
27
|
+
request,
|
|
32
28
|
options,
|
|
33
29
|
));
|
|
34
30
|
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { MetaDto } from "./metadto.js";
|
|
5
|
-
import { SubscriptionDto } from "./subscriptiondto.js";
|
|
6
|
-
import { SubscriptionErrorDto } from "./subscriptionerrordto.js";
|
|
7
|
-
export type CreateTopicSubscriptionsResponseDto = {
|
|
8
|
-
/**
|
|
9
|
-
* The list of successfully created subscriptions
|
|
10
|
-
*/
|
|
11
|
-
data: Array<SubscriptionDto>;
|
|
12
|
-
/**
|
|
13
|
-
* Metadata about the operation
|
|
14
|
-
*/
|
|
15
|
-
meta: MetaDto;
|
|
16
|
-
/**
|
|
17
|
-
* The list of errors for failed subscription attempts
|
|
18
|
-
*/
|
|
19
|
-
errors?: Array<SubscriptionErrorDto> | undefined;
|
|
20
|
-
};
|
|
21
|
-
/** @internal */
|
|
22
|
-
export declare const CreateTopicSubscriptionsResponseDto$inboundSchema: z.ZodType<CreateTopicSubscriptionsResponseDto, z.ZodTypeDef, unknown>;
|
|
23
|
-
export declare function createTopicSubscriptionsResponseDtoFromJSON(jsonString: string): SafeParseResult<CreateTopicSubscriptionsResponseDto, SDKValidationError>;
|
|
24
|
-
//# sourceMappingURL=createtopicsubscriptionsresponsedto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createtopicsubscriptionsresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/createtopicsubscriptionsresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,OAAO,EAAyB,MAAM,cAAc,CAAC;AAC9D,OAAO,EACL,eAAe,EAEhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,mCAAmC,GAAG;IAChD;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IAC7B;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC;CAClD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,OAAO,CACvE,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,2CAA2C,CACzD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mCAAmC,EAAE,kBAAkB,CAAC,CAO1E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createtopicsubscriptionsresponsedto.js","sourceRoot":"","sources":["../../src/models/components/createtopicsubscriptionsresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CH,kGASC;AAjDD,0CAA4B;AAC5B,qDAAiD;AAGjD,6CAA8D;AAC9D,6DAG8B;AAC9B,uEAGmC;AAiBnC,gBAAgB;AACH,QAAA,iDAAiD,GAI1D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,kDAA6B,CAAC;IAC5C,IAAI,EAAE,kCAAqB;IAC3B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,4DAAkC,CAAC,CAAC,QAAQ,EAAE;CAC/D,CAAC,CAAC;AAEH,SAAgB,2CAA2C,CACzD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,yDAAiD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxE,iEAAiE,CAClE,CAAC;AACJ,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
/**
|
|
4
|
-
* Type of the step
|
|
5
|
-
*/
|
|
6
|
-
export declare const StepTypeEnum: {
|
|
7
|
-
readonly InApp: "in_app";
|
|
8
|
-
readonly Email: "email";
|
|
9
|
-
readonly Sms: "sms";
|
|
10
|
-
readonly Chat: "chat";
|
|
11
|
-
readonly Push: "push";
|
|
12
|
-
readonly Digest: "digest";
|
|
13
|
-
readonly Trigger: "trigger";
|
|
14
|
-
readonly Delay: "delay";
|
|
15
|
-
readonly Throttle: "throttle";
|
|
16
|
-
readonly Custom: "custom";
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Type of the step
|
|
20
|
-
*/
|
|
21
|
-
export type StepTypeEnum = ClosedEnum<typeof StepTypeEnum>;
|
|
22
|
-
/** @internal */
|
|
23
|
-
export declare const StepTypeEnum$inboundSchema: z.ZodNativeEnum<typeof StepTypeEnum>;
|
|
24
|
-
/** @internal */
|
|
25
|
-
export declare const StepTypeEnum$outboundSchema: z.ZodNativeEnum<typeof StepTypeEnum>;
|
|
26
|
-
//# sourceMappingURL=steptypeenum.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"steptypeenum.d.ts","sourceRoot":"","sources":["../../src/models/components/steptypeenum.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CAChD,CAAC;AAC7B,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CACjD,CAAC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.StepTypeEnum$outboundSchema = exports.StepTypeEnum$inboundSchema = exports.StepTypeEnum = void 0;
|
|
40
|
-
const z = __importStar(require("zod/v3"));
|
|
41
|
-
/**
|
|
42
|
-
* Type of the step
|
|
43
|
-
*/
|
|
44
|
-
exports.StepTypeEnum = {
|
|
45
|
-
InApp: "in_app",
|
|
46
|
-
Email: "email",
|
|
47
|
-
Sms: "sms",
|
|
48
|
-
Chat: "chat",
|
|
49
|
-
Push: "push",
|
|
50
|
-
Digest: "digest",
|
|
51
|
-
Trigger: "trigger",
|
|
52
|
-
Delay: "delay",
|
|
53
|
-
Throttle: "throttle",
|
|
54
|
-
Custom: "custom",
|
|
55
|
-
};
|
|
56
|
-
/** @internal */
|
|
57
|
-
exports.StepTypeEnum$inboundSchema = z.nativeEnum(exports.StepTypeEnum);
|
|
58
|
-
/** @internal */
|
|
59
|
-
exports.StepTypeEnum$outboundSchema = exports.StepTypeEnum$inboundSchema;
|
|
60
|
-
//# sourceMappingURL=steptypeenum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"steptypeenum.js","sourceRoot":"","sources":["../../src/models/components/steptypeenum.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAG5B;;GAEG;AACU,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;CACR,CAAC;AAMX,gBAAgB;AACH,QAAA,0BAA0B,GACrC,CAAC,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAC;AAC7B,gBAAgB;AACH,QAAA,2BAA2B,GACtC,kCAA0B,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
/**
|
|
4
|
-
* The resource type to associate localizations with
|
|
5
|
-
*/
|
|
6
|
-
export declare const UploadTranslationsRequestDtoResourceType: {
|
|
7
|
-
readonly Workflow: "workflow";
|
|
8
|
-
readonly Layout: "layout";
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* The resource type to associate localizations with
|
|
12
|
-
*/
|
|
13
|
-
export type UploadTranslationsRequestDtoResourceType = ClosedEnum<typeof UploadTranslationsRequestDtoResourceType>;
|
|
14
|
-
export type UploadTranslationsRequestDto = {
|
|
15
|
-
/**
|
|
16
|
-
* The resource ID to associate localizations with. Accepts identifier or slug format
|
|
17
|
-
*/
|
|
18
|
-
resourceId: string;
|
|
19
|
-
/**
|
|
20
|
-
* The resource type to associate localizations with
|
|
21
|
-
*/
|
|
22
|
-
resourceType: UploadTranslationsRequestDtoResourceType;
|
|
23
|
-
};
|
|
24
|
-
/** @internal */
|
|
25
|
-
export declare const UploadTranslationsRequestDtoResourceType$outboundSchema: z.ZodNativeEnum<typeof UploadTranslationsRequestDtoResourceType>;
|
|
26
|
-
/** @internal */
|
|
27
|
-
export type UploadTranslationsRequestDto$Outbound = {
|
|
28
|
-
resourceId: string;
|
|
29
|
-
resourceType: string;
|
|
30
|
-
};
|
|
31
|
-
/** @internal */
|
|
32
|
-
export declare const UploadTranslationsRequestDto$outboundSchema: z.ZodType<UploadTranslationsRequestDto$Outbound, z.ZodTypeDef, UploadTranslationsRequestDto>;
|
|
33
|
-
export declare function uploadTranslationsRequestDtoToJSON(uploadTranslationsRequestDto: UploadTranslationsRequestDto): string;
|
|
34
|
-
//# sourceMappingURL=uploadtranslationsrequestdto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uploadtranslationsrequestdto.d.ts","sourceRoot":"","sources":["../../src/models/components/uploadtranslationsrequestdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,wCAAwC;;;CAG3C,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAAG,UAAU,CAC/D,OAAO,wCAAwC,CAChD,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,wCAAwC,CAAC;CACxD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uDAAuD,EAClE,CAAC,CAAC,aAAa,CAAC,OAAO,wCAAwC,CACR,CAAC;AAE1D,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAI5B,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.UploadTranslationsRequestDto$outboundSchema = exports.UploadTranslationsRequestDtoResourceType$outboundSchema = exports.UploadTranslationsRequestDtoResourceType = void 0;
|
|
40
|
-
exports.uploadTranslationsRequestDtoToJSON = uploadTranslationsRequestDtoToJSON;
|
|
41
|
-
const z = __importStar(require("zod/v3"));
|
|
42
|
-
/**
|
|
43
|
-
* The resource type to associate localizations with
|
|
44
|
-
*/
|
|
45
|
-
exports.UploadTranslationsRequestDtoResourceType = {
|
|
46
|
-
Workflow: "workflow",
|
|
47
|
-
Layout: "layout",
|
|
48
|
-
};
|
|
49
|
-
/** @internal */
|
|
50
|
-
exports.UploadTranslationsRequestDtoResourceType$outboundSchema = z
|
|
51
|
-
.nativeEnum(exports.UploadTranslationsRequestDtoResourceType);
|
|
52
|
-
/** @internal */
|
|
53
|
-
exports.UploadTranslationsRequestDto$outboundSchema = z.object({
|
|
54
|
-
resourceId: z.string(),
|
|
55
|
-
resourceType: exports.UploadTranslationsRequestDtoResourceType$outboundSchema,
|
|
56
|
-
});
|
|
57
|
-
function uploadTranslationsRequestDtoToJSON(uploadTranslationsRequestDto) {
|
|
58
|
-
return JSON.stringify(exports.UploadTranslationsRequestDto$outboundSchema.parse(uploadTranslationsRequestDto));
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=uploadtranslationsrequestdto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uploadtranslationsrequestdto.js","sourceRoot":"","sources":["../../src/models/components/uploadtranslationsrequestdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDH,gFAQC;AAzDD,0CAA4B;AAG5B;;GAEG;AACU,QAAA,wCAAwC,GAAG;IACtD,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;CACR,CAAC;AAmBX,gBAAgB;AACH,QAAA,uDAAuD,GACC,CAAC;KACjE,UAAU,CAAC,gDAAwC,CAAC,CAAC;AAQ1D,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,+DAAuD;CACtE,CAAC,CAAC;AAEH,SAAgB,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,mDAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import { MetaDto, MetaDto$inboundSchema } from "./metadto.js";
|
|
10
|
-
import {
|
|
11
|
-
SubscriptionDto,
|
|
12
|
-
SubscriptionDto$inboundSchema,
|
|
13
|
-
} from "./subscriptiondto.js";
|
|
14
|
-
import {
|
|
15
|
-
SubscriptionErrorDto,
|
|
16
|
-
SubscriptionErrorDto$inboundSchema,
|
|
17
|
-
} from "./subscriptionerrordto.js";
|
|
18
|
-
|
|
19
|
-
export type CreateTopicSubscriptionsResponseDto = {
|
|
20
|
-
/**
|
|
21
|
-
* The list of successfully created subscriptions
|
|
22
|
-
*/
|
|
23
|
-
data: Array<SubscriptionDto>;
|
|
24
|
-
/**
|
|
25
|
-
* Metadata about the operation
|
|
26
|
-
*/
|
|
27
|
-
meta: MetaDto;
|
|
28
|
-
/**
|
|
29
|
-
* The list of errors for failed subscription attempts
|
|
30
|
-
*/
|
|
31
|
-
errors?: Array<SubscriptionErrorDto> | undefined;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const CreateTopicSubscriptionsResponseDto$inboundSchema: z.ZodType<
|
|
36
|
-
CreateTopicSubscriptionsResponseDto,
|
|
37
|
-
z.ZodTypeDef,
|
|
38
|
-
unknown
|
|
39
|
-
> = z.object({
|
|
40
|
-
data: z.array(SubscriptionDto$inboundSchema),
|
|
41
|
-
meta: MetaDto$inboundSchema,
|
|
42
|
-
errors: z.array(SubscriptionErrorDto$inboundSchema).optional(),
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
export function createTopicSubscriptionsResponseDtoFromJSON(
|
|
46
|
-
jsonString: string,
|
|
47
|
-
): SafeParseResult<CreateTopicSubscriptionsResponseDto, SDKValidationError> {
|
|
48
|
-
return safeParse(
|
|
49
|
-
jsonString,
|
|
50
|
-
(x) =>
|
|
51
|
-
CreateTopicSubscriptionsResponseDto$inboundSchema.parse(JSON.parse(x)),
|
|
52
|
-
`Failed to parse 'CreateTopicSubscriptionsResponseDto' from JSON`,
|
|
53
|
-
);
|
|
54
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Type of the step
|
|
10
|
-
*/
|
|
11
|
-
export const StepTypeEnum = {
|
|
12
|
-
InApp: "in_app",
|
|
13
|
-
Email: "email",
|
|
14
|
-
Sms: "sms",
|
|
15
|
-
Chat: "chat",
|
|
16
|
-
Push: "push",
|
|
17
|
-
Digest: "digest",
|
|
18
|
-
Trigger: "trigger",
|
|
19
|
-
Delay: "delay",
|
|
20
|
-
Throttle: "throttle",
|
|
21
|
-
Custom: "custom",
|
|
22
|
-
} as const;
|
|
23
|
-
/**
|
|
24
|
-
* Type of the step
|
|
25
|
-
*/
|
|
26
|
-
export type StepTypeEnum = ClosedEnum<typeof StepTypeEnum>;
|
|
27
|
-
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const StepTypeEnum$inboundSchema: z.ZodNativeEnum<typeof StepTypeEnum> =
|
|
30
|
-
z.nativeEnum(StepTypeEnum);
|
|
31
|
-
/** @internal */
|
|
32
|
-
export const StepTypeEnum$outboundSchema: z.ZodNativeEnum<typeof StepTypeEnum> =
|
|
33
|
-
StepTypeEnum$inboundSchema;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* The resource type to associate localizations with
|
|
10
|
-
*/
|
|
11
|
-
export const UploadTranslationsRequestDtoResourceType = {
|
|
12
|
-
Workflow: "workflow",
|
|
13
|
-
Layout: "layout",
|
|
14
|
-
} as const;
|
|
15
|
-
/**
|
|
16
|
-
* The resource type to associate localizations with
|
|
17
|
-
*/
|
|
18
|
-
export type UploadTranslationsRequestDtoResourceType = ClosedEnum<
|
|
19
|
-
typeof UploadTranslationsRequestDtoResourceType
|
|
20
|
-
>;
|
|
21
|
-
|
|
22
|
-
export type UploadTranslationsRequestDto = {
|
|
23
|
-
/**
|
|
24
|
-
* The resource ID to associate localizations with. Accepts identifier or slug format
|
|
25
|
-
*/
|
|
26
|
-
resourceId: string;
|
|
27
|
-
/**
|
|
28
|
-
* The resource type to associate localizations with
|
|
29
|
-
*/
|
|
30
|
-
resourceType: UploadTranslationsRequestDtoResourceType;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const UploadTranslationsRequestDtoResourceType$outboundSchema:
|
|
35
|
-
z.ZodNativeEnum<typeof UploadTranslationsRequestDtoResourceType> = z
|
|
36
|
-
.nativeEnum(UploadTranslationsRequestDtoResourceType);
|
|
37
|
-
|
|
38
|
-
/** @internal */
|
|
39
|
-
export type UploadTranslationsRequestDto$Outbound = {
|
|
40
|
-
resourceId: string;
|
|
41
|
-
resourceType: string;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const UploadTranslationsRequestDto$outboundSchema: z.ZodType<
|
|
46
|
-
UploadTranslationsRequestDto$Outbound,
|
|
47
|
-
z.ZodTypeDef,
|
|
48
|
-
UploadTranslationsRequestDto
|
|
49
|
-
> = z.object({
|
|
50
|
-
resourceId: z.string(),
|
|
51
|
-
resourceType: UploadTranslationsRequestDtoResourceType$outboundSchema,
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
export function uploadTranslationsRequestDtoToJSON(
|
|
55
|
-
uploadTranslationsRequestDto: UploadTranslationsRequestDto,
|
|
56
|
-
): string {
|
|
57
|
-
return JSON.stringify(
|
|
58
|
-
UploadTranslationsRequestDto$outboundSchema.parse(
|
|
59
|
-
uploadTranslationsRequestDto,
|
|
60
|
-
),
|
|
61
|
-
);
|
|
62
|
-
}
|