@fieldia/core 0.10.0 → 0.11.0

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 (67) hide show
  1. package/README.md +199 -0
  2. package/package.json +1 -1
  3. package/schema/page.schema.json +829 -125
  4. package/src/index.d.mts +1 -0
  5. package/src/index.d.ts +1 -0
  6. package/src/index.js +4 -1
  7. package/src/index.js.map +1 -1
  8. package/src/index.mjs +1 -0
  9. package/src/index.mjs.map +1 -1
  10. package/src/lib/format/actions.d.mts +692 -0
  11. package/src/lib/format/actions.d.ts +692 -0
  12. package/src/lib/format/actions.js +53 -0
  13. package/src/lib/format/actions.js.map +1 -0
  14. package/src/lib/format/actions.mjs +50 -0
  15. package/src/lib/format/actions.mjs.map +1 -0
  16. package/src/lib/format/field.js +4 -2
  17. package/src/lib/format/field.js.map +1 -1
  18. package/src/lib/format/field.mjs +4 -2
  19. package/src/lib/format/field.mjs.map +1 -1
  20. package/src/lib/format/layout.d.mts +745 -15
  21. package/src/lib/format/layout.d.ts +745 -15
  22. package/src/lib/format/layout.js +18 -3
  23. package/src/lib/format/layout.js.map +1 -1
  24. package/src/lib/format/layout.mjs +17 -2
  25. package/src/lib/format/layout.mjs.map +1 -1
  26. package/src/lib/format/layout.types.d.mts +2 -1
  27. package/src/lib/format/layout.types.d.ts +2 -1
  28. package/src/lib/format/page.d.mts +616 -3
  29. package/src/lib/format/page.d.ts +616 -3
  30. package/src/lib/format/page.js +17 -2
  31. package/src/lib/format/page.js.map +1 -1
  32. package/src/lib/format/page.mjs +17 -2
  33. package/src/lib/format/page.mjs.map +1 -1
  34. package/src/lib/format/part-look.d.mts +36 -0
  35. package/src/lib/format/part-look.d.ts +36 -0
  36. package/src/lib/format/part-look.js +23 -0
  37. package/src/lib/format/part-look.js.map +1 -0
  38. package/src/lib/format/part-look.mjs +20 -0
  39. package/src/lib/format/part-look.mjs.map +1 -0
  40. package/src/lib/format/references.d.mts +19 -0
  41. package/src/lib/format/references.d.ts +19 -0
  42. package/src/lib/format/references.js +131 -2
  43. package/src/lib/format/references.js.map +1 -1
  44. package/src/lib/format/references.mjs +131 -2
  45. package/src/lib/format/references.mjs.map +1 -1
  46. package/src/lib/record/data-source.d.mts +5 -1
  47. package/src/lib/record/data-source.d.ts +5 -1
  48. package/src/lib/record/data-source.js.map +1 -1
  49. package/src/lib/record/data-source.mjs.map +1 -1
  50. package/src/lib/record/form.d.mts +86 -18
  51. package/src/lib/record/form.d.ts +86 -18
  52. package/src/lib/record/form.js +343 -46
  53. package/src/lib/record/form.js.map +1 -1
  54. package/src/lib/record/form.mjs +343 -46
  55. package/src/lib/record/form.mjs.map +1 -1
  56. package/src/lib/record/run.d.mts +169 -0
  57. package/src/lib/record/run.d.ts +169 -0
  58. package/src/lib/record/run.js +350 -0
  59. package/src/lib/record/run.js.map +1 -0
  60. package/src/lib/record/run.mjs +345 -0
  61. package/src/lib/record/run.mjs.map +1 -0
  62. package/src/runtime.d.mts +5 -2
  63. package/src/runtime.d.ts +5 -2
  64. package/src/runtime.js +3 -1
  65. package/src/runtime.js.map +1 -1
  66. package/src/runtime.mjs +1 -0
  67. package/src/runtime.mjs.map +1 -1
@@ -1,5 +1,6 @@
1
1
  import * as z from 'zod';
2
2
  import { FilterItemSchema, type FilterItem } from './field';
3
+ import { type ActionStep } from './actions';
3
4
  import { type JsonValue } from './json';
4
5
  /**
5
6
  * The layout: where each field goes and what surrounds it.
@@ -84,8 +85,13 @@ export interface ButtonNode {
84
85
  type: 'button';
85
86
  id: string;
86
87
  label: string;
87
- /** The action's name. The app decides what it does. */
88
- action: string;
88
+ /**
89
+ * What a press does: steps, in order (see `ActionStep`). A button with only
90
+ * an `action` hands its name to the app, as a `call` step would.
91
+ */
92
+ steps?: ActionStep[];
93
+ /** The app's action's name, run after the steps. The app decides what it does. A button has steps, an action, or both. */
94
+ action?: string;
89
95
  params?: {
90
96
  [key: string]: JsonValue;
91
97
  };
@@ -138,6 +144,32 @@ export interface ImageNode {
138
144
  colspan?: number;
139
145
  invisible?: Modifier;
140
146
  }
