@voiceflow/dtos-interact 2.34.1 → 2.35.1-d62a34e5bb.61

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.
Files changed (39) hide show
  1. package/build/interface-config/interface-config-buttons/interface-config-buttons.dto.d.ts +89 -89
  2. package/build/interface-config/interface-config-buttons/interface-config-buttons.dto.d.ts.map +1 -1
  3. package/build/interface-config/interface-config-buttons/interface-config-buttons.dto.js +9 -9
  4. package/build/interface-config/interface-config-buttons/interface-config-buttons.dto.js.map +1 -1
  5. package/build/interface-config/interface-config-composer/interface-config-composer.dto.d.ts +14 -14
  6. package/build/interface-config/interface-config-composer/interface-config-composer.dto.js +5 -5
  7. package/build/interface-config/interface-config-composer/interface-config-composer.dto.js.map +1 -1
  8. package/build/interface-config/interface-config-header/interface-config-header.dto.d.ts +6 -6
  9. package/build/interface-config/interface-config-header/interface-config-header.dto.js +3 -3
  10. package/build/interface-config/interface-config-header/interface-config-header.dto.js.map +1 -1
  11. package/build/interface-config/interface-config-history/interface-config-history.dto.d.ts +4 -4
  12. package/build/interface-config/interface-config-history/interface-config-history.dto.js +2 -2
  13. package/build/interface-config/interface-config-history/interface-config-history.dto.js.map +1 -1
  14. package/build/interface-config/interface-config-launcher/interface-config-launcher.dto.d.ts +10 -10
  15. package/build/interface-config/interface-config-launcher/interface-config-launcher.dto.js +5 -5
  16. package/build/interface-config/interface-config-launcher/interface-config-launcher.dto.js.map +1 -1
  17. package/build/interface-config/interface-config-layout/interface-config-layout.dto.d.ts +28 -28
  18. package/build/interface-config/interface-config-layout/interface-config-layout.dto.js +8 -8
  19. package/build/interface-config/interface-config-layout/interface-config-layout.dto.js.map +1 -1
  20. package/build/interface-config/interface-config-locale/interface-config-locale.dto.d.ts +4 -4
  21. package/build/interface-config/interface-config-locale/interface-config-locale.dto.js +2 -2
  22. package/build/interface-config/interface-config-locale/interface-config-locale.dto.js.map +1 -1
  23. package/build/interface-config/interface-config-menu/interface-config-menu.dto.d.ts +4 -4
  24. package/build/interface-config/interface-config-menu/interface-config-menu.dto.js +2 -2
  25. package/build/interface-config/interface-config-menu/interface-config-menu.dto.js.map +1 -1
  26. package/build/interface-config/interface-config-messages/interface-config-messages.dto.d.ts +12 -12
  27. package/build/interface-config/interface-config-messages/interface-config-messages.dto.js +6 -6
  28. package/build/interface-config/interface-config-messages/interface-config-messages.dto.js.map +1 -1
  29. package/build/interface-config/interface-config-start/interface-config-start.dto.d.ts +8 -8
  30. package/build/interface-config/interface-config-start/interface-config-start.dto.js +3 -3
  31. package/build/interface-config/interface-config-start/interface-config-start.dto.js.map +1 -1
  32. package/build/interface-config/interface-config-theme/interface-config-theme.dto.d.ts +12 -12
  33. package/build/interface-config/interface-config-theme/interface-config-theme.dto.js +4 -4
  34. package/build/interface-config/interface-config-theme/interface-config-theme.dto.js.map +1 -1
  35. package/build/interface-config/interface-config.dto.d.ts +161 -154
  36. package/build/interface-config/interface-config.dto.d.ts.map +1 -1
  37. package/build/interface-config/interface-config.dto.js +11 -4
  38. package/build/interface-config/interface-config.dto.js.map +1 -1
  39. package/package.json +6 -4
@@ -1,11 +1,11 @@
1
1
  import { z } from 'zod';
2
- /** One object, not a union. An unknown `kind` fails the strict write check; a reader that parses entry by entry drops only that entry. */
2
+ /** One object, not a union. An unknown `kind` or `name` parses as unset, and the entry stays. */
3
3
  export declare const InterfaceConfigButtonIconDTO: z.ZodObject<{
4
- kind: z.ZodOptional<z.ZodEnum<{
4
+ kind: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
5
5
  readonly BUILTIN: 'builtin';
6
6
  readonly ASSET: 'asset';
7
- }>>;
8
- name: z.ZodOptional<z.ZodEnum<{
7
+ }>>>;
8
+ name: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
9
9
  readonly SEND: 'send';
10
10
  readonly PLUS: 'plus';
11
11
  readonly STOP: 'stop';
@@ -56,23 +56,23 @@ export declare const InterfaceConfigButtonIconDTO: z.ZodObject<{
56
56
  readonly LINK: 'link';
57
57
  readonly PACKAGE: 'package';
58
58
  readonly BRIEFCASE: 'briefcase';
59
- }>>;
59
+ }>>>;
60
60
  url: z.ZodOptional<z.ZodString>;
