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