@wise/dynamic-flow-types 2.18.1 → 2.18.3-experimental-c0e84f1
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 +288 -294
- package/build/main.min.js +1 -1
- package/build/main.mjs +288 -294
- package/build/next/layout/AlertLayout.d.ts +1 -1
- package/build/next/layout/BoxLayout.d.ts +1 -1
- package/build/next/layout/ButtonLayout.d.ts +1 -1
- package/build/next/layout/ColumnsLayout.d.ts +1 -1
- package/build/next/layout/DecisionLayout.d.ts +1 -1
- package/build/next/layout/DividerLayout.d.ts +1 -1
- package/build/next/layout/FormLayout.d.ts +1 -1
- package/build/next/layout/HeadingLayout.d.ts +1 -1
- package/build/next/layout/ImageLayout.d.ts +1 -1
- package/build/next/layout/InfoLayout.d.ts +1 -1
- package/build/next/layout/InstructionsLayout.d.ts +1 -1
- package/build/next/layout/ListLayout.d.ts +1 -1
- package/build/next/layout/LoadingIndicatorLayout.d.ts +1 -1
- package/build/next/layout/MarkdownLayout.d.ts +1 -1
- package/build/next/layout/ModalLayout.d.ts +1 -1
- package/build/next/layout/ParagraphLayout.d.ts +1 -1
- package/build/next/layout/ReviewLayout.d.ts +1 -1
- package/build/next/layout/SearchLayout.d.ts +1 -1
- package/build/next/layout/StatusListLayout.d.ts +1 -1
- package/build/zod/schemas.d.ts +2423 -2423
- package/package.json +2 -2
package/build/main.js
CHANGED
|
@@ -494,19 +494,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
494
494
|
var isValid = (x) => x.status === "valid";
|
|
495
495
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
496
496
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
497
|
-
if (kind === "a" && !f)
|
|
498
|
-
|
|
499
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
500
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
497
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
498
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
501
499
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
502
500
|
}
|
|
503
501
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
504
|
-
if (kind === "m")
|
|
505
|
-
|
|
506
|
-
if (
|
|
507
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
508
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
509
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
502
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
503
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
504
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
510
505
|
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
511
506
|
}
|
|
512
507
|
var errorUtil;
|
|
@@ -2182,8 +2177,7 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
2182
2177
|
});
|
|
2183
2178
|
status.dirty();
|
|
2184
2179
|
}
|
|
2185
|
-
} else if (unknownKeys === "strip")
|
|
2186
|
-
;
|
|
2180
|
+
} else if (unknownKeys === "strip") ;
|
|
2187
2181
|
else {
|
|
2188
2182
|
throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
|
|
2189
2183
|
}
|
|
@@ -3853,21 +3847,13 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3853
3847
|
});
|
|
3854
3848
|
|
|
3855
3849
|
// src/zod/schemas.ts
|
|
3856
|
-
var
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
z.literal("GET"),
|
|
3863
|
-
z.literal("POST"),
|
|
3864
|
-
z.literal("PUT"),
|
|
3865
|
-
z.literal("PATCH"),
|
|
3866
|
-
z.literal("DELETE")
|
|
3850
|
+
var sizeSchema = z.union([
|
|
3851
|
+
z.literal("xs"),
|
|
3852
|
+
z.literal("sm"),
|
|
3853
|
+
z.literal("md"),
|
|
3854
|
+
z.literal("lg"),
|
|
3855
|
+
z.literal("xl")
|
|
3867
3856
|
]);
|
|
3868
|
-
var iconNamedSchema = z.object({
|
|
3869
|
-
name: z.string()
|
|
3870
|
-
});
|
|
3871
3857
|
var contextSchema = z.union([
|
|
3872
3858
|
z.literal("positive"),
|
|
3873
3859
|
z.literal("neutral"),
|
|
@@ -3878,18 +3864,107 @@ var contextSchema = z.union([
|
|
|
3878
3864
|
z.literal("info"),
|
|
3879
3865
|
z.literal("primary")
|
|
3880
3866
|
]);
|
|
3881
|
-
var
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
z.literal("
|
|
3888
|
-
z.literal("
|
|
3889
|
-
z.literal("
|
|
3867
|
+
var columnsLayoutBiasSchema = z.union([
|
|
3868
|
+
z.literal("none"),
|
|
3869
|
+
z.literal("left"),
|
|
3870
|
+
z.literal("right")
|
|
3871
|
+
]);
|
|
3872
|
+
var statusListLayoutStatusSchema = z.union([
|
|
3873
|
+
z.literal("not-done"),
|
|
3874
|
+
z.literal("pending"),
|
|
3875
|
+
z.literal("done")
|
|
3890
3876
|
]);
|
|
3891
3877
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
3892
|
-
var
|
|
3878
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
3879
|
+
$ref: z.string()
|
|
3880
|
+
});
|
|
3881
|
+
var modalLayoutTriggerSchema = z.object({
|
|
3882
|
+
title: z.string()
|
|
3883
|
+
});
|
|
3884
|
+
var httpMethodSchema = z.union([
|
|
3885
|
+
z.literal("GET"),
|
|
3886
|
+
z.literal("POST"),
|
|
3887
|
+
z.literal("PUT"),
|
|
3888
|
+
z.literal("PATCH"),
|
|
3889
|
+
z.literal("DELETE")
|
|
3890
|
+
]);
|
|
3891
|
+
var dividerLayoutSchema = z.object({
|
|
3892
|
+
type: z.literal("divider"),
|
|
3893
|
+
control: z.string().optional(),
|
|
3894
|
+
margin: sizeSchema.optional()
|
|
3895
|
+
});
|
|
3896
|
+
var listLayoutStatusSchema = z.union([
|
|
3897
|
+
z.literal("warning"),
|
|
3898
|
+
z.literal("neutral"),
|
|
3899
|
+
z.literal("positive")
|
|
3900
|
+
]);
|
|
3901
|
+
var headingLayoutSchema = z.object({
|
|
3902
|
+
type: z.literal("heading"),
|
|
3903
|
+
text: z.string(),
|
|
3904
|
+
size: sizeSchema.optional(),
|
|
3905
|
+
align: alignSchema.optional(),
|
|
3906
|
+
control: z.string().optional(),
|
|
3907
|
+
margin: sizeSchema.optional()
|
|
3908
|
+
});
|
|
3909
|
+
var formLayoutSchema = z.object({
|
|
3910
|
+
type: z.literal("form"),
|
|
3911
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
3912
|
+
schemaId: z.string(),
|
|
3913
|
+
control: z.string().optional(),
|
|
3914
|
+
margin: sizeSchema.optional()
|
|
3915
|
+
});
|
|
3916
|
+
var imageLayoutSchema = z.object({
|
|
3917
|
+
type: z.literal("image"),
|
|
3918
|
+
text: z.string().optional(),
|
|
3919
|
+
url: z.string(),
|
|
3920
|
+
size: sizeSchema.optional(),
|
|
3921
|
+
accessibilityDescription: z.string().optional(),
|
|
3922
|
+
control: z.string().optional(),
|
|
3923
|
+
margin: sizeSchema.optional()
|
|
3924
|
+
});
|
|
3925
|
+
var infoLayoutSchema = z.object({
|
|
3926
|
+
type: z.literal("info"),
|
|
3927
|
+
markdown: z.string(),
|
|
3928
|
+
align: alignSchema.optional(),
|
|
3929
|
+
control: z.string().optional(),
|
|
3930
|
+
margin: sizeSchema.optional()
|
|
3931
|
+
});
|
|
3932
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
3933
|
+
type: z.literal("loading-indicator"),
|
|
3934
|
+
size: sizeSchema.optional(),
|
|
3935
|
+
control: z.string().optional(),
|
|
3936
|
+
margin: sizeSchema.optional()
|
|
3937
|
+
});
|
|
3938
|
+
var paragraphLayoutSchema = z.object({
|
|
3939
|
+
type: z.literal("paragraph"),
|
|
3940
|
+
text: z.string(),
|
|
3941
|
+
align: alignSchema.optional(),
|
|
3942
|
+
control: z.string().optional(),
|
|
3943
|
+
margin: sizeSchema.optional()
|
|
3944
|
+
});
|
|
3945
|
+
var instructionsLayoutItemSchema = z.object({
|
|
3946
|
+
text: z.string(),
|
|
3947
|
+
context: contextSchema
|
|
3948
|
+
});
|
|
3949
|
+
var helpSchema = z.object({
|
|
3950
|
+
markdown: z.string()
|
|
3951
|
+
});
|
|
3952
|
+
var imageSchema = z.object({
|
|
3953
|
+
text: z.string().optional(),
|
|
3954
|
+
url: z.string(),
|
|
3955
|
+
accessibilityDescription: z.string().optional()
|
|
3956
|
+
});
|
|
3957
|
+
var summaryProviderSchema = z.object({
|
|
3958
|
+
providesTitle: z.boolean().optional(),
|
|
3959
|
+
providesDescription: z.boolean().optional(),
|
|
3960
|
+
providesIcon: z.boolean().optional(),
|
|
3961
|
+
providesImage: z.boolean().optional()
|
|
3962
|
+
});
|
|
3963
|
+
var validateAsyncSchema = z.object({
|
|
3964
|
+
param: z.string(),
|
|
3965
|
+
method: httpMethodSchema,
|
|
3966
|
+
url: z.string()
|
|
3967
|
+
});
|
|
3893
3968
|
var autocompleteTokenSchema = z.union([
|
|
3894
3969
|
z.literal("on"),
|
|
3895
3970
|
z.literal("name"),
|
|
@@ -3955,106 +4030,14 @@ var autocompleteTokenSchema = z.union([
|
|
|
3955
4030
|
z.literal("fax"),
|
|
3956
4031
|
z.literal("pager")
|
|
3957
4032
|
]);
|
|
3958
|
-
var
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
type: z.literal("paragraph"),
|
|
3966
|
-
text: z.string(),
|
|
3967
|
-
align: alignSchema.optional(),
|
|
3968
|
-
control: z.string().optional(),
|
|
3969
|
-
margin: sizeSchema.optional()
|
|
3970
|
-
});
|
|
3971
|
-
var dividerLayoutSchema = z.object({
|
|
3972
|
-
type: z.literal("divider"),
|
|
3973
|
-
control: z.string().optional(),
|
|
3974
|
-
margin: sizeSchema.optional()
|
|
3975
|
-
});
|
|
3976
|
-
var listLayoutStatusSchema = z.union([
|
|
3977
|
-
z.literal("warning"),
|
|
3978
|
-
z.literal("neutral"),
|
|
3979
|
-
z.literal("positive")
|
|
3980
|
-
]);
|
|
3981
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
3982
|
-
$ref: z.string()
|
|
3983
|
-
});
|
|
3984
|
-
var imageLayoutSchema = z.object({
|
|
3985
|
-
type: z.literal("image"),
|
|
3986
|
-
text: z.string().optional(),
|
|
3987
|
-
url: z.string(),
|
|
3988
|
-
size: sizeSchema.optional(),
|
|
3989
|
-
accessibilityDescription: z.string().optional(),
|
|
3990
|
-
control: z.string().optional(),
|
|
3991
|
-
margin: sizeSchema.optional()
|
|
3992
|
-
});
|
|
3993
|
-
var statusListLayoutStatusSchema = z.union([
|
|
3994
|
-
z.literal("not-done"),
|
|
3995
|
-
z.literal("pending"),
|
|
3996
|
-
z.literal("done")
|
|
3997
|
-
]);
|
|
3998
|
-
var instructionsLayoutItemSchema = z.object({
|
|
3999
|
-
text: z.string(),
|
|
4000
|
-
context: contextSchema
|
|
4001
|
-
});
|
|
4002
|
-
var modalLayoutTriggerSchema = z.object({
|
|
4003
|
-
title: z.string()
|
|
4004
|
-
});
|
|
4005
|
-
var searchLayoutSchema = z.object({
|
|
4006
|
-
type: z.literal("search"),
|
|
4007
|
-
title: z.string(),
|
|
4008
|
-
method: httpMethodSchema,
|
|
4009
|
-
url: z.string(),
|
|
4010
|
-
param: z.string(),
|
|
4011
|
-
emptyMessage: z.string().optional(),
|
|
4012
|
-
control: z.string().optional(),
|
|
4013
|
-
margin: sizeSchema.optional()
|
|
4014
|
-
});
|
|
4015
|
-
var infoLayoutSchema = z.object({
|
|
4016
|
-
type: z.literal("info"),
|
|
4017
|
-
markdown: z.string(),
|
|
4018
|
-
align: alignSchema.optional(),
|
|
4019
|
-
control: z.string().optional(),
|
|
4020
|
-
margin: sizeSchema.optional()
|
|
4021
|
-
});
|
|
4022
|
-
var formLayoutSchema = z.object({
|
|
4023
|
-
type: z.literal("form"),
|
|
4024
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
4025
|
-
schemaId: z.string(),
|
|
4026
|
-
control: z.string().optional(),
|
|
4027
|
-
margin: sizeSchema.optional()
|
|
4028
|
-
});
|
|
4029
|
-
var headingLayoutSchema = z.object({
|
|
4030
|
-
type: z.literal("heading"),
|
|
4031
|
-
text: z.string(),
|
|
4032
|
-
size: sizeSchema.optional(),
|
|
4033
|
-
align: alignSchema.optional(),
|
|
4034
|
-
control: z.string().optional(),
|
|
4035
|
-
margin: sizeSchema.optional()
|
|
4036
|
-
});
|
|
4037
|
-
var markdownLayoutSchema = z.object({
|
|
4038
|
-
type: z.literal("markdown"),
|
|
4039
|
-
content: z.string(),
|
|
4040
|
-
align: alignSchema.optional(),
|
|
4041
|
-
control: z.string().optional(),
|
|
4042
|
-
margin: sizeSchema.optional()
|
|
4043
|
-
});
|
|
4044
|
-
var columnsLayoutBiasSchema = z.union([
|
|
4045
|
-
z.literal("none"),
|
|
4046
|
-
z.literal("left"),
|
|
4047
|
-
z.literal("right")
|
|
4033
|
+
var stringSchemaFormatSchema = z.union([
|
|
4034
|
+
z.literal("date"),
|
|
4035
|
+
z.literal("email"),
|
|
4036
|
+
z.literal("numeric"),
|
|
4037
|
+
z.literal("password"),
|
|
4038
|
+
z.literal("phone-number"),
|
|
4039
|
+
z.literal("base64url")
|
|
4048
4040
|
]);
|
|
4049
|
-
var helpSchema = z.object({
|
|
4050
|
-
markdown: z.string()
|
|
4051
|
-
});
|
|
4052
|
-
var searchSearchRequestSchema = z.object({
|
|
4053
|
-
url: z.string(),
|
|
4054
|
-
method: httpMethodSchema,
|
|
4055
|
-
param: z.string(),
|
|
4056
|
-
query: z.string()
|
|
4057
|
-
});
|
|
4058
4041
|
var jsonElementSchema = z.lazy(
|
|
4059
4042
|
() => z.union([
|
|
4060
4043
|
z.string(),
|
|
@@ -4064,6 +4047,7 @@ var jsonElementSchema = z.lazy(
|
|
|
4064
4047
|
z.array(jsonElementSchema)
|
|
4065
4048
|
]).nullable()
|
|
4066
4049
|
);
|
|
4050
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4067
4051
|
var externalSchema = z.object({
|
|
4068
4052
|
url: z.string()
|
|
4069
4053
|
});
|
|
@@ -4071,42 +4055,28 @@ var stepErrorSchema = z.object({
|
|
|
4071
4055
|
error: z.string().optional(),
|
|
4072
4056
|
validation: jsonElementSchema.optional()
|
|
4073
4057
|
});
|
|
4074
|
-
var
|
|
4075
|
-
z.
|
|
4076
|
-
z.
|
|
4077
|
-
z.
|
|
4078
|
-
|
|
4079
|
-
z.
|
|
4080
|
-
z.literal("base64url")
|
|
4081
|
-
]);
|
|
4082
|
-
var summarySummariserSchema = z.object({
|
|
4083
|
-
defaultTitle: z.string().optional(),
|
|
4084
|
-
defaultDescription: z.string().optional(),
|
|
4085
|
-
defaultIcon: iconSchema.optional(),
|
|
4086
|
-
defaultImage: imageLayoutSchema.optional(),
|
|
4087
|
-
providesTitle: z.boolean().optional(),
|
|
4088
|
-
providesDescription: z.boolean().optional(),
|
|
4089
|
-
providesIcon: z.boolean().optional(),
|
|
4090
|
-
providesImage: z.boolean().optional()
|
|
4058
|
+
var errorResponseBodySchema = z.object({
|
|
4059
|
+
refreshFormUrl: z.string().optional(),
|
|
4060
|
+
analytics: z.record(z.string()).optional(),
|
|
4061
|
+
error: z.string().optional(),
|
|
4062
|
+
validation: jsonElementSchema.optional(),
|
|
4063
|
+
refreshUrl: z.string().optional()
|
|
4091
4064
|
});
|
|
4092
|
-
var
|
|
4093
|
-
|
|
4065
|
+
var searchSearchRequestSchema = z.object({
|
|
4066
|
+
url: z.string(),
|
|
4094
4067
|
method: httpMethodSchema,
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
var summaryProviderSchema = z.object({
|
|
4098
|
-
providesTitle: z.boolean().optional(),
|
|
4099
|
-
providesDescription: z.boolean().optional(),
|
|
4100
|
-
providesIcon: z.boolean().optional(),
|
|
4101
|
-
providesImage: z.boolean().optional()
|
|
4068
|
+
param: z.string(),
|
|
4069
|
+
query: z.string()
|
|
4102
4070
|
});
|
|
4103
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4104
4071
|
var navigationStackBehaviorSchema = z.union([
|
|
4105
4072
|
z.literal("default"),
|
|
4106
4073
|
z.literal("remove-previous"),
|
|
4107
4074
|
z.literal("remove-all"),
|
|
4108
4075
|
z.literal("replace-current")
|
|
4109
4076
|
]);
|
|
4077
|
+
var linkSchema = z.object({
|
|
4078
|
+
url: z.string()
|
|
4079
|
+
});
|
|
4110
4080
|
var actionTypeSchema = z.union([
|
|
4111
4081
|
z.literal("primary"),
|
|
4112
4082
|
z.literal("secondary"),
|
|
@@ -4114,9 +4084,11 @@ var actionTypeSchema = z.union([
|
|
|
4114
4084
|
z.literal("positive"),
|
|
4115
4085
|
z.literal("negative")
|
|
4116
4086
|
]);
|
|
4117
|
-
var
|
|
4118
|
-
|
|
4119
|
-
|
|
4087
|
+
var iconNamedSchema = z.object({
|
|
4088
|
+
name: z.string()
|
|
4089
|
+
});
|
|
4090
|
+
var iconTextSchema = z.object({
|
|
4091
|
+
text: z.string()
|
|
4120
4092
|
});
|
|
4121
4093
|
var actionSchema = z.object({
|
|
4122
4094
|
title: z.string().optional(),
|
|
@@ -4133,25 +4105,26 @@ var actionSchema = z.object({
|
|
|
4133
4105
|
timeout: z.number().optional(),
|
|
4134
4106
|
skipValidation: z.boolean().optional()
|
|
4135
4107
|
});
|
|
4136
|
-
var
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4108
|
+
var markdownLayoutSchema = z.object({
|
|
4109
|
+
type: z.literal("markdown"),
|
|
4110
|
+
content: z.string(),
|
|
4111
|
+
align: alignSchema.optional(),
|
|
4112
|
+
control: z.string().optional(),
|
|
4113
|
+
margin: sizeSchema.optional()
|
|
4141
4114
|
});
|
|
4142
|
-
var
|
|
4143
|
-
|
|
4115
|
+
var searchLayoutSchema = z.object({
|
|
4116
|
+
type: z.literal("search"),
|
|
4144
4117
|
title: z.string(),
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4118
|
+
method: httpMethodSchema,
|
|
4119
|
+
url: z.string(),
|
|
4120
|
+
param: z.string(),
|
|
4121
|
+
emptyMessage: z.string().optional(),
|
|
4122
|
+
control: z.string().optional(),
|
|
4123
|
+
margin: sizeSchema.optional()
|
|
4149
4124
|
});
|
|
4150
|
-
var
|
|
4125
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
4151
4126
|
title: z.string(),
|
|
4152
|
-
|
|
4153
|
-
icon: iconSchema,
|
|
4154
|
-
status: statusListLayoutStatusSchema.optional()
|
|
4127
|
+
action: actionSchema
|
|
4155
4128
|
});
|
|
4156
4129
|
var instructionsLayoutSchema = z.object({
|
|
4157
4130
|
type: z.literal("instructions"),
|
|
@@ -4160,26 +4133,39 @@ var instructionsLayoutSchema = z.object({
|
|
|
4160
4133
|
control: z.string().optional(),
|
|
4161
4134
|
margin: sizeSchema.optional()
|
|
4162
4135
|
});
|
|
4163
|
-
var
|
|
4164
|
-
type: z.literal("button"),
|
|
4165
|
-
size: sizeSchema.optional(),
|
|
4166
|
-
title: z.string().optional(),
|
|
4167
|
-
action: actionSchema,
|
|
4168
|
-
context: contextSchema.optional(),
|
|
4169
|
-
disabled: z.boolean().optional(),
|
|
4170
|
-
pinOrder: z.number().optional(),
|
|
4171
|
-
control: z.string().optional(),
|
|
4172
|
-
margin: sizeSchema.optional()
|
|
4173
|
-
});
|
|
4136
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4174
4137
|
var reviewLayoutFieldSchema = z.object({
|
|
4175
4138
|
label: z.string(),
|
|
4176
4139
|
value: z.string(),
|
|
4177
4140
|
help: helpSchema.optional()
|
|
4178
4141
|
});
|
|
4142
|
+
var statusListLayoutItemSchema = z.object({
|
|
4143
|
+
title: z.string(),
|
|
4144
|
+
description: z.string().optional(),
|
|
4145
|
+
icon: iconSchema,
|
|
4146
|
+
status: statusListLayoutStatusSchema.optional()
|
|
4147
|
+
});
|
|
4179
4148
|
var behaviorSchema = z.object({
|
|
4180
4149
|
action: actionSchema.optional(),
|
|
4181
4150
|
link: linkSchema.optional()
|
|
4182
4151
|
});
|
|
4152
|
+
var summarySummariserSchema = z.object({
|
|
4153
|
+
defaultTitle: z.string().optional(),
|
|
4154
|
+
defaultDescription: z.string().optional(),
|
|
4155
|
+
defaultIcon: iconSchema.optional(),
|
|
4156
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
4157
|
+
providesTitle: z.boolean().optional(),
|
|
4158
|
+
providesDescription: z.boolean().optional(),
|
|
4159
|
+
providesIcon: z.boolean().optional(),
|
|
4160
|
+
providesImage: z.boolean().optional()
|
|
4161
|
+
});
|
|
4162
|
+
var linkHandlerSchema = z.object({
|
|
4163
|
+
regexPattern: z.string(),
|
|
4164
|
+
action: actionSchema
|
|
4165
|
+
});
|
|
4166
|
+
var actionResponseBodySchema = z.object({
|
|
4167
|
+
action: actionSchema
|
|
4168
|
+
});
|
|
4183
4169
|
var searchResultSearchSchema = z.object({
|
|
4184
4170
|
type: z.literal("search"),
|
|
4185
4171
|
title: z.string(),
|
|
@@ -4196,20 +4182,6 @@ var searchResultActionSchema = z.object({
|
|
|
4196
4182
|
image: imageLayoutSchema.optional(),
|
|
4197
4183
|
value: actionSchema
|
|
4198
4184
|
});
|
|
4199
|
-
var actionResponseBodySchema = z.object({
|
|
4200
|
-
action: actionSchema
|
|
4201
|
-
});
|
|
4202
|
-
var errorResponseBodySchema = z.object({
|
|
4203
|
-
refreshFormUrl: z.string().optional(),
|
|
4204
|
-
analytics: z.record(z.string()).optional(),
|
|
4205
|
-
error: z.string().optional(),
|
|
4206
|
-
validation: jsonElementSchema.optional(),
|
|
4207
|
-
refreshUrl: z.string().optional()
|
|
4208
|
-
});
|
|
4209
|
-
var linkHandlerSchema = z.object({
|
|
4210
|
-
regexPattern: z.string(),
|
|
4211
|
-
action: actionSchema
|
|
4212
|
-
});
|
|
4213
4185
|
var pollingOnErrorSchema = z.object({
|
|
4214
4186
|
action: actionSchema
|
|
4215
4187
|
});
|
|
@@ -4217,26 +4189,33 @@ var navigationBackBehaviourSchema = z.object({
|
|
|
4217
4189
|
title: z.string().optional(),
|
|
4218
4190
|
action: actionSchema
|
|
4219
4191
|
});
|
|
4220
|
-
var
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
var alertLayoutCallToActionSchema = z.object({
|
|
4225
|
-
title: z.string(),
|
|
4226
|
-
accessibilityDescription: z.string().optional(),
|
|
4227
|
-
behavior: behaviorSchema
|
|
4228
|
-
});
|
|
4229
|
-
var listLayoutSchema = z.object({
|
|
4230
|
-
type: z.literal("list"),
|
|
4231
|
-
items: z.array(listLayoutItemSchema),
|
|
4192
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4193
|
+
var buttonLayoutSchema = z.object({
|
|
4194
|
+
type: z.literal("button"),
|
|
4195
|
+
size: sizeSchema.optional(),
|
|
4232
4196
|
title: z.string().optional(),
|
|
4197
|
+
action: actionSchema,
|
|
4198
|
+
context: contextSchema.optional(),
|
|
4199
|
+
disabled: z.boolean().optional(),
|
|
4200
|
+
pinOrder: z.number().optional(),
|
|
4233
4201
|
control: z.string().optional(),
|
|
4234
4202
|
margin: sizeSchema.optional()
|
|
4235
4203
|
});
|
|
4236
|
-
var
|
|
4237
|
-
|
|
4204
|
+
var decisionLayoutOptionSchema = z.object({
|
|
4205
|
+
action: actionSchema,
|
|
4206
|
+
title: z.string(),
|
|
4207
|
+
description: z.string().optional(),
|
|
4208
|
+
disabled: z.boolean().optional(),
|
|
4209
|
+
icon: iconSchema.optional(),
|
|
4210
|
+
image: imageLayoutSchema.optional()
|
|
4211
|
+
});
|
|
4212
|
+
var reviewLayoutSchema = z.object({
|
|
4213
|
+
type: z.literal("review"),
|
|
4214
|
+
orientation: z.string().optional(),
|
|
4215
|
+
action: actionSchema.optional(),
|
|
4216
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
4238
4217
|
title: z.string().optional(),
|
|
4239
|
-
|
|
4218
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
4240
4219
|
control: z.string().optional(),
|
|
4241
4220
|
margin: sizeSchema.optional()
|
|
4242
4221
|
});
|
|
@@ -4247,17 +4226,17 @@ var statusListLayoutSchema = z.object({
|
|
|
4247
4226
|
control: z.string().optional(),
|
|
4248
4227
|
margin: sizeSchema.optional()
|
|
4249
4228
|
});
|
|
4250
|
-
var
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4229
|
+
var listLayoutItemSchema = z.object({
|
|
4230
|
+
title: z.string(),
|
|
4231
|
+
description: z.string().optional(),
|
|
4232
|
+
icon: iconSchema,
|
|
4233
|
+
status: listLayoutStatusSchema.optional()
|
|
4234
|
+
});
|
|
4235
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
4236
|
+
title: z.string(),
|
|
4237
|
+
accessibilityDescription: z.string().optional(),
|
|
4238
|
+
behavior: behaviorSchema
|
|
4259
4239
|
});
|
|
4260
|
-
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4261
4240
|
var pollingSchema = z.object({
|
|
4262
4241
|
url: z.string(),
|
|
4263
4242
|
interval: z.number(),
|
|
@@ -4269,6 +4248,14 @@ var navigationSchema = z.object({
|
|
|
4269
4248
|
back: navigationBackBehaviourSchema.optional(),
|
|
4270
4249
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4271
4250
|
});
|
|
4251
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4252
|
+
var decisionLayoutSchema = z.object({
|
|
4253
|
+
type: z.literal("decision"),
|
|
4254
|
+
title: z.string().optional(),
|
|
4255
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
4256
|
+
control: z.string().optional(),
|
|
4257
|
+
margin: sizeSchema.optional()
|
|
4258
|
+
});
|
|
4272
4259
|
var alertLayoutSchema = z.object({
|
|
4273
4260
|
type: z.literal("alert"),
|
|
4274
4261
|
markdown: z.string(),
|
|
@@ -4277,8 +4264,12 @@ var alertLayoutSchema = z.object({
|
|
|
4277
4264
|
margin: sizeSchema.optional(),
|
|
4278
4265
|
callToAction: alertLayoutCallToActionSchema.optional()
|
|
4279
4266
|
});
|
|
4280
|
-
var
|
|
4281
|
-
|
|
4267
|
+
var listLayoutSchema = z.object({
|
|
4268
|
+
type: z.literal("list"),
|
|
4269
|
+
items: z.array(listLayoutItemSchema),
|
|
4270
|
+
title: z.string().optional(),
|
|
4271
|
+
control: z.string().optional(),
|
|
4272
|
+
margin: sizeSchema.optional()
|
|
4282
4273
|
});
|
|
4283
4274
|
var blobSchemaSchema = z.object({
|
|
4284
4275
|
type: z.literal("blob"),
|
|
@@ -4318,6 +4309,19 @@ var constSchemaSchema = z.object({
|
|
|
4318
4309
|
analyticsId: z.string().optional(),
|
|
4319
4310
|
disabled: z.boolean().optional()
|
|
4320
4311
|
});
|
|
4312
|
+
var searchResponseBodySchema = z.object({
|
|
4313
|
+
results: z.array(searchResultSchema)
|
|
4314
|
+
});
|
|
4315
|
+
var columnsLayoutSchema = z.lazy(
|
|
4316
|
+
() => z.object({
|
|
4317
|
+
type: z.literal("columns"),
|
|
4318
|
+
left: z.array(layoutSchema),
|
|
4319
|
+
right: z.array(layoutSchema),
|
|
4320
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
4321
|
+
control: z.string().optional(),
|
|
4322
|
+
margin: sizeSchema.optional()
|
|
4323
|
+
})
|
|
4324
|
+
);
|
|
4321
4325
|
var layoutSchema = z.lazy(
|
|
4322
4326
|
() => z.union([
|
|
4323
4327
|
alertLayoutSchema,
|
|
@@ -4341,26 +4345,6 @@ var layoutSchema = z.lazy(
|
|
|
4341
4345
|
statusListLayoutSchema
|
|
4342
4346
|
])
|
|
4343
4347
|
);
|
|
4344
|
-
var boxLayoutSchema = z.lazy(
|
|
4345
|
-
() => z.object({
|
|
4346
|
-
type: z.literal("box"),
|
|
4347
|
-
components: z.array(layoutSchema),
|
|
4348
|
-
width: sizeSchema.optional(),
|
|
4349
|
-
border: z.boolean().optional(),
|
|
4350
|
-
control: z.string().optional(),
|
|
4351
|
-
margin: sizeSchema.optional()
|
|
4352
|
-
})
|
|
4353
|
-
);
|
|
4354
|
-
var columnsLayoutSchema = z.lazy(
|
|
4355
|
-
() => z.object({
|
|
4356
|
-
type: z.literal("columns"),
|
|
4357
|
-
left: z.array(layoutSchema),
|
|
4358
|
-
right: z.array(layoutSchema),
|
|
4359
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
4360
|
-
control: z.string().optional(),
|
|
4361
|
-
margin: sizeSchema.optional()
|
|
4362
|
-
})
|
|
4363
|
-
);
|
|
4364
4348
|
var modalLayoutSchema = z.lazy(
|
|
4365
4349
|
() => z.object({
|
|
4366
4350
|
type: z.literal("modal"),
|
|
@@ -4375,25 +4359,14 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
4375
4359
|
components: z.array(layoutSchema)
|
|
4376
4360
|
})
|
|
4377
4361
|
);
|
|
4378
|
-
var
|
|
4362
|
+
var boxLayoutSchema = z.lazy(
|
|
4379
4363
|
() => z.object({
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
description: z.string().optional(),
|
|
4387
|
-
schemas: z.array(schemaSchema),
|
|
4388
|
-
layout: z.array(layoutSchema),
|
|
4389
|
-
model: jsonElementSchema.optional(),
|
|
4390
|
-
external: externalSchema.optional(),
|
|
4391
|
-
polling: pollingSchema.optional(),
|
|
4392
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
4393
|
-
analytics: z.record(z.string()).optional(),
|
|
4394
|
-
errors: stepErrorSchema.optional(),
|
|
4395
|
-
navigation: navigationSchema.optional(),
|
|
4396
|
-
refreshUrl: z.string().optional()
|
|
4364
|
+
type: z.literal("box"),
|
|
4365
|
+
components: z.array(layoutSchema),
|
|
4366
|
+
width: sizeSchema.optional(),
|
|
4367
|
+
border: z.boolean().optional(),
|
|
4368
|
+
control: z.string().optional(),
|
|
4369
|
+
margin: sizeSchema.optional()
|
|
4397
4370
|
})
|
|
4398
4371
|
);
|
|
4399
4372
|
var schemaSchema = z.lazy(
|
|
@@ -4619,17 +4592,21 @@ var stringSchemaSchema = z.lazy(
|
|
|
4619
4592
|
help: helpSchema.optional()
|
|
4620
4593
|
})
|
|
4621
4594
|
);
|
|
4622
|
-
var
|
|
4595
|
+
var persistAsyncSchema = z.lazy(
|
|
4596
|
+
() => z.object({
|
|
4597
|
+
param: z.string(),
|
|
4598
|
+
idProperty: z.string(),
|
|
4599
|
+
schema: schemaSchema,
|
|
4600
|
+
url: z.string(),
|
|
4601
|
+
method: httpMethodSchema
|
|
4602
|
+
})
|
|
4603
|
+
);
|
|
4604
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
4623
4605
|
() => z.object({
|
|
4624
4606
|
type: z.literal("array"),
|
|
4625
4607
|
promoted: z.boolean().optional(),
|
|
4626
4608
|
$id: z.string().optional(),
|
|
4627
|
-
items: schemaSchema,
|
|
4628
|
-
addItemTitle: z.string(),
|
|
4629
|
-
editItemTitle: z.string(),
|
|
4630
|
-
minItems: z.number().optional(),
|
|
4631
|
-
maxItems: z.number().optional(),
|
|
4632
|
-
placeholder: z.string().optional(),
|
|
4609
|
+
items: z.array(schemaSchema),
|
|
4633
4610
|
title: z.string().optional(),
|
|
4634
4611
|
description: z.string().optional(),
|
|
4635
4612
|
control: z.string().optional(),
|
|
@@ -4637,30 +4614,24 @@ var arraySchemaListSchema = z.lazy(
|
|
|
4637
4614
|
icon: iconSchema.optional(),
|
|
4638
4615
|
image: imageSchema.optional(),
|
|
4639
4616
|
keywords: z.array(z.string()).optional(),
|
|
4640
|
-
summary:
|
|
4617
|
+
summary: summaryProviderSchema.optional(),
|
|
4641
4618
|
analyticsId: z.string().optional(),
|
|
4642
4619
|
persistAsync: persistAsyncSchema.optional(),
|
|
4643
4620
|
validationAsync: validateAsyncSchema.optional(),
|
|
4644
|
-
alert: alertLayoutSchema.optional()
|
|
4645
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4646
|
-
disabled: z.boolean().optional()
|
|
4647
|
-
})
|
|
4648
|
-
);
|
|
4649
|
-
var persistAsyncSchema = z.lazy(
|
|
4650
|
-
() => z.object({
|
|
4651
|
-
param: z.string(),
|
|
4652
|
-
idProperty: z.string(),
|
|
4653
|
-
schema: schemaSchema,
|
|
4654
|
-
url: z.string(),
|
|
4655
|
-
method: httpMethodSchema
|
|
4621
|
+
alert: alertLayoutSchema.optional()
|
|
4656
4622
|
})
|
|
4657
4623
|
);
|
|
4658
|
-
var
|
|
4624
|
+
var arraySchemaListSchema = z.lazy(
|
|
4659
4625
|
() => z.object({
|
|
4660
4626
|
type: z.literal("array"),
|
|
4661
4627
|
promoted: z.boolean().optional(),
|
|
4662
4628
|
$id: z.string().optional(),
|
|
4663
|
-
items:
|
|
4629
|
+
items: schemaSchema,
|
|
4630
|
+
addItemTitle: z.string(),
|
|
4631
|
+
editItemTitle: z.string(),
|
|
4632
|
+
minItems: z.number().optional(),
|
|
4633
|
+
maxItems: z.number().optional(),
|
|
4634
|
+
placeholder: z.string().optional(),
|
|
4664
4635
|
title: z.string().optional(),
|
|
4665
4636
|
description: z.string().optional(),
|
|
4666
4637
|
control: z.string().optional(),
|
|
@@ -4668,11 +4639,34 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
4668
4639
|
icon: iconSchema.optional(),
|
|
4669
4640
|
image: imageSchema.optional(),
|
|
4670
4641
|
keywords: z.array(z.string()).optional(),
|
|
4671
|
-
summary:
|
|
4642
|
+
summary: summarySummariserSchema.optional(),
|
|
4672
4643
|
analyticsId: z.string().optional(),
|
|
4673
4644
|
persistAsync: persistAsyncSchema.optional(),
|
|
4674
4645
|
validationAsync: validateAsyncSchema.optional(),
|
|
4675
|
-
alert: alertLayoutSchema.optional()
|
|
4646
|
+
alert: alertLayoutSchema.optional(),
|
|
4647
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4648
|
+
disabled: z.boolean().optional()
|
|
4649
|
+
})
|
|
4650
|
+
);
|
|
4651
|
+
var stepSchema = z.lazy(
|
|
4652
|
+
() => z.object({
|
|
4653
|
+
key: z.string().optional(),
|
|
4654
|
+
type: z.string().optional(),
|
|
4655
|
+
actions: z.array(actionSchema).optional(),
|
|
4656
|
+
refreshFormUrl: z.string().optional(),
|
|
4657
|
+
id: z.string(),
|
|
4658
|
+
title: z.string(),
|
|
4659
|
+
schemas: z.array(schemaSchema),
|
|
4660
|
+
layout: z.array(layoutSchema),
|
|
4661
|
+
description: z.string().optional(),
|
|
4662
|
+
model: jsonElementSchema.optional(),
|
|
4663
|
+
external: externalSchema.optional(),
|
|
4664
|
+
polling: pollingSchema.optional(),
|
|
4665
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
4666
|
+
analytics: z.record(z.string()).optional(),
|
|
4667
|
+
errors: stepErrorSchema.optional(),
|
|
4668
|
+
navigation: navigationSchema.optional(),
|
|
4669
|
+
refreshUrl: z.string().optional()
|
|
4676
4670
|
})
|
|
4677
4671
|
);
|
|
4678
4672
|
|