@@ -32,34 +32,6 @@ import {
32
32
TopicPayloadDto$outboundSchema ,
33
33
} from "./topicpayloaddto.js" ;
34
34
35
- /**
36
- * Override the email provider specific configurations for the entire workflow
37
- *
38
- * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
39
- */
40
- export type Email = { } ;
41
-
42
- /**
43
- * Override the push provider specific configurations for the entire workflow
44
- *
45
- * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
46
- */
47
- export type Push = { } ;
48
-
49
- /**
50
- * Override the sms provider specific configurations for the entire workflow
51
- *
52
- * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
53
- */
54
- export type Sms = { } ;
55
-
56
- /**
57
- * Override the chat provider specific configurations for the entire workflow
58
- *
59
- * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
60
- */
61
- export type Chat = { } ;
62
-
63
35
/**
64
36
* This could be used to override provider specific configurations
65
37
*/
@@ -77,25 +49,25 @@ export type Overrides = {
77
49
*
78
50
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
79
51
*/
80
- email ?: Email | undefined ;
52
+ email ?: { [ k : string ] : { [ k : string ] : any } } | undefined ;
81
53
/**
82
54
* Override the push provider specific configurations for the entire workflow
83
55
*
84
56
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
85
57
*/
86
- push ?: Push | undefined ;
58
+ push ?: { [ k : string ] : { [ k : string ] : any } } | undefined ;
87
59
/**
88
60
* Override the sms provider specific configurations for the entire workflow
89
61
*
90
62
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
91
63
*/
92
- sms ?: Sms | undefined ;
64
+ sms ?: { [ k : string ] : { [ k : string ] : any } } | undefined ;
93
65
/**
94
66
* Override the chat provider specific configurations for the entire workflow
95
67
*
96
68
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
97
69
*/
98
- chat ?: Chat | undefined ;
70
+ chat ?: { [ k : string ] : { [ k : string ] : any } } | undefined ;
99
71
/**
100
72
* Override the layout identifier for the entire workflow
101
73
*
@@ -176,161 +148,6 @@ export type TriggerEventRequestDto = {
176
148
tenant ?: TenantPayloadDto | string | undefined ;
177
149
} ;
178
150
179
- /** @internal */
180
- export const Email$inboundSchema : z . ZodType < Email , z . ZodTypeDef , unknown > = z
181
- . object ( { } ) ;
182
-
183
- /** @internal */
184
- export type Email$Outbound = { } ;
185
-
186
- /** @internal */
187
- export const Email$outboundSchema : z . ZodType <
188
- Email$Outbound ,
189
- z . ZodTypeDef ,
190
- Email
191
- > = z . object ( { } ) ;
192
-
193
- /**
194
- * @internal
195
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
196
- */
197
- export namespace Email$ {
198
- /** @deprecated use `Email$inboundSchema` instead. */
199
- export const inboundSchema = Email$inboundSchema ;
200
- /** @deprecated use `Email$outboundSchema` instead. */
201
- export const outboundSchema = Email$outboundSchema ;
202
- /** @deprecated use `Email$Outbound` instead. */
203
- export type Outbound = Email$Outbound ;
204
- }
205
-
206
- export function emailToJSON ( email : Email ) : string {
207
- return JSON . stringify ( Email$outboundSchema . parse ( email ) ) ;
208
- }
209
-
210
- export function emailFromJSON (
211
- jsonString : string ,
212
- ) : SafeParseResult < Email , SDKValidationError > {
213
- return safeParse (
214
- jsonString ,
215
- ( x ) => Email$inboundSchema . parse ( JSON . parse ( x ) ) ,
216
- `Failed to parse 'Email' from JSON` ,
217
- ) ;
218
- }
219
-
220
- /** @internal */
221
- export const Push$inboundSchema : z . ZodType < Push , z . ZodTypeDef , unknown > = z
222
- . object ( { } ) ;
223
-
224
- /** @internal */
225
- export type Push$Outbound = { } ;
226
-
227
- /** @internal */
228
- export const Push$outboundSchema : z . ZodType < Push$Outbound , z . ZodTypeDef , Push > =
229
- z . object ( { } ) ;
230
-
231
- /**
232
- * @internal
233
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
234
- */
235
- export namespace Push$ {
236
- /** @deprecated use `Push$inboundSchema` instead. */
237
- export const inboundSchema = Push$inboundSchema ;
238
- /** @deprecated use `Push$outboundSchema` instead. */
239
- export const outboundSchema = Push$outboundSchema ;
240
- /** @deprecated use `Push$Outbound` instead. */
241
- export type Outbound = Push$Outbound ;
242
- }
243
-
244
- export function pushToJSON ( push : Push ) : string {
245
- return JSON . stringify ( Push$outboundSchema . parse ( push ) ) ;
246
- }
247
-
248
- export function pushFromJSON (
249
- jsonString : string ,
250
- ) : SafeParseResult < Push , SDKValidationError > {
251
- return safeParse (
252
- jsonString ,
253
- ( x ) => Push$inboundSchema . parse ( JSON . parse ( x ) ) ,
254
- `Failed to parse 'Push' from JSON` ,
255
- ) ;
256
- }
257
-
258
- /** @internal */
259
- export const Sms$inboundSchema : z . ZodType < Sms , z . ZodTypeDef , unknown > = z
260
- . object ( { } ) ;
261
-
262
- /** @internal */
263
- export type Sms$Outbound = { } ;
264
-
265
- /** @internal */
266
- export const Sms$outboundSchema : z . ZodType < Sms$Outbound , z . ZodTypeDef , Sms > = z
267
- . object ( { } ) ;
268
-
269
- /**
270
- * @internal
271
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
272
- */
273
- export namespace Sms$ {
274
- /** @deprecated use `Sms$inboundSchema` instead. */
275
- export const inboundSchema = Sms$inboundSchema ;
276
- /** @deprecated use `Sms$outboundSchema` instead. */
277
- export const outboundSchema = Sms$outboundSchema ;
278
- /** @deprecated use `Sms$Outbound` instead. */
279
- export type Outbound = Sms$Outbound ;
280
- }
281
-
282
- export function smsToJSON ( sms : Sms ) : string {
283
- return JSON . stringify ( Sms$outboundSchema . parse ( sms ) ) ;
284
- }
285
-
286
- export function smsFromJSON (
287
- jsonString : string ,
288
- ) : SafeParseResult < Sms , SDKValidationError > {
289
- return safeParse (
290
- jsonString ,
291
- ( x ) => Sms$inboundSchema . parse ( JSON . parse ( x ) ) ,
292
- `Failed to parse 'Sms' from JSON` ,
293
- ) ;
294
- }
295
-
296
- /** @internal */
297
- export const Chat$inboundSchema : z . ZodType < Chat , z . ZodTypeDef , unknown > = z
298
- . object ( { } ) ;
299
-
300
- /** @internal */
301
- export type Chat$Outbound = { } ;
302
-
303
- /** @internal */
304
- export const Chat$outboundSchema : z . ZodType < Chat$Outbound , z . ZodTypeDef , Chat > =
305
- z . object ( { } ) ;
306
-
307
- /**
308
- * @internal
309
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
310
- */
311
- export namespace Chat$ {
312
- /** @deprecated use `Chat$inboundSchema` instead. */
313
- export const inboundSchema = Chat$inboundSchema ;
314
- /** @deprecated use `Chat$outboundSchema` instead. */
315
- export const outboundSchema = Chat$outboundSchema ;
316
- /** @deprecated use `Chat$Outbound` instead. */
317
- export type Outbound = Chat$Outbound ;
318
- }
319
-
320
- export function chatToJSON ( chat : Chat ) : string {
321
- return JSON . stringify ( Chat$outboundSchema . parse ( chat ) ) ;
322
- }
323
-
324
- export function chatFromJSON (
325
- jsonString : string ,
326
- ) : SafeParseResult < Chat , SDKValidationError > {
327
- return safeParse (
328
- jsonString ,
329
- ( x ) => Chat$inboundSchema . parse ( JSON . parse ( x ) ) ,
330
- `Failed to parse 'Chat' from JSON` ,
331
- ) ;
332
- }
333
-
334
151
/** @internal */
335
152
export const Overrides$inboundSchema : z . ZodType <
336
153
Overrides ,
@@ -339,21 +156,21 @@ export const Overrides$inboundSchema: z.ZodType<
339
156
> = z . object ( {
340
157
steps : z . record ( StepsOverrides$inboundSchema ) . optional ( ) ,
341
158
providers : z . record ( z . record ( z . any ( ) ) ) . optional ( ) ,
342
- email : z . lazy ( ( ) => Email$inboundSchema ) . optional ( ) ,
343
- push : z . lazy ( ( ) => Push$inboundSchema ) . optional ( ) ,
344
- sms : z . lazy ( ( ) => Sms$inboundSchema ) . optional ( ) ,
345
- chat : z . lazy ( ( ) => Chat$inboundSchema ) . optional ( ) ,
159
+ email : z . record ( z . record ( z . any ( ) ) ) . optional ( ) ,
160
+ push : z . record ( z . record ( z . any ( ) ) ) . optional ( ) ,
161
+ sms : z . record ( z . record ( z . any ( ) ) ) . optional ( ) ,
162
+ chat : z . record ( z . record ( z . any ( ) ) ) . optional ( ) ,
346
163
layoutIdentifier : z . string ( ) . optional ( ) ,
347
164
} ) ;
348
165
349
166
/** @internal */
350
167
export type Overrides$Outbound = {
351
168
steps ?: { [ k : string ] : StepsOverrides$Outbound } | undefined ;
352
169
providers ?: { [ k : string ] : { [ k : string ] : any } } | undefined ;
353
- email ?: Email$Outbound | undefined ;
354
- push ?: Push$Outbound | undefined ;
355
- sms ?: Sms$Outbound | undefined ;
356
- chat ?: Chat$Outbound | undefined ;
170
+ email ?: { [ k : string ] : { [ k : string ] : any } } | undefined ;
171
+ push ?: { [ k : string ] : { [ k : string ] : any } } | undefined ;
172
+ sms ?: { [ k : string ] : { [ k : string ] : any } } | undefined ;
173
+ chat ?: { [ k : string ] : { [ k : string ] : any } } | undefined ;
357
174
layoutIdentifier ?: string | undefined ;
358
175
} ;
359
176
@@ -365,10 +182,10 @@ export const Overrides$outboundSchema: z.ZodType<
365
182
> = z . object ( {
366
183
steps : z . record ( StepsOverrides$outboundSchema ) . optional ( ) ,
367
184
providers : z . record ( z . record ( z . any ( ) ) ) . optional ( ) ,
368
- email : z . lazy ( ( ) => Email$outboundSchema ) . optional ( ) ,
369
- push : z . lazy ( ( ) => Push$outboundSchema ) . optional ( ) ,
370
- sms : z . lazy ( ( ) => Sms$outboundSchema ) . optional ( ) ,
371
- chat : z . lazy ( ( ) => Chat$outboundSchema ) . optional ( ) ,
185
+ email : z . record ( z . record ( z . any ( ) ) ) . optional ( ) ,
186
+ push : z . record ( z . record ( z . any ( ) ) ) . optional ( ) ,
187
+ sms : z . record ( z . record ( z . any ( ) ) ) . optional ( ) ,
188
+ chat : z . record ( z . record ( z . any ( ) ) ) . optional ( ) ,
372
189
layoutIdentifier : z . string ( ) . optional ( ) ,
373
190
} ) ;
374
191
0 commit comments