61
61
  tint: z.ZodOptional<z.ZodBoolean>;
62
62
  assetId: z.ZodOptional<z.ZodString>;
63
63
  }, z.core.$strip>;
64
64
  export type InterfaceConfigButtonIcon = z.infer<typeof InterfaceConfigButtonIconDTO>;
65
65
  export declare const InterfaceConfigButtonWhenDTO: z.ZodObject<{
66
- views: z.ZodOptional<z.ZodArray<z.ZodEnum<{
66
+ views: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
67
67
  readonly CHAT: 'chat';
68
68
  readonly CALL: 'call';
69
- }>>>;
70
- phases: z.ZodOptional<z.ZodArray<z.ZodEnum<{
69
+ }>>>>;
70
+ phases: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
71
71
  readonly START: 'start';
72
72
  readonly AI: 'ai';
73
73
  readonly HANDOFF: 'handoff';
74
74
  readonly ENDED: 'ended';
75
- }>>>;
75
+ }>>>>;
76
76
  }, z.core.$strip>;
77
77
  export type InterfaceConfigButtonWhen = z.infer<typeof InterfaceConfigButtonWhenDTO>;
78
78
  export declare const InterfaceConfigButtonDTO: z.ZodObject<{
@@ -84,11 +84,11 @@ export declare const InterfaceConfigButtonDTO: z.ZodObject<{
84
84
  translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
85
85
  }, z.core.$strip>>;
86
86
  icon: z.ZodOptional<z.ZodObject<{
87
- kind: z.ZodOptional<z.ZodEnum<{
87
+ kind: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
88
88
  readonly BUILTIN: 'builtin';
89
89
  readonly ASSET: 'asset';
90
- }>>;
91
- name: z.ZodOptional<z.ZodEnum<{
90
+ }>>>;
91
+ name: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
92
92
  readonly SEND: 'send';
93
93
  readonly PLUS: 'plus';
94
94
  readonly STOP: 'stop';
@@ -139,27 +139,27 @@ export declare const InterfaceConfigButtonDTO: z.ZodObject<{
139
139
  readonly LINK: 'link';
140
140
  readonly PACKAGE: 'package';
141
141
  readonly BRIEFCASE: 'briefcase';
142
- }>>;
142
+ }>>>;
143
143
  url: z.ZodOptional<z.ZodString>;
144
144
  tint: z.ZodOptional<z.ZodBoolean>;
145
145
  assetId: z.ZodOptional<z.ZodString>;
146
146
  }, z.core.$strip>>;
147
147
  when: z.ZodOptional<z.ZodObject<{
148
- views: z.ZodOptional<z.ZodArray<z.ZodEnum<{
148
+ views: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
149
149
  readonly CHAT: 'chat';
150
150
  readonly CALL: 'call';
151
- }>>>;
152
- phases: z.ZodOptional<z.ZodArray<z.ZodEnum<{
151
+ }>>>>;
152
+ phases: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
153
153
  readonly START: 'start';
154
154
  readonly AI: 'ai';
155
155
  readonly HANDOFF: 'handoff';
156
156
  readonly ENDED: 'ended';
157
- }>>>;
157
+ }>>>>;
158
158
  }, z.core.$strip>>;
159
- emphasis: z.ZodOptional<z.ZodEnum<{
159
+ emphasis: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
160
160
  readonly PRIMARY: 'primary';
161
161
  readonly SECONDARY: 'secondary';
162
- }>>;
162
+ }>>>;
163
163
  enabled: z.ZodOptional<z.ZodBoolean>;
164
164
  }, z.core.$strip>;
165
165
  export type InterfaceConfigButton = z.infer<typeof InterfaceConfigButtonDTO>;
@@ -174,11 +174,11 @@ export declare const InterfaceConfigButtonsDTO: z.ZodObject<{
174
174
  translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
175
175
  }, z.core.$strip>>;
176
176
  icon: z.ZodOptional<z.ZodObject<{
177
- kind: z.ZodOptional<z.ZodEnum<{
177
+ kind: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
178
178
  readonly BUILTIN: 'builtin';
179
179
  readonly ASSET: 'asset';
180
- }>>;
181
- name: z.ZodOptional<z.ZodEnum<{
180
+ }>>>;
181
+ name: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
182
182
  readonly SEND: 'send';
183
183
  readonly PLUS: 'plus';
184
184
  readonly STOP: 'stop';
@@ -229,27 +229,27 @@ export declare const InterfaceConfigButtonsDTO: z.ZodObject<{
229
229
  readonly LINK: 'link';
230
230
  readonly PACKAGE: 'package';
231
231
  readonly BRIEFCASE: 'briefcase';
232
- }>>;
232
+ }>>>;
233
233
  url: z.ZodOptional<z.ZodString>;