147
+ /**
148
+ * A saved form placed in this one: another page, found by its id, drawn where
149
+ * this part stands, its fields answered and checked as on their own page — its
150
+ * required fields, answer rules, conditions and worked-out values all hold
151
+ * inside it. Its answers are kept under `name`, as an object, so two copies of
152
+ * one form never mix: `{ "home": { "street": … }, "work": { "street": … } }`.
153
+ * It is edited on its own page; this one only places it. A page of sections
154
+ * or tabs can be placed; a wizard, a sheet or a list cannot.
155
+ */
156
+ export interface FormNode {
157
+ type: 'form';
158
+ id: string;
159
+ /** The saved page's id. */
160
+ page: string;
161
+ /** A published version to keep to. The latest published version when left out. */
162
+ version?: number;
163
+ /** Where its answers go: the name they are kept under, as a field's are. */
164
+ name: string;
165
+ /** Words over it: the saved page's own title when left out, none when empty. */
166
+ title?: string;
167
+ /** Grid columns it spans inside a section. */
168
+ colspan?: number;
169
+ invisible?: Modifier;
170
+ /** Every field inside is read-only while this holds. */
171
+ readonly?: Modifier;
172
+ }
141
173
  /** A named place the app fills with its own content, such as an activity feed. */
142
174
  export interface SlotNode {
143
175
  type: 'slot';
@@ -241,7 +273,9 @@ export interface SectionsNode {
241
273
  export interface StatButton {
242
274
  id: string;
243
275
  label: string;
244
- action: string;
276
+ /** What a press does, as a button's. */
277
+ steps?: ActionStep[];
278
+ action?: string;
245
279
  /** A numeric field shown on the button, such as a count of invoices. */
246
280
  field?: string;
247
281
  icon?: string;
@@ -336,7 +370,7 @@ export interface ListNode {
336
370
  actions?: ButtonNode[];
337
371
  }
338
372
  /** Anything that can sit inside a section, tab, step or sheet. */
339
- export type LayoutNode = FieldNode | ButtonNode | TextNode | SlotNode | SectionNode | TabsNode | DividerNode | SpacerNode | ImageNode;
373
+ export type LayoutNode = FieldNode | ButtonNode | TextNode | SlotNode | SectionNode | TabsNode | DividerNode | SpacerNode | ImageNode | FormNode;
340
374
  /** What a page's `layout` can be: the four page layouts. */
341
375
  export type RootLayout = SheetNode | SectionsNode | TabsNode | WizardNode | ListNode;
342
376
  export declare const ModifierSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>;
@@ -415,7 +449,82 @@ export declare const ButtonNodeSchema: z.ZodObject<{
415
449
  type: z.ZodLiteral<"button">;
416
450
  id: z.ZodString;
417
451
  label: z.ZodString;
418
- action: z.ZodString;
452
+ steps: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
453
+ do: z.ZodLiteral<"open">;
454
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
455
+ page: z.ZodString;
456
+ version: z.ZodOptional<z.ZodInt>;
457
+ as: z.ZodOptional<z.ZodEnum<{
458
+ page: "page";
459
+ dialog: "dialog";
460
+ panel: "panel";
461
+ }>>;
462
+ side: z.ZodOptional<z.ZodEnum<{
463
+ end: "end";
464
+ start: "start";
465
+ right: "right";
466
+ left: "left";
467
+ top: "top";
468
+ bottom: "bottom";
469
+ }>>;
470
+ title: z.ZodOptional<z.ZodString>;
471
+ record: z.ZodOptional<z.ZodString>;
472
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
473
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
474
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions").ActionStepSchema>>;
475
+ }, z.z.core.$strict>, z.ZodObject<{
476
+ do: z.ZodLiteral<"set">;
477
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
478
+ field: z.ZodString;
479
+ value: z.ZodString;
480
+ }, z.z.core.$strict>, z.ZodObject<{
481
+ do: z.ZodLiteral<"clear">;
482
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
483
+ field: z.ZodString;
484
+ }, z.z.core.$strict>, z.ZodObject<{
485
+ do: z.ZodLiteral<"addLine">;
486
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
487
+ field: z.ZodString;
488
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
489
+ }, z.z.core.$strict>, z.ZodObject<{
490
+ do: z.ZodLiteral<"check">;
491
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
492
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
493
+ }, z.z.core.$strict>, z.ZodObject<{
494
+ do: z.ZodLiteral<"save">;
495
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
496
+ }, z.z.core.$strict>, z.ZodObject<{
497
+ do: z.ZodLiteral<"reset">;
498
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
499
+ }, z.z.core.$strict>, z.ZodObject<{
500
+ do: z.ZodLiteral<"goTo">;
501
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
502
+ target: z.ZodString;
503
+ }, z.z.core.$strict>, z.ZodObject<{
504
+ do: z.ZodLiteral<"say">;
505
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
506
+ message: z.ZodString;
507
+ tone: z.ZodOptional<z.ZodEnum<{
508
+ success: "success";
509
+ info: "info";
510
+ warning: "warning";
511
+ danger: "danger";
512
+ muted: "muted";
513
+ }>>;
514
+ }, z.z.core.$strict>, z.ZodObject<{
515
+ do: z.ZodLiteral<"ask">;
516
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
517
+ message: z.ZodString;
518
+ }, z.z.core.$strict>, z.ZodObject<{
519
+ do: z.ZodLiteral<"call">;
520
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
521
+ action: z.ZodString;
522
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
523
+ }, z.z.core.$strict>, z.ZodObject<{
524
+ do: z.ZodLiteral<"close">;
525
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
526
+ }, z.z.core.$strict>], "do">>>;
527
+ action: z.ZodOptional<z.ZodString>;
419
528
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
420
529
  style: z.ZodOptional<z.ZodEnum<{
421
530
  danger: "danger";
@@ -463,9 +572,9 @@ export declare const ImageNodeSchema: z.ZodObject<{
463
572
  full: "full";
464
573
  }>, z.ZodInt]>>;
465
574
  align: z.ZodOptional<z.ZodEnum<{
575
+ end: "end";
466
576
  start: "start";
467
577
  center: "center";
468
- end: "end";
469
578
  }>>;
470
579
  href: z.ZodOptional<z.ZodString>;
471
580
  caption: z.ZodOptional<z.ZodString>;
@@ -478,6 +587,17 @@ export declare const SlotNodeSchema: z.ZodObject<{
478
587
  name: z.ZodString;
479
588
  invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
480
589
  }, z.z.core.$strict>;
590
+ export declare const FormNodeSchema: z.ZodObject<{
591
+ type: z.ZodLiteral<"form">;
592
+ id: z.ZodString;
593
+ page: z.ZodString;
594
+ version: z.ZodOptional<z.ZodInt>;
595
+ name: z.ZodString;
596
+ title: z.ZodOptional<z.ZodString>;
597
+ colspan: z.ZodOptional<z.ZodInt>;
598
+ invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
599
+ readonly: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
600
+ }, z.z.core.$strict>;
481
601
  export declare const SectionNodeSchema: z.ZodObject<{
482
602
  type: z.ZodLiteral<"section">;
483
603
  id: z.ZodString;
@@ -587,7 +707,82 @@ export declare const LayoutNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
587
707
  type: z.ZodLiteral<"button">;
588
708
  id: z.ZodString;
589
709
  label: z.ZodString;
590
- action: z.ZodString;
710
+ steps: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
711
+ do: z.ZodLiteral<"open">;
712
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
713
+ page: z.ZodString;
714
+ version: z.ZodOptional<z.ZodInt>;
715
+ as: z.ZodOptional<z.ZodEnum<{
716
+ page: "page";
717
+ dialog: "dialog";
718
+ panel: "panel";
719
+ }>>;
720
+ side: z.ZodOptional<z.ZodEnum<{
721
+ end: "end";
722
+ start: "start";
723
+ right: "right";
724
+ left: "left";
725
+ top: "top";
726
+ bottom: "bottom";
727
+ }>>;
728
+ title: z.ZodOptional<z.ZodString>;
729
+ record: z.ZodOptional<z.ZodString>;
730
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
731
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
732
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions").ActionStepSchema>>;
733
+ }, z.z.core.$strict>, z.ZodObject<{
734
+ do: z.ZodLiteral<"set">;
735
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
736
+ field: z.ZodString;
737
+ value: z.ZodString;
738
+ }, z.z.core.$strict>, z.ZodObject<{
739
+ do: z.ZodLiteral<"clear">;
740
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
741
+ field: z.ZodString;
742
+ }, z.z.core.$strict>, z.ZodObject<{
743
+ do: z.ZodLiteral<"addLine">;
744
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
745
+ field: z.ZodString;
746
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
747
+ }, z.z.core.$strict>, z.ZodObject<{
748
+ do: z.ZodLiteral<"check">;
749
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
750
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
751
+ }, z.z.core.$strict>, z.ZodObject<{
752
+ do: z.ZodLiteral<"save">;
753
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
754
+ }, z.z.core.$strict>, z.ZodObject<{
755
+ do: z.ZodLiteral<"reset">;
756
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
757
+ }, z.z.core.$strict>, z.ZodObject<{
758
+ do: z.ZodLiteral<"goTo">;
759
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
760
+ target: z.ZodString;
761
+ }, z.z.core.$strict>, z.ZodObject<{
762
+ do: z.ZodLiteral<"say">;
763
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
764
+ message: z.ZodString;
765
+ tone: z.ZodOptional<z.ZodEnum<{
766
+ success: "success";
767
+ info: "info";
768
+ warning: "warning";
769
+ danger: "danger";
770
+ muted: "muted";
771
+ }>>;
772
+ }, z.z.core.$strict>, z.ZodObject<{
773
+ do: z.ZodLiteral<"ask">;
774
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
775
+ message: z.ZodString;
776
+ }, z.z.core.$strict>, z.ZodObject<{
777
+ do: z.ZodLiteral<"call">;
778
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
779
+ action: z.ZodString;
780
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
781
+ }, z.z.core.$strict>, z.ZodObject<{
782
+ do: z.ZodLiteral<"close">;
783
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
784
+ }, z.z.core.$strict>], "do">>>;
785
+ action: z.ZodOptional<z.ZodString>;
591
786
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
592
787
  style: z.ZodOptional<z.ZodEnum<{
593
788
  danger: "danger";
@@ -682,14 +877,24 @@ export declare const LayoutNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
682
877
  full: "full";
683
878
  }>, z.ZodInt]>>;
