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