234
234
  tint: z.ZodOptional<z.ZodBoolean>;
235
235
  assetId: z.ZodOptional<z.ZodString>;
236
236
  }, z.core.$strip>>;
237
237
  when: z.ZodOptional<z.ZodObject<{
238
- views: z.ZodOptional<z.ZodArray<z.ZodEnum<{
238
+ views: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
239
239
  readonly CHAT: 'chat';
240
240
  readonly CALL: 'call';
241
- }>>>;
242
- phases: z.ZodOptional<z.ZodArray<z.ZodEnum<{
241
+ }>>>>;
242
+ phases: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
243
243
  readonly START: 'start';
244
244
  readonly AI: 'ai';
245
245
  readonly HANDOFF: 'handoff';
246
246
  readonly ENDED: 'ended';
247
- }>>>;
247
+ }>>>>;
248
248
  }, z.core.$strip>>;
249
- emphasis: z.ZodOptional<z.ZodEnum<{
249
+ emphasis: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
250
250
  readonly PRIMARY: 'primary';
251
251
  readonly SECONDARY: 'secondary';
252
- }>>;
252
+ }>>>;
253
253
  enabled: z.ZodOptional<z.ZodBoolean>;
254
254
  }, z.core.$strip>>>;
255
255
  menu: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -261,11 +261,11 @@ export declare const InterfaceConfigButtonsDTO: z.ZodObject<{
261
261
  translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
262
262
  }, z.core.$strip>>;
263
263
  icon: z.ZodOptional<z.ZodObject<{
264
- kind: z.ZodOptional<z.ZodEnum<{
264
+ kind: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
265
265
  readonly BUILTIN: 'builtin';
266
266
  readonly ASSET: 'asset';
267
- }>>;
268
- name: z.ZodOptional<z.ZodEnum<{
267
+ }>>>;
268
+ name: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
269
269
  readonly SEND: 'send';
270
270
  readonly PLUS: 'plus';
271
271
  readonly STOP: 'stop';
@@ -316,27 +316,27 @@ export declare const InterfaceConfigButtonsDTO: z.ZodObject<{
316
316
  readonly LINK: 'link';
317
317
  readonly PACKAGE: 'package';
318
318
  readonly BRIEFCASE: 'briefcase';
319
- }>>;
319
+ }>>>;
320
320
  url: z.ZodOptional<z.ZodString>;
321
321
  tint: z.ZodOptional<z.ZodBoolean>;
322
322
  assetId: z.ZodOptional<z.ZodString>;
323
323
  }, z.core.$strip>>;
324
324
  when: z.ZodOptional<z.ZodObject<{
325
- views: z.ZodOptional<z.ZodArray<z.ZodEnum<{
325
+ views: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
326
326
  readonly CHAT: 'chat';
327
327
  readonly CALL: 'call';
328
- }>>>;
329
- phases: z.ZodOptional<z.ZodArray<z.ZodEnum<{
328
+ }>>>>;
329
+ phases: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
330
330
  readonly START: 'start';
331
331
  readonly AI: 'ai';
332
332
  readonly HANDOFF: 'handoff';
333
333
  readonly ENDED: 'ended';
334
- }>>>;
334
+ }>>>>;
335
335
  }, z.core.$strip>>;
336
- emphasis: z.ZodOptional<z.ZodEnum<{
336
+ emphasis: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
337
337
  readonly PRIMARY: 'primary';
338
338
  readonly SECONDARY: 'secondary';
339
- }>>;
339
+ }>>>;
340
340
  enabled: z.ZodOptional<z.ZodBoolean>;
341
341
  }, z.core.$strip>>>;
342
342
  composer: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -348,11 +348,11 @@ export declare const InterfaceConfigButtonsDTO: z.ZodObject<{
348
348
  translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
349
349
  }, z.core.$strip>>;
350
350
  icon: z.ZodOptional<z.ZodObject<{
351
- kind: z.ZodOptional<z.ZodEnum<{
351
+ kind: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
352
352
  readonly BUILTIN: 'builtin';
353
353
  readonly ASSET: 'asset';
354
- }>>;
355
- name: z.ZodOptional<z.ZodEnum<{
354
+ }>>>;
355
+ name: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
356
356
  readonly SEND: 'send';
357
357
  readonly PLUS: 'plus';
358
358
  readonly STOP: 'stop';
@@ -403,27 +403,27 @@ export declare const InterfaceConfigButtonsDTO: z.ZodObject<{
403
403
  readonly LINK: 'link';
404
404
  readonly PACKAGE: 'package';
405
405
  readonly BRIEFCASE: 'briefcase';
406
- }>>;
406
+ }>>>;
407
407
  url: z.ZodOptional<z.ZodString>;
