@wise/dynamic-flow-client 3.29.3 → 3.29.4-experimental-ff1ed46
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/package.json +2 -2
package/build/main.mjs
CHANGED
|
@@ -5919,21 +5919,13 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5919
5919
|
quotelessJson,
|
|
5920
5920
|
ZodError
|
|
5921
5921
|
});
|
|
5922
|
-
var
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
z.literal("GET"),
|
|
5929
|
-
z.literal("POST"),
|
|
5930
|
-
z.literal("PUT"),
|
|
5931
|
-
z.literal("PATCH"),
|
|
5932
|
-
z.literal("DELETE")
|
|
5922
|
+
var sizeSchema = z.union([
|
|
5923
|
+
z.literal("xs"),
|
|
5924
|
+
z.literal("sm"),
|
|
5925
|
+
z.literal("md"),
|
|
5926
|
+
z.literal("lg"),
|
|
5927
|
+
z.literal("xl")
|
|
5933
5928
|
]);
|
|
5934
|
-
var iconNamedSchema = z.object({
|
|
5935
|
-
name: z.string()
|
|
5936
|
-
});
|
|
5937
5929
|
var contextSchema = z.union([
|
|
5938
5930
|
z.literal("positive"),
|
|
5939
5931
|
z.literal("neutral"),
|
|
@@ -5944,18 +5936,107 @@ var contextSchema = z.union([
|
|
|
5944
5936
|
z.literal("info"),
|
|
5945
5937
|
z.literal("primary")
|
|
5946
5938
|
]);
|
|
5947
|
-
var
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
z.literal("
|
|
5954
|
-
z.literal("
|
|
5955
|
-
z.literal("
|
|
5939
|
+
var columnsLayoutBiasSchema = z.union([
|
|
5940
|
+
z.literal("none"),
|
|
5941
|
+
z.literal("left"),
|
|
5942
|
+
z.literal("right")
|
|
5943
|
+
]);
|
|
5944
|
+
var statusListLayoutStatusSchema = z.union([
|
|
5945
|
+
z.literal("not-done"),
|
|
5946
|
+
z.literal("pending"),
|
|
5947
|
+
z.literal("done")
|
|
5956
5948
|
]);
|
|
5957
5949
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
5958
|
-
var
|
|
5950
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
5951
|
+
$ref: z.string()
|
|
5952
|
+
});
|
|
5953
|
+
var modalLayoutTriggerSchema = z.object({
|
|
5954
|
+
title: z.string()
|
|
5955
|
+
});
|
|
5956
|
+
var httpMethodSchema = z.union([
|
|
5957
|
+
z.literal("GET"),
|
|
5958
|
+
z.literal("POST"),
|
|
5959
|
+
z.literal("PUT"),
|
|
5960
|
+
z.literal("PATCH"),
|
|
5961
|
+
z.literal("DELETE")
|
|
5962
|
+
]);
|
|
5963
|
+
var dividerLayoutSchema = z.object({
|
|
5964
|
+
type: z.literal("divider"),
|
|
5965
|
+
control: z.string().optional(),
|
|
5966
|
+
margin: sizeSchema.optional()
|
|
5967
|
+
});
|
|
5968
|
+
var listLayoutStatusSchema = z.union([
|
|
5969
|
+
z.literal("warning"),
|
|
5970
|
+
z.literal("neutral"),
|
|
5971
|
+
z.literal("positive")
|
|
5972
|
+
]);
|
|
5973
|
+
var headingLayoutSchema = z.object({
|
|
5974
|
+
type: z.literal("heading"),
|
|
5975
|
+
text: z.string(),
|
|
5976
|
+
size: sizeSchema.optional(),
|
|
5977
|
+
align: alignSchema.optional(),
|
|
5978
|
+
control: z.string().optional(),
|
|
5979
|
+
margin: sizeSchema.optional()
|
|
5980
|
+
});
|
|
5981
|
+
var formLayoutSchema = z.object({
|
|
5982
|
+
type: z.literal("form"),
|
|
5983
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5984
|
+
schemaId: z.string(),
|
|
5985
|
+
control: z.string().optional(),
|
|
5986
|
+
margin: sizeSchema.optional()
|
|
5987
|
+
});
|
|
5988
|
+
var imageLayoutSchema = z.object({
|
|
5989
|
+
type: z.literal("image"),
|
|
5990
|
+
text: z.string().optional(),
|
|
5991
|
+
url: z.string(),
|
|
5992
|
+
size: sizeSchema.optional(),
|
|
5993
|
+
accessibilityDescription: z.string().optional(),
|
|
5994
|
+
control: z.string().optional(),
|
|
5995
|
+
margin: sizeSchema.optional()
|
|
5996
|
+
});
|
|
5997
|
+
var infoLayoutSchema = z.object({
|
|
5998
|
+
type: z.literal("info"),
|
|
5999
|
+
markdown: z.string(),
|
|
6000
|
+
align: alignSchema.optional(),
|
|
6001
|
+
control: z.string().optional(),
|
|
6002
|
+
margin: sizeSchema.optional()
|
|
6003
|
+
});
|
|
6004
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
6005
|
+
type: z.literal("loading-indicator"),
|
|
6006
|
+
size: sizeSchema.optional(),
|
|
6007
|
+
control: z.string().optional(),
|
|
6008
|
+
margin: sizeSchema.optional()
|
|
6009
|
+
});
|
|
6010
|
+
var paragraphLayoutSchema = z.object({
|
|
6011
|
+
type: z.literal("paragraph"),
|
|
6012
|
+
text: z.string(),
|
|
6013
|
+
align: alignSchema.optional(),
|
|
6014
|
+
control: z.string().optional(),
|
|
6015
|
+
margin: sizeSchema.optional()
|
|
6016
|
+
});
|
|
6017
|
+
var instructionsLayoutItemSchema = z.object({
|
|
6018
|
+
text: z.string(),
|
|
6019
|
+
context: contextSchema
|
|
6020
|
+
});
|
|
6021
|
+
var helpSchema = z.object({
|
|
6022
|
+
markdown: z.string()
|
|
6023
|
+
});
|
|
6024
|
+
var imageSchema = z.object({
|
|
6025
|
+
text: z.string().optional(),
|
|
6026
|
+
url: z.string(),
|
|
6027
|
+
accessibilityDescription: z.string().optional()
|
|
6028
|
+
});
|
|
6029
|
+
var summaryProviderSchema = z.object({
|
|
6030
|
+
providesTitle: z.boolean().optional(),
|
|
6031
|
+
providesDescription: z.boolean().optional(),
|
|
6032
|
+
providesIcon: z.boolean().optional(),
|
|
6033
|
+
providesImage: z.boolean().optional()
|
|
6034
|
+
});
|
|
6035
|
+
var validateAsyncSchema = z.object({
|
|
6036
|
+
param: z.string(),
|
|
6037
|
+
method: httpMethodSchema,
|
|
6038
|
+
url: z.string()
|
|
6039
|
+
});
|
|
5959
6040
|
var autocompleteTokenSchema = z.union([
|
|
5960
6041
|
z.literal("on"),
|
|
5961
6042
|
z.literal("name"),
|
|
@@ -6021,106 +6102,14 @@ var autocompleteTokenSchema = z.union([
|
|
|
6021
6102
|
z.literal("fax"),
|
|
6022
6103
|
z.literal("pager")
|
|
6023
6104
|
]);
|
|
6024
|
-
var
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
type: z.literal("paragraph"),
|
|
6032
|
-
text: z.string(),
|
|
6033
|
-
align: alignSchema.optional(),
|
|
6034
|
-
control: z.string().optional(),
|
|
6035
|
-
margin: sizeSchema.optional()
|
|
6036
|
-
});
|
|
6037
|
-
var dividerLayoutSchema = z.object({
|
|
6038
|
-
type: z.literal("divider"),
|
|
6039
|
-
control: z.string().optional(),
|
|
6040
|
-
margin: sizeSchema.optional()
|
|
6041
|
-
});
|
|
6042
|
-
var listLayoutStatusSchema = z.union([
|
|
6043
|
-
z.literal("warning"),
|
|
6044
|
-
z.literal("neutral"),
|
|
6045
|
-
z.literal("positive")
|
|
6046
|
-
]);
|
|
6047
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
6048
|
-
$ref: z.string()
|
|
6049
|
-
});
|
|
6050
|
-
var imageLayoutSchema = z.object({
|
|
6051
|
-
type: z.literal("image"),
|
|
6052
|
-
text: z.string().optional(),
|
|
6053
|
-
url: z.string(),
|
|
6054
|
-
size: sizeSchema.optional(),
|
|
6055
|
-
accessibilityDescription: z.string().optional(),
|
|
6056
|
-
control: z.string().optional(),
|
|
6057
|
-
margin: sizeSchema.optional()
|
|
6058
|
-
});
|
|
6059
|
-
var statusListLayoutStatusSchema = z.union([
|
|
6060
|
-
z.literal("not-done"),
|
|
6061
|
-
z.literal("pending"),
|
|
6062
|
-
z.literal("done")
|
|
6063
|
-
]);
|
|
6064
|
-
var instructionsLayoutItemSchema = z.object({
|
|
6065
|
-
text: z.string(),
|
|
6066
|
-
context: contextSchema
|
|
6067
|
-
});
|
|
6068
|
-
var modalLayoutTriggerSchema = z.object({
|
|
6069
|
-
title: z.string()
|
|
6070
|
-
});
|
|
6071
|
-
var searchLayoutSchema = z.object({
|
|
6072
|
-
type: z.literal("search"),
|
|
6073
|
-
title: z.string(),
|
|
6074
|
-
method: httpMethodSchema,
|
|
6075
|
-
url: z.string(),
|
|
6076
|
-
param: z.string(),
|
|
6077
|
-
emptyMessage: z.string().optional(),
|
|
6078
|
-
control: z.string().optional(),
|
|
6079
|
-
margin: sizeSchema.optional()
|
|
6080
|
-
});
|
|
6081
|
-
var infoLayoutSchema = z.object({
|
|
6082
|
-
type: z.literal("info"),
|
|
6083
|
-
markdown: z.string(),
|
|
6084
|
-
align: alignSchema.optional(),
|
|
6085
|
-
control: z.string().optional(),
|
|
6086
|
-
margin: sizeSchema.optional()
|
|
6087
|
-
});
|
|
6088
|
-
var formLayoutSchema = z.object({
|
|
6089
|
-
type: z.literal("form"),
|
|
6090
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
6091
|
-
schemaId: z.string(),
|
|
6092
|
-
control: z.string().optional(),
|
|
6093
|
-
margin: sizeSchema.optional()
|
|
6094
|
-
});
|
|
6095
|
-
var headingLayoutSchema = z.object({
|
|
6096
|
-
type: z.literal("heading"),
|
|
6097
|
-
text: z.string(),
|
|
6098
|
-
size: sizeSchema.optional(),
|
|
6099
|
-
align: alignSchema.optional(),
|
|
6100
|
-
control: z.string().optional(),
|
|
6101
|
-
margin: sizeSchema.optional()
|
|
6102
|
-
});
|
|
6103
|
-
var markdownLayoutSchema = z.object({
|
|
6104
|
-
type: z.literal("markdown"),
|
|
6105
|
-
content: z.string(),
|
|
6106
|
-
align: alignSchema.optional(),
|
|
6107
|
-
control: z.string().optional(),
|
|
6108
|
-
margin: sizeSchema.optional()
|
|
6109
|
-
});
|
|
6110
|
-
var columnsLayoutBiasSchema = z.union([
|
|
6111
|
-
z.literal("none"),
|
|
6112
|
-
z.literal("left"),
|
|
6113
|
-
z.literal("right")
|
|
6105
|
+
var stringSchemaFormatSchema = z.union([
|
|
6106
|
+
z.literal("date"),
|
|
6107
|
+
z.literal("email"),
|
|
6108
|
+
z.literal("numeric"),
|
|
6109
|
+
z.literal("password"),
|
|
6110
|
+
z.literal("phone-number"),
|
|
6111
|
+
z.literal("base64url")
|
|
6114
6112
|
]);
|
|
6115
|
-
var helpSchema = z.object({
|
|
6116
|
-
markdown: z.string()
|
|
6117
|
-
});
|
|
6118
|
-
var searchSearchRequestSchema = z.object({
|
|
6119
|
-
url: z.string(),
|
|
6120
|
-
method: httpMethodSchema,
|
|
6121
|
-
param: z.string(),
|
|
6122
|
-
query: z.string()
|
|
6123
|
-
});
|
|
6124
6113
|
var jsonElementSchema = z.lazy(
|
|
6125
6114
|
() => z.union([
|
|
6126
6115
|
z.string(),
|
|
@@ -6130,6 +6119,7 @@ var jsonElementSchema = z.lazy(
|
|
|
6130
6119
|
z.array(jsonElementSchema)
|
|
6131
6120
|
]).nullable()
|
|
6132
6121
|
);
|
|
6122
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
6133
6123
|
var externalSchema = z.object({
|
|
6134
6124
|
url: z.string()
|
|
6135
6125
|
});
|
|
@@ -6137,42 +6127,28 @@ var stepErrorSchema = z.object({
|
|
|
6137
6127
|
error: z.string().optional(),
|
|
6138
6128
|
validation: jsonElementSchema.optional()
|
|
6139
6129
|
});
|
|
6140
|
-
var
|
|
6141
|
-
z.
|
|
6142
|
-
z.
|
|
6143
|
-
z.
|
|
6144
|
-
|
|
6145
|
-
z.
|
|
6146
|
-
z.literal("base64url")
|
|
6147
|
-
]);
|
|
6148
|
-
var summarySummariserSchema = z.object({
|
|
6149
|
-
defaultTitle: z.string().optional(),
|
|
6150
|
-
defaultDescription: z.string().optional(),
|
|
6151
|
-
defaultIcon: iconSchema.optional(),
|
|
6152
|
-
defaultImage: imageLayoutSchema.optional(),
|
|
6153
|
-
providesTitle: z.boolean().optional(),
|
|
6154
|
-
providesDescription: z.boolean().optional(),
|
|
6155
|
-
providesIcon: z.boolean().optional(),
|
|
6156
|
-
providesImage: z.boolean().optional()
|
|
6130
|
+
var errorResponseBodySchema = z.object({
|
|
6131
|
+
refreshFormUrl: z.string().optional(),
|
|
6132
|
+
analytics: z.record(z.string()).optional(),
|
|
6133
|
+
error: z.string().optional(),
|
|
6134
|
+
validation: jsonElementSchema.optional(),
|
|
6135
|
+
refreshUrl: z.string().optional()
|
|
6157
6136
|
});
|
|
6158
|
-
var
|
|
6159
|
-
|
|
6137
|
+
var searchSearchRequestSchema = z.object({
|
|
6138
|
+
url: z.string(),
|
|
6160
6139
|
method: httpMethodSchema,
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
var summaryProviderSchema = z.object({
|
|
6164
|
-
providesTitle: z.boolean().optional(),
|
|
6165
|
-
providesDescription: z.boolean().optional(),
|
|
6166
|
-
providesIcon: z.boolean().optional(),
|
|
6167
|
-
providesImage: z.boolean().optional()
|
|
6140
|
+
param: z.string(),
|
|
6141
|
+
query: z.string()
|
|
6168
6142
|
});
|
|
6169
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
6170
6143
|
var navigationStackBehaviorSchema = z.union([
|
|
6171
6144
|
z.literal("default"),
|
|
6172
6145
|
z.literal("remove-previous"),
|
|
6173
6146
|
z.literal("remove-all"),
|
|
6174
6147
|
z.literal("replace-current")
|
|
6175
6148
|
]);
|
|
6149
|
+
var linkSchema = z.object({
|
|
6150
|
+
url: z.string()
|
|
6151
|
+
});
|
|
6176
6152
|
var actionTypeSchema = z.union([
|
|
6177
6153
|
z.literal("primary"),
|
|
6178
6154
|
z.literal("secondary"),
|
|
@@ -6180,9 +6156,11 @@ var actionTypeSchema = z.union([
|
|
|
6180
6156
|
z.literal("positive"),
|
|
6181
6157
|
z.literal("negative")
|
|
6182
6158
|
]);
|
|
6183
|
-
var
|
|
6184
|
-
|
|
6185
|
-
|
|
6159
|
+
var iconNamedSchema = z.object({
|
|
6160
|
+
name: z.string()
|
|
6161
|
+
});
|
|
6162
|
+
var iconTextSchema = z.object({
|
|
6163
|
+
text: z.string()
|
|
6186
6164
|
});
|
|
6187
6165
|
var actionSchema = z.object({
|
|
6188
6166
|
title: z.string().optional(),
|
|
@@ -6199,19 +6177,26 @@ var actionSchema = z.object({
|
|
|
6199
6177
|
timeout: z.number().optional(),
|
|
6200
6178
|
skipValidation: z.boolean().optional()
|
|
6201
6179
|
});
|
|
6202
|
-
var
|
|
6180
|
+
var markdownLayoutSchema = z.object({
|
|
6181
|
+
type: z.literal("markdown"),
|
|
6182
|
+
content: z.string(),
|
|
6183
|
+
align: alignSchema.optional(),
|
|
6184
|
+
control: z.string().optional(),
|
|
6185
|
+
margin: sizeSchema.optional()
|
|
6186
|
+
});
|
|
6187
|
+
var searchLayoutSchema = z.object({
|
|
6188
|
+
type: z.literal("search"),
|
|
6203
6189
|
title: z.string(),
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6190
|
+
method: httpMethodSchema,
|
|
6191
|
+
url: z.string(),
|
|
6192
|
+
param: z.string(),
|
|
6193
|
+
emptyMessage: z.string().optional(),
|
|
6194
|
+
control: z.string().optional(),
|
|
6195
|
+
margin: sizeSchema.optional()
|
|
6207
6196
|
});
|
|
6208
|
-
var
|
|
6209
|
-
action: actionSchema,
|
|
6197
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
6210
6198
|
title: z.string(),
|
|
6211
|
-
|
|
6212
|
-
disabled: z.boolean().optional(),
|
|
6213
|
-
icon: iconSchema.optional(),
|
|
6214
|
-
image: imageLayoutSchema.optional()
|
|
6199
|
+
action: actionSchema
|
|
6215
6200
|
});
|
|
6216
6201
|
var instructionsLayoutSchema = z.object({
|
|
6217
6202
|
type: z.literal("instructions"),
|
|
@@ -6220,26 +6205,38 @@ var instructionsLayoutSchema = z.object({
|
|
|
6220
6205
|
control: z.string().optional(),
|
|
6221
6206
|
margin: sizeSchema.optional()
|
|
6222
6207
|
});
|
|
6208
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
6223
6209
|
var behaviorSchema = z.object({
|
|
6224
6210
|
action: actionSchema.optional(),
|
|
6225
6211
|
link: linkSchema.optional()
|
|
6226
6212
|
});
|
|
6227
|
-
var
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6213
|
+
var reviewLayoutFieldSchema = z.object({
|
|
6214
|
+
label: z.string(),
|
|
6215
|
+
value: z.string(),
|
|
6216
|
+
rawValue: z.string().optional(),
|
|
6217
|
+
help: helpSchema.optional()
|
|
6218
|
+
});
|
|
6219
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
6220
|
+
title: z.string(),
|
|
6221
|
+
accessibilityDescription: z.string().optional(),
|
|
6222
|
+
behavior: behaviorSchema
|
|
6223
|
+
});
|
|
6224
|
+
var summarySummariserSchema = z.object({
|
|
6225
|
+
defaultTitle: z.string().optional(),
|
|
6226
|
+
defaultDescription: z.string().optional(),
|
|
6227
|
+
defaultIcon: iconSchema.optional(),
|
|
6228
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
6229
|
+
providesTitle: z.boolean().optional(),
|
|
6230
|
+
providesDescription: z.boolean().optional(),
|
|
6231
|
+
providesIcon: z.boolean().optional(),
|
|
6232
|
+
providesImage: z.boolean().optional()
|
|
6237
6233
|
});
|
|
6238
|
-
var
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6234
|
+
var linkHandlerSchema = z.object({
|
|
6235
|
+
regexPattern: z.string(),
|
|
6236
|
+
action: actionSchema
|
|
6237
|
+
});
|
|
6238
|
+
var actionResponseBodySchema = z.object({
|
|
6239
|
+
action: actionSchema
|
|
6243
6240
|
});
|
|
6244
6241
|
var searchResultSearchSchema = z.object({
|
|
6245
6242
|
type: z.literal("search"),
|
|
@@ -6257,20 +6254,6 @@ var searchResultActionSchema = z.object({
|
|
|
6257
6254
|
image: imageLayoutSchema.optional(),
|
|
6258
6255
|
value: actionSchema
|
|
6259
6256
|
});
|
|
6260
|
-
var actionResponseBodySchema = z.object({
|
|
6261
|
-
action: actionSchema
|
|
6262
|
-
});
|
|
6263
|
-
var errorResponseBodySchema = z.object({
|
|
6264
|
-
refreshFormUrl: z.string().optional(),
|
|
6265
|
-
analytics: z.record(z.string()).optional(),
|
|
6266
|
-
error: z.string().optional(),
|
|
6267
|
-
validation: jsonElementSchema.optional(),
|
|
6268
|
-
refreshUrl: z.string().optional()
|
|
6269
|
-
});
|
|
6270
|
-
var linkHandlerSchema = z.object({
|
|
6271
|
-
regexPattern: z.string(),
|
|
6272
|
-
action: actionSchema
|
|
6273
|
-
});
|
|
6274
6257
|
var pollingOnErrorSchema = z.object({
|
|
6275
6258
|
action: actionSchema
|
|
6276
6259
|
});
|
|
@@ -6278,33 +6261,33 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
6278
6261
|
title: z.string().optional(),
|
|
6279
6262
|
action: actionSchema
|
|
6280
6263
|
});
|
|
6281
|
-
var
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
var alertLayoutCallToActionSchema = z.object({
|
|
6286
|
-
title: z.string(),
|
|
6287
|
-
accessibilityDescription: z.string().optional(),
|
|
6288
|
-
behavior: behaviorSchema
|
|
6289
|
-
});
|
|
6290
|
-
var listLayoutSchema = z.object({
|
|
6291
|
-
type: z.literal("list"),
|
|
6292
|
-
items: z.array(listLayoutItemSchema),
|
|
6293
|
-
title: z.string().optional(),
|
|
6294
|
-
control: z.string().optional(),
|
|
6295
|
-
margin: sizeSchema.optional()
|
|
6296
|
-
});
|
|
6297
|
-
var decisionLayoutSchema = z.object({
|
|
6298
|
-
type: z.literal("decision"),
|
|
6264
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
6265
|
+
var buttonLayoutSchema = z.object({
|
|
6266
|
+
type: z.literal("button"),
|
|
6267
|
+
size: sizeSchema.optional(),
|
|
6299
6268
|
title: z.string().optional(),
|
|
6300
|
-
|
|
6269
|
+
action: actionSchema,
|
|
6270
|
+
context: contextSchema.optional(),
|
|
6271
|
+
disabled: z.boolean().optional(),
|
|
6272
|
+
pinOrder: z.number().optional(),
|
|
6301
6273
|
control: z.string().optional(),
|
|
6302
6274
|
margin: sizeSchema.optional()
|
|
6303
6275
|
});
|
|
6304
|
-
var
|
|
6276
|
+
var decisionLayoutOptionSchema = z.object({
|
|
6277
|
+
action: actionSchema,
|
|
6305
6278
|
title: z.string(),
|
|
6306
|
-
|
|
6307
|
-
|
|
6279
|
+
description: z.string().optional(),
|
|
6280
|
+
disabled: z.boolean().optional(),
|
|
6281
|
+
icon: iconSchema.optional(),
|
|
6282
|
+
image: imageLayoutSchema.optional()
|
|
6283
|
+
});
|
|
6284
|
+
var alertLayoutSchema = z.object({
|
|
6285
|
+
type: z.literal("alert"),
|
|
6286
|
+
markdown: z.string(),
|
|
6287
|
+
context: contextSchema.optional(),
|
|
6288
|
+
control: z.string().optional(),
|
|
6289
|
+
margin: sizeSchema.optional(),
|
|
6290
|
+
callToAction: alertLayoutCallToActionSchema.optional()
|
|
6308
6291
|
});
|
|
6309
6292
|
var reviewLayoutSchema = z.object({
|
|
6310
6293
|
type: z.literal("review"),
|
|
@@ -6316,27 +6299,16 @@ var reviewLayoutSchema = z.object({
|
|
|
6316
6299
|
control: z.string().optional(),
|
|
6317
6300
|
margin: sizeSchema.optional()
|
|
6318
6301
|
});
|
|
6319
|
-
var
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
timeout: z.number().optional(),
|
|
6325
|
-
maxAttempts: z.number(),
|
|
6326
|
-
onError: pollingOnErrorSchema
|
|
6327
|
-
});
|
|
6328
|
-
var navigationSchema = z.object({
|
|
6329
|
-
backButton: navigationBackBehaviorSchema.optional(),
|
|
6330
|
-
back: navigationBackBehaviorSchema.optional(),
|
|
6331
|
-
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
6302
|
+
var listLayoutItemSchema = z.object({
|
|
6303
|
+
title: z.string(),
|
|
6304
|
+
description: z.string().optional(),
|
|
6305
|
+
icon: iconSchema,
|
|
6306
|
+
status: listLayoutStatusSchema.optional()
|
|
6332
6307
|
});
|
|
6333
|
-
var
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
control: z.string().optional(),
|
|
6338
|
-
margin: sizeSchema.optional(),
|
|
6339
|
-
callToAction: alertLayoutCallToActionSchema.optional()
|
|
6308
|
+
var itemCallToActionSchema = z.object({
|
|
6309
|
+
title: z.string(),
|
|
6310
|
+
accessibilityDescription: z.string().optional(),
|
|
6311
|
+
behavior: behaviorSchema
|
|
6340
6312
|
});
|
|
6341
6313
|
var statusListLayoutItemSchema = z.object({
|
|
6342
6314
|
title: z.string(),
|
|
@@ -6345,9 +6317,6 @@ var statusListLayoutItemSchema = z.object({
|
|
|
6345
6317
|
status: statusListLayoutStatusSchema.optional(),
|
|
6346
6318
|
callToAction: itemCallToActionSchema.optional()
|
|
6347
6319
|
});
|
|
6348
|
-
var searchResponseBodySchema = z.object({
|
|
6349
|
-
results: z.array(searchResultSchema)
|
|
6350
|
-
});
|
|
6351
6320
|
var blobSchemaSchema = z.object({
|
|
6352
6321
|
type: z.literal("blob"),
|
|
6353
6322
|
promoted: z.boolean().optional(),
|
|
@@ -6386,6 +6355,34 @@ var constSchemaSchema = z.object({
|
|
|
6386
6355
|
analyticsId: z.string().optional(),
|
|
6387
6356
|
disabled: z.boolean().optional()
|
|
6388
6357
|
});
|
|
6358
|
+
var pollingSchema = z.object({
|
|
6359
|
+
url: z.string(),
|
|
6360
|
+
interval: z.number().optional(),
|
|
6361
|
+
delay: z.number().optional(),
|
|
6362
|
+
timeout: z.number().optional(),
|
|
6363
|
+
maxAttempts: z.number(),
|
|
6364
|
+
onError: pollingOnErrorSchema
|
|
6365
|
+
});
|
|
6366
|
+
var navigationSchema = z.object({
|
|
6367
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
6368
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
6369
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
6370
|
+
});
|
|
6371
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
6372
|
+
var decisionLayoutSchema = z.object({
|
|
6373
|
+
type: z.literal("decision"),
|
|
6374
|
+
title: z.string().optional(),
|
|
6375
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
6376
|
+
control: z.string().optional(),
|
|
6377
|
+
margin: sizeSchema.optional()
|
|
6378
|
+
});
|
|
6379
|
+
var listLayoutSchema = z.object({
|
|
6380
|
+
type: z.literal("list"),
|
|
6381
|
+
items: z.array(listLayoutItemSchema),
|
|
6382
|
+
title: z.string().optional(),
|
|
6383
|
+
control: z.string().optional(),
|
|
6384
|
+
margin: sizeSchema.optional()
|
|
6385
|
+
});
|
|
6389
6386
|
var statusListLayoutSchema = z.object({
|
|
6390
6387
|
type: z.literal("status-list"),
|
|
6391
6388
|
items: z.array(statusListLayoutItemSchema),
|
|
@@ -6393,6 +6390,19 @@ var statusListLayoutSchema = z.object({
|
|
|
6393
6390
|
control: z.string().optional(),
|
|
6394
6391
|
margin: sizeSchema.optional()
|
|
6395
6392
|
});
|
|
6393
|
+
var searchResponseBodySchema = z.object({
|
|
6394
|
+
results: z.array(searchResultSchema)
|
|
6395
|
+
});
|
|
6396
|
+
var columnsLayoutSchema = z.lazy(
|
|
6397
|
+
() => z.object({
|
|
6398
|
+
type: z.literal("columns"),
|
|
6399
|
+
left: z.array(layoutSchema),
|
|
6400
|
+
right: z.array(layoutSchema),
|
|
6401
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
6402
|
+
control: z.string().optional(),
|
|
6403
|
+
margin: sizeSchema.optional()
|
|
6404
|
+
})
|
|
6405
|
+
);
|
|
6396
6406
|
var layoutSchema = z.lazy(
|
|
6397
6407
|
() => z.union([
|
|
6398
6408
|
alertLayoutSchema,
|
|
@@ -6416,26 +6426,6 @@ var layoutSchema = z.lazy(
|
|
|
6416
6426
|
statusListLayoutSchema
|
|
6417
6427
|
])
|
|
6418
6428
|
);
|
|
6419
|
-
var boxLayoutSchema = z.lazy(
|
|
6420
|
-
() => z.object({
|
|
6421
|
-
type: z.literal("box"),
|
|
6422
|
-
components: z.array(layoutSchema),
|
|
6423
|
-
width: sizeSchema.optional(),
|
|
6424
|
-
border: z.boolean().optional(),
|
|
6425
|
-
control: z.string().optional(),
|
|
6426
|
-
margin: sizeSchema.optional()
|
|
6427
|
-
})
|
|
6428
|
-
);
|
|
6429
|
-
var columnsLayoutSchema = z.lazy(
|
|
6430
|
-
() => z.object({
|
|
6431
|
-
type: z.literal("columns"),
|
|
6432
|
-
left: z.array(layoutSchema),
|
|
6433
|
-
right: z.array(layoutSchema),
|
|
6434
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
6435
|
-
control: z.string().optional(),
|
|
6436
|
-
margin: sizeSchema.optional()
|
|
6437
|
-
})
|
|
6438
|
-
);
|
|
6439
6429
|
var modalLayoutSchema = z.lazy(
|
|
6440
6430
|
() => z.object({
|
|
6441
6431
|
type: z.literal("modal"),
|
|
@@ -6451,25 +6441,14 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
6451
6441
|
components: z.array(layoutSchema)
|
|
6452
6442
|
})
|
|
6453
6443
|
);
|
|
6454
|
-
var
|
|
6444
|
+
var boxLayoutSchema = z.lazy(
|
|
6455
6445
|
() => z.object({
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
schemas: z.array(schemaSchema),
|
|
6463
|
-
layout: z.array(layoutSchema),
|
|
6464
|
-
description: z.string().optional(),
|
|
6465
|
-
model: jsonElementSchema.optional(),
|
|
6466
|
-
external: externalSchema.optional(),
|
|
6467
|
-
polling: pollingSchema.optional(),
|
|
6468
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
6469
|
-
analytics: z.record(z.string()).optional(),
|
|
6470
|
-
errors: stepErrorSchema.optional(),
|
|
6471
|
-
navigation: navigationSchema.optional(),
|
|
6472
|
-
refreshUrl: z.string().optional()
|
|
6446
|
+
type: z.literal("box"),
|
|
6447
|
+
components: z.array(layoutSchema),
|
|
6448
|
+
width: sizeSchema.optional(),
|
|
6449
|
+
border: z.boolean().optional(),
|
|
6450
|
+
control: z.string().optional(),
|
|
6451
|
+
margin: sizeSchema.optional()
|
|
6473
6452
|
})
|
|
6474
6453
|
);
|
|
6475
6454
|
var schemaSchema = z.lazy(
|
|
@@ -6695,17 +6674,21 @@ var stringSchemaSchema = z.lazy(
|
|
|
6695
6674
|
help: helpSchema.optional()
|
|
6696
6675
|
})
|
|
6697
6676
|
);
|
|
6698
|
-
var
|
|
6677
|
+
var persistAsyncSchema = z.lazy(
|
|
6678
|
+
() => z.object({
|
|
6679
|
+
param: z.string(),
|
|
6680
|
+
idProperty: z.string(),
|
|
6681
|
+
schema: schemaSchema,
|
|
6682
|
+
url: z.string(),
|
|
6683
|
+
method: httpMethodSchema
|
|
6684
|
+
})
|
|
6685
|
+
);
|
|
6686
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
6699
6687
|
() => z.object({
|
|
6700
6688
|
type: z.literal("array"),
|
|
6701
6689
|
promoted: z.boolean().optional(),
|
|
6702
6690
|
$id: z.string().optional(),
|
|
6703
|
-
items: schemaSchema,
|
|
6704
|
-
addItemTitle: z.string(),
|
|
6705
|
-
editItemTitle: z.string(),
|
|
6706
|
-
minItems: z.number().optional(),
|
|
6707
|
-
maxItems: z.number().optional(),
|
|
6708
|
-
placeholder: z.string().optional(),
|
|
6691
|
+
items: z.array(schemaSchema),
|
|
6709
6692
|
title: z.string().optional(),
|
|
6710
6693
|
description: z.string().optional(),
|
|
6711
6694
|
control: z.string().optional(),
|
|
@@ -6713,30 +6696,24 @@ var arraySchemaListSchema = z.lazy(
|
|
|
6713
6696
|
icon: iconSchema.optional(),
|
|
6714
6697
|
image: imageSchema.optional(),
|
|
6715
6698
|
keywords: z.array(z.string()).optional(),
|
|
6716
|
-
summary:
|
|
6699
|
+
summary: summaryProviderSchema.optional(),
|
|
6717
6700
|
analyticsId: z.string().optional(),
|
|
6718
6701
|
persistAsync: persistAsyncSchema.optional(),
|
|
6719
6702
|
validationAsync: validateAsyncSchema.optional(),
|
|
6720
|
-
alert: alertLayoutSchema.optional()
|
|
6721
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6722
|
-
disabled: z.boolean().optional()
|
|
6723
|
-
})
|
|
6724
|
-
);
|
|
6725
|
-
var persistAsyncSchema = z.lazy(
|
|
6726
|
-
() => z.object({
|
|
6727
|
-
param: z.string(),
|
|
6728
|
-
idProperty: z.string(),
|
|
6729
|
-
schema: schemaSchema,
|
|
6730
|
-
url: z.string(),
|
|
6731
|
-
method: httpMethodSchema
|
|
6703
|
+
alert: alertLayoutSchema.optional()
|
|
6732
6704
|
})
|
|
6733
6705
|
);
|
|
6734
|
-
var
|
|
6706
|
+
var arraySchemaListSchema = z.lazy(
|
|
6735
6707
|
() => z.object({
|
|
6736
6708
|
type: z.literal("array"),
|
|
6737
6709
|
promoted: z.boolean().optional(),
|
|
6738
6710
|
$id: z.string().optional(),
|
|
6739
|
-
items:
|
|
6711
|
+
items: schemaSchema,
|
|
6712
|
+
addItemTitle: z.string(),
|
|
6713
|
+
editItemTitle: z.string(),
|
|
6714
|
+
minItems: z.number().optional(),
|
|
6715
|
+
maxItems: z.number().optional(),
|
|
6716
|
+
placeholder: z.string().optional(),
|
|
6740
6717
|
title: z.string().optional(),
|
|
6741
6718
|
description: z.string().optional(),
|
|
6742
6719
|
control: z.string().optional(),
|
|
@@ -6744,11 +6721,34 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
6744
6721
|
icon: iconSchema.optional(),
|
|
6745
6722
|
image: imageSchema.optional(),
|
|
6746
6723
|
keywords: z.array(z.string()).optional(),
|
|
6747
|
-
summary:
|
|
6724
|
+
summary: summarySummariserSchema.optional(),
|
|
6748
6725
|
analyticsId: z.string().optional(),
|
|
6749
6726
|
persistAsync: persistAsyncSchema.optional(),
|
|
6750
6727
|
validationAsync: validateAsyncSchema.optional(),
|
|
6751
|
-
alert: alertLayoutSchema.optional()
|
|
6728
|
+
alert: alertLayoutSchema.optional(),
|
|
6729
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6730
|
+
disabled: z.boolean().optional()
|
|
6731
|
+
})
|
|
6732
|
+
);
|
|
6733
|
+
var stepSchema = z.lazy(
|
|
6734
|
+
() => z.object({
|
|
6735
|
+
key: z.string().optional(),
|
|
6736
|
+
type: z.string().optional(),
|
|
6737
|
+
actions: z.array(actionSchema).optional(),
|
|
6738
|
+
refreshFormUrl: z.string().optional(),
|
|
6739
|
+
id: z.string(),
|
|
6740
|
+
title: z.string(),
|
|
6741
|
+
schemas: z.array(schemaSchema),
|
|
6742
|
+
layout: z.array(layoutSchema),
|
|
6743
|
+
description: z.string().optional(),
|
|
6744
|
+
model: jsonElementSchema.optional(),
|
|
6745
|
+
external: externalSchema.optional(),
|
|
6746
|
+
polling: pollingSchema.optional(),
|
|
6747
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
6748
|
+
analytics: z.record(z.string()).optional(),
|
|
6749
|
+
errors: stepErrorSchema.optional(),
|
|
6750
|
+
navigation: navigationSchema.optional(),
|
|
6751
|
+
refreshUrl: z.string().optional()
|
|
6752
6752
|
})
|
|
6753
6753
|
);
|
|
6754
6754
|
var validateStep = (step) => validate(step, stepSchema);
|