@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,6 +1,8 @@
1
1
  import * as z from 'zod';
2
+ import { type PageEvents } from './actions.mjs';
2
3
  import { type Fields } from './field.mjs';
3
4
  import { type RootLayout } from './layout.mjs';
5
+ import { type PartsLook } from './part-look.mjs';
4
6
  import { FORMAT_VERSION } from './version.mjs';
5
7
  export { FORMAT_VERSION } from './version.mjs';
6
8
  /**
@@ -31,6 +33,8 @@ export interface PageLook {
31
33
  labelWidth?: number;
32
34
  /** Light, dark, or as the reader's system has it. */
33
35
  scheme?: 'light' | 'dark' | 'auto';
36
+ /** A look for each kind of part, over the page's: text boxes, choices, groups, buttons, tables. See `PART_LOOKS`. */
37
+ parts?: PartsLook;
34
38
  }
35
39
  export interface Page {
36
40
  /** The format version, so a reader can refuse what it does not understand. */
@@ -58,6 +62,8 @@ export interface Page {
58
62
  [text: string]: string;
59
63
  };
60
64
  };
65
+ /** What the form does at its moments — opened, a field changed, before and after saving, a step shown: steps, as data. */
66
+ on?: PageEvents;
61
67
  }
62
68
  export declare const PageDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
63
69
  kind: z.ZodLiteral<"record">;
