@wise/dynamic-flow-types 3.1.0-experimental-6bb6f02 → 3.1.0
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 +430 -418
- package/build/main.min.js +1 -1
- package/build/main.mjs +430 -418
- package/build/next/feature/Action.d.ts +1 -0
- package/build/next/feature/Suggestions.d.ts +11 -0
- package/build/next/feature/SuggestionsValue.d.ts +28 -0
- package/build/next/layout/ImageLayout.d.ts +5 -0
- package/build/next/schema/StringSchema.d.ts +6 -0
- package/build/next/step/Step.d.ts +5 -4
- package/build/zod/schemas.d.ts +5173 -5006
- package/build/zod/schemas.ts +33 -19
- package/package.json +2 -2
package/build/main.js
CHANGED
|
@@ -3992,37 +3992,11 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3992
3992
|
});
|
|
3993
3993
|
|
|
3994
3994
|
// src/zod/schemas.ts
|
|
3995
|
-
var
|
|
3996
|
-
|
|
3997
|
-
url: z.string()
|
|
3998
|
-
|
|
3999
|
-
|
|
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()
|
|
3995
|
+
var imageSchema = z.object({
|
|
3996
|
+
text: z.string().optional(),
|
|
3997
|
+
url: z.string().optional(),
|
|
3998
|
+
uri: z.string().optional(),
|
|
3999
|
+
accessibilityDescription: z.string().optional()
|
|
4026
4000
|
});
|
|
4027
4001
|
var httpMethodSchema = z.union([
|
|
4028
4002
|
z.literal("GET"),
|
|
@@ -4031,54 +4005,8 @@ var httpMethodSchema = z.union([
|
|
|
4031
4005
|
z.literal("PATCH"),
|
|
4032
4006
|
z.literal("DELETE")
|
|
4033
4007
|
]);
|
|
4034
|
-
var
|
|
4035
|
-
|
|
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()
|
|
4008
|
+
var iconNamedSchema = z.object({
|
|
4009
|
+
name: z.string()
|
|
4082
4010
|
});
|
|
4083
4011
|
var contextSchema = z.union([
|
|
4084
4012
|
z.literal("positive"),
|
|
@@ -4090,92 +4018,24 @@ var contextSchema = z.union([
|
|
|
4090
4018
|
z.literal("info"),
|
|
4091
4019
|
z.literal("primary")
|
|
4092
4020
|
]);
|
|
4093
|
-
var
|
|
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()
|
|
4117
|
-
});
|
|
4118
|
-
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
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()
|
|
4021
|
+
var iconTextSchema = z.object({
|
|
4022
|
+
text: z.string()
|
|
4160
4023
|
});
|
|
4161
|
-
var
|
|
4162
|
-
z.literal("
|
|
4163
|
-
z.literal("
|
|
4164
|
-
z.literal("
|
|
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")
|
|
4165
4030
|
]);
|
|
4166
|
-
var
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
var
|
|
4174
|
-
url: z.string(),
|
|
4175
|
-
method: httpMethodSchema,
|
|
4176
|
-
param: z.string(),
|
|
4177
|
-
query: z.string()
|
|
4178
|
-
});
|
|
4031
|
+
var autocapitalizationTypeSchema = z.union([
|
|
4032
|
+
z.literal("none"),
|
|
4033
|
+
z.literal("characters"),
|
|
4034
|
+
z.literal("sentences"),
|
|
4035
|
+
z.literal("words")
|
|
4036
|
+
]);
|
|
4037
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
4038
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4179
4039
|
var autocompleteTokenSchema = z.union([
|
|
4180
4040
|
z.literal("on"),
|
|
4181
4041
|
z.literal("name"),
|
|
@@ -4241,29 +4101,182 @@ var autocompleteTokenSchema = z.union([
|
|
|
4241
4101
|
z.literal("fax"),
|
|
4242
4102
|
z.literal("pager")
|
|
4243
4103
|
]);
|
|
4244
|
-
var
|
|
4104
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
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
|
+
align: alignSchema.optional()
|
|
4140
|
+
});
|
|
4141
|
+
var statusListLayoutStatusSchema = z.union([
|
|
4142
|
+
z.literal("not-done"),
|
|
4143
|
+
z.literal("pending"),
|
|
4144
|
+
z.literal("done")
|
|
4145
|
+
]);
|
|
4146
|
+
var instructionsLayoutItemSchema = z.object({
|
|
4147
|
+
text: z.string(),
|
|
4148
|
+
context: contextSchema,
|
|
4149
|
+
tag: z.string().optional()
|
|
4150
|
+
});
|
|
4151
|
+
var modalLayoutTriggerSchema = z.object({
|
|
4152
|
+
title: z.string()
|
|
4153
|
+
});
|
|
4154
|
+
var searchLayoutSchema = z.object({
|
|
4155
|
+
type: z.literal("search"),
|
|
4156
|
+
title: z.string(),
|
|
4157
|
+
method: httpMethodSchema,
|
|
4158
|
+
url: z.string(),
|
|
4159
|
+
param: z.string(),
|
|
4160
|
+
emptyMessage: z.string().optional(),
|
|
4161
|
+
control: z.string().optional(),
|
|
4162
|
+
margin: sizeSchema.optional()
|
|
4163
|
+
});
|
|
4164
|
+
var infoLayoutSchema = z.object({
|
|
4165
|
+
type: z.literal("info"),
|
|
4166
|
+
markdown: z.string(),
|
|
4167
|
+
align: alignSchema.optional(),
|
|
4168
|
+
control: z.string().optional(),
|
|
4169
|
+
margin: sizeSchema.optional()
|
|
4170
|
+
});
|
|
4171
|
+
var formLayoutSchema = z.object({
|
|
4172
|
+
type: z.literal("form"),
|
|
4173
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
4174
|
+
schemaId: z.string(),
|
|
4175
|
+
control: z.string().optional(),
|
|
4176
|
+
margin: sizeSchema.optional()
|
|
4177
|
+
});
|
|
4178
|
+
var headingLayoutSchema = z.object({
|
|
4179
|
+
type: z.literal("heading"),
|
|
4180
|
+
text: z.string(),
|
|
4181
|
+
size: sizeSchema.optional(),
|
|
4182
|
+
align: alignSchema.optional(),
|
|
4183
|
+
control: z.string().optional(),
|
|
4184
|
+
margin: sizeSchema.optional()
|
|
4185
|
+
});
|
|
4186
|
+
var markdownLayoutSchema = z.object({
|
|
4187
|
+
type: z.literal("markdown"),
|
|
4188
|
+
content: z.string(),
|
|
4189
|
+
align: alignSchema.optional(),
|
|
4190
|
+
control: z.string().optional(),
|
|
4191
|
+
margin: sizeSchema.optional()
|
|
4192
|
+
});
|
|
4193
|
+
var columnsLayoutBiasSchema = z.union([
|
|
4245
4194
|
z.literal("none"),
|
|
4246
|
-
z.literal("
|
|
4247
|
-
z.literal("
|
|
4248
|
-
z.literal("words")
|
|
4195
|
+
z.literal("left"),
|
|
4196
|
+
z.literal("right")
|
|
4249
4197
|
]);
|
|
4250
|
-
var
|
|
4251
|
-
|
|
4198
|
+
var helpSchema = z.object({
|
|
4199
|
+
markdown: z.string()
|
|
4200
|
+
});
|
|
4201
|
+
var searchSearchRequestSchema = z.object({
|
|
4202
|
+
url: z.string(),
|
|
4203
|
+
method: httpMethodSchema,
|
|
4204
|
+
param: z.string(),
|
|
4205
|
+
query: z.string()
|
|
4206
|
+
});
|
|
4207
|
+
var jsonElementSchema = z.lazy(
|
|
4208
|
+
() => z.union([
|
|
4209
|
+
z.string(),
|
|
4210
|
+
z.number(),
|
|
4211
|
+
z.boolean(),
|
|
4212
|
+
z.record(jsonElementSchema),
|
|
4213
|
+
z.array(jsonElementSchema)
|
|
4214
|
+
]).nullable()
|
|
4215
|
+
);
|
|
4216
|
+
var externalSchema = z.object({
|
|
4217
|
+
url: z.string()
|
|
4218
|
+
});
|
|
4219
|
+
var stepErrorSchema = z.object({
|
|
4220
|
+
error: z.string().optional(),
|
|
4221
|
+
validation: jsonElementSchema.optional()
|
|
4222
|
+
});
|
|
4223
|
+
var stringSchemaFormatSchema = z.union([
|
|
4224
|
+
z.literal("date"),
|
|
4225
|
+
z.literal("email"),
|
|
4226
|
+
z.literal("numeric"),
|
|
4227
|
+
z.literal("password"),
|
|
4228
|
+
z.literal("phone-number"),
|
|
4229
|
+
z.literal("base64url")
|
|
4230
|
+
]);
|
|
4231
|
+
var summarySummariserSchema = z.object({
|
|
4232
|
+
defaultTitle: z.string().optional(),
|
|
4233
|
+
defaultDescription: z.string().optional(),
|
|
4234
|
+
defaultIcon: iconSchema.optional(),
|
|
4235
|
+
defaultImage: imageSchema.optional(),
|
|
4236
|
+
providesTitle: z.boolean().optional(),
|
|
4237
|
+
providesDescription: z.boolean().optional(),
|
|
4238
|
+
providesIcon: z.boolean().optional(),
|
|
4239
|
+
providesImage: z.boolean().optional()
|
|
4240
|
+
});
|
|
4241
|
+
var validateAsyncSchema = z.object({
|
|
4242
|
+
param: z.string(),
|
|
4243
|
+
method: httpMethodSchema,
|
|
4244
|
+
url: z.string()
|
|
4252
4245
|
});
|
|
4253
|
-
var
|
|
4254
|
-
|
|
4246
|
+
var summaryProviderSchema = z.object({
|
|
4247
|
+
providesTitle: z.boolean().optional(),
|
|
4248
|
+
providesDescription: z.boolean().optional(),
|
|
4249
|
+
providesIcon: z.boolean().optional(),
|
|
4250
|
+
providesImage: z.boolean().optional()
|
|
4255
4251
|
});
|
|
4256
|
-
var
|
|
4257
|
-
|
|
4258
|
-
z.
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
z.
|
|
4252
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4253
|
+
var suggestionsValueSchema = z.object({
|
|
4254
|
+
label: z.string(),
|
|
4255
|
+
value: jsonElementSchema.optional(),
|
|
4256
|
+
icon: iconSchema.optional(),
|
|
4257
|
+
image: imageSchema.optional(),
|
|
4258
|
+
tag: z.string().optional()
|
|
4259
|
+
});
|
|
4260
|
+
var navigationStackBehaviorSchema = z.union([
|
|
4261
|
+
z.literal("default"),
|
|
4262
|
+
z.literal("remove-previous"),
|
|
4263
|
+
z.literal("remove-all"),
|
|
4264
|
+
z.literal("replace-current")
|
|
4263
4265
|
]);
|
|
4264
|
-
var
|
|
4265
|
-
|
|
4266
|
-
|
|
4266
|
+
var actionTypeSchema = z.union([
|
|
4267
|
+
z.literal("primary"),
|
|
4268
|
+
z.literal("secondary"),
|
|
4269
|
+
z.literal("link"),
|
|
4270
|
+
z.literal("positive"),
|
|
4271
|
+
z.literal("negative")
|
|
4272
|
+
]);
|
|
4273
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4274
|
+
var linkBehaviorSchema = z.object({
|
|
4275
|
+
type: z.literal("link"),
|
|
4276
|
+
url: z.string()
|
|
4277
|
+
});
|
|
4278
|
+
var linkSchema = z.object({
|
|
4279
|
+
url: z.string()
|
|
4267
4280
|
});
|
|
4268
4281
|
var actionSchema = z.object({
|
|
4269
4282
|
title: z.string().optional(),
|
|
@@ -4280,21 +4293,6 @@ var actionSchema = z.object({
|
|
|
4280
4293
|
timeout: z.number().optional(),
|
|
4281
4294
|
skipValidation: z.boolean().optional()
|
|
4282
4295
|
});
|
|
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
|
-
});
|
|
4298
4296
|
var listLayoutItemSchema = z.object({
|
|
4299
4297
|
description: z.string().optional(),
|
|
4300
4298
|
status: listLayoutStatusSchema.optional(),
|
|
@@ -4306,16 +4304,19 @@ var listLayoutItemSchema = z.object({
|
|
|
4306
4304
|
subvalue: z.string().optional(),
|
|
4307
4305
|
tag: z.string().optional()
|
|
4308
4306
|
});
|
|
4309
|
-
var
|
|
4310
|
-
|
|
4307
|
+
var instructionsLayoutSchema = z.object({
|
|
4308
|
+
type: z.literal("instructions"),
|
|
4309
|
+
title: z.string().optional(),
|
|
4310
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
4311
|
+
control: z.string().optional(),
|
|
4312
|
+
margin: sizeSchema.optional()
|
|
4311
4313
|
});
|
|
4312
|
-
var
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
value: actionSchema
|
|
4314
|
+
var reviewLayoutFieldSchema = z.object({
|
|
4315
|
+
label: z.string(),
|
|
4316
|
+
value: z.string(),
|
|
4317
|
+
rawValue: z.string().optional(),
|
|
4318
|
+
help: helpSchema.optional(),
|
|
4319
|
+
tag: z.string().optional()
|
|
4319
4320
|
});
|
|
4320
4321
|
var searchResultSearchSchema = z.object({
|
|
4321
4322
|
type: z.literal("search"),
|
|
@@ -4325,59 +4326,54 @@ var searchResultSearchSchema = z.object({
|
|
|
4325
4326
|
image: imageSchema.optional(),
|
|
4326
4327
|
value: searchSearchRequestSchema
|
|
4327
4328
|
});
|
|
4328
|
-
var
|
|
4329
|
+
var searchResultActionSchema = z.object({
|
|
4329
4330
|
type: z.literal("action"),
|
|
4331
|
+
title: z.string(),
|
|
4332
|
+
description: z.string().optional(),
|
|
4333
|
+
icon: iconSchema.optional(),
|
|
4334
|
+
image: imageSchema.optional(),
|
|
4335
|
+
value: actionSchema
|
|
4336
|
+
});
|
|
4337
|
+
var actionResponseBodySchema = z.object({
|
|
4330
4338
|
action: actionSchema
|
|
4331
4339
|
});
|
|
4332
|
-
var
|
|
4333
|
-
|
|
4334
|
-
|
|
4340
|
+
var errorResponseBodySchema = z.object({
|
|
4341
|
+
refreshFormUrl: z.string().optional(),
|
|
4342
|
+
analytics: z.record(z.string()).optional(),
|
|
4343
|
+
error: z.string().optional(),
|
|
4344
|
+
validation: jsonElementSchema.optional(),
|
|
4345
|
+
refreshUrl: z.string().optional()
|
|
4346
|
+
});
|
|
4347
|
+
var suggestionsSchema = z.object({
|
|
4348
|
+
values: z.array(suggestionsValueSchema)
|
|
4335
4349
|
});
|
|
4336
4350
|
var navigationBackBehaviorSchema = z.object({
|
|
4337
4351
|
title: z.string().optional(),
|
|
4338
4352
|
action: actionSchema
|
|
4339
4353
|
});
|
|
4340
|
-
var
|
|
4341
|
-
|
|
4342
|
-
|
|
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()
|
|
4354
|
+
var actionBehaviorSchema = z.object({
|
|
4355
|
+
type: z.literal("action"),
|
|
4356
|
+
action: actionSchema
|
|
4349
4357
|
});
|
|
4350
|
-
var
|
|
4351
|
-
|
|
4352
|
-
|
|
4358
|
+
var containerBehaviorSchema = z.object({
|
|
4359
|
+
action: actionSchema.optional(),
|
|
4360
|
+
link: linkSchema.optional()
|
|
4353
4361
|
});
|
|
4354
4362
|
var behaviorSchema = z.union([
|
|
4355
4363
|
actionBehaviorSchema,
|
|
4356
4364
|
containerBehaviorSchema,
|
|
4357
4365
|
linkBehaviorSchema
|
|
4358
4366
|
]);
|
|
4359
|
-
var
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
});
|
|
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()
|
|
4367
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
4368
|
+
title: z.string(),
|
|
4369
|
+
accessibilityDescription: z.string().optional(),
|
|
4370
|
+
behavior: behaviorSchema
|
|
4371
4371
|
});
|
|
4372
|
-
var
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
timeout: z.number().optional(),
|
|
4377
|
-
maxAttempts: z.number(),
|
|
4378
|
-
onError: pollingOnErrorSchema
|
|
4372
|
+
var listLayoutCallToActionSchema = z.object({
|
|
4373
|
+
title: z.string(),
|
|
4374
|
+
accessibilityDescription: z.string().optional(),
|
|
4375
|
+
behavior: behaviorSchema
|
|
4379
4376
|
});
|
|
4380
|
-
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4381
4377
|
var decisionLayoutOptionSchema = z.object({
|
|
4382
4378
|
action: actionSchema.optional(),
|
|
4383
4379
|
title: z.string(),
|
|
@@ -4388,6 +4384,11 @@ var decisionLayoutOptionSchema = z.object({
|
|
|
4388
4384
|
behavior: behaviorSchema.optional(),
|
|
4389
4385
|
tag: z.string().optional()
|
|
4390
4386
|
});
|
|
4387
|
+
var itemCallToActionSchema = z.object({
|
|
4388
|
+
title: z.string(),
|
|
4389
|
+
accessibilityDescription: z.string().optional(),
|
|
4390
|
+
behavior: behaviorSchema
|
|
4391
|
+
});
|
|
4391
4392
|
var buttonLayoutSchema = z.object({
|
|
4392
4393
|
type: z.literal("button"),
|
|
4393
4394
|
action: actionSchema.optional(),
|
|
@@ -4400,21 +4401,25 @@ var buttonLayoutSchema = z.object({
|
|
|
4400
4401
|
control: z.string().optional(),
|
|
4401
4402
|
margin: sizeSchema.optional()
|
|
4402
4403
|
});
|
|
4403
|
-
var
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
accessibilityDescription: z.string().optional(),
|
|
4404
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4405
|
+
var linkHandlerSchema = z.object({
|
|
4406
|
+
regexPattern: z.string(),
|
|
4407
4407
|
behavior: behaviorSchema.optional()
|
|
4408
4408
|
});
|
|
4409
|
-
var
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4409
|
+
var navigationSchema = z.object({
|
|
4410
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
4411
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
4412
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4413
4413
|
});
|
|
4414
|
-
var
|
|
4414
|
+
var pollingOnErrorSchema = z.object({
|
|
4415
|
+
action: actionSchema.optional(),
|
|
4416
|
+
behavior: behaviorSchema.optional()
|
|
4417
|
+
});
|
|
4418
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
4419
|
+
action: actionSchema.optional(),
|
|
4415
4420
|
title: z.string(),
|
|
4416
4421
|
accessibilityDescription: z.string().optional(),
|
|
4417
|
-
behavior: behaviorSchema
|
|
4422
|
+
behavior: behaviorSchema.optional()
|
|
4418
4423
|
});
|
|
4419
4424
|
var alertLayoutSchema = z.object({
|
|
4420
4425
|
type: z.literal("alert"),
|
|
@@ -4424,10 +4429,13 @@ var alertLayoutSchema = z.object({
|
|
|
4424
4429
|
margin: sizeSchema.optional(),
|
|
4425
4430
|
callToAction: alertLayoutCallToActionSchema.optional()
|
|
4426
4431
|
});
|
|
4427
|
-
var
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4432
|
+
var listLayoutSchema = z.object({
|
|
4433
|
+
type: z.literal("list"),
|
|
4434
|
+
title: z.string().optional(),
|
|
4435
|
+
callToAction: listLayoutCallToActionSchema.optional(),
|
|
4436
|
+
items: z.array(listLayoutItemSchema),
|
|
4437
|
+
control: z.string().optional(),
|
|
4438
|
+
margin: sizeSchema.optional()
|
|
4431
4439
|
});
|
|
4432
4440
|
var decisionLayoutSchema = z.object({
|
|
4433
4441
|
type: z.literal("decision"),
|
|
@@ -4436,29 +4444,34 @@ var decisionLayoutSchema = z.object({
|
|
|
4436
4444
|
control: z.string().optional(),
|
|
4437
4445
|
margin: sizeSchema.optional()
|
|
4438
4446
|
});
|
|
4439
|
-
var
|
|
4440
|
-
|
|
4447
|
+
var statusListLayoutItemSchema = z.object({
|
|
4448
|
+
title: z.string(),
|
|
4449
|
+
description: z.string().optional(),
|
|
4450
|
+
icon: iconSchema,
|
|
4451
|
+
status: statusListLayoutStatusSchema.optional(),
|
|
4452
|
+
callToAction: itemCallToActionSchema.optional(),
|
|
4453
|
+
tag: z.string().optional()
|
|
4454
|
+
});
|
|
4455
|
+
var reviewLayoutSchema = z.object({
|
|
4456
|
+
type: z.literal("review"),
|
|
4457
|
+
orientation: z.string().optional(),
|
|
4458
|
+
action: actionSchema.optional(),
|
|
4459
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
4441
4460
|
title: z.string().optional(),
|
|
4442
|
-
callToAction:
|
|
4443
|
-
items: z.array(listLayoutItemSchema),
|
|
4461
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
4444
4462
|
control: z.string().optional(),
|
|
4445
4463
|
margin: sizeSchema.optional()
|
|
4446
4464
|
});
|
|
4447
|
-
var
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
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()
|
|
4465
|
+
var searchResponseBodySchema = z.object({
|
|
4466
|
+
results: z.array(searchResultSchema)
|
|
4467
|
+
});
|
|
4468
|
+
var pollingSchema = z.object({
|
|
4469
|
+
interval: z.number().optional(),
|
|
4470
|
+
url: z.string(),
|
|
4471
|
+
delay: z.number().optional(),
|
|
4472
|
+
timeout: z.number().optional(),
|
|
4473
|
+
maxAttempts: z.number(),
|
|
4474
|
+
onError: pollingOnErrorSchema
|
|
4462
4475
|
});
|
|
4463
4476
|
var blobSchemaSchema = z.object({
|
|
4464
4477
|
type: z.literal("blob"),
|
|
@@ -4482,23 +4495,21 @@ var blobSchemaSchema = z.object({
|
|
|
4482
4495
|
source: uploadSourceSchema.optional(),
|
|
4483
4496
|
disabled: z.boolean().optional()
|
|
4484
4497
|
});
|
|
4485
|
-
var
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
action: actionSchema.optional(),
|
|
4489
|
-
fields: z.array(reviewLayoutFieldSchema),
|
|
4490
|
-
title: z.string().optional(),
|
|
4491
|
-
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
4498
|
+
var constSchemaSchema = z.object({
|
|
4499
|
+
hidden: z.boolean().optional(),
|
|
4500
|
+
alert: alertLayoutSchema.optional(),
|
|
4492
4501
|
control: z.string().optional(),
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
title: z.string(),
|
|
4502
|
+
promoted: z.boolean().optional(),
|
|
4503
|
+
$id: z.string().optional(),
|
|
4504
|
+
const: jsonElementSchema,
|
|
4505
|
+
title: z.string().optional(),
|
|
4497
4506
|
description: z.string().optional(),
|
|
4498
|
-
icon: iconSchema,
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4507
|
+
icon: iconSchema.optional(),
|
|
4508
|
+
image: imageSchema.optional(),
|
|
4509
|
+
keywords: z.array(z.string()).optional(),
|
|
4510
|
+
summary: summaryProviderSchema.optional(),
|
|
4511
|
+
analyticsId: z.string().optional(),
|
|
4512
|
+
disabled: z.boolean().optional()
|
|
4502
4513
|
});
|
|
4503
4514
|
var statusListLayoutSchema = z.object({
|
|
4504
4515
|
type: z.literal("status-list"),
|
|
@@ -4507,39 +4518,6 @@ var statusListLayoutSchema = z.object({
|
|
|
4507
4518
|
control: z.string().optional(),
|
|
4508
4519
|
margin: sizeSchema.optional()
|
|
4509
4520
|
});
|
|
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
|
-
);
|
|
4543
4521
|
var layoutSchema = z.lazy(
|
|
4544
4522
|
() => z.union([
|
|
4545
4523
|
alertLayoutSchema,
|
|
@@ -4563,12 +4541,6 @@ var layoutSchema = z.lazy(
|
|
|
4563
4541
|
statusListLayoutSchema
|
|
4564
4542
|
])
|
|
4565
4543
|
);
|
|
4566
|
-
var modalLayoutContentSchema = z.lazy(
|
|
4567
|
-
() => z.object({
|
|
4568
|
-
title: z.string().optional(),
|
|
4569
|
-
components: z.array(layoutSchema)
|
|
4570
|
-
})
|
|
4571
|
-
);
|
|
4572
4544
|
var boxLayoutSchema = z.lazy(
|
|
4573
4545
|
() => z.object({
|
|
4574
4546
|
type: z.literal("box"),
|
|
@@ -4579,6 +4551,16 @@ var boxLayoutSchema = z.lazy(
|
|
|
4579
4551
|
margin: sizeSchema.optional()
|
|
4580
4552
|
})
|
|
4581
4553
|
);
|
|
4554
|
+
var columnsLayoutSchema = z.lazy(
|
|
4555
|
+
() => z.object({
|
|
4556
|
+
type: z.literal("columns"),
|
|
4557
|
+
left: z.array(layoutSchema),
|
|
4558
|
+
right: z.array(layoutSchema),
|
|
4559
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
4560
|
+
control: z.string().optional(),
|
|
4561
|
+
margin: sizeSchema.optional()
|
|
4562
|
+
})
|
|
4563
|
+
);
|
|
4582
4564
|
var modalLayoutSchema = z.lazy(
|
|
4583
4565
|
() => z.object({
|
|
4584
4566
|
type: z.literal("modal"),
|
|
@@ -4588,6 +4570,12 @@ var modalLayoutSchema = z.lazy(
|
|
|
4588
4570
|
content: modalLayoutContentSchema
|
|
4589
4571
|
})
|
|
4590
4572
|
);
|
|
4573
|
+
var modalLayoutContentSchema = z.lazy(
|
|
4574
|
+
() => z.object({
|
|
4575
|
+
title: z.string().optional(),
|
|
4576
|
+
components: z.array(layoutSchema)
|
|
4577
|
+
})
|
|
4578
|
+
);
|
|
4591
4579
|
var stepSchema = z.lazy(
|
|
4592
4580
|
() => z.object({
|
|
4593
4581
|
key: z.string().optional(),
|
|
@@ -4607,33 +4595,58 @@ var stepSchema = z.lazy(
|
|
|
4607
4595
|
errors: stepErrorSchema.optional(),
|
|
4608
4596
|
navigation: navigationSchema.optional(),
|
|
4609
4597
|
refreshUrl: z.string().optional(),
|
|
4610
|
-
|
|
4611
|
-
|
|
4598
|
+
control: z.string().optional(),
|
|
4599
|
+
refreshAfter: z.string().optional()
|
|
4612
4600
|
})
|
|
4613
4601
|
);
|
|
4614
|
-
var
|
|
4602
|
+
var schemaSchema = z.lazy(
|
|
4603
|
+
() => z.union([
|
|
4604
|
+
allOfSchemaSchema,
|
|
4605
|
+
arraySchemaSchema,
|
|
4606
|
+
blobSchemaSchema,
|
|
4607
|
+
booleanSchemaSchema,
|
|
4608
|
+
constSchemaSchema,
|
|
4609
|
+
integerSchemaSchema,
|
|
4610
|
+
numberSchemaSchema,
|
|
4611
|
+
objectSchemaSchema,
|
|
4612
|
+
oneOfSchemaSchema,
|
|
4613
|
+
stringSchemaSchema
|
|
4614
|
+
])
|
|
4615
|
+
);
|
|
4616
|
+
var allOfSchemaSchema = z.lazy(
|
|
4615
4617
|
() => z.object({
|
|
4616
|
-
|
|
4618
|
+
disabled: z.boolean().optional(),
|
|
4619
|
+
promoted: z.boolean().optional(),
|
|
4620
|
+
allOf: z.array(schemaSchema),
|
|
4621
|
+
$id: z.string().optional(),
|
|
4622
|
+
title: z.string().optional(),
|
|
4623
|
+
description: z.string().optional(),
|
|
4624
|
+
control: z.string().optional(),
|
|
4625
|
+
hidden: z.boolean().optional(),
|
|
4626
|
+
icon: iconSchema.optional(),
|
|
4627
|
+
image: imageSchema.optional(),
|
|
4628
|
+
keywords: z.array(z.string()).optional(),
|
|
4629
|
+
summary: summaryProviderSchema.optional(),
|
|
4630
|
+
analyticsId: z.string().optional(),
|
|
4631
|
+
alert: alertLayoutSchema.optional()
|
|
4632
|
+
})
|
|
4633
|
+
);
|
|
4634
|
+
var arraySchemaSchema = z.lazy(
|
|
4635
|
+
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
4636
|
+
);
|
|
4637
|
+
var booleanSchemaSchema = z.lazy(
|
|
4638
|
+
() => z.object({
|
|
4639
|
+
type: z.literal("boolean"),
|
|
4617
4640
|
autofillProvider: z.string().optional(),
|
|
4618
4641
|
promoted: z.boolean().optional(),
|
|
4619
4642
|
refreshFormOnChange: z.boolean().optional(),
|
|
4620
4643
|
refreshUrl: z.string().optional(),
|
|
4621
4644
|
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(),
|
|
4632
4645
|
$id: z.string().optional(),
|
|
4633
4646
|
title: z.string().optional(),
|
|
4634
4647
|
description: z.string().optional(),
|
|
4635
4648
|
control: z.string().optional(),
|
|
4636
|
-
default: z.
|
|
4649
|
+
default: z.boolean().optional(),
|
|
4637
4650
|
hidden: z.boolean().optional(),
|
|
4638
4651
|
disabled: z.boolean().optional(),
|
|
4639
4652
|
icon: iconSchema.optional(),
|
|
@@ -4644,45 +4657,42 @@ var stringSchemaSchema = z.lazy(
|
|
|
4644
4657
|
persistAsync: persistAsyncSchema.optional(),
|
|
4645
4658
|
refreshStepOnChange: z.boolean().optional(),
|
|
4646
4659
|
validationAsync: validateAsyncSchema.optional(),
|
|
4647
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4648
4660
|
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(),
|
|
4654
4661
|
autofillKey: z.string().optional(),
|
|
4655
4662
|
help: helpSchema.optional()
|
|
4656
4663
|
})
|
|
4657
4664
|
);
|
|
4658
|
-
var
|
|
4665
|
+
var integerSchemaSchema = z.lazy(
|
|
4659
4666
|
() => z.object({
|
|
4667
|
+
type: z.literal("integer"),
|
|
4660
4668
|
autofillProvider: z.string().optional(),
|
|
4661
4669
|
promoted: z.boolean().optional(),
|
|
4662
4670
|
refreshFormOnChange: z.boolean().optional(),
|
|
4663
4671
|
refreshUrl: z.string().optional(),
|
|
4664
4672
|
refreshFormUrl: z.string().optional(),
|
|
4665
|
-
promotion: jsonElementSchema.optional(),
|
|
4666
|
-
oneOf: z.array(schemaSchema),
|
|
4667
4673
|
placeholder: z.string().optional(),
|
|
4674
|
+
minimum: z.number().optional(),
|
|
4675
|
+
maximum: z.number().optional(),
|
|
4668
4676
|
$id: z.string().optional(),
|
|
4669
4677
|
title: z.string().optional(),
|
|
4670
4678
|
description: z.string().optional(),
|
|
4671
4679
|
control: z.string().optional(),
|
|
4672
|
-
default:
|
|
4680
|
+
default: z.number().optional(),
|
|
4673
4681
|
hidden: z.boolean().optional(),
|
|
4682
|
+
disabled: z.boolean().optional(),
|
|
4674
4683
|
icon: iconSchema.optional(),
|
|
4675
4684
|
image: imageSchema.optional(),
|
|
4676
4685
|
keywords: z.array(z.string()).optional(),
|
|
4677
4686
|
summary: summaryProviderSchema.optional(),
|
|
4678
4687
|
analyticsId: z.string().optional(),
|
|
4688
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
4679
4689
|
refreshStepOnChange: z.boolean().optional(),
|
|
4690
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
4691
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4680
4692
|
alert: alertLayoutSchema.optional(),
|
|
4681
|
-
help: helpSchema.optional(),
|
|
4682
4693
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
4683
4694
|
autofillKey: z.string().optional(),
|
|
4684
|
-
|
|
4685
|
-
disabled: z.boolean().optional()
|
|
4695
|
+
help: helpSchema.optional()
|
|
4686
4696
|
})
|
|
4687
4697
|
);
|
|
4688
4698
|
var numberSchemaSchema = z.lazy(
|
|
@@ -4718,12 +4728,16 @@ var numberSchemaSchema = z.lazy(
|
|
|
4718
4728
|
help: helpSchema.optional()
|
|
4719
4729
|
})
|
|
4720
4730
|
);
|
|
4721
|
-
var
|
|
4731
|
+
var objectSchemaSchema = z.lazy(
|
|
4722
4732
|
() => z.object({
|
|
4723
|
-
type: z.literal("
|
|
4733
|
+
type: z.literal("object"),
|
|
4734
|
+
disabled: z.boolean().optional(),
|
|
4724
4735
|
promoted: z.boolean().optional(),
|
|
4736
|
+
help: helpSchema.optional(),
|
|
4737
|
+
properties: z.record(schemaSchema),
|
|
4738
|
+
displayOrder: z.array(z.string()),
|
|
4739
|
+
required: z.array(z.string()).optional(),
|
|
4725
4740
|
$id: z.string().optional(),
|
|
4726
|
-
items: z.array(schemaSchema),
|
|
4727
4741
|
title: z.string().optional(),
|
|
4728
4742
|
description: z.string().optional(),
|
|
4729
4743
|
control: z.string().optional(),
|
|
@@ -4733,27 +4747,62 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
4733
4747
|
keywords: z.array(z.string()).optional(),
|
|
4734
4748
|
summary: summaryProviderSchema.optional(),
|
|
4735
4749
|
analyticsId: z.string().optional(),
|
|
4736
|
-
persistAsync: persistAsyncSchema.optional(),
|
|
4737
|
-
validationAsync: validateAsyncSchema.optional(),
|
|
4738
4750
|
alert: alertLayoutSchema.optional()
|
|
4739
4751
|
})
|
|
4740
4752
|
);
|
|
4741
|
-
var
|
|
4753
|
+
var oneOfSchemaSchema = z.lazy(
|
|
4742
4754
|
() => z.object({
|
|
4743
|
-
type: z.literal("integer"),
|
|
4744
4755
|
autofillProvider: z.string().optional(),
|
|
4745
4756
|
promoted: z.boolean().optional(),
|
|
4746
4757
|
refreshFormOnChange: z.boolean().optional(),
|
|
4747
4758
|
refreshUrl: z.string().optional(),
|
|
4748
4759
|
refreshFormUrl: z.string().optional(),
|
|
4760
|
+
promotion: jsonElementSchema.optional(),
|
|
4761
|
+
oneOf: z.array(schemaSchema),
|
|
4749
4762
|
placeholder: z.string().optional(),
|
|
4750
|
-
minimum: z.number().optional(),
|
|
4751
|
-
maximum: z.number().optional(),
|
|
4752
4763
|
$id: z.string().optional(),
|
|
4753
4764
|
title: z.string().optional(),
|
|
4754
4765
|
description: z.string().optional(),
|
|
4755
4766
|
control: z.string().optional(),
|
|
4756
|
-
default:
|
|
4767
|
+
default: jsonElementSchema.optional(),
|
|
4768
|
+
hidden: z.boolean().optional(),
|
|
4769
|
+
icon: iconSchema.optional(),
|
|
4770
|
+
image: imageSchema.optional(),
|
|
4771
|
+
keywords: z.array(z.string()).optional(),
|
|
4772
|
+
summary: summaryProviderSchema.optional(),
|
|
4773
|
+
analyticsId: z.string().optional(),
|
|
4774
|
+
refreshStepOnChange: z.boolean().optional(),
|
|
4775
|
+
alert: alertLayoutSchema.optional(),
|
|
4776
|
+
help: helpSchema.optional(),
|
|
4777
|
+
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
4778
|
+
autofillKey: z.string().optional(),
|
|
4779
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4780
|
+
disabled: z.boolean().optional()
|
|
4781
|
+
})
|
|
4782
|
+
);
|
|
4783
|
+
var stringSchemaSchema = z.lazy(
|
|
4784
|
+
() => z.object({
|
|
4785
|
+
type: z.literal("string"),
|
|
4786
|
+
autofillProvider: z.string().optional(),
|
|
4787
|
+
promoted: z.boolean().optional(),
|
|
4788
|
+
refreshFormOnChange: z.boolean().optional(),
|
|
4789
|
+
refreshUrl: z.string().optional(),
|
|
4790
|
+
refreshFormUrl: z.string().optional(),
|
|
4791
|
+
format: stringSchemaFormatSchema.optional(),
|
|
4792
|
+
displayFormat: z.string().optional(),
|
|
4793
|
+
placeholder: z.string().optional(),
|
|
4794
|
+
minLength: z.number().optional(),
|
|
4795
|
+
maxLength: z.number().optional(),
|
|
4796
|
+
minimum: z.string().optional(),
|
|
4797
|
+
maximum: z.string().optional(),
|
|
4798
|
+
pattern: z.string().optional(),
|
|
4799
|
+
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
4800
|
+
autocorrect: z.boolean().optional(),
|
|
4801
|
+
$id: z.string().optional(),
|
|
4802
|
+
title: z.string().optional(),
|
|
4803
|
+
description: z.string().optional(),
|
|
4804
|
+
control: z.string().optional(),
|
|
4805
|
+
default: z.string().optional(),
|
|
4757
4806
|
hidden: z.boolean().optional(),
|
|
4758
4807
|
disabled: z.boolean().optional(),
|
|
4759
4808
|
icon: iconSchema.optional(),
|
|
@@ -4766,14 +4815,16 @@ var integerSchemaSchema = z.lazy(
|
|
|
4766
4815
|
validationAsync: validateAsyncSchema.optional(),
|
|
4767
4816
|
validationMessages: z.record(z.string()).optional(),
|
|
4768
4817
|
alert: alertLayoutSchema.optional(),
|
|
4818
|
+
cameraConfig: jsonElementSchema.optional(),
|
|
4819
|
+
accepts: z.array(z.string()).optional(),
|
|
4820
|
+
maxSize: z.number().optional(),
|
|
4821
|
+
source: uploadSourceSchema.optional(),
|
|
4769
4822
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
4770
4823
|
autofillKey: z.string().optional(),
|
|
4771
|
-
help: helpSchema.optional()
|
|
4824
|
+
help: helpSchema.optional(),
|
|
4825
|
+
suggestions: suggestionsSchema.optional()
|
|
4772
4826
|
})
|
|
4773
4827
|
);
|
|
4774
|
-
var arraySchemaSchema = z.lazy(
|
|
4775
|
-
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
4776
|
-
);
|
|
4777
4828
|
var arraySchemaListSchema = z.lazy(
|
|
4778
4829
|
() => z.object({
|
|
4779
4830
|
type: z.literal("array"),
|
|
@@ -4801,71 +4852,32 @@ var arraySchemaListSchema = z.lazy(
|
|
|
4801
4852
|
disabled: z.boolean().optional()
|
|
4802
4853
|
})
|
|
4803
4854
|
);
|
|
4804
|
-
var
|
|
4855
|
+
var persistAsyncSchema = z.lazy(
|
|
4805
4856
|
() => z.object({
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
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()
|
|
4857
|
+
param: z.string(),
|
|
4858
|
+
idProperty: z.string(),
|
|
4859
|
+
schema: schemaSchema,
|
|
4860
|
+
url: z.string(),
|
|
4861
|
+
method: httpMethodSchema
|
|
4820
4862
|
})
|
|
4821
4863
|
);
|
|
4822
|
-
var
|
|
4864
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
4823
4865
|
() => z.object({
|
|
4824
|
-
type: z.literal("
|
|
4825
|
-
autofillProvider: z.string().optional(),
|
|
4866
|
+
type: z.literal("array"),
|
|
4826
4867
|
promoted: z.boolean().optional(),
|
|
4827
|
-
refreshFormOnChange: z.boolean().optional(),
|
|
4828
|
-
refreshUrl: z.string().optional(),
|
|
4829
|
-
refreshFormUrl: z.string().optional(),
|
|
4830
4868
|
$id: z.string().optional(),
|
|
4869
|
+
items: z.array(schemaSchema),
|
|
4831
4870
|
title: z.string().optional(),
|
|
4832
4871
|
description: z.string().optional(),
|
|
4833
4872
|
control: z.string().optional(),
|
|
4834
|
-
default: z.boolean().optional(),
|
|
4835
4873
|
hidden: z.boolean().optional(),
|
|
4836
|
-
disabled: z.boolean().optional(),
|
|
4837
4874
|
icon: iconSchema.optional(),
|
|
4838
4875
|
image: imageSchema.optional(),
|
|
4839
4876
|
keywords: z.array(z.string()).optional(),
|
|
4840
4877
|
summary: summaryProviderSchema.optional(),
|
|
4841
4878
|
analyticsId: z.string().optional(),
|
|
4842
4879
|
persistAsync: persistAsyncSchema.optional(),
|
|
4843
|
-
refreshStepOnChange: z.boolean().optional(),
|
|
4844
4880
|
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(),
|
|
4869
4881
|
alert: alertLayoutSchema.optional()
|
|
4870
4882
|
})
|
|
4871
4883
|
);
|