@wise/dynamic-flow-types 3.0.0-experimental-9cbdd3f → 3.0.1
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 +459 -443
- package/build/main.min.js +1 -1
- package/build/main.mjs +459 -443
- package/build/renderers/BoxRendererProps.d.ts +1 -1
- package/build/renderers/ColumnsRendererProps.d.ts +2 -2
- package/build/renderers/CoreContainerRendererProps.d.ts +1 -1
- package/build/renderers/DecisionRendererProps.d.ts +1 -1
- package/build/renderers/FormRendererProps.d.ts +1 -1
- package/build/renderers/InstructionsRendererProps.d.ts +1 -1
- package/build/renderers/ListRendererProps.d.ts +1 -1
- package/build/renderers/ModalRendererProps.d.ts +1 -1
- package/build/renderers/MultiSelectInputRendererProps.d.ts +2 -2
- package/build/renderers/MultiUploadInputRendererProps.d.ts +2 -2
- package/build/renderers/RepeatableRendererProps.d.ts +1 -1
- package/build/renderers/ReviewRendererProps.d.ts +1 -1
- package/build/renderers/SearchRendererProps.d.ts +1 -1
- package/build/renderers/SectionRendererProps.d.ts +1 -1
- package/build/renderers/SelectInputRendererProps.d.ts +2 -2
- package/build/renderers/StatusListRendererProps.d.ts +1 -1
- package/build/renderers/StepRendererProps.d.ts +1 -1
- package/build/renderers/UploadInputRendererProps.d.ts +1 -1
- package/build/zod/schemas.d.ts +4957 -4957
- package/package.json +4 -4
package/build/main.mjs
CHANGED
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
|
|
21
|
-
// ../../node_modules/.pnpm/zod@3.24.
|
|
21
|
+
// ../../node_modules/.pnpm/zod@3.24.2/node_modules/zod/lib/index.mjs
|
|
22
22
|
var util;
|
|
23
23
|
(function(util2) {
|
|
24
24
|
util2.assertEqual = (val) => val;
|
|
@@ -3728,16 +3728,32 @@ ZodReadonly.create = (type, params) => {
|
|
|
3728
3728
|
typeName: ZodFirstPartyTypeKind.ZodReadonly
|
|
3729
3729
|
}, processCreateParams(params)));
|
|
3730
3730
|
};
|
|
3731
|
-
function
|
|
3731
|
+
function cleanParams(params, data) {
|
|
3732
|
+
const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
|
|
3733
|
+
const p2 = typeof p === "string" ? { message: p } : p;
|
|
3734
|
+
return p2;
|
|
3735
|
+
}
|
|
3736
|
+
function custom(check, _params = {}, fatal) {
|
|
3732
3737
|
if (check)
|
|
3733
3738
|
return ZodAny.create().superRefine((data, ctx) => {
|
|
3734
3739
|
var _a, _b;
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
+
const r = check(data);
|
|
3741
|
+
if (r instanceof Promise) {
|
|
3742
|
+
return r.then((r2) => {
|
|
3743
|
+
var _a2, _b2;
|
|
3744
|
+
if (!r2) {
|
|
3745
|
+
const params = cleanParams(_params, data);
|
|
3746
|
+
const _fatal = (_b2 = (_a2 = params.fatal) !== null && _a2 !== void 0 ? _a2 : fatal) !== null && _b2 !== void 0 ? _b2 : true;
|
|
3747
|
+
ctx.addIssue(__spreadProps(__spreadValues({ code: "custom" }, params), { fatal: _fatal }));
|
|
3748
|
+
}
|
|
3749
|
+
});
|
|
3750
|
+
}
|
|
3751
|
+
if (!r) {
|
|
3752
|
+
const params = cleanParams(_params, data);
|
|
3753
|
+
const _fatal = (_b = (_a = params.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
|
|
3754
|
+
ctx.addIssue(__spreadProps(__spreadValues({ code: "custom" }, params), { fatal: _fatal }));
|
|
3740
3755
|
}
|
|
3756
|
+
return;
|
|
3741
3757
|
});
|
|
3742
3758
|
return ZodAny.create();
|
|
3743
3759
|
}
|
|
@@ -3951,37 +3967,11 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3951
3967
|
});
|
|
3952
3968
|
|
|
3953
3969
|
// src/zod/schemas.ts
|
|
3954
|
-
var
|
|
3955
|
-
|
|
3956
|
-
url: z.string()
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
z.literal("default"),
|
|
3960
|
-
z.literal("remove-previous"),
|
|
3961
|
-
z.literal("remove-all"),
|
|
3962
|
-
z.literal("replace-current")
|
|
3963
|
-
]);
|
|
3964
|
-
var jsonElementSchema = z.lazy(
|
|
3965
|
-
() => z.union([
|
|
3966
|
-
z.string(),
|
|
3967
|
-
z.number(),
|
|
3968
|
-
z.boolean(),
|
|
3969
|
-
z.record(jsonElementSchema),
|
|
3970
|
-
z.array(jsonElementSchema)
|
|
3971
|
-
]).nullable()
|
|
3972
|
-
);
|
|
3973
|
-
var helpSchema = z.object({
|
|
3974
|
-
markdown: z.string()
|
|
3975
|
-
});
|
|
3976
|
-
var actionTypeSchema = z.union([
|
|
3977
|
-
z.literal("primary"),
|
|
3978
|
-
z.literal("secondary"),
|
|
3979
|
-
z.literal("link"),
|
|
3980
|
-
z.literal("positive"),
|
|
3981
|
-
z.literal("negative")
|
|
3982
|
-
]);
|
|
3983
|
-
var linkSchema = z.object({
|
|
3984
|
-
url: z.string()
|
|
3970
|
+
var imageSchema = z.object({
|
|
3971
|
+
text: z.string().optional(),
|
|
3972
|
+
url: z.string().optional(),
|
|
3973
|
+
uri: z.string().optional(),
|
|
3974
|
+
accessibilityDescription: z.string().optional()
|
|
3985
3975
|
});
|
|
3986
3976
|
var httpMethodSchema = z.union([
|
|
3987
3977
|
z.literal("GET"),
|
|
@@ -3990,54 +3980,8 @@ var httpMethodSchema = z.union([
|
|
|
3990
3980
|
z.literal("PATCH"),
|
|
3991
3981
|
z.literal("DELETE")
|
|
3992
3982
|
]);
|
|
3993
|
-
var
|
|
3994
|
-
|
|
3995
|
-
param: z.string(),
|
|
3996
|
-
method: httpMethodSchema,
|
|
3997
|
-
url: z.string()
|
|
3998
|
-
});
|
|
3999
|
-
var summaryProviderSchema = z.object({
|
|
4000
|
-
providesTitle: z.boolean().optional(),
|
|
4001
|
-
providesDescription: z.boolean().optional(),
|
|
4002
|
-
providesIcon: z.boolean().optional(),
|
|
4003
|
-
providesImage: z.boolean().optional()
|
|
4004
|
-
});
|
|
4005
|
-
var imageSchema = z.object({
|
|
4006
|
-
text: z.string().optional(),
|
|
4007
|
-
url: z.string().optional(),
|
|
4008
|
-
uri: z.string().optional(),
|
|
4009
|
-
accessibilityDescription: z.string().optional()
|
|
4010
|
-
});
|
|
4011
|
-
var externalSchema = z.object({
|
|
4012
|
-
url: z.string()
|
|
4013
|
-
});
|
|
4014
|
-
var columnsLayoutBiasSchema = z.union([
|
|
4015
|
-
z.literal("none"),
|
|
4016
|
-
z.literal("left"),
|
|
4017
|
-
z.literal("right")
|
|
4018
|
-
]);
|
|
4019
|
-
var sizeSchema = z.union([
|
|
4020
|
-
z.literal("xs"),
|
|
4021
|
-
z.literal("sm"),
|
|
4022
|
-
z.literal("md"),
|
|
4023
|
-
z.literal("lg"),
|
|
4024
|
-
z.literal("xl")
|
|
4025
|
-
]);
|
|
4026
|
-
var dividerLayoutSchema = z.object({
|
|
4027
|
-
type: z.literal("divider"),
|
|
4028
|
-
control: z.string().optional(),
|
|
4029
|
-
margin: sizeSchema.optional()
|
|
4030
|
-
});
|
|
4031
|
-
var statusListLayoutStatusSchema = z.union([
|
|
4032
|
-
z.literal("not-done"),
|
|
4033
|
-
z.literal("pending"),
|
|
4034
|
-
z.literal("done")
|
|
4035
|
-
]);
|
|
4036
|
-
var loadingIndicatorLayoutSchema = z.object({
|
|
4037
|
-
type: z.literal("loading-indicator"),
|
|
4038
|
-
size: sizeSchema.optional(),
|
|
4039
|
-
control: z.string().optional(),
|
|
4040
|
-
margin: sizeSchema.optional()
|
|
3983
|
+
var iconNamedSchema = z.object({
|
|
3984
|
+
name: z.string()
|
|
4041
3985
|
});
|
|
4042
3986
|
var contextSchema = z.union([
|
|
4043
3987
|
z.literal("positive"),
|
|
@@ -4049,92 +3993,24 @@ var contextSchema = z.union([
|
|
|
4049
3993
|
z.literal("info"),
|
|
4050
3994
|
z.literal("primary")
|
|
4051
3995
|
]);
|
|
4052
|
-
var
|
|
4053
|
-
text: z.string()
|
|
4054
|
-
context: contextSchema,
|
|
4055
|
-
tag: z.string().optional()
|
|
4056
|
-
});
|
|
4057
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
4058
|
-
$ref: z.string()
|
|
4059
|
-
});
|
|
4060
|
-
var modalLayoutTriggerSchema = z.object({
|
|
4061
|
-
title: z.string()
|
|
4062
|
-
});
|
|
4063
|
-
var instructionsLayoutSchema = z.object({
|
|
4064
|
-
type: z.literal("instructions"),
|
|
4065
|
-
title: z.string().optional(),
|
|
4066
|
-
items: z.array(instructionsLayoutItemSchema),
|
|
4067
|
-
control: z.string().optional(),
|
|
4068
|
-
margin: sizeSchema.optional()
|
|
4069
|
-
});
|
|
4070
|
-
var reviewLayoutFieldSchema = z.object({
|
|
4071
|
-
label: z.string(),
|
|
4072
|
-
value: z.string(),
|
|
4073
|
-
rawValue: z.string().optional(),
|
|
4074
|
-
help: helpSchema.optional(),
|
|
4075
|
-
tag: z.string().optional()
|
|
4076
|
-
});
|
|
4077
|
-
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
4078
|
-
var searchLayoutSchema = z.object({
|
|
4079
|
-
type: z.literal("search"),
|
|
4080
|
-
title: z.string(),
|
|
4081
|
-
method: httpMethodSchema,
|
|
4082
|
-
url: z.string(),
|
|
4083
|
-
param: z.string(),
|
|
4084
|
-
emptyMessage: z.string().optional(),
|
|
4085
|
-
control: z.string().optional(),
|
|
4086
|
-
margin: sizeSchema.optional()
|
|
4087
|
-
});
|
|
4088
|
-
var headingLayoutSchema = z.object({
|
|
4089
|
-
type: z.literal("heading"),
|
|
4090
|
-
text: z.string(),
|
|
4091
|
-
size: sizeSchema.optional(),
|
|
4092
|
-
align: alignSchema.optional(),
|
|
4093
|
-
control: z.string().optional(),
|
|
4094
|
-
margin: sizeSchema.optional()
|
|
4095
|
-
});
|
|
4096
|
-
var imageLayoutSchema = z.object({
|
|
4097
|
-
type: z.literal("image"),
|
|
4098
|
-
text: z.string().optional(),
|
|
4099
|
-
url: z.string().optional(),
|
|
4100
|
-
accessibilityDescription: z.string().optional(),
|
|
4101
|
-
content: imageSchema.optional(),
|
|
4102
|
-
size: sizeSchema.optional(),
|
|
4103
|
-
control: z.string().optional(),
|
|
4104
|
-
margin: sizeSchema.optional()
|
|
4105
|
-
});
|
|
4106
|
-
var markdownLayoutSchema = z.object({
|
|
4107
|
-
type: z.literal("markdown"),
|
|
4108
|
-
content: z.string(),
|
|
4109
|
-
align: alignSchema.optional(),
|
|
4110
|
-
control: z.string().optional(),
|
|
4111
|
-
margin: sizeSchema.optional()
|
|
4112
|
-
});
|
|
4113
|
-
var paragraphLayoutSchema = z.object({
|
|
4114
|
-
type: z.literal("paragraph"),
|
|
4115
|
-
text: z.string(),
|
|
4116
|
-
align: alignSchema.optional(),
|
|
4117
|
-
control: z.string().optional(),
|
|
4118
|
-
margin: sizeSchema.optional()
|
|
3996
|
+
var iconTextSchema = z.object({
|
|
3997
|
+
text: z.string()
|
|
4119
3998
|
});
|
|
4120
|
-
var
|
|
4121
|
-
z.literal("
|
|
4122
|
-
z.literal("
|
|
4123
|
-
z.literal("
|
|
3999
|
+
var sizeSchema = z.union([
|
|
4000
|
+
z.literal("xs"),
|
|
4001
|
+
z.literal("sm"),
|
|
4002
|
+
z.literal("md"),
|
|
4003
|
+
z.literal("lg"),
|
|
4004
|
+
z.literal("xl")
|
|
4124
4005
|
]);
|
|
4125
|
-
var
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
var
|
|
4133
|
-
url: z.string(),
|
|
4134
|
-
method: httpMethodSchema,
|
|
4135
|
-
param: z.string(),
|
|
4136
|
-
query: z.string()
|
|
4137
|
-
});
|
|
4006
|
+
var autocapitalizationTypeSchema = z.union([
|
|
4007
|
+
z.literal("none"),
|
|
4008
|
+
z.literal("characters"),
|
|
4009
|
+
z.literal("sentences"),
|
|
4010
|
+
z.literal("words")
|
|
4011
|
+
]);
|
|
4012
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
4013
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4138
4014
|
var autocompleteTokenSchema = z.union([
|
|
4139
4015
|
z.literal("on"),
|
|
4140
4016
|
z.literal("name"),
|
|
@@ -4200,81 +4076,214 @@ var autocompleteTokenSchema = z.union([
|
|
|
4200
4076
|
z.literal("fax"),
|
|
4201
4077
|
z.literal("pager")
|
|
4202
4078
|
]);
|
|
4203
|
-
var
|
|
4204
|
-
z.literal("
|
|
4205
|
-
|
|
4206
|
-
z.literal("sentences"),
|
|
4207
|
-
z.literal("words")
|
|
4208
|
-
]);
|
|
4209
|
-
var iconNamedSchema = z.object({
|
|
4210
|
-
name: z.string()
|
|
4211
|
-
});
|
|
4212
|
-
var iconTextSchema = z.object({
|
|
4213
|
-
text: z.string()
|
|
4214
|
-
});
|
|
4215
|
-
var stringSchemaFormatSchema = z.union([
|
|
4216
|
-
z.literal("date"),
|
|
4217
|
-
z.literal("email"),
|
|
4218
|
-
z.literal("numeric"),
|
|
4219
|
-
z.literal("password"),
|
|
4220
|
-
z.literal("phone-number"),
|
|
4221
|
-
z.literal("base64url")
|
|
4222
|
-
]);
|
|
4223
|
-
var stepErrorSchema = z.object({
|
|
4224
|
-
error: z.string().optional(),
|
|
4225
|
-
validation: jsonElementSchema.optional()
|
|
4226
|
-
});
|
|
4227
|
-
var actionSchema = z.object({
|
|
4228
|
-
title: z.string().optional(),
|
|
4229
|
-
type: actionTypeSchema.optional(),
|
|
4230
|
-
disabled: z.boolean().optional(),
|
|
4231
|
-
$id: z.string().optional(),
|
|
4232
|
-
$ref: z.string().optional(),
|
|
4233
|
-
id: z.string().optional(),
|
|
4234
|
-
url: z.string().optional(),
|
|
4235
|
-
method: httpMethodSchema.optional(),
|
|
4236
|
-
exit: z.boolean().optional(),
|
|
4237
|
-
result: jsonElementSchema.optional(),
|
|
4238
|
-
data: jsonElementSchema.optional(),
|
|
4239
|
-
timeout: z.number().optional(),
|
|
4240
|
-
skipValidation: z.boolean().optional()
|
|
4241
|
-
});
|
|
4242
|
-
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4243
|
-
var formLayoutSchema = z.object({
|
|
4244
|
-
type: z.literal("form"),
|
|
4245
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
4246
|
-
schemaId: z.string(),
|
|
4079
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
4080
|
+
type: z.literal("loading-indicator"),
|
|
4081
|
+
size: sizeSchema.optional(),
|
|
4247
4082
|
control: z.string().optional(),
|
|
4248
4083
|
margin: sizeSchema.optional()
|
|
4249
4084
|
});
|
|
4250
|
-
var
|
|
4251
|
-
type: z.literal("
|
|
4252
|
-
|
|
4085
|
+
var paragraphLayoutSchema = z.object({
|
|
4086
|
+
type: z.literal("paragraph"),
|
|
4087
|
+
text: z.string(),
|
|
4253
4088
|
align: alignSchema.optional(),
|
|
4254
4089
|
control: z.string().optional(),
|
|
4255
4090
|
margin: sizeSchema.optional()
|
|
4256
4091
|
});
|
|
4257
|
-
var
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
image: imageSchema.optional(),
|
|
4262
|
-
title: z.string().optional(),
|
|
4263
|
-
subtitle: z.string().optional(),
|
|
4264
|
-
value: z.string().optional(),
|
|
4265
|
-
subvalue: z.string().optional(),
|
|
4266
|
-
tag: z.string().optional()
|
|
4267
|
-
});
|
|
4268
|
-
var actionResponseBodySchema = z.object({
|
|
4269
|
-
action: actionSchema
|
|
4092
|
+
var dividerLayoutSchema = z.object({
|
|
4093
|
+
type: z.literal("divider"),
|
|
4094
|
+
control: z.string().optional(),
|
|
4095
|
+
margin: sizeSchema.optional()
|
|
4270
4096
|
});
|
|
4271
|
-
var
|
|
4272
|
-
|
|
4097
|
+
var listLayoutStatusSchema = z.union([
|
|
4098
|
+
z.literal("warning"),
|
|
4099
|
+
z.literal("neutral"),
|
|
4100
|
+
z.literal("positive")
|
|
4101
|
+
]);
|
|
4102
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
4103
|
+
$ref: z.string()
|
|
4104
|
+
});
|
|
4105
|
+
var imageLayoutSchema = z.object({
|
|
4106
|
+
type: z.literal("image"),
|
|
4107
|
+
text: z.string().optional(),
|
|
4108
|
+
url: z.string().optional(),
|
|
4109
|
+
accessibilityDescription: z.string().optional(),
|
|
4110
|
+
content: imageSchema.optional(),
|
|
4111
|
+
size: sizeSchema.optional(),
|
|
4112
|
+
control: z.string().optional(),
|
|
4113
|
+
margin: sizeSchema.optional()
|
|
4114
|
+
});
|
|
4115
|
+
var statusListLayoutStatusSchema = z.union([
|
|
4116
|
+
z.literal("not-done"),
|
|
4117
|
+
z.literal("pending"),
|
|
4118
|
+
z.literal("done")
|
|
4119
|
+
]);
|
|
4120
|
+
var instructionsLayoutItemSchema = z.object({
|
|
4121
|
+
text: z.string(),
|
|
4122
|
+
context: contextSchema,
|
|
4123
|
+
tag: z.string().optional()
|
|
4124
|
+
});
|
|
4125
|
+
var modalLayoutTriggerSchema = z.object({
|
|
4126
|
+
title: z.string()
|
|
4127
|
+
});
|
|
4128
|
+
var searchLayoutSchema = z.object({
|
|
4129
|
+
type: z.literal("search"),
|
|
4273
4130
|
title: z.string(),
|
|
4131
|
+
method: httpMethodSchema,
|
|
4132
|
+
url: z.string(),
|
|
4133
|
+
param: z.string(),
|
|
4134
|
+
emptyMessage: z.string().optional(),
|
|
4135
|
+
control: z.string().optional(),
|
|
4136
|
+
margin: sizeSchema.optional()
|
|
4137
|
+
});
|
|
4138
|
+
var infoLayoutSchema = z.object({
|
|
4139
|
+
type: z.literal("info"),
|
|
4140
|
+
markdown: z.string(),
|
|
4141
|
+
align: alignSchema.optional(),
|
|
4142
|
+
control: z.string().optional(),
|
|
4143
|
+
margin: sizeSchema.optional()
|
|
4144
|
+
});
|
|
4145
|
+
var formLayoutSchema = z.object({
|
|
4146
|
+
type: z.literal("form"),
|
|
4147
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
4148
|
+
schemaId: z.string(),
|
|
4149
|
+
control: z.string().optional(),
|
|
4150
|
+
margin: sizeSchema.optional()
|
|
4151
|
+
});
|
|
4152
|
+
var headingLayoutSchema = z.object({
|
|
4153
|
+
type: z.literal("heading"),
|
|
4154
|
+
text: z.string(),
|
|
4155
|
+
size: sizeSchema.optional(),
|
|
4156
|
+
align: alignSchema.optional(),
|
|
4157
|
+
control: z.string().optional(),
|
|
4158
|
+
margin: sizeSchema.optional()
|
|
4159
|
+
});
|
|
4160
|
+
var markdownLayoutSchema = z.object({
|
|
4161
|
+
type: z.literal("markdown"),
|
|
4162
|
+
content: z.string(),
|
|
4163
|
+
align: alignSchema.optional(),
|
|
4164
|
+
control: z.string().optional(),
|
|
4165
|
+
margin: sizeSchema.optional()
|
|
4166
|
+
});
|
|
4167
|
+
var columnsLayoutBiasSchema = z.union([
|
|
4168
|
+
z.literal("none"),
|
|
4169
|
+
z.literal("left"),
|
|
4170
|
+
z.literal("right")
|
|
4171
|
+
]);
|
|
4172
|
+
var helpSchema = z.object({
|
|
4173
|
+
markdown: z.string()
|
|
4174
|
+
});
|
|
4175
|
+
var searchSearchRequestSchema = z.object({
|
|
4176
|
+
url: z.string(),
|
|
4177
|
+
method: httpMethodSchema,
|
|
4178
|
+
param: z.string(),
|
|
4179
|
+
query: z.string()
|
|
4180
|
+
});
|
|
4181
|
+
var jsonElementSchema = z.lazy(
|
|
4182
|
+
() => z.union([
|
|
4183
|
+
z.string(),
|
|
4184
|
+
z.number(),
|
|
4185
|
+
z.boolean(),
|
|
4186
|
+
z.record(jsonElementSchema),
|
|
4187
|
+
z.array(jsonElementSchema)
|
|
4188
|
+
]).nullable()
|
|
4189
|
+
);
|
|
4190
|
+
var externalSchema = z.object({
|
|
4191
|
+
url: z.string()
|
|
4192
|
+
});
|
|
4193
|
+
var stepErrorSchema = z.object({
|
|
4194
|
+
error: z.string().optional(),
|
|
4195
|
+
validation: jsonElementSchema.optional()
|
|
4196
|
+
});
|
|
4197
|
+
var stringSchemaFormatSchema = z.union([
|
|
4198
|
+
z.literal("date"),
|
|
4199
|
+
z.literal("email"),
|
|
4200
|
+
z.literal("numeric"),
|
|
4201
|
+
z.literal("password"),
|
|
4202
|
+
z.literal("phone-number"),
|
|
4203
|
+
z.literal("base64url")
|
|
4204
|
+
]);
|
|
4205
|
+
var summarySummariserSchema = z.object({
|
|
4206
|
+
defaultTitle: z.string().optional(),
|
|
4207
|
+
defaultDescription: z.string().optional(),
|
|
4208
|
+
defaultIcon: iconSchema.optional(),
|
|
4209
|
+
defaultImage: imageSchema.optional(),
|
|
4210
|
+
providesTitle: z.boolean().optional(),
|
|
4211
|
+
providesDescription: z.boolean().optional(),
|
|
4212
|
+
providesIcon: z.boolean().optional(),
|
|
4213
|
+
providesImage: z.boolean().optional()
|
|
4214
|
+
});
|
|
4215
|
+
var validateAsyncSchema = z.object({
|
|
4216
|
+
param: z.string(),
|
|
4217
|
+
method: httpMethodSchema,
|
|
4218
|
+
url: z.string()
|
|
4219
|
+
});
|
|
4220
|
+
var summaryProviderSchema = z.object({
|
|
4221
|
+
providesTitle: z.boolean().optional(),
|
|
4222
|
+
providesDescription: z.boolean().optional(),
|
|
4223
|
+
providesIcon: z.boolean().optional(),
|
|
4224
|
+
providesImage: z.boolean().optional()
|
|
4225
|
+
});
|
|
4226
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4227
|
+
var navigationStackBehaviorSchema = z.union([
|
|
4228
|
+
z.literal("default"),
|
|
4229
|
+
z.literal("remove-previous"),
|
|
4230
|
+
z.literal("remove-all"),
|
|
4231
|
+
z.literal("replace-current")
|
|
4232
|
+
]);
|
|
4233
|
+
var actionTypeSchema = z.union([
|
|
4234
|
+
z.literal("primary"),
|
|
4235
|
+
z.literal("secondary"),
|
|
4236
|
+
z.literal("link"),
|
|
4237
|
+
z.literal("positive"),
|
|
4238
|
+
z.literal("negative")
|
|
4239
|
+
]);
|
|
4240
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4241
|
+
var linkBehaviorSchema = z.object({
|
|
4242
|
+
type: z.literal("link"),
|
|
4243
|
+
url: z.string()
|
|
4244
|
+
});
|
|
4245
|
+
var linkSchema = z.object({
|
|
4246
|
+
url: z.string()
|
|
4247
|
+
});
|
|
4248
|
+
var actionSchema = z.object({
|
|
4249
|
+
title: z.string().optional(),
|
|
4250
|
+
type: actionTypeSchema.optional(),
|
|
4251
|
+
disabled: z.boolean().optional(),
|
|
4252
|
+
$id: z.string().optional(),
|
|
4253
|
+
$ref: z.string().optional(),
|
|
4254
|
+
id: z.string().optional(),
|
|
4255
|
+
url: z.string().optional(),
|
|
4256
|
+
method: httpMethodSchema.optional(),
|
|
4257
|
+
exit: z.boolean().optional(),
|
|
4258
|
+
result: jsonElementSchema.optional(),
|
|
4259
|
+
data: jsonElementSchema.optional(),
|
|
4260
|
+
timeout: z.number().optional(),
|
|
4261
|
+
skipValidation: z.boolean().optional()
|
|
4262
|
+
});
|
|
4263
|
+
var listLayoutItemSchema = z.object({
|
|
4274
4264
|
description: z.string().optional(),
|
|
4265
|
+
status: listLayoutStatusSchema.optional(),
|
|
4275
4266
|
icon: iconSchema.optional(),
|
|
4276
4267
|
image: imageSchema.optional(),
|
|
4277
|
-
|
|
4268
|
+
title: z.string().optional(),
|
|
4269
|
+
subtitle: z.string().optional(),
|
|
4270
|
+
value: z.string().optional(),
|
|
4271
|
+
subvalue: z.string().optional(),
|
|
4272
|
+
tag: z.string().optional()
|
|
4273
|
+
});
|
|
4274
|
+
var instructionsLayoutSchema = z.object({
|
|
4275
|
+
type: z.literal("instructions"),
|
|
4276
|
+
title: z.string().optional(),
|
|
4277
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
4278
|
+
control: z.string().optional(),
|
|
4279
|
+
margin: sizeSchema.optional()
|
|
4280
|
+
});
|
|
4281
|
+
var reviewLayoutFieldSchema = z.object({
|
|
4282
|
+
label: z.string(),
|
|
4283
|
+
value: z.string(),
|
|
4284
|
+
rawValue: z.string().optional(),
|
|
4285
|
+
help: helpSchema.optional(),
|
|
4286
|
+
tag: z.string().optional()
|
|
4278
4287
|
});
|
|
4279
4288
|
var searchResultSearchSchema = z.object({
|
|
4280
4289
|
type: z.literal("search"),
|
|
@@ -4284,59 +4293,51 @@ var searchResultSearchSchema = z.object({
|
|
|
4284
4293
|
image: imageSchema.optional(),
|
|
4285
4294
|
value: searchSearchRequestSchema
|
|
4286
4295
|
});
|
|
4287
|
-
var
|
|
4296
|
+
var searchResultActionSchema = z.object({
|
|
4288
4297
|
type: z.literal("action"),
|
|
4298
|
+
title: z.string(),
|
|
4299
|
+
description: z.string().optional(),
|
|
4300
|
+
icon: iconSchema.optional(),
|
|
4301
|
+
image: imageSchema.optional(),
|
|
4302
|
+
value: actionSchema
|
|
4303
|
+
});
|
|
4304
|
+
var actionResponseBodySchema = z.object({
|
|
4289
4305
|
action: actionSchema
|
|
4290
4306
|
});
|
|
4291
|
-
var
|
|
4292
|
-
|
|
4293
|
-
|
|
4307
|
+
var errorResponseBodySchema = z.object({
|
|
4308
|
+
refreshFormUrl: z.string().optional(),
|
|
4309
|
+
analytics: z.record(z.string()).optional(),
|
|
4310
|
+
error: z.string().optional(),
|
|
4311
|
+
validation: jsonElementSchema.optional(),
|
|
4312
|
+
refreshUrl: z.string().optional()
|
|
4294
4313
|
});
|
|
4295
4314
|
var navigationBackBehaviorSchema = z.object({
|
|
4296
4315
|
title: z.string().optional(),
|
|
4297
4316
|
action: actionSchema
|
|
4298
4317
|
});
|
|
4299
|
-
var
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
defaultIcon: iconSchema.optional(),
|
|
4303
|
-
defaultImage: imageSchema.optional(),
|
|
4304
|
-
providesTitle: z.boolean().optional(),
|
|
4305
|
-
providesDescription: z.boolean().optional(),
|
|
4306
|
-
providesIcon: z.boolean().optional(),
|
|
4307
|
-
providesImage: z.boolean().optional()
|
|
4318
|
+
var actionBehaviorSchema = z.object({
|
|
4319
|
+
type: z.literal("action"),
|
|
4320
|
+
action: actionSchema
|
|
4308
4321
|
});
|
|
4309
|
-
var
|
|
4310
|
-
|
|
4311
|
-
|
|
4322
|
+
var containerBehaviorSchema = z.object({
|
|
4323
|
+
action: actionSchema.optional(),
|
|
4324
|
+
link: linkSchema.optional()
|
|
4312
4325
|
});
|
|
4313
4326
|
var behaviorSchema = z.union([
|
|
4314
4327
|
actionBehaviorSchema,
|
|
4315
4328
|
containerBehaviorSchema,
|
|
4316
4329
|
linkBehaviorSchema
|
|
4317
4330
|
]);
|
|
4318
|
-
var
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
});
|
|
4323
|
-
var linkHandlerSchema = z.object({
|
|
4324
|
-
regexPattern: z.string(),
|
|
4325
|
-
behavior: behaviorSchema.optional()
|
|
4326
|
-
});
|
|
4327
|
-
var pollingOnErrorSchema = z.object({
|
|
4328
|
-
action: actionSchema.optional(),
|
|
4329
|
-
behavior: behaviorSchema.optional()
|
|
4331
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
4332
|
+
title: z.string(),
|
|
4333
|
+
accessibilityDescription: z.string().optional(),
|
|
4334
|
+
behavior: behaviorSchema
|
|
4330
4335
|
});
|
|
4331
|
-
var
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
timeout: z.number().optional(),
|
|
4336
|
-
maxAttempts: z.number(),
|
|
4337
|
-
onError: pollingOnErrorSchema
|
|
4336
|
+
var listLayoutCallToActionSchema = z.object({
|
|
4337
|
+
title: z.string(),
|
|
4338
|
+
accessibilityDescription: z.string().optional(),
|
|
4339
|
+
behavior: behaviorSchema
|
|
4338
4340
|
});
|
|
4339
|
-
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4340
4341
|
var decisionLayoutOptionSchema = z.object({
|
|
4341
4342
|
action: actionSchema.optional(),
|
|
4342
4343
|
title: z.string(),
|
|
@@ -4347,6 +4348,11 @@ var decisionLayoutOptionSchema = z.object({
|
|
|
4347
4348
|
behavior: behaviorSchema.optional(),
|
|
4348
4349
|
tag: z.string().optional()
|
|
4349
4350
|
});
|
|
4351
|
+
var itemCallToActionSchema = z.object({
|
|
4352
|
+
title: z.string(),
|
|
4353
|
+
accessibilityDescription: z.string().optional(),
|
|
4354
|
+
behavior: behaviorSchema
|
|
4355
|
+
});
|
|
4350
4356
|
var buttonLayoutSchema = z.object({
|
|
4351
4357
|
type: z.literal("button"),
|
|
4352
4358
|
action: actionSchema.optional(),
|
|
@@ -4359,21 +4365,25 @@ var buttonLayoutSchema = z.object({
|
|
|
4359
4365
|
control: z.string().optional(),
|
|
4360
4366
|
margin: sizeSchema.optional()
|
|
4361
4367
|
});
|
|
4362
|
-
var
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
accessibilityDescription: z.string().optional(),
|
|
4368
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4369
|
+
var linkHandlerSchema = z.object({
|
|
4370
|
+
regexPattern: z.string(),
|
|
4366
4371
|
behavior: behaviorSchema.optional()
|
|
4367
4372
|
});
|
|
4368
|
-
var
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4373
|
+
var navigationSchema = z.object({
|
|
4374
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
4375
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
4376
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4372
4377
|
});
|
|
4373
|
-
var
|
|
4378
|
+
var pollingOnErrorSchema = z.object({
|
|
4379
|
+
action: actionSchema.optional(),
|
|
4380
|
+
behavior: behaviorSchema.optional()
|
|
4381
|
+
});
|
|
4382
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
4383
|
+
action: actionSchema.optional(),
|
|
4374
4384
|
title: z.string(),
|
|
4375
4385
|
accessibilityDescription: z.string().optional(),
|
|
4376
|
-
behavior: behaviorSchema
|
|
4386
|
+
behavior: behaviorSchema.optional()
|
|
4377
4387
|
});
|
|
4378
4388
|
var alertLayoutSchema = z.object({
|
|
4379
4389
|
type: z.literal("alert"),
|
|
@@ -4383,10 +4393,13 @@ var alertLayoutSchema = z.object({
|
|
|
4383
4393
|
margin: sizeSchema.optional(),
|
|
4384
4394
|
callToAction: alertLayoutCallToActionSchema.optional()
|
|
4385
4395
|
});
|
|
4386
|
-
var
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4396
|
+
var listLayoutSchema = z.object({
|
|
4397
|
+
type: z.literal("list"),
|
|
4398
|
+
title: z.string().optional(),
|
|
4399
|
+
callToAction: listLayoutCallToActionSchema.optional(),
|
|
4400
|
+
items: z.array(listLayoutItemSchema),
|
|
4401
|
+
control: z.string().optional(),
|
|
4402
|
+
margin: sizeSchema.optional()
|
|
4390
4403
|
});
|
|
4391
4404
|
var decisionLayoutSchema = z.object({
|
|
4392
4405
|
type: z.literal("decision"),
|
|
@@ -4395,29 +4408,34 @@ var decisionLayoutSchema = z.object({
|
|
|
4395
4408
|
control: z.string().optional(),
|
|
4396
4409
|
margin: sizeSchema.optional()
|
|
4397
4410
|
});
|
|
4398
|
-
var
|
|
4399
|
-
|
|
4411
|
+
var statusListLayoutItemSchema = z.object({
|
|
4412
|
+
title: z.string(),
|
|
4413
|
+
description: z.string().optional(),
|
|
4414
|
+
icon: iconSchema,
|
|
4415
|
+
status: statusListLayoutStatusSchema.optional(),
|
|
4416
|
+
callToAction: itemCallToActionSchema.optional(),
|
|
4417
|
+
tag: z.string().optional()
|
|
4418
|
+
});
|
|
4419
|
+
var reviewLayoutSchema = z.object({
|
|
4420
|
+
type: z.literal("review"),
|
|
4421
|
+
orientation: z.string().optional(),
|
|
4422
|
+
action: actionSchema.optional(),
|
|
4423
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
4400
4424
|
title: z.string().optional(),
|
|
4401
|
-
callToAction:
|
|
4402
|
-
items: z.array(listLayoutItemSchema),
|
|
4425
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
4403
4426
|
control: z.string().optional(),
|
|
4404
4427
|
margin: sizeSchema.optional()
|
|
4405
4428
|
});
|
|
4406
|
-
var
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
image: imageSchema.optional(),
|
|
4417
|
-
keywords: z.array(z.string()).optional(),
|
|
4418
|
-
summary: summaryProviderSchema.optional(),
|
|
4419
|
-
analyticsId: z.string().optional(),
|
|
4420
|
-
disabled: z.boolean().optional()
|
|
4429
|
+
var searchResponseBodySchema = z.object({
|
|
4430
|
+
results: z.array(searchResultSchema)
|
|
4431
|
+
});
|
|
4432
|
+
var pollingSchema = z.object({
|
|
4433
|
+
interval: z.number().optional(),
|
|
4434
|
+
url: z.string(),
|
|
4435
|
+
delay: z.number().optional(),
|
|
4436
|
+
timeout: z.number().optional(),
|
|
4437
|
+
maxAttempts: z.number(),
|
|
4438
|
+
onError: pollingOnErrorSchema
|
|
4421
4439
|
});
|
|
4422
4440
|
var blobSchemaSchema = z.object({
|
|
4423
4441
|
type: z.literal("blob"),
|
|
@@ -4441,23 +4459,21 @@ var blobSchemaSchema = z.object({
|
|
|
4441
4459
|
source: uploadSourceSchema.optional(),
|
|
4442
4460
|
disabled: z.boolean().optional()
|
|
4443
4461
|
});
|
|
4444
|
-
var
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
action: actionSchema.optional(),
|
|
4448
|
-
fields: z.array(reviewLayoutFieldSchema),
|
|
4449
|
-
title: z.string().optional(),
|
|
4450
|
-
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
4462
|
+
var constSchemaSchema = z.object({
|
|
4463
|
+
hidden: z.boolean().optional(),
|
|
4464
|
+
alert: alertLayoutSchema.optional(),
|
|
4451
4465
|
control: z.string().optional(),
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
title: z.string(),
|
|
4466
|
+
promoted: z.boolean().optional(),
|
|
4467
|
+
$id: z.string().optional(),
|
|
4468
|
+
const: jsonElementSchema,
|
|
4469
|
+
title: z.string().optional(),
|
|
4456
4470
|
description: z.string().optional(),
|
|
4457
|
-
icon: iconSchema,
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4471
|
+
icon: iconSchema.optional(),
|
|
4472
|
+
image: imageSchema.optional(),
|
|
4473
|
+
keywords: z.array(z.string()).optional(),
|
|
4474
|
+
summary: summaryProviderSchema.optional(),
|
|
4475
|
+
analyticsId: z.string().optional(),
|
|
4476
|
+
disabled: z.boolean().optional()
|
|
4461
4477
|
});
|
|
4462
4478
|
var statusListLayoutSchema = z.object({
|
|
4463
4479
|
type: z.literal("status-list"),
|
|
@@ -4466,39 +4482,6 @@ var statusListLayoutSchema = z.object({
|
|
|
4466
4482
|
control: z.string().optional(),
|
|
4467
4483
|
margin: sizeSchema.optional()
|
|
4468
4484
|
});
|
|
4469
|
-
var persistAsyncSchema = z.lazy(
|
|
4470
|
-
() => z.object({
|
|
4471
|
-
param: z.string(),
|
|
4472
|
-
idProperty: z.string(),
|
|
4473
|
-
schema: schemaSchema,
|
|
4474
|
-
url: z.string(),
|
|
4475
|
-
method: httpMethodSchema
|
|
4476
|
-
})
|
|
4477
|
-
);
|
|
4478
|
-
var schemaSchema = z.lazy(
|
|
4479
|
-
() => z.union([
|
|
4480
|
-
allOfSchemaSchema,
|
|
4481
|
-
arraySchemaSchema,
|
|
4482
|
-
blobSchemaSchema,
|
|
4483
|
-
booleanSchemaSchema,
|
|
4484
|
-
constSchemaSchema,
|
|
4485
|
-
integerSchemaSchema,
|
|
4486
|
-
numberSchemaSchema,
|
|
4487
|
-
objectSchemaSchema,
|
|
4488
|
-
oneOfSchemaSchema,
|
|
4489
|
-
stringSchemaSchema
|
|
4490
|
-
])
|
|
4491
|
-
);
|
|
4492
|
-
var columnsLayoutSchema = z.lazy(
|
|
4493
|
-
() => z.object({
|
|
4494
|
-
type: z.literal("columns"),
|
|
4495
|
-
left: z.array(layoutSchema),
|
|
4496
|
-
right: z.array(layoutSchema),
|
|
4497
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
4498
|
-
control: z.string().optional(),
|
|
4499
|
-
margin: sizeSchema.optional()
|
|
4500
|
-
})
|
|
4501
|
-
);
|
|
4502
4485
|
var layoutSchema = z.lazy(
|
|
4503
4486
|
() => z.union([
|
|
4504
4487
|
alertLayoutSchema,
|
|
@@ -4522,12 +4505,6 @@ var layoutSchema = z.lazy(
|
|
|
4522
4505
|
statusListLayoutSchema
|
|
4523
4506
|
])
|
|
4524
4507
|
);
|
|
4525
|
-
var modalLayoutContentSchema = z.lazy(
|
|
4526
|
-
() => z.object({
|
|
4527
|
-
title: z.string().optional(),
|
|
4528
|
-
components: z.array(layoutSchema)
|
|
4529
|
-
})
|
|
4530
|
-
);
|
|
4531
4508
|
var boxLayoutSchema = z.lazy(
|
|
4532
4509
|
() => z.object({
|
|
4533
4510
|
type: z.literal("box"),
|
|
@@ -4538,6 +4515,16 @@ var boxLayoutSchema = z.lazy(
|
|
|
4538
4515
|
margin: sizeSchema.optional()
|
|
4539
4516
|
})
|
|
4540
4517
|
);
|
|
4518
|
+
var columnsLayoutSchema = z.lazy(
|
|
4519
|
+
() => z.object({
|
|
4520
|
+
type: z.literal("columns"),
|
|
4521
|
+
left: z.array(layoutSchema),
|
|
4522
|
+
right: z.array(layoutSchema),
|
|
4523
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
4524
|
+
control: z.string().optional(),
|
|
4525
|
+
margin: sizeSchema.optional()
|
|
4526
|
+
})
|
|
4527
|
+
);
|
|
4541
4528
|
var modalLayoutSchema = z.lazy(
|
|
4542
4529
|
() => z.object({
|
|
4543
4530
|
type: z.literal("modal"),
|
|
@@ -4547,6 +4534,12 @@ var modalLayoutSchema = z.lazy(
|
|
|
4547
4534
|
content: modalLayoutContentSchema
|
|
4548
4535
|
})
|
|
4549
4536
|
);
|
|
4537
|
+
var modalLayoutContentSchema = z.lazy(
|
|
4538
|
+
() => z.object({
|
|
4539
|
+
title: z.string().optional(),
|
|
4540
|
+
components: z.array(layoutSchema)
|
|
4541
|
+
})
|
|
4542
|
+
);
|
|
4550
4543
|
var stepSchema = z.lazy(
|
|
4551
4544
|
() => z.object({
|
|
4552
4545
|
key: z.string().optional(),
|
|
@@ -4569,29 +4562,54 @@ var stepSchema = z.lazy(
|
|
|
4569
4562
|
control: z.string().optional()
|
|
4570
4563
|
})
|
|
4571
4564
|
);
|
|
4572
|
-
var
|
|
4565
|
+
var schemaSchema = z.lazy(
|
|
4566
|
+
() => z.union([
|
|
4567
|
+
allOfSchemaSchema,
|
|
4568
|
+
arraySchemaSchema,
|
|
4569
|
+
blobSchemaSchema,
|
|
4570
|
+
booleanSchemaSchema,
|
|
4571
|
+
constSchemaSchema,
|
|
4572
|
+
integerSchemaSchema,
|
|
4573
|
+
numberSchemaSchema,
|
|
4574
|
+
objectSchemaSchema,
|
|
4575
|
+
oneOfSchemaSchema,
|
|
4576
|
+
stringSchemaSchema
|
|
4577
|
+
])
|
|
4578
|
+
);
|
|
4579
|
+
var allOfSchemaSchema = z.lazy(
|
|
4573
4580
|
() => z.object({
|
|
4574
|
-
|
|
4581
|
+
disabled: z.boolean().optional(),
|
|
4582
|
+
promoted: z.boolean().optional(),
|
|
4583
|
+
allOf: z.array(schemaSchema),
|
|
4584
|
+
$id: z.string().optional(),
|
|
4585
|
+
title: z.string().optional(),
|
|
4586
|
+
description: z.string().optional(),
|
|
4587
|
+
control: z.string().optional(),
|
|
4588
|
+
hidden: z.boolean().optional(),
|
|
4589
|
+
icon: iconSchema.optional(),
|
|
4590
|
+
image: imageSchema.optional(),
|
|
4591
|
+
keywords: z.array(z.string()).optional(),
|
|
4592
|
+
summary: summaryProviderSchema.optional(),
|
|
4593
|
+
analyticsId: z.string().optional(),
|
|
4594
|
+
alert: alertLayoutSchema.optional()
|
|
4595
|
+
})
|
|
4596
|
+
);
|
|
4597
|
+
var arraySchemaSchema = z.lazy(
|
|
4598
|
+
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
4599
|
+
);
|
|
4600
|
+
var booleanSchemaSchema = z.lazy(
|
|
4601
|
+
() => z.object({
|
|
4602
|
+
type: z.literal("boolean"),
|
|
4575
4603
|
autofillProvider: z.string().optional(),
|
|
4576
4604
|
promoted: z.boolean().optional(),
|
|
4577
4605
|
refreshFormOnChange: z.boolean().optional(),
|
|
4578
4606
|
refreshUrl: z.string().optional(),
|
|
4579
4607
|
refreshFormUrl: z.string().optional(),
|
|
4580
|
-
format: stringSchemaFormatSchema.optional(),
|
|
4581
|
-
displayFormat: z.string().optional(),
|
|
4582
|
-
placeholder: z.string().optional(),
|
|
4583
|
-
minLength: z.number().optional(),
|
|
4584
|
-
maxLength: z.number().optional(),
|
|
4585
|
-
minimum: z.string().optional(),
|
|
4586
|
-
maximum: z.string().optional(),
|
|
4587
|
-
pattern: z.string().optional(),
|
|
4588
|
-
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
4589
|
-
autocorrect: z.boolean().optional(),
|
|
4590
4608
|
$id: z.string().optional(),
|
|
4591
4609
|
title: z.string().optional(),
|
|
4592
4610
|
description: z.string().optional(),
|
|
4593
4611
|
control: z.string().optional(),
|
|
4594
|
-
default: z.
|
|
4612
|
+
default: z.boolean().optional(),
|
|
4595
4613
|
hidden: z.boolean().optional(),
|
|
4596
4614
|
disabled: z.boolean().optional(),
|
|
4597
4615
|
icon: iconSchema.optional(),
|
|
@@ -4602,45 +4620,42 @@ var stringSchemaSchema = z.lazy(
|
|
|
4602
4620
|
persistAsync: persistAsyncSchema.optional(),
|
|
4603
4621
|
refreshStepOnChange: z.boolean().optional(),
|
|
4604
4622
|
validationAsync: validateAsyncSchema.optional(),
|
|
4605
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4606
4623
|
alert: alertLayoutSchema.optional(),
|
|
4607
|
-
cameraConfig: jsonElementSchema.optional(),
|
|
4608
|
-
accepts: z.array(z.string()).optional(),
|
|
4609
|
-
maxSize: z.number().optional(),
|
|
4610
|
-
source: uploadSourceSchema.optional(),
|
|
4611
|
-
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
4612
4624
|
autofillKey: z.string().optional(),
|
|
4613
4625
|
help: helpSchema.optional()
|
|
4614
4626
|
})
|
|
4615
4627
|
);
|
|
4616
|
-
var
|
|
4628
|
+
var integerSchemaSchema = z.lazy(
|
|
4617
4629
|
() => z.object({
|
|
4630
|
+
type: z.literal("integer"),
|
|
4618
4631
|
autofillProvider: z.string().optional(),
|
|
4619
4632
|
promoted: z.boolean().optional(),
|
|
4620
4633
|
refreshFormOnChange: z.boolean().optional(),
|
|
4621
4634
|
refreshUrl: z.string().optional(),
|
|
4622
4635
|
refreshFormUrl: z.string().optional(),
|
|
4623
|
-
promotion: jsonElementSchema.optional(),
|
|
4624
|
-
oneOf: z.array(schemaSchema),
|
|
4625
4636
|
placeholder: z.string().optional(),
|
|
4637
|
+
minimum: z.number().optional(),
|
|
4638
|
+
maximum: z.number().optional(),
|
|
4626
4639
|
$id: z.string().optional(),
|
|
4627
4640
|
title: z.string().optional(),
|
|
4628
4641
|
description: z.string().optional(),
|
|
4629
4642
|
control: z.string().optional(),
|
|
4630
|
-
default:
|
|
4643
|
+
default: z.number().optional(),
|
|
4631
4644
|
hidden: z.boolean().optional(),
|
|
4645
|
+
disabled: z.boolean().optional(),
|
|
4632
4646
|
icon: iconSchema.optional(),
|
|
4633
4647
|
image: imageSchema.optional(),
|
|
4634
4648
|
keywords: z.array(z.string()).optional(),
|
|
4635
4649
|
summary: summaryProviderSchema.optional(),
|
|
4636
4650
|
analyticsId: z.string().optional(),
|
|
4651
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
4637
4652
|
refreshStepOnChange: z.boolean().optional(),
|
|
4653
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
4654
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4638
4655
|
alert: alertLayoutSchema.optional(),
|
|
4639
|
-
help: helpSchema.optional(),
|
|
4640
4656
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
4641
4657
|
autofillKey: z.string().optional(),
|
|
4642
|
-
|
|
4643
|
-
disabled: z.boolean().optional()
|
|
4658
|
+
help: helpSchema.optional()
|
|
4644
4659
|
})
|
|
4645
4660
|
);
|
|
4646
4661
|
var numberSchemaSchema = z.lazy(
|
|
@@ -4676,12 +4691,16 @@ var numberSchemaSchema = z.lazy(
|
|
|
4676
4691
|
help: helpSchema.optional()
|
|
4677
4692
|
})
|
|
4678
4693
|
);
|
|
4679
|
-
var
|
|
4694
|
+
var objectSchemaSchema = z.lazy(
|
|
4680
4695
|
() => z.object({
|
|
4681
|
-
type: z.literal("
|
|
4696
|
+
type: z.literal("object"),
|
|
4697
|
+
disabled: z.boolean().optional(),
|
|
4682
4698
|
promoted: z.boolean().optional(),
|
|
4699
|
+
help: helpSchema.optional(),
|
|
4700
|
+
properties: z.record(schemaSchema),
|
|
4701
|
+
displayOrder: z.array(z.string()),
|
|
4702
|
+
required: z.array(z.string()).optional(),
|
|
4683
4703
|
$id: z.string().optional(),
|
|
4684
|
-
items: z.array(schemaSchema),
|
|
4685
4704
|
title: z.string().optional(),
|
|
4686
4705
|
description: z.string().optional(),
|
|
4687
4706
|
control: z.string().optional(),
|
|
@@ -4691,27 +4710,62 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
4691
4710
|
keywords: z.array(z.string()).optional(),
|
|
4692
4711
|
summary: summaryProviderSchema.optional(),
|
|
4693
4712
|
analyticsId: z.string().optional(),
|
|
4694
|
-
persistAsync: persistAsyncSchema.optional(),
|
|
4695
|
-
validationAsync: validateAsyncSchema.optional(),
|
|
4696
4713
|
alert: alertLayoutSchema.optional()
|
|
4697
4714
|
})
|
|
4698
4715
|
);
|
|
4699
|
-
var
|
|
4716
|
+
var oneOfSchemaSchema = z.lazy(
|
|
4700
4717
|
() => z.object({
|
|
4701
|
-
type: z.literal("integer"),
|
|
4702
4718
|
autofillProvider: z.string().optional(),
|
|
4703
4719
|
promoted: z.boolean().optional(),
|
|
4704
4720
|
refreshFormOnChange: z.boolean().optional(),
|
|
4705
4721
|
refreshUrl: z.string().optional(),
|
|
4706
4722
|
refreshFormUrl: z.string().optional(),
|
|
4723
|
+
promotion: jsonElementSchema.optional(),
|
|
4724
|
+
oneOf: z.array(schemaSchema),
|
|
4707
4725
|
placeholder: z.string().optional(),
|
|
4708
|
-
minimum: z.number().optional(),
|
|
4709
|
-
maximum: z.number().optional(),
|
|
4710
4726
|
$id: z.string().optional(),
|
|
4711
4727
|
title: z.string().optional(),
|
|
4712
4728
|
description: z.string().optional(),
|
|
4713
4729
|
control: z.string().optional(),
|
|
4714
|
-
default:
|
|
4730
|
+
default: jsonElementSchema.optional(),
|
|
4731
|
+
hidden: z.boolean().optional(),
|
|
4732
|
+
icon: iconSchema.optional(),
|
|
4733
|
+
image: imageSchema.optional(),
|
|
4734
|
+
keywords: z.array(z.string()).optional(),
|
|
4735
|
+
summary: summaryProviderSchema.optional(),
|
|
4736
|
+
analyticsId: z.string().optional(),
|
|
4737
|
+
refreshStepOnChange: z.boolean().optional(),
|
|
4738
|
+
alert: alertLayoutSchema.optional(),
|
|
4739
|
+
help: helpSchema.optional(),
|
|
4740
|
+
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
4741
|
+
autofillKey: z.string().optional(),
|
|
4742
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4743
|
+
disabled: z.boolean().optional()
|
|
4744
|
+
})
|
|
4745
|
+
);
|
|
4746
|
+
var stringSchemaSchema = z.lazy(
|
|
4747
|
+
() => z.object({
|
|
4748
|
+
type: z.literal("string"),
|
|
4749
|
+
autofillProvider: z.string().optional(),
|
|
4750
|
+
promoted: z.boolean().optional(),
|
|
4751
|
+
refreshFormOnChange: z.boolean().optional(),
|
|
4752
|
+
refreshUrl: z.string().optional(),
|
|
4753
|
+
refreshFormUrl: z.string().optional(),
|
|
4754
|
+
format: stringSchemaFormatSchema.optional(),
|
|
4755
|
+
displayFormat: z.string().optional(),
|
|
4756
|
+
placeholder: z.string().optional(),
|
|
4757
|
+
minLength: z.number().optional(),
|
|
4758
|
+
maxLength: z.number().optional(),
|
|
4759
|
+
minimum: z.string().optional(),
|
|
4760
|
+
maximum: z.string().optional(),
|
|
4761
|
+
pattern: z.string().optional(),
|
|
4762
|
+
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
4763
|
+
autocorrect: z.boolean().optional(),
|
|
4764
|
+
$id: z.string().optional(),
|
|
4765
|
+
title: z.string().optional(),
|
|
4766
|
+
description: z.string().optional(),
|
|
4767
|
+
control: z.string().optional(),
|
|
4768
|
+
default: z.string().optional(),
|
|
4715
4769
|
hidden: z.boolean().optional(),
|
|
4716
4770
|
disabled: z.boolean().optional(),
|
|
4717
4771
|
icon: iconSchema.optional(),
|
|
@@ -4724,14 +4778,15 @@ var integerSchemaSchema = z.lazy(
|
|
|
4724
4778
|
validationAsync: validateAsyncSchema.optional(),
|
|
4725
4779
|
validationMessages: z.record(z.string()).optional(),
|
|
4726
4780
|
alert: alertLayoutSchema.optional(),
|
|
4781
|
+
cameraConfig: jsonElementSchema.optional(),
|
|
4782
|
+
accepts: z.array(z.string()).optional(),
|
|
4783
|
+
maxSize: z.number().optional(),
|
|
4784
|
+
source: uploadSourceSchema.optional(),
|
|
4727
4785
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
4728
4786
|
autofillKey: z.string().optional(),
|
|
4729
4787
|
help: helpSchema.optional()
|
|
4730
4788
|
})
|
|
4731
4789
|
);
|
|
4732
|
-
var arraySchemaSchema = z.lazy(
|
|
4733
|
-
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
4734
|
-
);
|
|
4735
4790
|
var arraySchemaListSchema = z.lazy(
|
|
4736
4791
|
() => z.object({
|
|
4737
4792
|
type: z.literal("array"),
|
|
@@ -4759,71 +4814,32 @@ var arraySchemaListSchema = z.lazy(
|
|
|
4759
4814
|
disabled: z.boolean().optional()
|
|
4760
4815
|
})
|
|
4761
4816
|
);
|
|
4762
|
-
var
|
|
4817
|
+
var persistAsyncSchema = z.lazy(
|
|
4763
4818
|
() => z.object({
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
description: z.string().optional(),
|
|
4770
|
-
control: z.string().optional(),
|
|
4771
|
-
hidden: z.boolean().optional(),
|
|
4772
|
-
icon: iconSchema.optional(),
|
|
4773
|
-
image: imageSchema.optional(),
|
|
4774
|
-
keywords: z.array(z.string()).optional(),
|
|
4775
|
-
summary: summaryProviderSchema.optional(),
|
|
4776
|
-
analyticsId: z.string().optional(),
|
|
4777
|
-
alert: alertLayoutSchema.optional()
|
|
4819
|
+
param: z.string(),
|
|
4820
|
+
idProperty: z.string(),
|
|
4821
|
+
schema: schemaSchema,
|
|
4822
|
+
url: z.string(),
|
|
4823
|
+
method: httpMethodSchema
|
|
4778
4824
|
})
|
|
4779
4825
|
);
|
|
4780
|
-
var
|
|
4826
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
4781
4827
|
() => z.object({
|
|
4782
|
-
type: z.literal("
|
|
4783
|
-
autofillProvider: z.string().optional(),
|
|
4828
|
+
type: z.literal("array"),
|
|
4784
4829
|
promoted: z.boolean().optional(),
|
|
4785
|
-
refreshFormOnChange: z.boolean().optional(),
|
|
4786
|
-
refreshUrl: z.string().optional(),
|
|
4787
|
-
refreshFormUrl: z.string().optional(),
|
|
4788
4830
|
$id: z.string().optional(),
|
|
4831
|
+
items: z.array(schemaSchema),
|
|
4789
4832
|
title: z.string().optional(),
|
|
4790
4833
|
description: z.string().optional(),
|
|
4791
4834
|
control: z.string().optional(),
|
|
4792
|
-
default: z.boolean().optional(),
|
|
4793
4835
|
hidden: z.boolean().optional(),
|
|
4794
|
-
disabled: z.boolean().optional(),
|
|
4795
4836
|
icon: iconSchema.optional(),
|
|
4796
4837
|
image: imageSchema.optional(),
|
|
4797
4838
|
keywords: z.array(z.string()).optional(),
|
|
4798
4839
|
summary: summaryProviderSchema.optional(),
|
|
4799
4840
|
analyticsId: z.string().optional(),
|
|
4800
4841
|
persistAsync: persistAsyncSchema.optional(),
|
|
4801
|
-
refreshStepOnChange: z.boolean().optional(),
|
|
4802
4842
|
validationAsync: validateAsyncSchema.optional(),
|
|
4803
|
-
alert: alertLayoutSchema.optional(),
|
|
4804
|
-
autofillKey: z.string().optional(),
|
|
4805
|
-
help: helpSchema.optional()
|
|
4806
|
-
})
|
|
4807
|
-
);
|
|
4808
|
-
var objectSchemaSchema = z.lazy(
|
|
4809
|
-
() => z.object({
|
|
4810
|
-
type: z.literal("object"),
|
|
4811
|
-
disabled: z.boolean().optional(),
|
|
4812
|
-
promoted: z.boolean().optional(),
|
|
4813
|
-
help: helpSchema.optional(),
|
|
4814
|
-
properties: z.record(schemaSchema),
|
|
4815
|
-
displayOrder: z.array(z.string()),
|
|
4816
|
-
required: z.array(z.string()).optional(),
|
|
4817
|
-
$id: z.string().optional(),
|
|
4818
|
-
title: z.string().optional(),
|
|
4819
|
-
description: z.string().optional(),
|
|
4820
|
-
control: z.string().optional(),
|
|
4821
|
-
hidden: z.boolean().optional(),
|
|
4822
|
-
icon: iconSchema.optional(),
|
|
4823
|
-
image: imageSchema.optional(),
|
|
4824
|
-
keywords: z.array(z.string()).optional(),
|
|
4825
|
-
summary: summaryProviderSchema.optional(),
|
|
4826
|
-
analyticsId: z.string().optional(),
|
|
4827
4843
|
alert: alertLayoutSchema.optional()
|
|
4828
4844
|
})
|
|
4829
4845
|
);
|