@apostlejs/flows 0.0.7 → 0.0.9

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