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