wizards 0.2.25 → 0.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/runtime/dist/agents/architect.js +5 -0
- package/apps/runtime/dist/agents/project-assistant.js +10 -1
- package/apps/runtime/dist/authoring/guide.js +61 -8
- package/apps/runtime/dist/connectors/builtin.js +17 -1
- package/apps/runtime/dist/connectors/index.js +43 -14
- package/apps/runtime/dist/connectors/plugin-connections.js +248 -0
- package/apps/runtime/dist/connectors/via-account.js +63 -0
- package/apps/runtime/dist/credits/estimate.js +12 -2
- package/apps/runtime/dist/db/migrations/tenant/0010_plugin_connection.sql +15 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0010_snapshot.json +2942 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
- package/apps/runtime/dist/db/schema.js +21 -0
- package/apps/runtime/dist/engenty/connections-google/connectors/calendar.js +25 -3
- package/apps/runtime/dist/engenty/connections-microsoft/outlook.js +29 -1
- package/apps/runtime/dist/engine/decide.js +82 -0
- package/apps/runtime/dist/engine/input.js +21 -5
- package/apps/runtime/dist/engine/requirements.js +80 -15
- package/apps/runtime/dist/engine/runner.js +252 -6
- package/apps/runtime/dist/engine/steps.js +206 -18
- package/apps/runtime/dist/engine/surface.js +90 -0
- package/apps/runtime/dist/mcp/tools.js +3 -2
- package/apps/runtime/dist/plugins/loader.js +22 -1
- package/apps/runtime/dist/plugins/registry.js +10 -0
- package/apps/runtime/dist/render/downloads.js +7 -0
- package/apps/runtime/dist/routes/runs.js +28 -7
- package/apps/runtime/dist/routes/studio.js +3 -1
- package/apps/runtime/dist/services/marketplace.js +134 -3
- package/apps/runtime/dist/services/relevance.js +17 -49
- package/apps/runtime/dist/services/runs.js +43 -15
- package/apps/runtime/dist/services/wizards.js +4 -2
- package/apps/runtime/dist/tools/pages.js +31 -6
- package/apps/runtime/dist/tools/plugin.js +29 -1
- package/apps/web/dist/assets/Account-DW396ig5.js +1 -0
- package/apps/web/dist/assets/{ChangelogDialog-B7C0r9dF.js → ChangelogDialog-BdZ1SmEd.js} +1 -1
- package/apps/web/dist/assets/CreditsDialog-fOYdoev3.js +1 -0
- package/apps/web/dist/assets/EditorPage-CAARFsaI.js +3 -0
- package/apps/web/dist/assets/{FlowPreview-D0m5Qk6S.js → FlowPreview-U2AEnKlX.js} +1 -1
- package/apps/web/dist/assets/{Harness-bIL3pHB_.js → Harness-CtDlm_2b.js} +2 -2
- package/apps/web/dist/assets/HomePage-Bd-mkLxW.js +1 -0
- package/apps/web/dist/assets/ImportWizard-BMPGjd_t.js +1 -0
- package/apps/web/dist/assets/LocalRuntime-DjSNCRnV.js +1 -0
- package/apps/web/dist/assets/NewWizardPage-DZPcDR9i.js +2 -0
- package/apps/web/dist/assets/ProjectPage-_LAtG3tn.js +2 -0
- package/apps/web/dist/assets/PublicRunner-6Iqp0DmU.js +1 -0
- package/apps/web/dist/assets/RunDrawer-CtQoY3Ha.js +4 -0
- package/apps/web/dist/assets/RunnerView-BLOCNZaZ.js +2 -0
- package/apps/web/dist/assets/SettingsPage-Z6skBf6I.js +1 -0
- package/apps/web/dist/assets/SetupPage-4-Lic4pT.js +1 -0
- package/apps/web/dist/assets/SharePage-DfdhXxZm.js +1 -0
- package/apps/web/dist/assets/arrow-right-BOtqnsA1.js +1 -0
- package/apps/web/dist/assets/brand-CCAI9p0f.js +2 -0
- package/apps/web/dist/assets/changelog-DQM0oz9S.js +1 -0
- package/apps/web/dist/assets/circle-alert-BC6xmJ9r.js +1 -0
- package/apps/web/dist/assets/definition-D5V79jHA.js +1 -0
- package/apps/web/dist/assets/esm-FEWi61F_.js +7 -0
- package/apps/web/dist/assets/external-link-wKL1HE6G.js +1 -0
- package/apps/web/dist/assets/image-BMdSChOR.js +1 -0
- package/apps/web/dist/assets/index-BOp2fz-2.css +1 -0
- package/apps/web/dist/assets/index-YJMooz0J.js +132 -0
- package/apps/web/dist/assets/lock-BpqzLMuv.js +1 -0
- package/apps/web/dist/assets/meta-BqZ7SlZz.js +1 -0
- package/apps/web/dist/assets/pen-line-DM-u0dES.js +1 -0
- package/apps/web/dist/assets/refresh-cw-Bk7HkOIM.js +1 -0
- package/apps/web/dist/assets/settings-menu-BM_NfZfn.js +1 -0
- package/apps/web/dist/assets/star-JHzYYl5R.js +1 -0
- package/apps/web/dist/assets/trash-CdLg-Ela.js +1 -0
- package/apps/web/dist/assets/ui-8QmvuC9u.js +9 -0
- package/apps/web/dist/assets/upload-CL1R6shM.js +1 -0
- package/apps/web/dist/assets/video-BioLmXNO.js +1 -0
- package/apps/web/dist/assets/volume-2-_IOfPNCv.js +1 -0
- package/apps/web/dist/assets/wand-sparkles-DYtDQSJZ.js +1 -0
- package/apps/web/dist/index.html +4 -5
- package/apps/web/dist/mcp/flow.html +61 -61
- package/node_modules/@engenty-wizards/plugin-sdk/dist/index.d.ts +85 -0
- package/node_modules/@engenty-wizards/plugin-sdk/dist/studio.d.ts +23 -0
- package/node_modules/@engenty-wizards/shared/dist/decision.d.ts +76 -0
- package/node_modules/@engenty-wizards/shared/dist/decision.js +147 -0
- package/node_modules/@engenty-wizards/shared/dist/definition.d.ts +1076 -51
- package/node_modules/@engenty-wizards/shared/dist/definition.js +597 -44
- package/node_modules/@engenty-wizards/shared/dist/marketplace-entry.js +19 -2
- package/node_modules/@engenty-wizards/shared/dist/marketplace.d.ts +6 -1
- package/node_modules/@engenty-wizards/shared/dist/run.d.ts +55 -0
- package/node_modules/@engenty-wizards/shared/dist/run.js +3 -0
- package/node_modules/@engenty-wizards/shared/dist/surface.d.ts +89 -0
- package/node_modules/@engenty-wizards/shared/dist/surface.js +198 -0
- package/package.json +1 -1
- package/apps/web/dist/assets/Account-CpxsROpe.js +0 -1
- package/apps/web/dist/assets/CreditsDialog-Com2Y3g8.js +0 -1
- package/apps/web/dist/assets/EditorPage-BCagWjrz.js +0 -2
- package/apps/web/dist/assets/HomePage-DPE_Z9HB.js +0 -1
- package/apps/web/dist/assets/ImportWizard-Dz2uKznp.js +0 -1
- package/apps/web/dist/assets/LocalRuntime-wMKUVZOu.js +0 -1
- package/apps/web/dist/assets/NewWizardPage-BOxU2jWq.js +0 -2
- package/apps/web/dist/assets/ProjectPage-BJp2wqIk.js +0 -5
- package/apps/web/dist/assets/PublicRunner-BsrqVK0J.js +0 -1
- package/apps/web/dist/assets/RunDrawer-CLfJ0W_V.js +0 -1
- package/apps/web/dist/assets/RunnerView-BXMELFC4.js +0 -70
- package/apps/web/dist/assets/SettingsPage-BkuUm-bf.js +0 -1
- package/apps/web/dist/assets/SetupPage-CoyXpcvS.js +0 -1
- package/apps/web/dist/assets/SharePage-BuR-he1L.js +0 -1
- package/apps/web/dist/assets/api-rJBQEu1G.js +0 -10
- package/apps/web/dist/assets/arrow-right-6FyN3e7D.js +0 -1
- package/apps/web/dist/assets/changelog-Bmw6dg-T.js +0 -1
- package/apps/web/dist/assets/check-CUpby_J9.js +0 -1
- package/apps/web/dist/assets/chevron-down-DymW-2BP.js +0 -1
- package/apps/web/dist/assets/circle-alert-D2SCwFT-.js +0 -1
- package/apps/web/dist/assets/createLucideIcon-q3MZMmnf.js +0 -1
- package/apps/web/dist/assets/definition-BznNdlhf.js +0 -55
- package/apps/web/dist/assets/esm-BrGYYg2h.js +0 -7
- package/apps/web/dist/assets/external-link-MAL7vJYj.js +0 -1
- package/apps/web/dist/assets/image-CC_2mJd6.js +0 -1
- package/apps/web/dist/assets/index-BZs1IxAk.css +0 -1
- package/apps/web/dist/assets/index-Co5QOA9_.js +0 -10
- package/apps/web/dist/assets/lock-DZL2N67v.js +0 -1
- package/apps/web/dist/assets/meta-B3jzXP27.js +0 -1
- package/apps/web/dist/assets/pen-line-NK46C_nG.js +0 -1
- package/apps/web/dist/assets/plus-Du-Jx8aI.js +0 -1
- package/apps/web/dist/assets/refresh-cw-BNtHis1x.js +0 -1
- package/apps/web/dist/assets/settings-menu-CCNUb0Fd.js +0 -1
- package/apps/web/dist/assets/table-2-BdDuBcF2.js +0 -1
- package/apps/web/dist/assets/trash-0IafyhZB.js +0 -1
- package/apps/web/dist/assets/ui-DJOZSSKo.js +0 -1
- package/apps/web/dist/assets/upload-DNRENWzQ.js +0 -1
- package/apps/web/dist/assets/video-9fDPRPCv.js +0 -1
- package/apps/web/dist/assets/volume-2-DE67_rue.js +0 -1
- package/apps/web/dist/assets/wand-sparkles-Clj3VRB5.js +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { type SurfaceComponent } from "./surface.js";
|
|
2
3
|
/** The engenty avatars a wizard can wear. Same cast as engenty's ui-core. */
|
|
3
4
|
export declare const ENGENTY_KINDS: readonly ["round", "drop", "dome", "flame", "oval", "bean", "pebble", "sprout", "tower", "wedge"];
|
|
4
5
|
export type EngentyKind = (typeof ENGENTY_KINDS)[number];
|
|
5
|
-
export declare const FIELD_KINDS: readonly ["text", "textarea", "number", "select", "multiselect", "date", "email", "url", "toggle", "color", "image", "file", "items", "connection", "list", "location", "audio", "signature"];
|
|
6
|
+
export declare const FIELD_KINDS: readonly ["text", "textarea", "number", "select", "multiselect", "date", "email", "url", "toggle", "color", "image", "file", "items", "connection", "list", "location", "audio", "signature", "slot"];
|
|
6
7
|
export type FieldKind = (typeof FIELD_KINDS)[number];
|
|
7
8
|
/**
|
|
8
9
|
* What a `location` field holds: where the person stands (from the device), a place they typed,
|
|
@@ -70,6 +71,56 @@ export declare const itemColumnSchema: z.ZodObject<{
|
|
|
70
71
|
money: "money";
|
|
71
72
|
}>;
|
|
72
73
|
}, z.core.$strip>;
|
|
74
|
+
export declare const CONDITION_OPS: readonly ["equals", "notEquals", "in", "notEmpty", "empty", "gt", "lt", "contains"];
|
|
75
|
+
export type ConditionOp = (typeof CONDITION_OPS)[number];
|
|
76
|
+
/**
|
|
77
|
+
* One test on what the run knows: an answer by field id, an output of an agent step as
|
|
78
|
+
* "steps.<step>.<field>", or how many rows a stored list has as "lists.<list>.count".
|
|
79
|
+
*/
|
|
80
|
+
export declare const conditionSchema: z.ZodObject<{
|
|
81
|
+
field: z.ZodString;
|
|
82
|
+
op: z.ZodEnum<{
|
|
83
|
+
in: "in";
|
|
84
|
+
equals: "equals";
|
|
85
|
+
notEquals: "notEquals";
|
|
86
|
+
notEmpty: "notEmpty";
|
|
87
|
+
empty: "empty";
|
|
88
|
+
gt: "gt";
|
|
89
|
+
lt: "lt";
|
|
90
|
+
contains: "contains";
|
|
91
|
+
}>;
|
|
92
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export type Condition = z.infer<typeof conditionSchema>;
|
|
95
|
+
/** One condition, or several that must all hold. */
|
|
96
|
+
export declare const whenSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
97
|
+
field: z.ZodString;
|
|
98
|
+
op: z.ZodEnum<{
|
|
99
|
+
in: "in";
|
|
100
|
+
equals: "equals";
|
|
101
|
+
notEquals: "notEquals";
|
|
102
|
+
notEmpty: "notEmpty";
|
|
103
|
+
empty: "empty";
|
|
104
|
+
gt: "gt";
|
|
105
|
+
lt: "lt";
|
|
106
|
+
contains: "contains";
|
|
107
|
+
}>;
|
|
108
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
109
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
110
|
+
field: z.ZodString;
|
|
111
|
+
op: z.ZodEnum<{
|
|
112
|
+
in: "in";
|
|
113
|
+
equals: "equals";
|
|
114
|
+
notEquals: "notEquals";
|
|
115
|
+
notEmpty: "notEmpty";
|
|
116
|
+
empty: "empty";
|
|
117
|
+
gt: "gt";
|
|
118
|
+
lt: "lt";
|
|
119
|
+
contains: "contains";
|
|
120
|
+
}>;
|
|
121
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
122
|
+
}, z.core.$strip>>]>;
|
|
123
|
+
export type When = z.infer<typeof whenSchema>;
|
|
73
124
|
export declare const fieldSchema: z.ZodObject<{
|
|
74
125
|
id: z.ZodString;
|
|
75
126
|
label: z.ZodString;
|
|
@@ -92,6 +143,7 @@ export declare const fieldSchema: z.ZodObject<{
|
|
|
92
143
|
location: "location";
|
|
93
144
|
audio: "audio";
|
|
94
145
|
signature: "signature";
|
|
146
|
+
slot: "slot";
|
|
95
147
|
}>;
|
|
96
148
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
97
149
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -122,10 +174,58 @@ export declare const fieldSchema: z.ZodObject<{
|
|
|
122
174
|
connection: z.ZodOptional<z.ZodString>;
|
|
123
175
|
list: z.ZodOptional<z.ZodString>;
|
|
124
176
|
prefill: z.ZodOptional<z.ZodString>;
|
|
177
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
178
|
+
field: z.ZodString;
|
|
179
|
+
op: z.ZodEnum<{
|
|
180
|
+
in: "in";
|
|
181
|
+
equals: "equals";
|
|
182
|
+
notEquals: "notEquals";
|
|
183
|
+
notEmpty: "notEmpty";
|
|
184
|
+
empty: "empty";
|
|
185
|
+
gt: "gt";
|
|
186
|
+
lt: "lt";
|
|
187
|
+
contains: "contains";
|
|
188
|
+
}>;
|
|
189
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
190
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
191
|
+
field: z.ZodString;
|
|
192
|
+
op: z.ZodEnum<{
|
|
193
|
+
in: "in";
|
|
194
|
+
equals: "equals";
|
|
195
|
+
notEquals: "notEquals";
|
|
196
|
+
notEmpty: "notEmpty";
|
|
197
|
+
empty: "empty";
|
|
198
|
+
gt: "gt";
|
|
199
|
+
lt: "lt";
|
|
200
|
+
contains: "contains";
|
|
201
|
+
}>;
|
|
202
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
203
|
+
}, z.core.$strip>>]>>;
|
|
204
|
+
optionsFrom: z.ZodOptional<z.ZodString>;
|
|
205
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
206
|
+
group: z.ZodOptional<z.ZodString>;
|
|
125
207
|
}, z.core.$strip>;
|
|
126
208
|
export type Field = z.infer<typeof fieldSchema>;
|
|
209
|
+
export declare const fieldGroupSchema: z.ZodObject<{
|
|
210
|
+
id: z.ZodString;
|
|
211
|
+
instructions: z.ZodString;
|
|
212
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
+
}, z.core.$strip>;
|
|
127
214
|
export declare const nextRuleSchema: z.ZodObject<{
|
|
128
|
-
when: z.ZodObject<{
|
|
215
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
216
|
+
field: z.ZodString;
|
|
217
|
+
op: z.ZodEnum<{
|
|
218
|
+
in: "in";
|
|
219
|
+
equals: "equals";
|
|
220
|
+
notEquals: "notEquals";
|
|
221
|
+
notEmpty: "notEmpty";
|
|
222
|
+
empty: "empty";
|
|
223
|
+
gt: "gt";
|
|
224
|
+
lt: "lt";
|
|
225
|
+
contains: "contains";
|
|
226
|
+
}>;
|
|
227
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
228
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
129
229
|
field: z.ZodString;
|
|
130
230
|
op: z.ZodEnum<{
|
|
131
231
|
in: "in";
|
|
@@ -133,21 +233,27 @@ export declare const nextRuleSchema: z.ZodObject<{
|
|
|
133
233
|
notEquals: "notEquals";
|
|
134
234
|
notEmpty: "notEmpty";
|
|
135
235
|
empty: "empty";
|
|
236
|
+
gt: "gt";
|
|
237
|
+
lt: "lt";
|
|
238
|
+
contains: "contains";
|
|
136
239
|
}>;
|
|
137
240
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
138
|
-
}, z.core.$strip
|
|
241
|
+
}, z.core.$strip>>]>>;
|
|
242
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
139
243
|
goto: z.ZodString;
|
|
244
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
140
245
|
}, z.core.$strip>;
|
|
141
246
|
export type NextRule = z.infer<typeof nextRuleSchema>;
|
|
142
247
|
export declare const outputFieldSchema: z.ZodObject<{
|
|
143
248
|
id: z.ZodString;
|
|
144
249
|
kind: z.ZodEnum<{
|
|
145
250
|
number: "number";
|
|
251
|
+
choice: "choice";
|
|
252
|
+
score: "score";
|
|
146
253
|
text: "text";
|
|
147
254
|
list: "list";
|
|
148
255
|
table: "table";
|
|
149
256
|
yesno: "yesno";
|
|
150
|
-
choice: "choice";
|
|
151
257
|
}>;
|
|
152
258
|
description: z.ZodOptional<z.ZodString>;
|
|
153
259
|
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -177,6 +283,7 @@ export declare const pageStepSchema: z.ZodObject<{
|
|
|
177
283
|
location: "location";
|
|
178
284
|
audio: "audio";
|
|
179
285
|
signature: "signature";
|
|
286
|
+
slot: "slot";
|
|
180
287
|
}>;
|
|
181
288
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
182
289
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -207,13 +314,48 @@ export declare const pageStepSchema: z.ZodObject<{
|
|
|
207
314
|
connection: z.ZodOptional<z.ZodString>;
|
|
208
315
|
list: z.ZodOptional<z.ZodString>;
|
|
209
316
|
prefill: z.ZodOptional<z.ZodString>;
|
|
317
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
318
|
+
field: z.ZodString;
|
|
319
|
+
op: z.ZodEnum<{
|
|
320
|
+
in: "in";
|
|
321
|
+
equals: "equals";
|
|
322
|
+
notEquals: "notEquals";
|
|
323
|
+
notEmpty: "notEmpty";
|
|
324
|
+
empty: "empty";
|
|
325
|
+
gt: "gt";
|
|
326
|
+
lt: "lt";
|
|
327
|
+
contains: "contains";
|
|
328
|
+
}>;
|
|
329
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
330
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
331
|
+
field: z.ZodString;
|
|
332
|
+
op: z.ZodEnum<{
|
|
333
|
+
in: "in";
|
|
334
|
+
equals: "equals";
|
|
335
|
+
notEquals: "notEquals";
|
|
336
|
+
notEmpty: "notEmpty";
|
|
337
|
+
empty: "empty";
|
|
338
|
+
gt: "gt";
|
|
339
|
+
lt: "lt";
|
|
340
|
+
contains: "contains";
|
|
341
|
+
}>;
|
|
342
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
343
|
+
}, z.core.$strip>>]>>;
|
|
344
|
+
optionsFrom: z.ZodOptional<z.ZodString>;
|
|
345
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
346
|
+
group: z.ZodOptional<z.ZodString>;
|
|
210
347
|
}, z.core.$strip>>;
|
|
348
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
349
|
+
id: z.ZodString;
|
|
350
|
+
instructions: z.ZodString;
|
|
351
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
352
|
+
}, z.core.$strip>>>;
|
|
211
353
|
cta: z.ZodOptional<z.ZodString>;
|
|
212
354
|
id: z.ZodString;
|
|
213
355
|
title: z.ZodString;
|
|
214
356
|
description: z.ZodOptional<z.ZodString>;
|
|
215
357
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
216
|
-
when: z.ZodObject<{
|
|
358
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
217
359
|
field: z.ZodString;
|
|
218
360
|
op: z.ZodEnum<{
|
|
219
361
|
in: "in";
|
|
@@ -221,10 +363,28 @@ export declare const pageStepSchema: z.ZodObject<{
|
|
|
221
363
|
notEquals: "notEquals";
|
|
222
364
|
notEmpty: "notEmpty";
|
|
223
365
|
empty: "empty";
|
|
366
|
+
gt: "gt";
|
|
367
|
+
lt: "lt";
|
|
368
|
+
contains: "contains";
|
|
224
369
|
}>;
|
|
225
370
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
226
|
-
}, z.core.$strip
|
|
371
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
372
|
+
field: z.ZodString;
|
|
373
|
+
op: z.ZodEnum<{
|
|
374
|
+
in: "in";
|
|
375
|
+
equals: "equals";
|
|
376
|
+
notEquals: "notEquals";
|
|
377
|
+
notEmpty: "notEmpty";
|
|
378
|
+
empty: "empty";
|
|
379
|
+
gt: "gt";
|
|
380
|
+
lt: "lt";
|
|
381
|
+
contains: "contains";
|
|
382
|
+
}>;
|
|
383
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
384
|
+
}, z.core.$strip>>]>>;
|
|
385
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
227
386
|
goto: z.ZodString;
|
|
387
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
228
388
|
}, z.core.$strip>>>;
|
|
229
389
|
}, z.core.$strip>;
|
|
230
390
|
export declare const agentStepSchema: z.ZodObject<{
|
|
@@ -251,16 +411,18 @@ export declare const agentStepSchema: z.ZodObject<{
|
|
|
251
411
|
id: z.ZodString;
|
|
252
412
|
kind: z.ZodEnum<{
|
|
253
413
|
number: "number";
|
|
414
|
+
choice: "choice";
|
|
415
|
+
score: "score";
|
|
254
416
|
text: "text";
|
|
255
417
|
list: "list";
|
|
256
418
|
table: "table";
|
|
257
419
|
yesno: "yesno";
|
|
258
|
-
choice: "choice";
|
|
259
420
|
}>;
|
|
260
421
|
description: z.ZodOptional<z.ZodString>;
|
|
261
422
|
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
262
423
|
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
263
424
|
}, z.core.$strip>>>;
|
|
425
|
+
surface: z.ZodOptional<z.ZodBoolean>;
|
|
264
426
|
}, z.core.$strip>>;
|
|
265
427
|
model: z.ZodOptional<z.ZodEnum<{
|
|
266
428
|
classifier: "classifier";
|
|
@@ -273,12 +435,13 @@ export declare const agentStepSchema: z.ZodObject<{
|
|
|
273
435
|
high: "high";
|
|
274
436
|
low: "low";
|
|
275
437
|
}>>;
|
|
438
|
+
each: z.ZodOptional<z.ZodString>;
|
|
276
439
|
working: z.ZodOptional<z.ZodString>;
|
|
277
440
|
id: z.ZodString;
|
|
278
441
|
title: z.ZodString;
|
|
279
442
|
description: z.ZodOptional<z.ZodString>;
|
|
280
443
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
281
|
-
when: z.ZodObject<{
|
|
444
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
282
445
|
field: z.ZodString;
|
|
283
446
|
op: z.ZodEnum<{
|
|
284
447
|
in: "in";
|
|
@@ -286,10 +449,28 @@ export declare const agentStepSchema: z.ZodObject<{
|
|
|
286
449
|
notEquals: "notEquals";
|
|
287
450
|
notEmpty: "notEmpty";
|
|
288
451
|
empty: "empty";
|
|
452
|
+
gt: "gt";
|
|
453
|
+
lt: "lt";
|
|
454
|
+
contains: "contains";
|
|
289
455
|
}>;
|
|
290
456
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
291
|
-
}, z.core.$strip
|
|
457
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
458
|
+
field: z.ZodString;
|
|
459
|
+
op: z.ZodEnum<{
|
|
460
|
+
in: "in";
|
|
461
|
+
equals: "equals";
|
|
462
|
+
notEquals: "notEquals";
|
|
463
|
+
notEmpty: "notEmpty";
|
|
464
|
+
empty: "empty";
|
|
465
|
+
gt: "gt";
|
|
466
|
+
lt: "lt";
|
|
467
|
+
contains: "contains";
|
|
468
|
+
}>;
|
|
469
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
470
|
+
}, z.core.$strip>>]>>;
|
|
471
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
292
472
|
goto: z.ZodString;
|
|
473
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
293
474
|
}, z.core.$strip>>>;
|
|
294
475
|
}, z.core.$strip>;
|
|
295
476
|
export declare const generateStepSchema: z.ZodObject<{
|
|
@@ -344,7 +525,7 @@ export declare const generateStepSchema: z.ZodObject<{
|
|
|
344
525
|
title: z.ZodString;
|
|
345
526
|
description: z.ZodOptional<z.ZodString>;
|
|
346
527
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
347
|
-
when: z.ZodObject<{
|
|
528
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
348
529
|
field: z.ZodString;
|
|
349
530
|
op: z.ZodEnum<{
|
|
350
531
|
in: "in";
|
|
@@ -352,10 +533,28 @@ export declare const generateStepSchema: z.ZodObject<{
|
|
|
352
533
|
notEquals: "notEquals";
|
|
353
534
|
notEmpty: "notEmpty";
|
|
354
535
|
empty: "empty";
|
|
536
|
+
gt: "gt";
|
|
537
|
+
lt: "lt";
|
|
538
|
+
contains: "contains";
|
|
355
539
|
}>;
|
|
356
540
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
357
|
-
}, z.core.$strip
|
|
541
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
542
|
+
field: z.ZodString;
|
|
543
|
+
op: z.ZodEnum<{
|
|
544
|
+
in: "in";
|
|
545
|
+
equals: "equals";
|
|
546
|
+
notEquals: "notEquals";
|
|
547
|
+
notEmpty: "notEmpty";
|
|
548
|
+
empty: "empty";
|
|
549
|
+
gt: "gt";
|
|
550
|
+
lt: "lt";
|
|
551
|
+
contains: "contains";
|
|
552
|
+
}>;
|
|
553
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
554
|
+
}, z.core.$strip>>]>>;
|
|
555
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
358
556
|
goto: z.ZodString;
|
|
557
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
359
558
|
}, z.core.$strip>>>;
|
|
360
559
|
}, z.core.$strip>;
|
|
361
560
|
export declare const widgetStepSchema: z.ZodObject<{
|
|
@@ -373,7 +572,7 @@ export declare const widgetStepSchema: z.ZodObject<{
|
|
|
373
572
|
title: z.ZodString;
|
|
374
573
|
description: z.ZodOptional<z.ZodString>;
|
|
375
574
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
376
|
-
when: z.ZodObject<{
|
|
575
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
377
576
|
field: z.ZodString;
|
|
378
577
|
op: z.ZodEnum<{
|
|
379
578
|
in: "in";
|
|
@@ -381,10 +580,28 @@ export declare const widgetStepSchema: z.ZodObject<{
|
|
|
381
580
|
notEquals: "notEquals";
|
|
382
581
|
notEmpty: "notEmpty";
|
|
383
582
|
empty: "empty";
|
|
583
|
+
gt: "gt";
|
|
584
|
+
lt: "lt";
|
|
585
|
+
contains: "contains";
|
|
384
586
|
}>;
|
|
385
587
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
386
|
-
}, z.core.$strip
|
|
588
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
589
|
+
field: z.ZodString;
|
|
590
|
+
op: z.ZodEnum<{
|
|
591
|
+
in: "in";
|
|
592
|
+
equals: "equals";
|
|
593
|
+
notEquals: "notEquals";
|
|
594
|
+
notEmpty: "notEmpty";
|
|
595
|
+
empty: "empty";
|
|
596
|
+
gt: "gt";
|
|
597
|
+
lt: "lt";
|
|
598
|
+
contains: "contains";
|
|
599
|
+
}>;
|
|
600
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
601
|
+
}, z.core.$strip>>]>>;
|
|
602
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
387
603
|
goto: z.ZodString;
|
|
604
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
388
605
|
}, z.core.$strip>>>;
|
|
389
606
|
}, z.core.$strip>;
|
|
390
607
|
/** Formats a film step makes; the composition is drawn for this frame. */
|
|
@@ -427,7 +644,7 @@ export declare const filmStepSchema: z.ZodObject<{
|
|
|
427
644
|
title: z.ZodString;
|
|
428
645
|
description: z.ZodOptional<z.ZodString>;
|
|
429
646
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
430
|
-
when: z.ZodObject<{
|
|
647
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
431
648
|
field: z.ZodString;
|
|
432
649
|
op: z.ZodEnum<{
|
|
433
650
|
in: "in";
|
|
@@ -435,12 +652,168 @@ export declare const filmStepSchema: z.ZodObject<{
|
|
|
435
652
|
notEquals: "notEquals";
|
|
436
653
|
notEmpty: "notEmpty";
|
|
437
654
|
empty: "empty";
|
|
655
|
+
gt: "gt";
|
|
656
|
+
lt: "lt";
|
|
657
|
+
contains: "contains";
|
|
438
658
|
}>;
|
|
439
659
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
440
|
-
}, z.core.$strip
|
|
660
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
661
|
+
field: z.ZodString;
|
|
662
|
+
op: z.ZodEnum<{
|
|
663
|
+
in: "in";
|
|
664
|
+
equals: "equals";
|
|
665
|
+
notEquals: "notEquals";
|
|
666
|
+
notEmpty: "notEmpty";
|
|
667
|
+
empty: "empty";
|
|
668
|
+
gt: "gt";
|
|
669
|
+
lt: "lt";
|
|
670
|
+
contains: "contains";
|
|
671
|
+
}>;
|
|
672
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
673
|
+
}, z.core.$strip>>]>>;
|
|
674
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
441
675
|
goto: z.ZodString;
|
|
676
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
442
677
|
}, z.core.$strip>>>;
|
|
443
678
|
}, z.core.$strip>;
|
|
679
|
+
/** A piece a decided surface may show: its components (the first has the piece's id) and what it shows. */
|
|
680
|
+
export declare const surfaceCandidateSchema: z.ZodObject<{
|
|
681
|
+
id: z.ZodString;
|
|
682
|
+
description: z.ZodString;
|
|
683
|
+
components: z.ZodArray<z.ZodObject<{
|
|
684
|
+
id: z.ZodString;
|
|
685
|
+
component: z.ZodEnum<{
|
|
686
|
+
Column: "Column";
|
|
687
|
+
Text: "Text";
|
|
688
|
+
List: "List";
|
|
689
|
+
Row: "Row";
|
|
690
|
+
DetailGrid: "DetailGrid";
|
|
691
|
+
Badge: "Badge";
|
|
692
|
+
Grid: "Grid";
|
|
693
|
+
Metric: "Metric";
|
|
694
|
+
Table: "Table";
|
|
695
|
+
Image: "Image";
|
|
696
|
+
BarChart: "BarChart";
|
|
697
|
+
LineChart: "LineChart";
|
|
698
|
+
DonutChart: "DonutChart";
|
|
699
|
+
Actions: "Actions";
|
|
700
|
+
Button: "Button";
|
|
701
|
+
}>;
|
|
702
|
+
children: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
703
|
+
path: z.ZodString;
|
|
704
|
+
componentId: z.ZodString;
|
|
705
|
+
}, z.core.$strip>]>>;
|
|
706
|
+
}, z.core.$loose>>;
|
|
707
|
+
group: z.ZodOptional<z.ZodString>;
|
|
708
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
709
|
+
}, z.core.$strip>;
|
|
710
|
+
export declare const surfaceStepSchema: z.ZodObject<{
|
|
711
|
+
type: z.ZodLiteral<"surface">;
|
|
712
|
+
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
713
|
+
id: z.ZodString;
|
|
714
|
+
component: z.ZodEnum<{
|
|
715
|
+
Column: "Column";
|
|
716
|
+
Text: "Text";
|
|
717
|
+
List: "List";
|
|
718
|
+
Row: "Row";
|
|
719
|
+
DetailGrid: "DetailGrid";
|
|
720
|
+
Badge: "Badge";
|
|
721
|
+
Grid: "Grid";
|
|
722
|
+
Metric: "Metric";
|
|
723
|
+
Table: "Table";
|
|
724
|
+
Image: "Image";
|
|
725
|
+
BarChart: "BarChart";
|
|
726
|
+
LineChart: "LineChart";
|
|
727
|
+
DonutChart: "DonutChart";
|
|
728
|
+
Actions: "Actions";
|
|
729
|
+
Button: "Button";
|
|
730
|
+
}>;
|
|
731
|
+
children: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
732
|
+
path: z.ZodString;
|
|
733
|
+
componentId: z.ZodString;
|
|
734
|
+
}, z.core.$strip>]>>;
|
|
735
|
+
}, z.core.$loose>>>;
|
|
736
|
+
candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
737
|
+
id: z.ZodString;
|
|
738
|
+
description: z.ZodString;
|
|
739
|
+
components: z.ZodArray<z.ZodObject<{
|
|
740
|
+
id: z.ZodString;
|
|
741
|
+
component: z.ZodEnum<{
|
|
742
|
+
Column: "Column";
|
|
743
|
+
Text: "Text";
|
|
744
|
+
List: "List";
|
|
745
|
+
Row: "Row";
|
|
746
|
+
DetailGrid: "DetailGrid";
|
|
747
|
+
Badge: "Badge";
|
|
748
|
+
Grid: "Grid";
|
|
749
|
+
Metric: "Metric";
|
|
750
|
+
Table: "Table";
|
|
751
|
+
Image: "Image";
|
|
752
|
+
BarChart: "BarChart";
|
|
753
|
+
LineChart: "LineChart";
|
|
754
|
+
DonutChart: "DonutChart";
|
|
755
|
+
Actions: "Actions";
|
|
756
|
+
Button: "Button";
|
|
757
|
+
}>;
|
|
758
|
+
children: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
759
|
+
path: z.ZodString;
|
|
760
|
+
componentId: z.ZodString;
|
|
761
|
+
}, z.core.$strip>]>>;
|
|
762
|
+
}, z.core.$loose>>;
|
|
763
|
+
group: z.ZodOptional<z.ZodString>;
|
|
764
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
765
|
+
}, z.core.$strip>>>;
|
|
766
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
767
|
+
id: z.ZodString;
|
|
768
|
+
instructions: z.ZodString;
|
|
769
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
770
|
+
}, z.core.$strip>>>;
|
|
771
|
+
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
772
|
+
working: z.ZodOptional<z.ZodString>;
|
|
773
|
+
id: z.ZodString;
|
|
774
|
+
title: z.ZodString;
|
|
775
|
+
description: z.ZodOptional<z.ZodString>;
|
|
776
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
777
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
778
|
+
field: z.ZodString;
|
|
779
|
+
op: z.ZodEnum<{
|
|
780
|
+
in: "in";
|
|
781
|
+
equals: "equals";
|
|
782
|
+
notEquals: "notEquals";
|
|
783
|
+
notEmpty: "notEmpty";
|
|
784
|
+
empty: "empty";
|
|
785
|
+
gt: "gt";
|
|
786
|
+
lt: "lt";
|
|
787
|
+
contains: "contains";
|
|
788
|
+
}>;
|
|
789
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
790
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
791
|
+
field: z.ZodString;
|
|
792
|
+
op: z.ZodEnum<{
|
|
793
|
+
in: "in";
|
|
794
|
+
equals: "equals";
|
|
795
|
+
notEquals: "notEquals";
|
|
796
|
+
notEmpty: "notEmpty";
|
|
797
|
+
empty: "empty";
|
|
798
|
+
gt: "gt";
|
|
799
|
+
lt: "lt";
|
|
800
|
+
contains: "contains";
|
|
801
|
+
}>;
|
|
802
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
803
|
+
}, z.core.$strip>>]>>;
|
|
804
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
805
|
+
goto: z.ZodString;
|
|
806
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
807
|
+
}, z.core.$strip>>>;
|
|
808
|
+
}, z.core.$strip>;
|
|
809
|
+
/**
|
|
810
|
+
* The components of a decided surface for the pieces kept: one root column holding them in
|
|
811
|
+
* their order. Every piece kept is the same as all of them for the validator.
|
|
812
|
+
*/
|
|
813
|
+
export declare function assembleSurface(candidates: {
|
|
814
|
+
id: string;
|
|
815
|
+
components: SurfaceComponent[];
|
|
816
|
+
}[], kept: Iterable<string>): SurfaceComponent[];
|
|
444
817
|
export declare const reviewStepSchema: z.ZodObject<{
|
|
445
818
|
type: z.ZodLiteral<"review">;
|
|
446
819
|
show: z.ZodArray<z.ZodString>;
|
|
@@ -450,7 +823,7 @@ export declare const reviewStepSchema: z.ZodObject<{
|
|
|
450
823
|
title: z.ZodString;
|
|
451
824
|
description: z.ZodOptional<z.ZodString>;
|
|
452
825
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
453
|
-
when: z.ZodObject<{
|
|
826
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
454
827
|
field: z.ZodString;
|
|
455
828
|
op: z.ZodEnum<{
|
|
456
829
|
in: "in";
|
|
@@ -458,10 +831,28 @@ export declare const reviewStepSchema: z.ZodObject<{
|
|
|
458
831
|
notEquals: "notEquals";
|
|
459
832
|
notEmpty: "notEmpty";
|
|
460
833
|
empty: "empty";
|
|
834
|
+
gt: "gt";
|
|
835
|
+
lt: "lt";
|
|
836
|
+
contains: "contains";
|
|
461
837
|
}>;
|
|
462
838
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
463
|
-
}, z.core.$strip
|
|
839
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
840
|
+
field: z.ZodString;
|
|
841
|
+
op: z.ZodEnum<{
|
|
842
|
+
in: "in";
|
|
843
|
+
equals: "equals";
|
|
844
|
+
notEquals: "notEquals";
|
|
845
|
+
notEmpty: "notEmpty";
|
|
846
|
+
empty: "empty";
|
|
847
|
+
gt: "gt";
|
|
848
|
+
lt: "lt";
|
|
849
|
+
contains: "contains";
|
|
850
|
+
}>;
|
|
851
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
852
|
+
}, z.core.$strip>>]>>;
|
|
853
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
464
854
|
goto: z.ZodString;
|
|
855
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
465
856
|
}, z.core.$strip>>>;
|
|
466
857
|
}, z.core.$strip>;
|
|
467
858
|
export declare const deliverableSchema: z.ZodObject<{
|
|
@@ -507,7 +898,7 @@ export declare const resultStepSchema: z.ZodObject<{
|
|
|
507
898
|
title: z.ZodString;
|
|
508
899
|
description: z.ZodOptional<z.ZodString>;
|
|
509
900
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
510
|
-
when: z.ZodObject<{
|
|
901
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
511
902
|
field: z.ZodString;
|
|
512
903
|
op: z.ZodEnum<{
|
|
513
904
|
in: "in";
|
|
@@ -515,10 +906,28 @@ export declare const resultStepSchema: z.ZodObject<{
|
|
|
515
906
|
notEquals: "notEquals";
|
|
516
907
|
notEmpty: "notEmpty";
|
|
517
908
|
empty: "empty";
|
|
909
|
+
gt: "gt";
|
|
910
|
+
lt: "lt";
|
|
911
|
+
contains: "contains";
|
|
518
912
|
}>;
|
|
519
913
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
520
|
-
}, z.core.$strip
|
|
914
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
915
|
+
field: z.ZodString;
|
|
916
|
+
op: z.ZodEnum<{
|
|
917
|
+
in: "in";
|
|
918
|
+
equals: "equals";
|
|
919
|
+
notEquals: "notEquals";
|
|
920
|
+
notEmpty: "notEmpty";
|
|
921
|
+
empty: "empty";
|
|
922
|
+
gt: "gt";
|
|
923
|
+
lt: "lt";
|
|
924
|
+
contains: "contains";
|
|
925
|
+
}>;
|
|
926
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
927
|
+
}, z.core.$strip>>]>>;
|
|
928
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
521
929
|
goto: z.ZodString;
|
|
930
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
522
931
|
}, z.core.$strip>>>;
|
|
523
932
|
}, z.core.$strip>;
|
|
524
933
|
export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -545,6 +954,7 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
545
954
|
location: "location";
|
|
546
955
|
audio: "audio";
|
|
547
956
|
signature: "signature";
|
|
957
|
+
slot: "slot";
|
|
548
958
|
}>;
|
|
549
959
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
550
960
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -575,13 +985,48 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
575
985
|
connection: z.ZodOptional<z.ZodString>;
|
|
576
986
|
list: z.ZodOptional<z.ZodString>;
|
|
577
987
|
prefill: z.ZodOptional<z.ZodString>;
|
|
988
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
989
|
+
field: z.ZodString;
|
|
990
|
+
op: z.ZodEnum<{
|
|
991
|
+
in: "in";
|
|
992
|
+
equals: "equals";
|
|
993
|
+
notEquals: "notEquals";
|
|
994
|
+
notEmpty: "notEmpty";
|
|
995
|
+
empty: "empty";
|
|
996
|
+
gt: "gt";
|
|
997
|
+
lt: "lt";
|
|
998
|
+
contains: "contains";
|
|
999
|
+
}>;
|
|
1000
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1001
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1002
|
+
field: z.ZodString;
|
|
1003
|
+
op: z.ZodEnum<{
|
|
1004
|
+
in: "in";
|
|
1005
|
+
equals: "equals";
|
|
1006
|
+
notEquals: "notEquals";
|
|
1007
|
+
notEmpty: "notEmpty";
|
|
1008
|
+
empty: "empty";
|
|
1009
|
+
gt: "gt";
|
|
1010
|
+
lt: "lt";
|
|
1011
|
+
contains: "contains";
|
|
1012
|
+
}>;
|
|
1013
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1014
|
+
}, z.core.$strip>>]>>;
|
|
1015
|
+
optionsFrom: z.ZodOptional<z.ZodString>;
|
|
1016
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1017
|
+
group: z.ZodOptional<z.ZodString>;
|
|
578
1018
|
}, z.core.$strip>>;
|
|
1019
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1020
|
+
id: z.ZodString;
|
|
1021
|
+
instructions: z.ZodString;
|
|
1022
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
1023
|
+
}, z.core.$strip>>>;
|
|
579
1024
|
cta: z.ZodOptional<z.ZodString>;
|
|
580
1025
|
id: z.ZodString;
|
|
581
1026
|
title: z.ZodString;
|
|
582
1027
|
description: z.ZodOptional<z.ZodString>;
|
|
583
1028
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
584
|
-
when: z.ZodObject<{
|
|
1029
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
585
1030
|
field: z.ZodString;
|
|
586
1031
|
op: z.ZodEnum<{
|
|
587
1032
|
in: "in";
|
|
@@ -589,10 +1034,28 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
589
1034
|
notEquals: "notEquals";
|
|
590
1035
|
notEmpty: "notEmpty";
|
|
591
1036
|
empty: "empty";
|
|
1037
|
+
gt: "gt";
|
|
1038
|
+
lt: "lt";
|
|
1039
|
+
contains: "contains";
|
|
592
1040
|
}>;
|
|
593
1041
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
594
|
-
}, z.core.$strip
|
|
1042
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1043
|
+
field: z.ZodString;
|
|
1044
|
+
op: z.ZodEnum<{
|
|
1045
|
+
in: "in";
|
|
1046
|
+
equals: "equals";
|
|
1047
|
+
notEquals: "notEquals";
|
|
1048
|
+
notEmpty: "notEmpty";
|
|
1049
|
+
empty: "empty";
|
|
1050
|
+
gt: "gt";
|
|
1051
|
+
lt: "lt";
|
|
1052
|
+
contains: "contains";
|
|
1053
|
+
}>;
|
|
1054
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1055
|
+
}, z.core.$strip>>]>>;
|
|
1056
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
595
1057
|
goto: z.ZodString;
|
|
1058
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
596
1059
|
}, z.core.$strip>>>;
|
|
597
1060
|
}, z.core.$strip>, z.ZodObject<{
|
|
598
1061
|
type: z.ZodLiteral<"agent">;
|
|
@@ -618,16 +1081,18 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
618
1081
|
id: z.ZodString;
|
|
619
1082
|
kind: z.ZodEnum<{
|
|
620
1083
|
number: "number";
|
|
1084
|
+
choice: "choice";
|
|
1085
|
+
score: "score";
|
|
621
1086
|
text: "text";
|
|
622
1087
|
list: "list";
|
|
623
1088
|
table: "table";
|
|
624
1089
|
yesno: "yesno";
|
|
625
|
-
choice: "choice";
|
|
626
1090
|
}>;
|
|
627
1091
|
description: z.ZodOptional<z.ZodString>;
|
|
628
1092
|
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
629
1093
|
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
630
1094
|
}, z.core.$strip>>>;
|
|
1095
|
+
surface: z.ZodOptional<z.ZodBoolean>;
|
|
631
1096
|
}, z.core.$strip>>;
|
|
632
1097
|
model: z.ZodOptional<z.ZodEnum<{
|
|
633
1098
|
classifier: "classifier";
|
|
@@ -640,12 +1105,13 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
640
1105
|
high: "high";
|
|
641
1106
|
low: "low";
|
|
642
1107
|
}>>;
|
|
1108
|
+
each: z.ZodOptional<z.ZodString>;
|
|
643
1109
|
working: z.ZodOptional<z.ZodString>;
|
|
644
1110
|
id: z.ZodString;
|
|
645
1111
|
title: z.ZodString;
|
|
646
1112
|
description: z.ZodOptional<z.ZodString>;
|
|
647
1113
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
648
|
-
when: z.ZodObject<{
|
|
1114
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
649
1115
|
field: z.ZodString;
|
|
650
1116
|
op: z.ZodEnum<{
|
|
651
1117
|
in: "in";
|
|
@@ -653,10 +1119,28 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
653
1119
|
notEquals: "notEquals";
|
|
654
1120
|
notEmpty: "notEmpty";
|
|
655
1121
|
empty: "empty";
|
|
1122
|
+
gt: "gt";
|
|
1123
|
+
lt: "lt";
|
|
1124
|
+
contains: "contains";
|
|
656
1125
|
}>;
|
|
657
1126
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
658
|
-
}, z.core.$strip
|
|
1127
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1128
|
+
field: z.ZodString;
|
|
1129
|
+
op: z.ZodEnum<{
|
|
1130
|
+
in: "in";
|
|
1131
|
+
equals: "equals";
|
|
1132
|
+
notEquals: "notEquals";
|
|
1133
|
+
notEmpty: "notEmpty";
|
|
1134
|
+
empty: "empty";
|
|
1135
|
+
gt: "gt";
|
|
1136
|
+
lt: "lt";
|
|
1137
|
+
contains: "contains";
|
|
1138
|
+
}>;
|
|
1139
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1140
|
+
}, z.core.$strip>>]>>;
|
|
1141
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
659
1142
|
goto: z.ZodString;
|
|
1143
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
660
1144
|
}, z.core.$strip>>>;
|
|
661
1145
|
}, z.core.$strip>, z.ZodObject<{
|
|
662
1146
|
type: z.ZodLiteral<"generate">;
|
|
@@ -710,7 +1194,7 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
710
1194
|
title: z.ZodString;
|
|
711
1195
|
description: z.ZodOptional<z.ZodString>;
|
|
712
1196
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
713
|
-
when: z.ZodObject<{
|
|
1197
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
714
1198
|
field: z.ZodString;
|
|
715
1199
|
op: z.ZodEnum<{
|
|
716
1200
|
in: "in";
|
|
@@ -718,10 +1202,28 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
718
1202
|
notEquals: "notEquals";
|
|
719
1203
|
notEmpty: "notEmpty";
|
|
720
1204
|
empty: "empty";
|
|
1205
|
+
gt: "gt";
|
|
1206
|
+
lt: "lt";
|
|
1207
|
+
contains: "contains";
|
|
721
1208
|
}>;
|
|
722
1209
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
723
|
-
}, z.core.$strip
|
|
1210
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1211
|
+
field: z.ZodString;
|
|
1212
|
+
op: z.ZodEnum<{
|
|
1213
|
+
in: "in";
|
|
1214
|
+
equals: "equals";
|
|
1215
|
+
notEquals: "notEquals";
|
|
1216
|
+
notEmpty: "notEmpty";
|
|
1217
|
+
empty: "empty";
|
|
1218
|
+
gt: "gt";
|
|
1219
|
+
lt: "lt";
|
|
1220
|
+
contains: "contains";
|
|
1221
|
+
}>;
|
|
1222
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1223
|
+
}, z.core.$strip>>]>>;
|
|
1224
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
724
1225
|
goto: z.ZodString;
|
|
1226
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
725
1227
|
}, z.core.$strip>>>;
|
|
726
1228
|
}, z.core.$strip>, z.ZodObject<{
|
|
727
1229
|
type: z.ZodLiteral<"widget">;
|
|
@@ -738,7 +1240,7 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
738
1240
|
title: z.ZodString;
|
|
739
1241
|
description: z.ZodOptional<z.ZodString>;
|
|
740
1242
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
741
|
-
when: z.ZodObject<{
|
|
1243
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
742
1244
|
field: z.ZodString;
|
|
743
1245
|
op: z.ZodEnum<{
|
|
744
1246
|
in: "in";
|
|
@@ -746,10 +1248,126 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
746
1248
|
notEquals: "notEquals";
|
|
747
1249
|
notEmpty: "notEmpty";
|
|
748
1250
|
empty: "empty";
|
|
1251
|
+
gt: "gt";
|
|
1252
|
+
lt: "lt";
|
|
1253
|
+
contains: "contains";
|
|
749
1254
|
}>;
|
|
750
1255
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
751
|
-
}, z.core.$strip
|
|
1256
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1257
|
+
field: z.ZodString;
|
|
1258
|
+
op: z.ZodEnum<{
|
|
1259
|
+
in: "in";
|
|
1260
|
+
equals: "equals";
|
|
1261
|
+
notEquals: "notEquals";
|
|
1262
|
+
notEmpty: "notEmpty";
|
|
1263
|
+
empty: "empty";
|
|
1264
|
+
gt: "gt";
|
|
1265
|
+
lt: "lt";
|
|
1266
|
+
contains: "contains";
|
|
1267
|
+
}>;
|
|
1268
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1269
|
+
}, z.core.$strip>>]>>;
|
|
1270
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1271
|
+
goto: z.ZodString;
|
|
1272
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1273
|
+
}, z.core.$strip>>>;
|
|
1274
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1275
|
+
type: z.ZodLiteral<"surface">;
|
|
1276
|
+
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1277
|
+
id: z.ZodString;
|
|
1278
|
+
component: z.ZodEnum<{
|
|
1279
|
+
Column: "Column";
|
|
1280
|
+
Text: "Text";
|
|
1281
|
+
List: "List";
|
|
1282
|
+
Row: "Row";
|
|
1283
|
+
DetailGrid: "DetailGrid";
|
|
1284
|
+
Badge: "Badge";
|
|
1285
|
+
Grid: "Grid";
|
|
1286
|
+
Metric: "Metric";
|
|
1287
|
+
Table: "Table";
|
|
1288
|
+
Image: "Image";
|
|
1289
|
+
BarChart: "BarChart";
|
|
1290
|
+
LineChart: "LineChart";
|
|
1291
|
+
DonutChart: "DonutChart";
|
|
1292
|
+
Actions: "Actions";
|
|
1293
|
+
Button: "Button";
|
|
1294
|
+
}>;
|
|
1295
|
+
children: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
1296
|
+
path: z.ZodString;
|
|
1297
|
+
componentId: z.ZodString;
|
|
1298
|
+
}, z.core.$strip>]>>;
|
|
1299
|
+
}, z.core.$loose>>>;
|
|
1300
|
+
candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1301
|
+
id: z.ZodString;
|
|
1302
|
+
description: z.ZodString;
|
|
1303
|
+
components: z.ZodArray<z.ZodObject<{
|
|
1304
|
+
id: z.ZodString;
|
|
1305
|
+
component: z.ZodEnum<{
|
|
1306
|
+
Column: "Column";
|
|
1307
|
+
Text: "Text";
|
|
1308
|
+
List: "List";
|
|
1309
|
+
Row: "Row";
|
|
1310
|
+
DetailGrid: "DetailGrid";
|
|
1311
|
+
Badge: "Badge";
|
|
1312
|
+
Grid: "Grid";
|
|
1313
|
+
Metric: "Metric";
|
|
1314
|
+
Table: "Table";
|
|
1315
|
+
Image: "Image";
|
|
1316
|
+
BarChart: "BarChart";
|
|
1317
|
+
LineChart: "LineChart";
|
|
1318
|
+
DonutChart: "DonutChart";
|
|
1319
|
+
Actions: "Actions";
|
|
1320
|
+
Button: "Button";
|
|
1321
|
+
}>;
|
|
1322
|
+
children: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
1323
|
+
path: z.ZodString;
|
|
1324
|
+
componentId: z.ZodString;
|
|
1325
|
+
}, z.core.$strip>]>>;
|
|
1326
|
+
}, z.core.$loose>>;
|
|
1327
|
+
group: z.ZodOptional<z.ZodString>;
|
|
1328
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1329
|
+
}, z.core.$strip>>>;
|
|
1330
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1331
|
+
id: z.ZodString;
|
|
1332
|
+
instructions: z.ZodString;
|
|
1333
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
1334
|
+
}, z.core.$strip>>>;
|
|
1335
|
+
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1336
|
+
working: z.ZodOptional<z.ZodString>;
|
|
1337
|
+
id: z.ZodString;
|
|
1338
|
+
title: z.ZodString;
|
|
1339
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1340
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1341
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1342
|
+
field: z.ZodString;
|
|
1343
|
+
op: z.ZodEnum<{
|
|
1344
|
+
in: "in";
|
|
1345
|
+
equals: "equals";
|
|
1346
|
+
notEquals: "notEquals";
|
|
1347
|
+
notEmpty: "notEmpty";
|
|
1348
|
+
empty: "empty";
|
|
1349
|
+
gt: "gt";
|
|
1350
|
+
lt: "lt";
|
|
1351
|
+
contains: "contains";
|
|
1352
|
+
}>;
|
|
1353
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1354
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1355
|
+
field: z.ZodString;
|
|
1356
|
+
op: z.ZodEnum<{
|
|
1357
|
+
in: "in";
|
|
1358
|
+
equals: "equals";
|
|
1359
|
+
notEquals: "notEquals";
|
|
1360
|
+
notEmpty: "notEmpty";
|
|
1361
|
+
empty: "empty";
|
|
1362
|
+
gt: "gt";
|
|
1363
|
+
lt: "lt";
|
|
1364
|
+
contains: "contains";
|
|
1365
|
+
}>;
|
|
1366
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1367
|
+
}, z.core.$strip>>]>>;
|
|
1368
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
752
1369
|
goto: z.ZodString;
|
|
1370
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
753
1371
|
}, z.core.$strip>>>;
|
|
754
1372
|
}, z.core.$strip>, z.ZodObject<{
|
|
755
1373
|
type: z.ZodLiteral<"film">;
|
|
@@ -779,7 +1397,7 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
779
1397
|
title: z.ZodString;
|
|
780
1398
|
description: z.ZodOptional<z.ZodString>;
|
|
781
1399
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
782
|
-
when: z.ZodObject<{
|
|
1400
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
783
1401
|
field: z.ZodString;
|
|
784
1402
|
op: z.ZodEnum<{
|
|
785
1403
|
in: "in";
|
|
@@ -787,10 +1405,28 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
787
1405
|
notEquals: "notEquals";
|
|
788
1406
|
notEmpty: "notEmpty";
|
|
789
1407
|
empty: "empty";
|
|
1408
|
+
gt: "gt";
|
|
1409
|
+
lt: "lt";
|
|
1410
|
+
contains: "contains";
|
|
790
1411
|
}>;
|
|
791
1412
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
792
|
-
}, z.core.$strip
|
|
1413
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1414
|
+
field: z.ZodString;
|
|
1415
|
+
op: z.ZodEnum<{
|
|
1416
|
+
in: "in";
|
|
1417
|
+
equals: "equals";
|
|
1418
|
+
notEquals: "notEquals";
|
|
1419
|
+
notEmpty: "notEmpty";
|
|
1420
|
+
empty: "empty";
|
|
1421
|
+
gt: "gt";
|
|
1422
|
+
lt: "lt";
|
|
1423
|
+
contains: "contains";
|
|
1424
|
+
}>;
|
|
1425
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1426
|
+
}, z.core.$strip>>]>>;
|
|
1427
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
793
1428
|
goto: z.ZodString;
|
|
1429
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
794
1430
|
}, z.core.$strip>>>;
|
|
795
1431
|
}, z.core.$strip>, z.ZodObject<{
|
|
796
1432
|
type: z.ZodLiteral<"review">;
|
|
@@ -801,7 +1437,7 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
801
1437
|
title: z.ZodString;
|
|
802
1438
|
description: z.ZodOptional<z.ZodString>;
|
|
803
1439
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
804
|
-
when: z.ZodObject<{
|
|
1440
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
805
1441
|
field: z.ZodString;
|
|
806
1442
|
op: z.ZodEnum<{
|
|
807
1443
|
in: "in";
|
|
@@ -809,10 +1445,28 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
809
1445
|
notEquals: "notEquals";
|
|
810
1446
|
notEmpty: "notEmpty";
|
|
811
1447
|
empty: "empty";
|
|
1448
|
+
gt: "gt";
|
|
1449
|
+
lt: "lt";
|
|
1450
|
+
contains: "contains";
|
|
812
1451
|
}>;
|
|
813
1452
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
814
|
-
}, z.core.$strip
|
|
1453
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1454
|
+
field: z.ZodString;
|
|
1455
|
+
op: z.ZodEnum<{
|
|
1456
|
+
in: "in";
|
|
1457
|
+
equals: "equals";
|
|
1458
|
+
notEquals: "notEquals";
|
|
1459
|
+
notEmpty: "notEmpty";
|
|
1460
|
+
empty: "empty";
|
|
1461
|
+
gt: "gt";
|
|
1462
|
+
lt: "lt";
|
|
1463
|
+
contains: "contains";
|
|
1464
|
+
}>;
|
|
1465
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1466
|
+
}, z.core.$strip>>]>>;
|
|
1467
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
815
1468
|
goto: z.ZodString;
|
|
1469
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
816
1470
|
}, z.core.$strip>>>;
|
|
817
1471
|
}, z.core.$strip>, z.ZodObject<{
|
|
818
1472
|
type: z.ZodLiteral<"result">;
|
|
@@ -839,7 +1493,7 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
839
1493
|
title: z.ZodString;
|
|
840
1494
|
description: z.ZodOptional<z.ZodString>;
|
|
841
1495
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
842
|
-
when: z.ZodObject<{
|
|
1496
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
843
1497
|
field: z.ZodString;
|
|
844
1498
|
op: z.ZodEnum<{
|
|
845
1499
|
in: "in";
|
|
@@ -847,14 +1501,33 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
847
1501
|
notEquals: "notEquals";
|
|
848
1502
|
notEmpty: "notEmpty";
|
|
849
1503
|
empty: "empty";
|
|
1504
|
+
gt: "gt";
|
|
1505
|
+
lt: "lt";
|
|
1506
|
+
contains: "contains";
|
|
850
1507
|
}>;
|
|
851
1508
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
852
|
-
}, z.core.$strip
|
|
1509
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1510
|
+
field: z.ZodString;
|
|
1511
|
+
op: z.ZodEnum<{
|
|
1512
|
+
in: "in";
|
|
1513
|
+
equals: "equals";
|
|
1514
|
+
notEquals: "notEquals";
|
|
1515
|
+
notEmpty: "notEmpty";
|
|
1516
|
+
empty: "empty";
|
|
1517
|
+
gt: "gt";
|
|
1518
|
+
lt: "lt";
|
|
1519
|
+
contains: "contains";
|
|
1520
|
+
}>;
|
|
1521
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1522
|
+
}, z.core.$strip>>]>>;
|
|
1523
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
853
1524
|
goto: z.ZodString;
|
|
1525
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
854
1526
|
}, z.core.$strip>>>;
|
|
855
1527
|
}, z.core.$strip>], "type">;
|
|
856
1528
|
export type Step = z.infer<typeof stepSchema>;
|
|
857
1529
|
export type PageStep = z.infer<typeof pageStepSchema>;
|
|
1530
|
+
export type SurfaceStep = z.infer<typeof surfaceStepSchema>;
|
|
858
1531
|
export type AgentStep = z.infer<typeof agentStepSchema>;
|
|
859
1532
|
/**
|
|
860
1533
|
* A decision: a step on the classifier class that uses no tools and whose output is only
|
|
@@ -1203,6 +1876,7 @@ export declare const wizardSchema: z.ZodObject<{
|
|
|
1203
1876
|
location: "location";
|
|
1204
1877
|
audio: "audio";
|
|
1205
1878
|
signature: "signature";
|
|
1879
|
+
slot: "slot";
|
|
1206
1880
|
}>;
|
|
1207
1881
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1208
1882
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -1233,13 +1907,48 @@ export declare const wizardSchema: z.ZodObject<{
|
|
|
1233
1907
|
connection: z.ZodOptional<z.ZodString>;
|
|
1234
1908
|
list: z.ZodOptional<z.ZodString>;
|
|
1235
1909
|
prefill: z.ZodOptional<z.ZodString>;
|
|
1910
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1911
|
+
field: z.ZodString;
|
|
1912
|
+
op: z.ZodEnum<{
|
|
1913
|
+
in: "in";
|
|
1914
|
+
equals: "equals";
|
|
1915
|
+
notEquals: "notEquals";
|
|
1916
|
+
notEmpty: "notEmpty";
|
|
1917
|
+
empty: "empty";
|
|
1918
|
+
gt: "gt";
|
|
1919
|
+
lt: "lt";
|
|
1920
|
+
contains: "contains";
|
|
1921
|
+
}>;
|
|
1922
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1923
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1924
|
+
field: z.ZodString;
|
|
1925
|
+
op: z.ZodEnum<{
|
|
1926
|
+
in: "in";
|
|
1927
|
+
equals: "equals";
|
|
1928
|
+
notEquals: "notEquals";
|
|
1929
|
+
notEmpty: "notEmpty";
|
|
1930
|
+
empty: "empty";
|
|
1931
|
+
gt: "gt";
|
|
1932
|
+
lt: "lt";
|
|
1933
|
+
contains: "contains";
|
|
1934
|
+
}>;
|
|
1935
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1936
|
+
}, z.core.$strip>>]>>;
|
|
1937
|
+
optionsFrom: z.ZodOptional<z.ZodString>;
|
|
1938
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1939
|
+
group: z.ZodOptional<z.ZodString>;
|
|
1236
1940
|
}, z.core.$strip>>;
|
|
1941
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1942
|
+
id: z.ZodString;
|
|
1943
|
+
instructions: z.ZodString;
|
|
1944
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
1945
|
+
}, z.core.$strip>>>;
|
|
1237
1946
|
cta: z.ZodOptional<z.ZodString>;
|
|
1238
1947
|
id: z.ZodString;
|
|
1239
1948
|
title: z.ZodString;
|
|
1240
1949
|
description: z.ZodOptional<z.ZodString>;
|
|
1241
1950
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1242
|
-
when: z.ZodObject<{
|
|
1951
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1243
1952
|
field: z.ZodString;
|
|
1244
1953
|
op: z.ZodEnum<{
|
|
1245
1954
|
in: "in";
|
|
@@ -1247,10 +1956,28 @@ export declare const wizardSchema: z.ZodObject<{
|
|
|
1247
1956
|
notEquals: "notEquals";
|
|
1248
1957
|
notEmpty: "notEmpty";
|
|
1249
1958
|
empty: "empty";
|
|
1959
|
+
gt: "gt";
|
|
1960
|
+
lt: "lt";
|
|
1961
|
+
contains: "contains";
|
|
1250
1962
|
}>;
|
|
1251
1963
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1252
|
-
}, z.core.$strip
|
|
1964
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1965
|
+
field: z.ZodString;
|
|
1966
|
+
op: z.ZodEnum<{
|
|
1967
|
+
in: "in";
|
|
1968
|
+
equals: "equals";
|
|
1969
|
+
notEquals: "notEquals";
|
|
1970
|
+
notEmpty: "notEmpty";
|
|
1971
|
+
empty: "empty";
|
|
1972
|
+
gt: "gt";
|
|
1973
|
+
lt: "lt";
|
|
1974
|
+
contains: "contains";
|
|
1975
|
+
}>;
|
|
1976
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1977
|
+
}, z.core.$strip>>]>>;
|
|
1978
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1253
1979
|
goto: z.ZodString;
|
|
1980
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1254
1981
|
}, z.core.$strip>>>;
|
|
1255
1982
|
}, z.core.$strip>, z.ZodObject<{
|
|
1256
1983
|
type: z.ZodLiteral<"agent">;
|
|
@@ -1276,16 +2003,18 @@ export declare const wizardSchema: z.ZodObject<{
|
|
|
1276
2003
|
id: z.ZodString;
|
|
1277
2004
|
kind: z.ZodEnum<{
|
|
1278
2005
|
number: "number";
|
|
2006
|
+
choice: "choice";
|
|
2007
|
+
score: "score";
|
|
1279
2008
|
text: "text";
|
|
1280
2009
|
list: "list";
|
|
1281
2010
|
table: "table";
|
|
1282
2011
|
yesno: "yesno";
|
|
1283
|
-
choice: "choice";
|
|
1284
2012
|
}>;
|
|
1285
2013
|
description: z.ZodOptional<z.ZodString>;
|
|
1286
2014
|
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1287
2015
|
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1288
2016
|
}, z.core.$strip>>>;
|
|
2017
|
+
surface: z.ZodOptional<z.ZodBoolean>;
|
|
1289
2018
|
}, z.core.$strip>>;
|
|
1290
2019
|
model: z.ZodOptional<z.ZodEnum<{
|
|
1291
2020
|
classifier: "classifier";
|
|
@@ -1298,12 +2027,13 @@ export declare const wizardSchema: z.ZodObject<{
|
|
|
1298
2027
|
high: "high";
|
|
1299
2028
|
low: "low";
|
|
1300
2029
|
}>>;
|
|
2030
|
+
each: z.ZodOptional<z.ZodString>;
|
|
1301
2031
|
working: z.ZodOptional<z.ZodString>;
|
|
1302
2032
|
id: z.ZodString;
|
|
1303
2033
|
title: z.ZodString;
|
|
1304
2034
|
description: z.ZodOptional<z.ZodString>;
|
|
1305
2035
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1306
|
-
when: z.ZodObject<{
|
|
2036
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1307
2037
|
field: z.ZodString;
|
|
1308
2038
|
op: z.ZodEnum<{
|
|
1309
2039
|
in: "in";
|
|
@@ -1311,10 +2041,28 @@ export declare const wizardSchema: z.ZodObject<{
|
|
|
1311
2041
|
notEquals: "notEquals";
|
|
1312
2042
|
notEmpty: "notEmpty";
|
|
1313
2043
|
empty: "empty";
|
|
2044
|
+
gt: "gt";
|
|
2045
|
+
lt: "lt";
|
|
2046
|
+
contains: "contains";
|
|
1314
2047
|
}>;
|
|
1315
2048
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1316
|
-
}, z.core.$strip
|
|
2049
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2050
|
+
field: z.ZodString;
|
|
2051
|
+
op: z.ZodEnum<{
|
|
2052
|
+
in: "in";
|
|
2053
|
+
equals: "equals";
|
|
2054
|
+
notEquals: "notEquals";
|
|
2055
|
+
notEmpty: "notEmpty";
|
|
2056
|
+
empty: "empty";
|
|
2057
|
+
gt: "gt";
|
|
2058
|
+
lt: "lt";
|
|
2059
|
+
contains: "contains";
|
|
2060
|
+
}>;
|
|
2061
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2062
|
+
}, z.core.$strip>>]>>;
|
|
2063
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1317
2064
|
goto: z.ZodString;
|
|
2065
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1318
2066
|
}, z.core.$strip>>>;
|
|
1319
2067
|
}, z.core.$strip>, z.ZodObject<{
|
|
1320
2068
|
type: z.ZodLiteral<"generate">;
|
|
@@ -1368,7 +2116,7 @@ export declare const wizardSchema: z.ZodObject<{
|
|
|
1368
2116
|
title: z.ZodString;
|
|
1369
2117
|
description: z.ZodOptional<z.ZodString>;
|
|
1370
2118
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1371
|
-
when: z.ZodObject<{
|
|
2119
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1372
2120
|
field: z.ZodString;
|
|
1373
2121
|
op: z.ZodEnum<{
|
|
1374
2122
|
in: "in";
|
|
@@ -1376,10 +2124,28 @@ export declare const wizardSchema: z.ZodObject<{
|
|
|
1376
2124
|
notEquals: "notEquals";
|
|
1377
2125
|
notEmpty: "notEmpty";
|
|
1378
2126
|
empty: "empty";
|
|
2127
|
+
gt: "gt";
|
|
2128
|
+
lt: "lt";
|
|
2129
|
+
contains: "contains";
|
|
1379
2130
|
}>;
|
|
1380
2131
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1381
|
-
}, z.core.$strip
|
|
2132
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2133
|
+
field: z.ZodString;
|
|
2134
|
+
op: z.ZodEnum<{
|
|
2135
|
+
in: "in";
|
|
2136
|
+
equals: "equals";
|
|
2137
|
+
notEquals: "notEquals";
|
|
2138
|
+
notEmpty: "notEmpty";
|
|
2139
|
+
empty: "empty";
|
|
2140
|
+
gt: "gt";
|
|
2141
|
+
lt: "lt";
|
|
2142
|
+
contains: "contains";
|
|
2143
|
+
}>;
|
|
2144
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2145
|
+
}, z.core.$strip>>]>>;
|
|
2146
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1382
2147
|
goto: z.ZodString;
|
|
2148
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1383
2149
|
}, z.core.$strip>>>;
|
|
1384
2150
|
}, z.core.$strip>, z.ZodObject<{
|
|
1385
2151
|
type: z.ZodLiteral<"widget">;
|
|
@@ -1396,7 +2162,7 @@ export declare const wizardSchema: z.ZodObject<{
|
|
|
1396
2162
|
title: z.ZodString;
|
|
1397
2163
|
description: z.ZodOptional<z.ZodString>;
|
|
1398
2164
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1399
|
-
when: z.ZodObject<{
|
|
2165
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1400
2166
|
field: z.ZodString;
|
|
1401
2167
|
op: z.ZodEnum<{
|
|
1402
2168
|
in: "in";
|
|
@@ -1404,10 +2170,126 @@ export declare const wizardSchema: z.ZodObject<{
|
|
|
1404
2170
|
notEquals: "notEquals";
|
|
1405
2171
|
notEmpty: "notEmpty";
|
|
1406
2172
|
empty: "empty";
|
|
2173
|
+
gt: "gt";
|
|
2174
|
+
lt: "lt";
|
|
2175
|
+
contains: "contains";
|
|
1407
2176
|
}>;
|
|
1408
2177
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1409
|
-
}, z.core.$strip
|
|
2178
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2179
|
+
field: z.ZodString;
|
|
2180
|
+
op: z.ZodEnum<{
|
|
2181
|
+
in: "in";
|
|
2182
|
+
equals: "equals";
|
|
2183
|
+
notEquals: "notEquals";
|
|
2184
|
+
notEmpty: "notEmpty";
|
|
2185
|
+
empty: "empty";
|
|
2186
|
+
gt: "gt";
|
|
2187
|
+
lt: "lt";
|
|
2188
|
+
contains: "contains";
|
|
2189
|
+
}>;
|
|
2190
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2191
|
+
}, z.core.$strip>>]>>;
|
|
2192
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1410
2193
|
goto: z.ZodString;
|
|
2194
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
2195
|
+
}, z.core.$strip>>>;
|
|
2196
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2197
|
+
type: z.ZodLiteral<"surface">;
|
|
2198
|
+
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2199
|
+
id: z.ZodString;
|
|
2200
|
+
component: z.ZodEnum<{
|
|
2201
|
+
Column: "Column";
|
|
2202
|
+
Text: "Text";
|
|
2203
|
+
List: "List";
|
|
2204
|
+
Row: "Row";
|
|
2205
|
+
DetailGrid: "DetailGrid";
|
|
2206
|
+
Badge: "Badge";
|
|
2207
|
+
Grid: "Grid";
|
|
2208
|
+
Metric: "Metric";
|
|
2209
|
+
Table: "Table";
|
|
2210
|
+
Image: "Image";
|
|
2211
|
+
BarChart: "BarChart";
|
|
2212
|
+
LineChart: "LineChart";
|
|
2213
|
+
DonutChart: "DonutChart";
|
|
2214
|
+
Actions: "Actions";
|
|
2215
|
+
Button: "Button";
|
|
2216
|
+
}>;
|
|
2217
|
+
children: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
2218
|
+
path: z.ZodString;
|
|
2219
|
+
componentId: z.ZodString;
|
|
2220
|
+
}, z.core.$strip>]>>;
|
|
2221
|
+
}, z.core.$loose>>>;
|
|
2222
|
+
candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2223
|
+
id: z.ZodString;
|
|
2224
|
+
description: z.ZodString;
|
|
2225
|
+
components: z.ZodArray<z.ZodObject<{
|
|
2226
|
+
id: z.ZodString;
|
|
2227
|
+
component: z.ZodEnum<{
|
|
2228
|
+
Column: "Column";
|
|
2229
|
+
Text: "Text";
|
|
2230
|
+
List: "List";
|
|
2231
|
+
Row: "Row";
|
|
2232
|
+
DetailGrid: "DetailGrid";
|
|
2233
|
+
Badge: "Badge";
|
|
2234
|
+
Grid: "Grid";
|
|
2235
|
+
Metric: "Metric";
|
|
2236
|
+
Table: "Table";
|
|
2237
|
+
Image: "Image";
|
|
2238
|
+
BarChart: "BarChart";
|
|
2239
|
+
LineChart: "LineChart";
|
|
2240
|
+
DonutChart: "DonutChart";
|
|
2241
|
+
Actions: "Actions";
|
|
2242
|
+
Button: "Button";
|
|
2243
|
+
}>;
|
|
2244
|
+
children: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
2245
|
+
path: z.ZodString;
|
|
2246
|
+
componentId: z.ZodString;
|
|
2247
|
+
}, z.core.$strip>]>>;
|
|
2248
|
+
}, z.core.$loose>>;
|
|
2249
|
+
group: z.ZodOptional<z.ZodString>;
|
|
2250
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2251
|
+
}, z.core.$strip>>>;
|
|
2252
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2253
|
+
id: z.ZodString;
|
|
2254
|
+
instructions: z.ZodString;
|
|
2255
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
2256
|
+
}, z.core.$strip>>>;
|
|
2257
|
+
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2258
|
+
working: z.ZodOptional<z.ZodString>;
|
|
2259
|
+
id: z.ZodString;
|
|
2260
|
+
title: z.ZodString;
|
|
2261
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2262
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2263
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2264
|
+
field: z.ZodString;
|
|
2265
|
+
op: z.ZodEnum<{
|
|
2266
|
+
in: "in";
|
|
2267
|
+
equals: "equals";
|
|
2268
|
+
notEquals: "notEquals";
|
|
2269
|
+
notEmpty: "notEmpty";
|
|
2270
|
+
empty: "empty";
|
|
2271
|
+
gt: "gt";
|
|
2272
|
+
lt: "lt";
|
|
2273
|
+
contains: "contains";
|
|
2274
|
+
}>;
|
|
2275
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2276
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2277
|
+
field: z.ZodString;
|
|
2278
|
+
op: z.ZodEnum<{
|
|
2279
|
+
in: "in";
|
|
2280
|
+
equals: "equals";
|
|
2281
|
+
notEquals: "notEquals";
|
|
2282
|
+
notEmpty: "notEmpty";
|
|
2283
|
+
empty: "empty";
|
|
2284
|
+
gt: "gt";
|
|
2285
|
+
lt: "lt";
|
|
2286
|
+
contains: "contains";
|
|
2287
|
+
}>;
|
|
2288
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2289
|
+
}, z.core.$strip>>]>>;
|
|
2290
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
2291
|
+
goto: z.ZodString;
|
|
2292
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1411
2293
|
}, z.core.$strip>>>;
|
|
1412
2294
|
}, z.core.$strip>, z.ZodObject<{
|
|
1413
2295
|
type: z.ZodLiteral<"film">;
|
|
@@ -1437,7 +2319,7 @@ export declare const wizardSchema: z.ZodObject<{
|
|
|
1437
2319
|
title: z.ZodString;
|
|
1438
2320
|
description: z.ZodOptional<z.ZodString>;
|
|
1439
2321
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1440
|
-
when: z.ZodObject<{
|
|
2322
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1441
2323
|
field: z.ZodString;
|
|
1442
2324
|
op: z.ZodEnum<{
|
|
1443
2325
|
in: "in";
|
|
@@ -1445,10 +2327,28 @@ export declare const wizardSchema: z.ZodObject<{
|
|
|
1445
2327
|
notEquals: "notEquals";
|
|
1446
2328
|
notEmpty: "notEmpty";
|
|
1447
2329
|
empty: "empty";
|
|
2330
|
+
gt: "gt";
|
|
2331
|
+
lt: "lt";
|
|
2332
|
+
contains: "contains";
|
|
1448
2333
|
}>;
|
|
1449
2334
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1450
|
-
}, z.core.$strip
|
|
2335
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2336
|
+
field: z.ZodString;
|
|
2337
|
+
op: z.ZodEnum<{
|
|
2338
|
+
in: "in";
|
|
2339
|
+
equals: "equals";
|
|
2340
|
+
notEquals: "notEquals";
|
|
2341
|
+
notEmpty: "notEmpty";
|
|
2342
|
+
empty: "empty";
|
|
2343
|
+
gt: "gt";
|
|
2344
|
+
lt: "lt";
|
|
2345
|
+
contains: "contains";
|
|
2346
|
+
}>;
|
|
2347
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2348
|
+
}, z.core.$strip>>]>>;
|
|
2349
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1451
2350
|
goto: z.ZodString;
|
|
2351
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1452
2352
|
}, z.core.$strip>>>;
|
|
1453
2353
|
}, z.core.$strip>, z.ZodObject<{
|
|
1454
2354
|
type: z.ZodLiteral<"review">;
|
|
@@ -1459,7 +2359,7 @@ export declare const wizardSchema: z.ZodObject<{
|
|
|
1459
2359
|
title: z.ZodString;
|
|
1460
2360
|
description: z.ZodOptional<z.ZodString>;
|
|
1461
2361
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1462
|
-
when: z.ZodObject<{
|
|
2362
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1463
2363
|
field: z.ZodString;
|
|
1464
2364
|
op: z.ZodEnum<{
|
|
1465
2365
|
in: "in";
|
|
@@ -1467,10 +2367,28 @@ export declare const wizardSchema: z.ZodObject<{
|
|
|
1467
2367
|
notEquals: "notEquals";
|
|
1468
2368
|
notEmpty: "notEmpty";
|
|
1469
2369
|
empty: "empty";
|
|
2370
|
+
gt: "gt";
|
|
2371
|
+
lt: "lt";
|
|
2372
|
+
contains: "contains";
|
|
1470
2373
|
}>;
|
|
1471
2374
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1472
|
-
}, z.core.$strip
|
|
2375
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2376
|
+
field: z.ZodString;
|
|
2377
|
+
op: z.ZodEnum<{
|
|
2378
|
+
in: "in";
|
|
2379
|
+
equals: "equals";
|
|
2380
|
+
notEquals: "notEquals";
|
|
2381
|
+
notEmpty: "notEmpty";
|
|
2382
|
+
empty: "empty";
|
|
2383
|
+
gt: "gt";
|
|
2384
|
+
lt: "lt";
|
|
2385
|
+
contains: "contains";
|
|
2386
|
+
}>;
|
|
2387
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2388
|
+
}, z.core.$strip>>]>>;
|
|
2389
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1473
2390
|
goto: z.ZodString;
|
|
2391
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1474
2392
|
}, z.core.$strip>>>;
|
|
1475
2393
|
}, z.core.$strip>, z.ZodObject<{
|
|
1476
2394
|
type: z.ZodLiteral<"result">;
|
|
@@ -1497,7 +2415,7 @@ export declare const wizardSchema: z.ZodObject<{
|
|
|
1497
2415
|
title: z.ZodString;
|
|
1498
2416
|
description: z.ZodOptional<z.ZodString>;
|
|
1499
2417
|
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1500
|
-
when: z.ZodObject<{
|
|
2418
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1501
2419
|
field: z.ZodString;
|
|
1502
2420
|
op: z.ZodEnum<{
|
|
1503
2421
|
in: "in";
|
|
@@ -1505,10 +2423,28 @@ export declare const wizardSchema: z.ZodObject<{
|
|
|
1505
2423
|
notEquals: "notEquals";
|
|
1506
2424
|
notEmpty: "notEmpty";
|
|
1507
2425
|
empty: "empty";
|
|
2426
|
+
gt: "gt";
|
|
2427
|
+
lt: "lt";
|
|
2428
|
+
contains: "contains";
|
|
1508
2429
|
}>;
|
|
1509
2430
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1510
|
-
}, z.core.$strip
|
|
2431
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2432
|
+
field: z.ZodString;
|
|
2433
|
+
op: z.ZodEnum<{
|
|
2434
|
+
in: "in";
|
|
2435
|
+
equals: "equals";
|
|
2436
|
+
notEquals: "notEquals";
|
|
2437
|
+
notEmpty: "notEmpty";
|
|
2438
|
+
empty: "empty";
|
|
2439
|
+
gt: "gt";
|
|
2440
|
+
lt: "lt";
|
|
2441
|
+
contains: "contains";
|
|
2442
|
+
}>;
|
|
2443
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2444
|
+
}, z.core.$strip>>]>>;
|
|
2445
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1511
2446
|
goto: z.ZodString;
|
|
2447
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1512
2448
|
}, z.core.$strip>>>;
|
|
1513
2449
|
}, z.core.$strip>], "type">>;
|
|
1514
2450
|
}, z.core.$strip>;
|
|
@@ -1561,10 +2497,99 @@ export declare function parseWizard(input: unknown, files?: string[]): {
|
|
|
1561
2497
|
*/
|
|
1562
2498
|
export declare function branchValues(values: Record<string, unknown>, outputs: Record<string, {
|
|
1563
2499
|
json?: unknown;
|
|
1564
|
-
|
|
1565
|
-
|
|
2500
|
+
decided?: Record<string, number>;
|
|
2501
|
+
}>,
|
|
2502
|
+
/** Rows per stored list, read as `lists.<list>.count`. */
|
|
2503
|
+
listCounts?: Record<string, number>): Record<string, unknown>;
|
|
2504
|
+
/** A branch back to an earlier step without `max` is taken at most this often in one run. */
|
|
2505
|
+
export declare const DEFAULT_LOOP_MAX = 10;
|
|
2506
|
+
/** How a run counts the times it took a branch: "<step>→<goto>". */
|
|
2507
|
+
export declare function loopKey(stepId: string, goto: string): string;
|
|
2508
|
+
/** Whether a rule may still send the run on: one with `max`, or one back, stops after so many. */
|
|
2509
|
+
export declare function ruleOpen(def: WizardDefinition, stepId: string, rule: NextRule, loops?: Record<string, number>): boolean;
|
|
2510
|
+
/**
|
|
2511
|
+
* Where a run goes after a step: the first open `when` rule that holds (`rule` is its index in
|
|
2512
|
+
* `next`), else a decision over the open `ask` rules, else the next step in the list. `cursor`
|
|
2513
|
+
* null = the end.
|
|
2514
|
+
*/
|
|
2515
|
+
export type RuleOutcome = {
|
|
2516
|
+
kind: "go";
|
|
2517
|
+
cursor: string | null;
|
|
2518
|
+
rule: number | null;
|
|
2519
|
+
} | {
|
|
2520
|
+
kind: "decide";
|
|
2521
|
+
rules: number[];
|
|
2522
|
+
};
|
|
2523
|
+
export declare function followRules(def: WizardDefinition, stepId: string, values: Record<string, unknown>, loops?: Record<string, number>): RuleOutcome;
|
|
2524
|
+
/** A rule with neither a condition nor a statement: where the run goes when no other rule holds. */
|
|
2525
|
+
export declare function isOtherwise(rule: NextRule): boolean;
|
|
2526
|
+
/**
|
|
2527
|
+
* Where a step goes when none of its rules holds: its "otherwise" rule (`rule` is its index in
|
|
2528
|
+
* `next`), else the next step in the list. `cursor` null = the end.
|
|
2529
|
+
*/
|
|
2530
|
+
export declare function otherwiseOf(def: WizardDefinition, stepId: string, loops?: Record<string, number>): {
|
|
2531
|
+
cursor: string | null;
|
|
2532
|
+
rule: number | null;
|
|
2533
|
+
};
|
|
2534
|
+
/** The step after `step` by its `when` rules alone. `null` = the end. */
|
|
1566
2535
|
export declare function nextStepId(def: WizardDefinition, stepId: string, values: Record<string, unknown>): string | null;
|
|
2536
|
+
/** The conditions of a rule or a field, as a list: one, several, or none. */
|
|
2537
|
+
export declare function conditionsOf(when: When | undefined): Condition[];
|
|
2538
|
+
export declare function conditionMatches(c: Condition, values: Record<string, unknown>): boolean;
|
|
2539
|
+
/** Whether every condition holds; no conditions hold trivially. */
|
|
2540
|
+
export declare function whenHolds(when: When | undefined, values: Record<string, unknown>): boolean;
|
|
2541
|
+
/** Whether a `when` rule holds. An `ask` rule never holds here: a decision takes it (see decide). */
|
|
1567
2542
|
export declare function ruleMatches(rule: NextRule, values: Record<string, unknown>): boolean;
|
|
2543
|
+
/** A page with decided fields has at most this many; it shows at most MAX_SHOWN_FIELDS of them. */
|
|
2544
|
+
export declare const MAX_DECIDED_FIELDS = 12;
|
|
2545
|
+
export declare const MAX_SHOWN_FIELDS = 5;
|
|
2546
|
+
/** Whether a field is shown only when a decision keeps it. */
|
|
2547
|
+
export declare function isDecidedField(field: Field): boolean;
|
|
2548
|
+
/**
|
|
2549
|
+
* The fields of a page that are shown: those whose `when` holds on what was known before the
|
|
2550
|
+
* page (`known`) and what the page holds so far (`page`). A hidden field's value does not count
|
|
2551
|
+
* for the fields after it.
|
|
2552
|
+
*/
|
|
2553
|
+
export declare function shownFields(fields: Field[], known: Record<string, unknown>, page: Record<string, unknown>): Field[];
|
|
2554
|
+
/** The references the `when` of a page's fields read outside the page: what the page must know. */
|
|
2555
|
+
export declare function pageNeeds(fields: Field[]): string[];
|
|
2556
|
+
/** At most this many choices come from data. */
|
|
2557
|
+
export declare const MAX_DATA_OPTIONS = 100;
|
|
2558
|
+
/**
|
|
2559
|
+
* The choices an `optionsFrom` reference finds in a run: the entries of a list output, one
|
|
2560
|
+
* column of a table output, or one column of a stored list — as text, without duplicates and
|
|
2561
|
+
* empties. Empty when the data is not there (yet).
|
|
2562
|
+
*/
|
|
2563
|
+
export declare function optionsFromData(ref: string, outputs: Record<string, {
|
|
2564
|
+
json?: unknown;
|
|
2565
|
+
}>, lists?: Record<string, {
|
|
2566
|
+
rows: {
|
|
2567
|
+
cells: Record<string, unknown>;
|
|
2568
|
+
}[];
|
|
2569
|
+
}>): string[];
|
|
2570
|
+
/** An offered appointment time read on its own clock: the offset it was written with. */
|
|
2571
|
+
export interface SlotTime {
|
|
2572
|
+
/** The calendar day there: "2026-10-12". */
|
|
2573
|
+
day: string;
|
|
2574
|
+
/** The time of day there: "09:00". */
|
|
2575
|
+
time: string;
|
|
2576
|
+
/** That day and time as if it were UTC — to name the weekday and month without moving it. */
|
|
2577
|
+
wall: Date;
|
|
2578
|
+
}
|
|
2579
|
+
/**
|
|
2580
|
+
* A slot option as day and time in its own offset (the business's time zone, not the reader's).
|
|
2581
|
+
* Null when it is not an ISO 8601 date-time with an offset.
|
|
2582
|
+
*/
|
|
2583
|
+
export declare function slotTime(iso: string): SlotTime | null;
|
|
2584
|
+
/** The weekday and date of a slot's day: "Montag, 12. Oktober" / "Monday, 12 October". */
|
|
2585
|
+
export declare function slotDayText(iso: string, lang?: "de" | "en"): string;
|
|
2586
|
+
/** A chosen slot as a person reads it back: "Di 13.10.2026, 10:30" / "Tue 13/10/2026, 10:30". */
|
|
2587
|
+
export declare function slotText(iso: string, lang?: "de" | "en"): string;
|
|
2588
|
+
/**
|
|
2589
|
+
* The slot among `options` that is the same moment as `value`, written as offered — so an answer
|
|
2590
|
+
* in another offset ("…T07:00:00Z" for "…T09:00:00+02:00") picks the offered time.
|
|
2591
|
+
*/
|
|
2592
|
+
export declare function offeredSlot(value: string, options: string[]): string | undefined;
|
|
1568
2593
|
export interface ItemsTotals {
|
|
1569
2594
|
rows: Record<string, unknown>[];
|
|
1570
2595
|
net: number;
|