@wise/dynamic-flow-types 3.8.0 → 3.9.0-experimental-1c8f72d
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/build/main.js +451 -446
- package/build/main.mjs +451 -446
- package/build/next/feature/Behavior.d.ts +2 -1
- package/build/next/feature/CopyBehavior.d.ts +13 -0
- package/build/next/index.d.ts +1 -0
- package/build/zod/schemas.d.ts +1402 -1392
- package/build/zod/schemas.ts +564 -558
- package/package.json +4 -4
package/build/main.mjs
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
// src/zod/schemas.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
var jsonElementSchema = z.lazy(
|
|
4
|
+
() => z.union([
|
|
5
|
+
z.string(),
|
|
6
|
+
z.number(),
|
|
7
|
+
z.boolean(),
|
|
8
|
+
z.record(jsonElementSchema),
|
|
9
|
+
z.array(jsonElementSchema)
|
|
10
|
+
]).nullable()
|
|
11
|
+
);
|
|
12
|
+
var externalSchema = z.object({
|
|
13
|
+
url: z.string()
|
|
14
|
+
});
|
|
15
|
+
var stepErrorSchema = z.object({
|
|
16
|
+
error: z.string().optional(),
|
|
17
|
+
validation: jsonElementSchema.optional()
|
|
8
18
|
});
|
|
9
19
|
var httpMethodSchema = z.union([
|
|
10
20
|
z.literal("GET"),
|
|
@@ -13,13 +23,64 @@ var httpMethodSchema = z.union([
|
|
|
13
23
|
z.literal("PATCH"),
|
|
14
24
|
z.literal("DELETE")
|
|
15
25
|
]);
|
|
16
|
-
var
|
|
17
|
-
|
|
26
|
+
var imageSchema = z.object({
|
|
27
|
+
text: z.string().optional(),
|
|
28
|
+
url: z.string().optional(),
|
|
29
|
+
uri: z.string().optional(),
|
|
30
|
+
accessibilityDescription: z.string().optional()
|
|
18
31
|
});
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
32
|
+
var errorResponseBodySchema = z.object({
|
|
33
|
+
refreshFormUrl: z.string().optional(),
|
|
34
|
+
analytics: z.record(z.string()).optional(),
|
|
35
|
+
error: z.string().optional(),
|
|
36
|
+
validation: jsonElementSchema.optional(),
|
|
37
|
+
refreshUrl: z.string().optional()
|
|
38
|
+
});
|
|
39
|
+
var linkSchema = z.object({
|
|
40
|
+
url: z.string()
|
|
41
|
+
});
|
|
42
|
+
var refreshBehaviorSchema = z.object({
|
|
43
|
+
type: z.literal("refresh")
|
|
44
|
+
});
|
|
45
|
+
var summaryProviderSchema = z.object({
|
|
46
|
+
providesTitle: z.boolean().optional(),
|
|
47
|
+
providesDescription: z.boolean().optional(),
|
|
48
|
+
providesIcon: z.boolean().optional(),
|
|
49
|
+
providesImage: z.boolean().optional()
|
|
50
|
+
});
|
|
51
|
+
var copyBehaviorSchema = z.object({
|
|
52
|
+
type: z.literal("copy"),
|
|
53
|
+
content: z.string()
|
|
54
|
+
});
|
|
55
|
+
var dismissBehaviorSchema = z.object({
|
|
56
|
+
type: z.literal("dismiss")
|
|
57
|
+
});
|
|
58
|
+
var linkBehaviorSchema = z.object({
|
|
59
|
+
type: z.literal("link"),
|
|
60
|
+
url: z.string()
|
|
61
|
+
});
|
|
62
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
63
|
+
var helpSchema = z.object({
|
|
64
|
+
markdown: z.string()
|
|
65
|
+
});
|
|
66
|
+
var actionTypeSchema = z.union([
|
|
67
|
+
z.literal("primary"),
|
|
68
|
+
z.literal("secondary"),
|
|
69
|
+
z.literal("link"),
|
|
70
|
+
z.literal("positive"),
|
|
71
|
+
z.literal("negative")
|
|
72
|
+
]);
|
|
73
|
+
var validateAsyncSchema = z.object({
|
|
74
|
+
param: z.string(),
|
|
75
|
+
method: httpMethodSchema,
|
|
76
|
+
url: z.string()
|
|
22
77
|
});
|
|
78
|
+
var navigationStackBehaviorSchema = z.union([
|
|
79
|
+
z.literal("default"),
|
|
80
|
+
z.literal("remove-previous"),
|
|
81
|
+
z.literal("remove-all"),
|
|
82
|
+
z.literal("replace-current")
|
|
83
|
+
]);
|
|
23
84
|
var contextSchema = z.union([
|
|
24
85
|
z.literal("positive"),
|
|
25
86
|
z.literal("neutral"),
|
|
@@ -30,42 +91,32 @@ var contextSchema = z.union([
|
|
|
30
91
|
z.literal("info"),
|
|
31
92
|
z.literal("primary")
|
|
32
93
|
]);
|
|
94
|
+
var supportingValuesSchema = z.object({
|
|
95
|
+
value: z.string().optional(),
|
|
96
|
+
subvalue: z.string().optional()
|
|
97
|
+
});
|
|
98
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
33
99
|
var inlineAlertSchema = z.object({
|
|
34
100
|
content: z.string(),
|
|
35
101
|
context: contextSchema.optional()
|
|
36
102
|
});
|
|
37
|
-
var iconTextSchema = z.object({
|
|
38
|
-
text: z.string()
|
|
39
|
-
});
|
|
40
|
-
var sizeSchema = z.union([
|
|
41
|
-
z.literal("xs"),
|
|
42
|
-
z.literal("sm"),
|
|
43
|
-
z.literal("md"),
|
|
44
|
-
z.literal("lg"),
|
|
45
|
-
z.literal("xl")
|
|
46
|
-
]);
|
|
47
|
-
var autocapitalizationTypeSchema = z.union([
|
|
48
|
-
z.literal("none"),
|
|
49
|
-
z.literal("characters"),
|
|
50
|
-
z.literal("sentences"),
|
|
51
|
-
z.literal("words")
|
|
52
|
-
]);
|
|
53
|
-
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
54
|
-
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
55
103
|
var mediaImageSchema = z.object({
|
|
56
104
|
type: z.literal("image"),
|
|
57
105
|
uri: z.string(),
|
|
58
106
|
accessibilityDescription: z.string().optional()
|
|
59
107
|
});
|
|
108
|
+
var avatarTextContentSchema = z.object({
|
|
109
|
+
type: z.literal("text"),
|
|
110
|
+
text: z.string(),
|
|
111
|
+
badgeUri: z.string().optional()
|
|
112
|
+
});
|
|
60
113
|
var avatarUriContentSchema = z.object({
|
|
61
114
|
type: z.literal("uri"),
|
|
62
115
|
uri: z.string(),
|
|
63
116
|
badgeUri: z.string().optional()
|
|
64
117
|
});
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
text: z.string(),
|
|
68
|
-
badgeUri: z.string().optional()
|
|
118
|
+
var iconTextSchema = z.object({
|
|
119
|
+
text: z.string()
|
|
69
120
|
});
|
|
70
121
|
var autocompleteTokenSchema = z.union([
|
|
71
122
|
z.literal("on"),
|
|
@@ -132,35 +183,68 @@ var autocompleteTokenSchema = z.union([
|
|
|
132
183
|
z.literal("fax"),
|
|
133
184
|
z.literal("pager")
|
|
134
185
|
]);
|
|
135
|
-
var
|
|
136
|
-
|
|
137
|
-
|
|
186
|
+
var iconNamedSchema = z.object({
|
|
187
|
+
name: z.string()
|
|
188
|
+
});
|
|
189
|
+
var autocapitalizationTypeSchema = z.union([
|
|
190
|
+
z.literal("none"),
|
|
191
|
+
z.literal("characters"),
|
|
192
|
+
z.literal("sentences"),
|
|
193
|
+
z.literal("words")
|
|
194
|
+
]);
|
|
195
|
+
var sizeSchema = z.union([
|
|
196
|
+
z.literal("xs"),
|
|
197
|
+
z.literal("sm"),
|
|
198
|
+
z.literal("md"),
|
|
199
|
+
z.literal("lg"),
|
|
200
|
+
z.literal("xl")
|
|
201
|
+
]);
|
|
202
|
+
var columnsLayoutBiasSchema = z.union([
|
|
203
|
+
z.literal("none"),
|
|
204
|
+
z.literal("left"),
|
|
205
|
+
z.literal("right")
|
|
206
|
+
]);
|
|
207
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
208
|
+
$ref: z.string()
|
|
209
|
+
});
|
|
210
|
+
var markdownLayoutSchema = z.object({
|
|
211
|
+
type: z.literal("markdown"),
|
|
212
|
+
content: z.string(),
|
|
213
|
+
align: alignSchema.optional(),
|
|
138
214
|
control: z.string().optional(),
|
|
139
215
|
margin: sizeSchema.optional(),
|
|
140
216
|
analyticsId: z.string().optional()
|
|
141
217
|
});
|
|
142
|
-
var
|
|
143
|
-
type: z.literal("paragraph"),
|
|
218
|
+
var instructionsLayoutItemSchema = z.object({
|
|
144
219
|
text: z.string(),
|
|
220
|
+
context: contextSchema,
|
|
221
|
+
tag: z.string().optional(),
|
|
222
|
+
analyticsId: z.string().optional()
|
|
223
|
+
});
|
|
224
|
+
var modalLayoutTriggerSchema = z.object({
|
|
225
|
+
title: z.string()
|
|
226
|
+
});
|
|
227
|
+
var infoLayoutSchema = z.object({
|
|
228
|
+
type: z.literal("info"),
|
|
229
|
+
markdown: z.string(),
|
|
145
230
|
align: alignSchema.optional(),
|
|
146
231
|
control: z.string().optional(),
|
|
147
232
|
margin: sizeSchema.optional(),
|
|
148
233
|
analyticsId: z.string().optional()
|
|
149
234
|
});
|
|
150
|
-
var
|
|
151
|
-
type: z.literal("
|
|
235
|
+
var paragraphLayoutSchema = z.object({
|
|
236
|
+
type: z.literal("paragraph"),
|
|
237
|
+
text: z.string(),
|
|
238
|
+
align: alignSchema.optional(),
|
|
152
239
|
control: z.string().optional(),
|
|
153
240
|
margin: sizeSchema.optional(),
|
|
154
241
|
analyticsId: z.string().optional()
|
|
155
242
|
});
|
|
156
|
-
var
|
|
157
|
-
z.literal("
|
|
158
|
-
z.literal("
|
|
159
|
-
z.literal("
|
|
243
|
+
var statusListLayoutStatusSchema = z.union([
|
|
244
|
+
z.literal("not-done"),
|
|
245
|
+
z.literal("pending"),
|
|
246
|
+
z.literal("done")
|
|
160
247
|
]);
|
|
161
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
162
|
-
$ref: z.string()
|
|
163
|
-
});
|
|
164
248
|
var imageLayoutSchema = z.object({
|
|
165
249
|
type: z.literal("image"),
|
|
166
250
|
text: z.string().optional(),
|
|
@@ -173,43 +257,20 @@ var imageLayoutSchema = z.object({
|
|
|
173
257
|
align: alignSchema.optional(),
|
|
174
258
|
analyticsId: z.string().optional()
|
|
175
259
|
});
|
|
176
|
-
var
|
|
177
|
-
z.literal("
|
|
178
|
-
z.literal("
|
|
179
|
-
z.literal("
|
|
260
|
+
var listLayoutStatusSchema = z.union([
|
|
261
|
+
z.literal("warning"),
|
|
262
|
+
z.literal("neutral"),
|
|
263
|
+
z.literal("positive")
|
|
180
264
|
]);
|
|
181
|
-
var
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
tag: z.string().optional(),
|
|
185
|
-
analyticsId: z.string().optional()
|
|
186
|
-
});
|
|
187
|
-
var modalLayoutTriggerSchema = z.object({
|
|
188
|
-
title: z.string()
|
|
189
|
-
});
|
|
190
|
-
var searchLayoutSchema = z.object({
|
|
191
|
-
type: z.literal("search"),
|
|
192
|
-
title: z.string(),
|
|
193
|
-
method: httpMethodSchema,
|
|
194
|
-
url: z.string(),
|
|
195
|
-
param: z.string(),
|
|
196
|
-
emptyMessage: z.string().optional(),
|
|
197
|
-
control: z.string().optional(),
|
|
198
|
-
margin: sizeSchema.optional(),
|
|
199
|
-
analyticsId: z.string().optional()
|
|
200
|
-
});
|
|
201
|
-
var infoLayoutSchema = z.object({
|
|
202
|
-
type: z.literal("info"),
|
|
203
|
-
markdown: z.string(),
|
|
204
|
-
align: alignSchema.optional(),
|
|
265
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
266
|
+
type: z.literal("loading-indicator"),
|
|
267
|
+
size: sizeSchema.optional(),
|
|
205
268
|
control: z.string().optional(),
|
|
206
269
|
margin: sizeSchema.optional(),
|
|
207
270
|
analyticsId: z.string().optional()
|
|
208
271
|
});
|
|
209
|
-
var
|
|
210
|
-
type: z.literal("
|
|
211
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
212
|
-
schemaId: z.string(),
|
|
272
|
+
var dividerLayoutSchema = z.object({
|
|
273
|
+
type: z.literal("divider"),
|
|
213
274
|
control: z.string().optional(),
|
|
214
275
|
margin: sizeSchema.optional(),
|
|
215
276
|
analyticsId: z.string().optional()
|
|
@@ -223,44 +284,17 @@ var headingLayoutSchema = z.object({
|
|
|
223
284
|
margin: sizeSchema.optional(),
|
|
224
285
|
analyticsId: z.string().optional()
|
|
225
286
|
});
|
|
226
|
-
var
|
|
227
|
-
type: z.literal("
|
|
228
|
-
|
|
229
|
-
|
|
287
|
+
var searchLayoutSchema = z.object({
|
|
288
|
+
type: z.literal("search"),
|
|
289
|
+
title: z.string(),
|
|
290
|
+
method: httpMethodSchema,
|
|
291
|
+
url: z.string(),
|
|
292
|
+
param: z.string(),
|
|
293
|
+
emptyMessage: z.string().optional(),
|
|
230
294
|
control: z.string().optional(),
|
|
231
295
|
margin: sizeSchema.optional(),
|
|
232
296
|
analyticsId: z.string().optional()
|
|
233
297
|
});
|
|
234
|
-
var columnsLayoutBiasSchema = z.union([
|
|
235
|
-
z.literal("none"),
|
|
236
|
-
z.literal("left"),
|
|
237
|
-
z.literal("right")
|
|
238
|
-
]);
|
|
239
|
-
var helpSchema = z.object({
|
|
240
|
-
markdown: z.string()
|
|
241
|
-
});
|
|
242
|
-
var searchSearchRequestSchema = z.object({
|
|
243
|
-
url: z.string(),
|
|
244
|
-
method: httpMethodSchema,
|
|
245
|
-
param: z.string(),
|
|
246
|
-
query: z.string()
|
|
247
|
-
});
|
|
248
|
-
var jsonElementSchema = z.lazy(
|
|
249
|
-
() => z.union([
|
|
250
|
-
z.string(),
|
|
251
|
-
z.number(),
|
|
252
|
-
z.boolean(),
|
|
253
|
-
z.record(jsonElementSchema),
|
|
254
|
-
z.array(jsonElementSchema)
|
|
255
|
-
]).nullable()
|
|
256
|
-
);
|
|
257
|
-
var externalSchema = z.object({
|
|
258
|
-
url: z.string()
|
|
259
|
-
});
|
|
260
|
-
var stepErrorSchema = z.object({
|
|
261
|
-
error: z.string().optional(),
|
|
262
|
-
validation: jsonElementSchema.optional()
|
|
263
|
-
});
|
|
264
298
|
var stringSchemaFormatSchema = z.union([
|
|
265
299
|
z.literal("date"),
|
|
266
300
|
z.literal("email"),
|
|
@@ -269,28 +303,31 @@ var stringSchemaFormatSchema = z.union([
|
|
|
269
303
|
z.literal("phone-number"),
|
|
270
304
|
z.literal("base64url")
|
|
271
305
|
]);
|
|
272
|
-
var
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
306
|
+
var actionSchema = z.object({
|
|
307
|
+
title: z.string().optional(),
|
|
308
|
+
type: actionTypeSchema.optional(),
|
|
309
|
+
disabled: z.boolean().optional(),
|
|
310
|
+
$id: z.string().optional(),
|
|
311
|
+
$ref: z.string().optional(),
|
|
312
|
+
id: z.string().optional(),
|
|
313
|
+
url: z.string().optional(),
|
|
314
|
+
method: httpMethodSchema.optional(),
|
|
315
|
+
exit: z.boolean().optional(),
|
|
316
|
+
result: jsonElementSchema.optional(),
|
|
317
|
+
data: jsonElementSchema.optional(),
|
|
318
|
+
timeout: z.number().optional(),
|
|
319
|
+
skipValidation: z.boolean().optional()
|
|
281
320
|
});
|
|
282
|
-
var
|
|
283
|
-
|
|
284
|
-
method: httpMethodSchema,
|
|
285
|
-
url: z.string()
|
|
321
|
+
var actionResponseBodySchema = z.object({
|
|
322
|
+
action: actionSchema
|
|
286
323
|
});
|
|
287
|
-
var
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
324
|
+
var searchSearchRequestSchema = z.object({
|
|
325
|
+
url: z.string(),
|
|
326
|
+
method: httpMethodSchema,
|
|
327
|
+
param: z.string(),
|
|
328
|
+
query: z.string()
|
|
292
329
|
});
|
|
293
|
-
var
|
|
330
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
294
331
|
var suggestionsValueSchema = z.object({
|
|
295
332
|
label: z.string(),
|
|
296
333
|
value: jsonElementSchema,
|
|
@@ -299,48 +336,37 @@ var suggestionsValueSchema = z.object({
|
|
|
299
336
|
tag: z.string().optional(),
|
|
300
337
|
analyticsId: z.string().optional()
|
|
301
338
|
});
|
|
302
|
-
var
|
|
303
|
-
|
|
339
|
+
var containerBehaviorSchema = z.object({
|
|
340
|
+
action: actionSchema.optional(),
|
|
341
|
+
link: linkSchema.optional()
|
|
304
342
|
});
|
|
305
|
-
var
|
|
306
|
-
z.literal("
|
|
307
|
-
|
|
308
|
-
z.literal("remove-all"),
|
|
309
|
-
z.literal("replace-current")
|
|
310
|
-
]);
|
|
311
|
-
var actionTypeSchema = z.union([
|
|
312
|
-
z.literal("primary"),
|
|
313
|
-
z.literal("secondary"),
|
|
314
|
-
z.literal("link"),
|
|
315
|
-
z.literal("positive"),
|
|
316
|
-
z.literal("negative")
|
|
317
|
-
]);
|
|
318
|
-
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
319
|
-
var linkBehaviorSchema = z.object({
|
|
320
|
-
type: z.literal("link"),
|
|
321
|
-
url: z.string()
|
|
343
|
+
var actionBehaviorSchema = z.object({
|
|
344
|
+
type: z.literal("action"),
|
|
345
|
+
action: actionSchema
|
|
322
346
|
});
|
|
323
|
-
var
|
|
324
|
-
|
|
347
|
+
var summarySummariserSchema = z.object({
|
|
348
|
+
defaultTitle: z.string().optional(),
|
|
349
|
+
defaultDescription: z.string().optional(),
|
|
350
|
+
defaultIcon: iconSchema.optional(),
|
|
351
|
+
defaultImage: imageSchema.optional(),
|
|
352
|
+
providesTitle: z.boolean().optional(),
|
|
353
|
+
providesDescription: z.boolean().optional(),
|
|
354
|
+
providesIcon: z.boolean().optional(),
|
|
355
|
+
providesImage: z.boolean().optional()
|
|
325
356
|
});
|
|
326
|
-
var
|
|
327
|
-
|
|
357
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
358
|
+
var navigationBackBehaviorSchema = z.object({
|
|
359
|
+
title: z.string().optional(),
|
|
360
|
+
action: actionSchema
|
|
328
361
|
});
|
|
329
362
|
var avatarContentSchema = z.union([avatarTextContentSchema, avatarUriContentSchema]);
|
|
330
|
-
var
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
url: z.string().optional(),
|
|
338
|
-
method: httpMethodSchema.optional(),
|
|
339
|
-
exit: z.boolean().optional(),
|
|
340
|
-
result: jsonElementSchema.optional(),
|
|
341
|
-
data: jsonElementSchema.optional(),
|
|
342
|
-
timeout: z.number().optional(),
|
|
343
|
-
skipValidation: z.boolean().optional()
|
|
363
|
+
var formLayoutSchema = z.object({
|
|
364
|
+
type: z.literal("form"),
|
|
365
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
366
|
+
schemaId: z.string(),
|
|
367
|
+
control: z.string().optional(),
|
|
368
|
+
margin: sizeSchema.optional(),
|
|
369
|
+
analyticsId: z.string().optional()
|
|
344
370
|
});
|
|
345
371
|
var instructionsLayoutSchema = z.object({
|
|
346
372
|
type: z.literal("instructions"),
|
|
@@ -350,13 +376,10 @@ var instructionsLayoutSchema = z.object({
|
|
|
350
376
|
margin: sizeSchema.optional(),
|
|
351
377
|
analyticsId: z.string().optional()
|
|
352
378
|
});
|
|
353
|
-
var
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
icon: iconSchema.optional(),
|
|
358
|
-
image: imageSchema.optional(),
|
|
359
|
-
value: searchSearchRequestSchema
|
|
379
|
+
var navigationSchema = z.object({
|
|
380
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
381
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
382
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
360
383
|
});
|
|
361
384
|
var searchResultActionSchema = z.object({
|
|
362
385
|
type: z.literal("action"),
|
|
@@ -366,138 +389,169 @@ var searchResultActionSchema = z.object({
|
|
|
366
389
|
image: imageSchema.optional(),
|
|
367
390
|
value: actionSchema
|
|
368
391
|
});
|
|
369
|
-
var
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
validation: jsonElementSchema.optional(),
|
|
377
|
-
refreshUrl: z.string().optional()
|
|
392
|
+
var searchResultSearchSchema = z.object({
|
|
393
|
+
type: z.literal("search"),
|
|
394
|
+
title: z.string(),
|
|
395
|
+
description: z.string().optional(),
|
|
396
|
+
icon: iconSchema.optional(),
|
|
397
|
+
image: imageSchema.optional(),
|
|
398
|
+
value: searchSearchRequestSchema
|
|
378
399
|
});
|
|
379
400
|
var suggestionsSchema = z.object({
|
|
380
401
|
values: z.array(suggestionsValueSchema)
|
|
381
402
|
});
|
|
382
|
-
var navigationBackBehaviorSchema = z.object({
|
|
383
|
-
title: z.string().optional(),
|
|
384
|
-
action: actionSchema
|
|
385
|
-
});
|
|
386
|
-
var actionBehaviorSchema = z.object({
|
|
387
|
-
type: z.literal("action"),
|
|
388
|
-
action: actionSchema
|
|
389
|
-
});
|
|
390
|
-
var containerBehaviorSchema = z.object({
|
|
391
|
-
action: actionSchema.optional(),
|
|
392
|
-
link: linkSchema.optional()
|
|
393
|
-
});
|
|
394
403
|
var mediaAvatarSchema = z.object({
|
|
395
404
|
type: z.literal("avatar"),
|
|
396
405
|
content: z.array(avatarContentSchema),
|
|
397
406
|
accessibilityDescription: z.string().optional()
|
|
398
407
|
});
|
|
399
|
-
var mediaSchema = z.union([mediaAvatarSchema, mediaImageSchema]);
|
|
400
408
|
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
401
|
-
var
|
|
402
|
-
backButton: navigationBackBehaviorSchema.optional(),
|
|
403
|
-
back: navigationBackBehaviorSchema.optional(),
|
|
404
|
-
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
405
|
-
});
|
|
409
|
+
var mediaSchema = z.union([mediaAvatarSchema, mediaImageSchema]);
|
|
406
410
|
var searchResponseBodySchema = z.object({
|
|
407
411
|
results: z.array(searchResultSchema)
|
|
408
412
|
});
|
|
409
|
-
var
|
|
413
|
+
var stepSchema = z.lazy(
|
|
410
414
|
() => z.object({
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
415
|
+
key: z.string().optional(),
|
|
416
|
+
type: z.string().optional(),
|
|
417
|
+
actions: z.array(actionSchema).optional(),
|
|
418
|
+
refreshFormUrl: z.string().optional(),
|
|
419
|
+
id: z.string(),
|
|
420
|
+
title: z.string(),
|
|
421
|
+
schemas: z.array(schemaSchema),
|
|
422
|
+
layout: z.array(layoutSchema),
|
|
423
|
+
description: z.string().optional(),
|
|
424
|
+
model: jsonElementSchema.optional(),
|
|
425
|
+
external: externalSchema.optional(),
|
|
426
|
+
polling: pollingSchema.optional(),
|
|
427
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
428
|
+
analytics: z.record(z.string()).optional(),
|
|
429
|
+
errors: stepErrorSchema.optional(),
|
|
430
|
+
navigation: navigationSchema.optional(),
|
|
431
|
+
refreshUrl: z.string().optional(),
|
|
432
|
+
control: z.string().optional(),
|
|
433
|
+
refreshAfter: z.string().optional()
|
|
414
434
|
})
|
|
415
435
|
);
|
|
416
|
-
var
|
|
436
|
+
var schemaSchema = z.lazy(
|
|
417
437
|
() => z.union([
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
438
|
+
allOfSchemaSchema,
|
|
439
|
+
arraySchemaSchema,
|
|
440
|
+
blobSchemaSchema,
|
|
441
|
+
booleanSchemaSchema,
|
|
442
|
+
constSchemaSchema,
|
|
443
|
+
integerSchemaSchema,
|
|
444
|
+
numberSchemaSchema,
|
|
445
|
+
objectSchemaSchema,
|
|
446
|
+
oneOfSchemaSchema,
|
|
447
|
+
stringSchemaSchema
|
|
424
448
|
])
|
|
425
449
|
);
|
|
426
|
-
var
|
|
450
|
+
var layoutSchema = z.lazy(
|
|
451
|
+
() => z.union([
|
|
452
|
+
alertLayoutSchema,
|
|
453
|
+
boxLayoutSchema,
|
|
454
|
+
buttonLayoutSchema,
|
|
455
|
+
columnsLayoutSchema,
|
|
456
|
+
decisionLayoutSchema,
|
|
457
|
+
dividerLayoutSchema,
|
|
458
|
+
formLayoutSchema,
|
|
459
|
+
headingLayoutSchema,
|
|
460
|
+
imageLayoutSchema,
|
|
461
|
+
infoLayoutSchema,
|
|
462
|
+
instructionsLayoutSchema,
|
|
463
|
+
listLayoutSchema,
|
|
464
|
+
loadingIndicatorLayoutSchema,
|
|
465
|
+
markdownLayoutSchema,
|
|
466
|
+
modalLayoutSchema,
|
|
467
|
+
paragraphLayoutSchema,
|
|
468
|
+
reviewLayoutSchema,
|
|
469
|
+
searchLayoutSchema,
|
|
470
|
+
sectionLayoutSchema,
|
|
471
|
+
statusListLayoutSchema,
|
|
472
|
+
tabsLayoutSchema
|
|
473
|
+
])
|
|
474
|
+
);
|
|
475
|
+
var pollingSchema = z.lazy(
|
|
427
476
|
() => z.object({
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
477
|
+
interval: z.number().optional(),
|
|
478
|
+
url: z.string(),
|
|
479
|
+
delay: z.number().optional(),
|
|
480
|
+
timeout: z.number().optional(),
|
|
481
|
+
maxAttempts: z.number(),
|
|
482
|
+
onError: pollingOnErrorSchema
|
|
483
|
+
})
|
|
484
|
+
);
|
|
485
|
+
var linkHandlerSchema = z.lazy(
|
|
486
|
+
() => z.object({
|
|
487
|
+
regexPattern: z.string(),
|
|
431
488
|
behavior: behaviorSchema.optional()
|
|
432
489
|
})
|
|
433
490
|
);
|
|
434
|
-
var
|
|
491
|
+
var modalResponseBodySchema = z.lazy(
|
|
435
492
|
() => z.object({
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
control: z.string().optional(),
|
|
439
|
-
margin: sizeSchema.optional(),
|
|
440
|
-
analyticsId: z.string().optional()
|
|
493
|
+
title: z.string().optional(),
|
|
494
|
+
content: z.array(layoutSchema)
|
|
441
495
|
})
|
|
442
496
|
);
|
|
443
|
-
var
|
|
497
|
+
var modalBehaviorSchema = z.lazy(
|
|
444
498
|
() => z.object({
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
analyticsId: z.string().optional()
|
|
499
|
+
type: z.literal("modal"),
|
|
500
|
+
title: z.string().optional(),
|
|
501
|
+
content: z.array(layoutSchema)
|
|
449
502
|
})
|
|
450
503
|
);
|
|
451
|
-
var
|
|
504
|
+
var persistAsyncSchema = z.lazy(
|
|
452
505
|
() => z.object({
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
callToAction: alertLayoutCallToActionSchema.optional(),
|
|
459
|
-
analyticsId: z.string().optional()
|
|
506
|
+
param: z.string(),
|
|
507
|
+
idProperty: z.string(),
|
|
508
|
+
schema: schemaSchema,
|
|
509
|
+
url: z.string(),
|
|
510
|
+
method: httpMethodSchema
|
|
460
511
|
})
|
|
461
512
|
);
|
|
462
|
-
var
|
|
513
|
+
var behaviorSchema = z.lazy(
|
|
514
|
+
() => z.union([
|
|
515
|
+
actionBehaviorSchema,
|
|
516
|
+
containerBehaviorSchema,
|
|
517
|
+
copyBehaviorSchema,
|
|
518
|
+
dismissBehaviorSchema,
|
|
519
|
+
linkBehaviorSchema,
|
|
520
|
+
modalBehaviorSchema,
|
|
521
|
+
refreshBehaviorSchema
|
|
522
|
+
])
|
|
523
|
+
);
|
|
524
|
+
var pollingOnErrorSchema = z.lazy(
|
|
463
525
|
() => z.object({
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
behavior: behaviorSchema
|
|
526
|
+
action: actionSchema.optional(),
|
|
527
|
+
behavior: behaviorSchema.optional()
|
|
467
528
|
})
|
|
468
529
|
);
|
|
469
|
-
var
|
|
530
|
+
var additionalInfoSchema = z.lazy(
|
|
470
531
|
() => z.object({
|
|
471
|
-
|
|
532
|
+
text: z.string(),
|
|
533
|
+
behavior: behaviorSchema.optional(),
|
|
534
|
+
accessibilityDescription: z.string().optional()
|
|
535
|
+
})
|
|
536
|
+
);
|
|
537
|
+
var statusListLayoutSchema = z.lazy(
|
|
538
|
+
() => z.object({
|
|
539
|
+
type: z.literal("status-list"),
|
|
540
|
+
items: z.array(statusListLayoutItemSchema),
|
|
472
541
|
title: z.string().optional(),
|
|
473
|
-
callToAction: listLayoutCallToActionSchema.optional(),
|
|
474
|
-
items: z.array(listLayoutItemSchema),
|
|
475
542
|
control: z.string().optional(),
|
|
476
543
|
margin: sizeSchema.optional(),
|
|
477
544
|
analyticsId: z.string().optional()
|
|
478
545
|
})
|
|
479
546
|
);
|
|
480
|
-
var
|
|
547
|
+
var statusListLayoutItemSchema = z.lazy(
|
|
481
548
|
() => z.object({
|
|
482
549
|
title: z.string(),
|
|
483
|
-
accessibilityDescription: z.string().optional(),
|
|
484
|
-
behavior: behaviorSchema
|
|
485
|
-
})
|
|
486
|
-
);
|
|
487
|
-
var listLayoutItemSchema = z.lazy(
|
|
488
|
-
() => z.object({
|
|
489
|
-
status: listLayoutStatusSchema.optional(),
|
|
490
|
-
icon: iconSchema.optional(),
|
|
491
|
-
image: imageSchema.optional(),
|
|
492
|
-
title: z.string().optional(),
|
|
493
|
-
subtitle: z.string().optional(),
|
|
494
|
-
value: z.string().optional(),
|
|
495
|
-
subvalue: z.string().optional(),
|
|
496
|
-
tag: z.string().optional(),
|
|
497
|
-
additionalInfo: additionalInfoSchema.optional(),
|
|
498
|
-
supportingValues: supportingValuesSchema.optional(),
|
|
499
|
-
inlineAlert: inlineAlertSchema.optional(),
|
|
500
550
|
description: z.string().optional(),
|
|
551
|
+
icon: iconSchema,
|
|
552
|
+
status: statusListLayoutStatusSchema.optional(),
|
|
553
|
+
callToAction: itemCallToActionSchema.optional(),
|
|
554
|
+
tag: z.string().optional(),
|
|
501
555
|
analyticsId: z.string().optional()
|
|
502
556
|
})
|
|
503
557
|
);
|
|
@@ -527,83 +581,35 @@ var decisionLayoutOptionSchema = z.lazy(
|
|
|
527
581
|
analyticsId: z.string().optional()
|
|
528
582
|
})
|
|
529
583
|
);
|
|
530
|
-
var
|
|
531
|
-
() => z.object({
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
)
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
analyticsId: z.string().optional()
|
|
545
|
-
})
|
|
546
|
-
);
|
|
547
|
-
var statusListLayoutItemSchema = z.lazy(
|
|
548
|
-
() => z.object({
|
|
549
|
-
title: z.string(),
|
|
550
|
-
description: z.string().optional(),
|
|
551
|
-
icon: iconSchema,
|
|
552
|
-
status: statusListLayoutStatusSchema.optional(),
|
|
553
|
-
callToAction: itemCallToActionSchema.optional(),
|
|
554
|
-
tag: z.string().optional(),
|
|
555
|
-
analyticsId: z.string().optional()
|
|
556
|
-
})
|
|
557
|
-
);
|
|
558
|
-
var sectionLayoutSchema = z.lazy(
|
|
559
|
-
() => z.object({
|
|
560
|
-
type: z.literal("section"),
|
|
561
|
-
components: z.array(layoutSchema),
|
|
562
|
-
title: z.string(),
|
|
563
|
-
callToAction: sectionLayoutCallToActionSchema.optional(),
|
|
564
|
-
control: z.string().optional(),
|
|
565
|
-
margin: sizeSchema.optional(),
|
|
566
|
-
analyticsId: z.string().optional()
|
|
567
|
-
})
|
|
568
|
-
);
|
|
569
|
-
var layoutSchema = z.lazy(
|
|
570
|
-
() => z.union([
|
|
571
|
-
alertLayoutSchema,
|
|
572
|
-
boxLayoutSchema,
|
|
573
|
-
buttonLayoutSchema,
|
|
574
|
-
columnsLayoutSchema,
|
|
575
|
-
decisionLayoutSchema,
|
|
576
|
-
dividerLayoutSchema,
|
|
577
|
-
formLayoutSchema,
|
|
578
|
-
headingLayoutSchema,
|
|
579
|
-
imageLayoutSchema,
|
|
580
|
-
infoLayoutSchema,
|
|
581
|
-
instructionsLayoutSchema,
|
|
582
|
-
listLayoutSchema,
|
|
583
|
-
loadingIndicatorLayoutSchema,
|
|
584
|
-
markdownLayoutSchema,
|
|
585
|
-
modalLayoutSchema,
|
|
586
|
-
paragraphLayoutSchema,
|
|
587
|
-
reviewLayoutSchema,
|
|
588
|
-
searchLayoutSchema,
|
|
589
|
-
sectionLayoutSchema,
|
|
590
|
-
statusListLayoutSchema,
|
|
591
|
-
tabsLayoutSchema
|
|
592
|
-
])
|
|
584
|
+
var reviewLayoutFieldSchema = z.lazy(
|
|
585
|
+
() => z.object({
|
|
586
|
+
label: z.string(),
|
|
587
|
+
value: z.string(),
|
|
588
|
+
rawValue: z.string().optional(),
|
|
589
|
+
help: helpSchema.optional(),
|
|
590
|
+
tag: z.string().optional(),
|
|
591
|
+
icon: iconSchema.optional(),
|
|
592
|
+
image: imageSchema.optional(),
|
|
593
|
+
additionalInfo: additionalInfoSchema.optional(),
|
|
594
|
+
inlineAlert: inlineAlertSchema.optional(),
|
|
595
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
596
|
+
analyticsId: z.string().optional()
|
|
597
|
+
})
|
|
593
598
|
);
|
|
594
|
-
var
|
|
599
|
+
var reviewLayoutCallToActionSchema = z.lazy(
|
|
595
600
|
() => z.object({
|
|
601
|
+
action: actionSchema.optional(),
|
|
596
602
|
title: z.string(),
|
|
597
603
|
accessibilityDescription: z.string().optional(),
|
|
598
|
-
behavior: behaviorSchema
|
|
604
|
+
behavior: behaviorSchema.optional()
|
|
599
605
|
})
|
|
600
606
|
);
|
|
601
|
-
var
|
|
607
|
+
var columnsLayoutSchema = z.lazy(
|
|
602
608
|
() => z.object({
|
|
603
|
-
type: z.literal("
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
609
|
+
type: z.literal("columns"),
|
|
610
|
+
left: z.array(layoutSchema),
|
|
611
|
+
right: z.array(layoutSchema),
|
|
612
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
607
613
|
control: z.string().optional(),
|
|
608
614
|
margin: sizeSchema.optional(),
|
|
609
615
|
analyticsId: z.string().optional()
|
|
@@ -624,17 +630,39 @@ var buttonLayoutSchema = z.lazy(
|
|
|
624
630
|
analyticsId: z.string().optional()
|
|
625
631
|
})
|
|
626
632
|
);
|
|
627
|
-
var
|
|
633
|
+
var sectionLayoutSchema = z.lazy(
|
|
628
634
|
() => z.object({
|
|
629
|
-
type: z.literal("
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
635
|
+
type: z.literal("section"),
|
|
636
|
+
components: z.array(layoutSchema),
|
|
637
|
+
title: z.string(),
|
|
638
|
+
callToAction: sectionLayoutCallToActionSchema.optional(),
|
|
633
639
|
control: z.string().optional(),
|
|
634
640
|
margin: sizeSchema.optional(),
|
|
635
641
|
analyticsId: z.string().optional()
|
|
636
642
|
})
|
|
637
643
|
);
|
|
644
|
+
var sectionLayoutCallToActionSchema = z.lazy(
|
|
645
|
+
() => z.object({
|
|
646
|
+
title: z.string(),
|
|
647
|
+
accessibilityDescription: z.string().optional(),
|
|
648
|
+
behavior: behaviorSchema
|
|
649
|
+
})
|
|
650
|
+
);
|
|
651
|
+
var listLayoutCallToActionSchema = z.lazy(
|
|
652
|
+
() => z.object({
|
|
653
|
+
title: z.string(),
|
|
654
|
+
accessibilityDescription: z.string().optional(),
|
|
655
|
+
behavior: behaviorSchema
|
|
656
|
+
})
|
|
657
|
+
);
|
|
658
|
+
var tabsLayoutTabSchema = z.lazy(
|
|
659
|
+
() => z.object({
|
|
660
|
+
title: z.string(),
|
|
661
|
+
components: z.array(layoutSchema),
|
|
662
|
+
tag: z.string().optional(),
|
|
663
|
+
analyticsId: z.string().optional()
|
|
664
|
+
})
|
|
665
|
+
);
|
|
638
666
|
var modalLayoutSchema = z.lazy(
|
|
639
667
|
() => z.object({
|
|
640
668
|
type: z.literal("modal"),
|
|
@@ -645,104 +673,107 @@ var modalLayoutSchema = z.lazy(
|
|
|
645
673
|
analyticsId: z.string().optional()
|
|
646
674
|
})
|
|
647
675
|
);
|
|
648
|
-
var
|
|
676
|
+
var modalLayoutContentSchema = z.lazy(
|
|
649
677
|
() => z.object({
|
|
650
|
-
type: z.literal("review"),
|
|
651
|
-
orientation: z.string().optional(),
|
|
652
|
-
action: actionSchema.optional(),
|
|
653
|
-
fields: z.array(reviewLayoutFieldSchema),
|
|
654
678
|
title: z.string().optional(),
|
|
655
|
-
|
|
679
|
+
components: z.array(layoutSchema)
|
|
680
|
+
})
|
|
681
|
+
);
|
|
682
|
+
var tabsLayoutSchema = z.lazy(
|
|
683
|
+
() => z.object({
|
|
684
|
+
type: z.literal("tabs"),
|
|
685
|
+
tabs: z.array(tabsLayoutTabSchema),
|
|
656
686
|
control: z.string().optional(),
|
|
657
687
|
margin: sizeSchema.optional(),
|
|
658
688
|
analyticsId: z.string().optional()
|
|
659
689
|
})
|
|
660
690
|
);
|
|
661
|
-
var
|
|
691
|
+
var listLayoutItemSchema = z.lazy(
|
|
662
692
|
() => z.object({
|
|
663
|
-
|
|
664
|
-
value: z.string(),
|
|
665
|
-
rawValue: z.string().optional(),
|
|
666
|
-
help: helpSchema.optional(),
|
|
667
|
-
tag: z.string().optional(),
|
|
693
|
+
status: listLayoutStatusSchema.optional(),
|
|
668
694
|
icon: iconSchema.optional(),
|
|
669
695
|
image: imageSchema.optional(),
|
|
696
|
+
title: z.string().optional(),
|
|
697
|
+
subtitle: z.string().optional(),
|
|
698
|
+
value: z.string().optional(),
|
|
699
|
+
subvalue: z.string().optional(),
|
|
700
|
+
tag: z.string().optional(),
|
|
670
701
|
additionalInfo: additionalInfoSchema.optional(),
|
|
702
|
+
supportingValues: supportingValuesSchema.optional(),
|
|
671
703
|
inlineAlert: inlineAlertSchema.optional(),
|
|
672
|
-
|
|
704
|
+
description: z.string().optional(),
|
|
673
705
|
analyticsId: z.string().optional()
|
|
674
706
|
})
|
|
675
707
|
);
|
|
676
|
-
var
|
|
708
|
+
var itemCallToActionSchema = z.lazy(
|
|
677
709
|
() => z.object({
|
|
678
|
-
title: z.string()
|
|
679
|
-
|
|
710
|
+
title: z.string(),
|
|
711
|
+
accessibilityDescription: z.string().optional(),
|
|
712
|
+
behavior: behaviorSchema
|
|
680
713
|
})
|
|
681
714
|
);
|
|
682
|
-
var
|
|
715
|
+
var listLayoutSchema = z.lazy(
|
|
683
716
|
() => z.object({
|
|
717
|
+
type: z.literal("list"),
|
|
684
718
|
title: z.string().optional(),
|
|
685
|
-
|
|
719
|
+
callToAction: listLayoutCallToActionSchema.optional(),
|
|
720
|
+
items: z.array(listLayoutItemSchema),
|
|
721
|
+
control: z.string().optional(),
|
|
722
|
+
margin: sizeSchema.optional(),
|
|
723
|
+
analyticsId: z.string().optional()
|
|
686
724
|
})
|
|
687
725
|
);
|
|
688
|
-
var
|
|
726
|
+
var alertLayoutSchema = z.lazy(
|
|
689
727
|
() => z.object({
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
refreshFormUrl: z.string().optional(),
|
|
694
|
-
id: z.string(),
|
|
695
|
-
title: z.string(),
|
|
696
|
-
schemas: z.array(schemaSchema),
|
|
697
|
-
layout: z.array(layoutSchema),
|
|
698
|
-
description: z.string().optional(),
|
|
699
|
-
model: jsonElementSchema.optional(),
|
|
700
|
-
external: externalSchema.optional(),
|
|
701
|
-
polling: pollingSchema.optional(),
|
|
702
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
703
|
-
analytics: z.record(z.string()).optional(),
|
|
704
|
-
errors: stepErrorSchema.optional(),
|
|
705
|
-
navigation: navigationSchema.optional(),
|
|
706
|
-
refreshUrl: z.string().optional(),
|
|
728
|
+
type: z.literal("alert"),
|
|
729
|
+
markdown: z.string(),
|
|
730
|
+
context: contextSchema.optional(),
|
|
707
731
|
control: z.string().optional(),
|
|
708
|
-
|
|
732
|
+
margin: sizeSchema.optional(),
|
|
733
|
+
callToAction: alertLayoutCallToActionSchema.optional(),
|
|
734
|
+
analyticsId: z.string().optional()
|
|
709
735
|
})
|
|
710
736
|
);
|
|
711
|
-
var
|
|
712
|
-
() => z.
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
oneOfSchemaSchema,
|
|
722
|
-
stringSchemaSchema
|
|
723
|
-
])
|
|
737
|
+
var boxLayoutSchema = z.lazy(
|
|
738
|
+
() => z.object({
|
|
739
|
+
type: z.literal("box"),
|
|
740
|
+
components: z.array(layoutSchema),
|
|
741
|
+
width: sizeSchema.optional(),
|
|
742
|
+
border: z.boolean().optional(),
|
|
743
|
+
control: z.string().optional(),
|
|
744
|
+
margin: sizeSchema.optional(),
|
|
745
|
+
analyticsId: z.string().optional()
|
|
746
|
+
})
|
|
724
747
|
);
|
|
725
|
-
var
|
|
748
|
+
var reviewLayoutSchema = z.lazy(
|
|
726
749
|
() => z.object({
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
750
|
+
type: z.literal("review"),
|
|
751
|
+
orientation: z.string().optional(),
|
|
752
|
+
action: actionSchema.optional(),
|
|
753
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
754
|
+
title: z.string().optional(),
|
|
755
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
756
|
+
control: z.string().optional(),
|
|
757
|
+
margin: sizeSchema.optional(),
|
|
758
|
+
analyticsId: z.string().optional()
|
|
733
759
|
})
|
|
734
760
|
);
|
|
735
|
-
var
|
|
761
|
+
var alertLayoutCallToActionSchema = z.lazy(
|
|
736
762
|
() => z.object({
|
|
737
|
-
|
|
738
|
-
|
|
763
|
+
title: z.string(),
|
|
764
|
+
accessibilityDescription: z.string().optional(),
|
|
765
|
+
behavior: behaviorSchema
|
|
739
766
|
})
|
|
740
767
|
);
|
|
741
|
-
var
|
|
768
|
+
var objectSchemaSchema = z.lazy(
|
|
742
769
|
() => z.object({
|
|
770
|
+
type: z.literal("object"),
|
|
743
771
|
disabled: z.boolean().optional(),
|
|
744
772
|
promoted: z.boolean().optional(),
|
|
745
|
-
|
|
773
|
+
help: helpSchema.optional(),
|
|
774
|
+
properties: z.record(schemaSchema),
|
|
775
|
+
displayOrder: z.array(z.string()),
|
|
776
|
+
required: z.array(z.string()).optional(),
|
|
746
777
|
$id: z.string().optional(),
|
|
747
778
|
title: z.string().optional(),
|
|
748
779
|
description: z.string().optional(),
|
|
@@ -756,9 +787,6 @@ var allOfSchemaSchema = z.lazy(
|
|
|
756
787
|
alert: alertLayoutSchema.optional()
|
|
757
788
|
})
|
|
758
789
|
);
|
|
759
|
-
var arraySchemaSchema = z.lazy(
|
|
760
|
-
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
761
|
-
);
|
|
762
790
|
var blobSchemaSchema = z.lazy(
|
|
763
791
|
() => z.object({
|
|
764
792
|
type: z.literal("blob"),
|
|
@@ -783,6 +811,27 @@ var blobSchemaSchema = z.lazy(
|
|
|
783
811
|
disabled: z.boolean().optional()
|
|
784
812
|
})
|
|
785
813
|
);
|
|
814
|
+
var allOfSchemaSchema = z.lazy(
|
|
815
|
+
() => z.object({
|
|
816
|
+
disabled: z.boolean().optional(),
|
|
817
|
+
promoted: z.boolean().optional(),
|
|
818
|
+
allOf: z.array(schemaSchema),
|
|
819
|
+
$id: z.string().optional(),
|
|
820
|
+
title: z.string().optional(),
|
|
821
|
+
description: z.string().optional(),
|
|
822
|
+
control: z.string().optional(),
|
|
823
|
+
hidden: z.boolean().optional(),
|
|
824
|
+
icon: iconSchema.optional(),
|
|
825
|
+
image: imageSchema.optional(),
|
|
826
|
+
keywords: z.array(z.string()).optional(),
|
|
827
|
+
summary: summaryProviderSchema.optional(),
|
|
828
|
+
analyticsId: z.string().optional(),
|
|
829
|
+
alert: alertLayoutSchema.optional()
|
|
830
|
+
})
|
|
831
|
+
);
|
|
832
|
+
var arraySchemaSchema = z.lazy(
|
|
833
|
+
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
834
|
+
);
|
|
786
835
|
var booleanSchemaSchema = z.lazy(
|
|
787
836
|
() => z.object({
|
|
788
837
|
type: z.literal("boolean"),
|
|
@@ -898,28 +947,6 @@ var numberSchemaSchema = z.lazy(
|
|
|
898
947
|
onChange: behaviorSchema.optional()
|
|
899
948
|
})
|
|
900
949
|
);
|
|
901
|
-
var objectSchemaSchema = z.lazy(
|
|
902
|
-
() => z.object({
|
|
903
|
-
type: z.literal("object"),
|
|
904
|
-
disabled: z.boolean().optional(),
|
|
905
|
-
promoted: z.boolean().optional(),
|
|
906
|
-
help: helpSchema.optional(),
|
|
907
|
-
properties: z.record(schemaSchema),
|
|
908
|
-
displayOrder: z.array(z.string()),
|
|
909
|
-
required: z.array(z.string()).optional(),
|
|
910
|
-
$id: z.string().optional(),
|
|
911
|
-
title: z.string().optional(),
|
|
912
|
-
description: z.string().optional(),
|
|
913
|
-
control: z.string().optional(),
|
|
914
|
-
hidden: z.boolean().optional(),
|
|
915
|
-
icon: iconSchema.optional(),
|
|
916
|
-
image: imageSchema.optional(),
|
|
917
|
-
keywords: z.array(z.string()).optional(),
|
|
918
|
-
summary: summaryProviderSchema.optional(),
|
|
919
|
-
analyticsId: z.string().optional(),
|
|
920
|
-
alert: alertLayoutSchema.optional()
|
|
921
|
-
})
|
|
922
|
-
);
|
|
923
950
|
var oneOfSchemaSchema = z.lazy(
|
|
924
951
|
() => z.object({
|
|
925
952
|
autofillProvider: z.string().optional(),
|
|
@@ -1024,15 +1051,6 @@ var arraySchemaListSchema = z.lazy(
|
|
|
1024
1051
|
disabled: z.boolean().optional()
|
|
1025
1052
|
})
|
|
1026
1053
|
);
|
|
1027
|
-
var persistAsyncSchema = z.lazy(
|
|
1028
|
-
() => z.object({
|
|
1029
|
-
param: z.string(),
|
|
1030
|
-
idProperty: z.string(),
|
|
1031
|
-
schema: schemaSchema,
|
|
1032
|
-
url: z.string(),
|
|
1033
|
-
method: httpMethodSchema
|
|
1034
|
-
})
|
|
1035
|
-
);
|
|
1036
1054
|
var arraySchemaTupleSchema = z.lazy(
|
|
1037
1055
|
() => z.object({
|
|
1038
1056
|
type: z.literal("array"),
|
|
@@ -1053,19 +1071,6 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
1053
1071
|
alert: alertLayoutSchema.optional()
|
|
1054
1072
|
})
|
|
1055
1073
|
);
|
|
1056
|
-
var pollingOnErrorSchema = z.lazy(
|
|
1057
|
-
() => z.object({
|
|
1058
|
-
action: actionSchema.optional(),
|
|
1059
|
-
behavior: behaviorSchema.optional()
|
|
1060
|
-
})
|
|
1061
|
-
);
|
|
1062
|
-
var modalBehaviorSchema = z.lazy(
|
|
1063
|
-
() => z.object({
|
|
1064
|
-
type: z.literal("modal"),
|
|
1065
|
-
title: z.string().optional(),
|
|
1066
|
-
content: z.array(layoutSchema)
|
|
1067
|
-
})
|
|
1068
|
-
);
|
|
1069
1074
|
|
|
1070
1075
|
// src/zod/validators.ts
|
|
1071
1076
|
var validateStep = (step) => validate(step, stepSchema);
|