684
879
  align: z.ZodOptional<z.ZodEnum<{
880
+ end: "end";
685
881
  start: "start";
686
882
  center: "center";
687
- end: "end";
688
883
  }>>;
689
884
  href: z.ZodOptional<z.ZodString>;
690
885
  caption: z.ZodOptional<z.ZodString>;
691
886
  colspan: z.ZodOptional<z.ZodInt>;
692
887
  invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
888
+ }, z.z.core.$strict>, z.ZodObject<{
889
+ type: z.ZodLiteral<"form">;
890
+ id: z.ZodString;
891
+ page: z.ZodString;
892
+ version: z.ZodOptional<z.ZodInt>;
893
+ name: z.ZodString;
894
+ title: z.ZodOptional<z.ZodString>;
895
+ colspan: z.ZodOptional<z.ZodInt>;
896
+ invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
897
+ readonly: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
693
898
  }, z.z.core.$strict>], "type">;
694
899
  export declare const StepNodeSchema: z.ZodObject<{
695
900
  type: z.ZodLiteral<"step">;
@@ -727,7 +932,82 @@ export declare const SectionsNodeSchema: z.ZodObject<{
727
932
  export declare const StatButtonSchema: z.ZodObject<{
728
933
  id: z.ZodString;
729
934
  label: z.ZodString;
730
- action: z.ZodString;
935
+ steps: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
936
+ do: z.ZodLiteral<"open">;
937
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
938
+ page: z.ZodString;
939
+ version: z.ZodOptional<z.ZodInt>;
940
+ as: z.ZodOptional<z.ZodEnum<{
941
+ page: "page";
942
+ dialog: "dialog";
943
+ panel: "panel";
944
+ }>>;
945
+ side: z.ZodOptional<z.ZodEnum<{
946
+ end: "end";
947
+ start: "start";
948
+ right: "right";
949
+ left: "left";
950
+ top: "top";
951
+ bottom: "bottom";
952
+ }>>;
953
+ title: z.ZodOptional<z.ZodString>;
954
+ record: z.ZodOptional<z.ZodString>;
955
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
956
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
957
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions").ActionStepSchema>>;
958
+ }, z.z.core.$strict>, z.ZodObject<{
959
+ do: z.ZodLiteral<"set">;
960
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
961
+ field: z.ZodString;
962
+ value: z.ZodString;
963
+ }, z.z.core.$strict>, z.ZodObject<{
964
+ do: z.ZodLiteral<"clear">;
965
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
966
+ field: z.ZodString;
967
+ }, z.z.core.$strict>, z.ZodObject<{
968
+ do: z.ZodLiteral<"addLine">;
969
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
970
+ field: z.ZodString;
971
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
972
+ }, z.z.core.$strict>, z.ZodObject<{
973
+ do: z.ZodLiteral<"check">;
974
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
975
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
976
+ }, z.z.core.$strict>, z.ZodObject<{
977
+ do: z.ZodLiteral<"save">;
978
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
979
+ }, z.z.core.$strict>, z.ZodObject<{
980
+ do: z.ZodLiteral<"reset">;
981
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
982
+ }, z.z.core.$strict>, z.ZodObject<{
983
+ do: z.ZodLiteral<"goTo">;
984
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
985
+ target: z.ZodString;
986
+ }, z.z.core.$strict>, z.ZodObject<{
987
+ do: z.ZodLiteral<"say">;
988
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
989
+ message: z.ZodString;
990
+ tone: z.ZodOptional<z.ZodEnum<{
991
+ success: "success";
992
+ info: "info";
993
+ warning: "warning";
994
+ danger: "danger";
995
+ muted: "muted";
996
+ }>>;
997
+ }, z.z.core.$strict>, z.ZodObject<{
998
+ do: z.ZodLiteral<"ask">;
999
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1000
+ message: z.ZodString;
1001
+ }, z.z.core.$strict>, z.ZodObject<{
1002
+ do: z.ZodLiteral<"call">;
1003
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1004
+ action: z.ZodString;
1005
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1006
+ }, z.z.core.$strict>, z.ZodObject<{
1007
+ do: z.ZodLiteral<"close">;
1008
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1009
+ }, z.z.core.$strict>], "do">>>;
1010
+ action: z.ZodOptional<z.ZodString>;
731
1011
  field: z.ZodOptional<z.ZodString>;
732
1012
  icon: z.ZodOptional<z.ZodString>;
733
1013
  invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -892,7 +1172,82 @@ export declare const SheetNodeSchema: z.ZodObject<{
892
1172
  type: z.ZodLiteral<"button">;
893
1173
  id: z.ZodString;
894
1174
  label: z.ZodString;
895
- action: z.ZodString;
1175
+ steps: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1176
+ do: z.ZodLiteral<"open">;
1177
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1178
+ page: z.ZodString;
1179
+ version: z.ZodOptional<z.ZodInt>;
1180
+ as: z.ZodOptional<z.ZodEnum<{
1181
+ page: "page";
1182
+ dialog: "dialog";
1183
+ panel: "panel";
1184
+ }>>;
1185
+ side: z.ZodOptional<z.ZodEnum<{
1186
+ end: "end";
1187
+ start: "start";
1188
+ right: "right";
1189
+ left: "left";
1190
+ top: "top";
1191
+ bottom: "bottom";
1192
+ }>>;
1193
+ title: z.ZodOptional<z.ZodString>;
1194
+ record: z.ZodOptional<z.ZodString>;
1195
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1196
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1197
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions").ActionStepSchema>>;
1198
+ }, z.z.core.$strict>, z.ZodObject<{
1199
+ do: z.ZodLiteral<"set">;
1200
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1201
+ field: z.ZodString;
1202
+ value: z.ZodString;
1203
+ }, z.z.core.$strict>, z.ZodObject<{
1204
+ do: z.ZodLiteral<"clear">;
1205
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1206
+ field: z.ZodString;
1207
+ }, z.z.core.$strict>, z.ZodObject<{
1208
+ do: z.ZodLiteral<"addLine">;
1209
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1210
+ field: z.ZodString;
1211
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1212
+ }, z.z.core.$strict>, z.ZodObject<{
1213
+ do: z.ZodLiteral<"check">;
1214
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1215
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1216
+ }, z.z.core.$strict>, z.ZodObject<{
1217
+ do: z.ZodLiteral<"save">;
1218
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1219
+ }, z.z.core.$strict>, z.ZodObject<{
1220
+ do: z.ZodLiteral<"reset">;
1221
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1222
+ }, z.z.core.$strict>, z.ZodObject<{
1223
+ do: z.ZodLiteral<"goTo">;
1224
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1225
+ target: z.ZodString;
1226
+ }, z.z.core.$strict>, z.ZodObject<{
1227
+ do: z.ZodLiteral<"say">;
1228
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1229
+ message: z.ZodString;
1230
+ tone: z.ZodOptional<z.ZodEnum<{
1231
+ success: "success";
1232
+ info: "info";
1233
+ warning: "warning";
1234
+ danger: "danger";
1235
+ muted: "muted";
1236
+ }>>;
1237
+ }, z.z.core.$strict>, z.ZodObject<{
1238
+ do: z.ZodLiteral<"ask">;
1239
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1240
+ message: z.ZodString;
1241
+ }, z.z.core.$strict>, z.ZodObject<{
1242
+ do: z.ZodLiteral<"call">;
1243
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1244
+ action: z.ZodString;
1245
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1246
+ }, z.z.core.$strict>, z.ZodObject<{
1247
+ do: z.ZodLiteral<"close">;
1248
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1249
+ }, z.z.core.$strict>], "do">>>;
1250
+ action: z.ZodOptional<z.ZodString>;
896
1251
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
897
1252
  style: z.ZodOptional<z.ZodEnum<{
898
1253
  danger: "danger";
@@ -908,7 +1263,82 @@ export declare const SheetNodeSchema: z.ZodObject<{
908
1263
  statButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
909
1264
  id: z.ZodString;
910
1265
  label: z.ZodString;
911
- action: z.ZodString;
1266
+ steps: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1267
+ do: z.ZodLiteral<"open">;
1268
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1269
+ page: z.ZodString;
1270
+ version: z.ZodOptional<z.ZodInt>;
1271
+ as: z.ZodOptional<z.ZodEnum<{
1272
+ page: "page";
1273
+ dialog: "dialog";
1274
+ panel: "panel";
1275
+ }>>;
1276
+ side: z.ZodOptional<z.ZodEnum<{
1277
+ end: "end";
1278
+ start: "start";
1279
+ right: "right";
1280
+ left: "left";
1281
+ top: "top";
1282
+ bottom: "bottom";
1283
+ }>>;
1284
+ title: z.ZodOptional<z.ZodString>;
1285
+ record: z.ZodOptional<z.ZodString>;
1286
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1287
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1288
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions").ActionStepSchema>>;
1289
+ }, z.z.core.$strict>, z.ZodObject<{
1290
+ do: z.ZodLiteral<"set">;
1291
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1292
+ field: z.ZodString;
1293
+ value: z.ZodString;
1294
+ }, z.z.core.$strict>, z.ZodObject<{
1295
+ do: z.ZodLiteral<"clear">;
1296
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1297
+ field: z.ZodString;
1298
+ }, z.z.core.$strict>, z.ZodObject<{
1299
+ do: z.ZodLiteral<"addLine">;
1300
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1301
+ field: z.ZodString;
1302
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1303
+ }, z.z.core.$strict>, z.ZodObject<{
1304
+ do: z.ZodLiteral<"check">;
1305
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1306
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1307
+ }, z.z.core.$strict>, z.ZodObject<{
1308
+ do: z.ZodLiteral<"save">;
1309
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1310
+ }, z.z.core.$strict>, z.ZodObject<{
1311
+ do: z.ZodLiteral<"reset">;
1312
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1313
+ }, z.z.core.$strict>, z.ZodObject<{
1314
+ do: z.ZodLiteral<"goTo">;
1315
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1316
+ target: z.ZodString;
1317
+ }, z.z.core.$strict>, z.ZodObject<{
1318
+ do: z.ZodLiteral<"say">;
1319
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1320
+ message: z.ZodString;
1321
+ tone: z.ZodOptional<z.ZodEnum<{
1322
+ success: "success";
1323
+ info: "info";
1324
+ warning: "warning";
1325
+ danger: "danger";
1326
+ muted: "muted";
1327
+ }>>;
1328
+ }, z.z.core.$strict>, z.ZodObject<{
1329
+ do: z.ZodLiteral<"ask">;
1330
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1331
+ message: z.ZodString;
1332
+ }, z.z.core.$strict>, z.ZodObject<{
1333
+ do: z.ZodLiteral<"call">;
1334
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1335
+ action: z.ZodString;
1336
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1337
+ }, z.z.core.$strict>, z.ZodObject<{
1338
+ do: z.ZodLiteral<"close">;
1339
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1340
+ }, z.z.core.$strict>], "do">>>;
1341
+ action: z.ZodOptional<z.ZodString>;
912
1342
  field: z.ZodOptional<z.ZodString>;
