@novu/api 1.7.0 → 1.7.1
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/bin/mcp-server.js +92 -35
- package/bin/mcp-server.js.map +37 -37
- package/docs/sdks/groups/README.md +1 -1
- package/examples/package-lock.json +1 -1
- package/funcs/notificationsList.js +1 -0
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/translationsGroupsRetrieve.d.ts +1 -1
- package/funcs/translationsGroupsRetrieve.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/tools/translationsGroupsDelete.d.ts +1 -0
- package/mcp-server/tools/translationsGroupsDelete.d.ts.map +1 -1
- package/mcp-server/tools/translationsGroupsRetrieve.d.ts +1 -0
- package/mcp-server/tools/translationsGroupsRetrieve.d.ts.map +1 -1
- package/mcp-server/tools/translationsGroupsRetrieve.js +1 -1
- package/mcp-server/tools/translationsGroupsRetrieve.js.map +1 -1
- package/models/components/chatstepupsertdto.d.ts +6 -1
- package/models/components/chatstepupsertdto.d.ts.map +1 -1
- package/models/components/chatstepupsertdto.js +2 -0
- package/models/components/chatstepupsertdto.js.map +1 -1
- package/models/components/createlayoutdto.d.ts +5 -0
- package/models/components/createlayoutdto.d.ts.map +1 -1
- package/models/components/createlayoutdto.js +2 -0
- package/models/components/createlayoutdto.js.map +1 -1
- package/models/components/createtranslationrequestdto.d.ts +3 -0
- package/models/components/createtranslationrequestdto.d.ts.map +1 -1
- package/models/components/createtranslationrequestdto.js +1 -0
- package/models/components/createtranslationrequestdto.js.map +1 -1
- package/models/components/customstepupsertdto.d.ts +6 -1
- package/models/components/customstepupsertdto.d.ts.map +1 -1
- package/models/components/customstepupsertdto.js +2 -0
- package/models/components/customstepupsertdto.js.map +1 -1
- package/models/components/delaycontroldto.d.ts +12 -4
- package/models/components/delaycontroldto.d.ts.map +1 -1
- package/models/components/delaycontroldto.js +7 -4
- package/models/components/delaycontroldto.js.map +1 -1
- package/models/components/delaystepresponsedto.d.ts +12 -4
- package/models/components/delaystepresponsedto.d.ts.map +1 -1
- package/models/components/delaystepresponsedto.js +7 -4
- package/models/components/delaystepresponsedto.js.map +1 -1
- package/models/components/delaystepupsertdto.d.ts +6 -1
- package/models/components/delaystepupsertdto.d.ts.map +1 -1
- package/models/components/delaystepupsertdto.js +2 -0
- package/models/components/delaystepupsertdto.js.map +1 -1
- package/models/components/digeststepupsertdto.d.ts +6 -1
- package/models/components/digeststepupsertdto.d.ts.map +1 -1
- package/models/components/digeststepupsertdto.js +2 -0
- package/models/components/digeststepupsertdto.js.map +1 -1
- package/models/components/digesttimedconfigdto.d.ts +5 -0
- package/models/components/digesttimedconfigdto.d.ts.map +1 -1
- package/models/components/digesttimedconfigdto.js +2 -0
- package/models/components/digesttimedconfigdto.js.map +1 -1
- package/models/components/duplicatelayoutdto.d.ts +5 -0
- package/models/components/duplicatelayoutdto.d.ts.map +1 -1
- package/models/components/duplicatelayoutdto.js +2 -0
- package/models/components/duplicatelayoutdto.js.map +1 -1
- package/models/components/emailstepupsertdto.d.ts +6 -1
- package/models/components/emailstepupsertdto.d.ts.map +1 -1
- package/models/components/emailstepupsertdto.js +2 -0
- package/models/components/emailstepupsertdto.js.map +1 -1
- package/models/components/getmasterjsonresponsedto.d.ts +29 -0
- package/models/components/getmasterjsonresponsedto.d.ts.map +1 -1
- package/models/components/getmasterjsonresponsedto.js +26 -1
- package/models/components/getmasterjsonresponsedto.js.map +1 -1
- package/models/components/inappstepupsertdto.d.ts +6 -1
- package/models/components/inappstepupsertdto.d.ts.map +1 -1
- package/models/components/inappstepupsertdto.js +2 -0
- package/models/components/inappstepupsertdto.js.map +1 -1
- package/models/components/layoutresponsedto.d.ts +5 -0
- package/models/components/layoutresponsedto.d.ts.map +1 -1
- package/models/components/layoutresponsedto.js +2 -0
- package/models/components/layoutresponsedto.js.map +1 -1
- package/models/components/pushstepupsertdto.d.ts +6 -1
- package/models/components/pushstepupsertdto.d.ts.map +1 -1
- package/models/components/pushstepupsertdto.js +2 -0
- package/models/components/pushstepupsertdto.js.map +1 -1
- package/models/components/smsstepupsertdto.d.ts +6 -1
- package/models/components/smsstepupsertdto.d.ts.map +1 -1
- package/models/components/smsstepupsertdto.js +2 -0
- package/models/components/smsstepupsertdto.js.map +1 -1
- package/models/components/throttlestepupsertdto.d.ts +6 -1
- package/models/components/throttlestepupsertdto.d.ts.map +1 -1
- package/models/components/throttlestepupsertdto.js +2 -0
- package/models/components/throttlestepupsertdto.js.map +1 -1
- package/models/components/topicpayloaddto.d.ts +5 -0
- package/models/components/topicpayloaddto.d.ts.map +1 -1
- package/models/components/topicpayloaddto.js +2 -0
- package/models/components/topicpayloaddto.js.map +1 -1
- package/models/components/translationgroupdto.d.ts +3 -0
- package/models/components/translationgroupdto.d.ts.map +1 -1
- package/models/components/translationgroupdto.js +1 -0
- package/models/components/translationgroupdto.js.map +1 -1
- package/models/components/translationresponsedto.d.ts +3 -0
- package/models/components/translationresponsedto.d.ts.map +1 -1
- package/models/components/translationresponsedto.js +1 -0
- package/models/components/translationresponsedto.js.map +1 -1
- package/models/components/uicomponentenum.d.ts +9 -3
- package/models/components/uicomponentenum.d.ts.map +1 -1
- package/models/components/uicomponentenum.js +3 -1
- package/models/components/uicomponentenum.js.map +1 -1
- package/models/components/updatelayoutdto.d.ts +5 -0
- package/models/components/updatelayoutdto.d.ts.map +1 -1
- package/models/components/updatelayoutdto.js +2 -0
- package/models/components/updatelayoutdto.js.map +1 -1
- package/models/components/uploadtranslationsrequestdto.d.ts +3 -0
- package/models/components/uploadtranslationsrequestdto.d.ts.map +1 -1
- package/models/components/uploadtranslationsrequestdto.js +1 -0
- package/models/components/uploadtranslationsrequestdto.js.map +1 -1
- package/models/components/workflowresponsedto.d.ts +1 -1
- package/models/operations/notificationscontrollerlistnotifications.d.ts +5 -0
- package/models/operations/notificationscontrollerlistnotifications.d.ts.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.js +2 -0
- package/models/operations/notificationscontrollerlistnotifications.js.map +1 -1
- package/models/operations/translationcontrollerdeletetranslationendpoint.d.ts +3 -0
- package/models/operations/translationcontrollerdeletetranslationendpoint.d.ts.map +1 -1
- package/models/operations/translationcontrollerdeletetranslationendpoint.js +1 -0
- package/models/operations/translationcontrollerdeletetranslationendpoint.js.map +1 -1
- package/models/operations/translationcontrollerdeletetranslationgroupendpoint.d.ts +3 -0
- package/models/operations/translationcontrollerdeletetranslationgroupendpoint.d.ts.map +1 -1
- package/models/operations/translationcontrollerdeletetranslationgroupendpoint.js +1 -0
- package/models/operations/translationcontrollerdeletetranslationgroupendpoint.js.map +1 -1
- package/models/operations/translationcontrollergetsingletranslation.d.ts +3 -0
- package/models/operations/translationcontrollergetsingletranslation.d.ts.map +1 -1
- package/models/operations/translationcontrollergetsingletranslation.js +1 -0
- package/models/operations/translationcontrollergetsingletranslation.js.map +1 -1
- package/models/operations/translationcontrollergettranslationgroupendpoint.d.ts +3 -0
- package/models/operations/translationcontrollergettranslationgroupendpoint.d.ts.map +1 -1
- package/models/operations/translationcontrollergettranslationgroupendpoint.js +1 -0
- package/models/operations/translationcontrollergettranslationgroupendpoint.js.map +1 -1
- package/package.json +1 -1
- package/sdk/groups.d.ts +1 -1
- package/sdk/groups.js +1 -1
- package/sources/json-development.json +149 -28
- package/src/funcs/notificationsList.ts +1 -0
- package/src/funcs/translationsGroupsRetrieve.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/translationsGroupsRetrieve.ts +1 -1
- package/src/models/components/chatstepupsertdto.ts +8 -1
- package/src/models/components/createlayoutdto.ts +7 -0
- package/src/models/components/createtranslationrequestdto.ts +1 -0
- package/src/models/components/customstepupsertdto.ts +8 -1
- package/src/models/components/delaycontroldto.ts +16 -8
- package/src/models/components/delaystepresponsedto.ts +16 -8
- package/src/models/components/delaystepupsertdto.ts +8 -1
- package/src/models/components/digeststepupsertdto.ts +8 -1
- package/src/models/components/digesttimedconfigdto.ts +7 -0
- package/src/models/components/duplicatelayoutdto.ts +7 -0
- package/src/models/components/emailstepupsertdto.ts +8 -1
- package/src/models/components/getmasterjsonresponsedto.ts +53 -0
- package/src/models/components/inappstepupsertdto.ts +8 -1
- package/src/models/components/layoutresponsedto.ts +7 -0
- package/src/models/components/pushstepupsertdto.ts +8 -1
- package/src/models/components/smsstepupsertdto.ts +8 -1
- package/src/models/components/throttlestepupsertdto.ts +8 -1
- package/src/models/components/topicpayloaddto.ts +7 -0
- package/src/models/components/translationgroupdto.ts +1 -0
- package/src/models/components/translationresponsedto.ts +1 -0
- package/src/models/components/uicomponentenum.ts +3 -1
- package/src/models/components/updatelayoutdto.ts +7 -0
- package/src/models/components/uploadtranslationsrequestdto.ts +1 -0
- package/src/models/components/workflowresponsedto.ts +1 -1
- package/src/models/operations/notificationscontrollerlistnotifications.ts +7 -0
- package/src/models/operations/translationcontrollerdeletetranslationendpoint.ts +1 -0
- package/src/models/operations/translationcontrollerdeletetranslationgroupendpoint.ts +1 -0
- package/src/models/operations/translationcontrollergetsingletranslation.ts +1 -0
- package/src/models/operations/translationcontrollergettranslationgroupendpoint.ts +1 -0
- package/src/sdk/groups.ts +1 -1
|
@@ -39,6 +39,7 @@ import {
|
|
|
39
39
|
*/
|
|
40
40
|
export const DelayStepResponseDtoType = {
|
|
41
41
|
Regular: "regular",
|
|
42
|
+
Timed: "timed",
|
|
42
43
|
} as const;
|
|
43
44
|
/**
|
|
44
45
|
* Type of the delay. Currently only 'regular' is supported by the schema.
|
|
@@ -80,11 +81,15 @@ export type DelayStepResponseDtoControlValues = {
|
|
|
80
81
|
/**
|
|
81
82
|
* Amount of time to delay.
|
|
82
83
|
*/
|
|
83
|
-
amount
|
|
84
|
+
amount?: number | undefined;
|
|
84
85
|
/**
|
|
85
86
|
* Unit of time for the delay amount.
|
|
86
87
|
*/
|
|
87
|
-
unit
|
|
88
|
+
unit?: DelayStepResponseDtoUnit | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Cron expression for the delay. Min length 1.
|
|
91
|
+
*/
|
|
92
|
+
cron?: string | undefined;
|
|
88
93
|
additionalProperties?: { [k: string]: any };
|
|
89
94
|
};
|
|
90
95
|
|
|
@@ -190,8 +195,9 @@ export const DelayStepResponseDtoControlValues$inboundSchema: z.ZodType<
|
|
|
190
195
|
z.object({
|
|
191
196
|
skip: z.record(z.any()).optional(),
|
|
192
197
|
type: DelayStepResponseDtoType$inboundSchema.default("regular"),
|
|
193
|
-
amount: z.number(),
|
|
194
|
-
unit: DelayStepResponseDtoUnit$inboundSchema,
|
|
198
|
+
amount: z.number().optional(),
|
|
199
|
+
unit: DelayStepResponseDtoUnit$inboundSchema.optional(),
|
|
200
|
+
cron: z.string().optional(),
|
|
195
201
|
}).catchall(z.any()),
|
|
196
202
|
"additionalProperties",
|
|
197
203
|
true,
|
|
@@ -201,8 +207,9 @@ export const DelayStepResponseDtoControlValues$inboundSchema: z.ZodType<
|
|
|
201
207
|
export type DelayStepResponseDtoControlValues$Outbound = {
|
|
202
208
|
skip?: { [k: string]: any } | undefined;
|
|
203
209
|
type: string;
|
|
204
|
-
amount
|
|
205
|
-
unit
|
|
210
|
+
amount?: number | undefined;
|
|
211
|
+
unit?: string | undefined;
|
|
212
|
+
cron?: string | undefined;
|
|
206
213
|
[additionalProperties: string]: unknown;
|
|
207
214
|
};
|
|
208
215
|
|
|
@@ -214,8 +221,9 @@ export const DelayStepResponseDtoControlValues$outboundSchema: z.ZodType<
|
|
|
214
221
|
> = z.object({
|
|
215
222
|
skip: z.record(z.any()).optional(),
|
|
216
223
|
type: DelayStepResponseDtoType$outboundSchema.default("regular"),
|
|
217
|
-
amount: z.number(),
|
|
218
|
-
unit: DelayStepResponseDtoUnit$outboundSchema,
|
|
224
|
+
amount: z.number().optional(),
|
|
225
|
+
unit: DelayStepResponseDtoUnit$outboundSchema.optional(),
|
|
226
|
+
cron: z.string().optional(),
|
|
219
227
|
additionalProperties: z.record(z.any()),
|
|
220
228
|
}).transform((v) => {
|
|
221
229
|
return {
|
|
@@ -28,9 +28,13 @@ export type DelayStepUpsertDtoControlValues = DelayControlDto | {
|
|
|
28
28
|
|
|
29
29
|
export type DelayStepUpsertDto = {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Database identifier of the step. Used for updating the step.
|
|
32
32
|
*/
|
|
33
33
|
id?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier for the step
|
|
36
|
+
*/
|
|
37
|
+
stepId?: string | undefined;
|
|
34
38
|
/**
|
|
35
39
|
* Name of the step
|
|
36
40
|
*/
|
|
@@ -104,6 +108,7 @@ export const DelayStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
104
108
|
unknown
|
|
105
109
|
> = z.object({
|
|
106
110
|
_id: z.string().optional(),
|
|
111
|
+
stepId: z.string().optional(),
|
|
107
112
|
name: z.string(),
|
|
108
113
|
type: StepTypeEnum$inboundSchema,
|
|
109
114
|
controlValues: z.union([DelayControlDto$inboundSchema, z.record(z.any())])
|
|
@@ -117,6 +122,7 @@ export const DelayStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
117
122
|
/** @internal */
|
|
118
123
|
export type DelayStepUpsertDto$Outbound = {
|
|
119
124
|
_id?: string | undefined;
|
|
125
|
+
stepId?: string | undefined;
|
|
120
126
|
name: string;
|
|
121
127
|
type: string;
|
|
122
128
|
controlValues?: DelayControlDto$Outbound | { [k: string]: any } | undefined;
|
|
@@ -129,6 +135,7 @@ export const DelayStepUpsertDto$outboundSchema: z.ZodType<
|
|
|
129
135
|
DelayStepUpsertDto
|
|
130
136
|
> = z.object({
|
|
131
137
|
id: z.string().optional(),
|
|
138
|
+
stepId: z.string().optional(),
|
|
132
139
|
name: z.string(),
|
|
133
140
|
type: StepTypeEnum$outboundSchema,
|
|
134
141
|
controlValues: z.union([DelayControlDto$outboundSchema, z.record(z.any())])
|
|
@@ -28,9 +28,13 @@ export type DigestStepUpsertDtoControlValues = DigestControlDto | {
|
|
|
28
28
|
|
|
29
29
|
export type DigestStepUpsertDto = {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Database identifier of the step. Used for updating the step.
|
|
32
32
|
*/
|
|
33
33
|
id?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier for the step
|
|
36
|
+
*/
|
|
37
|
+
stepId?: string | undefined;
|
|
34
38
|
/**
|
|
35
39
|
* Name of the step
|
|
36
40
|
*/
|
|
@@ -104,6 +108,7 @@ export const DigestStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
104
108
|
unknown
|
|
105
109
|
> = z.object({
|
|
106
110
|
_id: z.string().optional(),
|
|
111
|
+
stepId: z.string().optional(),
|
|
107
112
|
name: z.string(),
|
|
108
113
|
type: StepTypeEnum$inboundSchema,
|
|
109
114
|
controlValues: z.union([DigestControlDto$inboundSchema, z.record(z.any())])
|
|
@@ -117,6 +122,7 @@ export const DigestStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
117
122
|
/** @internal */
|
|
118
123
|
export type DigestStepUpsertDto$Outbound = {
|
|
119
124
|
_id?: string | undefined;
|
|
125
|
+
stepId?: string | undefined;
|
|
120
126
|
name: string;
|
|
121
127
|
type: string;
|
|
122
128
|
controlValues?: DigestControlDto$Outbound | { [k: string]: any } | undefined;
|
|
@@ -129,6 +135,7 @@ export const DigestStepUpsertDto$outboundSchema: z.ZodType<
|
|
|
129
135
|
DigestStepUpsertDto
|
|
130
136
|
> = z.object({
|
|
131
137
|
id: z.string().optional(),
|
|
138
|
+
stepId: z.string().optional(),
|
|
132
139
|
name: z.string(),
|
|
133
140
|
type: StepTypeEnum$outboundSchema,
|
|
134
141
|
controlValues: z.union([DigestControlDto$outboundSchema, z.record(z.any())])
|
|
@@ -65,6 +65,10 @@ export type DigestTimedConfigDto = {
|
|
|
65
65
|
* Cron expression for scheduling
|
|
66
66
|
*/
|
|
67
67
|
cronExpression?: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Until date for scheduling
|
|
70
|
+
*/
|
|
71
|
+
untilDate?: string | undefined;
|
|
68
72
|
};
|
|
69
73
|
|
|
70
74
|
/** @internal */
|
|
@@ -101,6 +105,7 @@ export const DigestTimedConfigDto$inboundSchema: z.ZodType<
|
|
|
101
105
|
ordinalValue: OrdinalValueEnum$inboundSchema.optional(),
|
|
102
106
|
monthlyType: MonthlyTypeEnum$inboundSchema.optional(),
|
|
103
107
|
cronExpression: z.string().optional(),
|
|
108
|
+
untilDate: z.string().optional(),
|
|
104
109
|
});
|
|
105
110
|
|
|
106
111
|
/** @internal */
|
|
@@ -112,6 +117,7 @@ export type DigestTimedConfigDto$Outbound = {
|
|
|
112
117
|
ordinalValue?: string | undefined;
|
|
113
118
|
monthlyType?: string | undefined;
|
|
114
119
|
cronExpression?: string | undefined;
|
|
120
|
+
untilDate?: string | undefined;
|
|
115
121
|
};
|
|
116
122
|
|
|
117
123
|
/** @internal */
|
|
@@ -127,6 +133,7 @@ export const DigestTimedConfigDto$outboundSchema: z.ZodType<
|
|
|
127
133
|
ordinalValue: OrdinalValueEnum$outboundSchema.optional(),
|
|
128
134
|
monthlyType: MonthlyTypeEnum$outboundSchema.optional(),
|
|
129
135
|
cronExpression: z.string().optional(),
|
|
136
|
+
untilDate: z.string().optional(),
|
|
130
137
|
});
|
|
131
138
|
|
|
132
139
|
/**
|
|
@@ -12,6 +12,10 @@ export type DuplicateLayoutDto = {
|
|
|
12
12
|
* Name of the layout
|
|
13
13
|
*/
|
|
14
14
|
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* Enable or disable translations for this layout
|
|
17
|
+
*/
|
|
18
|
+
isTranslationEnabled?: boolean | undefined;
|
|
15
19
|
};
|
|
16
20
|
|
|
17
21
|
/** @internal */
|
|
@@ -21,11 +25,13 @@ export const DuplicateLayoutDto$inboundSchema: z.ZodType<
|
|
|
21
25
|
unknown
|
|
22
26
|
> = z.object({
|
|
23
27
|
name: z.string(),
|
|
28
|
+
isTranslationEnabled: z.boolean().default(false),
|
|
24
29
|
});
|
|
25
30
|
|
|
26
31
|
/** @internal */
|
|
27
32
|
export type DuplicateLayoutDto$Outbound = {
|
|
28
33
|
name: string;
|
|
34
|
+
isTranslationEnabled: boolean;
|
|
29
35
|
};
|
|
30
36
|
|
|
31
37
|
/** @internal */
|
|
@@ -35,6 +41,7 @@ export const DuplicateLayoutDto$outboundSchema: z.ZodType<
|
|
|
35
41
|
DuplicateLayoutDto
|
|
36
42
|
> = z.object({
|
|
37
43
|
name: z.string(),
|
|
44
|
+
isTranslationEnabled: z.boolean().default(false),
|
|
38
45
|
});
|
|
39
46
|
|
|
40
47
|
/**
|
|
@@ -28,9 +28,13 @@ export type EmailStepUpsertDtoControlValues = EmailControlDto | {
|
|
|
28
28
|
|
|
29
29
|
export type EmailStepUpsertDto = {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Database identifier of the step. Used for updating the step.
|
|
32
32
|
*/
|
|
33
33
|
id?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier for the step
|
|
36
|
+
*/
|
|
37
|
+
stepId?: string | undefined;
|
|
34
38
|
/**
|
|
35
39
|
* Name of the step
|
|
36
40
|
*/
|
|
@@ -104,6 +108,7 @@ export const EmailStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
104
108
|
unknown
|
|
105
109
|
> = z.object({
|
|
106
110
|
_id: z.string().optional(),
|
|
111
|
+
stepId: z.string().optional(),
|
|
107
112
|
name: z.string(),
|
|
108
113
|
type: StepTypeEnum$inboundSchema,
|
|
109
114
|
controlValues: z.union([EmailControlDto$inboundSchema, z.record(z.any())])
|
|
@@ -117,6 +122,7 @@ export const EmailStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
117
122
|
/** @internal */
|
|
118
123
|
export type EmailStepUpsertDto$Outbound = {
|
|
119
124
|
_id?: string | undefined;
|
|
125
|
+
stepId?: string | undefined;
|
|
120
126
|
name: string;
|
|
121
127
|
type: string;
|
|
122
128
|
controlValues?: EmailControlDto$Outbound | { [k: string]: any } | undefined;
|
|
@@ -129,6 +135,7 @@ export const EmailStepUpsertDto$outboundSchema: z.ZodType<
|
|
|
129
135
|
EmailStepUpsertDto
|
|
130
136
|
> = z.object({
|
|
131
137
|
id: z.string().optional(),
|
|
138
|
+
stepId: z.string().optional(),
|
|
132
139
|
name: z.string(),
|
|
133
140
|
type: StepTypeEnum$outboundSchema,
|
|
134
141
|
controlValues: z.union([EmailControlDto$outboundSchema, z.record(z.any())])
|
|
@@ -12,11 +12,20 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
*/
|
|
13
13
|
export type Workflows = {};
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* All translations for given locale organized by layout identifier
|
|
17
|
+
*/
|
|
18
|
+
export type Layouts = {};
|
|
19
|
+
|
|
15
20
|
export type GetMasterJsonResponseDto = {
|
|
16
21
|
/**
|
|
17
22
|
* All translations for given locale organized by workflow identifier
|
|
18
23
|
*/
|
|
19
24
|
workflows: Workflows;
|
|
25
|
+
/**
|
|
26
|
+
* All translations for given locale organized by layout identifier
|
|
27
|
+
*/
|
|
28
|
+
layouts: Layouts;
|
|
20
29
|
};
|
|
21
30
|
|
|
22
31
|
/** @internal */
|
|
@@ -63,6 +72,47 @@ export function workflowsFromJSON(
|
|
|
63
72
|
);
|
|
64
73
|
}
|
|
65
74
|
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const Layouts$inboundSchema: z.ZodType<Layouts, z.ZodTypeDef, unknown> =
|
|
77
|
+
z.object({});
|
|
78
|
+
|
|
79
|
+
/** @internal */
|
|
80
|
+
export type Layouts$Outbound = {};
|
|
81
|
+
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const Layouts$outboundSchema: z.ZodType<
|
|
84
|
+
Layouts$Outbound,
|
|
85
|
+
z.ZodTypeDef,
|
|
86
|
+
Layouts
|
|
87
|
+
> = z.object({});
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @internal
|
|
91
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
92
|
+
*/
|
|
93
|
+
export namespace Layouts$ {
|
|
94
|
+
/** @deprecated use `Layouts$inboundSchema` instead. */
|
|
95
|
+
export const inboundSchema = Layouts$inboundSchema;
|
|
96
|
+
/** @deprecated use `Layouts$outboundSchema` instead. */
|
|
97
|
+
export const outboundSchema = Layouts$outboundSchema;
|
|
98
|
+
/** @deprecated use `Layouts$Outbound` instead. */
|
|
99
|
+
export type Outbound = Layouts$Outbound;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function layoutsToJSON(layouts: Layouts): string {
|
|
103
|
+
return JSON.stringify(Layouts$outboundSchema.parse(layouts));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function layoutsFromJSON(
|
|
107
|
+
jsonString: string,
|
|
108
|
+
): SafeParseResult<Layouts, SDKValidationError> {
|
|
109
|
+
return safeParse(
|
|
110
|
+
jsonString,
|
|
111
|
+
(x) => Layouts$inboundSchema.parse(JSON.parse(x)),
|
|
112
|
+
`Failed to parse 'Layouts' from JSON`,
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
66
116
|
/** @internal */
|
|
67
117
|
export const GetMasterJsonResponseDto$inboundSchema: z.ZodType<
|
|
68
118
|
GetMasterJsonResponseDto,
|
|
@@ -70,11 +120,13 @@ export const GetMasterJsonResponseDto$inboundSchema: z.ZodType<
|
|
|
70
120
|
unknown
|
|
71
121
|
> = z.object({
|
|
72
122
|
workflows: z.lazy(() => Workflows$inboundSchema),
|
|
123
|
+
layouts: z.lazy(() => Layouts$inboundSchema),
|
|
73
124
|
});
|
|
74
125
|
|
|
75
126
|
/** @internal */
|
|
76
127
|
export type GetMasterJsonResponseDto$Outbound = {
|
|
77
128
|
workflows: Workflows$Outbound;
|
|
129
|
+
layouts: Layouts$Outbound;
|
|
78
130
|
};
|
|
79
131
|
|
|
80
132
|
/** @internal */
|
|
@@ -84,6 +136,7 @@ export const GetMasterJsonResponseDto$outboundSchema: z.ZodType<
|
|
|
84
136
|
GetMasterJsonResponseDto
|
|
85
137
|
> = z.object({
|
|
86
138
|
workflows: z.lazy(() => Workflows$outboundSchema),
|
|
139
|
+
layouts: z.lazy(() => Layouts$outboundSchema),
|
|
87
140
|
});
|
|
88
141
|
|
|
89
142
|
/**
|
|
@@ -28,9 +28,13 @@ export type InAppStepUpsertDtoControlValues = InAppControlDto | {
|
|
|
28
28
|
|
|
29
29
|
export type InAppStepUpsertDto = {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Database identifier of the step. Used for updating the step.
|
|
32
32
|
*/
|
|
33
33
|
id?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier for the step
|
|
36
|
+
*/
|
|
37
|
+
stepId?: string | undefined;
|
|
34
38
|
/**
|
|
35
39
|
* Name of the step
|
|
36
40
|
*/
|
|
@@ -104,6 +108,7 @@ export const InAppStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
104
108
|
unknown
|
|
105
109
|
> = z.object({
|
|
106
110
|
_id: z.string().optional(),
|
|
111
|
+
stepId: z.string().optional(),
|
|
107
112
|
name: z.string(),
|
|
108
113
|
type: StepTypeEnum$inboundSchema,
|
|
109
114
|
controlValues: z.union([InAppControlDto$inboundSchema, z.record(z.any())])
|
|
@@ -117,6 +122,7 @@ export const InAppStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
117
122
|
/** @internal */
|
|
118
123
|
export type InAppStepUpsertDto$Outbound = {
|
|
119
124
|
_id?: string | undefined;
|
|
125
|
+
stepId?: string | undefined;
|
|
120
126
|
name: string;
|
|
121
127
|
type: string;
|
|
122
128
|
controlValues?: InAppControlDto$Outbound | { [k: string]: any } | undefined;
|
|
@@ -129,6 +135,7 @@ export const InAppStepUpsertDto$outboundSchema: z.ZodType<
|
|
|
129
135
|
InAppStepUpsertDto
|
|
130
136
|
> = z.object({
|
|
131
137
|
id: z.string().optional(),
|
|
138
|
+
stepId: z.string().optional(),
|
|
132
139
|
name: z.string(),
|
|
133
140
|
type: StepTypeEnum$outboundSchema,
|
|
134
141
|
controlValues: z.union([InAppControlDto$outboundSchema, z.record(z.any())])
|
|
@@ -67,6 +67,10 @@ export type LayoutResponseDto = {
|
|
|
67
67
|
* Whether the layout is the default layout
|
|
68
68
|
*/
|
|
69
69
|
isDefault: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Whether the layout translations are enabled
|
|
72
|
+
*/
|
|
73
|
+
isTranslationEnabled: boolean;
|
|
70
74
|
/**
|
|
71
75
|
* Last updated timestamp
|
|
72
76
|
*/
|
|
@@ -175,6 +179,7 @@ export const LayoutResponseDto$inboundSchema: z.ZodType<
|
|
|
175
179
|
slug: z.string(),
|
|
176
180
|
name: z.string(),
|
|
177
181
|
isDefault: z.boolean(),
|
|
182
|
+
isTranslationEnabled: z.boolean(),
|
|
178
183
|
updatedAt: z.string(),
|
|
179
184
|
updatedBy: z.nullable(z.lazy(() => UpdatedBy$inboundSchema)).optional(),
|
|
180
185
|
createdAt: z.string(),
|
|
@@ -195,6 +200,7 @@ export type LayoutResponseDto$Outbound = {
|
|
|
195
200
|
slug: string;
|
|
196
201
|
name: string;
|
|
197
202
|
isDefault: boolean;
|
|
203
|
+
isTranslationEnabled: boolean;
|
|
198
204
|
updatedAt: string;
|
|
199
205
|
updatedBy?: UpdatedBy$Outbound | null | undefined;
|
|
200
206
|
createdAt: string;
|
|
@@ -215,6 +221,7 @@ export const LayoutResponseDto$outboundSchema: z.ZodType<
|
|
|
215
221
|
slug: z.string(),
|
|
216
222
|
name: z.string(),
|
|
217
223
|
isDefault: z.boolean(),
|
|
224
|
+
isTranslationEnabled: z.boolean(),
|
|
218
225
|
updatedAt: z.string(),
|
|
219
226
|
updatedBy: z.nullable(z.lazy(() => UpdatedBy$outboundSchema)).optional(),
|
|
220
227
|
createdAt: z.string(),
|
|
@@ -28,9 +28,13 @@ export type PushStepUpsertDtoControlValues = PushControlDto | {
|
|
|
28
28
|
|
|
29
29
|
export type PushStepUpsertDto = {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Database identifier of the step. Used for updating the step.
|
|
32
32
|
*/
|
|
33
33
|
id?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier for the step
|
|
36
|
+
*/
|
|
37
|
+
stepId?: string | undefined;
|
|
34
38
|
/**
|
|
35
39
|
* Name of the step
|
|
36
40
|
*/
|
|
@@ -104,6 +108,7 @@ export const PushStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
104
108
|
unknown
|
|
105
109
|
> = z.object({
|
|
106
110
|
_id: z.string().optional(),
|
|
111
|
+
stepId: z.string().optional(),
|
|
107
112
|
name: z.string(),
|
|
108
113
|
type: StepTypeEnum$inboundSchema,
|
|
109
114
|
controlValues: z.union([PushControlDto$inboundSchema, z.record(z.any())])
|
|
@@ -117,6 +122,7 @@ export const PushStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
117
122
|
/** @internal */
|
|
118
123
|
export type PushStepUpsertDto$Outbound = {
|
|
119
124
|
_id?: string | undefined;
|
|
125
|
+
stepId?: string | undefined;
|
|
120
126
|
name: string;
|
|
121
127
|
type: string;
|
|
122
128
|
controlValues?: PushControlDto$Outbound | { [k: string]: any } | undefined;
|
|
@@ -129,6 +135,7 @@ export const PushStepUpsertDto$outboundSchema: z.ZodType<
|
|
|
129
135
|
PushStepUpsertDto
|
|
130
136
|
> = z.object({
|
|
131
137
|
id: z.string().optional(),
|
|
138
|
+
stepId: z.string().optional(),
|
|
132
139
|
name: z.string(),
|
|
133
140
|
type: StepTypeEnum$outboundSchema,
|
|
134
141
|
controlValues: z.union([PushControlDto$outboundSchema, z.record(z.any())])
|
|
@@ -28,9 +28,13 @@ export type SmsStepUpsertDtoControlValues = SmsControlDto | {
|
|
|
28
28
|
|
|
29
29
|
export type SmsStepUpsertDto = {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Database identifier of the step. Used for updating the step.
|
|
32
32
|
*/
|
|
33
33
|
id?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier for the step
|
|
36
|
+
*/
|
|
37
|
+
stepId?: string | undefined;
|
|
34
38
|
/**
|
|
35
39
|
* Name of the step
|
|
36
40
|
*/
|
|
@@ -104,6 +108,7 @@ export const SmsStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
104
108
|
unknown
|
|
105
109
|
> = z.object({
|
|
106
110
|
_id: z.string().optional(),
|
|
111
|
+
stepId: z.string().optional(),
|
|
107
112
|
name: z.string(),
|
|
108
113
|
type: StepTypeEnum$inboundSchema,
|
|
109
114
|
controlValues: z.union([SmsControlDto$inboundSchema, z.record(z.any())])
|
|
@@ -117,6 +122,7 @@ export const SmsStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
117
122
|
/** @internal */
|
|
118
123
|
export type SmsStepUpsertDto$Outbound = {
|
|
119
124
|
_id?: string | undefined;
|
|
125
|
+
stepId?: string | undefined;
|
|
120
126
|
name: string;
|
|
121
127
|
type: string;
|
|
122
128
|
controlValues?: SmsControlDto$Outbound | { [k: string]: any } | undefined;
|
|
@@ -129,6 +135,7 @@ export const SmsStepUpsertDto$outboundSchema: z.ZodType<
|
|
|
129
135
|
SmsStepUpsertDto
|
|
130
136
|
> = z.object({
|
|
131
137
|
id: z.string().optional(),
|
|
138
|
+
stepId: z.string().optional(),
|
|
132
139
|
name: z.string(),
|
|
133
140
|
type: StepTypeEnum$outboundSchema,
|
|
134
141
|
controlValues: z.union([SmsControlDto$outboundSchema, z.record(z.any())])
|
|
@@ -28,9 +28,13 @@ export type ThrottleStepUpsertDtoControlValues = ThrottleControlDto | {
|
|
|
28
28
|
|
|
29
29
|
export type ThrottleStepUpsertDto = {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Database identifier of the step. Used for updating the step.
|
|
32
32
|
*/
|
|
33
33
|
id?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier for the step
|
|
36
|
+
*/
|
|
37
|
+
stepId?: string | undefined;
|
|
34
38
|
/**
|
|
35
39
|
* Name of the step
|
|
36
40
|
*/
|
|
@@ -106,6 +110,7 @@ export const ThrottleStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
106
110
|
unknown
|
|
107
111
|
> = z.object({
|
|
108
112
|
_id: z.string().optional(),
|
|
113
|
+
stepId: z.string().optional(),
|
|
109
114
|
name: z.string(),
|
|
110
115
|
type: StepTypeEnum$inboundSchema,
|
|
111
116
|
controlValues: z.union([ThrottleControlDto$inboundSchema, z.record(z.any())])
|
|
@@ -119,6 +124,7 @@ export const ThrottleStepUpsertDto$inboundSchema: z.ZodType<
|
|
|
119
124
|
/** @internal */
|
|
120
125
|
export type ThrottleStepUpsertDto$Outbound = {
|
|
121
126
|
_id?: string | undefined;
|
|
127
|
+
stepId?: string | undefined;
|
|
122
128
|
name: string;
|
|
123
129
|
type: string;
|
|
124
130
|
controlValues?:
|
|
@@ -134,6 +140,7 @@ export const ThrottleStepUpsertDto$outboundSchema: z.ZodType<
|
|
|
134
140
|
ThrottleStepUpsertDto
|
|
135
141
|
> = z.object({
|
|
136
142
|
id: z.string().optional(),
|
|
143
|
+
stepId: z.string().optional(),
|
|
137
144
|
name: z.string(),
|
|
138
145
|
type: StepTypeEnum$outboundSchema,
|
|
139
146
|
controlValues: z.union([ThrottleControlDto$outboundSchema, z.record(z.any())])
|
|
@@ -15,6 +15,10 @@ import {
|
|
|
15
15
|
export type TopicPayloadDto = {
|
|
16
16
|
topicKey: string;
|
|
17
17
|
type: TriggerRecipientsTypeEnum;
|
|
18
|
+
/**
|
|
19
|
+
* Optional array of subscriber IDs to exclude from the topic trigger
|
|
20
|
+
*/
|
|
21
|
+
exclude?: Array<string> | undefined;
|
|
18
22
|
};
|
|
19
23
|
|
|
20
24
|
/** @internal */
|
|
@@ -25,12 +29,14 @@ export const TopicPayloadDto$inboundSchema: z.ZodType<
|
|
|
25
29
|
> = z.object({
|
|
26
30
|
topicKey: z.string(),
|
|
27
31
|
type: TriggerRecipientsTypeEnum$inboundSchema,
|
|
32
|
+
exclude: z.array(z.string()).optional(),
|
|
28
33
|
});
|
|
29
34
|
|
|
30
35
|
/** @internal */
|
|
31
36
|
export type TopicPayloadDto$Outbound = {
|
|
32
37
|
topicKey: string;
|
|
33
38
|
type: string;
|
|
39
|
+
exclude?: Array<string> | undefined;
|
|
34
40
|
};
|
|
35
41
|
|
|
36
42
|
/** @internal */
|
|
@@ -41,6 +47,7 @@ export const TopicPayloadDto$outboundSchema: z.ZodType<
|
|
|
41
47
|
> = z.object({
|
|
42
48
|
topicKey: z.string(),
|
|
43
49
|
type: TriggerRecipientsTypeEnum$outboundSchema,
|
|
50
|
+
exclude: z.array(z.string()).optional(),
|
|
44
51
|
});
|
|
45
52
|
|
|
46
53
|
/**
|
|
@@ -24,11 +24,13 @@ export const UiComponentEnum = {
|
|
|
24
24
|
UrlTextBox: "URL_TEXT_BOX",
|
|
25
25
|
DigestAmount: "DIGEST_AMOUNT",
|
|
26
26
|
DigestUnit: "DIGEST_UNIT",
|
|
27
|
+
DigestType: "DIGEST_TYPE",
|
|
27
28
|
DigestKey: "DIGEST_KEY",
|
|
28
29
|
DigestCron: "DIGEST_CRON",
|
|
29
|
-
DelayType: "DELAY_TYPE",
|
|
30
30
|
DelayAmount: "DELAY_AMOUNT",
|
|
31
31
|
DelayUnit: "DELAY_UNIT",
|
|
32
|
+
DelayType: "DELAY_TYPE",
|
|
33
|
+
DelayCron: "DELAY_CRON",
|
|
32
34
|
ThrottleType: "THROTTLE_TYPE",
|
|
33
35
|
ThrottleWindow: "THROTTLE_WINDOW",
|
|
34
36
|
ThrottleUnit: "THROTTLE_UNIT",
|
|
@@ -28,6 +28,10 @@ export type UpdateLayoutDto = {
|
|
|
28
28
|
* Name of the layout
|
|
29
29
|
*/
|
|
30
30
|
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* Enable or disable translations for this layout
|
|
33
|
+
*/
|
|
34
|
+
isTranslationEnabled?: boolean | undefined;
|
|
31
35
|
/**
|
|
32
36
|
* Control values for the layout
|
|
33
37
|
*/
|
|
@@ -91,6 +95,7 @@ export const UpdateLayoutDto$inboundSchema: z.ZodType<
|
|
|
91
95
|
unknown
|
|
92
96
|
> = z.object({
|
|
93
97
|
name: z.string(),
|
|
98
|
+
isTranslationEnabled: z.boolean().default(false),
|
|
94
99
|
controlValues: z.nullable(z.lazy(() => ControlValues$inboundSchema))
|
|
95
100
|
.optional(),
|
|
96
101
|
});
|
|
@@ -98,6 +103,7 @@ export const UpdateLayoutDto$inboundSchema: z.ZodType<
|
|
|
98
103
|
/** @internal */
|
|
99
104
|
export type UpdateLayoutDto$Outbound = {
|
|
100
105
|
name: string;
|
|
106
|
+
isTranslationEnabled: boolean;
|
|
101
107
|
controlValues?: ControlValues$Outbound | null | undefined;
|
|
102
108
|
};
|
|
103
109
|
|
|
@@ -108,6 +114,7 @@ export const UpdateLayoutDto$outboundSchema: z.ZodType<
|
|
|
108
114
|
UpdateLayoutDto
|
|
109
115
|
> = z.object({
|
|
110
116
|
name: z.string(),
|
|
117
|
+
isTranslationEnabled: z.boolean().default(false),
|
|
111
118
|
controlValues: z.nullable(z.lazy(() => ControlValues$outboundSchema))
|
|
112
119
|
.optional(),
|
|
113
120
|
});
|
|
@@ -52,6 +52,10 @@ export type NotificationsControllerListNotificationsRequest = {
|
|
|
52
52
|
* Topic Key for filtering notifications by topic
|
|
53
53
|
*/
|
|
54
54
|
topicKey?: string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Context search - can search by type, ID, or exact format "type:id"
|
|
57
|
+
*/
|
|
58
|
+
contextSearch?: string | undefined;
|
|
55
59
|
/**
|
|
56
60
|
* Date filter for records after this timestamp. Defaults to earliest date allowed by subscription plan
|
|
57
61
|
*/
|
|
@@ -88,6 +92,7 @@ export const NotificationsControllerListNotificationsRequest$inboundSchema:
|
|
|
88
92
|
limit: z.number().default(10),
|
|
89
93
|
transactionId: z.string().optional(),
|
|
90
94
|
topicKey: z.string().optional(),
|
|
95
|
+
contextSearch: z.string().optional(),
|
|
91
96
|
after: z.string().optional(),
|
|
92
97
|
before: z.string().optional(),
|
|
93
98
|
"idempotency-key": z.string().optional(),
|
|
@@ -109,6 +114,7 @@ export type NotificationsControllerListNotificationsRequest$Outbound = {
|
|
|
109
114
|
limit: number;
|
|
110
115
|
transactionId?: string | undefined;
|
|
111
116
|
topicKey?: string | undefined;
|
|
117
|
+
contextSearch?: string | undefined;
|
|
112
118
|
after?: string | undefined;
|
|
113
119
|
before?: string | undefined;
|
|
114
120
|
"idempotency-key"?: string | undefined;
|
|
@@ -131,6 +137,7 @@ export const NotificationsControllerListNotificationsRequest$outboundSchema:
|
|
|
131
137
|
limit: z.number().default(10),
|
|
132
138
|
transactionId: z.string().optional(),
|
|
133
139
|
topicKey: z.string().optional(),
|
|
140
|
+
contextSearch: z.string().optional(),
|
|
134
141
|
after: z.string().optional(),
|
|
135
142
|
before: z.string().optional(),
|
|
136
143
|
idempotencyKey: z.string().optional(),
|