408
408
  tint: z.ZodOptional<z.ZodBoolean>;
409
409
  assetId: z.ZodOptional<z.ZodString>;
410
410
  }, z.core.$strip>>;
411
411
  when: z.ZodOptional<z.ZodObject<{
412
- views: z.ZodOptional<z.ZodArray<z.ZodEnum<{
412
+ views: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
413
413
  readonly CHAT: 'chat';
414
414
  readonly CALL: 'call';
415
- }>>>;
416
- phases: z.ZodOptional<z.ZodArray<z.ZodEnum<{
415
+ }>>>>;
416
+ phases: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
417
417
  readonly START: 'start';
418
418
  readonly AI: 'ai';
419
419
  readonly HANDOFF: 'handoff';
420
420
  readonly ENDED: 'ended';
421
- }>>>;
421
+ }>>>>;
422
422
  }, z.core.$strip>>;
423
- emphasis: z.ZodOptional<z.ZodEnum<{
423
+ emphasis: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
424
424
  readonly PRIMARY: 'primary';
425
425
  readonly SECONDARY: 'secondary';
426
- }>>;
426
+ }>>>;
427
427
  enabled: z.ZodOptional<z.ZodBoolean>;
428
428
  }, z.core.$strip>>>;
429
429
  footer: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -435,11 +435,11 @@ export declare const InterfaceConfigButtonsDTO: z.ZodObject<{
435
435
  translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
436
436
  }, z.core.$strip>>;
437
437
  icon: z.ZodOptional<z.ZodObject<{
438
- kind: z.ZodOptional<z.ZodEnum<{
438
+ kind: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
439
439
  readonly BUILTIN: 'builtin';
440
440
  readonly ASSET: 'asset';
441
- }>>;
442
- name: z.ZodOptional<z.ZodEnum<{
441
+ }>>>;
442
+ name: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
443
443
  readonly SEND: 'send';
444
444
  readonly PLUS: 'plus';
445
445
  readonly STOP: 'stop';
@@ -490,27 +490,27 @@ export declare const InterfaceConfigButtonsDTO: z.ZodObject<{
490
490
  readonly LINK: 'link';
491
491
  readonly PACKAGE: 'package';
492
492
  readonly BRIEFCASE: 'briefcase';
493
- }>>;
493
+ }>>>;
494
494
  url: z.ZodOptional<z.ZodString>;
495
495
  tint: z.ZodOptional<z.ZodBoolean>;
496
496
  assetId: z.ZodOptional<z.ZodString>;
497
497
  }, z.core.$strip>>;
498
498
  when: z.ZodOptional<z.ZodObject<{
499
- views: z.ZodOptional<z.ZodArray<z.ZodEnum<{
499
+ views: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
500
500
  readonly CHAT: 'chat';
501
501
  readonly CALL: 'call';
502
- }>>>;
503
- phases: z.ZodOptional<z.ZodArray<z.ZodEnum<{
502
+ }>>>>;
503
+ phases: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
504
504
  readonly START: 'start';
505
505
  readonly AI: 'ai';
506
506
  readonly HANDOFF: 'handoff';
507
507
  readonly ENDED: 'ended';
508
- }>>>;
508
+ }>>>>;
509
509
  }, z.core.$strip>>;
510
- emphasis: z.ZodOptional<z.ZodEnum<{
510
+ emphasis: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
511
511
  readonly PRIMARY: 'primary';
512
512
  readonly SECONDARY: 'secondary';
513
- }>>;
513
+ }>>>;
514
514
  enabled: z.ZodOptional<z.ZodBoolean>;
515
515
  }, z.core.$strip>>>;
516
516
  handoff: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -522,11 +522,11 @@ export declare const InterfaceConfigButtonsDTO: z.ZodObject<{
522
522
  translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
523
523
  }, z.core.$strip>>;
524
524
  icon: z.ZodOptional<z.ZodObject<{
525
- kind: z.ZodOptional<z.ZodEnum<{
525
+ kind: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
526
526
  readonly BUILTIN: 'builtin';
527
527
  readonly ASSET: 'asset';
528
- }>>;
529
- name: z.ZodOptional<z.ZodEnum<{
528
+ }>>>;
529
+ name: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
530
530
  readonly SEND: 'send';
531
531
  readonly PLUS: 'plus';
532
532
  readonly STOP: 'stop';
@@ -577,27 +577,27 @@ export declare const InterfaceConfigButtonsDTO: z.ZodObject<{
577
577
  readonly LINK: 'link';
578
578
  readonly PACKAGE: 'package';
579
579
  readonly BRIEFCASE: 'briefcase';
580
- }>>;
580
+ }>>>;
581
581
  url: z.ZodOptional<z.ZodString>;