913
1343
  icon: z.ZodOptional<z.ZodString>;
914
1344
  invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -1005,7 +1435,82 @@ export declare const ListNodeSchema: z.ZodObject<{
1005
1435
  type: z.ZodLiteral<"button">;
1006
1436
  id: z.ZodString;
1007
1437
  label: z.ZodString;
1008
- action: z.ZodString;
1438
+ steps: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1439
+ do: z.ZodLiteral<"open">;
1440
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1441
+ page: z.ZodString;
1442
+ version: z.ZodOptional<z.ZodInt>;
1443
+ as: z.ZodOptional<z.ZodEnum<{
1444
+ page: "page";
1445
+ dialog: "dialog";
1446
+ panel: "panel";
1447
+ }>>;
1448
+ side: z.ZodOptional<z.ZodEnum<{
1449
+ end: "end";
1450
+ start: "start";
1451
+ right: "right";
1452
+ left: "left";
1453
+ top: "top";
1454
+ bottom: "bottom";
1455
+ }>>;
1456
+ title: z.ZodOptional<z.ZodString>;
1457
+ record: z.ZodOptional<z.ZodString>;
1458
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1459
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1460
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions").ActionStepSchema>>;
1461
+ }, z.z.core.$strict>, z.ZodObject<{
1462
+ do: z.ZodLiteral<"set">;
1463
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1464
+ field: z.ZodString;
1465
+ value: z.ZodString;
1466
+ }, z.z.core.$strict>, z.ZodObject<{
1467
+ do: z.ZodLiteral<"clear">;
1468
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1469
+ field: z.ZodString;
1470
+ }, z.z.core.$strict>, z.ZodObject<{
1471
+ do: z.ZodLiteral<"addLine">;
1472
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1473
+ field: z.ZodString;
1474
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1475
+ }, z.z.core.$strict>, z.ZodObject<{
1476
+ do: z.ZodLiteral<"check">;
1477
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1478
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1479
+ }, z.z.core.$strict>, z.ZodObject<{
1480
+ do: z.ZodLiteral<"save">;
1481
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1482
+ }, z.z.core.$strict>, z.ZodObject<{
1483
+ do: z.ZodLiteral<"reset">;
1484
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1485
+ }, z.z.core.$strict>, z.ZodObject<{
1486
+ do: z.ZodLiteral<"goTo">;
1487
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1488
+ target: z.ZodString;
1489
+ }, z.z.core.$strict>, z.ZodObject<{
1490
+ do: z.ZodLiteral<"say">;
1491
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1492
+ message: z.ZodString;
1493
+ tone: z.ZodOptional<z.ZodEnum<{
1494
+ success: "success";
1495
+ info: "info";
1496
+ warning: "warning";
1497
+ danger: "danger";
1498
+ muted: "muted";
1499
+ }>>;
1500
+ }, z.z.core.$strict>, z.ZodObject<{
1501
+ do: z.ZodLiteral<"ask">;
1502
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1503
+ message: z.ZodString;
1504
+ }, z.z.core.$strict>, z.ZodObject<{
1505
+ do: z.ZodLiteral<"call">;
1506
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1507
+ action: z.ZodString;
1508
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1509
+ }, z.z.core.$strict>, z.ZodObject<{
1510
+ do: z.ZodLiteral<"close">;
1511
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1512
+ }, z.z.core.$strict>], "do">>>;
1513
+ action: z.ZodOptional<z.ZodString>;
1009
1514
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1010
1515
  style: z.ZodOptional<z.ZodEnum<{
1011
1516
  danger: "danger";
@@ -1141,7 +1646,82 @@ export declare const RootLayoutSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1141
1646
  type: z.ZodLiteral<"button">;
1142
1647
  id: z.ZodString;
1143
1648
  label: z.ZodString;
1144
- action: z.ZodString;
1649
+ steps: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1650
+ do: z.ZodLiteral<"open">;
1651
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1652
+ page: z.ZodString;
1653
+ version: z.ZodOptional<z.ZodInt>;
1654
+ as: z.ZodOptional<z.ZodEnum<{
1655
+ page: "page";
1656
+ dialog: "dialog";
1657
+ panel: "panel";
1658
+ }>>;
1659
+ side: z.ZodOptional<z.ZodEnum<{
1660
+ end: "end";
1661
+ start: "start";
1662
+ right: "right";
1663
+ left: "left";
1664
+ top: "top";
1665
+ bottom: "bottom";
1666
+ }>>;
1667
+ title: z.ZodOptional<z.ZodString>;
1668
+ record: z.ZodOptional<z.ZodString>;
1669
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1670
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1671
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions").ActionStepSchema>>;
1672
+ }, z.z.core.$strict>, z.ZodObject<{
1673
+ do: z.ZodLiteral<"set">;
1674
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1675
+ field: z.ZodString;
1676
+ value: z.ZodString;
1677
+ }, z.z.core.$strict>, z.ZodObject<{
1678
+ do: z.ZodLiteral<"clear">;
1679
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1680
+ field: z.ZodString;
1681
+ }, z.z.core.$strict>, z.ZodObject<{
1682
+ do: z.ZodLiteral<"addLine">;
1683
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1684
+ field: z.ZodString;
1685
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1686
+ }, z.z.core.$strict>, z.ZodObject<{
1687
+ do: z.ZodLiteral<"check">;
1688
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1689
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1690
+ }, z.z.core.$strict>, z.ZodObject<{
1691
+ do: z.ZodLiteral<"save">;
1692
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1693
+ }, z.z.core.$strict>, z.ZodObject<{
1694
+ do: z.ZodLiteral<"reset">;
1695
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1696
+ }, z.z.core.$strict>, z.ZodObject<{
1697
+ do: z.ZodLiteral<"goTo">;
1698
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1699
+ target: z.ZodString;
1700
+ }, z.z.core.$strict>, z.ZodObject<{
1701
+ do: z.ZodLiteral<"say">;
1702
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1703
+ message: z.ZodString;
1704
+ tone: z.ZodOptional<z.ZodEnum<{
1705
+ success: "success";
1706
+ info: "info";
1707
+ warning: "warning";
1708
+ danger: "danger";
1709
+ muted: "muted";
1710
+ }>>;
1711
+ }, z.z.core.$strict>, z.ZodObject<{
1712
+ do: z.ZodLiteral<"ask">;
1713
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1714
+ message: z.ZodString;
1715
+ }, z.z.core.$strict>, z.ZodObject<{
1716
+ do: z.ZodLiteral<"call">;
1717
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1718
+ action: z.ZodString;
1719
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1720
+ }, z.z.core.$strict>, z.ZodObject<{
1721
+ do: z.ZodLiteral<"close">;
1722
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1723
+ }, z.z.core.$strict>], "do">>>;
1724
+ action: z.ZodOptional<z.ZodString>;
1145
1725
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1146
1726
  style: z.ZodOptional<z.ZodEnum<{
1147
1727
  danger: "danger";
@@ -1157,7 +1737,82 @@ export declare const RootLayoutSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1157
1737
  statButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
1158
1738
  id: z.ZodString;
1159
1739
  label: z.ZodString;
1160
- action: z.ZodString;
1740
+ steps: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1741
+ do: z.ZodLiteral<"open">;
1742
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1743
+ page: z.ZodString;
1744
+ version: z.ZodOptional<z.ZodInt>;
1745
+ as: z.ZodOptional<z.ZodEnum<{
1746
+ page: "page";
1747
+ dialog: "dialog";
1748
+ panel: "panel";
1749
+ }>>;
1750
+ side: z.ZodOptional<z.ZodEnum<{
1751
+ end: "end";
1752
+ start: "start";
1753
+ right: "right";
1754
+ left: "left";
1755
+ top: "top";
1756
+ bottom: "bottom";
1757
+ }>>;
1758
+ title: z.ZodOptional<z.ZodString>;
1759
+ record: z.ZodOptional<z.ZodString>;
1760
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1761
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1762
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions").ActionStepSchema>>;
1763
+ }, z.z.core.$strict>, z.ZodObject<{
1764
+ do: z.ZodLiteral<"set">;
1765
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1766
+ field: z.ZodString;
1767
+ value: z.ZodString;
1768
+ }, z.z.core.$strict>, z.ZodObject<{
1769
+ do: z.ZodLiteral<"clear">;
1770
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1771
+ field: z.ZodString;
1772
+ }, z.z.core.$strict>, z.ZodObject<{
1773
+ do: z.ZodLiteral<"addLine">;
1774
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1775
+ field: z.ZodString;
1776
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1777
+ }, z.z.core.$strict>, z.ZodObject<{
1778
+ do: z.ZodLiteral<"check">;
1779
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1780
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1781
+ }, z.z.core.$strict>, z.ZodObject<{
1782
+ do: z.ZodLiteral<"save">;
1783
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1784
+ }, z.z.core.$strict>, z.ZodObject<{
1785
+ do: z.ZodLiteral<"reset">;
1786
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1787
+ }, z.z.core.$strict>, z.ZodObject<{
1788
+ do: z.ZodLiteral<"goTo">;
1789
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1790
+ target: z.ZodString;
1791
+ }, z.z.core.$strict>, z.ZodObject<{
1792
+ do: z.ZodLiteral<"say">;
1793
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1794
+ message: z.ZodString;
1795
+ tone: z.ZodOptional<z.ZodEnum<{
1796
+ success: "success";
1797
+ info: "info";
1798
+ warning: "warning";
1799
+ danger: "danger";
1800
+ muted: "muted";
1801
+ }>>;
1802
+ }, z.z.core.$strict>, z.ZodObject<{
1803
+ do: z.ZodLiteral<"ask">;
1804
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1805
+ message: z.ZodString;
1806
+ }, z.z.core.$strict>, z.ZodObject<{
1807
+ do: z.ZodLiteral<"call">;
1808
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1809
+ action: z.ZodString;
1810
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1811
+ }, z.z.core.$strict>, z.ZodObject<{
1812
+ do: z.ZodLiteral<"close">;
1813
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1814
+ }, z.z.core.$strict>], "do">>>;
1815
+ action: z.ZodOptional<z.ZodString>;
1161
1816
  field: z.ZodOptional<z.ZodString>;
