@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.mjs
CHANGED
|
@@ -3951,13 +3951,21 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3951
3951
|
});
|
|
3952
3952
|
|
|
3953
3953
|
// src/zod/schemas.ts
|
|
3954
|
-
var
|
|
3955
|
-
z.
|
|
3956
|
-
z.
|
|
3957
|
-
z.
|
|
3958
|
-
|
|
3959
|
-
|
|
3954
|
+
var imageSchema = z.object({
|
|
3955
|
+
text: z.string().optional(),
|
|
3956
|
+
url: z.string(),
|
|
3957
|
+
accessibilityDescription: z.string().optional()
|
|
3958
|
+
});
|
|
3959
|
+
var httpMethodSchema = z.union([
|
|
3960
|
+
z.literal("GET"),
|
|
3961
|
+
z.literal("POST"),
|
|
3962
|
+
z.literal("PUT"),
|
|
3963
|
+
z.literal("PATCH"),
|
|
3964
|
+
z.literal("DELETE")
|
|
3960
3965
|
]);
|
|
3966
|
+
var iconNamedSchema = z.object({
|
|
3967
|
+
name: z.string()
|
|
3968
|
+
});
|
|
3961
3969
|
var contextSchema = z.union([
|
|
3962
3970
|
z.literal("positive"),
|
|
3963
3971
|
z.literal("neutral"),
|
|
@@ -3968,107 +3976,18 @@ var contextSchema = z.union([
|
|
|
3968
3976
|
z.literal("info"),
|
|
3969
3977
|
z.literal("primary")
|
|
3970
3978
|
]);
|
|
3971
|
-
var
|
|
3972
|
-
z.
|
|
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")
|
|
3980
|
-
]);
|
|
3981
|
-
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
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()
|
|
3979
|
+
var iconTextSchema = z.object({
|
|
3980
|
+
text: z.string()
|
|
3999
3981
|
});
|
|
4000
|
-
var
|
|
4001
|
-
z.literal("
|
|
4002
|
-
z.literal("
|
|
4003
|
-
z.literal("
|
|
3982
|
+
var sizeSchema = z.union([
|
|
3983
|
+
z.literal("xs"),
|
|
3984
|
+
z.literal("sm"),
|
|
3985
|
+
z.literal("md"),
|
|
3986
|
+
z.literal("lg"),
|
|
3987
|
+
z.literal("xl")
|
|
4004
3988
|
]);
|
|
4005
|
-
var
|
|
4006
|
-
|
|
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
|
-
});
|
|
3989
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
3990
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4072
3991
|
var autocompleteTokenSchema = z.union([
|
|
4073
3992
|
z.literal("on"),
|
|
4074
3993
|
z.literal("name"),
|
|
@@ -4134,14 +4053,106 @@ var autocompleteTokenSchema = z.union([
|
|
|
4134
4053
|
z.literal("fax"),
|
|
4135
4054
|
z.literal("pager")
|
|
4136
4055
|
]);
|
|
4137
|
-
var
|
|
4138
|
-
z.literal("
|
|
4139
|
-
|
|
4140
|
-
z.
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4056
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
4057
|
+
type: z.literal("loading-indicator"),
|
|
4058
|
+
size: sizeSchema.optional(),
|
|
4059
|
+
control: z.string().optional(),
|
|
4060
|
+
margin: sizeSchema.optional()
|
|
4061
|
+
});
|
|
4062
|
+
var paragraphLayoutSchema = z.object({
|
|
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")
|
|
4144
4146
|
]);
|
|
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
|
+
});
|
|
4145
4156
|
var jsonElementSchema = z.lazy(
|
|
4146
4157
|
() => z.union([
|
|
4147
4158
|
z.string(),
|
|
@@ -4151,7 +4162,6 @@ var jsonElementSchema = z.lazy(
|
|
|
4151
4162
|
z.array(jsonElementSchema)
|
|
4152
4163
|
]).nullable()
|
|
4153
4164
|
);
|
|
4154
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4155
4165
|
var externalSchema = z.object({
|
|
4156
4166
|
url: z.string()
|
|
4157
4167
|
});
|
|
@@ -4159,28 +4169,42 @@ var stepErrorSchema = z.object({
|
|
|
4159
4169
|
error: z.string().optional(),
|
|
4160
4170
|
validation: jsonElementSchema.optional()
|
|
4161
4171
|
});
|
|
4162
|
-
var
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4172
|
+
var stringSchemaFormatSchema = z.union([
|
|
4173
|
+
z.literal("date"),
|
|
4174
|
+
z.literal("email"),
|
|
4175
|
+
z.literal("numeric"),
|
|
4176
|
+
z.literal("password"),
|
|
4177
|
+
z.literal("phone-number"),
|
|
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()
|
|
4168
4189
|
});
|
|
4169
|
-
var
|
|
4170
|
-
url: z.string(),
|
|
4171
|
-
method: httpMethodSchema,
|
|
4190
|
+
var validateAsyncSchema = z.object({
|
|
4172
4191
|
param: z.string(),
|
|
4173
|
-
|
|
4192
|
+
method: httpMethodSchema,
|
|
4193
|
+
url: z.string()
|
|
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()
|
|
4174
4200
|
});
|
|
4201
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4175
4202
|
var navigationStackBehaviorSchema = z.union([
|
|
4176
4203
|
z.literal("default"),
|
|
4177
4204
|
z.literal("remove-previous"),
|
|
4178
4205
|
z.literal("remove-all"),
|
|
4179
4206
|
z.literal("replace-current")
|
|
4180
4207
|
]);
|
|
4181
|
-
var linkSchema = z.object({
|
|
4182
|
-
url: z.string()
|
|
4183
|
-
});
|
|
4184
4208
|
var actionTypeSchema = z.union([
|
|
4185
4209
|
z.literal("primary"),
|
|
4186
4210
|
z.literal("secondary"),
|
|
@@ -4188,11 +4212,9 @@ var actionTypeSchema = z.union([
|
|
|
4188
4212
|
z.literal("positive"),
|
|
4189
4213
|
z.literal("negative")
|
|
4190
4214
|
]);
|
|
4191
|
-
var
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
var iconTextSchema = z.object({
|
|
4195
|
-
text: z.string()
|
|
4215
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4216
|
+
var linkSchema = z.object({
|
|
4217
|
+
url: z.string()
|
|
4196
4218
|
});
|
|
4197
4219
|
var actionSchema = z.object({
|
|
4198
4220
|
title: z.string().optional(),
|
|
@@ -4209,26 +4231,19 @@ var actionSchema = z.object({
|
|
|
4209
4231
|
timeout: z.number().optional(),
|
|
4210
4232
|
skipValidation: z.boolean().optional()
|
|
4211
4233
|
});
|
|
4212
|
-
var
|
|
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"),
|
|
4234
|
+
var listLayoutItemSchema = z.object({
|
|
4221
4235
|
title: z.string(),
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
emptyMessage: z.string().optional(),
|
|
4226
|
-
control: z.string().optional(),
|
|
4227
|
-
margin: sizeSchema.optional()
|
|
4236
|
+
description: z.string().optional(),
|
|
4237
|
+
icon: iconSchema,
|
|
4238
|
+
status: listLayoutStatusSchema.optional()
|
|
4228
4239
|
});
|
|
4229
|
-
var
|
|
4240
|
+
var decisionLayoutOptionSchema = z.object({
|
|
4241
|
+
action: actionSchema,
|
|
4230
4242
|
title: z.string(),
|
|
4231
|
-
|
|
4243
|
+
description: z.string().optional(),
|
|
4244
|
+
disabled: z.boolean().optional(),
|
|
4245
|
+
icon: iconSchema.optional(),
|
|
4246
|
+
image: imageLayoutSchema.optional()
|
|
4232
4247
|
});
|
|
4233
4248
|
var instructionsLayoutSchema = z.object({
|
|
4234
4249
|
type: z.literal("instructions"),
|
|
@@ -4237,38 +4252,26 @@ var instructionsLayoutSchema = z.object({
|
|
|
4237
4252
|
control: z.string().optional(),
|
|
4238
4253
|
margin: sizeSchema.optional()
|
|
4239
4254
|
});
|
|
4240
|
-
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4241
4255
|
var behaviorSchema = z.object({
|
|
4242
4256
|
action: actionSchema.optional(),
|
|
4243
4257
|
link: linkSchema.optional()
|
|
4244
4258
|
});
|
|
4245
|
-
var
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
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()
|
|
4265
|
-
});
|
|
4266
|
-
var linkHandlerSchema = z.object({
|
|
4267
|
-
regexPattern: z.string(),
|
|
4268
|
-
action: actionSchema
|
|
4259
|
+
var buttonLayoutSchema = z.object({
|
|
4260
|
+
type: z.literal("button"),
|
|
4261
|
+
size: sizeSchema.optional(),
|
|
4262
|
+
title: z.string().optional(),
|
|
4263
|
+
action: actionSchema,
|
|
4264
|
+
context: contextSchema.optional(),
|
|
4265
|
+
disabled: z.boolean().optional(),
|
|
4266
|
+
pinOrder: z.number().optional(),
|
|
4267
|
+
control: z.string().optional(),
|
|
4268
|
+
margin: sizeSchema.optional()
|
|
4269
4269
|
});
|
|
4270
|
-
var
|
|
4271
|
-
|
|
4270
|
+
var reviewLayoutFieldSchema = z.object({
|
|
4271
|
+
label: z.string(),
|
|
4272
|
+
value: z.string(),
|
|
4273
|
+
rawValue: z.string().optional(),
|
|
4274
|
+
help: helpSchema.optional()
|
|
4272
4275
|
});
|
|
4273
4276
|
var searchResultSearchSchema = z.object({
|
|
4274
4277
|
type: z.literal("search"),
|
|
@@ -4286,6 +4289,20 @@ var searchResultActionSchema = z.object({
|
|
|
4286
4289
|
image: imageLayoutSchema.optional(),
|
|
4287
4290
|
value: actionSchema
|
|
4288
4291
|
});
|
|
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
|
+
});
|
|
4289
4306
|
var pollingOnErrorSchema = z.object({
|
|
4290
4307
|
action: actionSchema
|
|
4291
4308
|
});
|
|
@@ -4293,33 +4310,33 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
4293
4310
|
title: z.string().optional(),
|
|
4294
4311
|
action: actionSchema
|
|
4295
4312
|
});
|
|
4296
|
-
var
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4313
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
4314
|
+
title: z.string(),
|
|
4315
|
+
action: actionSchema
|
|
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),
|
|
4300
4325
|
title: z.string().optional(),
|
|
4301
|
-
action: actionSchema,
|
|
4302
|
-
context: contextSchema.optional(),
|
|
4303
|
-
disabled: z.boolean().optional(),
|
|
4304
|
-
pinOrder: z.number().optional(),
|
|
4305
4326
|
control: z.string().optional(),
|
|
4306
4327
|
margin: sizeSchema.optional()
|
|
4307
4328
|
});
|
|
4308
|
-
var
|
|
4309
|
-
|
|
4310
|
-
title: z.string(),
|
|
4311
|
-
|
|
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(),
|
|
4329
|
+
var decisionLayoutSchema = z.object({
|
|
4330
|
+
type: z.literal("decision"),
|
|
4331
|
+
title: z.string().optional(),
|
|
4332
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
4320
4333
|
control: z.string().optional(),
|
|
4321
|
-
margin: sizeSchema.optional()
|
|
4322
|
-
|
|
4334
|
+
margin: sizeSchema.optional()
|
|
4335
|
+
});
|
|
4336
|
+
var itemCallToActionSchema = z.object({
|
|
4337
|
+
title: z.string(),
|
|
4338
|
+
accessibilityDescription: z.string().optional(),
|
|
4339
|
+
behavior: behaviorSchema
|
|
4323
4340
|
});
|
|
4324
4341
|
var reviewLayoutSchema = z.object({
|
|
4325
4342
|
type: z.literal("review"),
|
|
@@ -4331,16 +4348,27 @@ var reviewLayoutSchema = z.object({
|
|
|
4331
4348
|
control: z.string().optional(),
|
|
4332
4349
|
margin: sizeSchema.optional()
|
|
4333
4350
|
});
|
|
4334
|
-
var
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4351
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4352
|
+
var pollingSchema = z.object({
|
|
4353
|
+
url: z.string(),
|
|
4354
|
+
interval: z.number().optional(),
|
|
4355
|
+
delay: z.number().optional(),
|
|
4356
|
+
timeout: z.number().optional(),
|
|
4357
|
+
maxAttempts: z.number(),
|
|
4358
|
+
onError: pollingOnErrorSchema
|
|
4339
4359
|
});
|
|
4340
|
-
var
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4360
|
+
var navigationSchema = z.object({
|
|
4361
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
4362
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
4363
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4364
|
+
});
|
|
4365
|
+
var alertLayoutSchema = z.object({
|
|
4366
|
+
type: z.literal("alert"),
|
|
4367
|
+
markdown: z.string(),
|
|
4368
|
+
context: contextSchema.optional(),
|
|
4369
|
+
control: z.string().optional(),
|
|
4370
|
+
margin: sizeSchema.optional(),
|
|
4371
|
+
callToAction: alertLayoutCallToActionSchema.optional()
|
|
4344
4372
|
});
|
|
4345
4373
|
var statusListLayoutItemSchema = z.object({
|
|
4346
4374
|
title: z.string(),
|
|
@@ -4349,6 +4377,9 @@ var statusListLayoutItemSchema = z.object({
|
|
|
4349
4377
|
status: statusListLayoutStatusSchema.optional(),
|
|
4350
4378
|
callToAction: itemCallToActionSchema.optional()
|
|
4351
4379
|
});
|
|
4380
|
+
var searchResponseBodySchema = z.object({
|
|
4381
|
+
results: z.array(searchResultSchema)
|
|
4382
|
+
});
|
|
4352
4383
|
var blobSchemaSchema = z.object({
|
|
4353
4384
|
type: z.literal("blob"),
|
|
4354
4385
|
promoted: z.boolean().optional(),
|
|
@@ -4387,34 +4418,6 @@ var constSchemaSchema = z.object({
|
|
|
4387
4418
|
analyticsId: z.string().optional(),
|
|
4388
4419
|
disabled: z.boolean().optional()
|
|
4389
4420
|
});
|
|
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
|
-
});
|
|
4418
4421
|
var statusListLayoutSchema = z.object({
|
|
4419
4422
|
type: z.literal("status-list"),
|
|
4420
4423
|
items: z.array(statusListLayoutItemSchema),
|
|
@@ -4422,19 +4425,6 @@ var statusListLayoutSchema = z.object({
|
|
|
4422
4425
|
control: z.string().optional(),
|
|
4423
4426
|
margin: sizeSchema.optional()
|
|
4424
4427
|
});
|
|
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
|
-
);
|
|
4438
4428
|
var layoutSchema = z.lazy(
|
|
4439
4429
|
() => z.union([
|
|
4440
4430
|
alertLayoutSchema,
|
|
@@ -4458,6 +4448,26 @@ var layoutSchema = z.lazy(
|
|
|
4458
4448
|
statusListLayoutSchema
|
|
4459
4449
|
])
|
|
4460
4450
|
);
|
|
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
|
+
);
|
|
4461
4471
|
var modalLayoutSchema = z.lazy(
|
|
4462
4472
|
() => z.object({
|
|
4463
4473
|
type: z.literal("modal"),
|
|
@@ -4473,14 +4483,25 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
4473
4483
|
components: z.array(layoutSchema)
|
|
4474
4484
|
})
|
|
4475
4485
|
);
|
|
4476
|
-
var
|
|
4486
|
+
var stepSchema = z.lazy(
|
|
4477
4487
|
() => z.object({
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4488
|
+
key: z.string().optional(),
|
|
4489
|
+
type: z.string().optional(),
|
|
4490
|
+
actions: z.array(actionSchema).optional(),
|
|
4491
|
+
refreshFormUrl: z.string().optional(),
|
|
4492
|
+
id: z.string(),
|
|
4493
|
+
title: z.string(),
|
|
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()
|
|
4484
4505
|
})
|
|
4485
4506
|
);
|
|
4486
4507
|
var schemaSchema = z.lazy(
|
|
@@ -4706,21 +4727,17 @@ var stringSchemaSchema = z.lazy(
|
|
|
4706
4727
|
help: helpSchema.optional()
|
|
4707
4728
|
})
|
|
4708
4729
|
);
|
|
4709
|
-
var
|
|
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(
|
|
4730
|
+
var arraySchemaListSchema = z.lazy(
|
|
4719
4731
|
() => z.object({
|
|
4720
4732
|
type: z.literal("array"),
|
|
4721
4733
|
promoted: z.boolean().optional(),
|
|
4722
4734
|
$id: z.string().optional(),
|
|
4723
|
-
items:
|
|
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(),
|
|
4724
4741
|
title: z.string().optional(),
|
|
4725
4742
|
description: z.string().optional(),
|
|
4726
4743
|
control: z.string().optional(),
|
|
@@ -4728,24 +4745,30 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
4728
4745
|
icon: iconSchema.optional(),
|
|
4729
4746
|
image: imageSchema.optional(),
|
|
4730
4747
|
keywords: z.array(z.string()).optional(),
|
|
4731
|
-
summary:
|
|
4748
|
+
summary: summarySummariserSchema.optional(),
|
|
4732
4749
|
analyticsId: z.string().optional(),
|
|
4733
4750
|
persistAsync: persistAsyncSchema.optional(),
|
|
4734
4751
|
validationAsync: validateAsyncSchema.optional(),
|
|
4735
|
-
alert: alertLayoutSchema.optional()
|
|
4752
|
+
alert: alertLayoutSchema.optional(),
|
|
4753
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4754
|
+
disabled: z.boolean().optional()
|
|
4736
4755
|
})
|
|
4737
4756
|
);
|
|
4738
|
-
var
|
|
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
|
|
4764
|
+
})
|
|
4765
|
+
);
|
|
4766
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
4739
4767
|
() => z.object({
|
|
4740
4768
|
type: z.literal("array"),
|
|
4741
4769
|
promoted: z.boolean().optional(),
|
|
4742
4770
|
$id: z.string().optional(),
|
|
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(),
|
|
4771
|
+
items: z.array(schemaSchema),
|
|
4749
4772
|
title: z.string().optional(),
|
|
4750
4773
|
description: z.string().optional(),
|
|
4751
4774
|
control: z.string().optional(),
|
|
@@ -4753,34 +4776,11 @@ var arraySchemaListSchema = z.lazy(
|
|
|
4753
4776
|
icon: iconSchema.optional(),
|
|
4754
4777
|
image: imageSchema.optional(),
|
|
4755
4778
|
keywords: z.array(z.string()).optional(),
|
|
4756
|
-
summary:
|
|
4779
|
+
summary: summaryProviderSchema.optional(),
|
|
4757
4780
|
analyticsId: z.string().optional(),
|
|
4758
4781
|
persistAsync: persistAsyncSchema.optional(),
|
|
4759
4782
|
validationAsync: validateAsyncSchema.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()
|
|
4783
|
+
alert: alertLayoutSchema.optional()
|
|
4784
4784
|
})
|
|
4785
4785
|
);
|
|
4786
4786
|
|