@@ -915,7 +921,82 @@ export declare const PageSchema: z.ZodObject<{
915
921
  type: z.ZodLiteral<"button">;
916
922
  id: z.ZodString;
917
923
  label: z.ZodString;
918
- action: z.ZodString;
924
+ steps: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
925
+ do: z.ZodLiteral<"open">;
926
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
927
+ page: z.ZodString;
928
+ version: z.ZodOptional<z.ZodInt>;
929
+ as: z.ZodOptional<z.ZodEnum<{
930
+ page: "page";
931
+ dialog: "dialog";
932
+ panel: "panel";
933
+ }>>;
934
+ side: z.ZodOptional<z.ZodEnum<{
935
+ end: "end";
936
+ start: "start";
937
+ right: "right";
938
+ left: "left";
939
+ top: "top";
940
+ bottom: "bottom";
941
+ }>>;
942
+ title: z.ZodOptional<z.ZodString>;
943
+ record: z.ZodOptional<z.ZodString>;
944
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
945
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
946
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions.mjs").ActionStepSchema>>;
947
+ }, z.core.$strict>, z.ZodObject<{
948
+ do: z.ZodLiteral<"set">;
949
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
950
+ field: z.ZodString;
951
+ value: z.ZodString;
952
+ }, z.core.$strict>, z.ZodObject<{
953
+ do: z.ZodLiteral<"clear">;
954
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
955
+ field: z.ZodString;
956
+ }, z.core.$strict>, z.ZodObject<{
957
+ do: z.ZodLiteral<"addLine">;
958
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
959
+ field: z.ZodString;
960
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
961
+ }, z.core.$strict>, z.ZodObject<{
962
+ do: z.ZodLiteral<"check">;
963
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
964
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
965
+ }, z.core.$strict>, z.ZodObject<{
966
+ do: z.ZodLiteral<"save">;
967
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
968
+ }, z.core.$strict>, z.ZodObject<{
969
+ do: z.ZodLiteral<"reset">;
970
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
971
+ }, z.core.$strict>, z.ZodObject<{
972
+ do: z.ZodLiteral<"goTo">;
973
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
974
+ target: z.ZodString;
975
+ }, z.core.$strict>, z.ZodObject<{
976
+ do: z.ZodLiteral<"say">;
977
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
978
+ message: z.ZodString;
979
+ tone: z.ZodOptional<z.ZodEnum<{
980
+ success: "success";
981
+ info: "info";
982
+ warning: "warning";
983
+ danger: "danger";
984
+ muted: "muted";
985
+ }>>;
986
+ }, z.core.$strict>, z.ZodObject<{
987
+ do: z.ZodLiteral<"ask">;
988
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
989
+ message: z.ZodString;
990
+ }, z.core.$strict>, z.ZodObject<{
991
+ do: z.ZodLiteral<"call">;
992
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
993
+ action: z.ZodString;
994
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
995
+ }, z.core.$strict>, z.ZodObject<{
996
+ do: z.ZodLiteral<"close">;
997
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
998
+ }, z.core.$strict>], "do">>>;
999
+ action: z.ZodOptional<z.ZodString>;
919
1000
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
920
1001
  style: z.ZodOptional<z.ZodEnum<{
921
1002
  danger: "danger";
@@ -931,7 +1012,82 @@ export declare const PageSchema: z.ZodObject<{
931
1012
  statButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
932
1013
  id: z.ZodString;
933
1014
  label: z.ZodString;
934
- action: z.ZodString;
1015
+ steps: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1016
+ do: z.ZodLiteral<"open">;
1017
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1018
+ page: z.ZodString;
1019
+ version: z.ZodOptional<z.ZodInt>;
1020
+ as: z.ZodOptional<z.ZodEnum<{
1021
+ page: "page";
1022
+ dialog: "dialog";
1023
+ panel: "panel";
1024
+ }>>;
1025
+ side: z.ZodOptional<z.ZodEnum<{
1026
+ end: "end";
1027
+ start: "start";
1028
+ right: "right";
1029
+ left: "left";
1030
+ top: "top";
1031
+ bottom: "bottom";
1032
+ }>>;
1033
+ title: z.ZodOptional<z.ZodString>;
1034
+ record: z.ZodOptional<z.ZodString>;
1035
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1036
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1037
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions.mjs").ActionStepSchema>>;
1038
+ }, z.core.$strict>, z.ZodObject<{
1039
+ do: z.ZodLiteral<"set">;
1040
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1041
+ field: z.ZodString;
1042
+ value: z.ZodString;
1043
+ }, z.core.$strict>, z.ZodObject<{
1044
+ do: z.ZodLiteral<"clear">;
1045
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1046
+ field: z.ZodString;
1047
+ }, z.core.$strict>, z.ZodObject<{
1048
+ do: z.ZodLiteral<"addLine">;
1049
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1050
+ field: z.ZodString;
1051
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1052
+ }, z.core.$strict>, z.ZodObject<{
1053
+ do: z.ZodLiteral<"check">;
1054
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1055
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1056
+ }, z.core.$strict>, z.ZodObject<{
1057
+ do: z.ZodLiteral<"save">;
1058
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1059
+ }, z.core.$strict>, z.ZodObject<{
1060
+ do: z.ZodLiteral<"reset">;
1061
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1062
+ }, z.core.$strict>, z.ZodObject<{
1063
+ do: z.ZodLiteral<"goTo">;
1064
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1065
+ target: z.ZodString;
1066
+ }, z.core.$strict>, z.ZodObject<{
1067
+ do: z.ZodLiteral<"say">;
1068
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1069
+ message: z.ZodString;
1070
+ tone: z.ZodOptional<z.ZodEnum<{
1071
+ success: "success";
1072
+ info: "info";
1073
+ warning: "warning";
1074
+ danger: "danger";
1075
+ muted: "muted";
1076
+ }>>;
1077
+ }, z.core.$strict>, z.ZodObject<{
1078
+ do: z.ZodLiteral<"ask">;
1079
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1080
+ message: z.ZodString;
1081
+ }, z.core.$strict>, z.ZodObject<{
1082
+ do: z.ZodLiteral<"call">;
1083
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1084
+ action: z.ZodString;
1085
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1086
+ }, z.core.$strict>, z.ZodObject<{
1087
+ do: z.ZodLiteral<"close">;
1088
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1089
+ }, z.core.$strict>], "do">>>;
1090
+ action: z.ZodOptional<z.ZodString>;
935
1091
  field: z.ZodOptional<z.ZodString>;
936
1092
  icon: z.ZodOptional<z.ZodString>;
