@wise/dynamic-flow-types 3.0.0-experimental-dde19b5 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main.js +414 -394
- package/build/main.min.js +1 -1
- package/build/main.mjs +414 -394
- 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 +0 -3
- package/build/renderers/ButtonRendererProps.d.ts +0 -1
- package/build/renderers/CheckboxInputRendererProps.d.ts +2 -5
- package/build/renderers/ColumnsRendererProps.d.ts +0 -3
- package/build/renderers/CoreContainerRendererProps.d.ts +2 -5
- package/build/renderers/DateInputRendererProps.d.ts +0 -3
- package/build/renderers/DecisionRendererProps.d.ts +0 -3
- package/build/renderers/DividerRendererProps.d.ts +0 -3
- package/build/renderers/FormRendererProps.d.ts +0 -3
- 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 +0 -3
- package/build/renderers/IntegerInputRendererProps.d.ts +0 -5
- package/build/renderers/ListRendererProps.d.ts +4 -7
- package/build/renderers/LoadingIndicatorRendererProps.d.ts +0 -3
- package/build/renderers/MarkdownRendererProps.d.ts +0 -3
- package/build/renderers/ModalRendererProps.d.ts +0 -3
- package/build/renderers/MultiSelectInputRendererProps.d.ts +0 -5
- package/build/renderers/MultiUploadInputRendererProps.d.ts +0 -4
- 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 +0 -6
- package/build/renderers/ReviewRendererProps.d.ts +0 -3
- package/build/renderers/SearchRendererProps.d.ts +3 -7
- package/build/renderers/SectionRendererProps.d.ts +0 -3
- package/build/renderers/SelectInputRendererProps.d.ts +0 -3
- package/build/renderers/StatusListRendererProps.d.ts +0 -3
- package/build/renderers/StepRendererProps.d.ts +13 -1
- package/build/renderers/TextInputRendererProps.d.ts +0 -3
- package/build/renderers/UploadInputRendererProps.d.ts +0 -3
- package/build/zod/schemas.d.ts +6628 -2724
- package/build/zod/schemas.ts +534 -511
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -3978,15 +3978,48 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3978
3978
|
// src/zod/schemas.ts
|
|
3979
3979
|
var imageSchema = z.object({
|
|
3980
3980
|
text: z.string().optional(),
|
|
3981
|
-
url: z.string(),
|
|
3981
|
+
url: z.string().optional(),
|
|
3982
|
+
uri: z.string().optional(),
|
|
3982
3983
|
accessibilityDescription: z.string().optional()
|
|
3983
3984
|
});
|
|
3984
|
-
var
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3985
|
+
var httpMethodSchema = z.union([
|
|
3986
|
+
z.literal("GET"),
|
|
3987
|
+
z.literal("POST"),
|
|
3988
|
+
z.literal("PUT"),
|
|
3989
|
+
z.literal("PATCH"),
|
|
3990
|
+
z.literal("DELETE")
|
|
3991
|
+
]);
|
|
3992
|
+
var iconNamedSchema = z.object({
|
|
3993
|
+
name: z.string()
|
|
3989
3994
|
});
|
|
3995
|
+
var contextSchema = z.union([
|
|
3996
|
+
z.literal("positive"),
|
|
3997
|
+
z.literal("neutral"),
|
|
3998
|
+
z.literal("warning"),
|
|
3999
|
+
z.literal("negative"),
|
|
4000
|
+
z.literal("success"),
|
|
4001
|
+
z.literal("failure"),
|
|
4002
|
+
z.literal("info"),
|
|
4003
|
+
z.literal("primary")
|
|
4004
|
+
]);
|
|
4005
|
+
var iconTextSchema = z.object({
|
|
4006
|
+
text: z.string()
|
|
4007
|
+
});
|
|
4008
|
+
var sizeSchema = z.union([
|
|
4009
|
+
z.literal("xs"),
|
|
4010
|
+
z.literal("sm"),
|
|
4011
|
+
z.literal("md"),
|
|
4012
|
+
z.literal("lg"),
|
|
4013
|
+
z.literal("xl")
|
|
4014
|
+
]);
|
|
4015
|
+
var autocapitalizationTypeSchema = z.union([
|
|
4016
|
+
z.literal("none"),
|
|
4017
|
+
z.literal("characters"),
|
|
4018
|
+
z.literal("sentences"),
|
|
4019
|
+
z.literal("words")
|
|
4020
|
+
]);
|
|
4021
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
4022
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
3990
4023
|
var autocompleteTokenSchema = z.union([
|
|
3991
4024
|
z.literal("on"),
|
|
3992
4025
|
z.literal("name"),
|
|
@@ -4052,93 +4085,12 @@ var autocompleteTokenSchema = z.union([
|
|
|
4052
4085
|
z.literal("fax"),
|
|
4053
4086
|
z.literal("pager")
|
|
4054
4087
|
]);
|
|
4055
|
-
var
|
|
4056
|
-
|
|
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
|
-
var autocapitalizationTypeSchema = z.union([
|
|
4076
|
-
z.literal("none"),
|
|
4077
|
-
z.literal("characters"),
|
|
4078
|
-
z.literal("sentences"),
|
|
4079
|
-
z.literal("words")
|
|
4080
|
-
]);
|
|
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
|
-
var iconNamedSchema = z.object({
|
|
4090
|
-
name: z.string()
|
|
4091
|
-
});
|
|
4092
|
-
var iconTextSchema = z.object({
|
|
4093
|
-
text: z.string()
|
|
4094
|
-
});
|
|
4095
|
-
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
4096
|
-
var httpMethodSchema = z.union([
|
|
4097
|
-
z.literal("GET"),
|
|
4098
|
-
z.literal("POST"),
|
|
4099
|
-
z.literal("PUT"),
|
|
4100
|
-
z.literal("PATCH"),
|
|
4101
|
-
z.literal("DELETE")
|
|
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")
|
|
4119
|
-
]);
|
|
4120
|
-
var imageLayoutSchema = z.object({
|
|
4121
|
-
type: z.literal("image"),
|
|
4122
|
-
text: z.string().optional(),
|
|
4123
|
-
url: z.string(),
|
|
4088
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
4089
|
+
type: z.literal("loading-indicator"),
|
|
4124
4090
|
size: sizeSchema.optional(),
|
|
4125
|
-
accessibilityDescription: z.string().optional(),
|
|
4126
4091
|
control: z.string().optional(),
|
|
4127
4092
|
margin: sizeSchema.optional()
|
|
4128
4093
|
});
|
|
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(),
|
|
4138
|
-
error: z.string().optional(),
|
|
4139
|
-
validation: jsonElementSchema.optional(),
|
|
4140
|
-
refreshUrl: z.string().optional()
|
|
4141
|
-
});
|
|
4142
4094
|
var paragraphLayoutSchema = z.object({
|
|
4143
4095
|
type: z.literal("paragraph"),
|
|
4144
4096
|
text: z.string(),
|
|
@@ -4146,29 +4098,49 @@ var paragraphLayoutSchema = z.object({
|
|
|
4146
4098
|
control: z.string().optional(),
|
|
4147
4099
|
margin: sizeSchema.optional()
|
|
4148
4100
|
});
|
|
4149
|
-
var
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4101
|
+
var dividerLayoutSchema = z.object({
|
|
4102
|
+
type: z.literal("divider"),
|
|
4103
|
+
control: z.string().optional(),
|
|
4104
|
+
margin: sizeSchema.optional()
|
|
4153
4105
|
});
|
|
4154
|
-
var
|
|
4155
|
-
z.literal("
|
|
4156
|
-
z.literal("
|
|
4157
|
-
z.literal("
|
|
4106
|
+
var listLayoutStatusSchema = z.union([
|
|
4107
|
+
z.literal("warning"),
|
|
4108
|
+
z.literal("neutral"),
|
|
4109
|
+
z.literal("positive")
|
|
4158
4110
|
]);
|
|
4159
4111
|
var formLayoutSchemaReferenceSchema = z.object({
|
|
4160
4112
|
$ref: z.string()
|
|
4161
4113
|
});
|
|
4162
|
-
var
|
|
4163
|
-
type: z.literal("
|
|
4164
|
-
text: z.string(),
|
|
4114
|
+
var imageLayoutSchema = z.object({
|
|
4115
|
+
type: z.literal("image"),
|
|
4116
|
+
text: z.string().optional(),
|
|
4117
|
+
url: z.string().optional(),
|
|
4118
|
+
accessibilityDescription: z.string().optional(),
|
|
4119
|
+
content: imageSchema.optional(),
|
|
4165
4120
|
size: sizeSchema.optional(),
|
|
4166
|
-
align: alignSchema.optional(),
|
|
4167
4121
|
control: z.string().optional(),
|
|
4168
4122
|
margin: sizeSchema.optional()
|
|
4169
4123
|
});
|
|
4170
|
-
var
|
|
4171
|
-
|
|
4124
|
+
var statusListLayoutStatusSchema = z.union([
|
|
4125
|
+
z.literal("not-done"),
|
|
4126
|
+
z.literal("pending"),
|
|
4127
|
+
z.literal("done")
|
|
4128
|
+
]);
|
|
4129
|
+
var instructionsLayoutItemSchema = z.object({
|
|
4130
|
+
text: z.string(),
|
|
4131
|
+
context: contextSchema,
|
|
4132
|
+
tag: z.string().optional()
|
|
4133
|
+
});
|
|
4134
|
+
var modalLayoutTriggerSchema = z.object({
|
|
4135
|
+
title: z.string()
|
|
4136
|
+
});
|
|
4137
|
+
var searchLayoutSchema = z.object({
|
|
4138
|
+
type: z.literal("search"),
|
|
4139
|
+
title: z.string(),
|
|
4140
|
+
method: httpMethodSchema,
|
|
4141
|
+
url: z.string(),
|
|
4142
|
+
param: z.string(),
|
|
4143
|
+
emptyMessage: z.string().optional(),
|
|
4172
4144
|
control: z.string().optional(),
|
|
4173
4145
|
margin: sizeSchema.optional()
|
|
4174
4146
|
});
|
|
@@ -4179,16 +4151,18 @@ var infoLayoutSchema = z.object({
|
|
|
4179
4151
|
control: z.string().optional(),
|
|
4180
4152
|
margin: sizeSchema.optional()
|
|
4181
4153
|
});
|
|
4182
|
-
var
|
|
4183
|
-
type: z.literal("
|
|
4184
|
-
|
|
4185
|
-
|
|
4154
|
+
var formLayoutSchema = z.object({
|
|
4155
|
+
type: z.literal("form"),
|
|
4156
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
4157
|
+
schemaId: z.string(),
|
|
4186
4158
|
control: z.string().optional(),
|
|
4187
4159
|
margin: sizeSchema.optional()
|
|
4188
4160
|
});
|
|
4189
|
-
var
|
|
4190
|
-
type: z.literal("
|
|
4161
|
+
var headingLayoutSchema = z.object({
|
|
4162
|
+
type: z.literal("heading"),
|
|
4163
|
+
text: z.string(),
|
|
4191
4164
|
size: sizeSchema.optional(),
|
|
4165
|
+
align: alignSchema.optional(),
|
|
4192
4166
|
control: z.string().optional(),
|
|
4193
4167
|
margin: sizeSchema.optional()
|
|
4194
4168
|
});
|
|
@@ -4199,68 +4173,87 @@ var markdownLayoutSchema = z.object({
|
|
|
4199
4173
|
control: z.string().optional(),
|
|
4200
4174
|
margin: sizeSchema.optional()
|
|
4201
4175
|
});
|
|
4202
|
-
var
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4176
|
+
var columnsLayoutBiasSchema = z.union([
|
|
4177
|
+
z.literal("none"),
|
|
4178
|
+
z.literal("left"),
|
|
4179
|
+
z.literal("right")
|
|
4180
|
+
]);
|
|
4181
|
+
var helpSchema = z.object({
|
|
4182
|
+
markdown: z.string()
|
|
4183
|
+
});
|
|
4184
|
+
var searchSearchRequestSchema = z.object({
|
|
4206
4185
|
url: z.string(),
|
|
4186
|
+
method: httpMethodSchema,
|
|
4207
4187
|
param: z.string(),
|
|
4208
|
-
|
|
4209
|
-
control: z.string().optional(),
|
|
4210
|
-
margin: sizeSchema.optional()
|
|
4188
|
+
query: z.string()
|
|
4211
4189
|
});
|
|
4212
|
-
var
|
|
4213
|
-
|
|
4190
|
+
var jsonElementSchema = z.lazy(
|
|
4191
|
+
() => z.union([
|
|
4192
|
+
z.string(),
|
|
4193
|
+
z.number(),
|
|
4194
|
+
z.boolean(),
|
|
4195
|
+
z.record(jsonElementSchema),
|
|
4196
|
+
z.array(jsonElementSchema)
|
|
4197
|
+
]).nullable()
|
|
4198
|
+
);
|
|
4199
|
+
var externalSchema = z.object({
|
|
4200
|
+
url: z.string()
|
|
4214
4201
|
});
|
|
4215
|
-
var
|
|
4216
|
-
z.
|
|
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()
|
|
4202
|
+
var stepErrorSchema = z.object({
|
|
4203
|
+
error: z.string().optional(),
|
|
4204
|
+
validation: jsonElementSchema.optional()
|
|
4226
4205
|
});
|
|
4227
|
-
var
|
|
4228
|
-
z.literal("
|
|
4229
|
-
z.literal("
|
|
4230
|
-
z.literal("
|
|
4206
|
+
var stringSchemaFormatSchema = z.union([
|
|
4207
|
+
z.literal("date"),
|
|
4208
|
+
z.literal("email"),
|
|
4209
|
+
z.literal("numeric"),
|
|
4210
|
+
z.literal("password"),
|
|
4211
|
+
z.literal("phone-number"),
|
|
4212
|
+
z.literal("base64url")
|
|
4231
4213
|
]);
|
|
4232
|
-
var
|
|
4233
|
-
|
|
4214
|
+
var summarySummariserSchema = z.object({
|
|
4215
|
+
defaultTitle: z.string().optional(),
|
|
4216
|
+
defaultDescription: z.string().optional(),
|
|
4217
|
+
defaultIcon: iconSchema.optional(),
|
|
4218
|
+
defaultImage: imageSchema.optional(),
|
|
4219
|
+
providesTitle: z.boolean().optional(),
|
|
4220
|
+
providesDescription: z.boolean().optional(),
|
|
4221
|
+
providesIcon: z.boolean().optional(),
|
|
4222
|
+
providesImage: z.boolean().optional()
|
|
4234
4223
|
});
|
|
4235
|
-
var actionTypeSchema = z.union([
|
|
4236
|
-
z.literal("primary"),
|
|
4237
|
-
z.literal("secondary"),
|
|
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
4224
|
var validateAsyncSchema = z.object({
|
|
4250
4225
|
param: z.string(),
|
|
4251
4226
|
method: httpMethodSchema,
|
|
4252
4227
|
url: z.string()
|
|
4253
4228
|
});
|
|
4254
|
-
var
|
|
4255
|
-
defaultTitle: z.string().optional(),
|
|
4256
|
-
defaultDescription: z.string().optional(),
|
|
4257
|
-
defaultIcon: iconSchema.optional(),
|
|
4258
|
-
defaultImage: imageLayoutSchema.optional(),
|
|
4229
|
+
var summaryProviderSchema = z.object({
|
|
4259
4230
|
providesTitle: z.boolean().optional(),
|
|
4260
4231
|
providesDescription: z.boolean().optional(),
|
|
4261
4232
|
providesIcon: z.boolean().optional(),
|
|
4262
4233
|
providesImage: z.boolean().optional()
|
|
4263
4234
|
});
|
|
4235
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4236
|
+
var navigationStackBehaviorSchema = z.union([
|
|
4237
|
+
z.literal("default"),
|
|
4238
|
+
z.literal("remove-previous"),
|
|
4239
|
+
z.literal("remove-all"),
|
|
4240
|
+
z.literal("replace-current")
|
|
4241
|
+
]);
|
|
4242
|
+
var actionTypeSchema = z.union([
|
|
4243
|
+
z.literal("primary"),
|
|
4244
|
+
z.literal("secondary"),
|
|
4245
|
+
z.literal("link"),
|
|
4246
|
+
z.literal("positive"),
|
|
4247
|
+
z.literal("negative")
|
|
4248
|
+
]);
|
|
4249
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4250
|
+
var linkBehaviorSchema = z.object({
|
|
4251
|
+
type: z.literal("link"),
|
|
4252
|
+
url: z.string()
|
|
4253
|
+
});
|
|
4254
|
+
var linkSchema = z.object({
|
|
4255
|
+
url: z.string()
|
|
4256
|
+
});
|
|
4264
4257
|
var actionSchema = z.object({
|
|
4265
4258
|
title: z.string().optional(),
|
|
4266
4259
|
type: actionTypeSchema.optional(),
|
|
@@ -4276,75 +4269,75 @@ var actionSchema = z.object({
|
|
|
4276
4269
|
timeout: z.number().optional(),
|
|
4277
4270
|
skipValidation: z.boolean().optional()
|
|
4278
4271
|
});
|
|
4279
|
-
var
|
|
4280
|
-
regexPattern: z.string(),
|
|
4281
|
-
action: actionSchema
|
|
4282
|
-
});
|
|
4283
|
-
var searchResultActionSchema = z.object({
|
|
4284
|
-
type: z.literal("action"),
|
|
4285
|
-
title: z.string(),
|
|
4272
|
+
var listLayoutItemSchema = z.object({
|
|
4286
4273
|
description: z.string().optional(),
|
|
4274
|
+
status: listLayoutStatusSchema.optional(),
|
|
4287
4275
|
icon: iconSchema.optional(),
|
|
4288
|
-
image:
|
|
4289
|
-
|
|
4276
|
+
image: imageSchema.optional(),
|
|
4277
|
+
title: z.string().optional(),
|
|
4278
|
+
subtitle: z.string().optional(),
|
|
4279
|
+
value: z.string().optional(),
|
|
4280
|
+
subvalue: z.string().optional(),
|
|
4281
|
+
tag: z.string().optional()
|
|
4282
|
+
});
|
|
4283
|
+
var instructionsLayoutSchema = z.object({
|
|
4284
|
+
type: z.literal("instructions"),
|
|
4285
|
+
title: z.string().optional(),
|
|
4286
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
4287
|
+
control: z.string().optional(),
|
|
4288
|
+
margin: sizeSchema.optional()
|
|
4289
|
+
});
|
|
4290
|
+
var reviewLayoutFieldSchema = z.object({
|
|
4291
|
+
label: z.string(),
|
|
4292
|
+
value: z.string(),
|
|
4293
|
+
rawValue: z.string().optional(),
|
|
4294
|
+
help: helpSchema.optional(),
|
|
4295
|
+
tag: z.string().optional()
|
|
4290
4296
|
});
|
|
4291
4297
|
var searchResultSearchSchema = z.object({
|
|
4292
4298
|
type: z.literal("search"),
|
|
4293
4299
|
title: z.string(),
|
|
4294
4300
|
description: z.string().optional(),
|
|
4295
4301
|
icon: iconSchema.optional(),
|
|
4296
|
-
image:
|
|
4302
|
+
image: imageSchema.optional(),
|
|
4297
4303
|
value: searchSearchRequestSchema
|
|
4298
4304
|
});
|
|
4299
|
-
var
|
|
4300
|
-
|
|
4301
|
-
});
|
|
4302
|
-
var reviewLayoutCallToActionSchema = z.object({
|
|
4303
|
-
title: z.string(),
|
|
4304
|
-
action: actionSchema
|
|
4305
|
-
});
|
|
4306
|
-
var formLayoutSchema = z.object({
|
|
4307
|
-
type: z.literal("form"),
|
|
4308
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
4309
|
-
schemaId: z.string(),
|
|
4310
|
-
control: z.string().optional(),
|
|
4311
|
-
margin: sizeSchema.optional()
|
|
4312
|
-
});
|
|
4313
|
-
var decisionLayoutOptionSchema = z.object({
|
|
4314
|
-
action: actionSchema,
|
|
4305
|
+
var searchResultActionSchema = z.object({
|
|
4306
|
+
type: z.literal("action"),
|
|
4315
4307
|
title: z.string(),
|
|
4316
4308
|
description: z.string().optional(),
|
|
4317
|
-
disabled: z.boolean().optional(),
|
|
4318
4309
|
icon: iconSchema.optional(),
|
|
4319
|
-
image:
|
|
4320
|
-
|
|
4310
|
+
image: imageSchema.optional(),
|
|
4311
|
+
value: actionSchema
|
|
4321
4312
|
});
|
|
4322
|
-
var
|
|
4323
|
-
action: actionSchema
|
|
4324
|
-
link: linkSchema.optional()
|
|
4313
|
+
var actionResponseBodySchema = z.object({
|
|
4314
|
+
action: actionSchema
|
|
4325
4315
|
});
|
|
4326
|
-
var
|
|
4327
|
-
|
|
4328
|
-
|
|
4316
|
+
var errorResponseBodySchema = z.object({
|
|
4317
|
+
refreshFormUrl: z.string().optional(),
|
|
4318
|
+
analytics: z.record(z.string()).optional(),
|
|
4319
|
+
error: z.string().optional(),
|
|
4320
|
+
validation: jsonElementSchema.optional(),
|
|
4321
|
+
refreshUrl: z.string().optional()
|
|
4322
|
+
});
|
|
4323
|
+
var navigationBackBehaviorSchema = z.object({
|
|
4329
4324
|
title: z.string().optional(),
|
|
4330
|
-
action: actionSchema
|
|
4331
|
-
context: contextSchema.optional(),
|
|
4332
|
-
disabled: z.boolean().optional(),
|
|
4333
|
-
pinOrder: z.number().optional(),
|
|
4334
|
-
control: z.string().optional(),
|
|
4335
|
-
margin: sizeSchema.optional()
|
|
4325
|
+
action: actionSchema
|
|
4336
4326
|
});
|
|
4337
|
-
var
|
|
4338
|
-
type: z.literal("
|
|
4339
|
-
|
|
4327
|
+
var actionBehaviorSchema = z.object({
|
|
4328
|
+
type: z.literal("action"),
|
|
4329
|
+
action: actionSchema
|
|
4330
|
+
});
|
|
4331
|
+
var containerBehaviorSchema = z.object({
|
|
4340
4332
|
action: actionSchema.optional(),
|
|
4341
|
-
|
|
4342
|
-
title: z.string().optional(),
|
|
4343
|
-
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
4344
|
-
control: z.string().optional(),
|
|
4345
|
-
margin: sizeSchema.optional()
|
|
4333
|
+
link: linkSchema.optional()
|
|
4346
4334
|
});
|
|
4347
|
-
var
|
|
4335
|
+
var behaviorSchema = z.union([
|
|
4336
|
+
actionBehaviorSchema,
|
|
4337
|
+
containerBehaviorSchema,
|
|
4338
|
+
linkBehaviorSchema
|
|
4339
|
+
]);
|
|
4340
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
4348
4341
|
title: z.string(),
|
|
4349
4342
|
accessibilityDescription: z.string().optional(),
|
|
4350
4343
|
behavior: behaviorSchema
|
|
@@ -4354,61 +4347,60 @@ var listLayoutCallToActionSchema = z.object({
|
|
|
4354
4347
|
accessibilityDescription: z.string().optional(),
|
|
4355
4348
|
behavior: behaviorSchema
|
|
4356
4349
|
});
|
|
4357
|
-
var
|
|
4350
|
+
var decisionLayoutOptionSchema = z.object({
|
|
4351
|
+
action: actionSchema.optional(),
|
|
4352
|
+
title: z.string(),
|
|
4358
4353
|
description: z.string().optional(),
|
|
4359
|
-
|
|
4354
|
+
disabled: z.boolean().optional(),
|
|
4360
4355
|
icon: iconSchema.optional(),
|
|
4361
4356
|
image: imageSchema.optional(),
|
|
4362
|
-
|
|
4363
|
-
subtitle: z.string().optional(),
|
|
4364
|
-
value: z.string().optional(),
|
|
4365
|
-
subvalue: z.string().optional(),
|
|
4357
|
+
behavior: behaviorSchema.optional(),
|
|
4366
4358
|
tag: z.string().optional()
|
|
4367
4359
|
});
|
|
4368
|
-
var
|
|
4360
|
+
var itemCallToActionSchema = z.object({
|
|
4369
4361
|
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
|
|
4362
|
+
accessibilityDescription: z.string().optional(),
|
|
4363
|
+
behavior: behaviorSchema
|
|
4378
4364
|
});
|
|
4379
|
-
var
|
|
4365
|
+
var buttonLayoutSchema = z.object({
|
|
4366
|
+
type: z.literal("button"),
|
|
4367
|
+
action: actionSchema.optional(),
|
|
4368
|
+
size: sizeSchema.optional(),
|
|
4380
4369
|
title: z.string().optional(),
|
|
4381
|
-
|
|
4370
|
+
behavior: behaviorSchema.optional(),
|
|
4371
|
+
context: contextSchema.optional(),
|
|
4372
|
+
disabled: z.boolean().optional(),
|
|
4373
|
+
pinOrder: z.number().optional(),
|
|
4374
|
+
control: z.string().optional(),
|
|
4375
|
+
margin: sizeSchema.optional()
|
|
4382
4376
|
});
|
|
4383
|
-
var
|
|
4384
|
-
var
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
delay: z.number().optional(),
|
|
4388
|
-
timeout: z.number().optional(),
|
|
4389
|
-
maxAttempts: z.number(),
|
|
4390
|
-
onError: pollingOnErrorSchema
|
|
4377
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4378
|
+
var linkHandlerSchema = z.object({
|
|
4379
|
+
regexPattern: z.string(),
|
|
4380
|
+
behavior: behaviorSchema.optional()
|
|
4391
4381
|
});
|
|
4392
4382
|
var navigationSchema = z.object({
|
|
4393
4383
|
backButton: navigationBackBehaviorSchema.optional(),
|
|
4394
4384
|
back: navigationBackBehaviorSchema.optional(),
|
|
4395
4385
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4396
4386
|
});
|
|
4397
|
-
var
|
|
4398
|
-
|
|
4399
|
-
|
|
4387
|
+
var pollingOnErrorSchema = z.object({
|
|
4388
|
+
action: actionSchema.optional(),
|
|
4389
|
+
behavior: behaviorSchema.optional()
|
|
4400
4390
|
});
|
|
4401
|
-
var
|
|
4391
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
4392
|
+
action: actionSchema.optional(),
|
|
4402
4393
|
title: z.string(),
|
|
4403
4394
|
accessibilityDescription: z.string().optional(),
|
|
4404
|
-
behavior: behaviorSchema
|
|
4395
|
+
behavior: behaviorSchema.optional()
|
|
4405
4396
|
});
|
|
4406
|
-
var
|
|
4407
|
-
type: z.literal("
|
|
4408
|
-
|
|
4409
|
-
|
|
4397
|
+
var alertLayoutSchema = z.object({
|
|
4398
|
+
type: z.literal("alert"),
|
|
4399
|
+
markdown: z.string(),
|
|
4400
|
+
context: contextSchema.optional(),
|
|
4410
4401
|
control: z.string().optional(),
|
|
4411
|
-
margin: sizeSchema.optional()
|
|
4402
|
+
margin: sizeSchema.optional(),
|
|
4403
|
+
callToAction: alertLayoutCallToActionSchema.optional()
|
|
4412
4404
|
});
|
|
4413
4405
|
var listLayoutSchema = z.object({
|
|
4414
4406
|
type: z.literal("list"),
|
|
@@ -4418,36 +4410,41 @@ var listLayoutSchema = z.object({
|
|
|
4418
4410
|
control: z.string().optional(),
|
|
4419
4411
|
margin: sizeSchema.optional()
|
|
4420
4412
|
});
|
|
4421
|
-
var
|
|
4422
|
-
type: z.literal("
|
|
4423
|
-
items: z.array(statusListLayoutItemSchema),
|
|
4413
|
+
var decisionLayoutSchema = z.object({
|
|
4414
|
+
type: z.literal("decision"),
|
|
4424
4415
|
title: z.string().optional(),
|
|
4416
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
4425
4417
|
control: z.string().optional(),
|
|
4426
4418
|
margin: sizeSchema.optional()
|
|
4427
4419
|
});
|
|
4428
|
-
var
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4420
|
+
var statusListLayoutItemSchema = z.object({
|
|
4421
|
+
title: z.string(),
|
|
4422
|
+
description: z.string().optional(),
|
|
4423
|
+
icon: iconSchema,
|
|
4424
|
+
status: statusListLayoutStatusSchema.optional(),
|
|
4425
|
+
callToAction: itemCallToActionSchema.optional(),
|
|
4426
|
+
tag: z.string().optional()
|
|
4435
4427
|
});
|
|
4436
|
-
var
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
$id: z.string().optional(),
|
|
4442
|
-
const: jsonElementSchema,
|
|
4428
|
+
var reviewLayoutSchema = z.object({
|
|
4429
|
+
type: z.literal("review"),
|
|
4430
|
+
orientation: z.string().optional(),
|
|
4431
|
+
action: actionSchema.optional(),
|
|
4432
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
4443
4433
|
title: z.string().optional(),
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4434
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
4435
|
+
control: z.string().optional(),
|
|
4436
|
+
margin: sizeSchema.optional()
|
|
4437
|
+
});
|
|
4438
|
+
var searchResponseBodySchema = z.object({
|
|
4439
|
+
results: z.array(searchResultSchema)
|
|
4440
|
+
});
|
|
4441
|
+
var pollingSchema = z.object({
|
|
4442
|
+
interval: z.number().optional(),
|
|
4443
|
+
url: z.string(),
|
|
4444
|
+
delay: z.number().optional(),
|
|
4445
|
+
timeout: z.number().optional(),
|
|
4446
|
+
maxAttempts: z.number(),
|
|
4447
|
+
onError: pollingOnErrorSchema
|
|
4451
4448
|
});
|
|
4452
4449
|
var blobSchemaSchema = z.object({
|
|
4453
4450
|
type: z.literal("blob"),
|
|
@@ -4471,66 +4468,107 @@ var blobSchemaSchema = z.object({
|
|
|
4471
4468
|
source: uploadSourceSchema.optional(),
|
|
4472
4469
|
disabled: z.boolean().optional()
|
|
4473
4470
|
});
|
|
4474
|
-
var
|
|
4471
|
+
var constSchemaSchema = z.object({
|
|
4472
|
+
hidden: z.boolean().optional(),
|
|
4473
|
+
alert: alertLayoutSchema.optional(),
|
|
4474
|
+
control: z.string().optional(),
|
|
4475
|
+
promoted: z.boolean().optional(),
|
|
4476
|
+
$id: z.string().optional(),
|
|
4477
|
+
const: jsonElementSchema,
|
|
4478
|
+
title: z.string().optional(),
|
|
4479
|
+
description: z.string().optional(),
|
|
4480
|
+
icon: iconSchema.optional(),
|
|
4481
|
+
image: imageSchema.optional(),
|
|
4482
|
+
keywords: z.array(z.string()).optional(),
|
|
4483
|
+
summary: summaryProviderSchema.optional(),
|
|
4484
|
+
analyticsId: z.string().optional(),
|
|
4485
|
+
disabled: z.boolean().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 layoutSchema = z.lazy(
|
|
4495
|
+
() => z.union([
|
|
4496
|
+
alertLayoutSchema,
|
|
4497
|
+
boxLayoutSchema,
|
|
4498
|
+
buttonLayoutSchema,
|
|
4499
|
+
columnsLayoutSchema,
|
|
4500
|
+
decisionLayoutSchema,
|
|
4501
|
+
dividerLayoutSchema,
|
|
4502
|
+
formLayoutSchema,
|
|
4503
|
+
headingLayoutSchema,
|
|
4504
|
+
imageLayoutSchema,
|
|
4505
|
+
infoLayoutSchema,
|
|
4506
|
+
instructionsLayoutSchema,
|
|
4507
|
+
listLayoutSchema,
|
|
4508
|
+
loadingIndicatorLayoutSchema,
|
|
4509
|
+
markdownLayoutSchema,
|
|
4510
|
+
modalLayoutSchema,
|
|
4511
|
+
paragraphLayoutSchema,
|
|
4512
|
+
reviewLayoutSchema,
|
|
4513
|
+
searchLayoutSchema,
|
|
4514
|
+
statusListLayoutSchema
|
|
4515
|
+
])
|
|
4516
|
+
);
|
|
4517
|
+
var boxLayoutSchema = z.lazy(
|
|
4475
4518
|
() => z.object({
|
|
4476
|
-
type: z.literal("
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
refreshUrl: z.string().optional(),
|
|
4481
|
-
refreshFormUrl: z.string().optional(),
|
|
4482
|
-
placeholder: z.string().optional(),
|
|
4483
|
-
minimum: z.number().optional(),
|
|
4484
|
-
maximum: z.number().optional(),
|
|
4485
|
-
$id: z.string().optional(),
|
|
4486
|
-
title: z.string().optional(),
|
|
4487
|
-
description: z.string().optional(),
|
|
4519
|
+
type: z.literal("box"),
|
|
4520
|
+
components: z.array(layoutSchema),
|
|
4521
|
+
width: sizeSchema.optional(),
|
|
4522
|
+
border: z.boolean().optional(),
|
|
4488
4523
|
control: z.string().optional(),
|
|
4489
|
-
|
|
4490
|
-
hidden: z.boolean().optional(),
|
|
4491
|
-
disabled: z.boolean().optional(),
|
|
4492
|
-
icon: iconSchema.optional(),
|
|
4493
|
-
image: imageSchema.optional(),
|
|
4494
|
-
keywords: z.array(z.string()).optional(),
|
|
4495
|
-
summary: summaryProviderSchema.optional(),
|
|
4496
|
-
analyticsId: z.string().optional(),
|
|
4497
|
-
persistAsync: persistAsyncSchema.optional(),
|
|
4498
|
-
refreshStepOnChange: z.boolean().optional(),
|
|
4499
|
-
validationAsync: validateAsyncSchema.optional(),
|
|
4500
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4501
|
-
alert: alertLayoutSchema.optional(),
|
|
4502
|
-
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
4503
|
-
autofillKey: z.string().optional(),
|
|
4504
|
-
help: helpSchema.optional()
|
|
4524
|
+
margin: sizeSchema.optional()
|
|
4505
4525
|
})
|
|
4506
4526
|
);
|
|
4507
|
-
var
|
|
4527
|
+
var columnsLayoutSchema = z.lazy(
|
|
4508
4528
|
() => z.object({
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4529
|
+
type: z.literal("columns"),
|
|
4530
|
+
left: z.array(layoutSchema),
|
|
4531
|
+
right: z.array(layoutSchema),
|
|
4532
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
4533
|
+
control: z.string().optional(),
|
|
4534
|
+
margin: sizeSchema.optional()
|
|
4514
4535
|
})
|
|
4515
4536
|
);
|
|
4516
|
-
var
|
|
4537
|
+
var modalLayoutSchema = z.lazy(
|
|
4538
|
+
() => z.object({
|
|
4539
|
+
type: z.literal("modal"),
|
|
4540
|
+
control: z.string().optional(),
|
|
4541
|
+
margin: sizeSchema.optional(),
|
|
4542
|
+
trigger: modalLayoutTriggerSchema,
|
|
4543
|
+
content: modalLayoutContentSchema
|
|
4544
|
+
})
|
|
4545
|
+
);
|
|
4546
|
+
var modalLayoutContentSchema = z.lazy(
|
|
4517
4547
|
() => z.object({
|
|
4518
|
-
type: z.literal("array"),
|
|
4519
|
-
promoted: z.boolean().optional(),
|
|
4520
|
-
$id: z.string().optional(),
|
|
4521
|
-
items: z.array(schemaSchema),
|
|
4522
4548
|
title: z.string().optional(),
|
|
4549
|
+
components: z.array(layoutSchema)
|
|
4550
|
+
})
|
|
4551
|
+
);
|
|
4552
|
+
var stepSchema = z.lazy(
|
|
4553
|
+
() => z.object({
|
|
4554
|
+
key: z.string().optional(),
|
|
4555
|
+
type: z.string().optional(),
|
|
4556
|
+
actions: z.array(actionSchema).optional(),
|
|
4557
|
+
refreshFormUrl: z.string().optional(),
|
|
4558
|
+
id: z.string(),
|
|
4559
|
+
title: z.string(),
|
|
4560
|
+
schemas: z.array(schemaSchema),
|
|
4561
|
+
layout: z.array(layoutSchema),
|
|
4523
4562
|
description: z.string().optional(),
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
alert: alertLayoutSchema.optional()
|
|
4563
|
+
model: jsonElementSchema.optional(),
|
|
4564
|
+
external: externalSchema.optional(),
|
|
4565
|
+
polling: pollingSchema.optional(),
|
|
4566
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
4567
|
+
analytics: z.record(z.string()).optional(),
|
|
4568
|
+
errors: stepErrorSchema.optional(),
|
|
4569
|
+
navigation: navigationSchema.optional(),
|
|
4570
|
+
refreshUrl: z.string().optional(),
|
|
4571
|
+
control: z.string().optional()
|
|
4534
4572
|
})
|
|
4535
4573
|
);
|
|
4536
4574
|
var schemaSchema = z.lazy(
|
|
@@ -4547,6 +4585,27 @@ var schemaSchema = z.lazy(
|
|
|
4547
4585
|
stringSchemaSchema
|
|
4548
4586
|
])
|
|
4549
4587
|
);
|
|
4588
|
+
var allOfSchemaSchema = z.lazy(
|
|
4589
|
+
() => z.object({
|
|
4590
|
+
disabled: z.boolean().optional(),
|
|
4591
|
+
promoted: z.boolean().optional(),
|
|
4592
|
+
allOf: z.array(schemaSchema),
|
|
4593
|
+
$id: z.string().optional(),
|
|
4594
|
+
title: z.string().optional(),
|
|
4595
|
+
description: z.string().optional(),
|
|
4596
|
+
control: z.string().optional(),
|
|
4597
|
+
hidden: z.boolean().optional(),
|
|
4598
|
+
icon: iconSchema.optional(),
|
|
4599
|
+
image: imageSchema.optional(),
|
|
4600
|
+
keywords: z.array(z.string()).optional(),
|
|
4601
|
+
summary: summaryProviderSchema.optional(),
|
|
4602
|
+
analyticsId: z.string().optional(),
|
|
4603
|
+
alert: alertLayoutSchema.optional()
|
|
4604
|
+
})
|
|
4605
|
+
);
|
|
4606
|
+
var arraySchemaSchema = z.lazy(
|
|
4607
|
+
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
4608
|
+
);
|
|
4550
4609
|
var booleanSchemaSchema = z.lazy(
|
|
4551
4610
|
() => z.object({
|
|
4552
4611
|
type: z.literal("boolean"),
|
|
@@ -4575,30 +4634,42 @@ var booleanSchemaSchema = z.lazy(
|
|
|
4575
4634
|
help: helpSchema.optional()
|
|
4576
4635
|
})
|
|
4577
4636
|
);
|
|
4578
|
-
var
|
|
4637
|
+
var integerSchemaSchema = z.lazy(
|
|
4579
4638
|
() => z.object({
|
|
4580
|
-
|
|
4639
|
+
type: z.literal("integer"),
|
|
4640
|
+
autofillProvider: z.string().optional(),
|
|
4581
4641
|
promoted: z.boolean().optional(),
|
|
4582
|
-
|
|
4642
|
+
refreshFormOnChange: z.boolean().optional(),
|
|
4643
|
+
refreshUrl: z.string().optional(),
|
|
4644
|
+
refreshFormUrl: z.string().optional(),
|
|
4645
|
+
placeholder: z.string().optional(),
|
|
4646
|
+
minimum: z.number().optional(),
|
|
4647
|
+
maximum: z.number().optional(),
|
|
4583
4648
|
$id: z.string().optional(),
|
|
4584
4649
|
title: z.string().optional(),
|
|
4585
4650
|
description: z.string().optional(),
|
|
4586
4651
|
control: z.string().optional(),
|
|
4652
|
+
default: z.number().optional(),
|
|
4587
4653
|
hidden: z.boolean().optional(),
|
|
4654
|
+
disabled: z.boolean().optional(),
|
|
4588
4655
|
icon: iconSchema.optional(),
|
|
4589
4656
|
image: imageSchema.optional(),
|
|
4590
4657
|
keywords: z.array(z.string()).optional(),
|
|
4591
4658
|
summary: summaryProviderSchema.optional(),
|
|
4592
4659
|
analyticsId: z.string().optional(),
|
|
4593
|
-
|
|
4660
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
4661
|
+
refreshStepOnChange: z.boolean().optional(),
|
|
4662
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
4663
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4664
|
+
alert: alertLayoutSchema.optional(),
|
|
4665
|
+
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
4666
|
+
autofillKey: z.string().optional(),
|
|
4667
|
+
help: helpSchema.optional()
|
|
4594
4668
|
})
|
|
4595
4669
|
);
|
|
4596
|
-
var
|
|
4597
|
-
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
4598
|
-
);
|
|
4599
|
-
var integerSchemaSchema = z.lazy(
|
|
4670
|
+
var numberSchemaSchema = z.lazy(
|
|
4600
4671
|
() => z.object({
|
|
4601
|
-
type: z.literal("
|
|
4672
|
+
type: z.literal("number"),
|
|
4602
4673
|
autofillProvider: z.string().optional(),
|
|
4603
4674
|
promoted: z.boolean().optional(),
|
|
4604
4675
|
refreshFormOnChange: z.boolean().optional(),
|
|
@@ -4752,84 +4823,33 @@ var arraySchemaListSchema = z.lazy(
|
|
|
4752
4823
|
disabled: z.boolean().optional()
|
|
4753
4824
|
})
|
|
4754
4825
|
);
|
|
4755
|
-
var
|
|
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(
|
|
4826
|
+
var persistAsyncSchema = z.lazy(
|
|
4801
4827
|
() => z.object({
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
margin: sizeSchema.optional()
|
|
4828
|
+
param: z.string(),
|
|
4829
|
+
idProperty: z.string(),
|
|
4830
|
+
schema: schemaSchema,
|
|
4831
|
+
url: z.string(),
|
|
4832
|
+
method: httpMethodSchema
|
|
4808
4833
|
})
|
|
4809
4834
|
);
|
|
4810
|
-
var
|
|
4835
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
4811
4836
|
() => z.object({
|
|
4837
|
+
type: z.literal("array"),
|
|
4838
|
+
promoted: z.boolean().optional(),
|
|
4839
|
+
$id: z.string().optional(),
|
|
4840
|
+
items: z.array(schemaSchema),
|
|
4812
4841
|
title: z.string().optional(),
|
|
4813
|
-
|
|
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"),
|
|
4842
|
+
description: z.string().optional(),
|
|
4829
4843
|
control: z.string().optional(),
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4844
|
+
hidden: z.boolean().optional(),
|
|
4845
|
+
icon: iconSchema.optional(),
|
|
4846
|
+
image: imageSchema.optional(),
|
|
4847
|
+
keywords: z.array(z.string()).optional(),
|
|
4848
|
+
summary: summaryProviderSchema.optional(),
|
|
4849
|
+
analyticsId: z.string().optional(),
|
|
4850
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
4851
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
4852
|
+
alert: alertLayoutSchema.optional()
|
|
4833
4853
|
})
|
|
4834
4854
|
);
|
|
4835
4855
|
|