582
582
  tint: z.ZodOptional<z.ZodBoolean>;
583
583
  assetId: z.ZodOptional<z.ZodString>;
584
584
  }, z.core.$strip>>;
585
585
  when: z.ZodOptional<z.ZodObject<{
586
- views: z.ZodOptional<z.ZodArray<z.ZodEnum<{
586
+ views: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
587
587
  readonly CHAT: 'chat';
588
588
  readonly CALL: 'call';
589
- }>>>;
590
- phases: z.ZodOptional<z.ZodArray<z.ZodEnum<{
589
+ }>>>>;
590
+ phases: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
591
591
  readonly START: 'start';
592
592
  readonly AI: 'ai';
593
593
  readonly HANDOFF: 'handoff';
594
594
  readonly ENDED: 'ended';
595
- }>>>;
595
+ }>>>>;
596
596
  }, z.core.$strip>>;
597
- emphasis: z.ZodOptional<z.ZodEnum<{
597
+ emphasis: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
598
598
  readonly PRIMARY: 'primary';
599
599
  readonly SECONDARY: 'secondary';
600
- }>>;
600
+ }>>>;
601
601
  enabled: z.ZodOptional<z.ZodBoolean>;
602
602
  }, z.core.$strip>>>;
603
603
  "handoff-end": z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -609,11 +609,11 @@ export declare const InterfaceConfigButtonsDTO: z.ZodObject<{
609
609
  translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
610
610
  }, z.core.$strip>>;
611
611
  icon: z.ZodOptional<z.ZodObject<{
612
- kind: z.ZodOptional<z.ZodEnum<{
612
+ kind: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
613
613
  readonly BUILTIN: 'builtin';
614
614
  readonly ASSET: 'asset';
615
- }>>;
616
- name: z.ZodOptional<z.ZodEnum<{
615
+ }>>>;
616
+ name: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
617
617
  readonly SEND: 'send';
618
618
  readonly PLUS: 'plus';
619
619
  readonly STOP: 'stop';
@@ -664,27 +664,27 @@ export declare const InterfaceConfigButtonsDTO: z.ZodObject<{
664
664
  readonly LINK: 'link';
665
665
  readonly PACKAGE: 'package';
666
666
  readonly BRIEFCASE: 'briefcase';
667
- }>>;
667
+ }>>>;
668
668
  url: z.ZodOptional<z.ZodString>;
669
669
  tint: z.ZodOptional<z.ZodBoolean>;
670
670
  assetId: z.ZodOptional<z.ZodString>;
671
671
  }, z.core.$strip>>;
672
672
  when: z.ZodOptional<z.ZodObject<{
673
- views: z.ZodOptional<z.ZodArray<z.ZodEnum<{
673
+ views: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
674
674
  readonly CHAT: 'chat';
675
675
  readonly CALL: 'call';
676
- }>>>;
677
- phases: z.ZodOptional<z.ZodArray<z.ZodEnum<{
676
+ }>>>>;
677
+ phases: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
678
678
  readonly START: 'start';
679
679
  readonly AI: 'ai';
680
680
  readonly HANDOFF: 'handoff';
681
681
  readonly ENDED: 'ended';
682
- }>>>;
682
+ }>>>>;
683
683
  }, z.core.$strip>>;
684
- emphasis: z.ZodOptional<z.ZodEnum<{
684
+ emphasis: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
685
685
  readonly PRIMARY: 'primary';
686
686
  readonly SECONDARY: 'secondary';
687
- }>>;
687
+ }>>>;
688
688
  enabled: z.ZodOptional<z.ZodBoolean>;
689
689
  }, z.core.$strip>>>;
690
690
  "conversation-end": z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -696,11 +696,11 @@ export declare const InterfaceConfigButtonsDTO: z.ZodObject<{
696
696
  translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
697
697
  }, z.core.$strip>>;
698
698
  icon: z.ZodOptional<z.ZodObject<{
699
- kind: z.ZodOptional<z.ZodEnum<{
699
+ kind: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
700
700
  readonly BUILTIN: 'builtin';
701
701
  readonly ASSET: 'asset';
702
- }>>;
703
- name: z.ZodOptional<z.ZodEnum<{
702
+ }>>>;
703
+ name: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
704
704
  readonly SEND: 'send';
705
705
  readonly PLUS: 'plus';
706
706
  readonly STOP: 'stop';
@@ -751,27 +751,27 @@ export declare const InterfaceConfigButtonsDTO: z.ZodObject<{
751
751
  readonly LINK: 'link';
752
752
  readonly PACKAGE: 'package';
753
753
  readonly BRIEFCASE: 'briefcase';
754
- }>>;
754
+ }>>>;
755
755
  url: z.ZodOptional<z.ZodString>;
