@wise/dynamic-flow-types 2.29.0-experimental-ff1ed46 → 2.29.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 +299 -299
- package/build/main.min.js +1 -1
- package/build/main.mjs +299 -299
- package/build/zod/schemas.d.ts +3642 -3642
- package/package.json +1 -1
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,18 @@ 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()
|
|
4012
|
-
});
|
|
4013
|
-
var httpMethodSchema = z.union([
|
|
4014
|
-
z.literal("GET"),
|
|
4015
|
-
z.literal("POST"),
|
|
4016
|
-
z.literal("PUT"),
|
|
4017
|
-
z.literal("PATCH"),
|
|
4018
|
-
z.literal("DELETE")
|
|
4019
|
-
]);
|
|
4020
|
-
var dividerLayoutSchema = z.object({
|
|
4021
|
-
type: z.literal("divider"),
|
|
4022
|
-
control: z.string().optional(),
|
|
4023
|
-
margin: sizeSchema.optional()
|
|
4004
|
+
var iconTextSchema = z.object({
|
|
4005
|
+
text: z.string()
|
|
4024
4006
|
});
|
|
4025
|
-
var
|
|
4026
|
-
z.literal("
|
|
4027
|
-
z.literal("
|
|
4028
|
-
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")
|
|
4029
4013
|
]);
|
|
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
|
-
});
|
|
4014
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
4015
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4097
4016
|
var autocompleteTokenSchema = z.union([
|
|
4098
4017
|
z.literal("on"),
|
|
4099
4018
|
z.literal("name"),
|
|
@@ -4159,14 +4078,106 @@ var autocompleteTokenSchema = z.union([
|
|
|
4159
4078
|
z.literal("fax"),
|
|
4160
4079
|
z.literal("pager")
|
|
4161
4080
|
]);
|
|
4162
|
-
var
|
|
4163
|
-
z.literal("
|
|
4164
|
-
|
|
4165
|
-
z.
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4081
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
4082
|
+
type: z.literal("loading-indicator"),
|
|
4083
|
+
size: sizeSchema.optional(),
|
|
4084
|
+
control: z.string().optional(),
|
|
4085
|
+
margin: sizeSchema.optional()
|
|
4086
|
+
});
|
|
4087
|
+
var paragraphLayoutSchema = z.object({
|
|
4088
|
+
type: z.literal("paragraph"),
|
|
4089
|
+
text: z.string(),
|
|
4090
|
+
align: alignSchema.optional(),
|
|
4091
|
+
control: z.string().optional(),
|
|
4092
|
+
margin: sizeSchema.optional()
|
|
4093
|
+
});
|
|
4094
|
+
var dividerLayoutSchema = z.object({
|
|
4095
|
+
type: z.literal("divider"),
|
|
4096
|
+
control: z.string().optional(),
|
|
4097
|
+
margin: sizeSchema.optional()
|
|
4098
|
+
});
|
|
4099
|
+
var listLayoutStatusSchema = z.union([
|
|
4100
|
+
z.literal("warning"),
|
|
4101
|
+
z.literal("neutral"),
|
|
4102
|
+
z.literal("positive")
|
|
4103
|
+
]);
|
|
4104
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
4105
|
+
$ref: z.string()
|
|
4106
|
+
});
|
|
4107
|
+
var imageLayoutSchema = z.object({
|
|
4108
|
+
type: z.literal("image"),
|
|
4109
|
+
text: z.string().optional(),
|
|
4110
|
+
url: z.string(),
|
|
4111
|
+
size: sizeSchema.optional(),
|
|
4112
|
+
accessibilityDescription: z.string().optional(),
|
|
4113
|
+
control: z.string().optional(),
|
|
4114
|
+
margin: sizeSchema.optional()
|
|
4115
|
+
});
|
|
4116
|
+
var statusListLayoutStatusSchema = z.union([
|
|
4117
|
+
z.literal("not-done"),
|
|
4118
|
+
z.literal("pending"),
|
|
4119
|
+
z.literal("done")
|
|
4120
|
+
]);
|
|
4121
|
+
var instructionsLayoutItemSchema = z.object({
|
|
4122
|
+
text: z.string(),
|
|
4123
|
+
context: contextSchema
|
|
4124
|
+
});
|
|
4125
|
+
var modalLayoutTriggerSchema = z.object({
|
|
4126
|
+
title: z.string()
|
|
4127
|
+
});
|
|
4128
|
+
var searchLayoutSchema = z.object({
|
|
4129
|
+
type: z.literal("search"),
|
|
4130
|
+
title: z.string(),
|
|
4131
|
+
method: httpMethodSchema,
|
|
4132
|
+
url: z.string(),
|
|
4133
|
+
param: z.string(),
|
|
4134
|
+
emptyMessage: z.string().optional(),
|
|
4135
|
+
control: z.string().optional(),
|
|
4136
|
+
margin: sizeSchema.optional()
|
|
4137
|
+
});
|
|
4138
|
+
var infoLayoutSchema = z.object({
|
|
4139
|
+
type: z.literal("info"),
|
|
4140
|
+
markdown: z.string(),
|
|
4141
|
+
align: alignSchema.optional(),
|
|
4142
|
+
control: z.string().optional(),
|
|
4143
|
+
margin: sizeSchema.optional()
|
|
4144
|
+
});
|
|
4145
|
+
var formLayoutSchema = z.object({
|
|
4146
|
+
type: z.literal("form"),
|
|
4147
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
4148
|
+
schemaId: z.string(),
|
|
4149
|
+
control: z.string().optional(),
|
|
4150
|
+
margin: sizeSchema.optional()
|
|
4151
|
+
});
|
|
4152
|
+
var headingLayoutSchema = z.object({
|
|
4153
|
+
type: z.literal("heading"),
|
|
4154
|
+
text: z.string(),
|
|
4155
|
+
size: sizeSchema.optional(),
|
|
4156
|
+
align: alignSchema.optional(),
|
|
4157
|
+
control: z.string().optional(),
|
|
4158
|
+
margin: sizeSchema.optional()
|
|
4159
|
+
});
|
|
4160
|
+
var markdownLayoutSchema = z.object({
|
|
4161
|
+
type: z.literal("markdown"),
|
|
4162
|
+
content: z.string(),
|
|
4163
|
+
align: alignSchema.optional(),
|
|
4164
|
+
control: z.string().optional(),
|
|
4165
|
+
margin: sizeSchema.optional()
|
|
4166
|
+
});
|
|
4167
|
+
var columnsLayoutBiasSchema = z.union([
|
|
4168
|
+
z.literal("none"),
|
|
4169
|
+
z.literal("left"),
|
|
4170
|
+
z.literal("right")
|
|
4169
4171
|
]);
|
|
4172
|
+
var helpSchema = z.object({
|
|
4173
|
+
markdown: z.string()
|
|
4174
|
+
});
|
|
4175
|
+
var searchSearchRequestSchema = z.object({
|
|
4176
|
+
url: z.string(),
|
|
4177
|
+
method: httpMethodSchema,
|
|
4178
|
+
param: z.string(),
|
|
4179
|
+
query: z.string()
|
|
4180
|
+
});
|
|
4170
4181
|
var jsonElementSchema = z.lazy(
|
|
4171
4182
|
() => z.union([
|
|
4172
4183
|
z.string(),
|
|
@@ -4176,7 +4187,6 @@ var jsonElementSchema = z.lazy(
|
|
|
4176
4187
|
z.array(jsonElementSchema)
|
|
4177
4188
|
]).nullable()
|
|
4178
4189
|
);
|
|
4179
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4180
4190
|
var externalSchema = z.object({
|
|
4181
4191
|
url: z.string()
|
|
4182
4192
|
});
|
|
@@ -4184,28 +4194,42 @@ var stepErrorSchema = z.object({
|
|
|
4184
4194
|
error: z.string().optional(),
|
|
4185
4195
|
validation: jsonElementSchema.optional()
|
|
4186
4196
|
});
|
|
4187
|
-
var
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4197
|
+
var stringSchemaFormatSchema = z.union([
|
|
4198
|
+
z.literal("date"),
|
|
4199
|
+
z.literal("email"),
|
|
4200
|
+
z.literal("numeric"),
|
|
4201
|
+
z.literal("password"),
|
|
4202
|
+
z.literal("phone-number"),
|
|
4203
|
+
z.literal("base64url")
|
|
4204
|
+
]);
|
|
4205
|
+
var summarySummariserSchema = z.object({
|
|
4206
|
+
defaultTitle: z.string().optional(),
|
|
4207
|
+
defaultDescription: z.string().optional(),
|
|
4208
|
+
defaultIcon: iconSchema.optional(),
|
|
4209
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
4210
|
+
providesTitle: z.boolean().optional(),
|
|
4211
|
+
providesDescription: z.boolean().optional(),
|
|
4212
|
+
providesIcon: z.boolean().optional(),
|
|
4213
|
+
providesImage: z.boolean().optional()
|
|
4193
4214
|
});
|
|
4194
|
-
var
|
|
4195
|
-
url: z.string(),
|
|
4196
|
-
method: httpMethodSchema,
|
|
4215
|
+
var validateAsyncSchema = z.object({
|
|
4197
4216
|
param: z.string(),
|
|
4198
|
-
|
|
4217
|
+
method: httpMethodSchema,
|
|
4218
|
+
url: z.string()
|
|
4219
|
+
});
|
|
4220
|
+
var summaryProviderSchema = z.object({
|
|
4221
|
+
providesTitle: z.boolean().optional(),
|
|
4222
|
+
providesDescription: z.boolean().optional(),
|
|
4223
|
+
providesIcon: z.boolean().optional(),
|
|
4224
|
+
providesImage: z.boolean().optional()
|
|
4199
4225
|
});
|
|
4226
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4200
4227
|
var navigationStackBehaviorSchema = z.union([
|
|
4201
4228
|
z.literal("default"),
|
|
4202
4229
|
z.literal("remove-previous"),
|
|
4203
4230
|
z.literal("remove-all"),
|
|
4204
4231
|
z.literal("replace-current")
|
|
4205
4232
|
]);
|
|
4206
|
-
var linkSchema = z.object({
|
|
4207
|
-
url: z.string()
|
|
4208
|
-
});
|
|
4209
4233
|
var actionTypeSchema = z.union([
|
|
4210
4234
|
z.literal("primary"),
|
|
4211
4235
|
z.literal("secondary"),
|
|
@@ -4213,11 +4237,9 @@ var actionTypeSchema = z.union([
|
|
|
4213
4237
|
z.literal("positive"),
|
|
4214
4238
|
z.literal("negative")
|
|
4215
4239
|
]);
|
|
4216
|
-
var
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
var iconTextSchema = z.object({
|
|
4220
|
-
text: z.string()
|
|
4240
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4241
|
+
var linkSchema = z.object({
|
|
4242
|
+
url: z.string()
|
|
4221
4243
|
});
|
|
4222
4244
|
var actionSchema = z.object({
|
|
4223
4245
|
title: z.string().optional(),
|
|
@@ -4234,26 +4256,19 @@ var actionSchema = z.object({
|
|
|
4234
4256
|
timeout: z.number().optional(),
|
|
4235
4257
|
skipValidation: z.boolean().optional()
|
|
4236
4258
|
});
|
|
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"),
|
|
4259
|
+
var listLayoutItemSchema = z.object({
|
|
4246
4260
|
title: z.string(),
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
emptyMessage: z.string().optional(),
|
|
4251
|
-
control: z.string().optional(),
|
|
4252
|
-
margin: sizeSchema.optional()
|
|
4261
|
+
description: z.string().optional(),
|
|
4262
|
+
icon: iconSchema,
|
|
4263
|
+
status: listLayoutStatusSchema.optional()
|
|
4253
4264
|
});
|
|
4254
|
-
var
|
|
4265
|
+
var decisionLayoutOptionSchema = z.object({
|
|
4266
|
+
action: actionSchema,
|
|
4255
4267
|
title: z.string(),
|
|
4256
|
-
|
|
4268
|
+
description: z.string().optional(),
|
|
4269
|
+
disabled: z.boolean().optional(),
|
|
4270
|
+
icon: iconSchema.optional(),
|
|
4271
|
+
image: imageLayoutSchema.optional()
|
|
4257
4272
|
});
|
|
4258
4273
|
var instructionsLayoutSchema = z.object({
|
|
4259
4274
|
type: z.literal("instructions"),
|
|
@@ -4262,38 +4277,26 @@ var instructionsLayoutSchema = z.object({
|
|
|
4262
4277
|
control: z.string().optional(),
|
|
4263
4278
|
margin: sizeSchema.optional()
|
|
4264
4279
|
});
|
|
4265
|
-
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4266
4280
|
var behaviorSchema = z.object({
|
|
4267
4281
|
action: actionSchema.optional(),
|
|
4268
4282
|
link: linkSchema.optional()
|
|
4269
4283
|
});
|
|
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
|
|
4284
|
+
var buttonLayoutSchema = z.object({
|
|
4285
|
+
type: z.literal("button"),
|
|
4286
|
+
size: sizeSchema.optional(),
|
|
4287
|
+
title: z.string().optional(),
|
|
4288
|
+
action: actionSchema,
|
|
4289
|
+
context: contextSchema.optional(),
|
|
4290
|
+
disabled: z.boolean().optional(),
|
|
4291
|
+
pinOrder: z.number().optional(),
|
|
4292
|
+
control: z.string().optional(),
|
|
4293
|
+
margin: sizeSchema.optional()
|
|
4294
4294
|
});
|
|
4295
|
-
var
|
|
4296
|
-
|
|
4295
|
+
var reviewLayoutFieldSchema = z.object({
|
|
4296
|
+
label: z.string(),
|
|
4297
|
+
value: z.string(),
|
|
4298
|
+
rawValue: z.string().optional(),
|
|
4299
|
+
help: helpSchema.optional()
|
|
4297
4300
|
});
|
|
4298
4301
|
var searchResultSearchSchema = z.object({
|
|
4299
4302
|
type: z.literal("search"),
|
|
@@ -4311,6 +4314,20 @@ var searchResultActionSchema = z.object({
|
|
|
4311
4314
|
image: imageLayoutSchema.optional(),
|
|
4312
4315
|
value: actionSchema
|
|
4313
4316
|
});
|
|
4317
|
+
var actionResponseBodySchema = z.object({
|
|
4318
|
+
action: actionSchema
|
|
4319
|
+
});
|
|
4320
|
+
var errorResponseBodySchema = z.object({
|
|
4321
|
+
refreshFormUrl: z.string().optional(),
|
|
4322
|
+
analytics: z.record(z.string()).optional(),
|
|
4323
|
+
error: z.string().optional(),
|
|
4324
|
+
validation: jsonElementSchema.optional(),
|
|
4325
|
+
refreshUrl: z.string().optional()
|
|
4326
|
+
});
|
|
4327
|
+
var linkHandlerSchema = z.object({
|
|
4328
|
+
regexPattern: z.string(),
|
|
4329
|
+
action: actionSchema
|
|
4330
|
+
});
|
|
4314
4331
|
var pollingOnErrorSchema = z.object({
|
|
4315
4332
|
action: actionSchema
|
|
4316
4333
|
});
|
|
@@ -4318,33 +4335,33 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
4318
4335
|
title: z.string().optional(),
|
|
4319
4336
|
action: actionSchema
|
|
4320
4337
|
});
|
|
4321
|
-
var
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4338
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
4339
|
+
title: z.string(),
|
|
4340
|
+
action: actionSchema
|
|
4341
|
+
});
|
|
4342
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
4343
|
+
title: z.string(),
|
|
4344
|
+
accessibilityDescription: z.string().optional(),
|
|
4345
|
+
behavior: behaviorSchema
|
|
4346
|
+
});
|
|
4347
|
+
var listLayoutSchema = z.object({
|
|
4348
|
+
type: z.literal("list"),
|
|
4349
|
+
items: z.array(listLayoutItemSchema),
|
|
4325
4350
|
title: z.string().optional(),
|
|
4326
|
-
action: actionSchema,
|
|
4327
|
-
context: contextSchema.optional(),
|
|
4328
|
-
disabled: z.boolean().optional(),
|
|
4329
|
-
pinOrder: z.number().optional(),
|
|
4330
4351
|
control: z.string().optional(),
|
|
4331
4352
|
margin: sizeSchema.optional()
|
|
4332
4353
|
});
|
|
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(),
|
|
4354
|
+
var decisionLayoutSchema = z.object({
|
|
4355
|
+
type: z.literal("decision"),
|
|
4356
|
+
title: z.string().optional(),
|
|
4357
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
4345
4358
|
control: z.string().optional(),
|
|
4346
|
-
margin: sizeSchema.optional()
|
|
4347
|
-
|
|
4359
|
+
margin: sizeSchema.optional()
|
|
4360
|
+
});
|
|
4361
|
+
var itemCallToActionSchema = z.object({
|
|
4362
|
+
title: z.string(),
|
|
4363
|
+
accessibilityDescription: z.string().optional(),
|
|
4364
|
+
behavior: behaviorSchema
|
|
4348
4365
|
});
|
|
4349
4366
|
var reviewLayoutSchema = z.object({
|
|
4350
4367
|
type: z.literal("review"),
|
|
@@ -4356,16 +4373,27 @@ var reviewLayoutSchema = z.object({
|
|
|
4356
4373
|
control: z.string().optional(),
|
|
4357
4374
|
margin: sizeSchema.optional()
|
|
4358
4375
|
});
|
|
4359
|
-
var
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4376
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4377
|
+
var pollingSchema = z.object({
|
|
4378
|
+
url: z.string(),
|
|
4379
|
+
interval: z.number().optional(),
|
|
4380
|
+
delay: z.number().optional(),
|
|
4381
|
+
timeout: z.number().optional(),
|
|
4382
|
+
maxAttempts: z.number(),
|
|
4383
|
+
onError: pollingOnErrorSchema
|
|
4364
4384
|
});
|
|
4365
|
-
var
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4385
|
+
var navigationSchema = z.object({
|
|
4386
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
4387
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
4388
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4389
|
+
});
|
|
4390
|
+
var alertLayoutSchema = z.object({
|
|
4391
|
+
type: z.literal("alert"),
|
|
4392
|
+
markdown: z.string(),
|
|
4393
|
+
context: contextSchema.optional(),
|
|
4394
|
+
control: z.string().optional(),
|
|
4395
|
+
margin: sizeSchema.optional(),
|
|
4396
|
+
callToAction: alertLayoutCallToActionSchema.optional()
|
|
4369
4397
|
});
|
|
4370
4398
|
var statusListLayoutItemSchema = z.object({
|
|
4371
4399
|
title: z.string(),
|
|
@@ -4374,6 +4402,9 @@ var statusListLayoutItemSchema = z.object({
|
|
|
4374
4402
|
status: statusListLayoutStatusSchema.optional(),
|
|
4375
4403
|
callToAction: itemCallToActionSchema.optional()
|
|
4376
4404
|
});
|
|
4405
|
+
var searchResponseBodySchema = z.object({
|
|
4406
|
+
results: z.array(searchResultSchema)
|
|
4407
|
+
});
|
|
4377
4408
|
var blobSchemaSchema = z.object({
|
|
4378
4409
|
type: z.literal("blob"),
|
|
4379
4410
|
promoted: z.boolean().optional(),
|
|
@@ -4412,34 +4443,6 @@ var constSchemaSchema = z.object({
|
|
|
4412
4443
|
analyticsId: z.string().optional(),
|
|
4413
4444
|
disabled: z.boolean().optional()
|
|
4414
4445
|
});
|
|
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
4446
|
var statusListLayoutSchema = z.object({
|
|
4444
4447
|
type: z.literal("status-list"),
|
|
4445
4448
|
items: z.array(statusListLayoutItemSchema),
|
|
@@ -4447,19 +4450,6 @@ var statusListLayoutSchema = z.object({
|
|
|
4447
4450
|
control: z.string().optional(),
|
|
4448
4451
|
margin: sizeSchema.optional()
|
|
4449
4452
|
});
|
|
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
4453
|
var layoutSchema = z.lazy(
|
|
4464
4454
|
() => z.union([
|
|
4465
4455
|
alertLayoutSchema,
|
|
@@ -4483,6 +4473,26 @@ var layoutSchema = z.lazy(
|
|
|
4483
4473
|
statusListLayoutSchema
|
|
4484
4474
|
])
|
|
4485
4475
|
);
|
|
4476
|
+
var boxLayoutSchema = z.lazy(
|
|
4477
|
+
() => z.object({
|
|
4478
|
+
type: z.literal("box"),
|
|
4479
|
+
components: z.array(layoutSchema),
|
|
4480
|
+
width: sizeSchema.optional(),
|
|
4481
|
+
border: z.boolean().optional(),
|
|
4482
|
+
control: z.string().optional(),
|
|
4483
|
+
margin: sizeSchema.optional()
|
|
4484
|
+
})
|
|
4485
|
+
);
|
|
4486
|
+
var columnsLayoutSchema = z.lazy(
|
|
4487
|
+
() => z.object({
|
|
4488
|
+
type: z.literal("columns"),
|
|
4489
|
+
left: z.array(layoutSchema),
|
|
4490
|
+
right: z.array(layoutSchema),
|
|
4491
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
4492
|
+
control: z.string().optional(),
|
|
4493
|
+
margin: sizeSchema.optional()
|
|
4494
|
+
})
|
|
4495
|
+
);
|
|
4486
4496
|
var modalLayoutSchema = z.lazy(
|
|
4487
4497
|
() => z.object({
|
|
4488
4498
|
type: z.literal("modal"),
|
|
@@ -4498,14 +4508,25 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
4498
4508
|
components: z.array(layoutSchema)
|
|
4499
4509
|
})
|
|
4500
4510
|
);
|
|
4501
|
-
var
|
|
4511
|
+
var stepSchema = z.lazy(
|
|
4502
4512
|
() => z.object({
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4513
|
+
key: z.string().optional(),
|
|
4514
|
+
type: z.string().optional(),
|
|
4515
|
+
actions: z.array(actionSchema).optional(),
|
|
4516
|
+
refreshFormUrl: z.string().optional(),
|
|
4517
|
+
id: z.string(),
|
|
4518
|
+
title: z.string(),
|
|
4519
|
+
schemas: z.array(schemaSchema),
|
|
4520
|
+
layout: z.array(layoutSchema),
|
|
4521
|
+
description: z.string().optional(),
|
|
4522
|
+
model: jsonElementSchema.optional(),
|
|
4523
|
+
external: externalSchema.optional(),
|
|
4524
|
+
polling: pollingSchema.optional(),
|
|
4525
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
4526
|
+
analytics: z.record(z.string()).optional(),
|
|
4527
|
+
errors: stepErrorSchema.optional(),
|
|
4528
|
+
navigation: navigationSchema.optional(),
|
|
4529
|
+
refreshUrl: z.string().optional()
|
|
4509
4530
|
})
|
|
4510
4531
|
);
|
|
4511
4532
|
var schemaSchema = z.lazy(
|
|
@@ -4731,21 +4752,17 @@ var stringSchemaSchema = z.lazy(
|
|
|
4731
4752
|
help: helpSchema.optional()
|
|
4732
4753
|
})
|
|
4733
4754
|
);
|
|
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(
|
|
4755
|
+
var arraySchemaListSchema = z.lazy(
|
|
4744
4756
|
() => z.object({
|
|
4745
4757
|
type: z.literal("array"),
|
|
4746
4758
|
promoted: z.boolean().optional(),
|
|
4747
4759
|
$id: z.string().optional(),
|
|
4748
|
-
items:
|
|
4760
|
+
items: schemaSchema,
|
|
4761
|
+
addItemTitle: z.string(),
|
|
4762
|
+
editItemTitle: z.string(),
|
|
4763
|
+
minItems: z.number().optional(),
|
|
4764
|
+
maxItems: z.number().optional(),
|
|
4765
|
+
placeholder: z.string().optional(),
|
|
4749
4766
|
title: z.string().optional(),
|
|
4750
4767
|
description: z.string().optional(),
|
|
4751
4768
|
control: z.string().optional(),
|
|
@@ -4753,24 +4770,30 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
4753
4770
|
icon: iconSchema.optional(),
|
|
4754
4771
|
image: imageSchema.optional(),
|
|
4755
4772
|
keywords: z.array(z.string()).optional(),
|
|
4756
|
-
summary:
|
|
4773
|
+
summary: summarySummariserSchema.optional(),
|
|
4757
4774
|
analyticsId: z.string().optional(),
|
|
4758
4775
|
persistAsync: persistAsyncSchema.optional(),
|
|
4759
4776
|
validationAsync: validateAsyncSchema.optional(),
|
|
4760
|
-
alert: alertLayoutSchema.optional()
|
|
4777
|
+
alert: alertLayoutSchema.optional(),
|
|
4778
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4779
|
+
disabled: z.boolean().optional()
|
|
4761
4780
|
})
|
|
4762
4781
|
);
|
|
4763
|
-
var
|
|
4782
|
+
var persistAsyncSchema = z.lazy(
|
|
4783
|
+
() => z.object({
|
|
4784
|
+
param: z.string(),
|
|
4785
|
+
idProperty: z.string(),
|
|
4786
|
+
schema: schemaSchema,
|
|
4787
|
+
url: z.string(),
|
|
4788
|
+
method: httpMethodSchema
|
|
4789
|
+
})
|
|
4790
|
+
);
|
|
4791
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
4764
4792
|
() => z.object({
|
|
4765
4793
|
type: z.literal("array"),
|
|
4766
4794
|
promoted: z.boolean().optional(),
|
|
4767
4795
|
$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(),
|
|
4796
|
+
items: z.array(schemaSchema),
|
|
4774
4797
|
title: z.string().optional(),
|
|
4775
4798
|
description: z.string().optional(),
|
|
4776
4799
|
control: z.string().optional(),
|
|
@@ -4778,34 +4801,11 @@ var arraySchemaListSchema = z.lazy(
|
|
|
4778
4801
|
icon: iconSchema.optional(),
|
|
4779
4802
|
image: imageSchema.optional(),
|
|
4780
4803
|
keywords: z.array(z.string()).optional(),
|
|
4781
|
-
summary:
|
|
4804
|
+
summary: summaryProviderSchema.optional(),
|
|
4782
4805
|
analyticsId: z.string().optional(),
|
|
4783
4806
|
persistAsync: persistAsyncSchema.optional(),
|
|
4784
4807
|
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()
|
|
4808
|
+
alert: alertLayoutSchema.optional()
|
|
4809
4809
|
})
|
|
4810
4810
|
);
|
|
4811
4811
|
|