937
1093
  invisible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -1061,7 +1217,82 @@ export declare const PageSchema: z.ZodObject<{
1061
1217
  type: z.ZodLiteral<"button">;
1062
1218
  id: z.ZodString;
1063
1219
  label: z.ZodString;
1064
- action: z.ZodString;
1220
+ steps: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1221
+ do: z.ZodLiteral<"open">;
1222
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1223
+ page: z.ZodString;
1224
+ version: z.ZodOptional<z.ZodInt>;
1225
+ as: z.ZodOptional<z.ZodEnum<{
1226
+ page: "page";
1227
+ dialog: "dialog";
1228
+ panel: "panel";
1229
+ }>>;
1230
+ side: z.ZodOptional<z.ZodEnum<{
1231
+ end: "end";
1232
+ start: "start";
1233
+ right: "right";
1234
+ left: "left";
1235
+ top: "top";
1236
+ bottom: "bottom";
1237
+ }>>;
1238
+ title: z.ZodOptional<z.ZodString>;
1239
+ record: z.ZodOptional<z.ZodString>;
1240
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1241
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1242
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions.mjs").ActionStepSchema>>;
1243
+ }, z.core.$strict>, z.ZodObject<{
1244
+ do: z.ZodLiteral<"set">;
1245
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1246
+ field: z.ZodString;
1247
+ value: z.ZodString;
1248
+ }, z.core.$strict>, z.ZodObject<{
1249
+ do: z.ZodLiteral<"clear">;
1250
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1251
+ field: z.ZodString;
1252
+ }, z.core.$strict>, z.ZodObject<{
1253
+ do: z.ZodLiteral<"addLine">;
1254
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1255
+ field: z.ZodString;
1256
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1257
+ }, z.core.$strict>, z.ZodObject<{
1258
+ do: z.ZodLiteral<"check">;
1259
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1260
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1261
+ }, z.core.$strict>, z.ZodObject<{
1262
+ do: z.ZodLiteral<"save">;
1263
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1264
+ }, z.core.$strict>, z.ZodObject<{
1265
+ do: z.ZodLiteral<"reset">;
1266
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1267
+ }, z.core.$strict>, z.ZodObject<{
1268
+ do: z.ZodLiteral<"goTo">;
1269
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1270
+ target: z.ZodString;
1271
+ }, z.core.$strict>, z.ZodObject<{
1272
+ do: z.ZodLiteral<"say">;
1273
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1274
+ message: z.ZodString;
1275
+ tone: z.ZodOptional<z.ZodEnum<{
1276
+ success: "success";
1277
+ info: "info";
1278
+ warning: "warning";
1279
+ danger: "danger";
1280
+ muted: "muted";
1281
+ }>>;
1282
+ }, z.core.$strict>, z.ZodObject<{
1283
+ do: z.ZodLiteral<"ask">;
1284
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1285
+ message: z.ZodString;
1286
+ }, z.core.$strict>, z.ZodObject<{
1287
+ do: z.ZodLiteral<"call">;
1288
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1289
+ action: z.ZodString;
1290
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1291
+ }, z.core.$strict>, z.ZodObject<{
1292
+ do: z.ZodLiteral<"close">;
1293
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1294
+ }, z.core.$strict>], "do">>>;
1295
+ action: z.ZodOptional<z.ZodString>;
1065
1296
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1066
1297
  style: z.ZodOptional<z.ZodEnum<{
1067
1298
  danger: "danger";
@@ -1113,7 +1344,389 @@ export declare const PageSchema: z.ZodObject<{
1113
1344
  dark: "dark";
1114
1345
  auto: "auto";
1115
1346
  }>>;
1347
+ parts: z.ZodOptional<z.ZodObject<{
1348
+ [x: string]: z.ZodOptional<z.ZodObject<{
1349
+ [x: string]: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1350
+ }, z.core.$strict>>;
1351
+ }, z.core.$strict>>;
1116
1352
  }, z.core.$strict>>;
1117
1353
  language: z.ZodOptional<z.ZodString>;
1118
1354
  translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
