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