@wise/dynamic-flow-types 2.29.0-experimental-ff1ed46 → 2.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main.js +305 -298
- package/build/main.min.js +1 -1
- package/build/main.mjs +305 -298
- package/build/next/misc/AutocapitalizationType.d.ts +1 -0
- package/build/next/schema/StringSchema.d.ts +6 -0
- package/build/zod/schemas.d.ts +3643 -3642
- package/build/zod/schemas.ts +361 -353
- package/package.json +3 -3
package/build/main.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,24 @@ 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()
|
|
3979
|
+
var iconTextSchema = z.object({
|
|
3980
|
+
text: z.string()
|
|
3987
3981
|
});
|
|
3988
|
-
var
|
|
3989
|
-
z.literal("
|
|
3990
|
-
z.literal("
|
|
3991
|
-
z.literal("
|
|
3992
|
-
z.literal("
|
|
3993
|
-
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")
|
|
3994
3988
|
]);
|
|
3995
|
-
var
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
var listLayoutStatusSchema = z.union([
|
|
4001
|
-
z.literal("warning"),
|
|
4002
|
-
z.literal("neutral"),
|
|
4003
|
-
z.literal("positive")
|
|
3989
|
+
var autocapitalizationTypeSchema = z.union([
|
|
3990
|
+
z.literal("none"),
|
|
3991
|
+
z.literal("characters"),
|
|
3992
|
+
z.literal("sentences"),
|
|
3993
|
+
z.literal("words")
|
|
4004
3994
|
]);
|
|
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
|
-
});
|
|
3995
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
3996
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4072
3997
|
var autocompleteTokenSchema = z.union([
|
|
4073
3998
|
z.literal("on"),
|
|
4074
3999
|
z.literal("name"),
|
|
@@ -4134,14 +4059,106 @@ var autocompleteTokenSchema = z.union([
|
|
|
4134
4059
|
z.literal("fax"),
|
|
4135
4060
|
z.literal("pager")
|
|
4136
4061
|
]);
|
|
4137
|
-
var
|
|
4138
|
-
z.literal("
|
|
4139
|
-
|
|
4140
|
-
z.
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4062
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
4063
|
+
type: z.literal("loading-indicator"),
|
|
4064
|
+
size: sizeSchema.optional(),
|
|
4065
|
+
control: z.string().optional(),
|
|
4066
|
+
margin: sizeSchema.optional()
|
|
4067
|
+
});
|
|
4068
|
+
var paragraphLayoutSchema = z.object({
|
|
4069
|
+
type: z.literal("paragraph"),
|
|
4070
|
+
text: z.string(),
|
|
4071
|
+
align: alignSchema.optional(),
|
|
4072
|
+
control: z.string().optional(),
|
|
4073
|
+
margin: sizeSchema.optional()
|
|
4074
|
+
});
|
|
4075
|
+
var dividerLayoutSchema = z.object({
|
|
4076
|
+
type: z.literal("divider"),
|
|
4077
|
+
control: z.string().optional(),
|
|
4078
|
+
margin: sizeSchema.optional()
|
|
4079
|
+
});
|
|
4080
|
+
var listLayoutStatusSchema = z.union([
|
|
4081
|
+
z.literal("warning"),
|
|
4082
|
+
z.literal("neutral"),
|
|
4083
|
+
z.literal("positive")
|
|
4084
|
+
]);
|
|
4085
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
4086
|
+
$ref: z.string()
|
|
4087
|
+
});
|
|
4088
|
+
var imageLayoutSchema = z.object({
|
|
4089
|
+
type: z.literal("image"),
|
|
4090
|
+
text: z.string().optional(),
|
|
4091
|
+
url: z.string(),
|
|
4092
|
+
size: sizeSchema.optional(),
|
|
4093
|
+
accessibilityDescription: z.string().optional(),
|
|
4094
|
+
control: z.string().optional(),
|
|
4095
|
+
margin: sizeSchema.optional()
|
|
4096
|
+
});
|
|
4097
|
+
var statusListLayoutStatusSchema = z.union([
|
|
4098
|
+
z.literal("not-done"),
|
|
4099
|
+
z.literal("pending"),
|
|
4100
|
+
z.literal("done")
|
|
4101
|
+
]);
|
|
4102
|
+
var instructionsLayoutItemSchema = z.object({
|
|
4103
|
+
text: z.string(),
|
|
4104
|
+
context: contextSchema
|
|
4105
|
+
});
|
|
4106
|
+
var modalLayoutTriggerSchema = z.object({
|
|
4107
|
+
title: z.string()
|
|
4108
|
+
});
|
|
4109
|
+
var searchLayoutSchema = z.object({
|
|
4110
|
+
type: z.literal("search"),
|
|
4111
|
+
title: z.string(),
|
|
4112
|
+
method: httpMethodSchema,
|
|
4113
|
+
url: z.string(),
|
|
4114
|
+
param: z.string(),
|
|
4115
|
+
emptyMessage: z.string().optional(),
|
|
4116
|
+
control: z.string().optional(),
|
|
4117
|
+
margin: sizeSchema.optional()
|
|
4118
|
+
});
|
|
4119
|
+
var infoLayoutSchema = z.object({
|
|
4120
|
+
type: z.literal("info"),
|
|
4121
|
+
markdown: z.string(),
|
|
4122
|
+
align: alignSchema.optional(),
|
|
4123
|
+
control: z.string().optional(),
|
|
4124
|
+
margin: sizeSchema.optional()
|
|
4125
|
+
});
|
|
4126
|
+
var formLayoutSchema = z.object({
|
|
4127
|
+
type: z.literal("form"),
|
|
4128
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
4129
|
+
schemaId: z.string(),
|
|
4130
|
+
control: z.string().optional(),
|
|
4131
|
+
margin: sizeSchema.optional()
|
|
4132
|
+
});
|
|
4133
|
+
var headingLayoutSchema = z.object({
|
|
4134
|
+
type: z.literal("heading"),
|
|
4135
|
+
text: z.string(),
|
|
4136
|
+
size: sizeSchema.optional(),
|
|
4137
|
+
align: alignSchema.optional(),
|
|
4138
|
+
control: z.string().optional(),
|
|
4139
|
+
margin: sizeSchema.optional()
|
|
4140
|
+
});
|
|
4141
|
+
var markdownLayoutSchema = z.object({
|
|
4142
|
+
type: z.literal("markdown"),
|
|
4143
|
+
content: z.string(),
|
|
4144
|
+
align: alignSchema.optional(),
|
|
4145
|
+
control: z.string().optional(),
|
|
4146
|
+
margin: sizeSchema.optional()
|
|
4147
|
+
});
|
|
4148
|
+
var columnsLayoutBiasSchema = z.union([
|
|
4149
|
+
z.literal("none"),
|
|
4150
|
+
z.literal("left"),
|
|
4151
|
+
z.literal("right")
|
|
4144
4152
|
]);
|
|
4153
|
+
var helpSchema = z.object({
|
|
4154
|
+
markdown: z.string()
|
|
4155
|
+
});
|
|
4156
|
+
var searchSearchRequestSchema = z.object({
|
|
4157
|
+
url: z.string(),
|
|
4158
|
+
method: httpMethodSchema,
|
|
4159
|
+
param: z.string(),
|
|
4160
|
+
query: z.string()
|
|
4161
|
+
});
|
|
4145
4162
|
var jsonElementSchema = z.lazy(
|
|
4146
4163
|
() => z.union([
|
|
4147
4164
|
z.string(),
|
|
@@ -4151,7 +4168,6 @@ var jsonElementSchema = z.lazy(
|
|
|
4151
4168
|
z.array(jsonElementSchema)
|
|
4152
4169
|
]).nullable()
|
|
4153
4170
|
);
|
|
4154
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4155
4171
|
var externalSchema = z.object({
|
|
4156
4172
|
url: z.string()
|
|
4157
4173
|
});
|
|
@@ -4159,28 +4175,42 @@ var stepErrorSchema = z.object({
|
|
|
4159
4175
|
error: z.string().optional(),
|
|
4160
4176
|
validation: jsonElementSchema.optional()
|
|
4161
4177
|
});
|
|
4162
|
-
var
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4178
|
+
var stringSchemaFormatSchema = z.union([
|
|
4179
|
+
z.literal("date"),
|
|
4180
|
+
z.literal("email"),
|
|
4181
|
+
z.literal("numeric"),
|
|
4182
|
+
z.literal("password"),
|
|
4183
|
+
z.literal("phone-number"),
|
|
4184
|
+
z.literal("base64url")
|
|
4185
|
+
]);
|
|
4186
|
+
var summarySummariserSchema = z.object({
|
|
4187
|
+
defaultTitle: z.string().optional(),
|
|
4188
|
+
defaultDescription: z.string().optional(),
|
|
4189
|
+
defaultIcon: iconSchema.optional(),
|
|
4190
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
4191
|
+
providesTitle: z.boolean().optional(),
|
|
4192
|
+
providesDescription: z.boolean().optional(),
|
|
4193
|
+
providesIcon: z.boolean().optional(),
|
|
4194
|
+
providesImage: z.boolean().optional()
|
|
4168
4195
|
});
|
|
4169
|
-
var
|
|
4170
|
-
url: z.string(),
|
|
4171
|
-
method: httpMethodSchema,
|
|
4196
|
+
var validateAsyncSchema = z.object({
|
|
4172
4197
|
param: z.string(),
|
|
4173
|
-
|
|
4198
|
+
method: httpMethodSchema,
|
|
4199
|
+
url: z.string()
|
|
4200
|
+
});
|
|
4201
|
+
var summaryProviderSchema = z.object({
|
|
4202
|
+
providesTitle: z.boolean().optional(),
|
|
4203
|
+
providesDescription: z.boolean().optional(),
|
|
4204
|
+
providesIcon: z.boolean().optional(),
|
|
4205
|
+
providesImage: z.boolean().optional()
|
|
4174
4206
|
});
|
|
4207
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4175
4208
|
var navigationStackBehaviorSchema = z.union([
|
|
4176
4209
|
z.literal("default"),
|
|
4177
4210
|
z.literal("remove-previous"),
|
|
4178
4211
|
z.literal("remove-all"),
|
|
4179
4212
|
z.literal("replace-current")
|
|
4180
4213
|
]);
|
|
4181
|
-
var linkSchema = z.object({
|
|
4182
|
-
url: z.string()
|
|
4183
|
-
});
|
|
4184
4214
|
var actionTypeSchema = z.union([
|
|
4185
4215
|
z.literal("primary"),
|
|
4186
4216
|
z.literal("secondary"),
|
|
@@ -4188,11 +4218,9 @@ var actionTypeSchema = z.union([
|
|
|
4188
4218
|
z.literal("positive"),
|
|
4189
4219
|
z.literal("negative")
|
|
4190
4220
|
]);
|
|
4191
|
-
var
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
var iconTextSchema = z.object({
|
|
4195
|
-
text: z.string()
|
|
4221
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4222
|
+
var linkSchema = z.object({
|
|
4223
|
+
url: z.string()
|
|
4196
4224
|
});
|
|
4197
4225
|
var actionSchema = z.object({
|
|
4198
4226
|
title: z.string().optional(),
|
|
@@ -4209,26 +4237,19 @@ var actionSchema = z.object({
|
|
|
4209
4237
|
timeout: z.number().optional(),
|
|
4210
4238
|
skipValidation: z.boolean().optional()
|
|
4211
4239
|
});
|
|
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"),
|
|
4240
|
+
var listLayoutItemSchema = z.object({
|
|
4221
4241
|
title: z.string(),
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
emptyMessage: z.string().optional(),
|
|
4226
|
-
control: z.string().optional(),
|
|
4227
|
-
margin: sizeSchema.optional()
|
|
4242
|
+
description: z.string().optional(),
|
|
4243
|
+
icon: iconSchema,
|
|
4244
|
+
status: listLayoutStatusSchema.optional()
|
|
4228
4245
|
});
|
|
4229
|
-
var
|
|
4246
|
+
var decisionLayoutOptionSchema = z.object({
|
|
4247
|
+
action: actionSchema,
|
|
4230
4248
|
title: z.string(),
|
|
4231
|
-
|
|
4249
|
+
description: z.string().optional(),
|
|
4250
|
+
disabled: z.boolean().optional(),
|
|
4251
|
+
icon: iconSchema.optional(),
|
|
4252
|
+
image: imageLayoutSchema.optional()
|
|
4232
4253
|
});
|
|
4233
4254
|
var instructionsLayoutSchema = z.object({
|
|
4234
4255
|
type: z.literal("instructions"),
|
|
@@ -4237,38 +4258,26 @@ var instructionsLayoutSchema = z.object({
|
|
|
4237
4258
|
control: z.string().optional(),
|
|
4238
4259
|
margin: sizeSchema.optional()
|
|
4239
4260
|
});
|
|
4240
|
-
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4241
4261
|
var behaviorSchema = z.object({
|
|
4242
4262
|
action: actionSchema.optional(),
|
|
4243
4263
|
link: linkSchema.optional()
|
|
4244
4264
|
});
|
|
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
|
|
4265
|
+
var buttonLayoutSchema = z.object({
|
|
4266
|
+
type: z.literal("button"),
|
|
4267
|
+
size: sizeSchema.optional(),
|
|
4268
|
+
title: z.string().optional(),
|
|
4269
|
+
action: actionSchema,
|
|
4270
|
+
context: contextSchema.optional(),
|
|
4271
|
+
disabled: z.boolean().optional(),
|
|
4272
|
+
pinOrder: z.number().optional(),
|
|
4273
|
+
control: z.string().optional(),
|
|
4274
|
+
margin: sizeSchema.optional()
|
|
4269
4275
|
});
|
|
4270
|
-
var
|
|
4271
|
-
|
|
4276
|
+
var reviewLayoutFieldSchema = z.object({
|
|
4277
|
+
label: z.string(),
|
|
4278
|
+
value: z.string(),
|
|
4279
|
+
rawValue: z.string().optional(),
|
|
4280
|
+
help: helpSchema.optional()
|
|
4272
4281
|
});
|
|
4273
4282
|
var searchResultSearchSchema = z.object({
|
|
4274
4283
|
type: z.literal("search"),
|
|
@@ -4286,6 +4295,20 @@ var searchResultActionSchema = z.object({
|
|
|
4286
4295
|
image: imageLayoutSchema.optional(),
|
|
4287
4296
|
value: actionSchema
|
|
4288
4297
|
});
|
|
4298
|
+
var actionResponseBodySchema = z.object({
|
|
4299
|
+
action: actionSchema
|
|
4300
|
+
});
|
|
4301
|
+
var errorResponseBodySchema = z.object({
|
|
4302
|
+
refreshFormUrl: z.string().optional(),
|
|
4303
|
+
analytics: z.record(z.string()).optional(),
|
|
4304
|
+
error: z.string().optional(),
|
|
4305
|
+
validation: jsonElementSchema.optional(),
|
|
4306
|
+
refreshUrl: z.string().optional()
|
|
4307
|
+
});
|
|
4308
|
+
var linkHandlerSchema = z.object({
|
|
4309
|
+
regexPattern: z.string(),
|
|
4310
|
+
action: actionSchema
|
|
4311
|
+
});
|
|
4289
4312
|
var pollingOnErrorSchema = z.object({
|
|
4290
4313
|
action: actionSchema
|
|
4291
4314
|
});
|
|
@@ -4293,33 +4316,33 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
4293
4316
|
title: z.string().optional(),
|
|
4294
4317
|
action: actionSchema
|
|
4295
4318
|
});
|
|
4296
|
-
var
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4319
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
4320
|
+
title: z.string(),
|
|
4321
|
+
action: actionSchema
|
|
4322
|
+
});
|
|
4323
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
4324
|
+
title: z.string(),
|
|
4325
|
+
accessibilityDescription: z.string().optional(),
|
|
4326
|
+
behavior: behaviorSchema
|
|
4327
|
+
});
|
|
4328
|
+
var listLayoutSchema = z.object({
|
|
4329
|
+
type: z.literal("list"),
|
|
4330
|
+
items: z.array(listLayoutItemSchema),
|
|
4300
4331
|
title: z.string().optional(),
|
|
4301
|
-
action: actionSchema,
|
|
4302
|
-
context: contextSchema.optional(),
|
|
4303
|
-
disabled: z.boolean().optional(),
|
|
4304
|
-
pinOrder: z.number().optional(),
|
|
4305
4332
|
control: z.string().optional(),
|
|
4306
4333
|
margin: sizeSchema.optional()
|
|
4307
4334
|
});
|
|
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(),
|
|
4335
|
+
var decisionLayoutSchema = z.object({
|
|
4336
|
+
type: z.literal("decision"),
|
|
4337
|
+
title: z.string().optional(),
|
|
4338
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
4320
4339
|
control: z.string().optional(),
|
|
4321
|
-
margin: sizeSchema.optional()
|
|
4322
|
-
|
|
4340
|
+
margin: sizeSchema.optional()
|
|
4341
|
+
});
|
|
4342
|
+
var itemCallToActionSchema = z.object({
|
|
4343
|
+
title: z.string(),
|
|
4344
|
+
accessibilityDescription: z.string().optional(),
|
|
4345
|
+
behavior: behaviorSchema
|
|
4323
4346
|
});
|
|
4324
4347
|
var reviewLayoutSchema = z.object({
|
|
4325
4348
|
type: z.literal("review"),
|
|
@@ -4331,16 +4354,27 @@ var reviewLayoutSchema = z.object({
|
|
|
4331
4354
|
control: z.string().optional(),
|
|
4332
4355
|
margin: sizeSchema.optional()
|
|
4333
4356
|
});
|
|
4334
|
-
var
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4357
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4358
|
+
var pollingSchema = z.object({
|
|
4359
|
+
url: z.string(),
|
|
4360
|
+
interval: z.number().optional(),
|
|
4361
|
+
delay: z.number().optional(),
|
|
4362
|
+
timeout: z.number().optional(),
|
|
4363
|
+
maxAttempts: z.number(),
|
|
4364
|
+
onError: pollingOnErrorSchema
|
|
4339
4365
|
});
|
|
4340
|
-
var
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4366
|
+
var navigationSchema = z.object({
|
|
4367
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
4368
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
4369
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4370
|
+
});
|
|
4371
|
+
var alertLayoutSchema = z.object({
|
|
4372
|
+
type: z.literal("alert"),
|
|
4373
|
+
markdown: z.string(),
|
|
4374
|
+
context: contextSchema.optional(),
|
|
4375
|
+
control: z.string().optional(),
|
|
4376
|
+
margin: sizeSchema.optional(),
|
|
4377
|
+
callToAction: alertLayoutCallToActionSchema.optional()
|
|
4344
4378
|
});
|
|
4345
4379
|
var statusListLayoutItemSchema = z.object({
|
|
4346
4380
|
title: z.string(),
|
|
@@ -4349,6 +4383,9 @@ var statusListLayoutItemSchema = z.object({
|
|
|
4349
4383
|
status: statusListLayoutStatusSchema.optional(),
|
|
4350
4384
|
callToAction: itemCallToActionSchema.optional()
|
|
4351
4385
|
});
|
|
4386
|
+
var searchResponseBodySchema = z.object({
|
|
4387
|
+
results: z.array(searchResultSchema)
|
|
4388
|
+
});
|
|
4352
4389
|
var blobSchemaSchema = z.object({
|
|
4353
4390
|
type: z.literal("blob"),
|
|
4354
4391
|
promoted: z.boolean().optional(),
|
|
@@ -4387,34 +4424,6 @@ var constSchemaSchema = z.object({
|
|
|
4387
4424
|
analyticsId: z.string().optional(),
|
|
4388
4425
|
disabled: z.boolean().optional()
|
|
4389
4426
|
});
|
|
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
4427
|
var statusListLayoutSchema = z.object({
|
|
4419
4428
|
type: z.literal("status-list"),
|
|
4420
4429
|
items: z.array(statusListLayoutItemSchema),
|
|
@@ -4422,19 +4431,6 @@ var statusListLayoutSchema = z.object({
|
|
|
4422
4431
|
control: z.string().optional(),
|
|
4423
4432
|
margin: sizeSchema.optional()
|
|
4424
4433
|
});
|
|
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
4434
|
var layoutSchema = z.lazy(
|
|
4439
4435
|
() => z.union([
|
|
4440
4436
|
alertLayoutSchema,
|
|
@@ -4458,6 +4454,26 @@ var layoutSchema = z.lazy(
|
|
|
4458
4454
|
statusListLayoutSchema
|
|
4459
4455
|
])
|
|
4460
4456
|
);
|
|
4457
|
+
var boxLayoutSchema = z.lazy(
|
|
4458
|
+
() => z.object({
|
|
4459
|
+
type: z.literal("box"),
|
|
4460
|
+
components: z.array(layoutSchema),
|
|
4461
|
+
width: sizeSchema.optional(),
|
|
4462
|
+
border: z.boolean().optional(),
|
|
4463
|
+
control: z.string().optional(),
|
|
4464
|
+
margin: sizeSchema.optional()
|
|
4465
|
+
})
|
|
4466
|
+
);
|
|
4467
|
+
var columnsLayoutSchema = z.lazy(
|
|
4468
|
+
() => z.object({
|
|
4469
|
+
type: z.literal("columns"),
|
|
4470
|
+
left: z.array(layoutSchema),
|
|
4471
|
+
right: z.array(layoutSchema),
|
|
4472
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
4473
|
+
control: z.string().optional(),
|
|
4474
|
+
margin: sizeSchema.optional()
|
|
4475
|
+
})
|
|
4476
|
+
);
|
|
4461
4477
|
var modalLayoutSchema = z.lazy(
|
|
4462
4478
|
() => z.object({
|
|
4463
4479
|
type: z.literal("modal"),
|
|
@@ -4473,14 +4489,25 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
4473
4489
|
components: z.array(layoutSchema)
|
|
4474
4490
|
})
|
|
4475
4491
|
);
|
|
4476
|
-
var
|
|
4492
|
+
var stepSchema = z.lazy(
|
|
4477
4493
|
() => z.object({
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4494
|
+
key: z.string().optional(),
|
|
4495
|
+
type: z.string().optional(),
|
|
4496
|
+
actions: z.array(actionSchema).optional(),
|
|
4497
|
+
refreshFormUrl: z.string().optional(),
|
|
4498
|
+
id: z.string(),
|
|
4499
|
+
title: z.string(),
|
|
4500
|
+
schemas: z.array(schemaSchema),
|
|
4501
|
+
layout: z.array(layoutSchema),
|
|
4502
|
+
description: z.string().optional(),
|
|
4503
|
+
model: jsonElementSchema.optional(),
|
|
4504
|
+
external: externalSchema.optional(),
|
|
4505
|
+
polling: pollingSchema.optional(),
|
|
4506
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
4507
|
+
analytics: z.record(z.string()).optional(),
|
|
4508
|
+
errors: stepErrorSchema.optional(),
|
|
4509
|
+
navigation: navigationSchema.optional(),
|
|
4510
|
+
refreshUrl: z.string().optional()
|
|
4484
4511
|
})
|
|
4485
4512
|
);
|
|
4486
4513
|
var schemaSchema = z.lazy(
|
|
@@ -4680,6 +4707,7 @@ var stringSchemaSchema = z.lazy(
|
|
|
4680
4707
|
minimum: z.string().optional(),
|
|
4681
4708
|
maximum: z.string().optional(),
|
|
4682
4709
|
pattern: z.string().optional(),
|
|
4710
|
+
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
4683
4711
|
$id: z.string().optional(),
|
|
4684
4712
|
title: z.string().optional(),
|
|
4685
4713
|
description: z.string().optional(),
|
|
@@ -4706,21 +4734,17 @@ var stringSchemaSchema = z.lazy(
|
|
|
4706
4734
|
help: helpSchema.optional()
|
|
4707
4735
|
})
|
|
4708
4736
|
);
|
|
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(
|
|
4737
|
+
var arraySchemaListSchema = z.lazy(
|
|
4719
4738
|
() => z.object({
|
|
4720
4739
|
type: z.literal("array"),
|
|
4721
4740
|
promoted: z.boolean().optional(),
|
|
4722
4741
|
$id: z.string().optional(),
|
|
4723
|
-
items:
|
|
4742
|
+
items: schemaSchema,
|
|
4743
|
+
addItemTitle: z.string(),
|
|
4744
|
+
editItemTitle: z.string(),
|
|
4745
|
+
minItems: z.number().optional(),
|
|
4746
|
+
maxItems: z.number().optional(),
|
|
4747
|
+
placeholder: z.string().optional(),
|
|
4724
4748
|
title: z.string().optional(),
|
|
4725
4749
|
description: z.string().optional(),
|
|
4726
4750
|
control: z.string().optional(),
|
|
@@ -4728,24 +4752,30 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
4728
4752
|
icon: iconSchema.optional(),
|
|
4729
4753
|
image: imageSchema.optional(),
|
|
4730
4754
|
keywords: z.array(z.string()).optional(),
|
|
4731
|
-
summary:
|
|
4755
|
+
summary: summarySummariserSchema.optional(),
|
|
4732
4756
|
analyticsId: z.string().optional(),
|
|
4733
4757
|
persistAsync: persistAsyncSchema.optional(),
|
|
4734
4758
|
validationAsync: validateAsyncSchema.optional(),
|
|
4735
|
-
alert: alertLayoutSchema.optional()
|
|
4759
|
+
alert: alertLayoutSchema.optional(),
|
|
4760
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4761
|
+
disabled: z.boolean().optional()
|
|
4736
4762
|
})
|
|
4737
4763
|
);
|
|
4738
|
-
var
|
|
4764
|
+
var persistAsyncSchema = z.lazy(
|
|
4765
|
+
() => z.object({
|
|
4766
|
+
param: z.string(),
|
|
4767
|
+
idProperty: z.string(),
|
|
4768
|
+
schema: schemaSchema,
|
|
4769
|
+
url: z.string(),
|
|
4770
|
+
method: httpMethodSchema
|
|
4771
|
+
})
|
|
4772
|
+
);
|
|
4773
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
4739
4774
|
() => z.object({
|
|
4740
4775
|
type: z.literal("array"),
|
|
4741
4776
|
promoted: z.boolean().optional(),
|
|
4742
4777
|
$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(),
|
|
4778
|
+
items: z.array(schemaSchema),
|
|
4749
4779
|
title: z.string().optional(),
|
|
4750
4780
|
description: z.string().optional(),
|
|
4751
4781
|
control: z.string().optional(),
|
|
@@ -4753,34 +4783,11 @@ var arraySchemaListSchema = z.lazy(
|
|
|
4753
4783
|
icon: iconSchema.optional(),
|
|
4754
4784
|
image: imageSchema.optional(),
|
|
4755
4785
|
keywords: z.array(z.string()).optional(),
|
|
4756
|
-
summary:
|
|
4786
|
+
summary: summaryProviderSchema.optional(),
|
|
4757
4787
|
analyticsId: z.string().optional(),
|
|
4758
4788
|
persistAsync: persistAsyncSchema.optional(),
|
|
4759
4789
|
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()
|
|
4790
|
+
alert: alertLayoutSchema.optional()
|
|
4784
4791
|
})
|
|
4785
4792
|
);
|
|
4786
4793
|
|