756
756
  tint: z.ZodOptional<z.ZodBoolean>;
757
757
  assetId: z.ZodOptional<z.ZodString>;
758
758
  }, z.core.$strip>>;
759
759
  when: z.ZodOptional<z.ZodObject<{
760
- views: z.ZodOptional<z.ZodArray<z.ZodEnum<{
760
+ views: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
761
761
  readonly CHAT: 'chat';
762
762
  readonly CALL: 'call';
763
- }>>>;
764
- phases: z.ZodOptional<z.ZodArray<z.ZodEnum<{
763
+ }>>>>;
764
+ phases: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodEnum<{
765
765
  readonly START: 'start';
766
766
  readonly AI: 'ai';
767
767
  readonly HANDOFF: 'handoff';
768
768
  readonly ENDED: 'ended';
769
- }>>>;
769
+ }>>>>;
770
770
  }, z.core.$strip>>;
771
- emphasis: z.ZodOptional<z.ZodEnum<{
771
+ emphasis: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
772
772
  readonly PRIMARY: 'primary';
773
773
  readonly SECONDARY: 'secondary';
774
- }>>;
774
+ }>>>;
775
775
  enabled: z.ZodOptional<z.ZodBoolean>;
776
776
  }, z.core.$strip>>>;
777
777
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"interface-config-buttons.dto.d.ts","sourceRoot":"","sources":["../../../src/interface-config/interface-config-buttons/interface-config-buttons.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,0IAA0I;AAC1I,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWG,CAAC;AAE7C,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAErF,eAAO,MAAM,4BAA4B;;;;;;;;;;;iBAOG,CAAC;AAE7C,MAAM,M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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUG,CAAC;AAE1C,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -2,13 +2,13 @@ import { z } from 'zod';
2
2
  import { InterfaceConfigIconDTO } from '../interface-config-icon.enum.js';
3
3
  import { InterfaceConfigLocalizedTextDTO } from '../interface-config-localized-text.dto.js';
4
4
  import { InterfaceConfigButtonEmphasisDTO, InterfaceConfigButtonIconKindDTO, InterfaceConfigButtonPhaseDTO, InterfaceConfigButtonSurface, InterfaceConfigButtonViewDTO, } from './interface-config-buttons.enum.js';
5
- /** One object, not a union. An unknown `kind` fails the strict write check; a reader that parses entry by entry drops only that entry. */
5
+ /** One object, not a union. An unknown `kind` or `name` parses as unset, and the entry stays. */
6
6
  export const InterfaceConfigButtonIconDTO = z
7
7
  .object({
8
- kind: InterfaceConfigButtonIconKindDTO.optional(),
9
- /** a built-in icon name; write validation requires it when `kind` is `builtin` */
10
- name: InterfaceConfigIconDTO.optional(),
11
- /** an uploaded icon; write validation requires it when `kind` is `asset` */
8
+ kind: InterfaceConfigButtonIconKindDTO.optional().catch(undefined),
9
+ /** a built-in icon name; the reader needs it when `kind` is `builtin`, or the button has no icon and gets a diagnostic */
10
+ name: InterfaceConfigIconDTO.optional().catch(undefined),
11
+ /** an uploaded icon; the reader needs it when `kind` is `asset`, or the button has no icon and gets a diagnostic */
12
12
  url: z.string().optional(),
13
13
  tint: z.boolean().optional(),
14
14
  /** optional until the upload flow returns an asset id */
@@ -18,9 +18,9 @@ export const InterfaceConfigButtonIconDTO = z
18
18
  export const InterfaceConfigButtonWhenDTO = z
19
19
  .object({
20
20
  /** absent means the surface default: chat only for `composer`, every view elsewhere */
21
- views: z.array(InterfaceConfigButtonViewDTO).optional(),
21
+ views: z.array(InterfaceConfigButtonViewDTO).optional().catch(undefined),
22
22
  /** absent means every phase */
23
- phases: z.array(InterfaceConfigButtonPhaseDTO).optional(),
23
+ phases: z.array(InterfaceConfigButtonPhaseDTO).optional().catch(undefined),
24
24
  })
25
25
  .meta({ id: 'InterfaceConfigButtonWhen' });
26
26
  export const InterfaceConfigButtonDTO = z
@@ -29,13 +29,13 @@ export const InterfaceConfigButtonDTO = z
29
29
  id: z.string().regex(/^[a-z][a-z0-9-]*$/),
30
30
  /** a built-in action id, or a code action id that contains a dot */
31
31
  action: z.string().min(1),
32
- /** untyped until write validation checks it per action */
32
+ /** untyped; nothing checks it per action */
33
33
  args: z.record(z.string(), z.unknown()).optional(),
34
34
  label: InterfaceConfigLocalizedTextDTO.optional(),
35
35
  icon: InterfaceConfigButtonIconDTO.optional(),
36
36
  when: InterfaceConfigButtonWhenDTO.optional(),
37
37
  /** end surfaces only */
38
- emphasis: InterfaceConfigButtonEmphasisDTO.optional(),
38
+ emphasis: InterfaceConfigButtonEmphasisDTO.optional().catch(undefined),
39
39
  /** `false` keeps the entry and hides the button */
40
40
  enabled: z.boolean().optional(),
41
41
  })
@@ -1 +1 @@
1
- {"version":3,"file":"interface-config-buttons.dto.js","sourceRoot":"","sources":["../../../src/interface-config/interface-config-buttons/interface-config-buttons.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;AACzF,OAAO,EACL,gCAAgC,EAChC,gCAAgC,EAChC,6BAA6B,EAC7B,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC;AAEzC,0IAA0I;AAC1I,MAAM,CAAC,MAAM,4BAA4B,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,4BAA4B,CAAC,QAAQ,EAAE;IAC7C,wBAAwB;IACxB,QAAQ,EAAE,gCAAgC,CAAC,QAAQ,EAAE;IACrD,mDAAmD;IACnD,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC;KACD,IAAI,CAAC,EAAE,EAAE,EAAE,uBAAuB,EAAE,CAAC,CAAC;AAIzC,6EAA6E;AAC7E,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC;KACvC,MAAM,CAAC;IACN,CAAC,4BAA4B,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE;IACnF,CAAC,4BAA4B,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE;IACjF,CAAC,4BAA4B,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE;IACrF,CAAC,4BAA4B,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE;IACnF,CAAC,4BAA4B,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE;IACpF,CAAC,4BAA4B,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE;IACxF,CAAC,4BAA4B,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE;CAC9F,CAAC;KACD,IAAI,CAAC,EAAE,EAAE,EAAE,wBAAwB,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"interface-config-buttons.dto.js","sourceRoot":"","sources":["../../../src/interface-config/interface-config-buttons/interface-config-buttons.dto.ts"],"names":[],"mappings":"AAAA,OAAO,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,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE;IACpF,CAAC,4BAA4B,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE;IACxF,CAAC,4BAA4B,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE;CAC9F,CAAC;KACD,IAAI,CAAC,EAAE,EAAE,EAAE,wBAAwB,EAAE,CAAC,CAAC"}
@@ -9,12 +9,12 @@ export declare const InterfaceConfigComposerAttachmentsDTO: z.ZodObject<{
9
9
  }, z.core.$strip>;
10
10
  export type InterfaceConfigComposerAttachments = z.infer<typeof InterfaceConfigComposerAttachmentsDTO>;
11
11
  export declare const InterfaceConfigComposerSendButtonDTO: z.ZodObject<{
12
- shape: z.ZodOptional<z.ZodEnum<{
12
+ shape: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
13
13
  readonly CIRCLE: 'circle';
14
14
  readonly ROUNDED: 'rounded';
15
15
  readonly SQUARE: 'square';
16
- }>>;
17
- icon: z.ZodOptional<z.ZodEnum<{
16
+ }>>>;
17
+ icon: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
18
18
  readonly SEND: 'send';
19
19
  readonly PLUS: 'plus';
20
20
  readonly STOP: 'stop';
@@ -65,14 +65,14 @@ export declare const InterfaceConfigComposerSendButtonDTO: z.ZodObject<{
65
65
  readonly LINK: 'link';
66
66
  readonly PACKAGE: 'package';
67
67
  readonly BRIEFCASE: 'briefcase';
68
- }>>;
68
+ }>>>;
69
69
  }, z.core.$strip>;
70
70
  export type InterfaceConfigComposerSendButton = z.infer<typeof InterfaceConfigComposerSendButtonDTO>;
71
71
  export declare const InterfaceConfigComposerDTO: z.ZodObject<{
72
- layout: z.ZodOptional<z.ZodEnum<{
72
+ layout: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
73
73
  readonly INLINE: 'inline';
74
74
  readonly TWO_TIER: 'two-tier';
75
- }>>;
75
+ }>>>;
76
76
  dictation: z.ZodOptional<z.ZodBoolean>;
77
77
  attachments: z.ZodOptional<z.ZodObject<{
78
78
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -82,18 +82,18 @@ export declare const InterfaceConfigComposerDTO: z.ZodObject<{
82
82
  text: z.ZodOptional<z.ZodString>;
83
83
  translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
84
84
  }, z.core.$strip>>;
85
- shape: z.ZodOptional<z.ZodEnum<{
85
+ shape: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
86
86
  readonly CARD: 'card';
87
87
  readonly BOXED: 'boxed';
88
88
  readonly PILL: 'pill';
89
- }>>;
89
+ }>>>;
90
90
  sendButton: z.ZodOptional<z.ZodObject<{
91
- shape: z.ZodOptional<z.ZodEnum<{
91
+ shape: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
92
92
  readonly CIRCLE: 'circle';
93
93
  readonly ROUNDED: 'rounded';
94
94
  readonly SQUARE: 'square';
95
- }>>;
96
- icon: z.ZodOptional<z.ZodEnum<{
95
+ }>>>;
96
+ icon: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
97
97
  readonly SEND: 'send';
98
98
  readonly PLUS: 'plus';
99
99
  readonly STOP: 'stop';
@@ -144,13 +144,13 @@ export declare const InterfaceConfigComposerDTO: z.ZodObject<{
144
144
  readonly LINK: 'link';
145
145
  readonly PACKAGE: 'package';
146
146
  readonly BRIEFCASE: 'briefcase';
147
- }>>;
147
+ }>>>;
148
148
  }, z.core.$strip>>;
149
149
  maxLines: z.ZodOptional<z.ZodNumber>;
150
- emptySize: z.ZodOptional<z.ZodEnum<{
150
+ emptySize: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
151
151
  readonly COMPACT: 'compact';
152
152
  readonly LARGE: 'large';
153
- }>>;
153
+ }>>>;
154
154
  }, z.core.$strip>;
