@wise/dynamic-flow-types 3.0.1 → 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 +410 -409
- package/build/main.min.js +1 -1
- package/build/main.mjs +410 -409
- 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 +1 -1
package/build/main.js
CHANGED
|
@@ -3992,11 +3992,37 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3992
3992
|
});
|
|
3993
3993
|
|
|
3994
3994
|
// src/zod/schemas.ts
|
|
3995
|
-
var
|
|
3996
|
-
|
|
3997
|
-
url: z.string()
|
|
3998
|
-
|
|
3999
|
-
|
|
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()
|
|
4000
4026
|
});
|
|
4001
4027
|
var httpMethodSchema = z.union([
|
|
4002
4028
|
z.literal("GET"),
|
|
@@ -4005,8 +4031,54 @@ var httpMethodSchema = z.union([
|
|
|
4005
4031
|
z.literal("PATCH"),
|
|
4006
4032
|
z.literal("DELETE")
|
|
4007
4033
|
]);
|
|
4008
|
-
var
|
|
4009
|
-
|
|
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()
|
|
4010
4082
|
});
|
|
4011
4083
|
var contextSchema = z.union([
|
|
4012
4084
|
z.literal("positive"),
|
|
@@ -4018,24 +4090,92 @@ var contextSchema = z.union([
|
|
|
4018
4090
|
z.literal("info"),
|
|
4019
4091
|
z.literal("primary")
|
|
4020
4092
|
]);
|
|
4021
|
-
var
|
|
4022
|
-
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()
|
|
4023
4117
|
});
|
|
4024
|
-
var sizeSchema = z.union([
|
|
4025
|
-
z.literal("xs"),
|
|
4026
|
-
z.literal("sm"),
|
|
4027
|
-
z.literal("md"),
|
|
4028
|
-
z.literal("lg"),
|
|
4029
|
-
z.literal("xl")
|
|
4030
|
-
]);
|
|
4031
|
-
var autocapitalizationTypeSchema = z.union([
|
|
4032
|
-
z.literal("none"),
|
|
4033
|
-
z.literal("characters"),
|
|
4034
|
-
z.literal("sentences"),
|
|
4035
|
-
z.literal("words")
|
|
4036
|
-
]);
|
|
4037
4118
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
4038
|
-
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
|
+
});
|
|
4039
4179
|
var autocompleteTokenSchema = z.union([
|
|
4040
4180
|
z.literal("on"),
|
|
4041
4181
|
z.literal("name"),
|
|
@@ -4101,123 +4241,17 @@ var autocompleteTokenSchema = z.union([
|
|
|
4101
4241
|
z.literal("fax"),
|
|
4102
4242
|
z.literal("pager")
|
|
4103
4243
|
]);
|
|
4104
|
-
var
|
|
4105
|
-
type: z.literal("loading-indicator"),
|
|
4106
|
-
size: sizeSchema.optional(),
|
|
4107
|
-
control: z.string().optional(),
|
|
4108
|
-
margin: sizeSchema.optional()
|
|
4109
|
-
});
|
|
4110
|
-
var paragraphLayoutSchema = z.object({
|
|
4111
|
-
type: z.literal("paragraph"),
|
|
4112
|
-
text: z.string(),
|
|
4113
|
-
align: alignSchema.optional(),
|
|
4114
|
-
control: z.string().optional(),
|
|
4115
|
-
margin: sizeSchema.optional()
|
|
4116
|
-
});
|
|
4117
|
-
var dividerLayoutSchema = z.object({
|
|
4118
|
-
type: z.literal("divider"),
|
|
4119
|
-
control: z.string().optional(),
|
|
4120
|
-
margin: sizeSchema.optional()
|
|
4121
|
-
});
|
|
4122
|
-
var listLayoutStatusSchema = z.union([
|
|
4123
|
-
z.literal("warning"),
|
|
4124
|
-
z.literal("neutral"),
|
|
4125
|
-
z.literal("positive")
|
|
4126
|
-
]);
|
|
4127
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
4128
|
-
$ref: z.string()
|
|
4129
|
-
});
|
|
4130
|
-
var imageLayoutSchema = z.object({
|
|
4131
|
-
type: z.literal("image"),
|
|
4132
|
-
text: z.string().optional(),
|
|
4133
|
-
url: z.string().optional(),
|
|
4134
|
-
accessibilityDescription: z.string().optional(),
|
|
4135
|
-
content: imageSchema.optional(),
|
|
4136
|
-
size: sizeSchema.optional(),
|
|
4137
|
-
control: z.string().optional(),
|
|
4138
|
-
margin: sizeSchema.optional()
|
|
4139
|
-
});
|
|
4140
|
-
var statusListLayoutStatusSchema = z.union([
|
|
4141
|
-
z.literal("not-done"),
|
|
4142
|
-
z.literal("pending"),
|
|
4143
|
-
z.literal("done")
|
|
4144
|
-
]);
|
|
4145
|
-
var instructionsLayoutItemSchema = z.object({
|
|
4146
|
-
text: z.string(),
|
|
4147
|
-
context: contextSchema,
|
|
4148
|
-
tag: z.string().optional()
|
|
4149
|
-
});
|
|
4150
|
-
var modalLayoutTriggerSchema = z.object({
|
|
4151
|
-
title: z.string()
|
|
4152
|
-
});
|
|
4153
|
-
var searchLayoutSchema = z.object({
|
|
4154
|
-
type: z.literal("search"),
|
|
4155
|
-
title: z.string(),
|
|
4156
|
-
method: httpMethodSchema,
|
|
4157
|
-
url: z.string(),
|
|
4158
|
-
param: z.string(),
|
|
4159
|
-
emptyMessage: z.string().optional(),
|
|
4160
|
-
control: z.string().optional(),
|
|
4161
|
-
margin: sizeSchema.optional()
|
|
4162
|
-
});
|
|
4163
|
-
var infoLayoutSchema = z.object({
|
|
4164
|
-
type: z.literal("info"),
|
|
4165
|
-
markdown: z.string(),
|
|
4166
|
-
align: alignSchema.optional(),
|
|
4167
|
-
control: z.string().optional(),
|
|
4168
|
-
margin: sizeSchema.optional()
|
|
4169
|
-
});
|
|
4170
|
-
var formLayoutSchema = z.object({
|
|
4171
|
-
type: z.literal("form"),
|
|
4172
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
4173
|
-
schemaId: z.string(),
|
|
4174
|
-
control: z.string().optional(),
|
|
4175
|
-
margin: sizeSchema.optional()
|
|
4176
|
-
});
|
|
4177
|
-
var headingLayoutSchema = z.object({
|
|
4178
|
-
type: z.literal("heading"),
|
|
4179
|
-
text: z.string(),
|
|
4180
|
-
size: sizeSchema.optional(),
|
|
4181
|
-
align: alignSchema.optional(),
|
|
4182
|
-
control: z.string().optional(),
|
|
4183
|
-
margin: sizeSchema.optional()
|
|
4184
|
-
});
|
|
4185
|
-
var markdownLayoutSchema = z.object({
|
|
4186
|
-
type: z.literal("markdown"),
|
|
4187
|
-
content: z.string(),
|
|
4188
|
-
align: alignSchema.optional(),
|
|
4189
|
-
control: z.string().optional(),
|
|
4190
|
-
margin: sizeSchema.optional()
|
|
4191
|
-
});
|
|
4192
|
-
var columnsLayoutBiasSchema = z.union([
|
|
4244
|
+
var autocapitalizationTypeSchema = z.union([
|
|
4193
4245
|
z.literal("none"),
|
|
4194
|
-
z.literal("
|
|
4195
|
-
z.literal("
|
|
4246
|
+
z.literal("characters"),
|
|
4247
|
+
z.literal("sentences"),
|
|
4248
|
+
z.literal("words")
|
|
4196
4249
|
]);
|
|
4197
|
-
var
|
|
4198
|
-
|
|
4199
|
-
});
|
|
4200
|
-
var
|
|
4201
|
-
|
|
4202
|
-
method: httpMethodSchema,
|
|
4203
|
-
param: z.string(),
|
|
4204
|
-
query: z.string()
|
|
4205
|
-
});
|
|
4206
|
-
var jsonElementSchema = z.lazy(
|
|
4207
|
-
() => z.union([
|
|
4208
|
-
z.string(),
|
|
4209
|
-
z.number(),
|
|
4210
|
-
z.boolean(),
|
|
4211
|
-
z.record(jsonElementSchema),
|
|
4212
|
-
z.array(jsonElementSchema)
|
|
4213
|
-
]).nullable()
|
|
4214
|
-
);
|
|
4215
|
-
var externalSchema = z.object({
|
|
4216
|
-
url: z.string()
|
|
4217
|
-
});
|
|
4218
|
-
var stepErrorSchema = z.object({
|
|
4219
|
-
error: z.string().optional(),
|
|
4220
|
-
validation: jsonElementSchema.optional()
|
|
4250
|
+
var iconNamedSchema = z.object({
|
|
4251
|
+
name: z.string()
|
|
4252
|
+
});
|
|
4253
|
+
var iconTextSchema = z.object({
|
|
4254
|
+
text: z.string()
|
|
4221
4255
|
});
|
|
4222
4256
|
var stringSchemaFormatSchema = z.union([
|
|
4223
4257
|
z.literal("date"),
|
|
@@ -4227,48 +4261,9 @@ var stringSchemaFormatSchema = z.union([
|
|
|
4227
4261
|
z.literal("phone-number"),
|
|
4228
4262
|
z.literal("base64url")
|
|
4229
4263
|
]);
|
|
4230
|
-
var
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
defaultIcon: iconSchema.optional(),
|
|
4234
|
-
defaultImage: imageSchema.optional(),
|
|
4235
|
-
providesTitle: z.boolean().optional(),
|
|
4236
|
-
providesDescription: z.boolean().optional(),
|
|
4237
|
-
providesIcon: z.boolean().optional(),
|
|
4238
|
-
providesImage: z.boolean().optional()
|
|
4239
|
-
});
|
|
4240
|
-
var validateAsyncSchema = z.object({
|
|
4241
|
-
param: z.string(),
|
|
4242
|
-
method: httpMethodSchema,
|
|
4243
|
-
url: z.string()
|
|
4244
|
-
});
|
|
4245
|
-
var summaryProviderSchema = z.object({
|
|
4246
|
-
providesTitle: z.boolean().optional(),
|
|
4247
|
-
providesDescription: z.boolean().optional(),
|
|
4248
|
-
providesIcon: z.boolean().optional(),
|
|
4249
|
-
providesImage: z.boolean().optional()
|
|
4250
|
-
});
|
|
4251
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4252
|
-
var navigationStackBehaviorSchema = z.union([
|
|
4253
|
-
z.literal("default"),
|
|
4254
|
-
z.literal("remove-previous"),
|
|
4255
|
-
z.literal("remove-all"),
|
|
4256
|
-
z.literal("replace-current")
|
|
4257
|
-
]);
|
|
4258
|
-
var actionTypeSchema = z.union([
|
|
4259
|
-
z.literal("primary"),
|
|
4260
|
-
z.literal("secondary"),
|
|
4261
|
-
z.literal("link"),
|
|
4262
|
-
z.literal("positive"),
|
|
4263
|
-
z.literal("negative")
|
|
4264
|
-
]);
|
|
4265
|
-
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4266
|
-
var linkBehaviorSchema = z.object({
|
|
4267
|
-
type: z.literal("link"),
|
|
4268
|
-
url: z.string()
|
|
4269
|
-
});
|
|
4270
|
-
var linkSchema = z.object({
|
|
4271
|
-
url: z.string()
|
|
4264
|
+
var stepErrorSchema = z.object({
|
|
4265
|
+
error: z.string().optional(),
|
|
4266
|
+
validation: jsonElementSchema.optional()
|
|
4272
4267
|
});
|
|
4273
4268
|
var actionSchema = z.object({
|
|
4274
4269
|
title: z.string().optional(),
|
|
@@ -4285,6 +4280,21 @@ var actionSchema = z.object({
|
|
|
4285
4280
|
timeout: z.number().optional(),
|
|
4286
4281
|
skipValidation: z.boolean().optional()
|
|
4287
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(),
|
|
4288
|
+
control: z.string().optional(),
|
|
4289
|
+
margin: sizeSchema.optional()
|
|
4290
|
+
});
|
|
4291
|
+
var infoLayoutSchema = z.object({
|
|
4292
|
+
type: z.literal("info"),
|
|
4293
|
+
markdown: z.string(),
|
|
4294
|
+
align: alignSchema.optional(),
|
|
4295
|
+
control: z.string().optional(),
|
|
4296
|
+
margin: sizeSchema.optional()
|
|
4297
|
+
});
|
|
4288
4298
|
var listLayoutItemSchema = z.object({
|
|
4289
4299
|
description: z.string().optional(),
|
|
4290
4300
|
status: listLayoutStatusSchema.optional(),
|
|
@@ -4296,73 +4306,78 @@ var listLayoutItemSchema = z.object({
|
|
|
4296
4306
|
subvalue: z.string().optional(),
|
|
4297
4307
|
tag: z.string().optional()
|
|
4298
4308
|
});
|
|
4299
|
-
var
|
|
4300
|
-
|
|
4301
|
-
title: z.string().optional(),
|
|
4302
|
-
items: z.array(instructionsLayoutItemSchema),
|
|
4303
|
-
control: z.string().optional(),
|
|
4304
|
-
margin: sizeSchema.optional()
|
|
4305
|
-
});
|
|
4306
|
-
var reviewLayoutFieldSchema = z.object({
|
|
4307
|
-
label: z.string(),
|
|
4308
|
-
value: z.string(),
|
|
4309
|
-
rawValue: z.string().optional(),
|
|
4310
|
-
help: helpSchema.optional(),
|
|
4311
|
-
tag: z.string().optional()
|
|
4309
|
+
var actionResponseBodySchema = z.object({
|
|
4310
|
+
action: actionSchema
|
|
4312
4311
|
});
|
|
4313
|
-
var
|
|
4314
|
-
type: z.literal("
|
|
4312
|
+
var searchResultActionSchema = z.object({
|
|
4313
|
+
type: z.literal("action"),
|
|
4315
4314
|
title: z.string(),
|
|
4316
4315
|
description: z.string().optional(),
|
|
4317
4316
|
icon: iconSchema.optional(),
|
|
4318
4317
|
image: imageSchema.optional(),
|
|
4319
|
-
value:
|
|
4318
|
+
value: actionSchema
|
|
4320
4319
|
});
|
|
4321
|
-
var
|
|
4322
|
-
type: z.literal("
|
|
4320
|
+
var searchResultSearchSchema = z.object({
|
|
4321
|
+
type: z.literal("search"),
|
|
4323
4322
|
title: z.string(),
|
|
4324
4323
|
description: z.string().optional(),
|
|
4325
4324
|
icon: iconSchema.optional(),
|
|
4326
4325
|
image: imageSchema.optional(),
|
|
4327
|
-
value:
|
|
4326
|
+
value: searchSearchRequestSchema
|
|
4328
4327
|
});
|
|
4329
|
-
var
|
|
4328
|
+
var actionBehaviorSchema = z.object({
|
|
4329
|
+
type: z.literal("action"),
|
|
4330
4330
|
action: actionSchema
|
|
4331
4331
|
});
|
|
4332
|
-
var
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
error: z.string().optional(),
|
|
4336
|
-
validation: jsonElementSchema.optional(),
|
|
4337
|
-
refreshUrl: z.string().optional()
|
|
4332
|
+
var containerBehaviorSchema = z.object({
|
|
4333
|
+
action: actionSchema.optional(),
|
|
4334
|
+
link: linkSchema.optional()
|
|
4338
4335
|
});
|
|
4339
4336
|
var navigationBackBehaviorSchema = z.object({
|
|
4340
4337
|
title: z.string().optional(),
|
|
4341
4338
|
action: actionSchema
|
|
4342
4339
|
});
|
|
4343
|
-
var
|
|
4344
|
-
|
|
4345
|
-
|
|
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()
|
|
4346
4349
|
});
|
|
4347
|
-
var
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4351
|
+
var searchResponseBodySchema = z.object({
|
|
4352
|
+
results: z.array(searchResultSchema)
|
|
4350
4353
|
});
|
|
4351
4354
|
var behaviorSchema = z.union([
|
|
4352
4355
|
actionBehaviorSchema,
|
|
4353
4356
|
containerBehaviorSchema,
|
|
4354
4357
|
linkBehaviorSchema
|
|
4355
4358
|
]);
|
|
4356
|
-
var
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4359
|
+
var navigationSchema = z.object({
|
|
4360
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
4361
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
4362
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4360
4363
|
});
|
|
4361
|
-
var
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
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
|
|
4365
4379
|
});
|
|
4380
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4366
4381
|
var decisionLayoutOptionSchema = z.object({
|
|
4367
4382
|
action: actionSchema.optional(),
|
|
4368
4383
|
title: z.string(),
|
|
@@ -4373,11 +4388,6 @@ var decisionLayoutOptionSchema = z.object({
|
|
|
4373
4388
|
behavior: behaviorSchema.optional(),
|
|
4374
4389
|
tag: z.string().optional()
|
|
4375
4390
|
});
|
|
4376
|
-
var itemCallToActionSchema = z.object({
|
|
4377
|
-
title: z.string(),
|
|
4378
|
-
accessibilityDescription: z.string().optional(),
|
|
4379
|
-
behavior: behaviorSchema
|
|
4380
|
-
});
|
|
4381
4391
|
var buttonLayoutSchema = z.object({
|
|
4382
4392
|
type: z.literal("button"),
|
|
4383
4393
|
action: actionSchema.optional(),
|
|
@@ -4390,26 +4400,22 @@ var buttonLayoutSchema = z.object({
|
|
|
4390
4400
|
control: z.string().optional(),
|
|
4391
4401
|
margin: sizeSchema.optional()
|
|
4392
4402
|
});
|
|
4393
|
-
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4394
|
-
var linkHandlerSchema = z.object({
|
|
4395
|
-
regexPattern: z.string(),
|
|
4396
|
-
behavior: behaviorSchema.optional()
|
|
4397
|
-
});
|
|
4398
|
-
var navigationSchema = z.object({
|
|
4399
|
-
backButton: navigationBackBehaviorSchema.optional(),
|
|
4400
|
-
back: navigationBackBehaviorSchema.optional(),
|
|
4401
|
-
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4402
|
-
});
|
|
4403
|
-
var pollingOnErrorSchema = z.object({
|
|
4404
|
-
action: actionSchema.optional(),
|
|
4405
|
-
behavior: behaviorSchema.optional()
|
|
4406
|
-
});
|
|
4407
4403
|
var reviewLayoutCallToActionSchema = z.object({
|
|
4408
4404
|
action: actionSchema.optional(),
|
|
4409
4405
|
title: z.string(),
|
|
4410
4406
|
accessibilityDescription: z.string().optional(),
|
|
4411
4407
|
behavior: behaviorSchema.optional()
|
|
4412
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
|
+
});
|
|
4413
4419
|
var alertLayoutSchema = z.object({
|
|
4414
4420
|
type: z.literal("alert"),
|
|
4415
4421
|
markdown: z.string(),
|
|
@@ -4418,13 +4424,10 @@ var alertLayoutSchema = z.object({
|
|
|
4418
4424
|
margin: sizeSchema.optional(),
|
|
4419
4425
|
callToAction: alertLayoutCallToActionSchema.optional()
|
|
4420
4426
|
});
|
|
4421
|
-
var
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
items: z.array(listLayoutItemSchema),
|
|
4426
|
-
control: z.string().optional(),
|
|
4427
|
-
margin: sizeSchema.optional()
|
|
4427
|
+
var listLayoutCallToActionSchema = z.object({
|
|
4428
|
+
title: z.string(),
|
|
4429
|
+
accessibilityDescription: z.string().optional(),
|
|
4430
|
+
behavior: behaviorSchema
|
|
4428
4431
|
});
|
|
4429
4432
|
var decisionLayoutSchema = z.object({
|
|
4430
4433
|
type: z.literal("decision"),
|
|
@@ -4433,34 +4436,29 @@ var decisionLayoutSchema = z.object({
|
|
|
4433
4436
|
control: z.string().optional(),
|
|
4434
4437
|
margin: sizeSchema.optional()
|
|
4435
4438
|
});
|
|
4436
|
-
var
|
|
4437
|
-
|
|
4438
|
-
description: z.string().optional(),
|
|
4439
|
-
icon: iconSchema,
|
|
4440
|
-
status: statusListLayoutStatusSchema.optional(),
|
|
4441
|
-
callToAction: itemCallToActionSchema.optional(),
|
|
4442
|
-
tag: z.string().optional()
|
|
4443
|
-
});
|
|
4444
|
-
var reviewLayoutSchema = z.object({
|
|
4445
|
-
type: z.literal("review"),
|
|
4446
|
-
orientation: z.string().optional(),
|
|
4447
|
-
action: actionSchema.optional(),
|
|
4448
|
-
fields: z.array(reviewLayoutFieldSchema),
|
|
4439
|
+
var listLayoutSchema = z.object({
|
|
4440
|
+
type: z.literal("list"),
|
|
4449
4441
|
title: z.string().optional(),
|
|
4450
|
-
callToAction:
|
|
4442
|
+
callToAction: listLayoutCallToActionSchema.optional(),
|
|
4443
|
+
items: z.array(listLayoutItemSchema),
|
|
4451
4444
|
control: z.string().optional(),
|
|
4452
4445
|
margin: sizeSchema.optional()
|
|
4453
4446
|
});
|
|
4454
|
-
var
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
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()
|
|
4464
4462
|
});
|
|
4465
4463
|
var blobSchemaSchema = z.object({
|
|
4466
4464
|
type: z.literal("blob"),
|
|
@@ -4484,21 +4482,23 @@ var blobSchemaSchema = z.object({
|
|
|
4484
4482
|
source: uploadSourceSchema.optional(),
|
|
4485
4483
|
disabled: z.boolean().optional()
|
|
4486
4484
|
});
|
|
4487
|
-
var
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
$id: z.string().optional(),
|
|
4493
|
-
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),
|
|
4494
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(),
|
|
4495
4497
|
description: z.string().optional(),
|
|
4496
|
-
icon: iconSchema
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
analyticsId: z.string().optional(),
|
|
4501
|
-
disabled: z.boolean().optional()
|
|
4498
|
+
icon: iconSchema,
|
|
4499
|
+
status: statusListLayoutStatusSchema.optional(),
|
|
4500
|
+
callToAction: itemCallToActionSchema.optional(),
|
|
4501
|
+
tag: z.string().optional()
|
|
4502
4502
|
});
|
|
4503
4503
|
var statusListLayoutSchema = z.object({
|
|
4504
4504
|
type: z.literal("status-list"),
|
|
@@ -4507,6 +4507,39 @@ var statusListLayoutSchema = z.object({
|
|
|
4507
4507
|
control: z.string().optional(),
|
|
4508
4508
|
margin: sizeSchema.optional()
|
|
4509
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
|
+
);
|
|
4510
4543
|
var layoutSchema = z.lazy(
|
|
4511
4544
|
() => z.union([
|
|
4512
4545
|
alertLayoutSchema,
|
|
@@ -4530,6 +4563,12 @@ var layoutSchema = z.lazy(
|
|
|
4530
4563
|
statusListLayoutSchema
|
|
4531
4564
|
])
|
|
4532
4565
|
);
|
|
4566
|
+
var modalLayoutContentSchema = z.lazy(
|
|
4567
|
+
() => z.object({
|
|
4568
|
+
title: z.string().optional(),
|
|
4569
|
+
components: z.array(layoutSchema)
|
|
4570
|
+
})
|
|
4571
|
+
);
|
|
4533
4572
|
var boxLayoutSchema = z.lazy(
|
|
4534
4573
|
() => z.object({
|
|
4535
4574
|
type: z.literal("box"),
|
|
@@ -4540,16 +4579,6 @@ var boxLayoutSchema = z.lazy(
|
|
|
4540
4579
|
margin: sizeSchema.optional()
|
|
4541
4580
|
})
|
|
4542
4581
|
);
|
|
4543
|
-
var columnsLayoutSchema = z.lazy(
|
|
4544
|
-
() => z.object({
|
|
4545
|
-
type: z.literal("columns"),
|
|
4546
|
-
left: z.array(layoutSchema),
|
|
4547
|
-
right: z.array(layoutSchema),
|
|
4548
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
4549
|
-
control: z.string().optional(),
|
|
4550
|
-
margin: sizeSchema.optional()
|
|
4551
|
-
})
|
|
4552
|
-
);
|
|
4553
4582
|
var modalLayoutSchema = z.lazy(
|
|
4554
4583
|
() => z.object({
|
|
4555
4584
|
type: z.literal("modal"),
|
|
@@ -4559,12 +4588,6 @@ var modalLayoutSchema = z.lazy(
|
|
|
4559
4588
|
content: modalLayoutContentSchema
|
|
4560
4589
|
})
|
|
4561
4590
|
);
|
|
4562
|
-
var modalLayoutContentSchema = z.lazy(
|
|
4563
|
-
() => z.object({
|
|
4564
|
-
title: z.string().optional(),
|
|
4565
|
-
components: z.array(layoutSchema)
|
|
4566
|
-
})
|
|
4567
|
-
);
|
|
4568
4591
|
var stepSchema = z.lazy(
|
|
4569
4592
|
() => z.object({
|
|
4570
4593
|
key: z.string().optional(),
|
|
@@ -4584,57 +4607,33 @@ var stepSchema = z.lazy(
|
|
|
4584
4607
|
errors: stepErrorSchema.optional(),
|
|
4585
4608
|
navigation: navigationSchema.optional(),
|
|
4586
4609
|
refreshUrl: z.string().optional(),
|
|
4610
|
+
refreshAfter: z.string().optional(),
|
|
4587
4611
|
control: z.string().optional()
|
|
4588
4612
|
})
|
|
4589
4613
|
);
|
|
4590
|
-
var
|
|
4591
|
-
() => z.union([
|
|
4592
|
-
allOfSchemaSchema,
|
|
4593
|
-
arraySchemaSchema,
|
|
4594
|
-
blobSchemaSchema,
|
|
4595
|
-
booleanSchemaSchema,
|
|
4596
|
-
constSchemaSchema,
|
|
4597
|
-
integerSchemaSchema,
|
|
4598
|
-
numberSchemaSchema,
|
|
4599
|
-
objectSchemaSchema,
|
|
4600
|
-
oneOfSchemaSchema,
|
|
4601
|
-
stringSchemaSchema
|
|
4602
|
-
])
|
|
4603
|
-
);
|
|
4604
|
-
var allOfSchemaSchema = z.lazy(
|
|
4605
|
-
() => z.object({
|
|
4606
|
-
disabled: z.boolean().optional(),
|
|
4607
|
-
promoted: z.boolean().optional(),
|
|
4608
|
-
allOf: z.array(schemaSchema),
|
|
4609
|
-
$id: z.string().optional(),
|
|
4610
|
-
title: z.string().optional(),
|
|
4611
|
-
description: z.string().optional(),
|
|
4612
|
-
control: z.string().optional(),
|
|
4613
|
-
hidden: z.boolean().optional(),
|
|
4614
|
-
icon: iconSchema.optional(),
|
|
4615
|
-
image: imageSchema.optional(),
|
|
4616
|
-
keywords: z.array(z.string()).optional(),
|
|
4617
|
-
summary: summaryProviderSchema.optional(),
|
|
4618
|
-
analyticsId: z.string().optional(),
|
|
4619
|
-
alert: alertLayoutSchema.optional()
|
|
4620
|
-
})
|
|
4621
|
-
);
|
|
4622
|
-
var arraySchemaSchema = z.lazy(
|
|
4623
|
-
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
4624
|
-
);
|
|
4625
|
-
var booleanSchemaSchema = z.lazy(
|
|
4614
|
+
var stringSchemaSchema = z.lazy(
|
|
4626
4615
|
() => z.object({
|
|
4627
|
-
type: z.literal("
|
|
4616
|
+
type: z.literal("string"),
|
|
4628
4617
|
autofillProvider: z.string().optional(),
|
|
4629
4618
|
promoted: z.boolean().optional(),
|
|
4630
4619
|
refreshFormOnChange: z.boolean().optional(),
|
|
4631
4620
|
refreshUrl: z.string().optional(),
|
|
4632
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(),
|
|
4633
4632
|
$id: z.string().optional(),
|
|
4634
4633
|
title: z.string().optional(),
|
|
4635
4634
|
description: z.string().optional(),
|
|
4636
4635
|
control: z.string().optional(),
|
|
4637
|
-
default: z.
|
|
4636
|
+
default: z.string().optional(),
|
|
4638
4637
|
hidden: z.boolean().optional(),
|
|
4639
4638
|
disabled: z.boolean().optional(),
|
|
4640
4639
|
icon: iconSchema.optional(),
|
|
@@ -4645,42 +4644,45 @@ var booleanSchemaSchema = z.lazy(
|
|
|
4645
4644
|
persistAsync: persistAsyncSchema.optional(),
|
|
4646
4645
|
refreshStepOnChange: z.boolean().optional(),
|
|
4647
4646
|
validationAsync: validateAsyncSchema.optional(),
|
|
4647
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4648
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(),
|
|
4649
4654
|
autofillKey: z.string().optional(),
|
|
4650
4655
|
help: helpSchema.optional()
|
|
4651
4656
|
})
|
|
4652
4657
|
);
|
|
4653
|
-
var
|
|
4658
|
+
var oneOfSchemaSchema = z.lazy(
|
|
4654
4659
|
() => z.object({
|
|
4655
|
-
type: z.literal("integer"),
|
|
4656
4660
|
autofillProvider: z.string().optional(),
|
|
4657
4661
|
promoted: z.boolean().optional(),
|
|
4658
4662
|
refreshFormOnChange: z.boolean().optional(),
|
|
4659
4663
|
refreshUrl: z.string().optional(),
|
|
4660
4664
|
refreshFormUrl: z.string().optional(),
|
|
4665
|
+
promotion: jsonElementSchema.optional(),
|
|
4666
|
+
oneOf: z.array(schemaSchema),
|
|
4661
4667
|
placeholder: z.string().optional(),
|
|
4662
|
-
minimum: z.number().optional(),
|
|
4663
|
-
maximum: z.number().optional(),
|
|
4664
4668
|
$id: z.string().optional(),
|
|
4665
4669
|
title: z.string().optional(),
|
|
4666
4670
|
description: z.string().optional(),
|
|
4667
4671
|
control: z.string().optional(),
|
|
4668
|
-
default:
|
|
4672
|
+
default: jsonElementSchema.optional(),
|
|
4669
4673
|
hidden: z.boolean().optional(),
|
|
4670
|
-
disabled: z.boolean().optional(),
|
|
4671
4674
|
icon: iconSchema.optional(),
|
|
4672
4675
|
image: imageSchema.optional(),
|
|
4673
4676
|
keywords: z.array(z.string()).optional(),
|
|
4674
4677
|
summary: summaryProviderSchema.optional(),
|
|
4675
4678
|
analyticsId: z.string().optional(),
|
|
4676
|
-
persistAsync: persistAsyncSchema.optional(),
|
|
4677
4679
|
refreshStepOnChange: z.boolean().optional(),
|
|
4678
|
-
validationAsync: validateAsyncSchema.optional(),
|
|
4679
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4680
4680
|
alert: alertLayoutSchema.optional(),
|
|
4681
|
+
help: helpSchema.optional(),
|
|
4681
4682
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
4682
4683
|
autofillKey: z.string().optional(),
|
|
4683
|
-
|
|
4684
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4685
|
+
disabled: z.boolean().optional()
|
|
4684
4686
|
})
|
|
4685
4687
|
);
|
|
4686
4688
|
var numberSchemaSchema = z.lazy(
|
|
@@ -4716,16 +4718,12 @@ var numberSchemaSchema = z.lazy(
|
|
|
4716
4718
|
help: helpSchema.optional()
|
|
4717
4719
|
})
|
|
4718
4720
|
);
|
|
4719
|
-
var
|
|
4721
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
4720
4722
|
() => z.object({
|
|
4721
|
-
type: z.literal("
|
|
4722
|
-
disabled: z.boolean().optional(),
|
|
4723
|
+
type: z.literal("array"),
|
|
4723
4724
|
promoted: z.boolean().optional(),
|
|
4724
|
-
help: helpSchema.optional(),
|
|
4725
|
-
properties: z.record(schemaSchema),
|
|
4726
|
-
displayOrder: z.array(z.string()),
|
|
4727
|
-
required: z.array(z.string()).optional(),
|
|
4728
4725
|
$id: z.string().optional(),
|
|
4726
|
+
items: z.array(schemaSchema),
|
|
4729
4727
|
title: z.string().optional(),
|
|
4730
4728
|
description: z.string().optional(),
|
|
4731
4729
|
control: z.string().optional(),
|
|
@@ -4735,62 +4733,27 @@ var objectSchemaSchema = z.lazy(
|
|
|
4735
4733
|
keywords: z.array(z.string()).optional(),
|
|
4736
4734
|
summary: summaryProviderSchema.optional(),
|
|
4737
4735
|
analyticsId: z.string().optional(),
|
|
4736
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
4737
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
4738
4738
|
alert: alertLayoutSchema.optional()
|
|
4739
4739
|
})
|
|
4740
4740
|
);
|
|
4741
|
-
var
|
|
4742
|
-
() => z.object({
|
|
4743
|
-
autofillProvider: z.string().optional(),
|
|
4744
|
-
promoted: z.boolean().optional(),
|
|
4745
|
-
refreshFormOnChange: z.boolean().optional(),
|
|
4746
|
-
refreshUrl: z.string().optional(),
|
|
4747
|
-
refreshFormUrl: z.string().optional(),
|
|
4748
|
-
promotion: jsonElementSchema.optional(),
|
|
4749
|
-
oneOf: z.array(schemaSchema),
|
|
4750
|
-
placeholder: z.string().optional(),
|
|
4751
|
-
$id: z.string().optional(),
|
|
4752
|
-
title: z.string().optional(),
|
|
4753
|
-
description: z.string().optional(),
|
|
4754
|
-
control: z.string().optional(),
|
|
4755
|
-
default: jsonElementSchema.optional(),
|
|
4756
|
-
hidden: z.boolean().optional(),
|
|
4757
|
-
icon: iconSchema.optional(),
|
|
4758
|
-
image: imageSchema.optional(),
|
|
4759
|
-
keywords: z.array(z.string()).optional(),
|
|
4760
|
-
summary: summaryProviderSchema.optional(),
|
|
4761
|
-
analyticsId: z.string().optional(),
|
|
4762
|
-
refreshStepOnChange: z.boolean().optional(),
|
|
4763
|
-
alert: alertLayoutSchema.optional(),
|
|
4764
|
-
help: helpSchema.optional(),
|
|
4765
|
-
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
4766
|
-
autofillKey: z.string().optional(),
|
|
4767
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4768
|
-
disabled: z.boolean().optional()
|
|
4769
|
-
})
|
|
4770
|
-
);
|
|
4771
|
-
var stringSchemaSchema = z.lazy(
|
|
4741
|
+
var integerSchemaSchema = z.lazy(
|
|
4772
4742
|
() => z.object({
|
|
4773
|
-
type: z.literal("
|
|
4743
|
+
type: z.literal("integer"),
|
|
4774
4744
|
autofillProvider: z.string().optional(),
|
|
4775
4745
|
promoted: z.boolean().optional(),
|
|
4776
4746
|
refreshFormOnChange: z.boolean().optional(),
|
|
4777
4747
|
refreshUrl: z.string().optional(),
|
|
4778
4748
|
refreshFormUrl: z.string().optional(),
|
|
4779
|
-
format: stringSchemaFormatSchema.optional(),
|
|
4780
|
-
displayFormat: z.string().optional(),
|
|
4781
4749
|
placeholder: z.string().optional(),
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
minimum: z.string().optional(),
|
|
4785
|
-
maximum: z.string().optional(),
|
|
4786
|
-
pattern: z.string().optional(),
|
|
4787
|
-
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
4788
|
-
autocorrect: z.boolean().optional(),
|
|
4750
|
+
minimum: z.number().optional(),
|
|
4751
|
+
maximum: z.number().optional(),
|
|
4789
4752
|
$id: z.string().optional(),
|
|
4790
4753
|
title: z.string().optional(),
|
|
4791
4754
|
description: z.string().optional(),
|
|
4792
4755
|
control: z.string().optional(),
|
|
4793
|
-
default: z.
|
|
4756
|
+
default: z.number().optional(),
|
|
4794
4757
|
hidden: z.boolean().optional(),
|
|
4795
4758
|
disabled: z.boolean().optional(),
|
|
4796
4759
|
icon: iconSchema.optional(),
|
|
@@ -4803,15 +4766,14 @@ var stringSchemaSchema = z.lazy(
|
|
|
4803
4766
|
validationAsync: validateAsyncSchema.optional(),
|
|
4804
4767
|
validationMessages: z.record(z.string()).optional(),
|
|
4805
4768
|
alert: alertLayoutSchema.optional(),
|
|
4806
|
-
cameraConfig: jsonElementSchema.optional(),
|
|
4807
|
-
accepts: z.array(z.string()).optional(),
|
|
4808
|
-
maxSize: z.number().optional(),
|
|
4809
|
-
source: uploadSourceSchema.optional(),
|
|
4810
4769
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
4811
4770
|
autofillKey: z.string().optional(),
|
|
4812
4771
|
help: helpSchema.optional()
|
|
4813
4772
|
})
|
|
4814
4773
|
);
|
|
4774
|
+
var arraySchemaSchema = z.lazy(
|
|
4775
|
+
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
4776
|
+
);
|
|
4815
4777
|
var arraySchemaListSchema = z.lazy(
|
|
4816
4778
|
() => z.object({
|
|
4817
4779
|
type: z.literal("array"),
|
|
@@ -4839,32 +4801,71 @@ var arraySchemaListSchema = z.lazy(
|
|
|
4839
4801
|
disabled: z.boolean().optional()
|
|
4840
4802
|
})
|
|
4841
4803
|
);
|
|
4842
|
-
var
|
|
4804
|
+
var allOfSchemaSchema = z.lazy(
|
|
4843
4805
|
() => z.object({
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
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()
|
|
4849
4820
|
})
|
|
4850
4821
|
);
|
|
4851
|
-
var
|
|
4822
|
+
var booleanSchemaSchema = z.lazy(
|
|
4852
4823
|
() => z.object({
|
|
4853
|
-
type: z.literal("
|
|
4824
|
+
type: z.literal("boolean"),
|
|
4825
|
+
autofillProvider: z.string().optional(),
|
|
4854
4826
|
promoted: z.boolean().optional(),
|
|
4827
|
+
refreshFormOnChange: z.boolean().optional(),
|
|
4828
|
+
refreshUrl: z.string().optional(),
|
|
4829
|
+
refreshFormUrl: z.string().optional(),
|
|
4855
4830
|
$id: z.string().optional(),
|
|
4856
|
-
items: z.array(schemaSchema),
|
|
4857
4831
|
title: z.string().optional(),
|
|
4858
4832
|
description: z.string().optional(),
|
|
4859
4833
|
control: z.string().optional(),
|
|
4834
|
+
default: z.boolean().optional(),
|
|
4860
4835
|
hidden: z.boolean().optional(),
|
|
4836
|
+
disabled: z.boolean().optional(),
|
|
4861
4837
|
icon: iconSchema.optional(),
|
|
4862
4838
|
image: imageSchema.optional(),
|
|
4863
4839
|
keywords: z.array(z.string()).optional(),
|
|
4864
4840
|
summary: summaryProviderSchema.optional(),
|
|
4865
4841
|
analyticsId: z.string().optional(),
|
|
4866
4842
|
persistAsync: persistAsyncSchema.optional(),
|
|
4843
|
+
refreshStepOnChange: z.boolean().optional(),
|
|
4867
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(),
|
|
4868
4869
|
alert: alertLayoutSchema.optional()
|
|
4869
4870
|
})
|
|
4870
4871
|
);
|