@apostlejs/flows 0.0.3

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.
@@ -0,0 +1,3291 @@
1
+ import { FlowMetadata, WaSDKGetFlowWebPreviewPageRequestQuery, FlowParameters, WhatsappFlowDecryptedWebhookBody, WhatsappFlowResponse } from '@apostlejs/whatsapp';
2
+ import { ZodRawShape, ZodObject, ZodTypeAny, ZodEffects, ZodDefault, z } from 'zod';
3
+
4
+ type AnyType = any;
5
+ type DistributiveOmit<T, K extends keyof AnyType> = T extends AnyType ? Omit<T, K> : never;
6
+ type DistributivePartialExcept<T, K extends PropertyKey> = T extends object ? Partial<Omit<T, K>> & Pick<T, Extract<keyof T, K>> : never;
7
+ type Promisable<T> = T | Promise<T>;
8
+ type ZodSchema<Shape extends ZodRawShape> = ZodObject<Shape, "strip", ZodTypeAny> | ZodEffects<ZodObject<Shape, "strip", ZodTypeAny>> | ZodDefault<ZodObject<Shape, "strip", ZodTypeAny>>;
9
+
10
+ declare const components$1: {
11
+ readonly Title: z.ZodObject<{
12
+ type: z.ZodLiteral<"Title">;
13
+ id: z.ZodString;
14
+ text: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ type: "Title";
17
+ text: string;
18
+ id: string;
19
+ }, {
20
+ type: "Title";
21
+ text: string;
22
+ id: string;
23
+ }>;
24
+ readonly TextHeading: z.ZodObject<{
25
+ type: z.ZodLiteral<"TextHeading">;
26
+ } & {
27
+ id: z.ZodString;
28
+ text: z.ZodString;
29
+ } & {
30
+ visible: z.ZodOptional<z.ZodBoolean>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ type: "TextHeading";
33
+ text: string;
34
+ id: string;
35
+ visible?: boolean | undefined;
36
+ }, {
37
+ type: "TextHeading";
38
+ text: string;
39
+ id: string;
40
+ visible?: boolean | undefined;
41
+ }>;
42
+ readonly TextSubheading: z.ZodObject<{
43
+ type: z.ZodLiteral<"TextSubheading">;
44
+ } & {
45
+ id: z.ZodString;
46
+ text: z.ZodString;
47
+ visible: z.ZodOptional<z.ZodBoolean>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ type: "TextSubheading";
50
+ text: string;
51
+ id: string;
52
+ visible?: boolean | undefined;
53
+ }, {
54
+ type: "TextSubheading";
55
+ text: string;
56
+ id: string;
57
+ visible?: boolean | undefined;
58
+ }>;
59
+ readonly TextBody: z.ZodObject<{
60
+ type: z.ZodLiteral<"TextBody">;
61
+ "font-weight": z.ZodOptional<z.ZodEnum<["bold", "italic", "bold_italic", "normal"]>>;
62
+ strikethrough: z.ZodOptional<z.ZodBoolean>;
63
+ markdown: z.ZodOptional<z.ZodBoolean>;
64
+ } & {
65
+ id: z.ZodString;
66
+ text: z.ZodString;
67
+ } & {
68
+ visible: z.ZodOptional<z.ZodBoolean>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ type: "TextBody";
71
+ text: string;
72
+ id: string;
73
+ visible?: boolean | undefined;
74
+ "font-weight"?: "bold" | "italic" | "bold_italic" | "normal" | undefined;
75
+ strikethrough?: boolean | undefined;
76
+ markdown?: boolean | undefined;
77
+ }, {
78
+ type: "TextBody";
79
+ text: string;
80
+ id: string;
81
+ visible?: boolean | undefined;
82
+ "font-weight"?: "bold" | "italic" | "bold_italic" | "normal" | undefined;
83
+ strikethrough?: boolean | undefined;
84
+ markdown?: boolean | undefined;
85
+ }>;
86
+ readonly TextCaption: z.ZodObject<{
87
+ type: z.ZodLiteral<"TextCaption">;
88
+ "font-weight": z.ZodOptional<z.ZodEnum<["bold", "italic", "bold_italic", "normal"]>>;
89
+ strikethrough: z.ZodOptional<z.ZodBoolean>;
90
+ markdown: z.ZodOptional<z.ZodBoolean>;
91
+ } & {
92
+ id: z.ZodString;
93
+ text: z.ZodString;
94
+ } & {
95
+ visible: z.ZodOptional<z.ZodBoolean>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ type: "TextCaption";
98
+ text: string;
99
+ id: string;
100
+ visible?: boolean | undefined;
101
+ "font-weight"?: "bold" | "italic" | "bold_italic" | "normal" | undefined;
102
+ strikethrough?: boolean | undefined;
103
+ markdown?: boolean | undefined;
104
+ }, {
105
+ type: "TextCaption";
106
+ text: string;
107
+ id: string;
108
+ visible?: boolean | undefined;
109
+ "font-weight"?: "bold" | "italic" | "bold_italic" | "normal" | undefined;
110
+ strikethrough?: boolean | undefined;
111
+ markdown?: boolean | undefined;
112
+ }>;
113
+ readonly RichText: z.ZodObject<{
114
+ type: z.ZodLiteral<"RichText">;
115
+ } & {
116
+ id: z.ZodString;
117
+ text: z.ZodString;
118
+ visible: z.ZodOptional<z.ZodBoolean>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ type: "RichText";
121
+ text: string;
122
+ id: string;
123
+ visible?: boolean | undefined;
124
+ }, {
125
+ type: "RichText";
126
+ text: string;
127
+ id: string;
128
+ visible?: boolean | undefined;
129
+ }>;
130
+ readonly EmbeddedLink: z.ZodObject<{
131
+ type: z.ZodLiteral<"EmbeddedLink">;
132
+ "on-click-action": z.ZodOptional<z.ZodObject<{
133
+ name: z.ZodEnum<["data_exchange", "navigate", "complete", "update_data", "open_url"]>;
134
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
135
+ next: z.ZodOptional<z.ZodObject<{
136
+ type: z.ZodLiteral<"screen">;
137
+ name: z.ZodString;
138
+ }, "strip", z.ZodTypeAny, {
139
+ type: "screen";
140
+ name: string;
141
+ }, {
142
+ type: "screen";
143
+ name: string;
144
+ }>>;
145
+ url: z.ZodOptional<z.ZodString>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
148
+ payload?: Record<string, any> | undefined;
149
+ next?: {
150
+ type: "screen";
151
+ name: string;
152
+ } | undefined;
153
+ url?: string | undefined;
154
+ }, {
155
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
156
+ payload?: Record<string, any> | undefined;
157
+ next?: {
158
+ type: "screen";
159
+ name: string;
160
+ } | undefined;
161
+ url?: string | undefined;
162
+ }>>;
163
+ } & {
164
+ id: z.ZodString;
165
+ text: z.ZodString;
166
+ visible: z.ZodOptional<z.ZodBoolean>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ type: "EmbeddedLink";
169
+ text: string;
170
+ id: string;
171
+ visible?: boolean | undefined;
172
+ "on-click-action"?: {
173
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
174
+ payload?: Record<string, any> | undefined;
175
+ next?: {
176
+ type: "screen";
177
+ name: string;
178
+ } | undefined;
179
+ url?: string | undefined;
180
+ } | undefined;
181
+ }, {
182
+ type: "EmbeddedLink";
183
+ text: string;
184
+ id: string;
185
+ visible?: boolean | undefined;
186
+ "on-click-action"?: {
187
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
188
+ payload?: Record<string, any> | undefined;
189
+ next?: {
190
+ type: "screen";
191
+ name: string;
192
+ } | undefined;
193
+ url?: string | undefined;
194
+ } | undefined;
195
+ }>;
196
+ readonly Image: z.ZodObject<{
197
+ type: z.ZodLiteral<"Image">;
198
+ id: z.ZodString;
199
+ src: z.ZodString;
200
+ width: z.ZodOptional<z.ZodNumber>;
201
+ height: z.ZodOptional<z.ZodNumber>;
202
+ "scale-type": z.ZodOptional<z.ZodDefault<z.ZodEnum<["cover", "contain"]>>>;
203
+ "aspect-ratio": z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
204
+ "alt-text": z.ZodOptional<z.ZodString>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ type: "Image";
207
+ id: string;
208
+ src: string;
209
+ "alt-text"?: string | undefined;
210
+ width?: number | undefined;
211
+ height?: number | undefined;
212
+ "scale-type"?: "cover" | "contain" | undefined;
213
+ "aspect-ratio"?: number | undefined;
214
+ }, {
215
+ type: "Image";
216
+ id: string;
217
+ src: string;
218
+ "alt-text"?: string | undefined;
219
+ width?: number | undefined;
220
+ height?: number | undefined;
221
+ "scale-type"?: "cover" | "contain" | undefined;
222
+ "aspect-ratio"?: number | undefined;
223
+ }>;
224
+ readonly ImageCarousel: z.ZodObject<{
225
+ type: z.ZodLiteral<"ImageCarousel">;
226
+ images: z.ZodArray<z.ZodObject<{
227
+ src: z.ZodString;
228
+ "alt-text": z.ZodString;
229
+ }, "strip", z.ZodTypeAny, {
230
+ "alt-text": string;
231
+ src: string;
232
+ }, {
233
+ "alt-text": string;
234
+ src: string;
235
+ }>, "many">;
236
+ "scale-type": z.ZodOptional<z.ZodDefault<z.ZodEnum<["cover", "contain"]>>>;
237
+ "aspect-ratio": z.ZodOptional<z.ZodEnum<["4:3", "16:9"]>>;
238
+ }, "strip", z.ZodTypeAny, {
239
+ type: "ImageCarousel";
240
+ images: {
241
+ "alt-text": string;
242
+ src: string;
243
+ }[];
244
+ "scale-type"?: "cover" | "contain" | undefined;
245
+ "aspect-ratio"?: "4:3" | "16:9" | undefined;
246
+ }, {
247
+ type: "ImageCarousel";
248
+ images: {
249
+ "alt-text": string;
250
+ src: string;
251
+ }[];
252
+ "scale-type"?: "cover" | "contain" | undefined;
253
+ "aspect-ratio"?: "4:3" | "16:9" | undefined;
254
+ }>;
255
+ readonly Footer: z.ZodObject<{
256
+ type: z.ZodLiteral<"Footer">;
257
+ label: z.ZodString;
258
+ enabled: z.ZodOptional<z.ZodBoolean>;
259
+ "left-caption": z.ZodOptional<z.ZodString>;
260
+ "center-caption": z.ZodOptional<z.ZodString>;
261
+ "right-caption": z.ZodOptional<z.ZodString>;
262
+ "on-click-action": z.ZodOptional<z.ZodObject<{
263
+ name: z.ZodEnum<["data_exchange", "navigate", "complete", "update_data", "open_url"]>;
264
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
265
+ next: z.ZodOptional<z.ZodObject<{
266
+ type: z.ZodLiteral<"screen">;
267
+ name: z.ZodString;
268
+ }, "strip", z.ZodTypeAny, {
269
+ type: "screen";
270
+ name: string;
271
+ }, {
272
+ type: "screen";
273
+ name: string;
274
+ }>>;
275
+ url: z.ZodOptional<z.ZodString>;
276
+ }, "strip", z.ZodTypeAny, {
277
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
278
+ payload?: Record<string, any> | undefined;
279
+ next?: {
280
+ type: "screen";
281
+ name: string;
282
+ } | undefined;
283
+ url?: string | undefined;
284
+ }, {
285
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
286
+ payload?: Record<string, any> | undefined;
287
+ next?: {
288
+ type: "screen";
289
+ name: string;
290
+ } | undefined;
291
+ url?: string | undefined;
292
+ }>>;
293
+ }, "strip", z.ZodTypeAny, {
294
+ type: "Footer";
295
+ label: string;
296
+ enabled?: boolean | undefined;
297
+ "on-click-action"?: {
298
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
299
+ payload?: Record<string, any> | undefined;
300
+ next?: {
301
+ type: "screen";
302
+ name: string;
303
+ } | undefined;
304
+ url?: string | undefined;
305
+ } | undefined;
306
+ "left-caption"?: string | undefined;
307
+ "center-caption"?: string | undefined;
308
+ "right-caption"?: string | undefined;
309
+ }, {
310
+ type: "Footer";
311
+ label: string;
312
+ enabled?: boolean | undefined;
313
+ "on-click-action"?: {
314
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
315
+ payload?: Record<string, any> | undefined;
316
+ next?: {
317
+ type: "screen";
318
+ name: string;
319
+ } | undefined;
320
+ url?: string | undefined;
321
+ } | undefined;
322
+ "left-caption"?: string | undefined;
323
+ "center-caption"?: string | undefined;
324
+ "right-caption"?: string | undefined;
325
+ }>;
326
+ readonly If: z.ZodObject<{
327
+ type: z.ZodLiteral<"If">;
328
+ condition: z.ZodString;
329
+ Then: z.ZodArray<z.ZodAny, "many">;
330
+ Else: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ type: "If";
333
+ condition: string;
334
+ Then: any[];
335
+ Else?: any[] | undefined;
336
+ }, {
337
+ type: "If";
338
+ condition: string;
339
+ Then: any[];
340
+ Else?: any[] | undefined;
341
+ }>;
342
+ readonly Switch: z.ZodObject<{
343
+ type: z.ZodLiteral<"Switch">;
344
+ value: z.ZodString;
345
+ Cases: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodAny, "many">>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ value: string;
348
+ type: "Switch";
349
+ Cases: Record<string, any[]>;
350
+ }, {
351
+ value: string;
352
+ type: "Switch";
353
+ Cases: Record<string, any[]>;
354
+ }>;
355
+ readonly Form: z.ZodObject<{
356
+ type: z.ZodLiteral<"Form">;
357
+ name: z.ZodOptional<z.ZodString>;
358
+ children: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
359
+ "error-messages": z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
360
+ "init-values": z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
361
+ }, "strip", z.ZodTypeAny, {
362
+ type: "Form";
363
+ name?: string | undefined;
364
+ children?: any[] | undefined;
365
+ "error-messages"?: Record<string, any> | undefined;
366
+ "init-values"?: Record<string, any> | undefined;
367
+ }, {
368
+ type: "Form";
369
+ name?: string | undefined;
370
+ children?: any[] | undefined;
371
+ "error-messages"?: Record<string, any> | undefined;
372
+ "init-values"?: Record<string, any> | undefined;
373
+ }>;
374
+ readonly TextInput: z.ZodObject<{
375
+ name: z.ZodString;
376
+ required: z.ZodOptional<z.ZodBoolean>;
377
+ enabled: z.ZodOptional<z.ZodBoolean>;
378
+ "error-message": z.ZodOptional<z.ZodString>;
379
+ "init-value": z.ZodOptional<z.ZodString>;
380
+ } & {
381
+ visible: z.ZodOptional<z.ZodBoolean>;
382
+ } & {
383
+ type: z.ZodLiteral<"TextInput">;
384
+ label: z.ZodString;
385
+ "label-variant": z.ZodOptional<z.ZodEnum<["large"]>>;
386
+ "input-type": z.ZodOptional<z.ZodEnum<["text", "number", "email", "password", "passcode", "phone"]>>;
387
+ pattern: z.ZodOptional<z.ZodString>;
388
+ "helper-text": z.ZodOptional<z.ZodString>;
389
+ "min-chars": z.ZodOptional<z.ZodNumber>;
390
+ "max-chars": z.ZodOptional<z.ZodNumber>;
391
+ }, "strip", z.ZodTypeAny, {
392
+ type: "TextInput";
393
+ name: string;
394
+ label: string;
395
+ required?: boolean | undefined;
396
+ enabled?: boolean | undefined;
397
+ "error-message"?: string | undefined;
398
+ "init-value"?: string | undefined;
399
+ visible?: boolean | undefined;
400
+ "label-variant"?: "large" | undefined;
401
+ "input-type"?: "number" | "text" | "email" | "password" | "passcode" | "phone" | undefined;
402
+ pattern?: string | undefined;
403
+ "helper-text"?: string | undefined;
404
+ "min-chars"?: number | undefined;
405
+ "max-chars"?: number | undefined;
406
+ }, {
407
+ type: "TextInput";
408
+ name: string;
409
+ label: string;
410
+ required?: boolean | undefined;
411
+ enabled?: boolean | undefined;
412
+ "error-message"?: string | undefined;
413
+ "init-value"?: string | undefined;
414
+ visible?: boolean | undefined;
415
+ "label-variant"?: "large" | undefined;
416
+ "input-type"?: "number" | "text" | "email" | "password" | "passcode" | "phone" | undefined;
417
+ pattern?: string | undefined;
418
+ "helper-text"?: string | undefined;
419
+ "min-chars"?: number | undefined;
420
+ "max-chars"?: number | undefined;
421
+ }>;
422
+ readonly TextArea: z.ZodObject<{
423
+ name: z.ZodString;
424
+ required: z.ZodOptional<z.ZodBoolean>;
425
+ enabled: z.ZodOptional<z.ZodBoolean>;
426
+ "error-message": z.ZodOptional<z.ZodString>;
427
+ "init-value": z.ZodOptional<z.ZodString>;
428
+ } & {
429
+ visible: z.ZodOptional<z.ZodBoolean>;
430
+ } & {
431
+ type: z.ZodLiteral<"TextArea">;
432
+ label: z.ZodString;
433
+ "label-variant": z.ZodOptional<z.ZodEnum<["large"]>>;
434
+ "max-length": z.ZodOptional<z.ZodNumber>;
435
+ "helper-text": z.ZodOptional<z.ZodString>;
436
+ }, "strip", z.ZodTypeAny, {
437
+ type: "TextArea";
438
+ name: string;
439
+ label: string;
440
+ required?: boolean | undefined;
441
+ enabled?: boolean | undefined;
442
+ "error-message"?: string | undefined;
443
+ "init-value"?: string | undefined;
444
+ visible?: boolean | undefined;
445
+ "label-variant"?: "large" | undefined;
446
+ "helper-text"?: string | undefined;
447
+ "max-length"?: number | undefined;
448
+ }, {
449
+ type: "TextArea";
450
+ name: string;
451
+ label: string;
452
+ required?: boolean | undefined;
453
+ enabled?: boolean | undefined;
454
+ "error-message"?: string | undefined;
455
+ "init-value"?: string | undefined;
456
+ visible?: boolean | undefined;
457
+ "label-variant"?: "large" | undefined;
458
+ "helper-text"?: string | undefined;
459
+ "max-length"?: number | undefined;
460
+ }>;
461
+ readonly CheckboxGroup: z.ZodObject<{
462
+ name: z.ZodString;
463
+ required: z.ZodOptional<z.ZodBoolean>;
464
+ enabled: z.ZodOptional<z.ZodBoolean>;
465
+ "error-message": z.ZodOptional<z.ZodString>;
466
+ "init-value": z.ZodOptional<z.ZodString>;
467
+ } & {
468
+ visible: z.ZodOptional<z.ZodBoolean>;
469
+ } & {
470
+ label: z.ZodString;
471
+ description: z.ZodOptional<z.ZodString>;
472
+ "data-source": z.ZodArray<z.ZodObject<{
473
+ id: z.ZodString;
474
+ title: z.ZodString;
475
+ description: z.ZodOptional<z.ZodString>;
476
+ metadata: z.ZodOptional<z.ZodString>;
477
+ enabled: z.ZodOptional<z.ZodBoolean>;
478
+ image: z.ZodOptional<z.ZodString>;
479
+ "alt-text": z.ZodOptional<z.ZodString>;
480
+ color: z.ZodOptional<z.ZodString>;
481
+ "on-click-action": z.ZodOptional<z.ZodObject<{
482
+ name: z.ZodEnum<["data_exchange", "navigate", "complete", "update_data", "open_url"]>;
483
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
484
+ next: z.ZodOptional<z.ZodObject<{
485
+ type: z.ZodLiteral<"screen">;
486
+ name: z.ZodString;
487
+ }, "strip", z.ZodTypeAny, {
488
+ type: "screen";
489
+ name: string;
490
+ }, {
491
+ type: "screen";
492
+ name: string;
493
+ }>>;
494
+ url: z.ZodOptional<z.ZodString>;
495
+ }, "strip", z.ZodTypeAny, {
496
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
497
+ payload?: Record<string, any> | undefined;
498
+ next?: {
499
+ type: "screen";
500
+ name: string;
501
+ } | undefined;
502
+ url?: string | undefined;
503
+ }, {
504
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
505
+ payload?: Record<string, any> | undefined;
506
+ next?: {
507
+ type: "screen";
508
+ name: string;
509
+ } | undefined;
510
+ url?: string | undefined;
511
+ }>>;
512
+ "on-select-action": z.ZodOptional<z.ZodObject<{
513
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
514
+ next: z.ZodOptional<z.ZodObject<{
515
+ type: z.ZodLiteral<"screen">;
516
+ name: z.ZodString;
517
+ }, "strip", z.ZodTypeAny, {
518
+ type: "screen";
519
+ name: string;
520
+ }, {
521
+ type: "screen";
522
+ name: string;
523
+ }>>;
524
+ url: z.ZodOptional<z.ZodString>;
525
+ } & {
526
+ name: z.ZodLiteral<"update_data">;
527
+ }, "strip", z.ZodTypeAny, {
528
+ name: "update_data";
529
+ payload?: Record<string, any> | undefined;
530
+ next?: {
531
+ type: "screen";
532
+ name: string;
533
+ } | undefined;
534
+ url?: string | undefined;
535
+ }, {
536
+ name: "update_data";
537
+ payload?: Record<string, any> | undefined;
538
+ next?: {
539
+ type: "screen";
540
+ name: string;
541
+ } | undefined;
542
+ url?: string | undefined;
543
+ }>>;
544
+ "on-unselect-action": z.ZodOptional<z.ZodObject<{
545
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
546
+ next: z.ZodOptional<z.ZodObject<{
547
+ type: z.ZodLiteral<"screen">;
548
+ name: z.ZodString;
549
+ }, "strip", z.ZodTypeAny, {
550
+ type: "screen";
551
+ name: string;
552
+ }, {
553
+ type: "screen";
554
+ name: string;
555
+ }>>;
556
+ url: z.ZodOptional<z.ZodString>;
557
+ } & {
558
+ name: z.ZodLiteral<"update_data">;
559
+ }, "strip", z.ZodTypeAny, {
560
+ name: "update_data";
561
+ payload?: Record<string, any> | undefined;
562
+ next?: {
563
+ type: "screen";
564
+ name: string;
565
+ } | undefined;
566
+ url?: string | undefined;
567
+ }, {
568
+ name: "update_data";
569
+ payload?: Record<string, any> | undefined;
570
+ next?: {
571
+ type: "screen";
572
+ name: string;
573
+ } | undefined;
574
+ url?: string | undefined;
575
+ }>>;
576
+ }, "strip", z.ZodTypeAny, {
577
+ id: string;
578
+ title: string;
579
+ enabled?: boolean | undefined;
580
+ description?: string | undefined;
581
+ metadata?: string | undefined;
582
+ image?: string | undefined;
583
+ "alt-text"?: string | undefined;
584
+ color?: string | undefined;
585
+ "on-click-action"?: {
586
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
587
+ payload?: Record<string, any> | undefined;
588
+ next?: {
589
+ type: "screen";
590
+ name: string;
591
+ } | undefined;
592
+ url?: string | undefined;
593
+ } | undefined;
594
+ "on-select-action"?: {
595
+ name: "update_data";
596
+ payload?: Record<string, any> | undefined;
597
+ next?: {
598
+ type: "screen";
599
+ name: string;
600
+ } | undefined;
601
+ url?: string | undefined;
602
+ } | undefined;
603
+ "on-unselect-action"?: {
604
+ name: "update_data";
605
+ payload?: Record<string, any> | undefined;
606
+ next?: {
607
+ type: "screen";
608
+ name: string;
609
+ } | undefined;
610
+ url?: string | undefined;
611
+ } | undefined;
612
+ }, {
613
+ id: string;
614
+ title: string;
615
+ enabled?: boolean | undefined;
616
+ description?: string | undefined;
617
+ metadata?: string | undefined;
618
+ image?: string | undefined;
619
+ "alt-text"?: string | undefined;
620
+ color?: string | undefined;
621
+ "on-click-action"?: {
622
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
623
+ payload?: Record<string, any> | undefined;
624
+ next?: {
625
+ type: "screen";
626
+ name: string;
627
+ } | undefined;
628
+ url?: string | undefined;
629
+ } | undefined;
630
+ "on-select-action"?: {
631
+ name: "update_data";
632
+ payload?: Record<string, any> | undefined;
633
+ next?: {
634
+ type: "screen";
635
+ name: string;
636
+ } | undefined;
637
+ url?: string | undefined;
638
+ } | undefined;
639
+ "on-unselect-action"?: {
640
+ name: "update_data";
641
+ payload?: Record<string, any> | undefined;
642
+ next?: {
643
+ type: "screen";
644
+ name: string;
645
+ } | undefined;
646
+ url?: string | undefined;
647
+ } | undefined;
648
+ }>, "many">;
649
+ "media-size": z.ZodOptional<z.ZodEnum<["regular", "large"]>>;
650
+ "on-click-action": z.ZodOptional<z.ZodObject<{
651
+ name: z.ZodEnum<["data_exchange", "navigate", "complete", "update_data", "open_url"]>;
652
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
653
+ next: z.ZodOptional<z.ZodObject<{
654
+ type: z.ZodLiteral<"screen">;
655
+ name: z.ZodString;
656
+ }, "strip", z.ZodTypeAny, {
657
+ type: "screen";
658
+ name: string;
659
+ }, {
660
+ type: "screen";
661
+ name: string;
662
+ }>>;
663
+ url: z.ZodOptional<z.ZodString>;
664
+ }, "strip", z.ZodTypeAny, {
665
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
666
+ payload?: Record<string, any> | undefined;
667
+ next?: {
668
+ type: "screen";
669
+ name: string;
670
+ } | undefined;
671
+ url?: string | undefined;
672
+ }, {
673
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
674
+ payload?: Record<string, any> | undefined;
675
+ next?: {
676
+ type: "screen";
677
+ name: string;
678
+ } | undefined;
679
+ url?: string | undefined;
680
+ }>>;
681
+ "on-select-action": z.ZodOptional<z.ZodObject<{
682
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
683
+ next: z.ZodOptional<z.ZodObject<{
684
+ type: z.ZodLiteral<"screen">;
685
+ name: z.ZodString;
686
+ }, "strip", z.ZodTypeAny, {
687
+ type: "screen";
688
+ name: string;
689
+ }, {
690
+ type: "screen";
691
+ name: string;
692
+ }>>;
693
+ url: z.ZodOptional<z.ZodString>;
694
+ } & {
695
+ name: z.ZodUnion<[z.ZodLiteral<"update_data">, z.ZodLiteral<"data_exchange">]>;
696
+ }, "strip", z.ZodTypeAny, {
697
+ name: "data_exchange" | "update_data";
698
+ payload?: Record<string, any> | undefined;
699
+ next?: {
700
+ type: "screen";
701
+ name: string;
702
+ } | undefined;
703
+ url?: string | undefined;
704
+ }, {
705
+ name: "data_exchange" | "update_data";
706
+ payload?: Record<string, any> | undefined;
707
+ next?: {
708
+ type: "screen";
709
+ name: string;
710
+ } | undefined;
711
+ url?: string | undefined;
712
+ }>>;
713
+ "on-unselect-action": z.ZodOptional<z.ZodObject<{
714
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
715
+ next: z.ZodOptional<z.ZodObject<{
716
+ type: z.ZodLiteral<"screen">;
717
+ name: z.ZodString;
718
+ }, "strip", z.ZodTypeAny, {
719
+ type: "screen";
720
+ name: string;
721
+ }, {
722
+ type: "screen";
723
+ name: string;
724
+ }>>;
725
+ url: z.ZodOptional<z.ZodString>;
726
+ } & {
727
+ name: z.ZodUnion<[z.ZodLiteral<"update_data">, z.ZodLiteral<"data_exchange">]>;
728
+ }, "strip", z.ZodTypeAny, {
729
+ name: "data_exchange" | "update_data";
730
+ payload?: Record<string, any> | undefined;
731
+ next?: {
732
+ type: "screen";
733
+ name: string;
734
+ } | undefined;
735
+ url?: string | undefined;
736
+ }, {
737
+ name: "data_exchange" | "update_data";
738
+ payload?: Record<string, any> | undefined;
739
+ next?: {
740
+ type: "screen";
741
+ name: string;
742
+ } | undefined;
743
+ url?: string | undefined;
744
+ }>>;
745
+ } & {
746
+ type: z.ZodLiteral<"CheckboxGroup">;
747
+ "min-selected-items": z.ZodOptional<z.ZodNumber>;
748
+ "max-selected-items": z.ZodOptional<z.ZodNumber>;
749
+ }, "strip", z.ZodTypeAny, {
750
+ type: "CheckboxGroup";
751
+ name: string;
752
+ label: string;
753
+ "data-source": {
754
+ id: string;
755
+ title: string;
756
+ enabled?: boolean | undefined;
757
+ description?: string | undefined;
758
+ metadata?: string | undefined;
759
+ image?: string | undefined;
760
+ "alt-text"?: string | undefined;
761
+ color?: string | undefined;
762
+ "on-click-action"?: {
763
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
764
+ payload?: Record<string, any> | undefined;
765
+ next?: {
766
+ type: "screen";
767
+ name: string;
768
+ } | undefined;
769
+ url?: string | undefined;
770
+ } | undefined;
771
+ "on-select-action"?: {
772
+ name: "update_data";
773
+ payload?: Record<string, any> | undefined;
774
+ next?: {
775
+ type: "screen";
776
+ name: string;
777
+ } | undefined;
778
+ url?: string | undefined;
779
+ } | undefined;
780
+ "on-unselect-action"?: {
781
+ name: "update_data";
782
+ payload?: Record<string, any> | undefined;
783
+ next?: {
784
+ type: "screen";
785
+ name: string;
786
+ } | undefined;
787
+ url?: string | undefined;
788
+ } | undefined;
789
+ }[];
790
+ required?: boolean | undefined;
791
+ enabled?: boolean | undefined;
792
+ "error-message"?: string | undefined;
793
+ "init-value"?: string | undefined;
794
+ visible?: boolean | undefined;
795
+ description?: string | undefined;
796
+ "on-click-action"?: {
797
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
798
+ payload?: Record<string, any> | undefined;
799
+ next?: {
800
+ type: "screen";
801
+ name: string;
802
+ } | undefined;
803
+ url?: string | undefined;
804
+ } | undefined;
805
+ "on-select-action"?: {
806
+ name: "data_exchange" | "update_data";
807
+ payload?: Record<string, any> | undefined;
808
+ next?: {
809
+ type: "screen";
810
+ name: string;
811
+ } | undefined;
812
+ url?: string | undefined;
813
+ } | undefined;
814
+ "on-unselect-action"?: {
815
+ name: "data_exchange" | "update_data";
816
+ payload?: Record<string, any> | undefined;
817
+ next?: {
818
+ type: "screen";
819
+ name: string;
820
+ } | undefined;
821
+ url?: string | undefined;
822
+ } | undefined;
823
+ "media-size"?: "large" | "regular" | undefined;
824
+ "min-selected-items"?: number | undefined;
825
+ "max-selected-items"?: number | undefined;
826
+ }, {
827
+ type: "CheckboxGroup";
828
+ name: string;
829
+ label: string;
830
+ "data-source": {
831
+ id: string;
832
+ title: string;
833
+ enabled?: boolean | undefined;
834
+ description?: string | undefined;
835
+ metadata?: string | undefined;
836
+ image?: string | undefined;
837
+ "alt-text"?: string | undefined;
838
+ color?: string | undefined;
839
+ "on-click-action"?: {
840
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
841
+ payload?: Record<string, any> | undefined;
842
+ next?: {
843
+ type: "screen";
844
+ name: string;
845
+ } | undefined;
846
+ url?: string | undefined;
847
+ } | undefined;
848
+ "on-select-action"?: {
849
+ name: "update_data";
850
+ payload?: Record<string, any> | undefined;
851
+ next?: {
852
+ type: "screen";
853
+ name: string;
854
+ } | undefined;
855
+ url?: string | undefined;
856
+ } | undefined;
857
+ "on-unselect-action"?: {
858
+ name: "update_data";
859
+ payload?: Record<string, any> | undefined;
860
+ next?: {
861
+ type: "screen";
862
+ name: string;
863
+ } | undefined;
864
+ url?: string | undefined;
865
+ } | undefined;
866
+ }[];
867
+ required?: boolean | undefined;
868
+ enabled?: boolean | undefined;
869
+ "error-message"?: string | undefined;
870
+ "init-value"?: string | undefined;
871
+ visible?: boolean | undefined;
872
+ description?: string | undefined;
873
+ "on-click-action"?: {
874
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
875
+ payload?: Record<string, any> | undefined;
876
+ next?: {
877
+ type: "screen";
878
+ name: string;
879
+ } | undefined;
880
+ url?: string | undefined;
881
+ } | undefined;
882
+ "on-select-action"?: {
883
+ name: "data_exchange" | "update_data";
884
+ payload?: Record<string, any> | undefined;
885
+ next?: {
886
+ type: "screen";
887
+ name: string;
888
+ } | undefined;
889
+ url?: string | undefined;
890
+ } | undefined;
891
+ "on-unselect-action"?: {
892
+ name: "data_exchange" | "update_data";
893
+ payload?: Record<string, any> | undefined;
894
+ next?: {
895
+ type: "screen";
896
+ name: string;
897
+ } | undefined;
898
+ url?: string | undefined;
899
+ } | undefined;
900
+ "media-size"?: "large" | "regular" | undefined;
901
+ "min-selected-items"?: number | undefined;
902
+ "max-selected-items"?: number | undefined;
903
+ }>;
904
+ readonly RadioButtonsGroup: z.ZodObject<{
905
+ name: z.ZodString;
906
+ required: z.ZodOptional<z.ZodBoolean>;
907
+ enabled: z.ZodOptional<z.ZodBoolean>;
908
+ "error-message": z.ZodOptional<z.ZodString>;
909
+ "init-value": z.ZodOptional<z.ZodString>;
910
+ } & {
911
+ visible: z.ZodOptional<z.ZodBoolean>;
912
+ } & {
913
+ label: z.ZodString;
914
+ description: z.ZodOptional<z.ZodString>;
915
+ "data-source": z.ZodArray<z.ZodObject<{
916
+ id: z.ZodString;
917
+ title: z.ZodString;
918
+ description: z.ZodOptional<z.ZodString>;
919
+ metadata: z.ZodOptional<z.ZodString>;
920
+ enabled: z.ZodOptional<z.ZodBoolean>;
921
+ image: z.ZodOptional<z.ZodString>;
922
+ "alt-text": z.ZodOptional<z.ZodString>;
923
+ color: z.ZodOptional<z.ZodString>;
924
+ "on-click-action": z.ZodOptional<z.ZodObject<{
925
+ name: z.ZodEnum<["data_exchange", "navigate", "complete", "update_data", "open_url"]>;
926
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
927
+ next: z.ZodOptional<z.ZodObject<{
928
+ type: z.ZodLiteral<"screen">;
929
+ name: z.ZodString;
930
+ }, "strip", z.ZodTypeAny, {
931
+ type: "screen";
932
+ name: string;
933
+ }, {
934
+ type: "screen";
935
+ name: string;
936
+ }>>;
937
+ url: z.ZodOptional<z.ZodString>;
938
+ }, "strip", z.ZodTypeAny, {
939
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
940
+ payload?: Record<string, any> | undefined;
941
+ next?: {
942
+ type: "screen";
943
+ name: string;
944
+ } | undefined;
945
+ url?: string | undefined;
946
+ }, {
947
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
948
+ payload?: Record<string, any> | undefined;
949
+ next?: {
950
+ type: "screen";
951
+ name: string;
952
+ } | undefined;
953
+ url?: string | undefined;
954
+ }>>;
955
+ "on-select-action": z.ZodOptional<z.ZodObject<{
956
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
957
+ next: z.ZodOptional<z.ZodObject<{
958
+ type: z.ZodLiteral<"screen">;
959
+ name: z.ZodString;
960
+ }, "strip", z.ZodTypeAny, {
961
+ type: "screen";
962
+ name: string;
963
+ }, {
964
+ type: "screen";
965
+ name: string;
966
+ }>>;
967
+ url: z.ZodOptional<z.ZodString>;
968
+ } & {
969
+ name: z.ZodLiteral<"update_data">;
970
+ }, "strip", z.ZodTypeAny, {
971
+ name: "update_data";
972
+ payload?: Record<string, any> | undefined;
973
+ next?: {
974
+ type: "screen";
975
+ name: string;
976
+ } | undefined;
977
+ url?: string | undefined;
978
+ }, {
979
+ name: "update_data";
980
+ payload?: Record<string, any> | undefined;
981
+ next?: {
982
+ type: "screen";
983
+ name: string;
984
+ } | undefined;
985
+ url?: string | undefined;
986
+ }>>;
987
+ "on-unselect-action": z.ZodOptional<z.ZodObject<{
988
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
989
+ next: z.ZodOptional<z.ZodObject<{
990
+ type: z.ZodLiteral<"screen">;
991
+ name: z.ZodString;
992
+ }, "strip", z.ZodTypeAny, {
993
+ type: "screen";
994
+ name: string;
995
+ }, {
996
+ type: "screen";
997
+ name: string;
998
+ }>>;
999
+ url: z.ZodOptional<z.ZodString>;
1000
+ } & {
1001
+ name: z.ZodLiteral<"update_data">;
1002
+ }, "strip", z.ZodTypeAny, {
1003
+ name: "update_data";
1004
+ payload?: Record<string, any> | undefined;
1005
+ next?: {
1006
+ type: "screen";
1007
+ name: string;
1008
+ } | undefined;
1009
+ url?: string | undefined;
1010
+ }, {
1011
+ name: "update_data";
1012
+ payload?: Record<string, any> | undefined;
1013
+ next?: {
1014
+ type: "screen";
1015
+ name: string;
1016
+ } | undefined;
1017
+ url?: string | undefined;
1018
+ }>>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ id: string;
1021
+ title: string;
1022
+ enabled?: boolean | undefined;
1023
+ description?: string | undefined;
1024
+ metadata?: string | undefined;
1025
+ image?: string | undefined;
1026
+ "alt-text"?: string | undefined;
1027
+ color?: string | undefined;
1028
+ "on-click-action"?: {
1029
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1030
+ payload?: Record<string, any> | undefined;
1031
+ next?: {
1032
+ type: "screen";
1033
+ name: string;
1034
+ } | undefined;
1035
+ url?: string | undefined;
1036
+ } | undefined;
1037
+ "on-select-action"?: {
1038
+ name: "update_data";
1039
+ payload?: Record<string, any> | undefined;
1040
+ next?: {
1041
+ type: "screen";
1042
+ name: string;
1043
+ } | undefined;
1044
+ url?: string | undefined;
1045
+ } | undefined;
1046
+ "on-unselect-action"?: {
1047
+ name: "update_data";
1048
+ payload?: Record<string, any> | undefined;
1049
+ next?: {
1050
+ type: "screen";
1051
+ name: string;
1052
+ } | undefined;
1053
+ url?: string | undefined;
1054
+ } | undefined;
1055
+ }, {
1056
+ id: string;
1057
+ title: string;
1058
+ enabled?: boolean | undefined;
1059
+ description?: string | undefined;
1060
+ metadata?: string | undefined;
1061
+ image?: string | undefined;
1062
+ "alt-text"?: string | undefined;
1063
+ color?: string | undefined;
1064
+ "on-click-action"?: {
1065
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1066
+ payload?: Record<string, any> | undefined;
1067
+ next?: {
1068
+ type: "screen";
1069
+ name: string;
1070
+ } | undefined;
1071
+ url?: string | undefined;
1072
+ } | undefined;
1073
+ "on-select-action"?: {
1074
+ name: "update_data";
1075
+ payload?: Record<string, any> | undefined;
1076
+ next?: {
1077
+ type: "screen";
1078
+ name: string;
1079
+ } | undefined;
1080
+ url?: string | undefined;
1081
+ } | undefined;
1082
+ "on-unselect-action"?: {
1083
+ name: "update_data";
1084
+ payload?: Record<string, any> | undefined;
1085
+ next?: {
1086
+ type: "screen";
1087
+ name: string;
1088
+ } | undefined;
1089
+ url?: string | undefined;
1090
+ } | undefined;
1091
+ }>, "many">;
1092
+ "media-size": z.ZodOptional<z.ZodEnum<["regular", "large"]>>;
1093
+ "on-click-action": z.ZodOptional<z.ZodObject<{
1094
+ name: z.ZodEnum<["data_exchange", "navigate", "complete", "update_data", "open_url"]>;
1095
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1096
+ next: z.ZodOptional<z.ZodObject<{
1097
+ type: z.ZodLiteral<"screen">;
1098
+ name: z.ZodString;
1099
+ }, "strip", z.ZodTypeAny, {
1100
+ type: "screen";
1101
+ name: string;
1102
+ }, {
1103
+ type: "screen";
1104
+ name: string;
1105
+ }>>;
1106
+ url: z.ZodOptional<z.ZodString>;
1107
+ }, "strip", z.ZodTypeAny, {
1108
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1109
+ payload?: Record<string, any> | undefined;
1110
+ next?: {
1111
+ type: "screen";
1112
+ name: string;
1113
+ } | undefined;
1114
+ url?: string | undefined;
1115
+ }, {
1116
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1117
+ payload?: Record<string, any> | undefined;
1118
+ next?: {
1119
+ type: "screen";
1120
+ name: string;
1121
+ } | undefined;
1122
+ url?: string | undefined;
1123
+ }>>;
1124
+ "on-select-action": z.ZodOptional<z.ZodObject<{
1125
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1126
+ next: z.ZodOptional<z.ZodObject<{
1127
+ type: z.ZodLiteral<"screen">;
1128
+ name: z.ZodString;
1129
+ }, "strip", z.ZodTypeAny, {
1130
+ type: "screen";
1131
+ name: string;
1132
+ }, {
1133
+ type: "screen";
1134
+ name: string;
1135
+ }>>;
1136
+ url: z.ZodOptional<z.ZodString>;
1137
+ } & {
1138
+ name: z.ZodUnion<[z.ZodLiteral<"update_data">, z.ZodLiteral<"data_exchange">]>;
1139
+ }, "strip", z.ZodTypeAny, {
1140
+ name: "data_exchange" | "update_data";
1141
+ payload?: Record<string, any> | undefined;
1142
+ next?: {
1143
+ type: "screen";
1144
+ name: string;
1145
+ } | undefined;
1146
+ url?: string | undefined;
1147
+ }, {
1148
+ name: "data_exchange" | "update_data";
1149
+ payload?: Record<string, any> | undefined;
1150
+ next?: {
1151
+ type: "screen";
1152
+ name: string;
1153
+ } | undefined;
1154
+ url?: string | undefined;
1155
+ }>>;
1156
+ "on-unselect-action": z.ZodOptional<z.ZodObject<{
1157
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1158
+ next: z.ZodOptional<z.ZodObject<{
1159
+ type: z.ZodLiteral<"screen">;
1160
+ name: z.ZodString;
1161
+ }, "strip", z.ZodTypeAny, {
1162
+ type: "screen";
1163
+ name: string;
1164
+ }, {
1165
+ type: "screen";
1166
+ name: string;
1167
+ }>>;
1168
+ url: z.ZodOptional<z.ZodString>;
1169
+ } & {
1170
+ name: z.ZodUnion<[z.ZodLiteral<"update_data">, z.ZodLiteral<"data_exchange">]>;
1171
+ }, "strip", z.ZodTypeAny, {
1172
+ name: "data_exchange" | "update_data";
1173
+ payload?: Record<string, any> | undefined;
1174
+ next?: {
1175
+ type: "screen";
1176
+ name: string;
1177
+ } | undefined;
1178
+ url?: string | undefined;
1179
+ }, {
1180
+ name: "data_exchange" | "update_data";
1181
+ payload?: Record<string, any> | undefined;
1182
+ next?: {
1183
+ type: "screen";
1184
+ name: string;
1185
+ } | undefined;
1186
+ url?: string | undefined;
1187
+ }>>;
1188
+ } & {
1189
+ type: z.ZodLiteral<"RadioButtonsGroup">;
1190
+ }, "strip", z.ZodTypeAny, {
1191
+ type: "RadioButtonsGroup";
1192
+ name: string;
1193
+ label: string;
1194
+ "data-source": {
1195
+ id: string;
1196
+ title: string;
1197
+ enabled?: boolean | undefined;
1198
+ description?: string | undefined;
1199
+ metadata?: string | undefined;
1200
+ image?: string | undefined;
1201
+ "alt-text"?: string | undefined;
1202
+ color?: string | undefined;
1203
+ "on-click-action"?: {
1204
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1205
+ payload?: Record<string, any> | undefined;
1206
+ next?: {
1207
+ type: "screen";
1208
+ name: string;
1209
+ } | undefined;
1210
+ url?: string | undefined;
1211
+ } | undefined;
1212
+ "on-select-action"?: {
1213
+ name: "update_data";
1214
+ payload?: Record<string, any> | undefined;
1215
+ next?: {
1216
+ type: "screen";
1217
+ name: string;
1218
+ } | undefined;
1219
+ url?: string | undefined;
1220
+ } | undefined;
1221
+ "on-unselect-action"?: {
1222
+ name: "update_data";
1223
+ payload?: Record<string, any> | undefined;
1224
+ next?: {
1225
+ type: "screen";
1226
+ name: string;
1227
+ } | undefined;
1228
+ url?: string | undefined;
1229
+ } | undefined;
1230
+ }[];
1231
+ required?: boolean | undefined;
1232
+ enabled?: boolean | undefined;
1233
+ "error-message"?: string | undefined;
1234
+ "init-value"?: string | undefined;
1235
+ visible?: boolean | undefined;
1236
+ description?: string | undefined;
1237
+ "on-click-action"?: {
1238
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1239
+ payload?: Record<string, any> | undefined;
1240
+ next?: {
1241
+ type: "screen";
1242
+ name: string;
1243
+ } | undefined;
1244
+ url?: string | undefined;
1245
+ } | undefined;
1246
+ "on-select-action"?: {
1247
+ name: "data_exchange" | "update_data";
1248
+ payload?: Record<string, any> | undefined;
1249
+ next?: {
1250
+ type: "screen";
1251
+ name: string;
1252
+ } | undefined;
1253
+ url?: string | undefined;
1254
+ } | undefined;
1255
+ "on-unselect-action"?: {
1256
+ name: "data_exchange" | "update_data";
1257
+ payload?: Record<string, any> | undefined;
1258
+ next?: {
1259
+ type: "screen";
1260
+ name: string;
1261
+ } | undefined;
1262
+ url?: string | undefined;
1263
+ } | undefined;
1264
+ "media-size"?: "large" | "regular" | undefined;
1265
+ }, {
1266
+ type: "RadioButtonsGroup";
1267
+ name: string;
1268
+ label: string;
1269
+ "data-source": {
1270
+ id: string;
1271
+ title: string;
1272
+ enabled?: boolean | undefined;
1273
+ description?: string | undefined;
1274
+ metadata?: string | undefined;
1275
+ image?: string | undefined;
1276
+ "alt-text"?: string | undefined;
1277
+ color?: string | undefined;
1278
+ "on-click-action"?: {
1279
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1280
+ payload?: Record<string, any> | undefined;
1281
+ next?: {
1282
+ type: "screen";
1283
+ name: string;
1284
+ } | undefined;
1285
+ url?: string | undefined;
1286
+ } | undefined;
1287
+ "on-select-action"?: {
1288
+ name: "update_data";
1289
+ payload?: Record<string, any> | undefined;
1290
+ next?: {
1291
+ type: "screen";
1292
+ name: string;
1293
+ } | undefined;
1294
+ url?: string | undefined;
1295
+ } | undefined;
1296
+ "on-unselect-action"?: {
1297
+ name: "update_data";
1298
+ payload?: Record<string, any> | undefined;
1299
+ next?: {
1300
+ type: "screen";
1301
+ name: string;
1302
+ } | undefined;
1303
+ url?: string | undefined;
1304
+ } | undefined;
1305
+ }[];
1306
+ required?: boolean | undefined;
1307
+ enabled?: boolean | undefined;
1308
+ "error-message"?: string | undefined;
1309
+ "init-value"?: string | undefined;
1310
+ visible?: boolean | undefined;
1311
+ description?: string | undefined;
1312
+ "on-click-action"?: {
1313
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1314
+ payload?: Record<string, any> | undefined;
1315
+ next?: {
1316
+ type: "screen";
1317
+ name: string;
1318
+ } | undefined;
1319
+ url?: string | undefined;
1320
+ } | undefined;
1321
+ "on-select-action"?: {
1322
+ name: "data_exchange" | "update_data";
1323
+ payload?: Record<string, any> | undefined;
1324
+ next?: {
1325
+ type: "screen";
1326
+ name: string;
1327
+ } | undefined;
1328
+ url?: string | undefined;
1329
+ } | undefined;
1330
+ "on-unselect-action"?: {
1331
+ name: "data_exchange" | "update_data";
1332
+ payload?: Record<string, any> | undefined;
1333
+ next?: {
1334
+ type: "screen";
1335
+ name: string;
1336
+ } | undefined;
1337
+ url?: string | undefined;
1338
+ } | undefined;
1339
+ "media-size"?: "large" | "regular" | undefined;
1340
+ }>;
1341
+ readonly Dropdown: z.ZodObject<{
1342
+ name: z.ZodString;
1343
+ required: z.ZodOptional<z.ZodBoolean>;
1344
+ enabled: z.ZodOptional<z.ZodBoolean>;
1345
+ "error-message": z.ZodOptional<z.ZodString>;
1346
+ "init-value": z.ZodOptional<z.ZodString>;
1347
+ } & {
1348
+ visible: z.ZodOptional<z.ZodBoolean>;
1349
+ } & {
1350
+ type: z.ZodLiteral<"Dropdown">;
1351
+ label: z.ZodString;
1352
+ "data-source": z.ZodArray<z.ZodObject<{
1353
+ id: z.ZodString;
1354
+ title: z.ZodString;
1355
+ description: z.ZodOptional<z.ZodString>;
1356
+ metadata: z.ZodOptional<z.ZodString>;
1357
+ enabled: z.ZodOptional<z.ZodBoolean>;
1358
+ image: z.ZodOptional<z.ZodString>;
1359
+ "alt-text": z.ZodOptional<z.ZodString>;
1360
+ color: z.ZodOptional<z.ZodString>;
1361
+ "on-click-action": z.ZodOptional<z.ZodObject<{
1362
+ name: z.ZodEnum<["data_exchange", "navigate", "complete", "update_data", "open_url"]>;
1363
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1364
+ next: z.ZodOptional<z.ZodObject<{
1365
+ type: z.ZodLiteral<"screen">;
1366
+ name: z.ZodString;
1367
+ }, "strip", z.ZodTypeAny, {
1368
+ type: "screen";
1369
+ name: string;
1370
+ }, {
1371
+ type: "screen";
1372
+ name: string;
1373
+ }>>;
1374
+ url: z.ZodOptional<z.ZodString>;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1377
+ payload?: Record<string, any> | undefined;
1378
+ next?: {
1379
+ type: "screen";
1380
+ name: string;
1381
+ } | undefined;
1382
+ url?: string | undefined;
1383
+ }, {
1384
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1385
+ payload?: Record<string, any> | undefined;
1386
+ next?: {
1387
+ type: "screen";
1388
+ name: string;
1389
+ } | undefined;
1390
+ url?: string | undefined;
1391
+ }>>;
1392
+ "on-select-action": z.ZodOptional<z.ZodObject<{
1393
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1394
+ next: z.ZodOptional<z.ZodObject<{
1395
+ type: z.ZodLiteral<"screen">;
1396
+ name: z.ZodString;
1397
+ }, "strip", z.ZodTypeAny, {
1398
+ type: "screen";
1399
+ name: string;
1400
+ }, {
1401
+ type: "screen";
1402
+ name: string;
1403
+ }>>;
1404
+ url: z.ZodOptional<z.ZodString>;
1405
+ } & {
1406
+ name: z.ZodLiteral<"update_data">;
1407
+ }, "strip", z.ZodTypeAny, {
1408
+ name: "update_data";
1409
+ payload?: Record<string, any> | undefined;
1410
+ next?: {
1411
+ type: "screen";
1412
+ name: string;
1413
+ } | undefined;
1414
+ url?: string | undefined;
1415
+ }, {
1416
+ name: "update_data";
1417
+ payload?: Record<string, any> | undefined;
1418
+ next?: {
1419
+ type: "screen";
1420
+ name: string;
1421
+ } | undefined;
1422
+ url?: string | undefined;
1423
+ }>>;
1424
+ "on-unselect-action": z.ZodOptional<z.ZodObject<{
1425
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1426
+ next: z.ZodOptional<z.ZodObject<{
1427
+ type: z.ZodLiteral<"screen">;
1428
+ name: z.ZodString;
1429
+ }, "strip", z.ZodTypeAny, {
1430
+ type: "screen";
1431
+ name: string;
1432
+ }, {
1433
+ type: "screen";
1434
+ name: string;
1435
+ }>>;
1436
+ url: z.ZodOptional<z.ZodString>;
1437
+ } & {
1438
+ name: z.ZodLiteral<"update_data">;
1439
+ }, "strip", z.ZodTypeAny, {
1440
+ name: "update_data";
1441
+ payload?: Record<string, any> | undefined;
1442
+ next?: {
1443
+ type: "screen";
1444
+ name: string;
1445
+ } | undefined;
1446
+ url?: string | undefined;
1447
+ }, {
1448
+ name: "update_data";
1449
+ payload?: Record<string, any> | undefined;
1450
+ next?: {
1451
+ type: "screen";
1452
+ name: string;
1453
+ } | undefined;
1454
+ url?: string | undefined;
1455
+ }>>;
1456
+ }, "strip", z.ZodTypeAny, {
1457
+ id: string;
1458
+ title: string;
1459
+ enabled?: boolean | undefined;
1460
+ description?: string | undefined;
1461
+ metadata?: string | undefined;
1462
+ image?: string | undefined;
1463
+ "alt-text"?: string | undefined;
1464
+ color?: string | undefined;
1465
+ "on-click-action"?: {
1466
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1467
+ payload?: Record<string, any> | undefined;
1468
+ next?: {
1469
+ type: "screen";
1470
+ name: string;
1471
+ } | undefined;
1472
+ url?: string | undefined;
1473
+ } | undefined;
1474
+ "on-select-action"?: {
1475
+ name: "update_data";
1476
+ payload?: Record<string, any> | undefined;
1477
+ next?: {
1478
+ type: "screen";
1479
+ name: string;
1480
+ } | undefined;
1481
+ url?: string | undefined;
1482
+ } | undefined;
1483
+ "on-unselect-action"?: {
1484
+ name: "update_data";
1485
+ payload?: Record<string, any> | undefined;
1486
+ next?: {
1487
+ type: "screen";
1488
+ name: string;
1489
+ } | undefined;
1490
+ url?: string | undefined;
1491
+ } | undefined;
1492
+ }, {
1493
+ id: string;
1494
+ title: string;
1495
+ enabled?: boolean | undefined;
1496
+ description?: string | undefined;
1497
+ metadata?: string | undefined;
1498
+ image?: string | undefined;
1499
+ "alt-text"?: string | undefined;
1500
+ color?: string | undefined;
1501
+ "on-click-action"?: {
1502
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1503
+ payload?: Record<string, any> | undefined;
1504
+ next?: {
1505
+ type: "screen";
1506
+ name: string;
1507
+ } | undefined;
1508
+ url?: string | undefined;
1509
+ } | undefined;
1510
+ "on-select-action"?: {
1511
+ name: "update_data";
1512
+ payload?: Record<string, any> | undefined;
1513
+ next?: {
1514
+ type: "screen";
1515
+ name: string;
1516
+ } | undefined;
1517
+ url?: string | undefined;
1518
+ } | undefined;
1519
+ "on-unselect-action"?: {
1520
+ name: "update_data";
1521
+ payload?: Record<string, any> | undefined;
1522
+ next?: {
1523
+ type: "screen";
1524
+ name: string;
1525
+ } | undefined;
1526
+ url?: string | undefined;
1527
+ } | undefined;
1528
+ }>, "many">;
1529
+ "on-click-action": z.ZodOptional<z.ZodObject<{
1530
+ name: z.ZodEnum<["data_exchange", "navigate", "complete", "update_data", "open_url"]>;
1531
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1532
+ next: z.ZodOptional<z.ZodObject<{
1533
+ type: z.ZodLiteral<"screen">;
1534
+ name: z.ZodString;
1535
+ }, "strip", z.ZodTypeAny, {
1536
+ type: "screen";
1537
+ name: string;
1538
+ }, {
1539
+ type: "screen";
1540
+ name: string;
1541
+ }>>;
1542
+ url: z.ZodOptional<z.ZodString>;
1543
+ }, "strip", z.ZodTypeAny, {
1544
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1545
+ payload?: Record<string, any> | undefined;
1546
+ next?: {
1547
+ type: "screen";
1548
+ name: string;
1549
+ } | undefined;
1550
+ url?: string | undefined;
1551
+ }, {
1552
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1553
+ payload?: Record<string, any> | undefined;
1554
+ next?: {
1555
+ type: "screen";
1556
+ name: string;
1557
+ } | undefined;
1558
+ url?: string | undefined;
1559
+ }>>;
1560
+ "on-select-action": z.ZodOptional<z.ZodObject<{
1561
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1562
+ next: z.ZodOptional<z.ZodObject<{
1563
+ type: z.ZodLiteral<"screen">;
1564
+ name: z.ZodString;
1565
+ }, "strip", z.ZodTypeAny, {
1566
+ type: "screen";
1567
+ name: string;
1568
+ }, {
1569
+ type: "screen";
1570
+ name: string;
1571
+ }>>;
1572
+ url: z.ZodOptional<z.ZodString>;
1573
+ } & {
1574
+ name: z.ZodUnion<[z.ZodLiteral<"update_data">, z.ZodLiteral<"data_exchange">]>;
1575
+ }, "strip", z.ZodTypeAny, {
1576
+ name: "data_exchange" | "update_data";
1577
+ payload?: Record<string, any> | undefined;
1578
+ next?: {
1579
+ type: "screen";
1580
+ name: string;
1581
+ } | undefined;
1582
+ url?: string | undefined;
1583
+ }, {
1584
+ name: "data_exchange" | "update_data";
1585
+ payload?: Record<string, any> | undefined;
1586
+ next?: {
1587
+ type: "screen";
1588
+ name: string;
1589
+ } | undefined;
1590
+ url?: string | undefined;
1591
+ }>>;
1592
+ "on-unselect-action": z.ZodOptional<z.ZodObject<{
1593
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1594
+ next: z.ZodOptional<z.ZodObject<{
1595
+ type: z.ZodLiteral<"screen">;
1596
+ name: z.ZodString;
1597
+ }, "strip", z.ZodTypeAny, {
1598
+ type: "screen";
1599
+ name: string;
1600
+ }, {
1601
+ type: "screen";
1602
+ name: string;
1603
+ }>>;
1604
+ url: z.ZodOptional<z.ZodString>;
1605
+ } & {
1606
+ name: z.ZodUnion<[z.ZodLiteral<"update_data">, z.ZodLiteral<"data_exchange">]>;
1607
+ }, "strip", z.ZodTypeAny, {
1608
+ name: "data_exchange" | "update_data";
1609
+ payload?: Record<string, any> | undefined;
1610
+ next?: {
1611
+ type: "screen";
1612
+ name: string;
1613
+ } | undefined;
1614
+ url?: string | undefined;
1615
+ }, {
1616
+ name: "data_exchange" | "update_data";
1617
+ payload?: Record<string, any> | undefined;
1618
+ next?: {
1619
+ type: "screen";
1620
+ name: string;
1621
+ } | undefined;
1622
+ url?: string | undefined;
1623
+ }>>;
1624
+ }, "strip", z.ZodTypeAny, {
1625
+ type: "Dropdown";
1626
+ name: string;
1627
+ label: string;
1628
+ "data-source": {
1629
+ id: string;
1630
+ title: string;
1631
+ enabled?: boolean | undefined;
1632
+ description?: string | undefined;
1633
+ metadata?: string | undefined;
1634
+ image?: string | undefined;
1635
+ "alt-text"?: string | undefined;
1636
+ color?: string | undefined;
1637
+ "on-click-action"?: {
1638
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1639
+ payload?: Record<string, any> | undefined;
1640
+ next?: {
1641
+ type: "screen";
1642
+ name: string;
1643
+ } | undefined;
1644
+ url?: string | undefined;
1645
+ } | undefined;
1646
+ "on-select-action"?: {
1647
+ name: "update_data";
1648
+ payload?: Record<string, any> | undefined;
1649
+ next?: {
1650
+ type: "screen";
1651
+ name: string;
1652
+ } | undefined;
1653
+ url?: string | undefined;
1654
+ } | undefined;
1655
+ "on-unselect-action"?: {
1656
+ name: "update_data";
1657
+ payload?: Record<string, any> | undefined;
1658
+ next?: {
1659
+ type: "screen";
1660
+ name: string;
1661
+ } | undefined;
1662
+ url?: string | undefined;
1663
+ } | undefined;
1664
+ }[];
1665
+ required?: boolean | undefined;
1666
+ enabled?: boolean | undefined;
1667
+ "error-message"?: string | undefined;
1668
+ "init-value"?: string | undefined;
1669
+ visible?: boolean | undefined;
1670
+ "on-click-action"?: {
1671
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1672
+ payload?: Record<string, any> | undefined;
1673
+ next?: {
1674
+ type: "screen";
1675
+ name: string;
1676
+ } | undefined;
1677
+ url?: string | undefined;
1678
+ } | undefined;
1679
+ "on-select-action"?: {
1680
+ name: "data_exchange" | "update_data";
1681
+ payload?: Record<string, any> | undefined;
1682
+ next?: {
1683
+ type: "screen";
1684
+ name: string;
1685
+ } | undefined;
1686
+ url?: string | undefined;
1687
+ } | undefined;
1688
+ "on-unselect-action"?: {
1689
+ name: "data_exchange" | "update_data";
1690
+ payload?: Record<string, any> | undefined;
1691
+ next?: {
1692
+ type: "screen";
1693
+ name: string;
1694
+ } | undefined;
1695
+ url?: string | undefined;
1696
+ } | undefined;
1697
+ }, {
1698
+ type: "Dropdown";
1699
+ name: string;
1700
+ label: string;
1701
+ "data-source": {
1702
+ id: string;
1703
+ title: string;
1704
+ enabled?: boolean | undefined;
1705
+ description?: string | undefined;
1706
+ metadata?: string | undefined;
1707
+ image?: string | undefined;
1708
+ "alt-text"?: string | undefined;
1709
+ color?: string | undefined;
1710
+ "on-click-action"?: {
1711
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1712
+ payload?: Record<string, any> | undefined;
1713
+ next?: {
1714
+ type: "screen";
1715
+ name: string;
1716
+ } | undefined;
1717
+ url?: string | undefined;
1718
+ } | undefined;
1719
+ "on-select-action"?: {
1720
+ name: "update_data";
1721
+ payload?: Record<string, any> | undefined;
1722
+ next?: {
1723
+ type: "screen";
1724
+ name: string;
1725
+ } | undefined;
1726
+ url?: string | undefined;
1727
+ } | undefined;
1728
+ "on-unselect-action"?: {
1729
+ name: "update_data";
1730
+ payload?: Record<string, any> | undefined;
1731
+ next?: {
1732
+ type: "screen";
1733
+ name: string;
1734
+ } | undefined;
1735
+ url?: string | undefined;
1736
+ } | undefined;
1737
+ }[];
1738
+ required?: boolean | undefined;
1739
+ enabled?: boolean | undefined;
1740
+ "error-message"?: string | undefined;
1741
+ "init-value"?: string | undefined;
1742
+ visible?: boolean | undefined;
1743
+ "on-click-action"?: {
1744
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
1745
+ payload?: Record<string, any> | undefined;
1746
+ next?: {
1747
+ type: "screen";
1748
+ name: string;
1749
+ } | undefined;
1750
+ url?: string | undefined;
1751
+ } | undefined;
1752
+ "on-select-action"?: {
1753
+ name: "data_exchange" | "update_data";
1754
+ payload?: Record<string, any> | undefined;
1755
+ next?: {
1756
+ type: "screen";
1757
+ name: string;
1758
+ } | undefined;
1759
+ url?: string | undefined;
1760
+ } | undefined;
1761
+ "on-unselect-action"?: {
1762
+ name: "data_exchange" | "update_data";
1763
+ payload?: Record<string, any> | undefined;
1764
+ next?: {
1765
+ type: "screen";
1766
+ name: string;
1767
+ } | undefined;
1768
+ url?: string | undefined;
1769
+ } | undefined;
1770
+ }>;
1771
+ readonly DatePicker: z.ZodObject<{
1772
+ name: z.ZodString;
1773
+ required: z.ZodOptional<z.ZodBoolean>;
1774
+ enabled: z.ZodOptional<z.ZodBoolean>;
1775
+ "error-message": z.ZodOptional<z.ZodString>;
1776
+ "init-value": z.ZodOptional<z.ZodString>;
1777
+ } & {
1778
+ visible: z.ZodOptional<z.ZodBoolean>;
1779
+ } & {
1780
+ type: z.ZodLiteral<"DatePicker">;
1781
+ label: z.ZodString;
1782
+ "min-date": z.ZodOptional<z.ZodString>;
1783
+ "max-date": z.ZodOptional<z.ZodString>;
1784
+ "unavailable-dates": z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1785
+ "helper-text": z.ZodOptional<z.ZodString>;
1786
+ "on-select-action": z.ZodOptional<z.ZodObject<{
1787
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1788
+ next: z.ZodOptional<z.ZodObject<{
1789
+ type: z.ZodLiteral<"screen">;
1790
+ name: z.ZodString;
1791
+ }, "strip", z.ZodTypeAny, {
1792
+ type: "screen";
1793
+ name: string;
1794
+ }, {
1795
+ type: "screen";
1796
+ name: string;
1797
+ }>>;
1798
+ url: z.ZodOptional<z.ZodString>;
1799
+ } & {
1800
+ name: z.ZodUnion<[z.ZodLiteral<"update_data">, z.ZodLiteral<"data_exchange">]>;
1801
+ }, "strip", z.ZodTypeAny, {
1802
+ name: "data_exchange" | "update_data";
1803
+ payload?: Record<string, any> | undefined;
1804
+ next?: {
1805
+ type: "screen";
1806
+ name: string;
1807
+ } | undefined;
1808
+ url?: string | undefined;
1809
+ }, {
1810
+ name: "data_exchange" | "update_data";
1811
+ payload?: Record<string, any> | undefined;
1812
+ next?: {
1813
+ type: "screen";
1814
+ name: string;
1815
+ } | undefined;
1816
+ url?: string | undefined;
1817
+ }>>;
1818
+ }, "strip", z.ZodTypeAny, {
1819
+ type: "DatePicker";
1820
+ name: string;
1821
+ label: string;
1822
+ required?: boolean | undefined;
1823
+ enabled?: boolean | undefined;
1824
+ "error-message"?: string | undefined;
1825
+ "init-value"?: string | undefined;
1826
+ visible?: boolean | undefined;
1827
+ "helper-text"?: string | undefined;
1828
+ "on-select-action"?: {
1829
+ name: "data_exchange" | "update_data";
1830
+ payload?: Record<string, any> | undefined;
1831
+ next?: {
1832
+ type: "screen";
1833
+ name: string;
1834
+ } | undefined;
1835
+ url?: string | undefined;
1836
+ } | undefined;
1837
+ "min-date"?: string | undefined;
1838
+ "max-date"?: string | undefined;
1839
+ "unavailable-dates"?: string[] | undefined;
1840
+ }, {
1841
+ type: "DatePicker";
1842
+ name: string;
1843
+ label: string;
1844
+ required?: boolean | undefined;
1845
+ enabled?: boolean | undefined;
1846
+ "error-message"?: string | undefined;
1847
+ "init-value"?: string | undefined;
1848
+ visible?: boolean | undefined;
1849
+ "helper-text"?: string | undefined;
1850
+ "on-select-action"?: {
1851
+ name: "data_exchange" | "update_data";
1852
+ payload?: Record<string, any> | undefined;
1853
+ next?: {
1854
+ type: "screen";
1855
+ name: string;
1856
+ } | undefined;
1857
+ url?: string | undefined;
1858
+ } | undefined;
1859
+ "min-date"?: string | undefined;
1860
+ "max-date"?: string | undefined;
1861
+ "unavailable-dates"?: string[] | undefined;
1862
+ }>;
1863
+ readonly CalendarPicker: z.ZodObject<{
1864
+ name: z.ZodString;
1865
+ required: z.ZodOptional<z.ZodBoolean>;
1866
+ enabled: z.ZodOptional<z.ZodBoolean>;
1867
+ "error-message": z.ZodOptional<z.ZodString>;
1868
+ "init-value": z.ZodOptional<z.ZodString>;
1869
+ } & {
1870
+ visible: z.ZodOptional<z.ZodBoolean>;
1871
+ } & {
1872
+ type: z.ZodLiteral<"CalendarPicker">;
1873
+ title: z.ZodOptional<z.ZodString>;
1874
+ description: z.ZodOptional<z.ZodString>;
1875
+ label: z.ZodString;
1876
+ "helper-text": z.ZodOptional<z.ZodString>;
1877
+ mode: z.ZodOptional<z.ZodDefault<z.ZodEnum<["single", "range"]>>>;
1878
+ "min-date": z.ZodOptional<z.ZodString>;
1879
+ "max-date": z.ZodOptional<z.ZodString>;
1880
+ "unavailable-dates": z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1881
+ "include-days": z.ZodOptional<z.ZodArray<z.ZodEnum<["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]>, "many">>;
1882
+ "min-days": z.ZodOptional<z.ZodNumber>;
1883
+ "max-days": z.ZodOptional<z.ZodNumber>;
1884
+ "on-select-action": z.ZodOptional<z.ZodObject<{
1885
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1886
+ next: z.ZodOptional<z.ZodObject<{
1887
+ type: z.ZodLiteral<"screen">;
1888
+ name: z.ZodString;
1889
+ }, "strip", z.ZodTypeAny, {
1890
+ type: "screen";
1891
+ name: string;
1892
+ }, {
1893
+ type: "screen";
1894
+ name: string;
1895
+ }>>;
1896
+ url: z.ZodOptional<z.ZodString>;
1897
+ } & {
1898
+ name: z.ZodUnion<[z.ZodLiteral<"update_data">, z.ZodLiteral<"data_exchange">]>;
1899
+ }, "strip", z.ZodTypeAny, {
1900
+ name: "data_exchange" | "update_data";
1901
+ payload?: Record<string, any> | undefined;
1902
+ next?: {
1903
+ type: "screen";
1904
+ name: string;
1905
+ } | undefined;
1906
+ url?: string | undefined;
1907
+ }, {
1908
+ name: "data_exchange" | "update_data";
1909
+ payload?: Record<string, any> | undefined;
1910
+ next?: {
1911
+ type: "screen";
1912
+ name: string;
1913
+ } | undefined;
1914
+ url?: string | undefined;
1915
+ }>>;
1916
+ }, "strip", z.ZodTypeAny, {
1917
+ type: "CalendarPicker";
1918
+ name: string;
1919
+ label: string;
1920
+ required?: boolean | undefined;
1921
+ enabled?: boolean | undefined;
1922
+ "error-message"?: string | undefined;
1923
+ "init-value"?: string | undefined;
1924
+ visible?: boolean | undefined;
1925
+ "helper-text"?: string | undefined;
1926
+ title?: string | undefined;
1927
+ description?: string | undefined;
1928
+ "on-select-action"?: {
1929
+ name: "data_exchange" | "update_data";
1930
+ payload?: Record<string, any> | undefined;
1931
+ next?: {
1932
+ type: "screen";
1933
+ name: string;
1934
+ } | undefined;
1935
+ url?: string | undefined;
1936
+ } | undefined;
1937
+ "min-date"?: string | undefined;
1938
+ "max-date"?: string | undefined;
1939
+ "unavailable-dates"?: string[] | undefined;
1940
+ mode?: "single" | "range" | undefined;
1941
+ "include-days"?: ("Mon" | "Tue" | "Wed" | "Thu" | "Fri" | "Sat" | "Sun")[] | undefined;
1942
+ "min-days"?: number | undefined;
1943
+ "max-days"?: number | undefined;
1944
+ }, {
1945
+ type: "CalendarPicker";
1946
+ name: string;
1947
+ label: string;
1948
+ required?: boolean | undefined;
1949
+ enabled?: boolean | undefined;
1950
+ "error-message"?: string | undefined;
1951
+ "init-value"?: string | undefined;
1952
+ visible?: boolean | undefined;
1953
+ "helper-text"?: string | undefined;
1954
+ title?: string | undefined;
1955
+ description?: string | undefined;
1956
+ "on-select-action"?: {
1957
+ name: "data_exchange" | "update_data";
1958
+ payload?: Record<string, any> | undefined;
1959
+ next?: {
1960
+ type: "screen";
1961
+ name: string;
1962
+ } | undefined;
1963
+ url?: string | undefined;
1964
+ } | undefined;
1965
+ "min-date"?: string | undefined;
1966
+ "max-date"?: string | undefined;
1967
+ "unavailable-dates"?: string[] | undefined;
1968
+ mode?: "single" | "range" | undefined;
1969
+ "include-days"?: ("Mon" | "Tue" | "Wed" | "Thu" | "Fri" | "Sat" | "Sun")[] | undefined;
1970
+ "min-days"?: number | undefined;
1971
+ "max-days"?: number | undefined;
1972
+ }>;
1973
+ readonly OptIn: z.ZodObject<Omit<{
1974
+ name: z.ZodString;
1975
+ required: z.ZodOptional<z.ZodBoolean>;
1976
+ enabled: z.ZodOptional<z.ZodBoolean>;
1977
+ "error-message": z.ZodOptional<z.ZodString>;
1978
+ "init-value": z.ZodOptional<z.ZodString>;
1979
+ } & {
1980
+ visible: z.ZodOptional<z.ZodBoolean>;
1981
+ }, "enabled"> & {
1982
+ type: z.ZodLiteral<"OptIn">;
1983
+ label: z.ZodString;
1984
+ "on-click-action": z.ZodOptional<z.ZodObject<{
1985
+ name: z.ZodEnum<["data_exchange", "navigate", "complete", "update_data", "open_url"]>;
1986
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1987
+ next: z.ZodOptional<z.ZodObject<{
1988
+ type: z.ZodLiteral<"screen">;
1989
+ name: z.ZodString;
1990
+ }, "strip", z.ZodTypeAny, {
1991
+ type: "screen";
1992
+ name: string;
1993
+ }, {
1994
+ type: "screen";
1995
+ name: string;
1996
+ }>>;
1997
+ url: z.ZodOptional<z.ZodString>;
1998
+ }, "strip", z.ZodTypeAny, {
1999
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2000
+ payload?: Record<string, any> | undefined;
2001
+ next?: {
2002
+ type: "screen";
2003
+ name: string;
2004
+ } | undefined;
2005
+ url?: string | undefined;
2006
+ }, {
2007
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2008
+ payload?: Record<string, any> | undefined;
2009
+ next?: {
2010
+ type: "screen";
2011
+ name: string;
2012
+ } | undefined;
2013
+ url?: string | undefined;
2014
+ }>>;
2015
+ "on-select-action": z.ZodOptional<z.ZodObject<{
2016
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2017
+ next: z.ZodOptional<z.ZodObject<{
2018
+ type: z.ZodLiteral<"screen">;
2019
+ name: z.ZodString;
2020
+ }, "strip", z.ZodTypeAny, {
2021
+ type: "screen";
2022
+ name: string;
2023
+ }, {
2024
+ type: "screen";
2025
+ name: string;
2026
+ }>>;
2027
+ url: z.ZodOptional<z.ZodString>;
2028
+ } & {
2029
+ name: z.ZodUnion<[z.ZodLiteral<"update_data">, z.ZodLiteral<"data_exchange">]>;
2030
+ }, "strip", z.ZodTypeAny, {
2031
+ name: "data_exchange" | "update_data";
2032
+ payload?: Record<string, any> | undefined;
2033
+ next?: {
2034
+ type: "screen";
2035
+ name: string;
2036
+ } | undefined;
2037
+ url?: string | undefined;
2038
+ }, {
2039
+ name: "data_exchange" | "update_data";
2040
+ payload?: Record<string, any> | undefined;
2041
+ next?: {
2042
+ type: "screen";
2043
+ name: string;
2044
+ } | undefined;
2045
+ url?: string | undefined;
2046
+ }>>;
2047
+ "on-unselect-action": z.ZodOptional<z.ZodObject<{
2048
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2049
+ next: z.ZodOptional<z.ZodObject<{
2050
+ type: z.ZodLiteral<"screen">;
2051
+ name: z.ZodString;
2052
+ }, "strip", z.ZodTypeAny, {
2053
+ type: "screen";
2054
+ name: string;
2055
+ }, {
2056
+ type: "screen";
2057
+ name: string;
2058
+ }>>;
2059
+ url: z.ZodOptional<z.ZodString>;
2060
+ } & {
2061
+ name: z.ZodUnion<[z.ZodLiteral<"update_data">, z.ZodLiteral<"data_exchange">]>;
2062
+ }, "strip", z.ZodTypeAny, {
2063
+ name: "data_exchange" | "update_data";
2064
+ payload?: Record<string, any> | undefined;
2065
+ next?: {
2066
+ type: "screen";
2067
+ name: string;
2068
+ } | undefined;
2069
+ url?: string | undefined;
2070
+ }, {
2071
+ name: "data_exchange" | "update_data";
2072
+ payload?: Record<string, any> | undefined;
2073
+ next?: {
2074
+ type: "screen";
2075
+ name: string;
2076
+ } | undefined;
2077
+ url?: string | undefined;
2078
+ }>>;
2079
+ }, "strip", z.ZodTypeAny, {
2080
+ type: "OptIn";
2081
+ name: string;
2082
+ label: string;
2083
+ required?: boolean | undefined;
2084
+ "error-message"?: string | undefined;
2085
+ "init-value"?: string | undefined;
2086
+ visible?: boolean | undefined;
2087
+ "on-click-action"?: {
2088
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2089
+ payload?: Record<string, any> | undefined;
2090
+ next?: {
2091
+ type: "screen";
2092
+ name: string;
2093
+ } | undefined;
2094
+ url?: string | undefined;
2095
+ } | undefined;
2096
+ "on-select-action"?: {
2097
+ name: "data_exchange" | "update_data";
2098
+ payload?: Record<string, any> | undefined;
2099
+ next?: {
2100
+ type: "screen";
2101
+ name: string;
2102
+ } | undefined;
2103
+ url?: string | undefined;
2104
+ } | undefined;
2105
+ "on-unselect-action"?: {
2106
+ name: "data_exchange" | "update_data";
2107
+ payload?: Record<string, any> | undefined;
2108
+ next?: {
2109
+ type: "screen";
2110
+ name: string;
2111
+ } | undefined;
2112
+ url?: string | undefined;
2113
+ } | undefined;
2114
+ }, {
2115
+ type: "OptIn";
2116
+ name: string;
2117
+ label: string;
2118
+ required?: boolean | undefined;
2119
+ "error-message"?: string | undefined;
2120
+ "init-value"?: string | undefined;
2121
+ visible?: boolean | undefined;
2122
+ "on-click-action"?: {
2123
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2124
+ payload?: Record<string, any> | undefined;
2125
+ next?: {
2126
+ type: "screen";
2127
+ name: string;
2128
+ } | undefined;
2129
+ url?: string | undefined;
2130
+ } | undefined;
2131
+ "on-select-action"?: {
2132
+ name: "data_exchange" | "update_data";
2133
+ payload?: Record<string, any> | undefined;
2134
+ next?: {
2135
+ type: "screen";
2136
+ name: string;
2137
+ } | undefined;
2138
+ url?: string | undefined;
2139
+ } | undefined;
2140
+ "on-unselect-action"?: {
2141
+ name: "data_exchange" | "update_data";
2142
+ payload?: Record<string, any> | undefined;
2143
+ next?: {
2144
+ type: "screen";
2145
+ name: string;
2146
+ } | undefined;
2147
+ url?: string | undefined;
2148
+ } | undefined;
2149
+ }>;
2150
+ readonly NavigationList: z.ZodObject<{
2151
+ type: z.ZodLiteral<"NavigationList">;
2152
+ name: z.ZodString;
2153
+ "list-items": z.ZodArray<z.ZodObject<{
2154
+ id: z.ZodString;
2155
+ "main-content": z.ZodObject<{
2156
+ title: z.ZodString;
2157
+ description: z.ZodOptional<z.ZodString>;
2158
+ metadata: z.ZodOptional<z.ZodString>;
2159
+ }, "strip", z.ZodTypeAny, {
2160
+ title: string;
2161
+ description?: string | undefined;
2162
+ metadata?: string | undefined;
2163
+ }, {
2164
+ title: string;
2165
+ description?: string | undefined;
2166
+ metadata?: string | undefined;
2167
+ }>;
2168
+ end: z.ZodOptional<z.ZodObject<{
2169
+ title: z.ZodOptional<z.ZodString>;
2170
+ description: z.ZodOptional<z.ZodString>;
2171
+ metadata: z.ZodOptional<z.ZodString>;
2172
+ }, "strip", z.ZodTypeAny, {
2173
+ title?: string | undefined;
2174
+ description?: string | undefined;
2175
+ metadata?: string | undefined;
2176
+ }, {
2177
+ title?: string | undefined;
2178
+ description?: string | undefined;
2179
+ metadata?: string | undefined;
2180
+ }>>;
2181
+ start: z.ZodOptional<z.ZodObject<{
2182
+ image: z.ZodOptional<z.ZodString>;
2183
+ "alt-text": z.ZodOptional<z.ZodString>;
2184
+ }, "strip", z.ZodTypeAny, {
2185
+ image?: string | undefined;
2186
+ "alt-text"?: string | undefined;
2187
+ }, {
2188
+ image?: string | undefined;
2189
+ "alt-text"?: string | undefined;
2190
+ }>>;
2191
+ badge: z.ZodOptional<z.ZodString>;
2192
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2193
+ "on-click-action": z.ZodOptional<z.ZodObject<{
2194
+ name: z.ZodEnum<["data_exchange", "navigate", "complete", "update_data", "open_url"]>;
2195
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2196
+ next: z.ZodOptional<z.ZodObject<{
2197
+ type: z.ZodLiteral<"screen">;
2198
+ name: z.ZodString;
2199
+ }, "strip", z.ZodTypeAny, {
2200
+ type: "screen";
2201
+ name: string;
2202
+ }, {
2203
+ type: "screen";
2204
+ name: string;
2205
+ }>>;
2206
+ url: z.ZodOptional<z.ZodString>;
2207
+ }, "strip", z.ZodTypeAny, {
2208
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2209
+ payload?: Record<string, any> | undefined;
2210
+ next?: {
2211
+ type: "screen";
2212
+ name: string;
2213
+ } | undefined;
2214
+ url?: string | undefined;
2215
+ }, {
2216
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2217
+ payload?: Record<string, any> | undefined;
2218
+ next?: {
2219
+ type: "screen";
2220
+ name: string;
2221
+ } | undefined;
2222
+ url?: string | undefined;
2223
+ }>>;
2224
+ }, "strip", z.ZodTypeAny, {
2225
+ id: string;
2226
+ "main-content": {
2227
+ title: string;
2228
+ description?: string | undefined;
2229
+ metadata?: string | undefined;
2230
+ };
2231
+ "on-click-action"?: {
2232
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2233
+ payload?: Record<string, any> | undefined;
2234
+ next?: {
2235
+ type: "screen";
2236
+ name: string;
2237
+ } | undefined;
2238
+ url?: string | undefined;
2239
+ } | undefined;
2240
+ end?: {
2241
+ title?: string | undefined;
2242
+ description?: string | undefined;
2243
+ metadata?: string | undefined;
2244
+ } | undefined;
2245
+ start?: {
2246
+ image?: string | undefined;
2247
+ "alt-text"?: string | undefined;
2248
+ } | undefined;
2249
+ badge?: string | undefined;
2250
+ tags?: string[] | undefined;
2251
+ }, {
2252
+ id: string;
2253
+ "main-content": {
2254
+ title: string;
2255
+ description?: string | undefined;
2256
+ metadata?: string | undefined;
2257
+ };
2258
+ "on-click-action"?: {
2259
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2260
+ payload?: Record<string, any> | undefined;
2261
+ next?: {
2262
+ type: "screen";
2263
+ name: string;
2264
+ } | undefined;
2265
+ url?: string | undefined;
2266
+ } | undefined;
2267
+ end?: {
2268
+ title?: string | undefined;
2269
+ description?: string | undefined;
2270
+ metadata?: string | undefined;
2271
+ } | undefined;
2272
+ start?: {
2273
+ image?: string | undefined;
2274
+ "alt-text"?: string | undefined;
2275
+ } | undefined;
2276
+ badge?: string | undefined;
2277
+ tags?: string[] | undefined;
2278
+ }>, "many">;
2279
+ label: z.ZodOptional<z.ZodString>;
2280
+ description: z.ZodOptional<z.ZodString>;
2281
+ "media-size": z.ZodOptional<z.ZodDefault<z.ZodEnum<["regular", "large"]>>>;
2282
+ "on-click-action": z.ZodOptional<z.ZodObject<{
2283
+ name: z.ZodEnum<["data_exchange", "navigate", "complete", "update_data", "open_url"]>;
2284
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2285
+ next: z.ZodOptional<z.ZodObject<{
2286
+ type: z.ZodLiteral<"screen">;
2287
+ name: z.ZodString;
2288
+ }, "strip", z.ZodTypeAny, {
2289
+ type: "screen";
2290
+ name: string;
2291
+ }, {
2292
+ type: "screen";
2293
+ name: string;
2294
+ }>>;
2295
+ url: z.ZodOptional<z.ZodString>;
2296
+ }, "strip", z.ZodTypeAny, {
2297
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2298
+ payload?: Record<string, any> | undefined;
2299
+ next?: {
2300
+ type: "screen";
2301
+ name: string;
2302
+ } | undefined;
2303
+ url?: string | undefined;
2304
+ }, {
2305
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2306
+ payload?: Record<string, any> | undefined;
2307
+ next?: {
2308
+ type: "screen";
2309
+ name: string;
2310
+ } | undefined;
2311
+ url?: string | undefined;
2312
+ }>>;
2313
+ }, "strip", z.ZodTypeAny, {
2314
+ type: "NavigationList";
2315
+ name: string;
2316
+ "list-items": {
2317
+ id: string;
2318
+ "main-content": {
2319
+ title: string;
2320
+ description?: string | undefined;
2321
+ metadata?: string | undefined;
2322
+ };
2323
+ "on-click-action"?: {
2324
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2325
+ payload?: Record<string, any> | undefined;
2326
+ next?: {
2327
+ type: "screen";
2328
+ name: string;
2329
+ } | undefined;
2330
+ url?: string | undefined;
2331
+ } | undefined;
2332
+ end?: {
2333
+ title?: string | undefined;
2334
+ description?: string | undefined;
2335
+ metadata?: string | undefined;
2336
+ } | undefined;
2337
+ start?: {
2338
+ image?: string | undefined;
2339
+ "alt-text"?: string | undefined;
2340
+ } | undefined;
2341
+ badge?: string | undefined;
2342
+ tags?: string[] | undefined;
2343
+ }[];
2344
+ label?: string | undefined;
2345
+ description?: string | undefined;
2346
+ "on-click-action"?: {
2347
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2348
+ payload?: Record<string, any> | undefined;
2349
+ next?: {
2350
+ type: "screen";
2351
+ name: string;
2352
+ } | undefined;
2353
+ url?: string | undefined;
2354
+ } | undefined;
2355
+ "media-size"?: "large" | "regular" | undefined;
2356
+ }, {
2357
+ type: "NavigationList";
2358
+ name: string;
2359
+ "list-items": {
2360
+ id: string;
2361
+ "main-content": {
2362
+ title: string;
2363
+ description?: string | undefined;
2364
+ metadata?: string | undefined;
2365
+ };
2366
+ "on-click-action"?: {
2367
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2368
+ payload?: Record<string, any> | undefined;
2369
+ next?: {
2370
+ type: "screen";
2371
+ name: string;
2372
+ } | undefined;
2373
+ url?: string | undefined;
2374
+ } | undefined;
2375
+ end?: {
2376
+ title?: string | undefined;
2377
+ description?: string | undefined;
2378
+ metadata?: string | undefined;
2379
+ } | undefined;
2380
+ start?: {
2381
+ image?: string | undefined;
2382
+ "alt-text"?: string | undefined;
2383
+ } | undefined;
2384
+ badge?: string | undefined;
2385
+ tags?: string[] | undefined;
2386
+ }[];
2387
+ label?: string | undefined;
2388
+ description?: string | undefined;
2389
+ "on-click-action"?: {
2390
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2391
+ payload?: Record<string, any> | undefined;
2392
+ next?: {
2393
+ type: "screen";
2394
+ name: string;
2395
+ } | undefined;
2396
+ url?: string | undefined;
2397
+ } | undefined;
2398
+ "media-size"?: "large" | "regular" | undefined;
2399
+ }>;
2400
+ readonly ChipsSelector: z.ZodObject<{
2401
+ name: z.ZodString;
2402
+ required: z.ZodOptional<z.ZodBoolean>;
2403
+ enabled: z.ZodOptional<z.ZodBoolean>;
2404
+ "error-message": z.ZodOptional<z.ZodString>;
2405
+ "init-value": z.ZodOptional<z.ZodString>;
2406
+ } & {
2407
+ visible: z.ZodOptional<z.ZodBoolean>;
2408
+ } & {
2409
+ type: z.ZodLiteral<"ChipsSelector">;
2410
+ label: z.ZodString;
2411
+ description: z.ZodOptional<z.ZodString>;
2412
+ "data-source": z.ZodArray<z.ZodObject<{
2413
+ id: z.ZodString;
2414
+ title: z.ZodString;
2415
+ description: z.ZodOptional<z.ZodString>;
2416
+ metadata: z.ZodOptional<z.ZodString>;
2417
+ enabled: z.ZodOptional<z.ZodBoolean>;
2418
+ image: z.ZodOptional<z.ZodString>;
2419
+ "alt-text": z.ZodOptional<z.ZodString>;
2420
+ color: z.ZodOptional<z.ZodString>;
2421
+ "on-click-action": z.ZodOptional<z.ZodObject<{
2422
+ name: z.ZodEnum<["data_exchange", "navigate", "complete", "update_data", "open_url"]>;
2423
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2424
+ next: z.ZodOptional<z.ZodObject<{
2425
+ type: z.ZodLiteral<"screen">;
2426
+ name: z.ZodString;
2427
+ }, "strip", z.ZodTypeAny, {
2428
+ type: "screen";
2429
+ name: string;
2430
+ }, {
2431
+ type: "screen";
2432
+ name: string;
2433
+ }>>;
2434
+ url: z.ZodOptional<z.ZodString>;
2435
+ }, "strip", z.ZodTypeAny, {
2436
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2437
+ payload?: Record<string, any> | undefined;
2438
+ next?: {
2439
+ type: "screen";
2440
+ name: string;
2441
+ } | undefined;
2442
+ url?: string | undefined;
2443
+ }, {
2444
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2445
+ payload?: Record<string, any> | undefined;
2446
+ next?: {
2447
+ type: "screen";
2448
+ name: string;
2449
+ } | undefined;
2450
+ url?: string | undefined;
2451
+ }>>;
2452
+ "on-select-action": z.ZodOptional<z.ZodObject<{
2453
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2454
+ next: z.ZodOptional<z.ZodObject<{
2455
+ type: z.ZodLiteral<"screen">;
2456
+ name: z.ZodString;
2457
+ }, "strip", z.ZodTypeAny, {
2458
+ type: "screen";
2459
+ name: string;
2460
+ }, {
2461
+ type: "screen";
2462
+ name: string;
2463
+ }>>;
2464
+ url: z.ZodOptional<z.ZodString>;
2465
+ } & {
2466
+ name: z.ZodLiteral<"update_data">;
2467
+ }, "strip", z.ZodTypeAny, {
2468
+ name: "update_data";
2469
+ payload?: Record<string, any> | undefined;
2470
+ next?: {
2471
+ type: "screen";
2472
+ name: string;
2473
+ } | undefined;
2474
+ url?: string | undefined;
2475
+ }, {
2476
+ name: "update_data";
2477
+ payload?: Record<string, any> | undefined;
2478
+ next?: {
2479
+ type: "screen";
2480
+ name: string;
2481
+ } | undefined;
2482
+ url?: string | undefined;
2483
+ }>>;
2484
+ "on-unselect-action": z.ZodOptional<z.ZodObject<{
2485
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2486
+ next: z.ZodOptional<z.ZodObject<{
2487
+ type: z.ZodLiteral<"screen">;
2488
+ name: z.ZodString;
2489
+ }, "strip", z.ZodTypeAny, {
2490
+ type: "screen";
2491
+ name: string;
2492
+ }, {
2493
+ type: "screen";
2494
+ name: string;
2495
+ }>>;
2496
+ url: z.ZodOptional<z.ZodString>;
2497
+ } & {
2498
+ name: z.ZodLiteral<"update_data">;
2499
+ }, "strip", z.ZodTypeAny, {
2500
+ name: "update_data";
2501
+ payload?: Record<string, any> | undefined;
2502
+ next?: {
2503
+ type: "screen";
2504
+ name: string;
2505
+ } | undefined;
2506
+ url?: string | undefined;
2507
+ }, {
2508
+ name: "update_data";
2509
+ payload?: Record<string, any> | undefined;
2510
+ next?: {
2511
+ type: "screen";
2512
+ name: string;
2513
+ } | undefined;
2514
+ url?: string | undefined;
2515
+ }>>;
2516
+ }, "strip", z.ZodTypeAny, {
2517
+ id: string;
2518
+ title: string;
2519
+ enabled?: boolean | undefined;
2520
+ description?: string | undefined;
2521
+ metadata?: string | undefined;
2522
+ image?: string | undefined;
2523
+ "alt-text"?: string | undefined;
2524
+ color?: string | undefined;
2525
+ "on-click-action"?: {
2526
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2527
+ payload?: Record<string, any> | undefined;
2528
+ next?: {
2529
+ type: "screen";
2530
+ name: string;
2531
+ } | undefined;
2532
+ url?: string | undefined;
2533
+ } | undefined;
2534
+ "on-select-action"?: {
2535
+ name: "update_data";
2536
+ payload?: Record<string, any> | undefined;
2537
+ next?: {
2538
+ type: "screen";
2539
+ name: string;
2540
+ } | undefined;
2541
+ url?: string | undefined;
2542
+ } | undefined;
2543
+ "on-unselect-action"?: {
2544
+ name: "update_data";
2545
+ payload?: Record<string, any> | undefined;
2546
+ next?: {
2547
+ type: "screen";
2548
+ name: string;
2549
+ } | undefined;
2550
+ url?: string | undefined;
2551
+ } | undefined;
2552
+ }, {
2553
+ id: string;
2554
+ title: string;
2555
+ enabled?: boolean | undefined;
2556
+ description?: string | undefined;
2557
+ metadata?: string | undefined;
2558
+ image?: string | undefined;
2559
+ "alt-text"?: string | undefined;
2560
+ color?: string | undefined;
2561
+ "on-click-action"?: {
2562
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2563
+ payload?: Record<string, any> | undefined;
2564
+ next?: {
2565
+ type: "screen";
2566
+ name: string;
2567
+ } | undefined;
2568
+ url?: string | undefined;
2569
+ } | undefined;
2570
+ "on-select-action"?: {
2571
+ name: "update_data";
2572
+ payload?: Record<string, any> | undefined;
2573
+ next?: {
2574
+ type: "screen";
2575
+ name: string;
2576
+ } | undefined;
2577
+ url?: string | undefined;
2578
+ } | undefined;
2579
+ "on-unselect-action"?: {
2580
+ name: "update_data";
2581
+ payload?: Record<string, any> | undefined;
2582
+ next?: {
2583
+ type: "screen";
2584
+ name: string;
2585
+ } | undefined;
2586
+ url?: string | undefined;
2587
+ } | undefined;
2588
+ }>, "many">;
2589
+ "min-selected-items": z.ZodOptional<z.ZodNumber>;
2590
+ "max-selected-items": z.ZodOptional<z.ZodNumber>;
2591
+ "on-click-action": z.ZodOptional<z.ZodObject<{
2592
+ name: z.ZodEnum<["data_exchange", "navigate", "complete", "update_data", "open_url"]>;
2593
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2594
+ next: z.ZodOptional<z.ZodObject<{
2595
+ type: z.ZodLiteral<"screen">;
2596
+ name: z.ZodString;
2597
+ }, "strip", z.ZodTypeAny, {
2598
+ type: "screen";
2599
+ name: string;
2600
+ }, {
2601
+ type: "screen";
2602
+ name: string;
2603
+ }>>;
2604
+ url: z.ZodOptional<z.ZodString>;
2605
+ }, "strip", z.ZodTypeAny, {
2606
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2607
+ payload?: Record<string, any> | undefined;
2608
+ next?: {
2609
+ type: "screen";
2610
+ name: string;
2611
+ } | undefined;
2612
+ url?: string | undefined;
2613
+ }, {
2614
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2615
+ payload?: Record<string, any> | undefined;
2616
+ next?: {
2617
+ type: "screen";
2618
+ name: string;
2619
+ } | undefined;
2620
+ url?: string | undefined;
2621
+ }>>;
2622
+ "on-select-action": z.ZodOptional<z.ZodObject<{
2623
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2624
+ next: z.ZodOptional<z.ZodObject<{
2625
+ type: z.ZodLiteral<"screen">;
2626
+ name: z.ZodString;
2627
+ }, "strip", z.ZodTypeAny, {
2628
+ type: "screen";
2629
+ name: string;
2630
+ }, {
2631
+ type: "screen";
2632
+ name: string;
2633
+ }>>;
2634
+ url: z.ZodOptional<z.ZodString>;
2635
+ } & {
2636
+ name: z.ZodUnion<[z.ZodLiteral<"update_data">, z.ZodLiteral<"data_exchange">]>;
2637
+ }, "strip", z.ZodTypeAny, {
2638
+ name: "data_exchange" | "update_data";
2639
+ payload?: Record<string, any> | undefined;
2640
+ next?: {
2641
+ type: "screen";
2642
+ name: string;
2643
+ } | undefined;
2644
+ url?: string | undefined;
2645
+ }, {
2646
+ name: "data_exchange" | "update_data";
2647
+ payload?: Record<string, any> | undefined;
2648
+ next?: {
2649
+ type: "screen";
2650
+ name: string;
2651
+ } | undefined;
2652
+ url?: string | undefined;
2653
+ }>>;
2654
+ "on-unselect-action": z.ZodOptional<z.ZodObject<{
2655
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2656
+ next: z.ZodOptional<z.ZodObject<{
2657
+ type: z.ZodLiteral<"screen">;
2658
+ name: z.ZodString;
2659
+ }, "strip", z.ZodTypeAny, {
2660
+ type: "screen";
2661
+ name: string;
2662
+ }, {
2663
+ type: "screen";
2664
+ name: string;
2665
+ }>>;
2666
+ url: z.ZodOptional<z.ZodString>;
2667
+ } & {
2668
+ name: z.ZodUnion<[z.ZodLiteral<"update_data">, z.ZodLiteral<"data_exchange">]>;
2669
+ }, "strip", z.ZodTypeAny, {
2670
+ name: "data_exchange" | "update_data";
2671
+ payload?: Record<string, any> | undefined;
2672
+ next?: {
2673
+ type: "screen";
2674
+ name: string;
2675
+ } | undefined;
2676
+ url?: string | undefined;
2677
+ }, {
2678
+ name: "data_exchange" | "update_data";
2679
+ payload?: Record<string, any> | undefined;
2680
+ next?: {
2681
+ type: "screen";
2682
+ name: string;
2683
+ } | undefined;
2684
+ url?: string | undefined;
2685
+ }>>;
2686
+ }, "strip", z.ZodTypeAny, {
2687
+ type: "ChipsSelector";
2688
+ name: string;
2689
+ label: string;
2690
+ "data-source": {
2691
+ id: string;
2692
+ title: string;
2693
+ enabled?: boolean | undefined;
2694
+ description?: string | undefined;
2695
+ metadata?: string | undefined;
2696
+ image?: string | undefined;
2697
+ "alt-text"?: string | undefined;
2698
+ color?: string | undefined;
2699
+ "on-click-action"?: {
2700
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2701
+ payload?: Record<string, any> | undefined;
2702
+ next?: {
2703
+ type: "screen";
2704
+ name: string;
2705
+ } | undefined;
2706
+ url?: string | undefined;
2707
+ } | undefined;
2708
+ "on-select-action"?: {
2709
+ name: "update_data";
2710
+ payload?: Record<string, any> | undefined;
2711
+ next?: {
2712
+ type: "screen";
2713
+ name: string;
2714
+ } | undefined;
2715
+ url?: string | undefined;
2716
+ } | undefined;
2717
+ "on-unselect-action"?: {
2718
+ name: "update_data";
2719
+ payload?: Record<string, any> | undefined;
2720
+ next?: {
2721
+ type: "screen";
2722
+ name: string;
2723
+ } | undefined;
2724
+ url?: string | undefined;
2725
+ } | undefined;
2726
+ }[];
2727
+ required?: boolean | undefined;
2728
+ enabled?: boolean | undefined;
2729
+ "error-message"?: string | undefined;
2730
+ "init-value"?: string | undefined;
2731
+ visible?: boolean | undefined;
2732
+ description?: string | undefined;
2733
+ "on-click-action"?: {
2734
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2735
+ payload?: Record<string, any> | undefined;
2736
+ next?: {
2737
+ type: "screen";
2738
+ name: string;
2739
+ } | undefined;
2740
+ url?: string | undefined;
2741
+ } | undefined;
2742
+ "on-select-action"?: {
2743
+ name: "data_exchange" | "update_data";
2744
+ payload?: Record<string, any> | undefined;
2745
+ next?: {
2746
+ type: "screen";
2747
+ name: string;
2748
+ } | undefined;
2749
+ url?: string | undefined;
2750
+ } | undefined;
2751
+ "on-unselect-action"?: {
2752
+ name: "data_exchange" | "update_data";
2753
+ payload?: Record<string, any> | undefined;
2754
+ next?: {
2755
+ type: "screen";
2756
+ name: string;
2757
+ } | undefined;
2758
+ url?: string | undefined;
2759
+ } | undefined;
2760
+ "min-selected-items"?: number | undefined;
2761
+ "max-selected-items"?: number | undefined;
2762
+ }, {
2763
+ type: "ChipsSelector";
2764
+ name: string;
2765
+ label: string;
2766
+ "data-source": {
2767
+ id: string;
2768
+ title: string;
2769
+ enabled?: boolean | undefined;
2770
+ description?: string | undefined;
2771
+ metadata?: string | undefined;
2772
+ image?: string | undefined;
2773
+ "alt-text"?: string | undefined;
2774
+ color?: string | undefined;
2775
+ "on-click-action"?: {
2776
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2777
+ payload?: Record<string, any> | undefined;
2778
+ next?: {
2779
+ type: "screen";
2780
+ name: string;
2781
+ } | undefined;
2782
+ url?: string | undefined;
2783
+ } | undefined;
2784
+ "on-select-action"?: {
2785
+ name: "update_data";
2786
+ payload?: Record<string, any> | undefined;
2787
+ next?: {
2788
+ type: "screen";
2789
+ name: string;
2790
+ } | undefined;
2791
+ url?: string | undefined;
2792
+ } | undefined;
2793
+ "on-unselect-action"?: {
2794
+ name: "update_data";
2795
+ payload?: Record<string, any> | undefined;
2796
+ next?: {
2797
+ type: "screen";
2798
+ name: string;
2799
+ } | undefined;
2800
+ url?: string | undefined;
2801
+ } | undefined;
2802
+ }[];
2803
+ required?: boolean | undefined;
2804
+ enabled?: boolean | undefined;
2805
+ "error-message"?: string | undefined;
2806
+ "init-value"?: string | undefined;
2807
+ visible?: boolean | undefined;
2808
+ description?: string | undefined;
2809
+ "on-click-action"?: {
2810
+ name: "data_exchange" | "navigate" | "complete" | "update_data" | "open_url";
2811
+ payload?: Record<string, any> | undefined;
2812
+ next?: {
2813
+ type: "screen";
2814
+ name: string;
2815
+ } | undefined;
2816
+ url?: string | undefined;
2817
+ } | undefined;
2818
+ "on-select-action"?: {
2819
+ name: "data_exchange" | "update_data";
2820
+ payload?: Record<string, any> | undefined;
2821
+ next?: {
2822
+ type: "screen";
2823
+ name: string;
2824
+ } | undefined;
2825
+ url?: string | undefined;
2826
+ } | undefined;
2827
+ "on-unselect-action"?: {
2828
+ name: "data_exchange" | "update_data";
2829
+ payload?: Record<string, any> | undefined;
2830
+ next?: {
2831
+ type: "screen";
2832
+ name: string;
2833
+ } | undefined;
2834
+ url?: string | undefined;
2835
+ } | undefined;
2836
+ "min-selected-items"?: number | undefined;
2837
+ "max-selected-items"?: number | undefined;
2838
+ }>;
2839
+ readonly PhotoPicker: z.ZodObject<{
2840
+ name: z.ZodString;
2841
+ required: z.ZodOptional<z.ZodBoolean>;
2842
+ enabled: z.ZodOptional<z.ZodBoolean>;
2843
+ "error-message": z.ZodOptional<z.ZodString>;
2844
+ "init-value": z.ZodOptional<z.ZodString>;
2845
+ } & {
2846
+ visible: z.ZodOptional<z.ZodBoolean>;
2847
+ } & {
2848
+ type: z.ZodLiteral<"PhotoPicker">;
2849
+ label: z.ZodString;
2850
+ description: z.ZodOptional<z.ZodString>;
2851
+ "photo-source": z.ZodOptional<z.ZodDefault<z.ZodEnum<["camera_gallery", "camera", "gallery"]>>>;
2852
+ "max-file-size-kb": z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2853
+ "min-uploaded-photos": z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2854
+ "max-uploaded-photos": z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2855
+ }, "strip", z.ZodTypeAny, {
2856
+ type: "PhotoPicker";
2857
+ name: string;
2858
+ label: string;
2859
+ required?: boolean | undefined;
2860
+ enabled?: boolean | undefined;
2861
+ "error-message"?: string | undefined;
2862
+ "init-value"?: string | undefined;
2863
+ visible?: boolean | undefined;
2864
+ description?: string | undefined;
2865
+ "photo-source"?: "camera_gallery" | "camera" | "gallery" | undefined;
2866
+ "max-file-size-kb"?: number | undefined;
2867
+ "min-uploaded-photos"?: number | undefined;
2868
+ "max-uploaded-photos"?: number | undefined;
2869
+ }, {
2870
+ type: "PhotoPicker";
2871
+ name: string;
2872
+ label: string;
2873
+ required?: boolean | undefined;
2874
+ enabled?: boolean | undefined;
2875
+ "error-message"?: string | undefined;
2876
+ "init-value"?: string | undefined;
2877
+ visible?: boolean | undefined;
2878
+ description?: string | undefined;
2879
+ "photo-source"?: "camera_gallery" | "camera" | "gallery" | undefined;
2880
+ "max-file-size-kb"?: number | undefined;
2881
+ "min-uploaded-photos"?: number | undefined;
2882
+ "max-uploaded-photos"?: number | undefined;
2883
+ }>;
2884
+ readonly DocumentPicker: z.ZodObject<{
2885
+ name: z.ZodString;
2886
+ required: z.ZodOptional<z.ZodBoolean>;
2887
+ enabled: z.ZodOptional<z.ZodBoolean>;
2888
+ "error-message": z.ZodOptional<z.ZodString>;
2889
+ "init-value": z.ZodOptional<z.ZodString>;
2890
+ } & {
2891
+ visible: z.ZodOptional<z.ZodBoolean>;
2892
+ } & {
2893
+ type: z.ZodLiteral<"DocumentPicker">;
2894
+ label: z.ZodString;
2895
+ description: z.ZodOptional<z.ZodString>;
2896
+ "max-file-size-kb": z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2897
+ "min-uploaded-documents": z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2898
+ "max-uploaded-documents": z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2899
+ "allowed-mime-types": z.ZodOptional<z.ZodArray<z.ZodEnum<["application/gzip", "application/msword", "application/pdf", "application/vnd.ms-excel", "application/vnd.ms-powerpoint", "application/vnd.oasis.opendocument.presentation", "application/vnd.oasis.opendocument.spreadsheet", "application/vnd.oasis.opendocument.text", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/x-7z-compressed", "application/zip", "image/avif", "image/gif", "image/heic", "image/heif", "image/jpeg", "image/png", "image/tiff", "image/webp", "text/plain", "video/mp4", "video/mpeg"]>, "many">>;
2900
+ }, "strip", z.ZodTypeAny, {
2901
+ type: "DocumentPicker";
2902
+ name: string;
2903
+ label: string;
2904
+ required?: boolean | undefined;
2905
+ enabled?: boolean | undefined;
2906
+ "error-message"?: string | undefined;
2907
+ "init-value"?: string | undefined;
2908
+ visible?: boolean | undefined;
2909
+ description?: string | undefined;
2910
+ "max-file-size-kb"?: number | undefined;
2911
+ "min-uploaded-documents"?: number | undefined;
2912
+ "max-uploaded-documents"?: number | undefined;
2913
+ "allowed-mime-types"?: ("application/gzip" | "application/msword" | "application/pdf" | "application/vnd.ms-excel" | "application/vnd.ms-powerpoint" | "application/vnd.oasis.opendocument.presentation" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.text" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/x-7z-compressed" | "application/zip" | "image/avif" | "image/gif" | "image/heic" | "image/heif" | "image/jpeg" | "image/png" | "image/tiff" | "image/webp" | "text/plain" | "video/mp4" | "video/mpeg")[] | undefined;
2914
+ }, {
2915
+ type: "DocumentPicker";
2916
+ name: string;
2917
+ label: string;
2918
+ required?: boolean | undefined;
2919
+ enabled?: boolean | undefined;
2920
+ "error-message"?: string | undefined;
2921
+ "init-value"?: string | undefined;
2922
+ visible?: boolean | undefined;
2923
+ description?: string | undefined;
2924
+ "max-file-size-kb"?: number | undefined;
2925
+ "min-uploaded-documents"?: number | undefined;
2926
+ "max-uploaded-documents"?: number | undefined;
2927
+ "allowed-mime-types"?: ("application/gzip" | "application/msword" | "application/pdf" | "application/vnd.ms-excel" | "application/vnd.ms-powerpoint" | "application/vnd.oasis.opendocument.presentation" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.text" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/x-7z-compressed" | "application/zip" | "image/avif" | "image/gif" | "image/heic" | "image/heif" | "image/jpeg" | "image/png" | "image/tiff" | "image/webp" | "text/plain" | "video/mp4" | "video/mpeg")[] | undefined;
2928
+ }>;
2929
+ };
2930
+ type TypedFlowComponent = z.infer<(typeof components$1)[keyof typeof components$1]>;
2931
+ type PickFlowComponent<T extends keyof typeof components$1> = Extract<TypedFlowComponent, {
2932
+ type: T;
2933
+ }>;
2934
+
2935
+ type NativeFlowJSON = {
2936
+ version: "7.2";
2937
+ data_api_version: "3.0";
2938
+ routing_model: Partial<Record<PropertyKey, Array<PropertyKey>>>;
2939
+ screens: Array<AnyType>;
2940
+ };
2941
+
2942
+ type DevFlowJson<M extends FlowMetadata = FlowMetadata> = NativeFlowJSON & {
2943
+ id?: string;
2944
+ preview?: WaSDKGetFlowWebPreviewPageRequestQuery;
2945
+ metadata: M;
2946
+ };
2947
+
2948
+ type TypedFlowScreenComponents = Array<DistributivePartialExcept<TypedFlowComponent, "id" | "name" | "type">>;
2949
+ type TypedFlowScreen = {
2950
+ type: "blank" | "form";
2951
+ title?: string;
2952
+ data?: ZodSchema<AnyType>;
2953
+ terminal?: boolean;
2954
+ success?: boolean;
2955
+ refresh_on_back?: boolean;
2956
+ sensitive?: Array<string>;
2957
+ components: TypedFlowScreenComponents;
2958
+ };
2959
+ type TypedFlowScreens = Record<string, TypedFlowScreen>;
2960
+ type TypedFlowRouting<Screens extends TypedFlowScreens> = Partial<Record<keyof Screens, Array<keyof Screens>>>;
2961
+ type TypedComponentData<T extends TypedFlowComponent["type"]> = DistributiveOmit<Extract<TypedFlowComponent, {
2962
+ type: T;
2963
+ }>, "name" | "id">;
2964
+ type TypedFlowJson<Screens extends TypedFlowScreens = TypedFlowScreens, Metadata extends FlowMetadata = FlowMetadata> = {
2965
+ id?: DevFlowJson["id"];
2966
+ preview?: DevFlowJson["preview"];
2967
+ metadata: DevFlowJson<Metadata>["metadata"];
2968
+ version: DevFlowJson["version"];
2969
+ data_api_version: DevFlowJson["data_api_version"];
2970
+ routing_model: TypedFlowRouting<Screens>;
2971
+ screens: Screens;
2972
+ };
2973
+
2974
+ declare const flow$1: <Screens extends TypedFlowScreens, const Metadata extends FlowMetadata>(flow: TypedFlowJson<Screens, Metadata>) => TypedFlowJson<Screens, Metadata>;
2975
+
2976
+ declare function createDevFlowJson<Screens extends TypedFlowScreens, const Metadata extends FlowMetadata>(TypedFlowJson: TypedFlowJson<Screens, Metadata>): {
2977
+ readonly screens: any[];
2978
+ readonly id?: DevFlowJson["id"];
2979
+ readonly preview?: DevFlowJson["preview"];
2980
+ readonly metadata: Metadata;
2981
+ readonly version: DevFlowJson["version"];
2982
+ readonly data_api_version: DevFlowJson["data_api_version"];
2983
+ readonly routing_model: Partial<Record<keyof Screens, (keyof Screens)[]>>;
2984
+ };
2985
+
2986
+ declare function createNativeFlowJson(devFlowJson: DevFlowJson): NativeFlowJSON;
2987
+
2988
+ declare function screen<const T extends TypedFlowScreen>(screen: T): T;
2989
+ declare function state(store: "form" | "data", key: string): string;
2990
+ declare function state(store: "screen", screen: string, type: "data" | "form", key: string): string;
2991
+ declare const dynamic_action: {
2992
+ readonly name: "data_exchange";
2993
+ readonly payload: {};
2994
+ };
2995
+ declare const navigate: (screen: string, data?: {}) => {
2996
+ readonly name: "navigate";
2997
+ readonly next: AnyType;
2998
+ readonly payload: {};
2999
+ };
3000
+ declare function complete(data?: {}): {
3001
+ readonly name: "complete";
3002
+ readonly payload: {};
3003
+ };
3004
+ declare function dynamic_navigate(screen: string, data?: {}): {
3005
+ readonly name: "data_exchange";
3006
+ readonly payload: {
3007
+ readonly navigate: {
3008
+ readonly screen: string;
3009
+ readonly data: {};
3010
+ };
3011
+ };
3012
+ };
3013
+ declare const form_payload: <F extends string>(...fields: F[]) => Record<F, string>;
3014
+ declare const zod_payload: (zodObject: Zod.ZodObject<AnyType, AnyType, AnyType>) => Record<string, string>;
3015
+ declare function inline(str: string): string;
3016
+ declare function txt(...str: string[]): string;
3017
+ declare function condition(value: string): boolean;
3018
+ declare function components<const T extends TypedFlowScreenComponents>(cs: T): T;
3019
+ declare function dynamic_refresh(data?: Record<string, AnyType>): {
3020
+ readonly name: "data_exchange";
3021
+ readonly payload: {
3022
+ readonly refresh: Record<string, any>;
3023
+ };
3024
+ };
3025
+ declare const uniqueId: (id: string) => string;
3026
+ declare const parseUniqueId: (id: string) => string;
3027
+
3028
+ declare const snippets_complete: typeof complete;
3029
+ declare const snippets_components: typeof components;
3030
+ declare const snippets_condition: typeof condition;
3031
+ declare const snippets_dynamic_action: typeof dynamic_action;
3032
+ declare const snippets_dynamic_navigate: typeof dynamic_navigate;
3033
+ declare const snippets_dynamic_refresh: typeof dynamic_refresh;
3034
+ declare const snippets_form_payload: typeof form_payload;
3035
+ declare const snippets_inline: typeof inline;
3036
+ declare const snippets_navigate: typeof navigate;
3037
+ declare const snippets_parseUniqueId: typeof parseUniqueId;
3038
+ declare const snippets_screen: typeof screen;
3039
+ declare const snippets_state: typeof state;
3040
+ declare const snippets_txt: typeof txt;
3041
+ declare const snippets_uniqueId: typeof uniqueId;
3042
+ declare const snippets_zod_payload: typeof zod_payload;
3043
+ declare namespace snippets {
3044
+ export { snippets_complete as complete, snippets_components as components, snippets_condition as condition, snippets_dynamic_action as dynamic_action, snippets_dynamic_navigate as dynamic_navigate, snippets_dynamic_refresh as dynamic_refresh, snippets_form_payload as form_payload, snippets_inline as inline, snippets_navigate as navigate, snippets_parseUniqueId as parseUniqueId, snippets_screen as screen, snippets_state as state, snippets_txt as txt, snippets_uniqueId as uniqueId, snippets_zod_payload as zod_payload };
3045
+ }
3046
+
3047
+ declare function componentData<T extends TypedFlowComponent["type"]>(data: TypedComponentData<T>): Record<string, any>;
3048
+
3049
+ type StoreAdapter<Schema extends Record<string, AnyType> = Record<string, AnyType>> = {
3050
+ stash: () => Promisable<Schema>;
3051
+ flush: (data: Partial<Schema>) => Promisable<void>;
3052
+ };
3053
+ type AdapterFactoryFn<Adapter extends StoreAdapter> = (ctx: {
3054
+ flow_identifier: string;
3055
+ chat_id: string;
3056
+ }) => Adapter;
3057
+ declare function createStoreFactory<Adapter extends StoreAdapter>(adapterFactory: AdapterFactoryFn<Adapter>): <Schema extends ZodSchema<AnyType>>(schema: Schema, defaultValue?: z.infer<Schema>) => Store<Schema, Adapter>;
3058
+ type Store<Schema extends ZodSchema<AnyType> = ZodSchema<AnyType>, Adapter extends StoreAdapter = StoreAdapter> = {
3059
+ adapterFactory: AdapterFactoryFn<Adapter>;
3060
+ schema: Schema;
3061
+ defaultValue: z.infer<Schema>;
3062
+ };
3063
+
3064
+ interface FlowHandlerBaseContext {
3065
+ chatId: string;
3066
+ screen: string;
3067
+ flow: string;
3068
+ identifier: string;
3069
+ parameters: FlowParameters;
3070
+ }
3071
+ type FlowHandlerContext<DataKey extends string, CustomStore extends Store> = ReturnType<typeof createFlowContext<DataKey>> & FlowHandlerBaseContext & {
3072
+ store: z.infer<CustomStore["schema"]>;
3073
+ };
3074
+ declare function createFlowContext<DataKeys extends string>(context: FlowHandlerBaseContext): {
3075
+ init: <D>(data: D) => {
3076
+ data: D;
3077
+ screen: string;
3078
+ };
3079
+ navigate: <D>(screen: string, data?: D) => {
3080
+ navigate: {
3081
+ data: {};
3082
+ screen: string;
3083
+ };
3084
+ };
3085
+ first: (screen: string) => {
3086
+ navigate: {
3087
+ data: {};
3088
+ screen: string;
3089
+ };
3090
+ };
3091
+ refresh: (data: Partial<Record<DataKeys, AnyType>> & {
3092
+ [key: string]: AnyType;
3093
+ }) => {
3094
+ data: Partial<Record<DataKeys, any>> & {
3095
+ [key: string]: any;
3096
+ };
3097
+ screen: string;
3098
+ };
3099
+ error: (messages: Partial<Record<DataKeys, string>>) => {
3100
+ data: {
3101
+ form: {
3102
+ error_messages: Partial<Record<DataKeys, string>>;
3103
+ };
3104
+ };
3105
+ screen: string;
3106
+ };
3107
+ success: <D>(data?: D & {
3108
+ intent?: string | null;
3109
+ }) => {
3110
+ data: {};
3111
+ screen: string;
3112
+ };
3113
+ chatId: string;
3114
+ screen: string;
3115
+ flow: string;
3116
+ identifier: string;
3117
+ parameters: FlowParameters;
3118
+ };
3119
+
3120
+ type FlowController = {
3121
+ name: string;
3122
+ screenHandlers: AnyType;
3123
+ };
3124
+ declare function getFlowMetadata<const Flow extends TypedFlowJson<TypedFlowScreens, FlowMetadata>>(flow: Flow): {
3125
+ readonly name: (typeof flow)["metadata"]["name"];
3126
+ readonly _typings_routing: Extract<keyof (typeof flow)["routing_model"], string>;
3127
+ };
3128
+ declare function flowController<const Flow extends TypedFlowJson<TypedFlowScreens, FlowMetadata>, const GetMetadataReturn extends ReturnType<typeof getFlowMetadata<Flow>>>(metadata: GetMetadataReturn, screenHandlers: {
3129
+ [key in Lowercase<GetMetadataReturn["_typings_routing"]>]?: ReturnType<typeof screenController<AnyType, AnyType, AnyType, AnyType, AnyType, AnyType>>;
3130
+ } & {
3131
+ first: ({ ctx }: {
3132
+ ctx: FlowHandlerBaseContext;
3133
+ }) => Promisable<AnyType>;
3134
+ }): {
3135
+ screenHandlers: { [key in Lowercase<GetMetadataReturn["_typings_routing"]>]?: {
3136
+ init: ({ ctx, input, variables, }: {
3137
+ ctx: FlowHandlerBaseContext;
3138
+ input: any;
3139
+ variables: any;
3140
+ }) => Promise<any>;
3141
+ refresh: ({ ctx, input, variables, }: {
3142
+ ctx: FlowHandlerBaseContext;
3143
+ input: any;
3144
+ variables: any;
3145
+ }) => Promise<any>;
3146
+ submit: ({ ctx, input, variables, }: {
3147
+ ctx: FlowHandlerBaseContext;
3148
+ input: any;
3149
+ variables: any;
3150
+ }) => Promise<any>;
3151
+ back: ({ ctx, input, variables, }: {
3152
+ ctx: FlowHandlerBaseContext;
3153
+ input: any;
3154
+ variables: any;
3155
+ }) => Promise<any>;
3156
+ } | undefined; } & {
3157
+ first: ({ ctx }: {
3158
+ ctx: FlowHandlerBaseContext;
3159
+ }) => Promisable<AnyType>;
3160
+ };
3161
+ name: GetMetadataReturn["name"];
3162
+ };
3163
+
3164
+ type FlowControllerPool<FlowControllers extends FlowController[] = []> = Record<FlowControllers[number]["name"], AnyType>;
3165
+ declare function createFlowControllerPool<const FlowControllers extends FlowController[]>(pool: FlowControllers): FlowControllerPool<FlowControllers>;
3166
+
3167
+ type FlowDispatchableAction = "init" | "back" | "refresh" | "submit" | "first";
3168
+ type ScreenHandlerResponse = WhatsappFlowResponse | {
3169
+ navigate: WhatsappFlowResponse;
3170
+ };
3171
+ declare function dispatchFlowPayload(controllerPool: FlowControllerPool, payload: WhatsappFlowDecryptedWebhookBody): Promise<WhatsappFlowResponse>;
3172
+ declare function buildApiResponse(screenHandlerResponse: ScreenHandlerResponse, token: string): WhatsappFlowResponse;
3173
+
3174
+ type DeepComponentsKeys<T, Depth extends number[] = [0]> = Depth["length"] extends 10 ? never : T extends readonly AnyType[] ? DeepComponentsKeys<T[number], [...Depth, 0]> : T extends object ? (T extends {
3175
+ id: string;
3176
+ type: string;
3177
+ } ? `id.${T["id"]}` : never) | (T extends {
3178
+ name: string;
3179
+ type: string;
3180
+ } ? `name.${T["name"]}` : never) : never;
3181
+ type ComponentKeys<S extends TypedFlowScreen> = StripNonIdentifierKeys<DeepComponentsKeys<S["components"]>>;
3182
+ type StripNonIdentifierKeys<Keys extends string> = Keys extends `${infer Prefix}.${infer Suffix}` ? Prefix extends "id" | "name" ? Keys : never : never;
3183
+ type ExtractIdentifier<Keys extends string, P extends "all" | "id" | "name" = "all"> = P extends "all" ? Keys extends `${infer Prefix}.${infer Suffix}` ? Prefix extends "id" | "name" ? Suffix : never : never : Keys extends `${P}.${infer Suffix}` ? Suffix : never;
3184
+
3185
+ declare const getScreenMetadata: <const S extends TypedFlowScreen>(_: S) => ComponentKeys<S>;
3186
+ declare const firstScreen: <ExtendedContext, Context extends FlowHandlerContext<AnyType, Store> & ExtendedContext, StoreSchema extends Store["schema"], StoreAdapter extends ReturnType<Store["adapterFactory"]>, CustomStore extends Store<StoreSchema, StoreAdapter>>({ define, store, middleware, }: {
3187
+ define: (context: Context) => Promisable<AnyType>;
3188
+ store?: CustomStore | undefined;
3189
+ middleware?: (ctx: FlowHandlerContext<AnyType, Store>) => Promisable<ExtendedContext>;
3190
+ }) => ({ ctx }: {
3191
+ ctx: FlowHandlerBaseContext;
3192
+ }) => Promise<any>;
3193
+ declare function screenController<ScreenKeys extends string, InputSchema extends ZodSchema<Record<ExtractIdentifier<ScreenKeys, "name">, AnyType>>, VariablesSchema extends ZodSchema<AnyType>, CustomStore extends Store, ExtendedContext, Context extends FlowHandlerContext<ExtractIdentifier<ScreenKeys>, CustomStore> & ExtendedContext>(_: ScreenKeys, controller: {
3194
+ middleware?: (ctx: FlowHandlerContext<ExtractIdentifier<ScreenKeys>, Store>) => Promisable<ExtendedContext>;
3195
+ store?: CustomStore | undefined;
3196
+ input?: InputSchema;
3197
+ variables?: VariablesSchema;
3198
+ actions: {
3199
+ init: (args: {
3200
+ ctx: Context;
3201
+ data: Record<string, AnyType>;
3202
+ }) => Promisable<Partial<Record<ExtractIdentifier<ScreenKeys> | "title" | "footer" | "form", AnyType>>>;
3203
+ back?: (args: {
3204
+ ctx: Context;
3205
+ }) => Promisable<AnyType>;
3206
+ refresh?: (args: {
3207
+ ctx: Context;
3208
+ variables: Partial<z.infer<VariablesSchema>>;
3209
+ }) => Promisable<Partial<z.infer<VariablesSchema> & Record<ExtractIdentifier<ScreenKeys, "name">, AnyType> & Record<string, AnyType>>>;
3210
+ submit?: (args: {
3211
+ ctx: Context;
3212
+ input: z.infer<InputSchema>;
3213
+ }) => Promisable<AnyType>;
3214
+ };
3215
+ }): {
3216
+ init: ({ ctx, input, variables, }: {
3217
+ ctx: FlowHandlerBaseContext;
3218
+ input: z.infer<InputSchema>;
3219
+ variables: z.infer<VariablesSchema>;
3220
+ }) => Promise<any>;
3221
+ refresh: ({ ctx, input, variables, }: {
3222
+ ctx: FlowHandlerBaseContext;
3223
+ input: z.infer<InputSchema>;
3224
+ variables: z.infer<VariablesSchema>;
3225
+ }) => Promise<any>;
3226
+ submit: ({ ctx, input, variables, }: {
3227
+ ctx: FlowHandlerBaseContext;
3228
+ input: z.infer<InputSchema>;
3229
+ variables: z.infer<VariablesSchema>;
3230
+ }) => Promise<any>;
3231
+ back: ({ ctx, input, variables, }: {
3232
+ ctx: FlowHandlerBaseContext;
3233
+ input: z.infer<InputSchema>;
3234
+ variables: z.infer<VariablesSchema>;
3235
+ }) => Promise<any>;
3236
+ };
3237
+
3238
+ declare const flowMediaInput: z.ZodArray<z.ZodObject<{
3239
+ media_id: z.ZodString;
3240
+ cdn_url: z.ZodString;
3241
+ file_name: z.ZodString;
3242
+ encryption_metadata: z.ZodObject<{
3243
+ encrypted_hash: z.ZodString;
3244
+ iv: z.ZodString;
3245
+ encryption_key: z.ZodString;
3246
+ hmac_key: z.ZodString;
3247
+ plaintext_hash: z.ZodString;
3248
+ }, "strip", z.ZodTypeAny, {
3249
+ encrypted_hash: string;
3250
+ iv: string;
3251
+ encryption_key: string;
3252
+ hmac_key: string;
3253
+ plaintext_hash: string;
3254
+ }, {
3255
+ encrypted_hash: string;
3256
+ iv: string;
3257
+ encryption_key: string;
3258
+ hmac_key: string;
3259
+ plaintext_hash: string;
3260
+ }>;
3261
+ }, "strip", z.ZodTypeAny, {
3262
+ media_id: string;
3263
+ cdn_url: string;
3264
+ file_name: string;
3265
+ encryption_metadata: {
3266
+ encrypted_hash: string;
3267
+ iv: string;
3268
+ encryption_key: string;
3269
+ hmac_key: string;
3270
+ plaintext_hash: string;
3271
+ };
3272
+ }, {
3273
+ media_id: string;
3274
+ cdn_url: string;
3275
+ file_name: string;
3276
+ encryption_metadata: {
3277
+ encrypted_hash: string;
3278
+ iv: string;
3279
+ encryption_key: string;
3280
+ hmac_key: string;
3281
+ plaintext_hash: string;
3282
+ };
3283
+ }>, "many">;
3284
+ type FlowMediaInput = z.infer<typeof flowMediaInput>;
3285
+
3286
+ declare function deployFlows(oldFlows: TypedFlowJson[], newFlows: TypedFlowJson[]): Promise<(DevFlowJson | {
3287
+ id: string;
3288
+ flow: DevFlowJson;
3289
+ })[]>;
3290
+
3291
+ export { type AdapterFactoryFn, type DevFlowJson, type FlowController, type FlowControllerPool, type FlowDispatchableAction, type FlowHandlerBaseContext, type FlowHandlerContext, type FlowMediaInput, type NativeFlowJSON, type PickFlowComponent, type Store, type StoreAdapter, type TypedComponentData, type TypedFlowJson, type TypedFlowRouting, type TypedFlowScreen, type TypedFlowScreenComponents, type TypedFlowScreens, buildApiResponse, complete, componentData, components, condition, createDevFlowJson, createFlowContext, createFlowControllerPool, createNativeFlowJson, createStoreFactory, deployFlows, dispatchFlowPayload, dynamic_action, dynamic_navigate, dynamic_refresh, snippets as f, firstScreen, flow$1 as flow, flowController, flowMediaInput, form_payload, getFlowMetadata, getScreenMetadata, inline, navigate, parseUniqueId, screen, screenController, state, txt, uniqueId, zod_payload };