155
155
  export type InterfaceConfigComposer = z.infer<typeof InterfaceConfigComposerDTO>;
156
156
  //# sourceMappingURL=interface-config-composer.dto.d.ts.map
@@ -15,23 +15,23 @@ export const InterfaceConfigComposerAttachmentsDTO = z
15
15
  .meta({ id: 'InterfaceConfigComposerAttachments' });
16
16
  export const InterfaceConfigComposerSendButtonDTO = z
17
17
  .object({
18
- shape: InterfaceConfigComposerSendButtonShapeDTO.optional(),
19
- icon: InterfaceConfigIconDTO.optional(),
18
+ shape: InterfaceConfigComposerSendButtonShapeDTO.optional().catch(undefined),
19
+ icon: InterfaceConfigIconDTO.optional().catch(undefined),
20
20
  })
21
21
  .meta({ id: 'InterfaceConfigComposerSendButton' });
22
22
  export const InterfaceConfigComposerDTO = z
23
23
  .object({
24
- layout: InterfaceConfigComposerLayoutDTO.optional(),
24
+ layout: InterfaceConfigComposerLayoutDTO.optional().catch(undefined),
25
25
  /** the composer microphone; separate from calls */
26
26
  dictation: z.boolean().optional(),
27
27
  attachments: InterfaceConfigComposerAttachmentsDTO.optional(),
28
28
  placeholder: InterfaceConfigLocalizedTextDTO.optional(),
29
- shape: InterfaceConfigComposerShapeDTO.optional(),
29
+ shape: InterfaceConfigComposerShapeDTO.optional().catch(undefined),
30
30
  sendButton: InterfaceConfigComposerSendButtonDTO.optional(),
31
31
  /** lines the field grows to before it scrolls */
32
32
  maxLines: z.number().int().min(0).optional(),
33
33
  /** the field size while no conversation exists */
34
- emptySize: InterfaceConfigComposerEmptySizeDTO.optional(),
34
+ emptySize: InterfaceConfigComposerEmptySizeDTO.optional().catch(undefined),
35
35
  })
