@wise/dynamic-flow-types 2.28.3 → 2.29.0-experimental-renderer-types-export-10cc7fc
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 +3135 -3135
- package/package.json +7 -4
package/build/main.js
CHANGED
|
@@ -3976,21 +3976,13 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3976
3976
|
});
|
|
3977
3977
|
|
|
3978
3978
|
// src/zod/schemas.ts
|
|
3979
|
-
var
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
z.literal("GET"),
|
|
3986
|
-
z.literal("POST"),
|
|
3987
|
-
z.literal("PUT"),
|
|
3988
|
-
z.literal("PATCH"),
|
|
3989
|
-
z.literal("DELETE")
|
|
3979
|
+
var sizeSchema = z.union([
|
|
3980
|
+
z.literal("xs"),
|
|
3981
|
+
z.literal("sm"),
|
|
3982
|
+
z.literal("md"),
|
|
3983
|
+
z.literal("lg"),
|
|
3984
|
+
z.literal("xl")
|
|
3990
3985
|
]);
|
|
3991
|
-
var iconNamedSchema = z.object({
|
|
3992
|
-
name: z.string()
|
|
3993
|
-
});
|
|
3994
3986
|
var contextSchema = z.union([
|
|
3995
3987
|
z.literal("positive"),
|
|
3996
3988
|
z.literal("neutral"),
|
|
@@ -4001,18 +3993,107 @@ var contextSchema = z.union([
|
|
|
4001
3993
|
z.literal("info"),
|
|
4002
3994
|
z.literal("primary")
|
|
4003
3995
|
]);
|
|
4004
|
-
var
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
z.literal("
|
|
4011
|
-
z.literal("
|
|
4012
|
-
z.literal("
|
|
3996
|
+
var columnsLayoutBiasSchema = z.union([
|
|
3997
|
+
z.literal("none"),
|
|
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")
|
|
4013
4005
|
]);
|
|
4014
4006
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
4015
|
-
var
|
|
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()
|
|
4024
|
+
});
|
|
4025
|
+
var listLayoutStatusSchema = z.union([
|
|
4026
|
+
z.literal("warning"),
|
|
4027
|
+
z.literal("neutral"),
|
|
4028
|
+
z.literal("positive")
|
|
4029
|
+
]);
|
|
4030
|
+
var headingLayoutSchema = z.object({
|
|
4031
|
+
type: z.literal("heading"),
|
|
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
|
+
});
|
|
4016
4097
|
var autocompleteTokenSchema = z.union([
|
|
4017
4098
|
z.literal("on"),
|
|
4018
4099
|
z.literal("name"),
|
|
@@ -4078,106 +4159,14 @@ var autocompleteTokenSchema = z.union([
|
|
|
4078
4159
|
z.literal("fax"),
|
|
4079
4160
|
z.literal("pager")
|
|
4080
4161
|
]);
|
|
4081
|
-
var
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
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")
|
|
4162
|
+
var stringSchemaFormatSchema = z.union([
|
|
4163
|
+
z.literal("date"),
|
|
4164
|
+
z.literal("email"),
|
|
4165
|
+
z.literal("numeric"),
|
|
4166
|
+
z.literal("password"),
|
|
4167
|
+
z.literal("phone-number"),
|
|
4168
|
+
z.literal("base64url")
|
|
4171
4169
|
]);
|
|
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
|
-
});
|
|
4181
4170
|
var jsonElementSchema = z.lazy(
|
|
4182
4171
|
() => z.union([
|
|
4183
4172
|
z.string(),
|
|
@@ -4187,6 +4176,7 @@ var jsonElementSchema = z.lazy(
|
|
|
4187
4176
|
z.array(jsonElementSchema)
|
|
4188
4177
|
]).nullable()
|
|
4189
4178
|
);
|
|
4179
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4190
4180
|
var externalSchema = z.object({
|
|
4191
4181
|
url: z.string()
|
|
4192
4182
|
});
|
|
@@ -4194,42 +4184,28 @@ var stepErrorSchema = z.object({
|
|
|
4194
4184
|
error: z.string().optional(),
|
|
4195
4185
|
validation: jsonElementSchema.optional()
|
|
4196
4186
|
});
|
|
4197
|
-
var
|
|
4198
|
-
z.
|
|
4199
|
-
z.
|
|
4200
|
-
z.
|
|
4201
|
-
|
|
4202
|
-
z.
|
|
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()
|
|
4187
|
+
var errorResponseBodySchema = z.object({
|
|
4188
|
+
refreshFormUrl: z.string().optional(),
|
|
4189
|
+
analytics: z.record(z.string()).optional(),
|
|
4190
|
+
error: z.string().optional(),
|
|
4191
|
+
validation: jsonElementSchema.optional(),
|
|
4192
|
+
refreshUrl: z.string().optional()
|
|
4214
4193
|
});
|
|
4215
|
-
var
|
|
4216
|
-
|
|
4194
|
+
var searchSearchRequestSchema = z.object({
|
|
4195
|
+
url: z.string(),
|
|
4217
4196
|
method: httpMethodSchema,
|
|
4218
|
-
|
|
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()
|
|
4197
|
+
param: z.string(),
|
|
4198
|
+
query: z.string()
|
|
4225
4199
|
});
|
|
4226
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4227
4200
|
var navigationStackBehaviorSchema = z.union([
|
|
4228
4201
|
z.literal("default"),
|
|
4229
4202
|
z.literal("remove-previous"),
|
|
4230
4203
|
z.literal("remove-all"),
|
|
4231
4204
|
z.literal("replace-current")
|
|
4232
4205
|
]);
|
|
4206
|
+
var linkSchema = z.object({
|
|
4207
|
+
url: z.string()
|
|
4208
|
+
});
|
|
4233
4209
|
var actionTypeSchema = z.union([
|
|
4234
4210
|
z.literal("primary"),
|
|
4235
4211
|
z.literal("secondary"),
|
|
@@ -4237,9 +4213,11 @@ var actionTypeSchema = z.union([
|
|
|
4237
4213
|
z.literal("positive"),
|
|
4238
4214
|
z.literal("negative")
|
|
4239
4215
|
]);
|
|
4240
|
-
var
|
|
4241
|
-
|
|
4242
|
-
|
|
4216
|
+
var iconNamedSchema = z.object({
|
|
4217
|
+
name: z.string()
|
|
4218
|
+
});
|
|
4219
|
+
var iconTextSchema = z.object({
|
|
4220
|
+
text: z.string()
|
|
4243
4221
|
});
|
|
4244
4222
|
var actionSchema = z.object({
|
|
4245
4223
|
title: z.string().optional(),
|
|
@@ -4256,19 +4234,26 @@ var actionSchema = z.object({
|
|
|
4256
4234
|
timeout: z.number().optional(),
|
|
4257
4235
|
skipValidation: z.boolean().optional()
|
|
4258
4236
|
});
|
|
4259
|
-
var
|
|
4237
|
+
var markdownLayoutSchema = z.object({
|
|
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"),
|
|
4260
4246
|
title: z.string(),
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4247
|
+
method: httpMethodSchema,
|
|
4248
|
+
url: z.string(),
|
|
4249
|
+
param: z.string(),
|
|
4250
|
+
emptyMessage: z.string().optional(),
|
|
4251
|
+
control: z.string().optional(),
|
|
4252
|
+
margin: sizeSchema.optional()
|
|
4264
4253
|
});
|
|
4265
|
-
var
|
|
4266
|
-
action: actionSchema,
|
|
4254
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
4267
4255
|
title: z.string(),
|
|
4268
|
-
|
|
4269
|
-
disabled: z.boolean().optional(),
|
|
4270
|
-
icon: iconSchema.optional(),
|
|
4271
|
-
image: imageLayoutSchema.optional()
|
|
4256
|
+
action: actionSchema
|
|
4272
4257
|
});
|
|
4273
4258
|
var instructionsLayoutSchema = z.object({
|
|
4274
4259
|
type: z.literal("instructions"),
|
|
@@ -4277,26 +4262,38 @@ var instructionsLayoutSchema = z.object({
|
|
|
4277
4262
|
control: z.string().optional(),
|
|
4278
4263
|
margin: sizeSchema.optional()
|
|
4279
4264
|
});
|
|
4265
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4280
4266
|
var behaviorSchema = z.object({
|
|
4281
4267
|
action: actionSchema.optional(),
|
|
4282
4268
|
link: linkSchema.optional()
|
|
4283
4269
|
});
|
|
4284
|
-
var
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4270
|
+
var reviewLayoutFieldSchema = z.object({
|
|
4271
|
+
label: z.string(),
|
|
4272
|
+
value: z.string(),
|
|
4273
|
+
rawValue: z.string().optional(),
|
|
4274
|
+
help: helpSchema.optional()
|
|
4275
|
+
});
|
|
4276
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
4277
|
+
title: z.string(),
|
|
4278
|
+
accessibilityDescription: z.string().optional(),
|
|
4279
|
+
behavior: behaviorSchema
|
|
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()
|
|
4294
4290
|
});
|
|
4295
|
-
var
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4291
|
+
var linkHandlerSchema = z.object({
|
|
4292
|
+
regexPattern: z.string(),
|
|
4293
|
+
action: actionSchema
|
|
4294
|
+
});
|
|
4295
|
+
var actionResponseBodySchema = z.object({
|
|
4296
|
+
action: actionSchema
|
|
4300
4297
|
});
|
|
4301
4298
|
var searchResultSearchSchema = z.object({
|
|
4302
4299
|
type: z.literal("search"),
|
|
@@ -4314,20 +4311,6 @@ var searchResultActionSchema = z.object({
|
|
|
4314
4311
|
image: imageLayoutSchema.optional(),
|
|
4315
4312
|
value: actionSchema
|
|
4316
4313
|
});
|
|
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
|
-
});
|
|
4331
4314
|
var pollingOnErrorSchema = z.object({
|
|
4332
4315
|
action: actionSchema
|
|
4333
4316
|
});
|
|
@@ -4335,33 +4318,33 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
4335
4318
|
title: z.string().optional(),
|
|
4336
4319
|
action: actionSchema
|
|
4337
4320
|
});
|
|
4338
|
-
var
|
|
4339
|
-
|
|
4340
|
-
|
|
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),
|
|
4350
|
-
title: z.string().optional(),
|
|
4351
|
-
control: z.string().optional(),
|
|
4352
|
-
margin: sizeSchema.optional()
|
|
4353
|
-
});
|
|
4354
|
-
var decisionLayoutSchema = z.object({
|
|
4355
|
-
type: z.literal("decision"),
|
|
4321
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4322
|
+
var buttonLayoutSchema = z.object({
|
|
4323
|
+
type: z.literal("button"),
|
|
4324
|
+
size: sizeSchema.optional(),
|
|
4356
4325
|
title: z.string().optional(),
|
|
4357
|
-
|
|
4326
|
+
action: actionSchema,
|
|
4327
|
+
context: contextSchema.optional(),
|
|
4328
|
+
disabled: z.boolean().optional(),
|
|
4329
|
+
pinOrder: z.number().optional(),
|
|
4358
4330
|
control: z.string().optional(),
|
|
4359
4331
|
margin: sizeSchema.optional()
|
|
4360
4332
|
});
|
|
4361
|
-
var
|
|
4333
|
+
var decisionLayoutOptionSchema = z.object({
|
|
4334
|
+
action: actionSchema,
|
|
4362
4335
|
title: z.string(),
|
|
4363
|
-
|
|
4364
|
-
|
|
4336
|
+
description: z.string().optional(),
|
|
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(),
|
|
4345
|
+
control: z.string().optional(),
|
|
4346
|
+
margin: sizeSchema.optional(),
|
|
4347
|
+
callToAction: alertLayoutCallToActionSchema.optional()
|
|
4365
4348
|
});
|
|
4366
4349
|
var reviewLayoutSchema = z.object({
|
|
4367
4350
|
type: z.literal("review"),
|
|
@@ -4373,27 +4356,16 @@ var reviewLayoutSchema = z.object({
|
|
|
4373
4356
|
control: z.string().optional(),
|
|
4374
4357
|
margin: sizeSchema.optional()
|
|
4375
4358
|
});
|
|
4376
|
-
var
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
timeout: z.number().optional(),
|
|
4382
|
-
maxAttempts: z.number(),
|
|
4383
|
-
onError: pollingOnErrorSchema
|
|
4384
|
-
});
|
|
4385
|
-
var navigationSchema = z.object({
|
|
4386
|
-
backButton: navigationBackBehaviorSchema.optional(),
|
|
4387
|
-
back: navigationBackBehaviorSchema.optional(),
|
|
4388
|
-
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4359
|
+
var listLayoutItemSchema = z.object({
|
|
4360
|
+
title: z.string(),
|
|
4361
|
+
description: z.string().optional(),
|
|
4362
|
+
icon: iconSchema,
|
|
4363
|
+
status: listLayoutStatusSchema.optional()
|
|
4389
4364
|
});
|
|
4390
|
-
var
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
control: z.string().optional(),
|
|
4395
|
-
margin: sizeSchema.optional(),
|
|
4396
|
-
callToAction: alertLayoutCallToActionSchema.optional()
|
|
4365
|
+
var itemCallToActionSchema = z.object({
|
|
4366
|
+
title: z.string(),
|
|
4367
|
+
accessibilityDescription: z.string().optional(),
|
|
4368
|
+
behavior: behaviorSchema
|
|
4397
4369
|
});
|
|
4398
4370
|
var statusListLayoutItemSchema = z.object({
|
|
4399
4371
|
title: z.string(),
|
|
@@ -4402,9 +4374,6 @@ var statusListLayoutItemSchema = z.object({
|
|
|
4402
4374
|
status: statusListLayoutStatusSchema.optional(),
|
|
4403
4375
|
callToAction: itemCallToActionSchema.optional()
|
|
4404
4376
|
});
|
|
4405
|
-
var searchResponseBodySchema = z.object({
|
|
4406
|
-
results: z.array(searchResultSchema)
|
|
4407
|
-
});
|
|
4408
4377
|
var blobSchemaSchema = z.object({
|
|
4409
4378
|
type: z.literal("blob"),
|
|
4410
4379
|
promoted: z.boolean().optional(),
|
|
@@ -4443,6 +4412,34 @@ var constSchemaSchema = z.object({
|
|
|
4443
4412
|
analyticsId: z.string().optional(),
|
|
4444
4413
|
disabled: z.boolean().optional()
|
|
4445
4414
|
});
|
|
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
|
+
});
|
|
4446
4443
|
var statusListLayoutSchema = z.object({
|
|
4447
4444
|
type: z.literal("status-list"),
|
|
4448
4445
|
items: z.array(statusListLayoutItemSchema),
|
|
@@ -4450,6 +4447,19 @@ var statusListLayoutSchema = z.object({
|
|
|
4450
4447
|
control: z.string().optional(),
|
|
4451
4448
|
margin: sizeSchema.optional()
|
|
4452
4449
|
});
|
|
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
|
+
);
|
|
4453
4463
|
var layoutSchema = z.lazy(
|
|
4454
4464
|
() => z.union([
|
|
4455
4465
|
alertLayoutSchema,
|
|
@@ -4473,26 +4483,6 @@ var layoutSchema = z.lazy(
|
|
|
4473
4483
|
statusListLayoutSchema
|
|
4474
4484
|
])
|
|
4475
4485
|
);
|
|
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
|
-
);
|
|
4496
4486
|
var modalLayoutSchema = z.lazy(
|
|
4497
4487
|
() => z.object({
|
|
4498
4488
|
type: z.literal("modal"),
|
|
@@ -4508,25 +4498,14 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
4508
4498
|
components: z.array(layoutSchema)
|
|
4509
4499
|
})
|
|
4510
4500
|
);
|
|
4511
|
-
var
|
|
4501
|
+
var boxLayoutSchema = z.lazy(
|
|
4512
4502
|
() => z.object({
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
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()
|
|
4503
|
+
type: z.literal("box"),
|
|
4504
|
+
components: z.array(layoutSchema),
|
|
4505
|
+
width: sizeSchema.optional(),
|
|
4506
|
+
border: z.boolean().optional(),
|
|
4507
|
+
control: z.string().optional(),
|
|
4508
|
+
margin: sizeSchema.optional()
|
|
4530
4509
|
})
|
|
4531
4510
|
);
|
|
4532
4511
|
var schemaSchema = z.lazy(
|
|
@@ -4752,17 +4731,21 @@ var stringSchemaSchema = z.lazy(
|
|
|
4752
4731
|
help: helpSchema.optional()
|
|
4753
4732
|
})
|
|
4754
4733
|
);
|
|
4755
|
-
var
|
|
4734
|
+
var persistAsyncSchema = z.lazy(
|
|
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(
|
|
4756
4744
|
() => z.object({
|
|
4757
4745
|
type: z.literal("array"),
|
|
4758
4746
|
promoted: z.boolean().optional(),
|
|
4759
4747
|
$id: z.string().optional(),
|
|
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(),
|
|
4748
|
+
items: z.array(schemaSchema),
|
|
4766
4749
|
title: z.string().optional(),
|
|
4767
4750
|
description: z.string().optional(),
|
|
4768
4751
|
control: z.string().optional(),
|
|
@@ -4770,30 +4753,24 @@ var arraySchemaListSchema = z.lazy(
|
|
|
4770
4753
|
icon: iconSchema.optional(),
|
|
4771
4754
|
image: imageSchema.optional(),
|
|
4772
4755
|
keywords: z.array(z.string()).optional(),
|
|
4773
|
-
summary:
|
|
4756
|
+
summary: summaryProviderSchema.optional(),
|
|
4774
4757
|
analyticsId: z.string().optional(),
|
|
4775
4758
|
persistAsync: persistAsyncSchema.optional(),
|
|
4776
4759
|
validationAsync: validateAsyncSchema.optional(),
|
|
4777
|
-
alert: alertLayoutSchema.optional()
|
|
4778
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4779
|
-
disabled: z.boolean().optional()
|
|
4780
|
-
})
|
|
4781
|
-
);
|
|
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
|
|
4760
|
+
alert: alertLayoutSchema.optional()
|
|
4789
4761
|
})
|
|
4790
4762
|
);
|
|
4791
|
-
var
|
|
4763
|
+
var arraySchemaListSchema = z.lazy(
|
|
4792
4764
|
() => z.object({
|
|
4793
4765
|
type: z.literal("array"),
|
|
4794
4766
|
promoted: z.boolean().optional(),
|
|
4795
4767
|
$id: z.string().optional(),
|
|
4796
|
-
items:
|
|
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(),
|
|
4797
4774
|
title: z.string().optional(),
|
|
4798
4775
|
description: z.string().optional(),
|
|
4799
4776
|
control: z.string().optional(),
|
|
@@ -4801,11 +4778,34 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
4801
4778
|
icon: iconSchema.optional(),
|
|
4802
4779
|
image: imageSchema.optional(),
|
|
4803
4780
|
keywords: z.array(z.string()).optional(),
|
|
4804
|
-
summary:
|
|
4781
|
+
summary: summarySummariserSchema.optional(),
|
|
4805
4782
|
analyticsId: z.string().optional(),
|
|
4806
4783
|
persistAsync: persistAsyncSchema.optional(),
|
|
4807
4784
|
validationAsync: validateAsyncSchema.optional(),
|
|
4808
|
-
alert: alertLayoutSchema.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()
|
|
4809
4809
|
})
|
|
4810
4810
|
);
|
|
4811
4811
|
|