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