@wise/dynamic-flow-client 3.29.2 → 3.29.3-experimental-renderer-types-export-10cc7fc
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 +299 -299
- package/build/main.min.js +1 -1
- package/build/main.mjs +299 -299
- package/package.json +2 -2
package/build/main.mjs
CHANGED
|
@@ -8307,21 +8307,13 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
8307
8307
|
quotelessJson,
|
|
8308
8308
|
ZodError
|
|
8309
8309
|
});
|
|
8310
|
-
var
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
z.literal("GET"),
|
|
8317
|
-
z.literal("POST"),
|
|
8318
|
-
z.literal("PUT"),
|
|
8319
|
-
z.literal("PATCH"),
|
|
8320
|
-
z.literal("DELETE")
|
|
8310
|
+
var sizeSchema = z.union([
|
|
8311
|
+
z.literal("xs"),
|
|
8312
|
+
z.literal("sm"),
|
|
8313
|
+
z.literal("md"),
|
|
8314
|
+
z.literal("lg"),
|
|
8315
|
+
z.literal("xl")
|
|
8321
8316
|
]);
|
|
8322
|
-
var iconNamedSchema = z.object({
|
|
8323
|
-
name: z.string()
|
|
8324
|
-
});
|
|
8325
8317
|
var contextSchema = z.union([
|
|
8326
8318
|
z.literal("positive"),
|
|
8327
8319
|
z.literal("neutral"),
|
|
@@ -8332,18 +8324,107 @@ var contextSchema = z.union([
|
|
|
8332
8324
|
z.literal("info"),
|
|
8333
8325
|
z.literal("primary")
|
|
8334
8326
|
]);
|
|
8335
|
-
var
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
z.literal("
|
|
8342
|
-
z.literal("
|
|
8343
|
-
z.literal("
|
|
8327
|
+
var columnsLayoutBiasSchema = z.union([
|
|
8328
|
+
z.literal("none"),
|
|
8329
|
+
z.literal("left"),
|
|
8330
|
+
z.literal("right")
|
|
8331
|
+
]);
|
|
8332
|
+
var statusListLayoutStatusSchema = z.union([
|
|
8333
|
+
z.literal("not-done"),
|
|
8334
|
+
z.literal("pending"),
|
|
8335
|
+
z.literal("done")
|
|
8344
8336
|
]);
|
|
8345
8337
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
8346
|
-
var
|
|
8338
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
8339
|
+
$ref: z.string()
|
|
8340
|
+
});
|
|
8341
|
+
var modalLayoutTriggerSchema = z.object({
|
|
8342
|
+
title: z.string()
|
|
8343
|
+
});
|
|
8344
|
+
var httpMethodSchema = z.union([
|
|
8345
|
+
z.literal("GET"),
|
|
8346
|
+
z.literal("POST"),
|
|
8347
|
+
z.literal("PUT"),
|
|
8348
|
+
z.literal("PATCH"),
|
|
8349
|
+
z.literal("DELETE")
|
|
8350
|
+
]);
|
|
8351
|
+
var dividerLayoutSchema = z.object({
|
|
8352
|
+
type: z.literal("divider"),
|
|
8353
|
+
control: z.string().optional(),
|
|
8354
|
+
margin: sizeSchema.optional()
|
|
8355
|
+
});
|
|
8356
|
+
var listLayoutStatusSchema = z.union([
|
|
8357
|
+
z.literal("warning"),
|
|
8358
|
+
z.literal("neutral"),
|
|
8359
|
+
z.literal("positive")
|
|
8360
|
+
]);
|
|
8361
|
+
var headingLayoutSchema = z.object({
|
|
8362
|
+
type: z.literal("heading"),
|
|
8363
|
+
text: z.string(),
|
|
8364
|
+
size: sizeSchema.optional(),
|
|
8365
|
+
align: alignSchema.optional(),
|
|
8366
|
+
control: z.string().optional(),
|
|
8367
|
+
margin: sizeSchema.optional()
|
|
8368
|
+
});
|
|
8369
|
+
var formLayoutSchema = z.object({
|
|
8370
|
+
type: z.literal("form"),
|
|
8371
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
8372
|
+
schemaId: z.string(),
|
|
8373
|
+
control: z.string().optional(),
|
|
8374
|
+
margin: sizeSchema.optional()
|
|
8375
|
+
});
|
|
8376
|
+
var imageLayoutSchema = z.object({
|
|
8377
|
+
type: z.literal("image"),
|
|
8378
|
+
text: z.string().optional(),
|
|
8379
|
+
url: z.string(),
|
|
8380
|
+
size: sizeSchema.optional(),
|
|
8381
|
+
accessibilityDescription: z.string().optional(),
|
|
8382
|
+
control: z.string().optional(),
|
|
8383
|
+
margin: sizeSchema.optional()
|
|
8384
|
+
});
|
|
8385
|
+
var infoLayoutSchema = z.object({
|
|
8386
|
+
type: z.literal("info"),
|
|
8387
|
+
markdown: z.string(),
|
|
8388
|
+
align: alignSchema.optional(),
|
|
8389
|
+
control: z.string().optional(),
|
|
8390
|
+
margin: sizeSchema.optional()
|
|
8391
|
+
});
|
|
8392
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
8393
|
+
type: z.literal("loading-indicator"),
|
|
8394
|
+
size: sizeSchema.optional(),
|
|
8395
|
+
control: z.string().optional(),
|
|
8396
|
+
margin: sizeSchema.optional()
|
|
8397
|
+
});
|
|
8398
|
+
var paragraphLayoutSchema = z.object({
|
|
8399
|
+
type: z.literal("paragraph"),
|
|
8400
|
+
text: z.string(),
|
|
8401
|
+
align: alignSchema.optional(),
|
|
8402
|
+
control: z.string().optional(),
|
|
8403
|
+
margin: sizeSchema.optional()
|
|
8404
|
+
});
|
|
8405
|
+
var instructionsLayoutItemSchema = z.object({
|
|
8406
|
+
text: z.string(),
|
|
8407
|
+
context: contextSchema
|
|
8408
|
+
});
|
|
8409
|
+
var helpSchema = z.object({
|
|
8410
|
+
markdown: z.string()
|
|
8411
|
+
});
|
|
8412
|
+
var imageSchema = z.object({
|
|
8413
|
+
text: z.string().optional(),
|
|
8414
|
+
url: z.string(),
|
|
8415
|
+
accessibilityDescription: z.string().optional()
|
|
8416
|
+
});
|
|
8417
|
+
var summaryProviderSchema = z.object({
|
|
8418
|
+
providesTitle: z.boolean().optional(),
|
|
8419
|
+
providesDescription: z.boolean().optional(),
|
|
8420
|
+
providesIcon: z.boolean().optional(),
|
|
8421
|
+
providesImage: z.boolean().optional()
|
|
8422
|
+
});
|
|
8423
|
+
var validateAsyncSchema = z.object({
|
|
8424
|
+
param: z.string(),
|
|
8425
|
+
method: httpMethodSchema,
|
|
8426
|
+
url: z.string()
|
|
8427
|
+
});
|
|
8347
8428
|
var autocompleteTokenSchema = z.union([
|
|
8348
8429
|
z.literal("on"),
|
|
8349
8430
|
z.literal("name"),
|
|
@@ -8409,106 +8490,14 @@ var autocompleteTokenSchema = z.union([
|
|
|
8409
8490
|
z.literal("fax"),
|
|
8410
8491
|
z.literal("pager")
|
|
8411
8492
|
]);
|
|
8412
|
-
var
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
type: z.literal("paragraph"),
|
|
8420
|
-
text: z.string(),
|
|
8421
|
-
align: alignSchema.optional(),
|
|
8422
|
-
control: z.string().optional(),
|
|
8423
|
-
margin: sizeSchema.optional()
|
|
8424
|
-
});
|
|
8425
|
-
var dividerLayoutSchema = z.object({
|
|
8426
|
-
type: z.literal("divider"),
|
|
8427
|
-
control: z.string().optional(),
|
|
8428
|
-
margin: sizeSchema.optional()
|
|
8429
|
-
});
|
|
8430
|
-
var listLayoutStatusSchema = z.union([
|
|
8431
|
-
z.literal("warning"),
|
|
8432
|
-
z.literal("neutral"),
|
|
8433
|
-
z.literal("positive")
|
|
8434
|
-
]);
|
|
8435
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
8436
|
-
$ref: z.string()
|
|
8437
|
-
});
|
|
8438
|
-
var imageLayoutSchema = z.object({
|
|
8439
|
-
type: z.literal("image"),
|
|
8440
|
-
text: z.string().optional(),
|
|
8441
|
-
url: z.string(),
|
|
8442
|
-
size: sizeSchema.optional(),
|
|
8443
|
-
accessibilityDescription: z.string().optional(),
|
|
8444
|
-
control: z.string().optional(),
|
|
8445
|
-
margin: sizeSchema.optional()
|
|
8446
|
-
});
|
|
8447
|
-
var statusListLayoutStatusSchema = z.union([
|
|
8448
|
-
z.literal("not-done"),
|
|
8449
|
-
z.literal("pending"),
|
|
8450
|
-
z.literal("done")
|
|
8451
|
-
]);
|
|
8452
|
-
var instructionsLayoutItemSchema = z.object({
|
|
8453
|
-
text: z.string(),
|
|
8454
|
-
context: contextSchema
|
|
8455
|
-
});
|
|
8456
|
-
var modalLayoutTriggerSchema = z.object({
|
|
8457
|
-
title: z.string()
|
|
8458
|
-
});
|
|
8459
|
-
var searchLayoutSchema = z.object({
|
|
8460
|
-
type: z.literal("search"),
|
|
8461
|
-
title: z.string(),
|
|
8462
|
-
method: httpMethodSchema,
|
|
8463
|
-
url: z.string(),
|
|
8464
|
-
param: z.string(),
|
|
8465
|
-
emptyMessage: z.string().optional(),
|
|
8466
|
-
control: z.string().optional(),
|
|
8467
|
-
margin: sizeSchema.optional()
|
|
8468
|
-
});
|
|
8469
|
-
var infoLayoutSchema = z.object({
|
|
8470
|
-
type: z.literal("info"),
|
|
8471
|
-
markdown: z.string(),
|
|
8472
|
-
align: alignSchema.optional(),
|
|
8473
|
-
control: z.string().optional(),
|
|
8474
|
-
margin: sizeSchema.optional()
|
|
8475
|
-
});
|
|
8476
|
-
var formLayoutSchema = z.object({
|
|
8477
|
-
type: z.literal("form"),
|
|
8478
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
8479
|
-
schemaId: z.string(),
|
|
8480
|
-
control: z.string().optional(),
|
|
8481
|
-
margin: sizeSchema.optional()
|
|
8482
|
-
});
|
|
8483
|
-
var headingLayoutSchema = z.object({
|
|
8484
|
-
type: z.literal("heading"),
|
|
8485
|
-
text: z.string(),
|
|
8486
|
-
size: sizeSchema.optional(),
|
|
8487
|
-
align: alignSchema.optional(),
|
|
8488
|
-
control: z.string().optional(),
|
|
8489
|
-
margin: sizeSchema.optional()
|
|
8490
|
-
});
|
|
8491
|
-
var markdownLayoutSchema = z.object({
|
|
8492
|
-
type: z.literal("markdown"),
|
|
8493
|
-
content: z.string(),
|
|
8494
|
-
align: alignSchema.optional(),
|
|
8495
|
-
control: z.string().optional(),
|
|
8496
|
-
margin: sizeSchema.optional()
|
|
8497
|
-
});
|
|
8498
|
-
var columnsLayoutBiasSchema = z.union([
|
|
8499
|
-
z.literal("none"),
|
|
8500
|
-
z.literal("left"),
|
|
8501
|
-
z.literal("right")
|
|
8493
|
+
var stringSchemaFormatSchema = z.union([
|
|
8494
|
+
z.literal("date"),
|
|
8495
|
+
z.literal("email"),
|
|
8496
|
+
z.literal("numeric"),
|
|
8497
|
+
z.literal("password"),
|
|
8498
|
+
z.literal("phone-number"),
|
|
8499
|
+
z.literal("base64url")
|
|
8502
8500
|
]);
|
|
8503
|
-
var helpSchema = z.object({
|
|
8504
|
-
markdown: z.string()
|
|
8505
|
-
});
|
|
8506
|
-
var searchSearchRequestSchema = z.object({
|
|
8507
|
-
url: z.string(),
|
|
8508
|
-
method: httpMethodSchema,
|
|
8509
|
-
param: z.string(),
|
|
8510
|
-
query: z.string()
|
|
8511
|
-
});
|
|
8512
8501
|
var jsonElementSchema = z.lazy(
|
|
8513
8502
|
() => z.union([
|
|
8514
8503
|
z.string(),
|
|
@@ -8518,6 +8507,7 @@ var jsonElementSchema = z.lazy(
|
|
|
8518
8507
|
z.array(jsonElementSchema)
|
|
8519
8508
|
]).nullable()
|
|
8520
8509
|
);
|
|
8510
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
8521
8511
|
var externalSchema = z.object({
|
|
8522
8512
|
url: z.string()
|
|
8523
8513
|
});
|
|
@@ -8525,42 +8515,28 @@ var stepErrorSchema = z.object({
|
|
|
8525
8515
|
error: z.string().optional(),
|
|
8526
8516
|
validation: jsonElementSchema.optional()
|
|
8527
8517
|
});
|
|
8528
|
-
var
|
|
8529
|
-
z.
|
|
8530
|
-
z.
|
|
8531
|
-
z.
|
|
8532
|
-
|
|
8533
|
-
z.
|
|
8534
|
-
z.literal("base64url")
|
|
8535
|
-
]);
|
|
8536
|
-
var summarySummariserSchema = z.object({
|
|
8537
|
-
defaultTitle: z.string().optional(),
|
|
8538
|
-
defaultDescription: z.string().optional(),
|
|
8539
|
-
defaultIcon: iconSchema.optional(),
|
|
8540
|
-
defaultImage: imageLayoutSchema.optional(),
|
|
8541
|
-
providesTitle: z.boolean().optional(),
|
|
8542
|
-
providesDescription: z.boolean().optional(),
|
|
8543
|
-
providesIcon: z.boolean().optional(),
|
|
8544
|
-
providesImage: z.boolean().optional()
|
|
8518
|
+
var errorResponseBodySchema = z.object({
|
|
8519
|
+
refreshFormUrl: z.string().optional(),
|
|
8520
|
+
analytics: z.record(z.string()).optional(),
|
|
8521
|
+
error: z.string().optional(),
|
|
8522
|
+
validation: jsonElementSchema.optional(),
|
|
8523
|
+
refreshUrl: z.string().optional()
|
|
8545
8524
|
});
|
|
8546
|
-
var
|
|
8547
|
-
|
|
8525
|
+
var searchSearchRequestSchema = z.object({
|
|
8526
|
+
url: z.string(),
|
|
8548
8527
|
method: httpMethodSchema,
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
var summaryProviderSchema = z.object({
|
|
8552
|
-
providesTitle: z.boolean().optional(),
|
|
8553
|
-
providesDescription: z.boolean().optional(),
|
|
8554
|
-
providesIcon: z.boolean().optional(),
|
|
8555
|
-
providesImage: z.boolean().optional()
|
|
8528
|
+
param: z.string(),
|
|
8529
|
+
query: z.string()
|
|
8556
8530
|
});
|
|
8557
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
8558
8531
|
var navigationStackBehaviorSchema = z.union([
|
|
8559
8532
|
z.literal("default"),
|
|
8560
8533
|
z.literal("remove-previous"),
|
|
8561
8534
|
z.literal("remove-all"),
|
|
8562
8535
|
z.literal("replace-current")
|
|
8563
8536
|
]);
|
|
8537
|
+
var linkSchema = z.object({
|
|
8538
|
+
url: z.string()
|
|
8539
|
+
});
|
|
8564
8540
|
var actionTypeSchema = z.union([
|
|
8565
8541
|
z.literal("primary"),
|
|
8566
8542
|
z.literal("secondary"),
|
|
@@ -8568,9 +8544,11 @@ var actionTypeSchema = z.union([
|
|
|
8568
8544
|
z.literal("positive"),
|
|
8569
8545
|
z.literal("negative")
|
|
8570
8546
|
]);
|
|
8571
|
-
var
|
|
8572
|
-
|
|
8573
|
-
|
|
8547
|
+
var iconNamedSchema = z.object({
|
|
8548
|
+
name: z.string()
|
|
8549
|
+
});
|
|
8550
|
+
var iconTextSchema = z.object({
|
|
8551
|
+
text: z.string()
|
|
8574
8552
|
});
|
|
8575
8553
|
var actionSchema = z.object({
|
|
8576
8554
|
title: z.string().optional(),
|
|
@@ -8587,19 +8565,26 @@ var actionSchema = z.object({
|
|
|
8587
8565
|
timeout: z.number().optional(),
|
|
8588
8566
|
skipValidation: z.boolean().optional()
|
|
8589
8567
|
});
|
|
8590
|
-
var
|
|
8568
|
+
var markdownLayoutSchema = z.object({
|
|
8569
|
+
type: z.literal("markdown"),
|
|
8570
|
+
content: z.string(),
|
|
8571
|
+
align: alignSchema.optional(),
|
|
8572
|
+
control: z.string().optional(),
|
|
8573
|
+
margin: sizeSchema.optional()
|
|
8574
|
+
});
|
|
8575
|
+
var searchLayoutSchema = z.object({
|
|
8576
|
+
type: z.literal("search"),
|
|
8591
8577
|
title: z.string(),
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8578
|
+
method: httpMethodSchema,
|
|
8579
|
+
url: z.string(),
|
|
8580
|
+
param: z.string(),
|
|
8581
|
+
emptyMessage: z.string().optional(),
|
|
8582
|
+
control: z.string().optional(),
|
|
8583
|
+
margin: sizeSchema.optional()
|
|
8595
8584
|
});
|
|
8596
|
-
var
|
|
8597
|
-
action: actionSchema,
|
|
8585
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
8598
8586
|
title: z.string(),
|
|
8599
|
-
|
|
8600
|
-
disabled: z.boolean().optional(),
|
|
8601
|
-
icon: iconSchema.optional(),
|
|
8602
|
-
image: imageLayoutSchema.optional()
|
|
8587
|
+
action: actionSchema
|
|
8603
8588
|
});
|
|
8604
8589
|
var instructionsLayoutSchema = z.object({
|
|
8605
8590
|
type: z.literal("instructions"),
|
|
@@ -8608,26 +8593,38 @@ var instructionsLayoutSchema = z.object({
|
|
|
8608
8593
|
control: z.string().optional(),
|
|
8609
8594
|
margin: sizeSchema.optional()
|
|
8610
8595
|
});
|
|
8596
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
8611
8597
|
var behaviorSchema = z.object({
|
|
8612
8598
|
action: actionSchema.optional(),
|
|
8613
8599
|
link: linkSchema.optional()
|
|
8614
8600
|
});
|
|
8615
|
-
var
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8601
|
+
var reviewLayoutFieldSchema = z.object({
|
|
8602
|
+
label: z.string(),
|
|
8603
|
+
value: z.string(),
|
|
8604
|
+
rawValue: z.string().optional(),
|
|
8605
|
+
help: helpSchema.optional()
|
|
8606
|
+
});
|
|
8607
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
8608
|
+
title: z.string(),
|
|
8609
|
+
accessibilityDescription: z.string().optional(),
|
|
8610
|
+
behavior: behaviorSchema
|
|
8611
|
+
});
|
|
8612
|
+
var summarySummariserSchema = z.object({
|
|
8613
|
+
defaultTitle: z.string().optional(),
|
|
8614
|
+
defaultDescription: z.string().optional(),
|
|
8615
|
+
defaultIcon: iconSchema.optional(),
|
|
8616
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
8617
|
+
providesTitle: z.boolean().optional(),
|
|
8618
|
+
providesDescription: z.boolean().optional(),
|
|
8619
|
+
providesIcon: z.boolean().optional(),
|
|
8620
|
+
providesImage: z.boolean().optional()
|
|
8625
8621
|
});
|
|
8626
|
-
var
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
|
|
8622
|
+
var linkHandlerSchema = z.object({
|
|
8623
|
+
regexPattern: z.string(),
|
|
8624
|
+
action: actionSchema
|
|
8625
|
+
});
|
|
8626
|
+
var actionResponseBodySchema = z.object({
|
|
8627
|
+
action: actionSchema
|
|
8631
8628
|
});
|
|
8632
8629
|
var searchResultSearchSchema = z.object({
|
|
8633
8630
|
type: z.literal("search"),
|
|
@@ -8645,20 +8642,6 @@ var searchResultActionSchema = z.object({
|
|
|
8645
8642
|
image: imageLayoutSchema.optional(),
|
|
8646
8643
|
value: actionSchema
|
|
8647
8644
|
});
|
|
8648
|
-
var actionResponseBodySchema = z.object({
|
|
8649
|
-
action: actionSchema
|
|
8650
|
-
});
|
|
8651
|
-
var errorResponseBodySchema = z.object({
|
|
8652
|
-
refreshFormUrl: z.string().optional(),
|
|
8653
|
-
analytics: z.record(z.string()).optional(),
|
|
8654
|
-
error: z.string().optional(),
|
|
8655
|
-
validation: jsonElementSchema.optional(),
|
|
8656
|
-
refreshUrl: z.string().optional()
|
|
8657
|
-
});
|
|
8658
|
-
var linkHandlerSchema = z.object({
|
|
8659
|
-
regexPattern: z.string(),
|
|
8660
|
-
action: actionSchema
|
|
8661
|
-
});
|
|
8662
8645
|
var pollingOnErrorSchema = z.object({
|
|
8663
8646
|
action: actionSchema
|
|
8664
8647
|
});
|
|
@@ -8666,33 +8649,33 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
8666
8649
|
title: z.string().optional(),
|
|
8667
8650
|
action: actionSchema
|
|
8668
8651
|
});
|
|
8669
|
-
var
|
|
8670
|
-
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
var alertLayoutCallToActionSchema = z.object({
|
|
8674
|
-
title: z.string(),
|
|
8675
|
-
accessibilityDescription: z.string().optional(),
|
|
8676
|
-
behavior: behaviorSchema
|
|
8677
|
-
});
|
|
8678
|
-
var listLayoutSchema = z.object({
|
|
8679
|
-
type: z.literal("list"),
|
|
8680
|
-
items: z.array(listLayoutItemSchema),
|
|
8681
|
-
title: z.string().optional(),
|
|
8682
|
-
control: z.string().optional(),
|
|
8683
|
-
margin: sizeSchema.optional()
|
|
8684
|
-
});
|
|
8685
|
-
var decisionLayoutSchema = z.object({
|
|
8686
|
-
type: z.literal("decision"),
|
|
8652
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
8653
|
+
var buttonLayoutSchema = z.object({
|
|
8654
|
+
type: z.literal("button"),
|
|
8655
|
+
size: sizeSchema.optional(),
|
|
8687
8656
|
title: z.string().optional(),
|
|
8688
|
-
|
|
8657
|
+
action: actionSchema,
|
|
8658
|
+
context: contextSchema.optional(),
|
|
8659
|
+
disabled: z.boolean().optional(),
|
|
8660
|
+
pinOrder: z.number().optional(),
|
|
8689
8661
|
control: z.string().optional(),
|
|
8690
8662
|
margin: sizeSchema.optional()
|
|
8691
8663
|
});
|
|
8692
|
-
var
|
|
8664
|
+
var decisionLayoutOptionSchema = z.object({
|
|
8665
|
+
action: actionSchema,
|
|
8693
8666
|
title: z.string(),
|
|
8694
|
-
|
|
8695
|
-
|
|
8667
|
+
description: z.string().optional(),
|
|
8668
|
+
disabled: z.boolean().optional(),
|
|
8669
|
+
icon: iconSchema.optional(),
|
|
8670
|
+
image: imageLayoutSchema.optional()
|
|
8671
|
+
});
|
|
8672
|
+
var alertLayoutSchema = z.object({
|
|
8673
|
+
type: z.literal("alert"),
|
|
8674
|
+
markdown: z.string(),
|
|
8675
|
+
context: contextSchema.optional(),
|
|
8676
|
+
control: z.string().optional(),
|
|
8677
|
+
margin: sizeSchema.optional(),
|
|
8678
|
+
callToAction: alertLayoutCallToActionSchema.optional()
|
|
8696
8679
|
});
|
|
8697
8680
|
var reviewLayoutSchema = z.object({
|
|
8698
8681
|
type: z.literal("review"),
|
|
@@ -8704,27 +8687,16 @@ var reviewLayoutSchema = z.object({
|
|
|
8704
8687
|
control: z.string().optional(),
|
|
8705
8688
|
margin: sizeSchema.optional()
|
|
8706
8689
|
});
|
|
8707
|
-
var
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
timeout: z.number().optional(),
|
|
8713
|
-
maxAttempts: z.number(),
|
|
8714
|
-
onError: pollingOnErrorSchema
|
|
8715
|
-
});
|
|
8716
|
-
var navigationSchema = z.object({
|
|
8717
|
-
backButton: navigationBackBehaviorSchema.optional(),
|
|
8718
|
-
back: navigationBackBehaviorSchema.optional(),
|
|
8719
|
-
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
8690
|
+
var listLayoutItemSchema = z.object({
|
|
8691
|
+
title: z.string(),
|
|
8692
|
+
description: z.string().optional(),
|
|
8693
|
+
icon: iconSchema,
|
|
8694
|
+
status: listLayoutStatusSchema.optional()
|
|
8720
8695
|
});
|
|
8721
|
-
var
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
control: z.string().optional(),
|
|
8726
|
-
margin: sizeSchema.optional(),
|
|
8727
|
-
callToAction: alertLayoutCallToActionSchema.optional()
|
|
8696
|
+
var itemCallToActionSchema = z.object({
|
|
8697
|
+
title: z.string(),
|
|
8698
|
+
accessibilityDescription: z.string().optional(),
|
|
8699
|
+
behavior: behaviorSchema
|
|
8728
8700
|
});
|
|
8729
8701
|
var statusListLayoutItemSchema = z.object({
|
|
8730
8702
|
title: z.string(),
|
|
@@ -8733,9 +8705,6 @@ var statusListLayoutItemSchema = z.object({
|
|
|
8733
8705
|
status: statusListLayoutStatusSchema.optional(),
|
|
8734
8706
|
callToAction: itemCallToActionSchema.optional()
|
|
8735
8707
|
});
|
|
8736
|
-
var searchResponseBodySchema = z.object({
|
|
8737
|
-
results: z.array(searchResultSchema)
|
|
8738
|
-
});
|
|
8739
8708
|
var blobSchemaSchema = z.object({
|
|
8740
8709
|
type: z.literal("blob"),
|
|
8741
8710
|
promoted: z.boolean().optional(),
|
|
@@ -8774,6 +8743,34 @@ var constSchemaSchema = z.object({
|
|
|
8774
8743
|
analyticsId: z.string().optional(),
|
|
8775
8744
|
disabled: z.boolean().optional()
|
|
8776
8745
|
});
|
|
8746
|
+
var pollingSchema = z.object({
|
|
8747
|
+
url: z.string(),
|
|
8748
|
+
interval: z.number().optional(),
|
|
8749
|
+
delay: z.number().optional(),
|
|
8750
|
+
timeout: z.number().optional(),
|
|
8751
|
+
maxAttempts: z.number(),
|
|
8752
|
+
onError: pollingOnErrorSchema
|
|
8753
|
+
});
|
|
8754
|
+
var navigationSchema = z.object({
|
|
8755
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
8756
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
8757
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
8758
|
+
});
|
|
8759
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
8760
|
+
var decisionLayoutSchema = z.object({
|
|
8761
|
+
type: z.literal("decision"),
|
|
8762
|
+
title: z.string().optional(),
|
|
8763
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
8764
|
+
control: z.string().optional(),
|
|
8765
|
+
margin: sizeSchema.optional()
|
|
8766
|
+
});
|
|
8767
|
+
var listLayoutSchema = z.object({
|
|
8768
|
+
type: z.literal("list"),
|
|
8769
|
+
items: z.array(listLayoutItemSchema),
|
|
8770
|
+
title: z.string().optional(),
|
|
8771
|
+
control: z.string().optional(),
|
|
8772
|
+
margin: sizeSchema.optional()
|
|
8773
|
+
});
|
|
8777
8774
|
var statusListLayoutSchema = z.object({
|
|
8778
8775
|
type: z.literal("status-list"),
|
|
8779
8776
|
items: z.array(statusListLayoutItemSchema),
|
|
@@ -8781,6 +8778,19 @@ var statusListLayoutSchema = z.object({
|
|
|
8781
8778
|
control: z.string().optional(),
|
|
8782
8779
|
margin: sizeSchema.optional()
|
|
8783
8780
|
});
|
|
8781
|
+
var searchResponseBodySchema = z.object({
|
|
8782
|
+
results: z.array(searchResultSchema)
|
|
8783
|
+
});
|
|
8784
|
+
var columnsLayoutSchema = z.lazy(
|
|
8785
|
+
() => z.object({
|
|
8786
|
+
type: z.literal("columns"),
|
|
8787
|
+
left: z.array(layoutSchema),
|
|
8788
|
+
right: z.array(layoutSchema),
|
|
8789
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
8790
|
+
control: z.string().optional(),
|
|
8791
|
+
margin: sizeSchema.optional()
|
|
8792
|
+
})
|
|
8793
|
+
);
|
|
8784
8794
|
var layoutSchema = z.lazy(
|
|
8785
8795
|
() => z.union([
|
|
8786
8796
|
alertLayoutSchema,
|
|
@@ -8804,26 +8814,6 @@ var layoutSchema = z.lazy(
|
|
|
8804
8814
|
statusListLayoutSchema
|
|
8805
8815
|
])
|
|
8806
8816
|
);
|
|
8807
|
-
var boxLayoutSchema = z.lazy(
|
|
8808
|
-
() => z.object({
|
|
8809
|
-
type: z.literal("box"),
|
|
8810
|
-
components: z.array(layoutSchema),
|
|
8811
|
-
width: sizeSchema.optional(),
|
|
8812
|
-
border: z.boolean().optional(),
|
|
8813
|
-
control: z.string().optional(),
|
|
8814
|
-
margin: sizeSchema.optional()
|
|
8815
|
-
})
|
|
8816
|
-
);
|
|
8817
|
-
var columnsLayoutSchema = z.lazy(
|
|
8818
|
-
() => z.object({
|
|
8819
|
-
type: z.literal("columns"),
|
|
8820
|
-
left: z.array(layoutSchema),
|
|
8821
|
-
right: z.array(layoutSchema),
|
|
8822
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
8823
|
-
control: z.string().optional(),
|
|
8824
|
-
margin: sizeSchema.optional()
|
|
8825
|
-
})
|
|
8826
|
-
);
|
|
8827
8817
|
var modalLayoutSchema = z.lazy(
|
|
8828
8818
|
() => z.object({
|
|
8829
8819
|
type: z.literal("modal"),
|
|
@@ -8839,25 +8829,14 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
8839
8829
|
components: z.array(layoutSchema)
|
|
8840
8830
|
})
|
|
8841
8831
|
);
|
|
8842
|
-
var
|
|
8832
|
+
var boxLayoutSchema = z.lazy(
|
|
8843
8833
|
() => z.object({
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
schemas: z.array(schemaSchema),
|
|
8851
|
-
layout: z.array(layoutSchema),
|
|
8852
|
-
description: z.string().optional(),
|
|
8853
|
-
model: jsonElementSchema.optional(),
|
|
8854
|
-
external: externalSchema.optional(),
|
|
8855
|
-
polling: pollingSchema.optional(),
|
|
8856
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
8857
|
-
analytics: z.record(z.string()).optional(),
|
|
8858
|
-
errors: stepErrorSchema.optional(),
|
|
8859
|
-
navigation: navigationSchema.optional(),
|
|
8860
|
-
refreshUrl: z.string().optional()
|
|
8834
|
+
type: z.literal("box"),
|
|
8835
|
+
components: z.array(layoutSchema),
|
|
8836
|
+
width: sizeSchema.optional(),
|
|
8837
|
+
border: z.boolean().optional(),
|
|
8838
|
+
control: z.string().optional(),
|
|
8839
|
+
margin: sizeSchema.optional()
|
|
8861
8840
|
})
|
|
8862
8841
|
);
|
|
8863
8842
|
var schemaSchema = z.lazy(
|
|
@@ -9083,17 +9062,21 @@ var stringSchemaSchema = z.lazy(
|
|
|
9083
9062
|
help: helpSchema.optional()
|
|
9084
9063
|
})
|
|
9085
9064
|
);
|
|
9086
|
-
var
|
|
9065
|
+
var persistAsyncSchema = z.lazy(
|
|
9066
|
+
() => z.object({
|
|
9067
|
+
param: z.string(),
|
|
9068
|
+
idProperty: z.string(),
|
|
9069
|
+
schema: schemaSchema,
|
|
9070
|
+
url: z.string(),
|
|
9071
|
+
method: httpMethodSchema
|
|
9072
|
+
})
|
|
9073
|
+
);
|
|
9074
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
9087
9075
|
() => z.object({
|
|
9088
9076
|
type: z.literal("array"),
|
|
9089
9077
|
promoted: z.boolean().optional(),
|
|
9090
9078
|
$id: z.string().optional(),
|
|
9091
|
-
items: schemaSchema,
|
|
9092
|
-
addItemTitle: z.string(),
|
|
9093
|
-
editItemTitle: z.string(),
|
|
9094
|
-
minItems: z.number().optional(),
|
|
9095
|
-
maxItems: z.number().optional(),
|
|
9096
|
-
placeholder: z.string().optional(),
|
|
9079
|
+
items: z.array(schemaSchema),
|
|
9097
9080
|
title: z.string().optional(),
|
|
9098
9081
|
description: z.string().optional(),
|
|
9099
9082
|
control: z.string().optional(),
|
|
@@ -9101,30 +9084,24 @@ var arraySchemaListSchema = z.lazy(
|
|
|
9101
9084
|
icon: iconSchema.optional(),
|
|
9102
9085
|
image: imageSchema.optional(),
|
|
9103
9086
|
keywords: z.array(z.string()).optional(),
|
|
9104
|
-
summary:
|
|
9087
|
+
summary: summaryProviderSchema.optional(),
|
|
9105
9088
|
analyticsId: z.string().optional(),
|
|
9106
9089
|
persistAsync: persistAsyncSchema.optional(),
|
|
9107
9090
|
validationAsync: validateAsyncSchema.optional(),
|
|
9108
|
-
alert: alertLayoutSchema.optional()
|
|
9109
|
-
validationMessages: z.record(z.string()).optional(),
|
|
9110
|
-
disabled: z.boolean().optional()
|
|
9111
|
-
})
|
|
9112
|
-
);
|
|
9113
|
-
var persistAsyncSchema = z.lazy(
|
|
9114
|
-
() => z.object({
|
|
9115
|
-
param: z.string(),
|
|
9116
|
-
idProperty: z.string(),
|
|
9117
|
-
schema: schemaSchema,
|
|
9118
|
-
url: z.string(),
|
|
9119
|
-
method: httpMethodSchema
|
|
9091
|
+
alert: alertLayoutSchema.optional()
|
|
9120
9092
|
})
|
|
9121
9093
|
);
|
|
9122
|
-
var
|
|
9094
|
+
var arraySchemaListSchema = z.lazy(
|
|
9123
9095
|
() => z.object({
|
|
9124
9096
|
type: z.literal("array"),
|
|
9125
9097
|
promoted: z.boolean().optional(),
|
|
9126
9098
|
$id: z.string().optional(),
|
|
9127
|
-
items:
|
|
9099
|
+
items: schemaSchema,
|
|
9100
|
+
addItemTitle: z.string(),
|
|
9101
|
+
editItemTitle: z.string(),
|
|
9102
|
+
minItems: z.number().optional(),
|
|
9103
|
+
maxItems: z.number().optional(),
|
|
9104
|
+
placeholder: z.string().optional(),
|
|
9128
9105
|
title: z.string().optional(),
|
|
9129
9106
|
description: z.string().optional(),
|
|
9130
9107
|
control: z.string().optional(),
|
|
@@ -9132,11 +9109,34 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
9132
9109
|
icon: iconSchema.optional(),
|
|
9133
9110
|
image: imageSchema.optional(),
|
|
9134
9111
|
keywords: z.array(z.string()).optional(),
|
|
9135
|
-
summary:
|
|
9112
|
+
summary: summarySummariserSchema.optional(),
|
|
9136
9113
|
analyticsId: z.string().optional(),
|
|
9137
9114
|
persistAsync: persistAsyncSchema.optional(),
|
|
9138
9115
|
validationAsync: validateAsyncSchema.optional(),
|
|
9139
|
-
alert: alertLayoutSchema.optional()
|
|
9116
|
+
alert: alertLayoutSchema.optional(),
|
|
9117
|
+
validationMessages: z.record(z.string()).optional(),
|
|
9118
|
+
disabled: z.boolean().optional()
|
|
9119
|
+
})
|
|
9120
|
+
);
|
|
9121
|
+
var stepSchema = z.lazy(
|
|
9122
|
+
() => z.object({
|
|
9123
|
+
key: z.string().optional(),
|
|
9124
|
+
type: z.string().optional(),
|
|
9125
|
+
actions: z.array(actionSchema).optional(),
|
|
9126
|
+
refreshFormUrl: z.string().optional(),
|
|
9127
|
+
id: z.string(),
|
|
9128
|
+
title: z.string(),
|
|
9129
|
+
schemas: z.array(schemaSchema),
|
|
9130
|
+
layout: z.array(layoutSchema),
|
|
9131
|
+
description: z.string().optional(),
|
|
9132
|
+
model: jsonElementSchema.optional(),
|
|
9133
|
+
external: externalSchema.optional(),
|
|
9134
|
+
polling: pollingSchema.optional(),
|
|
9135
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
9136
|
+
analytics: z.record(z.string()).optional(),
|
|
9137
|
+
errors: stepErrorSchema.optional(),
|
|
9138
|
+
navigation: navigationSchema.optional(),
|
|
9139
|
+
refreshUrl: z.string().optional()
|
|
9140
9140
|
})
|
|
9141
9141
|
);
|
|
9142
9142
|
var validateStep = (step) => validate(step, stepSchema);
|