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