1355
+ on: z.ZodOptional<z.ZodObject<{
1356
+ open: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1357
+ do: z.ZodLiteral<"open">;
1358
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1359
+ page: z.ZodString;
1360
+ version: z.ZodOptional<z.ZodInt>;
1361
+ as: z.ZodOptional<z.ZodEnum<{
1362
+ page: "page";
1363
+ dialog: "dialog";
1364
+ panel: "panel";
1365
+ }>>;
1366
+ side: z.ZodOptional<z.ZodEnum<{
1367
+ end: "end";
1368
+ start: "start";
1369
+ right: "right";
1370
+ left: "left";
1371
+ top: "top";
1372
+ bottom: "bottom";
1373
+ }>>;
1374
+ title: z.ZodOptional<z.ZodString>;
1375
+ record: z.ZodOptional<z.ZodString>;
1376
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1377
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1378
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions.mjs").ActionStepSchema>>;
1379
+ }, z.core.$strict>, z.ZodObject<{
1380
+ do: z.ZodLiteral<"set">;
1381
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1382
+ field: z.ZodString;
1383
+ value: z.ZodString;
1384
+ }, z.core.$strict>, z.ZodObject<{
1385
+ do: z.ZodLiteral<"clear">;
1386
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1387
+ field: z.ZodString;
1388
+ }, z.core.$strict>, z.ZodObject<{
1389
+ do: z.ZodLiteral<"addLine">;
1390
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1391
+ field: z.ZodString;
1392
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1393
+ }, z.core.$strict>, z.ZodObject<{
1394
+ do: z.ZodLiteral<"check">;
1395
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1396
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1397
+ }, z.core.$strict>, z.ZodObject<{
1398
+ do: z.ZodLiteral<"save">;
1399
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1400
+ }, z.core.$strict>, z.ZodObject<{
1401
+ do: z.ZodLiteral<"reset">;
1402
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1403
+ }, z.core.$strict>, z.ZodObject<{
1404
+ do: z.ZodLiteral<"goTo">;
1405
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1406
+ target: z.ZodString;
1407
+ }, z.core.$strict>, z.ZodObject<{
1408
+ do: z.ZodLiteral<"say">;
1409
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1410
+ message: z.ZodString;
1411
+ tone: z.ZodOptional<z.ZodEnum<{
1412
+ success: "success";
1413
+ info: "info";
1414
+ warning: "warning";
1415
+ danger: "danger";
1416
+ muted: "muted";
1417
+ }>>;
1418
+ }, z.core.$strict>, z.ZodObject<{
1419
+ do: z.ZodLiteral<"ask">;
1420
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1421
+ message: z.ZodString;
1422
+ }, z.core.$strict>, z.ZodObject<{
1423
+ do: z.ZodLiteral<"call">;
1424
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1425
+ action: z.ZodString;
1426
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1427
+ }, z.core.$strict>, z.ZodObject<{
1428
+ do: z.ZodLiteral<"close">;
1429
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1430
+ }, z.core.$strict>], "do">>>;
1431
+ change: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1432
+ do: z.ZodLiteral<"open">;
1433
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1434
+ page: z.ZodString;
1435
+ version: z.ZodOptional<z.ZodInt>;
1436
+ as: z.ZodOptional<z.ZodEnum<{
1437
+ page: "page";
1438
+ dialog: "dialog";
1439
+ panel: "panel";
1440
+ }>>;
1441
+ side: z.ZodOptional<z.ZodEnum<{
1442
+ end: "end";
1443
+ start: "start";
1444
+ right: "right";
1445
+ left: "left";
1446
+ top: "top";
1447
+ bottom: "bottom";
1448
+ }>>;
1449
+ title: z.ZodOptional<z.ZodString>;
1450
+ record: z.ZodOptional<z.ZodString>;
1451
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1452
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1453
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions.mjs").ActionStepSchema>>;
1454
+ }, z.core.$strict>, z.ZodObject<{
1455
+ do: z.ZodLiteral<"set">;
1456
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1457
+ field: z.ZodString;
1458
+ value: z.ZodString;
1459
+ }, z.core.$strict>, z.ZodObject<{
1460
+ do: z.ZodLiteral<"clear">;
1461
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1462
+ field: z.ZodString;
1463
+ }, z.core.$strict>, z.ZodObject<{
1464
+ do: z.ZodLiteral<"addLine">;
1465
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1466
+ field: z.ZodString;
1467
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1468
+ }, z.core.$strict>, z.ZodObject<{
1469
+ do: z.ZodLiteral<"check">;
1470
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1471
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1472
+ }, z.core.$strict>, z.ZodObject<{
1473
+ do: z.ZodLiteral<"save">;
1474
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1475
+ }, z.core.$strict>, z.ZodObject<{
1476
+ do: z.ZodLiteral<"reset">;
1477
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1478
+ }, z.core.$strict>, z.ZodObject<{
1479
+ do: z.ZodLiteral<"goTo">;
1480
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1481
+ target: z.ZodString;
1482
+ }, z.core.$strict>, z.ZodObject<{
1483
+ do: z.ZodLiteral<"say">;
1484
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1485
+ message: z.ZodString;
1486
+ tone: z.ZodOptional<z.ZodEnum<{
1487
+ success: "success";
1488
+ info: "info";
1489
+ warning: "warning";
1490
+ danger: "danger";
1491
+ muted: "muted";
1492
+ }>>;
1493
+ }, z.core.$strict>, z.ZodObject<{
1494
+ do: z.ZodLiteral<"ask">;
1495
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1496
+ message: z.ZodString;
1497
+ }, z.core.$strict>, z.ZodObject<{
1498
+ do: z.ZodLiteral<"call">;
1499
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1500
+ action: z.ZodString;
1501
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1502
+ }, z.core.$strict>, z.ZodObject<{
1503
+ do: z.ZodLiteral<"close">;
1504
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1505
+ }, z.core.$strict>], "do">>>>;
1506
+ beforeSave: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1507
+ do: z.ZodLiteral<"open">;
1508
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1509
+ page: z.ZodString;
1510
+ version: z.ZodOptional<z.ZodInt>;
1511
+ as: z.ZodOptional<z.ZodEnum<{
1512
+ page: "page";
1513
+ dialog: "dialog";
1514
+ panel: "panel";
1515
+ }>>;
1516
+ side: z.ZodOptional<z.ZodEnum<{
1517
+ end: "end";
1518
+ start: "start";
1519
+ right: "right";
1520
+ left: "left";
1521
+ top: "top";
1522
+ bottom: "bottom";
1523
+ }>>;
1524
+ title: z.ZodOptional<z.ZodString>;
1525
+ record: z.ZodOptional<z.ZodString>;
1526
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1527
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1528
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions.mjs").ActionStepSchema>>;
1529
+ }, z.core.$strict>, z.ZodObject<{
1530
+ do: z.ZodLiteral<"set">;
1531
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1532
+ field: z.ZodString;
1533
+ value: z.ZodString;
1534
+ }, z.core.$strict>, z.ZodObject<{
1535
+ do: z.ZodLiteral<"clear">;
1536
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1537
+ field: z.ZodString;
1538
+ }, z.core.$strict>, z.ZodObject<{
1539
+ do: z.ZodLiteral<"addLine">;
1540
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1541
+ field: z.ZodString;
1542
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1543
+ }, z.core.$strict>, z.ZodObject<{
1544
+ do: z.ZodLiteral<"check">;
1545
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1546
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1547
+ }, z.core.$strict>, z.ZodObject<{
1548
+ do: z.ZodLiteral<"save">;
1549
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1550
+ }, z.core.$strict>, z.ZodObject<{
1551
+ do: z.ZodLiteral<"reset">;
1552
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1553
+ }, z.core.$strict>, z.ZodObject<{
1554
+ do: z.ZodLiteral<"goTo">;
1555
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1556
+ target: z.ZodString;
1557
+ }, z.core.$strict>, z.ZodObject<{
1558
+ do: z.ZodLiteral<"say">;
1559
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1560
+ message: z.ZodString;
1561
+ tone: z.ZodOptional<z.ZodEnum<{
1562
+ success: "success";
1563
+ info: "info";
1564
+ warning: "warning";
1565
+ danger: "danger";
1566
+ muted: "muted";
1567
+ }>>;
1568
+ }, z.core.$strict>, z.ZodObject<{
1569
+ do: z.ZodLiteral<"ask">;
1570
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1571
+ message: z.ZodString;
1572
+ }, z.core.$strict>, z.ZodObject<{
1573
+ do: z.ZodLiteral<"call">;
1574
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1575
+ action: z.ZodString;
1576
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1577
+ }, z.core.$strict>, z.ZodObject<{
1578
+ do: z.ZodLiteral<"close">;
1579
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1580
+ }, z.core.$strict>], "do">>>;
1581
+ afterSave: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1582
+ do: z.ZodLiteral<"open">;
1583
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1584
+ page: z.ZodString;
1585
+ version: z.ZodOptional<z.ZodInt>;
1586
+ as: z.ZodOptional<z.ZodEnum<{
1587
+ page: "page";
1588
+ dialog: "dialog";
1589
+ panel: "panel";
1590
+ }>>;
1591
+ side: z.ZodOptional<z.ZodEnum<{
1592
+ end: "end";
1593
+ start: "start";
1594
+ right: "right";
1595
+ left: "left";
1596
+ top: "top";
1597
+ bottom: "bottom";
1598
+ }>>;
1599
+ title: z.ZodOptional<z.ZodString>;
1600
+ record: z.ZodOptional<z.ZodString>;
1601
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1602
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1603
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions.mjs").ActionStepSchema>>;
1604
+ }, z.core.$strict>, z.ZodObject<{
1605
+ do: z.ZodLiteral<"set">;
1606
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1607
+ field: z.ZodString;
1608
+ value: z.ZodString;
1609
+ }, z.core.$strict>, z.ZodObject<{
1610
+ do: z.ZodLiteral<"clear">;
1611
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1612
+ field: z.ZodString;
1613
+ }, z.core.$strict>, z.ZodObject<{
1614
+ do: z.ZodLiteral<"addLine">;
1615
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1616
+ field: z.ZodString;
1617
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1618
+ }, z.core.$strict>, z.ZodObject<{
1619
+ do: z.ZodLiteral<"check">;
1620
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1621
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1622
+ }, z.core.$strict>, z.ZodObject<{
1623
+ do: z.ZodLiteral<"save">;
1624
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1625
+ }, z.core.$strict>, z.ZodObject<{
1626
+ do: z.ZodLiteral<"reset">;
1627
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1628
+ }, z.core.$strict>, z.ZodObject<{
1629
+ do: z.ZodLiteral<"goTo">;
1630
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1631
+ target: z.ZodString;
1632
+ }, z.core.$strict>, z.ZodObject<{
1633
+ do: z.ZodLiteral<"say">;
1634
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1635
+ message: z.ZodString;
1636
+ tone: z.ZodOptional<z.ZodEnum<{
1637
+ success: "success";
1638
+ info: "info";
1639
+ warning: "warning";
1640
+ danger: "danger";
1641
+ muted: "muted";
1642
+ }>>;
1643
+ }, z.core.$strict>, z.ZodObject<{
1644
+ do: z.ZodLiteral<"ask">;
1645
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1646
+ message: z.ZodString;
1647
+ }, z.core.$strict>, z.ZodObject<{
1648
+ do: z.ZodLiteral<"call">;
1649
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1650
+ action: z.ZodString;
1651
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1652
+ }, z.core.$strict>, z.ZodObject<{
1653
+ do: z.ZodLiteral<"close">;
1654
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1655
+ }, z.core.$strict>], "do">>>;
1656
+ show: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1657
+ do: z.ZodLiteral<"open">;
1658
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1659
+ page: z.ZodString;
1660
+ version: z.ZodOptional<z.ZodInt>;
1661
+ as: z.ZodOptional<z.ZodEnum<{
1662
+ page: "page";
1663
+ dialog: "dialog";
1664
+ panel: "panel";
1665
+ }>>;
1666
+ side: z.ZodOptional<z.ZodEnum<{
1667
+ end: "end";
1668
+ start: "start";
1669
+ right: "right";
1670
+ left: "left";
1671
+ top: "top";
1672
+ bottom: "bottom";
1673
+ }>>;
1674
+ title: z.ZodOptional<z.ZodString>;
1675
+ record: z.ZodOptional<z.ZodString>;
1676
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1677
+ into: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1678
+ then: z.ZodOptional<z.ZodArray<typeof import("./actions.mjs").ActionStepSchema>>;
1679
+ }, z.core.$strict>, z.ZodObject<{
1680
+ do: z.ZodLiteral<"set">;
1681
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1682
+ field: z.ZodString;
1683
+ value: z.ZodString;
1684
+ }, z.core.$strict>, z.ZodObject<{
1685
+ do: z.ZodLiteral<"clear">;
1686
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1687
+ field: z.ZodString;
1688
+ }, z.core.$strict>, z.ZodObject<{
1689
+ do: z.ZodLiteral<"addLine">;
1690
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1691
+ field: z.ZodString;
1692
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1693
+ }, z.core.$strict>, z.ZodObject<{
1694
+ do: z.ZodLiteral<"check">;
1695
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1696
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1697
+ }, z.core.$strict>, z.ZodObject<{
1698
+ do: z.ZodLiteral<"save">;
1699
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1700
+ }, z.core.$strict>, z.ZodObject<{
1701
+ do: z.ZodLiteral<"reset">;
1702
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1703
+ }, z.core.$strict>, z.ZodObject<{
1704
+ do: z.ZodLiteral<"goTo">;
1705
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1706
+ target: z.ZodString;
1707
+ }, z.core.$strict>, z.ZodObject<{
1708
+ do: z.ZodLiteral<"say">;
1709
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1710
+ message: z.ZodString;
1711
+ tone: z.ZodOptional<z.ZodEnum<{
1712
+ success: "success";
1713
+ info: "info";
1714
+ warning: "warning";
1715
+ danger: "danger";
1716
+ muted: "muted";
1717
+ }>>;
1718
+ }, z.core.$strict>, z.ZodObject<{
1719
+ do: z.ZodLiteral<"ask">;
1720
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1721
+ message: z.ZodString;
1722
+ }, z.core.$strict>, z.ZodObject<{
1723
+ do: z.ZodLiteral<"call">;
1724
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1725
+ action: z.ZodString;
1726
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1727
+ }, z.core.$strict>, z.ZodObject<{
1728
+ do: z.ZodLiteral<"close">;
1729
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1730
+ }, z.core.$strict>], "do">>>>;
1731
+ }, z.core.$strict>>;
1119
1732
  }, z.core.$strict>;