@wise/dynamic-flow-types 2.29.0-experimental-ff1ed46 → 2.30.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 +305 -298
- package/build/main.min.js +1 -1
- package/build/main.mjs +305 -298
- package/build/next/misc/AutocapitalizationType.d.ts +1 -0
- package/build/next/schema/StringSchema.d.ts +6 -0
- package/build/zod/schemas.d.ts +3643 -3642
- package/build/zod/schemas.ts +361 -353
- package/package.json +3 -3
package/build/main.js
CHANGED
|
@@ -3976,13 +3976,21 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3976
3976
|
});
|
|
3977
3977
|
|
|
3978
3978
|
// src/zod/schemas.ts
|
|
3979
|
-
var
|
|
3980
|
-
z.
|
|
3981
|
-
z.
|
|
3982
|
-
z.
|
|
3983
|
-
|
|
3984
|
-
|
|
3979
|
+
var imageSchema = z.object({
|
|
3980
|
+
text: z.string().optional(),
|
|
3981
|
+
url: z.string(),
|
|
3982
|
+
accessibilityDescription: z.string().optional()
|
|
3983
|
+
});
|
|
3984
|
+
var httpMethodSchema = z.union([
|
|
3985
|
+
z.literal("GET"),
|
|
3986
|
+
z.literal("POST"),
|
|
3987
|
+
z.literal("PUT"),
|
|
3988
|
+
z.literal("PATCH"),
|
|
3989
|
+
z.literal("DELETE")
|
|
3985
3990
|
]);
|
|
3991
|
+
var iconNamedSchema = z.object({
|
|
3992
|
+
name: z.string()
|
|
3993
|
+
});
|
|
3986
3994
|
var contextSchema = z.union([
|
|
3987
3995
|
z.literal("positive"),
|
|
3988
3996
|
z.literal("neutral"),
|
|
@@ -3993,107 +4001,24 @@ var contextSchema = z.union([
|
|
|
3993
4001
|
z.literal("info"),
|
|
3994
4002
|
z.literal("primary")
|
|
3995
4003
|
]);
|
|
3996
|
-
var
|
|
3997
|
-
z.
|
|
3998
|
-
z.literal("left"),
|
|
3999
|
-
z.literal("right")
|
|
4000
|
-
]);
|
|
4001
|
-
var statusListLayoutStatusSchema = z.union([
|
|
4002
|
-
z.literal("not-done"),
|
|
4003
|
-
z.literal("pending"),
|
|
4004
|
-
z.literal("done")
|
|
4005
|
-
]);
|
|
4006
|
-
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
4007
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
4008
|
-
$ref: z.string()
|
|
4009
|
-
});
|
|
4010
|
-
var modalLayoutTriggerSchema = z.object({
|
|
4011
|
-
title: z.string()
|
|
4004
|
+
var iconTextSchema = z.object({
|
|
4005
|
+
text: z.string()
|
|
4012
4006
|
});
|
|
4013
|
-
var
|
|
4014
|
-
z.literal("
|
|
4015
|
-
z.literal("
|
|
4016
|
-
z.literal("
|
|
4017
|
-
z.literal("
|
|
4018
|
-
z.literal("
|
|
4007
|
+
var sizeSchema = z.union([
|
|
4008
|
+
z.literal("xs"),
|
|
4009
|
+
z.literal("sm"),
|
|
4010
|
+
z.literal("md"),
|
|
4011
|
+
z.literal("lg"),
|
|
4012
|
+
z.literal("xl")
|
|
4019
4013
|
]);
|
|
4020
|
-
var
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
var listLayoutStatusSchema = z.union([
|
|
4026
|
-
z.literal("warning"),
|
|
4027
|
-
z.literal("neutral"),
|
|
4028
|
-
z.literal("positive")
|
|
4014
|
+
var autocapitalizationTypeSchema = z.union([
|
|
4015
|
+
z.literal("none"),
|
|
4016
|
+
z.literal("characters"),
|
|
4017
|
+
z.literal("sentences"),
|
|
4018
|
+
z.literal("words")
|
|
4029
4019
|
]);
|
|
4030
|
-
var
|
|
4031
|
-
|
|
4032
|
-
text: z.string(),
|
|
4033
|
-
size: sizeSchema.optional(),
|
|
4034
|
-
align: alignSchema.optional(),
|
|
4035
|
-
control: z.string().optional(),
|
|
4036
|
-
margin: sizeSchema.optional()
|
|
4037
|
-
});
|
|
4038
|
-
var formLayoutSchema = z.object({
|
|
4039
|
-
type: z.literal("form"),
|
|
4040
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
4041
|
-
schemaId: z.string(),
|
|
4042
|
-
control: z.string().optional(),
|
|
4043
|
-
margin: sizeSchema.optional()
|
|
4044
|
-
});
|
|
4045
|
-
var imageLayoutSchema = z.object({
|
|
4046
|
-
type: z.literal("image"),
|
|
4047
|
-
text: z.string().optional(),
|
|
4048
|
-
url: z.string(),
|
|
4049
|
-
size: sizeSchema.optional(),
|
|
4050
|
-
accessibilityDescription: z.string().optional(),
|
|
4051
|
-
control: z.string().optional(),
|
|
4052
|
-
margin: sizeSchema.optional()
|
|
4053
|
-
});
|
|
4054
|
-
var infoLayoutSchema = z.object({
|
|
4055
|
-
type: z.literal("info"),
|
|
4056
|
-
markdown: z.string(),
|
|
4057
|
-
align: alignSchema.optional(),
|
|
4058
|
-
control: z.string().optional(),
|
|
4059
|
-
margin: sizeSchema.optional()
|
|
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 paragraphLayoutSchema = z.object({
|
|
4068
|
-
type: z.literal("paragraph"),
|
|
4069
|
-
text: z.string(),
|
|
4070
|
-
align: alignSchema.optional(),
|
|
4071
|
-
control: z.string().optional(),
|
|
4072
|
-
margin: sizeSchema.optional()
|
|
4073
|
-
});
|
|
4074
|
-
var instructionsLayoutItemSchema = z.object({
|
|
4075
|
-
text: z.string(),
|
|
4076
|
-
context: contextSchema
|
|
4077
|
-
});
|
|
4078
|
-
var helpSchema = z.object({
|
|
4079
|
-
markdown: z.string()
|
|
4080
|
-
});
|
|
4081
|
-
var imageSchema = z.object({
|
|
4082
|
-
text: z.string().optional(),
|
|
4083
|
-
url: z.string(),
|
|
4084
|
-
accessibilityDescription: z.string().optional()
|
|
4085
|
-
});
|
|
4086
|
-
var summaryProviderSchema = z.object({
|
|
4087
|
-
providesTitle: z.boolean().optional(),
|
|
4088
|
-
providesDescription: z.boolean().optional(),
|
|
4089
|
-
providesIcon: z.boolean().optional(),
|
|
4090
|
-
providesImage: z.boolean().optional()
|
|
4091
|
-
});
|
|
4092
|
-
var validateAsyncSchema = z.object({
|
|
4093
|
-
param: z.string(),
|
|
4094
|
-
method: httpMethodSchema,
|
|
4095
|
-
url: z.string()
|
|
4096
|
-
});
|
|
4020
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
4021
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4097
4022
|
var autocompleteTokenSchema = z.union([
|
|
4098
4023
|
z.literal("on"),
|
|
4099
4024
|
z.literal("name"),
|
|
@@ -4159,14 +4084,106 @@ var autocompleteTokenSchema = z.union([
|
|
|
4159
4084
|
z.literal("fax"),
|
|
4160
4085
|
z.literal("pager")
|
|
4161
4086
|
]);
|
|
4162
|
-
var
|
|
4163
|
-
z.literal("
|
|
4164
|
-
|
|
4165
|
-
z.
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4087
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
4088
|
+
type: z.literal("loading-indicator"),
|
|
4089
|
+
size: sizeSchema.optional(),
|
|
4090
|
+
control: z.string().optional(),
|
|
4091
|
+
margin: sizeSchema.optional()
|
|
4092
|
+
});
|
|
4093
|
+
var paragraphLayoutSchema = z.object({
|
|
4094
|
+
type: z.literal("paragraph"),
|
|
4095
|
+
text: z.string(),
|
|
4096
|
+
align: alignSchema.optional(),
|
|
4097
|
+
control: z.string().optional(),
|
|
4098
|
+
margin: sizeSchema.optional()
|
|
4099
|
+
});
|
|
4100
|
+
var dividerLayoutSchema = z.object({
|
|
4101
|
+
type: z.literal("divider"),
|
|
4102
|
+
control: z.string().optional(),
|
|
4103
|
+
margin: sizeSchema.optional()
|
|
4104
|
+
});
|
|
4105
|
+
var listLayoutStatusSchema = z.union([
|
|
4106
|
+
z.literal("warning"),
|
|
4107
|
+
z.literal("neutral"),
|
|
4108
|
+
z.literal("positive")
|
|
4109
|
+
]);
|
|
4110
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
4111
|
+
$ref: z.string()
|
|
4112
|
+
});
|
|
4113
|
+
var imageLayoutSchema = z.object({
|
|
4114
|
+
type: z.literal("image"),
|
|
4115
|
+
text: z.string().optional(),
|
|
4116
|
+
url: z.string(),
|
|
4117
|
+
size: sizeSchema.optional(),
|
|
4118
|
+
accessibilityDescription: z.string().optional(),
|
|
4119
|
+
control: z.string().optional(),
|
|
4120
|
+
margin: sizeSchema.optional()
|
|
4121
|
+
});
|
|
4122
|
+
var statusListLayoutStatusSchema = z.union([
|
|
4123
|
+
z.literal("not-done"),
|
|
4124
|
+
z.literal("pending"),
|
|
4125
|
+
z.literal("done")
|
|
4126
|
+
]);
|
|
4127
|
+
var instructionsLayoutItemSchema = z.object({
|
|
4128
|
+
text: z.string(),
|
|
4129
|
+
context: contextSchema
|
|
4130
|
+
});
|
|
4131
|
+
var modalLayoutTriggerSchema = z.object({
|
|
4132
|
+
title: z.string()
|
|
4133
|
+
});
|
|
4134
|
+
var searchLayoutSchema = z.object({
|
|
4135
|
+
type: z.literal("search"),
|
|
4136
|
+
title: z.string(),
|
|
4137
|
+
method: httpMethodSchema,
|
|
4138
|
+
url: z.string(),
|
|
4139
|
+
param: z.string(),
|
|
4140
|
+
emptyMessage: z.string().optional(),
|
|
4141
|
+
control: z.string().optional(),
|
|
4142
|
+
margin: sizeSchema.optional()
|
|
4143
|
+
});
|
|
4144
|
+
var infoLayoutSchema = z.object({
|
|
4145
|
+
type: z.literal("info"),
|
|
4146
|
+
markdown: z.string(),
|
|
4147
|
+
align: alignSchema.optional(),
|
|
4148
|
+
control: z.string().optional(),
|
|
4149
|
+
margin: sizeSchema.optional()
|
|
4150
|
+
});
|
|
4151
|
+
var formLayoutSchema = z.object({
|
|
4152
|
+
type: z.literal("form"),
|
|
4153
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
4154
|
+
schemaId: z.string(),
|
|
4155
|
+
control: z.string().optional(),
|
|
4156
|
+
margin: sizeSchema.optional()
|
|
4157
|
+
});
|
|
4158
|
+
var headingLayoutSchema = z.object({
|
|
4159
|
+
type: z.literal("heading"),
|
|
4160
|
+
text: z.string(),
|
|
4161
|
+
size: sizeSchema.optional(),
|
|
4162
|
+
align: alignSchema.optional(),
|
|
4163
|
+
control: z.string().optional(),
|
|
4164
|
+
margin: sizeSchema.optional()
|
|
4165
|
+
});
|
|
4166
|
+
var markdownLayoutSchema = z.object({
|
|
4167
|
+
type: z.literal("markdown"),
|
|
4168
|
+
content: z.string(),
|
|
4169
|
+
align: alignSchema.optional(),
|
|
4170
|
+
control: z.string().optional(),
|
|
4171
|
+
margin: sizeSchema.optional()
|
|
4172
|
+
});
|
|
4173
|
+
var columnsLayoutBiasSchema = z.union([
|
|
4174
|
+
z.literal("none"),
|
|
4175
|
+
z.literal("left"),
|
|
4176
|
+
z.literal("right")
|
|
4169
4177
|
]);
|
|
4178
|
+
var helpSchema = z.object({
|
|
4179
|
+
markdown: z.string()
|
|
4180
|
+
});
|
|
4181
|
+
var searchSearchRequestSchema = z.object({
|
|
4182
|
+
url: z.string(),
|
|
4183
|
+
method: httpMethodSchema,
|
|
4184
|
+
param: z.string(),
|
|
4185
|
+
query: z.string()
|
|
4186
|
+
});
|
|
4170
4187
|
var jsonElementSchema = z.lazy(
|
|
4171
4188
|
() => z.union([
|
|
4172
4189
|
z.string(),
|
|
@@ -4176,7 +4193,6 @@ var jsonElementSchema = z.lazy(
|
|
|
4176
4193
|
z.array(jsonElementSchema)
|
|
4177
4194
|
]).nullable()
|
|
4178
4195
|
);
|
|
4179
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4180
4196
|
var externalSchema = z.object({
|
|
4181
4197
|
url: z.string()
|
|
4182
4198
|
});
|
|
@@ -4184,28 +4200,42 @@ var stepErrorSchema = z.object({
|
|
|
4184
4200
|
error: z.string().optional(),
|
|
4185
4201
|
validation: jsonElementSchema.optional()
|
|
4186
4202
|
});
|
|
4187
|
-
var
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4203
|
+
var stringSchemaFormatSchema = z.union([
|
|
4204
|
+
z.literal("date"),
|
|
4205
|
+
z.literal("email"),
|
|
4206
|
+
z.literal("numeric"),
|
|
4207
|
+
z.literal("password"),
|
|
4208
|
+
z.literal("phone-number"),
|
|
4209
|
+
z.literal("base64url")
|
|
4210
|
+
]);
|
|
4211
|
+
var summarySummariserSchema = z.object({
|
|
4212
|
+
defaultTitle: z.string().optional(),
|
|
4213
|
+
defaultDescription: z.string().optional(),
|
|
4214
|
+
defaultIcon: iconSchema.optional(),
|
|
4215
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
4216
|
+
providesTitle: z.boolean().optional(),
|
|
4217
|
+
providesDescription: z.boolean().optional(),
|
|
4218
|
+
providesIcon: z.boolean().optional(),
|
|
4219
|
+
providesImage: z.boolean().optional()
|
|
4193
4220
|
});
|
|
4194
|
-
var
|
|
4195
|
-
url: z.string(),
|
|
4196
|
-
method: httpMethodSchema,
|
|
4221
|
+
var validateAsyncSchema = z.object({
|
|
4197
4222
|
param: z.string(),
|
|
4198
|
-
|
|
4223
|
+
method: httpMethodSchema,
|
|
4224
|
+
url: z.string()
|
|
4225
|
+
});
|
|
4226
|
+
var summaryProviderSchema = z.object({
|
|
4227
|
+
providesTitle: z.boolean().optional(),
|
|
4228
|
+
providesDescription: z.boolean().optional(),
|
|
4229
|
+
providesIcon: z.boolean().optional(),
|
|
4230
|
+
providesImage: z.boolean().optional()
|
|
4199
4231
|
});
|
|
4232
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4200
4233
|
var navigationStackBehaviorSchema = z.union([
|
|
4201
4234
|
z.literal("default"),
|
|
4202
4235
|
z.literal("remove-previous"),
|
|
4203
4236
|
z.literal("remove-all"),
|
|
4204
4237
|
z.literal("replace-current")
|
|
4205
4238
|
]);
|
|
4206
|
-
var linkSchema = z.object({
|
|
4207
|
-
url: z.string()
|
|
4208
|
-
});
|
|
4209
4239
|
var actionTypeSchema = z.union([
|
|
4210
4240
|
z.literal("primary"),
|
|
4211
4241
|
z.literal("secondary"),
|
|
@@ -4213,11 +4243,9 @@ var actionTypeSchema = z.union([
|
|
|
4213
4243
|
z.literal("positive"),
|
|
4214
4244
|
z.literal("negative")
|
|
4215
4245
|
]);
|
|
4216
|
-
var
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
var iconTextSchema = z.object({
|
|
4220
|
-
text: z.string()
|
|
4246
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4247
|
+
var linkSchema = z.object({
|
|
4248
|
+
url: z.string()
|
|
4221
4249
|
});
|
|
4222
4250
|
var actionSchema = z.object({
|
|
4223
4251
|
title: z.string().optional(),
|
|
@@ -4234,26 +4262,19 @@ var actionSchema = z.object({
|
|
|
4234
4262
|
timeout: z.number().optional(),
|
|
4235
4263
|
skipValidation: z.boolean().optional()
|
|
4236
4264
|
});
|
|
4237
|
-
var
|
|
4238
|
-
type: z.literal("markdown"),
|
|
4239
|
-
content: z.string(),
|
|
4240
|
-
align: alignSchema.optional(),
|
|
4241
|
-
control: z.string().optional(),
|
|
4242
|
-
margin: sizeSchema.optional()
|
|
4243
|
-
});
|
|
4244
|
-
var searchLayoutSchema = z.object({
|
|
4245
|
-
type: z.literal("search"),
|
|
4265
|
+
var listLayoutItemSchema = z.object({
|
|
4246
4266
|
title: z.string(),
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
emptyMessage: z.string().optional(),
|
|
4251
|
-
control: z.string().optional(),
|
|
4252
|
-
margin: sizeSchema.optional()
|
|
4267
|
+
description: z.string().optional(),
|
|
4268
|
+
icon: iconSchema,
|
|
4269
|
+
status: listLayoutStatusSchema.optional()
|
|
4253
4270
|
});
|
|
4254
|
-
var
|
|
4271
|
+
var decisionLayoutOptionSchema = z.object({
|
|
4272
|
+
action: actionSchema,
|
|
4255
4273
|
title: z.string(),
|
|
4256
|
-
|
|
4274
|
+
description: z.string().optional(),
|
|
4275
|
+
disabled: z.boolean().optional(),
|
|
4276
|
+
icon: iconSchema.optional(),
|
|
4277
|
+
image: imageLayoutSchema.optional()
|
|
4257
4278
|
});
|
|
4258
4279
|
var instructionsLayoutSchema = z.object({
|
|
4259
4280
|
type: z.literal("instructions"),
|
|
@@ -4262,38 +4283,26 @@ var instructionsLayoutSchema = z.object({
|
|
|
4262
4283
|
control: z.string().optional(),
|
|
4263
4284
|
margin: sizeSchema.optional()
|
|
4264
4285
|
});
|
|
4265
|
-
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4266
4286
|
var behaviorSchema = z.object({
|
|
4267
4287
|
action: actionSchema.optional(),
|
|
4268
4288
|
link: linkSchema.optional()
|
|
4269
4289
|
});
|
|
4270
|
-
var
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
});
|
|
4281
|
-
var summarySummariserSchema = z.object({
|
|
4282
|
-
defaultTitle: z.string().optional(),
|
|
4283
|
-
defaultDescription: z.string().optional(),
|
|
4284
|
-
defaultIcon: iconSchema.optional(),
|
|
4285
|
-
defaultImage: imageLayoutSchema.optional(),
|
|
4286
|
-
providesTitle: z.boolean().optional(),
|
|
4287
|
-
providesDescription: z.boolean().optional(),
|
|
4288
|
-
providesIcon: z.boolean().optional(),
|
|
4289
|
-
providesImage: z.boolean().optional()
|
|
4290
|
-
});
|
|
4291
|
-
var linkHandlerSchema = z.object({
|
|
4292
|
-
regexPattern: z.string(),
|
|
4293
|
-
action: actionSchema
|
|
4290
|
+
var buttonLayoutSchema = z.object({
|
|
4291
|
+
type: z.literal("button"),
|
|
4292
|
+
size: sizeSchema.optional(),
|
|
4293
|
+
title: z.string().optional(),
|
|
4294
|
+
action: actionSchema,
|
|
4295
|
+
context: contextSchema.optional(),
|
|
4296
|
+
disabled: z.boolean().optional(),
|
|
4297
|
+
pinOrder: z.number().optional(),
|
|
4298
|
+
control: z.string().optional(),
|
|
4299
|
+
margin: sizeSchema.optional()
|
|
4294
4300
|
});
|
|
4295
|
-
var
|
|
4296
|
-
|
|
4301
|
+
var reviewLayoutFieldSchema = z.object({
|
|
4302
|
+
label: z.string(),
|
|
4303
|
+
value: z.string(),
|
|
4304
|
+
rawValue: z.string().optional(),
|
|
4305
|
+
help: helpSchema.optional()
|
|
4297
4306
|
});
|
|
4298
4307
|
var searchResultSearchSchema = z.object({
|
|
4299
4308
|
type: z.literal("search"),
|
|
@@ -4311,6 +4320,20 @@ var searchResultActionSchema = z.object({
|
|
|
4311
4320
|
image: imageLayoutSchema.optional(),
|
|
4312
4321
|
value: actionSchema
|
|
4313
4322
|
});
|
|
4323
|
+
var actionResponseBodySchema = z.object({
|
|
4324
|
+
action: actionSchema
|
|
4325
|
+
});
|
|
4326
|
+
var errorResponseBodySchema = z.object({
|
|
4327
|
+
refreshFormUrl: z.string().optional(),
|
|
4328
|
+
analytics: z.record(z.string()).optional(),
|
|
4329
|
+
error: z.string().optional(),
|
|
4330
|
+
validation: jsonElementSchema.optional(),
|
|
4331
|
+
refreshUrl: z.string().optional()
|
|
4332
|
+
});
|
|
4333
|
+
var linkHandlerSchema = z.object({
|
|
4334
|
+
regexPattern: z.string(),
|
|
4335
|
+
action: actionSchema
|
|
4336
|
+
});
|
|
4314
4337
|
var pollingOnErrorSchema = z.object({
|
|
4315
4338
|
action: actionSchema
|
|
4316
4339
|
});
|
|
@@ -4318,33 +4341,33 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
4318
4341
|
title: z.string().optional(),
|
|
4319
4342
|
action: actionSchema
|
|
4320
4343
|
});
|
|
4321
|
-
var
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4344
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
4345
|
+
title: z.string(),
|
|
4346
|
+
action: actionSchema
|
|
4347
|
+
});
|
|
4348
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
4349
|
+
title: z.string(),
|
|
4350
|
+
accessibilityDescription: z.string().optional(),
|
|
4351
|
+
behavior: behaviorSchema
|
|
4352
|
+
});
|
|
4353
|
+
var listLayoutSchema = z.object({
|
|
4354
|
+
type: z.literal("list"),
|
|
4355
|
+
items: z.array(listLayoutItemSchema),
|
|
4325
4356
|
title: z.string().optional(),
|
|
4326
|
-
action: actionSchema,
|
|
4327
|
-
context: contextSchema.optional(),
|
|
4328
|
-
disabled: z.boolean().optional(),
|
|
4329
|
-
pinOrder: z.number().optional(),
|
|
4330
4357
|
control: z.string().optional(),
|
|
4331
4358
|
margin: sizeSchema.optional()
|
|
4332
4359
|
});
|
|
4333
|
-
var
|
|
4334
|
-
|
|
4335
|
-
title: z.string(),
|
|
4336
|
-
|
|
4337
|
-
disabled: z.boolean().optional(),
|
|
4338
|
-
icon: iconSchema.optional(),
|
|
4339
|
-
image: imageLayoutSchema.optional()
|
|
4340
|
-
});
|
|
4341
|
-
var alertLayoutSchema = z.object({
|
|
4342
|
-
type: z.literal("alert"),
|
|
4343
|
-
markdown: z.string(),
|
|
4344
|
-
context: contextSchema.optional(),
|
|
4360
|
+
var decisionLayoutSchema = z.object({
|
|
4361
|
+
type: z.literal("decision"),
|
|
4362
|
+
title: z.string().optional(),
|
|
4363
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
4345
4364
|
control: z.string().optional(),
|
|
4346
|
-
margin: sizeSchema.optional()
|
|
4347
|
-
|
|
4365
|
+
margin: sizeSchema.optional()
|
|
4366
|
+
});
|
|
4367
|
+
var itemCallToActionSchema = z.object({
|
|
4368
|
+
title: z.string(),
|
|
4369
|
+
accessibilityDescription: z.string().optional(),
|
|
4370
|
+
behavior: behaviorSchema
|
|
4348
4371
|
});
|
|
4349
4372
|
var reviewLayoutSchema = z.object({
|
|
4350
4373
|
type: z.literal("review"),
|
|
@@ -4356,16 +4379,27 @@ var reviewLayoutSchema = z.object({
|
|
|
4356
4379
|
control: z.string().optional(),
|
|
4357
4380
|
margin: sizeSchema.optional()
|
|
4358
4381
|
});
|
|
4359
|
-
var
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4382
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4383
|
+
var pollingSchema = z.object({
|
|
4384
|
+
url: z.string(),
|
|
4385
|
+
interval: z.number().optional(),
|
|
4386
|
+
delay: z.number().optional(),
|
|
4387
|
+
timeout: z.number().optional(),
|
|
4388
|
+
maxAttempts: z.number(),
|
|
4389
|
+
onError: pollingOnErrorSchema
|
|
4364
4390
|
});
|
|
4365
|
-
var
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4391
|
+
var navigationSchema = z.object({
|
|
4392
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
4393
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
4394
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4395
|
+
});
|
|
4396
|
+
var alertLayoutSchema = z.object({
|
|
4397
|
+
type: z.literal("alert"),
|
|
4398
|
+
markdown: z.string(),
|
|
4399
|
+
context: contextSchema.optional(),
|
|
4400
|
+
control: z.string().optional(),
|
|
4401
|
+
margin: sizeSchema.optional(),
|
|
4402
|
+
callToAction: alertLayoutCallToActionSchema.optional()
|
|
4369
4403
|
});
|
|
4370
4404
|
var statusListLayoutItemSchema = z.object({
|
|
4371
4405
|
title: z.string(),
|
|
@@ -4374,6 +4408,9 @@ var statusListLayoutItemSchema = z.object({
|
|
|
4374
4408
|
status: statusListLayoutStatusSchema.optional(),
|
|
4375
4409
|
callToAction: itemCallToActionSchema.optional()
|
|
4376
4410
|
});
|
|
4411
|
+
var searchResponseBodySchema = z.object({
|
|
4412
|
+
results: z.array(searchResultSchema)
|
|
4413
|
+
});
|
|
4377
4414
|
var blobSchemaSchema = z.object({
|
|
4378
4415
|
type: z.literal("blob"),
|
|
4379
4416
|
promoted: z.boolean().optional(),
|
|
@@ -4412,34 +4449,6 @@ var constSchemaSchema = z.object({
|
|
|
4412
4449
|
analyticsId: z.string().optional(),
|
|
4413
4450
|
disabled: z.boolean().optional()
|
|
4414
4451
|
});
|
|
4415
|
-
var pollingSchema = z.object({
|
|
4416
|
-
url: z.string(),
|
|
4417
|
-
interval: z.number().optional(),
|
|
4418
|
-
delay: z.number().optional(),
|
|
4419
|
-
timeout: z.number().optional(),
|
|
4420
|
-
maxAttempts: z.number(),
|
|
4421
|
-
onError: pollingOnErrorSchema
|
|
4422
|
-
});
|
|
4423
|
-
var navigationSchema = z.object({
|
|
4424
|
-
backButton: navigationBackBehaviorSchema.optional(),
|
|
4425
|
-
back: navigationBackBehaviorSchema.optional(),
|
|
4426
|
-
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4427
|
-
});
|
|
4428
|
-
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4429
|
-
var decisionLayoutSchema = z.object({
|
|
4430
|
-
type: z.literal("decision"),
|
|
4431
|
-
title: z.string().optional(),
|
|
4432
|
-
options: z.array(decisionLayoutOptionSchema),
|
|
4433
|
-
control: z.string().optional(),
|
|
4434
|
-
margin: sizeSchema.optional()
|
|
4435
|
-
});
|
|
4436
|
-
var listLayoutSchema = z.object({
|
|
4437
|
-
type: z.literal("list"),
|
|
4438
|
-
items: z.array(listLayoutItemSchema),
|
|
4439
|
-
title: z.string().optional(),
|
|
4440
|
-
control: z.string().optional(),
|
|
4441
|
-
margin: sizeSchema.optional()
|
|
4442
|
-
});
|
|
4443
4452
|
var statusListLayoutSchema = z.object({
|
|
4444
4453
|
type: z.literal("status-list"),
|
|
4445
4454
|
items: z.array(statusListLayoutItemSchema),
|
|
@@ -4447,19 +4456,6 @@ var statusListLayoutSchema = z.object({
|
|
|
4447
4456
|
control: z.string().optional(),
|
|
4448
4457
|
margin: sizeSchema.optional()
|
|
4449
4458
|
});
|
|
4450
|
-
var searchResponseBodySchema = z.object({
|
|
4451
|
-
results: z.array(searchResultSchema)
|
|
4452
|
-
});
|
|
4453
|
-
var columnsLayoutSchema = z.lazy(
|
|
4454
|
-
() => z.object({
|
|
4455
|
-
type: z.literal("columns"),
|
|
4456
|
-
left: z.array(layoutSchema),
|
|
4457
|
-
right: z.array(layoutSchema),
|
|
4458
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
4459
|
-
control: z.string().optional(),
|
|
4460
|
-
margin: sizeSchema.optional()
|
|
4461
|
-
})
|
|
4462
|
-
);
|
|
4463
4459
|
var layoutSchema = z.lazy(
|
|
4464
4460
|
() => z.union([
|
|
4465
4461
|
alertLayoutSchema,
|
|
@@ -4483,6 +4479,26 @@ var layoutSchema = z.lazy(
|
|
|
4483
4479
|
statusListLayoutSchema
|
|
4484
4480
|
])
|
|
4485
4481
|
);
|
|
4482
|
+
var boxLayoutSchema = z.lazy(
|
|
4483
|
+
() => z.object({
|
|
4484
|
+
type: z.literal("box"),
|
|
4485
|
+
components: z.array(layoutSchema),
|
|
4486
|
+
width: sizeSchema.optional(),
|
|
4487
|
+
border: z.boolean().optional(),
|
|
4488
|
+
control: z.string().optional(),
|
|
4489
|
+
margin: sizeSchema.optional()
|
|
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
|
+
);
|
|
4486
4502
|
var modalLayoutSchema = z.lazy(
|
|
4487
4503
|
() => z.object({
|
|
4488
4504
|
type: z.literal("modal"),
|
|
@@ -4498,14 +4514,25 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
4498
4514
|
components: z.array(layoutSchema)
|
|
4499
4515
|
})
|
|
4500
4516
|
);
|
|
4501
|
-
var
|
|
4517
|
+
var stepSchema = z.lazy(
|
|
4502
4518
|
() => z.object({
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4519
|
+
key: z.string().optional(),
|
|
4520
|
+
type: z.string().optional(),
|
|
4521
|
+
actions: z.array(actionSchema).optional(),
|
|
4522
|
+
refreshFormUrl: z.string().optional(),
|
|
4523
|
+
id: z.string(),
|
|
4524
|
+
title: z.string(),
|
|
4525
|
+
schemas: z.array(schemaSchema),
|
|
4526
|
+
layout: z.array(layoutSchema),
|
|
4527
|
+
description: z.string().optional(),
|
|
4528
|
+
model: jsonElementSchema.optional(),
|
|
4529
|
+
external: externalSchema.optional(),
|
|
4530
|
+
polling: pollingSchema.optional(),
|
|
4531
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
4532
|
+
analytics: z.record(z.string()).optional(),
|
|
4533
|
+
errors: stepErrorSchema.optional(),
|
|
4534
|
+
navigation: navigationSchema.optional(),
|
|
4535
|
+
refreshUrl: z.string().optional()
|
|
4509
4536
|
})
|
|
4510
4537
|
);
|
|
4511
4538
|
var schemaSchema = z.lazy(
|
|
@@ -4705,6 +4732,7 @@ var stringSchemaSchema = z.lazy(
|
|
|
4705
4732
|
minimum: z.string().optional(),
|
|
4706
4733
|
maximum: z.string().optional(),
|
|
4707
4734
|
pattern: z.string().optional(),
|
|
4735
|
+
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
4708
4736
|
$id: z.string().optional(),
|
|
4709
4737
|
title: z.string().optional(),
|
|
4710
4738
|
description: z.string().optional(),
|
|
@@ -4731,21 +4759,17 @@ var stringSchemaSchema = z.lazy(
|
|
|
4731
4759
|
help: helpSchema.optional()
|
|
4732
4760
|
})
|
|
4733
4761
|
);
|
|
4734
|
-
var
|
|
4735
|
-
() => z.object({
|
|
4736
|
-
param: z.string(),
|
|
4737
|
-
idProperty: z.string(),
|
|
4738
|
-
schema: schemaSchema,
|
|
4739
|
-
url: z.string(),
|
|
4740
|
-
method: httpMethodSchema
|
|
4741
|
-
})
|
|
4742
|
-
);
|
|
4743
|
-
var arraySchemaTupleSchema = z.lazy(
|
|
4762
|
+
var arraySchemaListSchema = z.lazy(
|
|
4744
4763
|
() => z.object({
|
|
4745
4764
|
type: z.literal("array"),
|
|
4746
4765
|
promoted: z.boolean().optional(),
|
|
4747
4766
|
$id: z.string().optional(),
|
|
4748
|
-
items:
|
|
4767
|
+
items: schemaSchema,
|
|
4768
|
+
addItemTitle: z.string(),
|
|
4769
|
+
editItemTitle: z.string(),
|
|
4770
|
+
minItems: z.number().optional(),
|
|
4771
|
+
maxItems: z.number().optional(),
|
|
4772
|
+
placeholder: z.string().optional(),
|
|
4749
4773
|
title: z.string().optional(),
|
|
4750
4774
|
description: z.string().optional(),
|
|
4751
4775
|
control: z.string().optional(),
|
|
@@ -4753,24 +4777,30 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
4753
4777
|
icon: iconSchema.optional(),
|
|
4754
4778
|
image: imageSchema.optional(),
|
|
4755
4779
|
keywords: z.array(z.string()).optional(),
|
|
4756
|
-
summary:
|
|
4780
|
+
summary: summarySummariserSchema.optional(),
|
|
4757
4781
|
analyticsId: z.string().optional(),
|
|
4758
4782
|
persistAsync: persistAsyncSchema.optional(),
|
|
4759
4783
|
validationAsync: validateAsyncSchema.optional(),
|
|
4760
|
-
alert: alertLayoutSchema.optional()
|
|
4784
|
+
alert: alertLayoutSchema.optional(),
|
|
4785
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4786
|
+
disabled: z.boolean().optional()
|
|
4761
4787
|
})
|
|
4762
4788
|
);
|
|
4763
|
-
var
|
|
4789
|
+
var persistAsyncSchema = z.lazy(
|
|
4790
|
+
() => z.object({
|
|
4791
|
+
param: z.string(),
|
|
4792
|
+
idProperty: z.string(),
|
|
4793
|
+
schema: schemaSchema,
|
|
4794
|
+
url: z.string(),
|
|
4795
|
+
method: httpMethodSchema
|
|
4796
|
+
})
|
|
4797
|
+
);
|
|
4798
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
4764
4799
|
() => z.object({
|
|
4765
4800
|
type: z.literal("array"),
|
|
4766
4801
|
promoted: z.boolean().optional(),
|
|
4767
4802
|
$id: z.string().optional(),
|
|
4768
|
-
items: schemaSchema,
|
|
4769
|
-
addItemTitle: z.string(),
|
|
4770
|
-
editItemTitle: z.string(),
|
|
4771
|
-
minItems: z.number().optional(),
|
|
4772
|
-
maxItems: z.number().optional(),
|
|
4773
|
-
placeholder: z.string().optional(),
|
|
4803
|
+
items: z.array(schemaSchema),
|
|
4774
4804
|
title: z.string().optional(),
|
|
4775
4805
|
description: z.string().optional(),
|
|
4776
4806
|
control: z.string().optional(),
|
|
@@ -4778,34 +4808,11 @@ var arraySchemaListSchema = z.lazy(
|
|
|
4778
4808
|
icon: iconSchema.optional(),
|
|
4779
4809
|
image: imageSchema.optional(),
|
|
4780
4810
|
keywords: z.array(z.string()).optional(),
|
|
4781
|
-
summary:
|
|
4811
|
+
summary: summaryProviderSchema.optional(),
|
|
4782
4812
|
analyticsId: z.string().optional(),
|
|
4783
4813
|
persistAsync: persistAsyncSchema.optional(),
|
|
4784
4814
|
validationAsync: validateAsyncSchema.optional(),
|
|
4785
|
-
alert: alertLayoutSchema.optional()
|
|
4786
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4787
|
-
disabled: z.boolean().optional()
|
|
4788
|
-
})
|
|
4789
|
-
);
|
|
4790
|
-
var stepSchema = z.lazy(
|
|
4791
|
-
() => z.object({
|
|
4792
|
-
key: z.string().optional(),
|
|
4793
|
-
type: z.string().optional(),
|
|
4794
|
-
actions: z.array(actionSchema).optional(),
|
|
4795
|
-
refreshFormUrl: z.string().optional(),
|
|
4796
|
-
id: z.string(),
|
|
4797
|
-
title: z.string(),
|
|
4798
|
-
schemas: z.array(schemaSchema),
|
|
4799
|
-
layout: z.array(layoutSchema),
|
|
4800
|
-
description: z.string().optional(),
|
|
4801
|
-
model: jsonElementSchema.optional(),
|
|
4802
|
-
external: externalSchema.optional(),
|
|
4803
|
-
polling: pollingSchema.optional(),
|
|
4804
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
4805
|
-
analytics: z.record(z.string()).optional(),
|
|
4806
|
-
errors: stepErrorSchema.optional(),
|
|
4807
|
-
navigation: navigationSchema.optional(),
|
|
4808
|
-
refreshUrl: z.string().optional()
|
|
4815
|
+
alert: alertLayoutSchema.optional()
|
|
4809
4816
|
})
|
|
4810
4817
|
);
|
|
4811
4818
|
|