@wise/dynamic-flow-types 2.22.0 → 2.22.1-experimental-6810eca
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 +282 -282
- package/build/main.min.js +1 -1
- package/build/main.mjs +282 -282
- package/build/zod/schemas.d.ts +2354 -2354
- package/package.json +2 -2
package/build/main.mjs
CHANGED
|
@@ -3822,21 +3822,13 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3822
3822
|
});
|
|
3823
3823
|
|
|
3824
3824
|
// src/zod/schemas.ts
|
|
3825
|
-
var
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
z.literal("GET"),
|
|
3832
|
-
z.literal("POST"),
|
|
3833
|
-
z.literal("PUT"),
|
|
3834
|
-
z.literal("PATCH"),
|
|
3835
|
-
z.literal("DELETE")
|
|
3825
|
+
var sizeSchema = z.union([
|
|
3826
|
+
z.literal("xs"),
|
|
3827
|
+
z.literal("sm"),
|
|
3828
|
+
z.literal("md"),
|
|
3829
|
+
z.literal("lg"),
|
|
3830
|
+
z.literal("xl")
|
|
3836
3831
|
]);
|
|
3837
|
-
var iconNamedSchema = z.object({
|
|
3838
|
-
name: z.string()
|
|
3839
|
-
});
|
|
3840
3832
|
var contextSchema = z.union([
|
|
3841
3833
|
z.literal("positive"),
|
|
3842
3834
|
z.literal("neutral"),
|
|
@@ -3847,18 +3839,107 @@ var contextSchema = z.union([
|
|
|
3847
3839
|
z.literal("info"),
|
|
3848
3840
|
z.literal("primary")
|
|
3849
3841
|
]);
|
|
3850
|
-
var
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
z.literal("
|
|
3857
|
-
z.literal("
|
|
3858
|
-
z.literal("
|
|
3842
|
+
var columnsLayoutBiasSchema = z.union([
|
|
3843
|
+
z.literal("none"),
|
|
3844
|
+
z.literal("left"),
|
|
3845
|
+
z.literal("right")
|
|
3846
|
+
]);
|
|
3847
|
+
var statusListLayoutStatusSchema = z.union([
|
|
3848
|
+
z.literal("not-done"),
|
|
3849
|
+
z.literal("pending"),
|
|
3850
|
+
z.literal("done")
|
|
3859
3851
|
]);
|
|
3860
3852
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
3861
|
-
var
|
|
3853
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
3854
|
+
$ref: z.string()
|
|
3855
|
+
});
|
|
3856
|
+
var modalLayoutTriggerSchema = z.object({
|
|
3857
|
+
title: z.string()
|
|
3858
|
+
});
|
|
3859
|
+
var httpMethodSchema = z.union([
|
|
3860
|
+
z.literal("GET"),
|
|
3861
|
+
z.literal("POST"),
|
|
3862
|
+
z.literal("PUT"),
|
|
3863
|
+
z.literal("PATCH"),
|
|
3864
|
+
z.literal("DELETE")
|
|
3865
|
+
]);
|
|
3866
|
+
var dividerLayoutSchema = z.object({
|
|
3867
|
+
type: z.literal("divider"),
|
|
3868
|
+
control: z.string().optional(),
|
|
3869
|
+
margin: sizeSchema.optional()
|
|
3870
|
+
});
|
|
3871
|
+
var listLayoutStatusSchema = z.union([
|
|
3872
|
+
z.literal("warning"),
|
|
3873
|
+
z.literal("neutral"),
|
|
3874
|
+
z.literal("positive")
|
|
3875
|
+
]);
|
|
3876
|
+
var headingLayoutSchema = z.object({
|
|
3877
|
+
type: z.literal("heading"),
|
|
3878
|
+
text: z.string(),
|
|
3879
|
+
size: sizeSchema.optional(),
|
|
3880
|
+
align: alignSchema.optional(),
|
|
3881
|
+
control: z.string().optional(),
|
|
3882
|
+
margin: sizeSchema.optional()
|
|
3883
|
+
});
|
|
3884
|
+
var formLayoutSchema = z.object({
|
|
3885
|
+
type: z.literal("form"),
|
|
3886
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
3887
|
+
schemaId: z.string(),
|
|
3888
|
+
control: z.string().optional(),
|
|
3889
|
+
margin: sizeSchema.optional()
|
|
3890
|
+
});
|
|
3891
|
+
var imageLayoutSchema = z.object({
|
|
3892
|
+
type: z.literal("image"),
|
|
3893
|
+
text: z.string().optional(),
|
|
3894
|
+
url: z.string(),
|
|
3895
|
+
size: sizeSchema.optional(),
|
|
3896
|
+
accessibilityDescription: z.string().optional(),
|
|
3897
|
+
control: z.string().optional(),
|
|
3898
|
+
margin: sizeSchema.optional()
|
|
3899
|
+
});
|
|
3900
|
+
var infoLayoutSchema = z.object({
|
|
3901
|
+
type: z.literal("info"),
|
|
3902
|
+
markdown: z.string(),
|
|
3903
|
+
align: alignSchema.optional(),
|
|
3904
|
+
control: z.string().optional(),
|
|
3905
|
+
margin: sizeSchema.optional()
|
|
3906
|
+
});
|
|
3907
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
3908
|
+
type: z.literal("loading-indicator"),
|
|
3909
|
+
size: sizeSchema.optional(),
|
|
3910
|
+
control: z.string().optional(),
|
|
3911
|
+
margin: sizeSchema.optional()
|
|
3912
|
+
});
|
|
3913
|
+
var paragraphLayoutSchema = z.object({
|
|
3914
|
+
type: z.literal("paragraph"),
|
|
3915
|
+
text: z.string(),
|
|
3916
|
+
align: alignSchema.optional(),
|
|
3917
|
+
control: z.string().optional(),
|
|
3918
|
+
margin: sizeSchema.optional()
|
|
3919
|
+
});
|
|
3920
|
+
var instructionsLayoutItemSchema = z.object({
|
|
3921
|
+
text: z.string(),
|
|
3922
|
+
context: contextSchema
|
|
3923
|
+
});
|
|
3924
|
+
var helpSchema = z.object({
|
|
3925
|
+
markdown: z.string()
|
|
3926
|
+
});
|
|
3927
|
+
var imageSchema = z.object({
|
|
3928
|
+
text: z.string().optional(),
|
|
3929
|
+
url: z.string(),
|
|
3930
|
+
accessibilityDescription: z.string().optional()
|
|
3931
|
+
});
|
|
3932
|
+
var summaryProviderSchema = z.object({
|
|
3933
|
+
providesTitle: z.boolean().optional(),
|
|
3934
|
+
providesDescription: z.boolean().optional(),
|
|
3935
|
+
providesIcon: z.boolean().optional(),
|
|
3936
|
+
providesImage: z.boolean().optional()
|
|
3937
|
+
});
|
|
3938
|
+
var validateAsyncSchema = z.object({
|
|
3939
|
+
param: z.string(),
|
|
3940
|
+
method: httpMethodSchema,
|
|
3941
|
+
url: z.string()
|
|
3942
|
+
});
|
|
3862
3943
|
var autocompleteTokenSchema = z.union([
|
|
3863
3944
|
z.literal("on"),
|
|
3864
3945
|
z.literal("name"),
|
|
@@ -3924,106 +4005,14 @@ var autocompleteTokenSchema = z.union([
|
|
|
3924
4005
|
z.literal("fax"),
|
|
3925
4006
|
z.literal("pager")
|
|
3926
4007
|
]);
|
|
3927
|
-
var
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
type: z.literal("paragraph"),
|
|
3935
|
-
text: z.string(),
|
|
3936
|
-
align: alignSchema.optional(),
|
|
3937
|
-
control: z.string().optional(),
|
|
3938
|
-
margin: sizeSchema.optional()
|
|
3939
|
-
});
|
|
3940
|
-
var dividerLayoutSchema = z.object({
|
|
3941
|
-
type: z.literal("divider"),
|
|
3942
|
-
control: z.string().optional(),
|
|
3943
|
-
margin: sizeSchema.optional()
|
|
3944
|
-
});
|
|
3945
|
-
var listLayoutStatusSchema = z.union([
|
|
3946
|
-
z.literal("warning"),
|
|
3947
|
-
z.literal("neutral"),
|
|
3948
|
-
z.literal("positive")
|
|
3949
|
-
]);
|
|
3950
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
3951
|
-
$ref: z.string()
|
|
3952
|
-
});
|
|
3953
|
-
var imageLayoutSchema = z.object({
|
|
3954
|
-
type: z.literal("image"),
|
|
3955
|
-
text: z.string().optional(),
|
|
3956
|
-
url: z.string(),
|
|
3957
|
-
size: sizeSchema.optional(),
|
|
3958
|
-
accessibilityDescription: z.string().optional(),
|
|
3959
|
-
control: z.string().optional(),
|
|
3960
|
-
margin: sizeSchema.optional()
|
|
3961
|
-
});
|
|
3962
|
-
var statusListLayoutStatusSchema = z.union([
|
|
3963
|
-
z.literal("not-done"),
|
|
3964
|
-
z.literal("pending"),
|
|
3965
|
-
z.literal("done")
|
|
3966
|
-
]);
|
|
3967
|
-
var instructionsLayoutItemSchema = z.object({
|
|
3968
|
-
text: z.string(),
|
|
3969
|
-
context: contextSchema
|
|
3970
|
-
});
|
|
3971
|
-
var modalLayoutTriggerSchema = z.object({
|
|
3972
|
-
title: z.string()
|
|
3973
|
-
});
|
|
3974
|
-
var searchLayoutSchema = z.object({
|
|
3975
|
-
type: z.literal("search"),
|
|
3976
|
-
title: z.string(),
|
|
3977
|
-
method: httpMethodSchema,
|
|
3978
|
-
url: z.string(),
|
|
3979
|
-
param: z.string(),
|
|
3980
|
-
emptyMessage: z.string().optional(),
|
|
3981
|
-
control: z.string().optional(),
|
|
3982
|
-
margin: sizeSchema.optional()
|
|
3983
|
-
});
|
|
3984
|
-
var infoLayoutSchema = z.object({
|
|
3985
|
-
type: z.literal("info"),
|
|
3986
|
-
markdown: z.string(),
|
|
3987
|
-
align: alignSchema.optional(),
|
|
3988
|
-
control: z.string().optional(),
|
|
3989
|
-
margin: sizeSchema.optional()
|
|
3990
|
-
});
|
|
3991
|
-
var formLayoutSchema = z.object({
|
|
3992
|
-
type: z.literal("form"),
|
|
3993
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
3994
|
-
schemaId: z.string(),
|
|
3995
|
-
control: z.string().optional(),
|
|
3996
|
-
margin: sizeSchema.optional()
|
|
3997
|
-
});
|
|
3998
|
-
var headingLayoutSchema = z.object({
|
|
3999
|
-
type: z.literal("heading"),
|
|
4000
|
-
text: z.string(),
|
|
4001
|
-
size: sizeSchema.optional(),
|
|
4002
|
-
align: alignSchema.optional(),
|
|
4003
|
-
control: z.string().optional(),
|
|
4004
|
-
margin: sizeSchema.optional()
|
|
4005
|
-
});
|
|
4006
|
-
var markdownLayoutSchema = z.object({
|
|
4007
|
-
type: z.literal("markdown"),
|
|
4008
|
-
content: z.string(),
|
|
4009
|
-
align: alignSchema.optional(),
|
|
4010
|
-
control: z.string().optional(),
|
|
4011
|
-
margin: sizeSchema.optional()
|
|
4012
|
-
});
|
|
4013
|
-
var columnsLayoutBiasSchema = z.union([
|
|
4014
|
-
z.literal("none"),
|
|
4015
|
-
z.literal("left"),
|
|
4016
|
-
z.literal("right")
|
|
4008
|
+
var stringSchemaFormatSchema = z.union([
|
|
4009
|
+
z.literal("date"),
|
|
4010
|
+
z.literal("email"),
|
|
4011
|
+
z.literal("numeric"),
|
|
4012
|
+
z.literal("password"),
|
|
4013
|
+
z.literal("phone-number"),
|
|
4014
|
+
z.literal("base64url")
|
|
4017
4015
|
]);
|
|
4018
|
-
var helpSchema = z.object({
|
|
4019
|
-
markdown: z.string()
|
|
4020
|
-
});
|
|
4021
|
-
var searchSearchRequestSchema = z.object({
|
|
4022
|
-
url: z.string(),
|
|
4023
|
-
method: httpMethodSchema,
|
|
4024
|
-
param: z.string(),
|
|
4025
|
-
query: z.string()
|
|
4026
|
-
});
|
|
4027
4016
|
var jsonElementSchema = z.lazy(
|
|
4028
4017
|
() => z.union([
|
|
4029
4018
|
z.string(),
|
|
@@ -4033,6 +4022,7 @@ var jsonElementSchema = z.lazy(
|
|
|
4033
4022
|
z.array(jsonElementSchema)
|
|
4034
4023
|
]).nullable()
|
|
4035
4024
|
);
|
|
4025
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4036
4026
|
var externalSchema = z.object({
|
|
4037
4027
|
url: z.string()
|
|
4038
4028
|
});
|
|
@@ -4040,42 +4030,28 @@ var stepErrorSchema = z.object({
|
|
|
4040
4030
|
error: z.string().optional(),
|
|
4041
4031
|
validation: jsonElementSchema.optional()
|
|
4042
4032
|
});
|
|
4043
|
-
var
|
|
4044
|
-
z.
|
|
4045
|
-
z.
|
|
4046
|
-
z.
|
|
4047
|
-
|
|
4048
|
-
z.
|
|
4049
|
-
z.literal("base64url")
|
|
4050
|
-
]);
|
|
4051
|
-
var summarySummariserSchema = z.object({
|
|
4052
|
-
defaultTitle: z.string().optional(),
|
|
4053
|
-
defaultDescription: z.string().optional(),
|
|
4054
|
-
defaultIcon: iconSchema.optional(),
|
|
4055
|
-
defaultImage: imageLayoutSchema.optional(),
|
|
4056
|
-
providesTitle: z.boolean().optional(),
|
|
4057
|
-
providesDescription: z.boolean().optional(),
|
|
4058
|
-
providesIcon: z.boolean().optional(),
|
|
4059
|
-
providesImage: z.boolean().optional()
|
|
4033
|
+
var errorResponseBodySchema = z.object({
|
|
4034
|
+
refreshFormUrl: z.string().optional(),
|
|
4035
|
+
analytics: z.record(z.string()).optional(),
|
|
4036
|
+
error: z.string().optional(),
|
|
4037
|
+
validation: jsonElementSchema.optional(),
|
|
4038
|
+
refreshUrl: z.string().optional()
|
|
4060
4039
|
});
|
|
4061
|
-
var
|
|
4062
|
-
|
|
4040
|
+
var searchSearchRequestSchema = z.object({
|
|
4041
|
+
url: z.string(),
|
|
4063
4042
|
method: httpMethodSchema,
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
var summaryProviderSchema = z.object({
|
|
4067
|
-
providesTitle: z.boolean().optional(),
|
|
4068
|
-
providesDescription: z.boolean().optional(),
|
|
4069
|
-
providesIcon: z.boolean().optional(),
|
|
4070
|
-
providesImage: z.boolean().optional()
|
|
4043
|
+
param: z.string(),
|
|
4044
|
+
query: z.string()
|
|
4071
4045
|
});
|
|
4072
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4073
4046
|
var navigationStackBehaviorSchema = z.union([
|
|
4074
4047
|
z.literal("default"),
|
|
4075
4048
|
z.literal("remove-previous"),
|
|
4076
4049
|
z.literal("remove-all"),
|
|
4077
4050
|
z.literal("replace-current")
|
|
4078
4051
|
]);
|
|
4052
|
+
var linkSchema = z.object({
|
|
4053
|
+
url: z.string()
|
|
4054
|
+
});
|
|
4079
4055
|
var actionTypeSchema = z.union([
|
|
4080
4056
|
z.literal("primary"),
|
|
4081
4057
|
z.literal("secondary"),
|
|
@@ -4083,9 +4059,11 @@ var actionTypeSchema = z.union([
|
|
|
4083
4059
|
z.literal("positive"),
|
|
4084
4060
|
z.literal("negative")
|
|
4085
4061
|
]);
|
|
4086
|
-
var
|
|
4087
|
-
|
|
4088
|
-
|
|
4062
|
+
var iconNamedSchema = z.object({
|
|
4063
|
+
name: z.string()
|
|
4064
|
+
});
|
|
4065
|
+
var iconTextSchema = z.object({
|
|
4066
|
+
text: z.string()
|
|
4089
4067
|
});
|
|
4090
4068
|
var actionSchema = z.object({
|
|
4091
4069
|
title: z.string().optional(),
|
|
@@ -4102,25 +4080,26 @@ var actionSchema = z.object({
|
|
|
4102
4080
|
timeout: z.number().optional(),
|
|
4103
4081
|
skipValidation: z.boolean().optional()
|
|
4104
4082
|
});
|
|
4105
|
-
var
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4083
|
+
var markdownLayoutSchema = z.object({
|
|
4084
|
+
type: z.literal("markdown"),
|
|
4085
|
+
content: z.string(),
|
|
4086
|
+
align: alignSchema.optional(),
|
|
4087
|
+
control: z.string().optional(),
|
|
4088
|
+
margin: sizeSchema.optional()
|
|
4110
4089
|
});
|
|
4111
|
-
var
|
|
4112
|
-
|
|
4090
|
+
var searchLayoutSchema = z.object({
|
|
4091
|
+
type: z.literal("search"),
|
|
4113
4092
|
title: z.string(),
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4093
|
+
method: httpMethodSchema,
|
|
4094
|
+
url: z.string(),
|
|
4095
|
+
param: z.string(),
|
|
4096
|
+
emptyMessage: z.string().optional(),
|
|
4097
|
+
control: z.string().optional(),
|
|
4098
|
+
margin: sizeSchema.optional()
|
|
4118
4099
|
});
|
|
4119
|
-
var
|
|
4100
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
4120
4101
|
title: z.string(),
|
|
4121
|
-
|
|
4122
|
-
icon: iconSchema,
|
|
4123
|
-
status: statusListLayoutStatusSchema.optional()
|
|
4102
|
+
action: actionSchema
|
|
4124
4103
|
});
|
|
4125
4104
|
var instructionsLayoutSchema = z.object({
|
|
4126
4105
|
type: z.literal("instructions"),
|
|
@@ -4129,26 +4108,39 @@ var instructionsLayoutSchema = z.object({
|
|
|
4129
4108
|
control: z.string().optional(),
|
|
4130
4109
|
margin: sizeSchema.optional()
|
|
4131
4110
|
});
|
|
4132
|
-
var
|
|
4133
|
-
type: z.literal("button"),
|
|
4134
|
-
size: sizeSchema.optional(),
|
|
4135
|
-
title: z.string().optional(),
|
|
4136
|
-
action: actionSchema,
|
|
4137
|
-
context: contextSchema.optional(),
|
|
4138
|
-
disabled: z.boolean().optional(),
|
|
4139
|
-
pinOrder: z.number().optional(),
|
|
4140
|
-
control: z.string().optional(),
|
|
4141
|
-
margin: sizeSchema.optional()
|
|
4142
|
-
});
|
|
4111
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4143
4112
|
var reviewLayoutFieldSchema = z.object({
|
|
4144
4113
|
label: z.string(),
|
|
4145
4114
|
value: z.string(),
|
|
4146
4115
|
help: helpSchema.optional()
|
|
4147
4116
|
});
|
|
4117
|
+
var statusListLayoutItemSchema = z.object({
|
|
4118
|
+
title: z.string(),
|
|
4119
|
+
description: z.string().optional(),
|
|
4120
|
+
icon: iconSchema,
|
|
4121
|
+
status: statusListLayoutStatusSchema.optional()
|
|
4122
|
+
});
|
|
4148
4123
|
var behaviorSchema = z.object({
|
|
4149
4124
|
action: actionSchema.optional(),
|
|
4150
4125
|
link: linkSchema.optional()
|
|
4151
4126
|
});
|
|
4127
|
+
var summarySummariserSchema = z.object({
|
|
4128
|
+
defaultTitle: z.string().optional(),
|
|
4129
|
+
defaultDescription: z.string().optional(),
|
|
4130
|
+
defaultIcon: iconSchema.optional(),
|
|
4131
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
4132
|
+
providesTitle: z.boolean().optional(),
|
|
4133
|
+
providesDescription: z.boolean().optional(),
|
|
4134
|
+
providesIcon: z.boolean().optional(),
|
|
4135
|
+
providesImage: z.boolean().optional()
|
|
4136
|
+
});
|
|
4137
|
+
var linkHandlerSchema = z.object({
|
|
4138
|
+
regexPattern: z.string(),
|
|
4139
|
+
action: actionSchema
|
|
4140
|
+
});
|
|
4141
|
+
var actionResponseBodySchema = z.object({
|
|
4142
|
+
action: actionSchema
|
|
4143
|
+
});
|
|
4152
4144
|
var searchResultSearchSchema = z.object({
|
|
4153
4145
|
type: z.literal("search"),
|
|
4154
4146
|
title: z.string(),
|
|
@@ -4165,20 +4157,6 @@ var searchResultActionSchema = z.object({
|
|
|
4165
4157
|
image: imageLayoutSchema.optional(),
|
|
4166
4158
|
value: actionSchema
|
|
4167
4159
|
});
|
|
4168
|
-
var actionResponseBodySchema = z.object({
|
|
4169
|
-
action: actionSchema
|
|
4170
|
-
});
|
|
4171
|
-
var errorResponseBodySchema = z.object({
|
|
4172
|
-
refreshFormUrl: z.string().optional(),
|
|
4173
|
-
analytics: z.record(z.string()).optional(),
|
|
4174
|
-
error: z.string().optional(),
|
|
4175
|
-
validation: jsonElementSchema.optional(),
|
|
4176
|
-
refreshUrl: z.string().optional()
|
|
4177
|
-
});
|
|
4178
|
-
var linkHandlerSchema = z.object({
|
|
4179
|
-
regexPattern: z.string(),
|
|
4180
|
-
action: actionSchema
|
|
4181
|
-
});
|
|
4182
4160
|
var pollingOnErrorSchema = z.object({
|
|
4183
4161
|
action: actionSchema
|
|
4184
4162
|
});
|
|
@@ -4186,26 +4164,33 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
4186
4164
|
title: z.string().optional(),
|
|
4187
4165
|
action: actionSchema
|
|
4188
4166
|
});
|
|
4189
|
-
var
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
var alertLayoutCallToActionSchema = z.object({
|
|
4194
|
-
title: z.string(),
|
|
4195
|
-
accessibilityDescription: z.string().optional(),
|
|
4196
|
-
behavior: behaviorSchema
|
|
4197
|
-
});
|
|
4198
|
-
var listLayoutSchema = z.object({
|
|
4199
|
-
type: z.literal("list"),
|
|
4200
|
-
items: z.array(listLayoutItemSchema),
|
|
4167
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4168
|
+
var buttonLayoutSchema = z.object({
|
|
4169
|
+
type: z.literal("button"),
|
|
4170
|
+
size: sizeSchema.optional(),
|
|
4201
4171
|
title: z.string().optional(),
|
|
4172
|
+
action: actionSchema,
|
|
4173
|
+
context: contextSchema.optional(),
|
|
4174
|
+
disabled: z.boolean().optional(),
|
|
4175
|
+
pinOrder: z.number().optional(),
|
|
4202
4176
|
control: z.string().optional(),
|
|
4203
4177
|
margin: sizeSchema.optional()
|
|
4204
4178
|
});
|
|
4205
|
-
var
|
|
4206
|
-
|
|
4179
|
+
var decisionLayoutOptionSchema = z.object({
|
|
4180
|
+
action: actionSchema,
|
|
4181
|
+
title: z.string(),
|
|
4182
|
+
description: z.string().optional(),
|
|
4183
|
+
disabled: z.boolean().optional(),
|
|
4184
|
+
icon: iconSchema.optional(),
|
|
4185
|
+
image: imageLayoutSchema.optional()
|
|
4186
|
+
});
|
|
4187
|
+
var reviewLayoutSchema = z.object({
|
|
4188
|
+
type: z.literal("review"),
|
|
4189
|
+
orientation: z.string().optional(),
|
|
4190
|
+
action: actionSchema.optional(),
|
|
4191
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
4207
4192
|
title: z.string().optional(),
|
|
4208
|
-
|
|
4193
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
4209
4194
|
control: z.string().optional(),
|
|
4210
4195
|
margin: sizeSchema.optional()
|
|
4211
4196
|
});
|
|
@@ -4216,17 +4201,17 @@ var statusListLayoutSchema = z.object({
|
|
|
4216
4201
|
control: z.string().optional(),
|
|
4217
4202
|
margin: sizeSchema.optional()
|
|
4218
4203
|
});
|
|
4219
|
-
var
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4204
|
+
var listLayoutItemSchema = z.object({
|
|
4205
|
+
title: z.string(),
|
|
4206
|
+
description: z.string().optional(),
|
|
4207
|
+
icon: iconSchema,
|
|
4208
|
+
status: listLayoutStatusSchema.optional()
|
|
4209
|
+
});
|
|
4210
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
4211
|
+
title: z.string(),
|
|
4212
|
+
accessibilityDescription: z.string().optional(),
|
|
4213
|
+
behavior: behaviorSchema
|
|
4228
4214
|
});
|
|
4229
|
-
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4230
4215
|
var pollingSchema = z.object({
|
|
4231
4216
|
url: z.string(),
|
|
4232
4217
|
interval: z.number().optional(),
|
|
@@ -4240,6 +4225,14 @@ var navigationSchema = z.object({
|
|
|
4240
4225
|
back: navigationBackBehaviorSchema.optional(),
|
|
4241
4226
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4242
4227
|
});
|
|
4228
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4229
|
+
var decisionLayoutSchema = z.object({
|
|
4230
|
+
type: z.literal("decision"),
|
|
4231
|
+
title: z.string().optional(),
|
|
4232
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
4233
|
+
control: z.string().optional(),
|
|
4234
|
+
margin: sizeSchema.optional()
|
|
4235
|
+
});
|
|
4243
4236
|
var alertLayoutSchema = z.object({
|
|
4244
4237
|
type: z.literal("alert"),
|
|
4245
4238
|
markdown: z.string(),
|
|
@@ -4248,8 +4241,12 @@ var alertLayoutSchema = z.object({
|
|
|
4248
4241
|
margin: sizeSchema.optional(),
|
|
4249
4242
|
callToAction: alertLayoutCallToActionSchema.optional()
|
|
4250
4243
|
});
|
|
4251
|
-
var
|
|
4252
|
-
|
|
4244
|
+
var listLayoutSchema = z.object({
|
|
4245
|
+
type: z.literal("list"),
|
|
4246
|
+
items: z.array(listLayoutItemSchema),
|
|
4247
|
+
title: z.string().optional(),
|
|
4248
|
+
control: z.string().optional(),
|
|
4249
|
+
margin: sizeSchema.optional()
|
|
4253
4250
|
});
|
|
4254
4251
|
var blobSchemaSchema = z.object({
|
|
4255
4252
|
type: z.literal("blob"),
|
|
@@ -4289,6 +4286,19 @@ var constSchemaSchema = z.object({
|
|
|
4289
4286
|
analyticsId: z.string().optional(),
|
|
4290
4287
|
disabled: z.boolean().optional()
|
|
4291
4288
|
});
|
|
4289
|
+
var searchResponseBodySchema = z.object({
|
|
4290
|
+
results: z.array(searchResultSchema)
|
|
4291
|
+
});
|
|
4292
|
+
var columnsLayoutSchema = z.lazy(
|
|
4293
|
+
() => z.object({
|
|
4294
|
+
type: z.literal("columns"),
|
|
4295
|
+
left: z.array(layoutSchema),
|
|
4296
|
+
right: z.array(layoutSchema),
|
|
4297
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
4298
|
+
control: z.string().optional(),
|
|
4299
|
+
margin: sizeSchema.optional()
|
|
4300
|
+
})
|
|
4301
|
+
);
|
|
4292
4302
|
var layoutSchema = z.lazy(
|
|
4293
4303
|
() => z.union([
|
|
4294
4304
|
alertLayoutSchema,
|
|
@@ -4312,26 +4322,6 @@ var layoutSchema = z.lazy(
|
|
|
4312
4322
|
statusListLayoutSchema
|
|
4313
4323
|
])
|
|
4314
4324
|
);
|
|
4315
|
-
var boxLayoutSchema = z.lazy(
|
|
4316
|
-
() => z.object({
|
|
4317
|
-
type: z.literal("box"),
|
|
4318
|
-
components: z.array(layoutSchema),
|
|
4319
|
-
width: sizeSchema.optional(),
|
|
4320
|
-
border: z.boolean().optional(),
|
|
4321
|
-
control: z.string().optional(),
|
|
4322
|
-
margin: sizeSchema.optional()
|
|
4323
|
-
})
|
|
4324
|
-
);
|
|
4325
|
-
var columnsLayoutSchema = z.lazy(
|
|
4326
|
-
() => z.object({
|
|
4327
|
-
type: z.literal("columns"),
|
|
4328
|
-
left: z.array(layoutSchema),
|
|
4329
|
-
right: z.array(layoutSchema),
|
|
4330
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
4331
|
-
control: z.string().optional(),
|
|
4332
|
-
margin: sizeSchema.optional()
|
|
4333
|
-
})
|
|
4334
|
-
);
|
|
4335
4325
|
var modalLayoutSchema = z.lazy(
|
|
4336
4326
|
() => z.object({
|
|
4337
4327
|
type: z.literal("modal"),
|
|
@@ -4347,25 +4337,14 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
4347
4337
|
components: z.array(layoutSchema)
|
|
4348
4338
|
})
|
|
4349
4339
|
);
|
|
4350
|
-
var
|
|
4340
|
+
var boxLayoutSchema = z.lazy(
|
|
4351
4341
|
() => z.object({
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
schemas: z.array(schemaSchema),
|
|
4359
|
-
layout: z.array(layoutSchema),
|
|
4360
|
-
description: z.string().optional(),
|
|
4361
|
-
model: jsonElementSchema.optional(),
|
|
4362
|
-
external: externalSchema.optional(),
|
|
4363
|
-
polling: pollingSchema.optional(),
|
|
4364
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
4365
|
-
analytics: z.record(z.string()).optional(),
|
|
4366
|
-
errors: stepErrorSchema.optional(),
|
|
4367
|
-
navigation: navigationSchema.optional(),
|
|
4368
|
-
refreshUrl: z.string().optional()
|
|
4342
|
+
type: z.literal("box"),
|
|
4343
|
+
components: z.array(layoutSchema),
|
|
4344
|
+
width: sizeSchema.optional(),
|
|
4345
|
+
border: z.boolean().optional(),
|
|
4346
|
+
control: z.string().optional(),
|
|
4347
|
+
margin: sizeSchema.optional()
|
|
4369
4348
|
})
|
|
4370
4349
|
);
|
|
4371
4350
|
var schemaSchema = z.lazy(
|
|
@@ -4591,17 +4570,21 @@ var stringSchemaSchema = z.lazy(
|
|
|
4591
4570
|
help: helpSchema.optional()
|
|
4592
4571
|
})
|
|
4593
4572
|
);
|
|
4594
|
-
var
|
|
4573
|
+
var persistAsyncSchema = z.lazy(
|
|
4574
|
+
() => z.object({
|
|
4575
|
+
param: z.string(),
|
|
4576
|
+
idProperty: z.string(),
|
|
4577
|
+
schema: schemaSchema,
|
|
4578
|
+
url: z.string(),
|
|
4579
|
+
method: httpMethodSchema
|
|
4580
|
+
})
|
|
4581
|
+
);
|
|
4582
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
4595
4583
|
() => z.object({
|
|
4596
4584
|
type: z.literal("array"),
|
|
4597
4585
|
promoted: z.boolean().optional(),
|
|
4598
4586
|
$id: z.string().optional(),
|
|
4599
|
-
items: schemaSchema,
|
|
4600
|
-
addItemTitle: z.string(),
|
|
4601
|
-
editItemTitle: z.string(),
|
|
4602
|
-
minItems: z.number().optional(),
|
|
4603
|
-
maxItems: z.number().optional(),
|
|
4604
|
-
placeholder: z.string().optional(),
|
|
4587
|
+
items: z.array(schemaSchema),
|
|
4605
4588
|
title: z.string().optional(),
|
|
4606
4589
|
description: z.string().optional(),
|
|
4607
4590
|
control: z.string().optional(),
|
|
@@ -4609,30 +4592,24 @@ var arraySchemaListSchema = z.lazy(
|
|
|
4609
4592
|
icon: iconSchema.optional(),
|
|
4610
4593
|
image: imageSchema.optional(),
|
|
4611
4594
|
keywords: z.array(z.string()).optional(),
|
|
4612
|
-
summary:
|
|
4595
|
+
summary: summaryProviderSchema.optional(),
|
|
4613
4596
|
analyticsId: z.string().optional(),
|
|
4614
4597
|
persistAsync: persistAsyncSchema.optional(),
|
|
4615
4598
|
validationAsync: validateAsyncSchema.optional(),
|
|
4616
|
-
alert: alertLayoutSchema.optional()
|
|
4617
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4618
|
-
disabled: z.boolean().optional()
|
|
4619
|
-
})
|
|
4620
|
-
);
|
|
4621
|
-
var persistAsyncSchema = z.lazy(
|
|
4622
|
-
() => z.object({
|
|
4623
|
-
param: z.string(),
|
|
4624
|
-
idProperty: z.string(),
|
|
4625
|
-
schema: schemaSchema,
|
|
4626
|
-
url: z.string(),
|
|
4627
|
-
method: httpMethodSchema
|
|
4599
|
+
alert: alertLayoutSchema.optional()
|
|
4628
4600
|
})
|
|
4629
4601
|
);
|
|
4630
|
-
var
|
|
4602
|
+
var arraySchemaListSchema = z.lazy(
|
|
4631
4603
|
() => z.object({
|
|
4632
4604
|
type: z.literal("array"),
|
|
4633
4605
|
promoted: z.boolean().optional(),
|
|
4634
4606
|
$id: z.string().optional(),
|
|
4635
|
-
items:
|
|
4607
|
+
items: schemaSchema,
|
|
4608
|
+
addItemTitle: z.string(),
|
|
4609
|
+
editItemTitle: z.string(),
|
|
4610
|
+
minItems: z.number().optional(),
|
|
4611
|
+
maxItems: z.number().optional(),
|
|
4612
|
+
placeholder: z.string().optional(),
|
|
4636
4613
|
title: z.string().optional(),
|
|
4637
4614
|
description: z.string().optional(),
|
|
4638
4615
|
control: z.string().optional(),
|
|
@@ -4640,11 +4617,34 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
4640
4617
|
icon: iconSchema.optional(),
|
|
4641
4618
|
image: imageSchema.optional(),
|
|
4642
4619
|
keywords: z.array(z.string()).optional(),
|
|
4643
|
-
summary:
|
|
4620
|
+
summary: summarySummariserSchema.optional(),
|
|
4644
4621
|
analyticsId: z.string().optional(),
|
|
4645
4622
|
persistAsync: persistAsyncSchema.optional(),
|
|
4646
4623
|
validationAsync: validateAsyncSchema.optional(),
|
|
4647
|
-
alert: alertLayoutSchema.optional()
|
|
4624
|
+
alert: alertLayoutSchema.optional(),
|
|
4625
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4626
|
+
disabled: z.boolean().optional()
|
|
4627
|
+
})
|
|
4628
|
+
);
|
|
4629
|
+
var stepSchema = z.lazy(
|
|
4630
|
+
() => z.object({
|
|
4631
|
+
key: z.string().optional(),
|
|
4632
|
+
type: z.string().optional(),
|
|
4633
|
+
actions: z.array(actionSchema).optional(),
|
|
4634
|
+
refreshFormUrl: z.string().optional(),
|
|
4635
|
+
id: z.string(),
|
|
4636
|
+
title: z.string(),
|
|
4637
|
+
schemas: z.array(schemaSchema),
|
|
4638
|
+
layout: z.array(layoutSchema),
|
|
4639
|
+
description: z.string().optional(),
|
|
4640
|
+
model: jsonElementSchema.optional(),
|
|
4641
|
+
external: externalSchema.optional(),
|
|
4642
|
+
polling: pollingSchema.optional(),
|
|
4643
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
4644
|
+
analytics: z.record(z.string()).optional(),
|
|
4645
|
+
errors: stepErrorSchema.optional(),
|
|
4646
|
+
navigation: navigationSchema.optional(),
|
|
4647
|
+
refreshUrl: z.string().optional()
|
|
4648
4648
|
})
|
|
4649
4649
|
);
|
|
4650
4650
|
|