1162
1817
  icon: z.ZodOptional<z.ZodString>;
1163
1818
  invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -1287,7 +1942,82 @@ export declare const RootLayoutSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1287
1942
  type: z.ZodLiteral<"button">;
1288
1943
  id: z.ZodString;
1289
1944
  label: z.ZodString;
1290
- action: z.ZodString;
1945
+ steps: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1946
+ do: z.ZodLiteral<"open">;
1947
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1948
+ page: z.ZodString;
1949
+ version: z.ZodOptional<z.ZodInt>;
1950
+ as: z.ZodOptional<z.ZodEnum<{
1951
+ page: "page";
1952
+ dialog: "dialog";
1953
+ panel: "panel";
1954
+ }>>;
1955
+ side: z.ZodOptional<z.ZodEnum<{
1956
+ end: "end";
1957
+ start: "start";
1958
+ right: "right";
1959
+ left: "left";
1960
+ top: "top";
1961
+ bottom: "bottom";
1962
+ }>>;
1963
+ title: z.ZodOptional<z.ZodString>;
1964
+ record: z.ZodOptional<z.ZodString>;
1965
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1966
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1967
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions").ActionStepSchema>>;
1968
+ }, z.z.core.$strict>, z.ZodObject<{
1969
+ do: z.ZodLiteral<"set">;
1970
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1971
+ field: z.ZodString;
1972
+ value: z.ZodString;
1973
+ }, z.z.core.$strict>, z.ZodObject<{
1974
+ do: z.ZodLiteral<"clear">;
1975
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1976
+ field: z.ZodString;
1977
+ }, z.z.core.$strict>, z.ZodObject<{
1978
+ do: z.ZodLiteral<"addLine">;
1979
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1980
+ field: z.ZodString;
1981
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1982
+ }, z.z.core.$strict>, z.ZodObject<{
1983
+ do: z.ZodLiteral<"check">;
1984
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1985
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1986
+ }, z.z.core.$strict>, z.ZodObject<{
1987
+ do: z.ZodLiteral<"save">;
1988
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1989
+ }, z.z.core.$strict>, z.ZodObject<{
1990
+ do: z.ZodLiteral<"reset">;
1991
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1992
+ }, z.z.core.$strict>, z.ZodObject<{
1993
+ do: z.ZodLiteral<"goTo">;
1994
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1995
+ target: z.ZodString;
1996
+ }, z.z.core.$strict>, z.ZodObject<{
1997
+ do: z.ZodLiteral<"say">;
1998
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1999
+ message: z.ZodString;
2000
+ tone: z.ZodOptional<z.ZodEnum<{
2001
+ success: "success";
2002
+ info: "info";
2003
+ warning: "warning";
2004
+ danger: "danger";
2005
+ muted: "muted";
2006
+ }>>;
2007
+ }, z.z.core.$strict>, z.ZodObject<{
2008
+ do: z.ZodLiteral<"ask">;
2009
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2010
+ message: z.ZodString;
2011
+ }, z.z.core.$strict>, z.ZodObject<{
2012
+ do: z.ZodLiteral<"call">;
2013
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2014
+ action: z.ZodString;
2015
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2016
+ }, z.z.core.$strict>, z.ZodObject<{
2017
+ do: z.ZodLiteral<"close">;
2018
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2019
+ }, z.z.core.$strict>], "do">>>;
2020
+ action: z.ZodOptional<z.ZodString>;
1291
2021
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1292
2022
  style: z.ZodOptional<z.ZodEnum<{
1293
2023
  danger: "danger";