36
36
  .meta({ id: 'InterfaceConfigComposer' });
37
37
  //# sourceMappingURL=interface-config-composer.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"interface-config-composer.dto.js","sourceRoot":"","sources":["../../../src/interface-config/interface-config-composer/interface-config-composer.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OA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,mCAAmC,CAAC,QAAQ,EAAE;CAC1D,CAAC;KACD,IAAI,CAAC,EAAE,EAAE,EAAE,yBAAyB,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"interface-config-composer.dto.js","sourceRoot":"","sources":["../../../src/interface-config/interface-config-composer/interface-config-composer.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;AACzF,OAAO,EACL,mCAAmC,EACnC,gCAAgC,EAChC,yCAAyC,EACzC,+BAA+B,GAChC,MAAM,kCAAkC,CAAC;AAE1C;;;GAGG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC;KACnD,MAAM,CAAC;IACN,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,yDAAyD;IACzD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC;KACD,IAAI,CAAC,EAAE,EAAE,EAAE,oCAAoC,EAAE,CAAC,CAAC;AAItD,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC;KAClD,MAAM,CAAC;IACN,KAAK,EAAE,yCAAyC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;IAC5E,IAAI,EAAE,sBAAsB,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;CACzD,CAAC;KACD,IAAI,CAAC,EAAE,EAAE,EAAE,mCAAmC,EAAE,CAAC,CAAC;AAIrD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC;KACxC,MAAM,CAAC;IACN,MAAM,EAAE,gCAAgC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;IACpE,mDAAm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