@wise/dynamic-flow-types 2.18.2 → 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.mjs CHANGED
@@ -469,19 +469,14 @@ var isDirty = (x) => x.status === "dirty";
469
469
  var isValid = (x) => x.status === "valid";
470
470
  var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
471
471
  function __classPrivateFieldGet(receiver, state, kind, f) {
472
- if (kind === "a" && !f)
473
- throw new TypeError("Private accessor was defined without a getter");
474
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
475
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
472
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
473
+ 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");
476
474
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
477
475
  }
478
476
  function __classPrivateFieldSet(receiver, state, value, kind, f) {
479
- if (kind === "m")
480
- throw new TypeError("Private method is not writable");
481
- if (kind === "a" && !f)
482
- throw new TypeError("Private accessor was defined without a setter");
483
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
484
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
477
+ if (kind === "m") throw new TypeError("Private method is not writable");
478
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
479
+ 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");
485
480
  return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
486
481
  }
487
482
  var errorUtil;
@@ -2157,8 +2152,7 @@ var ZodObject = class _ZodObject extends ZodType {
2157
2152
  });
2158
2153
  status.dirty();
2159
2154
  }
2160
- } else if (unknownKeys === "strip")
2161
- ;
2155
+ } else if (unknownKeys === "strip") ;
2162
2156
  else {
2163
2157
  throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
2164
2158
  }
@@ -3828,21 +3822,13 @@ var z = /* @__PURE__ */ Object.freeze({
3828
3822
  });
3829
3823
 
3830
3824
  // src/zod/schemas.ts
3831
- var imageSchema = z.object({
3832
- text: z.string().optional(),
3833
- url: z.string(),
3834
- accessibilityDescription: z.string().optional()
3835
- });
3836
- var httpMethodSchema = z.union([
3837
- z.literal("GET"),
3838
- z.literal("POST"),
3839
- z.literal("PUT"),
3840
- z.literal("PATCH"),
3841
- 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")
3842
3831
  ]);
3843
- var iconNamedSchema = z.object({
3844
- name: z.string()
3845
- });
3846
3832
  var contextSchema = z.union([
3847
3833
  z.literal("positive"),
3848
3834
  z.literal("neutral"),
@@ -3853,18 +3839,107 @@ var contextSchema = z.union([
3853
3839
  z.literal("info"),
3854
3840
  z.literal("primary")
3855
3841
  ]);
3856
- var iconTextSchema = z.object({
3857
- text: z.string()
3858
- });
3859
- var sizeSchema = z.union([
3860
- z.literal("xs"),
3861
- z.literal("sm"),
3862
- z.literal("md"),
3863
- z.literal("lg"),
3864
- z.literal("xl")
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")
3865
3851
  ]);
3866
3852
  var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
3867
- var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
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
+ });
3868
3943
  var autocompleteTokenSchema = z.union([
3869
3944
  z.literal("on"),
3870
3945
  z.literal("name"),
@@ -3930,106 +4005,14 @@ var autocompleteTokenSchema = z.union([
3930
4005
  z.literal("fax"),
3931
4006
  z.literal("pager")
3932
4007
  ]);
3933
- var loadingIndicatorLayoutSchema = z.object({
3934
- type: z.literal("loading-indicator"),
3935
- size: sizeSchema.optional(),
3936
- control: z.string().optional(),
3937
- margin: sizeSchema.optional()
3938
- });
3939
- var paragraphLayoutSchema = z.object({
3940
- type: z.literal("paragraph"),
3941
- text: z.string(),
3942
- align: alignSchema.optional(),
3943
- control: z.string().optional(),
3944
- margin: sizeSchema.optional()
3945
- });
3946
- var dividerLayoutSchema = z.object({
3947
- type: z.literal("divider"),
3948
- control: z.string().optional(),
3949
- margin: sizeSchema.optional()
3950
- });
3951
- var listLayoutStatusSchema = z.union([
3952
- z.literal("warning"),
3953
- z.literal("neutral"),
3954
- z.literal("positive")
3955
- ]);
3956
- var formLayoutSchemaReferenceSchema = z.object({
3957
- $ref: z.string()
3958
- });
3959
- var imageLayoutSchema = z.object({
3960
- type: z.literal("image"),
3961
- text: z.string().optional(),
3962
- url: z.string(),
3963
- size: sizeSchema.optional(),
3964
- accessibilityDescription: z.string().optional(),
3965
- control: z.string().optional(),
3966
- margin: sizeSchema.optional()
3967
- });
3968
- var statusListLayoutStatusSchema = z.union([
3969
- z.literal("not-done"),
3970
- z.literal("pending"),
3971
- z.literal("done")
3972
- ]);
3973
- var instructionsLayoutItemSchema = z.object({
3974
- text: z.string(),
3975
- context: contextSchema
3976
- });
3977
- var modalLayoutTriggerSchema = z.object({
3978
- title: z.string()
3979
- });
3980
- var searchLayoutSchema = z.object({
3981
- type: z.literal("search"),
3982
- title: z.string(),
3983
- method: httpMethodSchema,
3984
- url: z.string(),
3985
- param: z.string(),
3986
- emptyMessage: z.string().optional(),
3987
- control: z.string().optional(),
3988
- margin: sizeSchema.optional()
3989
- });
3990
- var infoLayoutSchema = z.object({
3991
- type: z.literal("info"),
3992
- markdown: z.string(),
3993
- align: alignSchema.optional(),
3994
- control: z.string().optional(),
3995
- margin: sizeSchema.optional()
3996
- });
3997
- var formLayoutSchema = z.object({
3998
- type: z.literal("form"),
3999
- schema: formLayoutSchemaReferenceSchema.optional(),
4000
- schemaId: z.string(),
4001
- control: z.string().optional(),
4002
- margin: sizeSchema.optional()
4003
- });
4004
- var headingLayoutSchema = z.object({
4005
- type: z.literal("heading"),
4006
- text: z.string(),
4007
- size: sizeSchema.optional(),
4008
- align: alignSchema.optional(),
4009
- control: z.string().optional(),
4010
- margin: sizeSchema.optional()
4011
- });
4012
- var markdownLayoutSchema = z.object({
4013
- type: z.literal("markdown"),
4014
- content: z.string(),
4015
- align: alignSchema.optional(),
4016
- control: z.string().optional(),
4017
- margin: sizeSchema.optional()
4018
- });
4019
- var columnsLayoutBiasSchema = z.union([
4020
- z.literal("none"),
4021
- z.literal("left"),
4022
- 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")
4023
4015
  ]);
4024
- var helpSchema = z.object({
4025
- markdown: z.string()
4026
- });
4027
- var searchSearchRequestSchema = z.object({
4028
- url: z.string(),
4029
- method: httpMethodSchema,
4030
- param: z.string(),
4031
- query: z.string()
4032
- });
4033
4016
  var jsonElementSchema = z.lazy(
4034
4017
  () => z.union([
4035
4018
  z.string(),
@@ -4039,6 +4022,7 @@ var jsonElementSchema = z.lazy(
4039
4022
  z.array(jsonElementSchema)
4040
4023
  ]).nullable()
4041
4024
  );
4025
+ var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
4042
4026
  var externalSchema = z.object({
4043
4027
  url: z.string()
4044
4028
  });
@@ -4046,42 +4030,28 @@ var stepErrorSchema = z.object({
4046
4030
  error: z.string().optional(),
4047
4031
  validation: jsonElementSchema.optional()
4048
4032
  });
4049
- var stringSchemaFormatSchema = z.union([
4050
- z.literal("date"),
4051
- z.literal("email"),
4052
- z.literal("numeric"),
4053
- z.literal("password"),
4054
- z.literal("phone-number"),
4055
- z.literal("base64url")
4056
- ]);
4057
- var summarySummariserSchema = z.object({
4058
- defaultTitle: z.string().optional(),
4059
- defaultDescription: z.string().optional(),
4060
- defaultIcon: iconSchema.optional(),
4061
- defaultImage: imageLayoutSchema.optional(),
4062
- providesTitle: z.boolean().optional(),
4063
- providesDescription: z.boolean().optional(),
4064
- providesIcon: z.boolean().optional(),
4065
- 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()
4066
4039
  });
4067
- var validateAsyncSchema = z.object({
4068
- param: z.string(),
4040
+ var searchSearchRequestSchema = z.object({
4041
+ url: z.string(),
4069
4042
  method: httpMethodSchema,
4070
- url: z.string()
4071
- });
4072
- var summaryProviderSchema = z.object({
4073
- providesTitle: z.boolean().optional(),
4074
- providesDescription: z.boolean().optional(),
4075
- providesIcon: z.boolean().optional(),
4076
- providesImage: z.boolean().optional()
4043
+ param: z.string(),
4044
+ query: z.string()
4077
4045
  });
4078
- var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
4079
4046
  var navigationStackBehaviorSchema = z.union([
4080
4047
  z.literal("default"),
4081
4048
  z.literal("remove-previous"),
4082
4049
  z.literal("remove-all"),
4083
4050
  z.literal("replace-current")
4084
4051
  ]);
4052
+ var linkSchema = z.object({
4053
+ url: z.string()
4054
+ });
4085
4055
  var actionTypeSchema = z.union([
4086
4056
  z.literal("primary"),
4087
4057
  z.literal("secondary"),
@@ -4089,9 +4059,11 @@ var actionTypeSchema = z.union([
4089
4059
  z.literal("positive"),
4090
4060
  z.literal("negative")
4091
4061
  ]);
4092
- var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
4093
- var linkSchema = z.object({
4094
- url: z.string()
4062
+ var iconNamedSchema = z.object({
4063
+ name: z.string()
4064
+ });
4065
+ var iconTextSchema = z.object({
4066
+ text: z.string()
4095
4067
  });
4096
4068
  var actionSchema = z.object({
4097
4069
  title: z.string().optional(),
@@ -4108,25 +4080,26 @@ var actionSchema = z.object({
4108
4080
  timeout: z.number().optional(),
4109
4081
  skipValidation: z.boolean().optional()
4110
4082
  });
4111
- var listLayoutItemSchema = z.object({
4112
- title: z.string(),
4113
- description: z.string().optional(),
4114
- icon: iconSchema,
4115
- status: listLayoutStatusSchema.optional()
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()
4116
4089
  });
4117
- var decisionLayoutOptionSchema = z.object({
4118
- action: actionSchema,
4090
+ var searchLayoutSchema = z.object({
4091
+ type: z.literal("search"),
4119
4092
  title: z.string(),
4120
- description: z.string().optional(),
4121
- disabled: z.boolean().optional(),
4122
- icon: iconSchema.optional(),
4123
- image: imageLayoutSchema.optional()
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()
4124
4099
  });
4125
- var statusListLayoutItemSchema = z.object({
4100
+ var reviewLayoutCallToActionSchema = z.object({
4126
4101
  title: z.string(),
4127
- description: z.string().optional(),
4128
- icon: iconSchema,
4129
- status: statusListLayoutStatusSchema.optional()
4102
+ action: actionSchema
4130
4103
  });
4131
4104
  var instructionsLayoutSchema = z.object({
4132
4105
  type: z.literal("instructions"),
@@ -4135,26 +4108,39 @@ var instructionsLayoutSchema = z.object({
4135
4108
  control: z.string().optional(),
4136
4109
  margin: sizeSchema.optional()
4137
4110
  });
4138
- var buttonLayoutSchema = z.object({
4139
- type: z.literal("button"),
4140
- size: sizeSchema.optional(),
4141
- title: z.string().optional(),
4142
- action: actionSchema,
4143
- context: contextSchema.optional(),
4144
- disabled: z.boolean().optional(),
4145
- pinOrder: z.number().optional(),
4146
- control: z.string().optional(),
4147
- margin: sizeSchema.optional()
4148
- });
4111
+ var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
4149
4112
  var reviewLayoutFieldSchema = z.object({
4150
4113
  label: z.string(),
4151
4114
  value: z.string(),
4152
4115
  help: helpSchema.optional()
4153
4116
  });
4117
+ var statusListLayoutItemSchema = z.object({
4118
+ title: z.string(),
4119
+ description: z.string().optional(),
4120
+ icon: iconSchema,
4121
+ status: statusListLayoutStatusSchema.optional()
4122
+ });
4154
4123
  var behaviorSchema = z.object({
4155
4124
  action: actionSchema.optional(),
4156
4125
  link: linkSchema.optional()
4157
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
+ });
4158
4144
  var searchResultSearchSchema = z.object({
4159
4145
  type: z.literal("search"),
4160
4146
  title: z.string(),
@@ -4171,20 +4157,6 @@ var searchResultActionSchema = z.object({
4171
4157
  image: imageLayoutSchema.optional(),
4172
4158
  value: actionSchema
4173
4159
  });
4174
- var actionResponseBodySchema = z.object({
4175
- action: actionSchema
4176
- });
4177
- var errorResponseBodySchema = z.object({
4178
- refreshFormUrl: z.string().optional(),
4179
- analytics: z.record(z.string()).optional(),
4180
- error: z.string().optional(),
4181
- validation: jsonElementSchema.optional(),
4182
- refreshUrl: z.string().optional()
4183
- });
4184
- var linkHandlerSchema = z.object({
4185
- regexPattern: z.string(),
4186
- action: actionSchema
4187
- });
4188
4160
  var pollingOnErrorSchema = z.object({
4189
4161
  action: actionSchema
4190
4162
  });
@@ -4192,26 +4164,33 @@ var navigationBackBehaviourSchema = z.object({
4192
4164
  title: z.string().optional(),
4193
4165
  action: actionSchema
4194
4166
  });
4195
- var reviewLayoutCallToActionSchema = z.object({
4196
- title: z.string(),
4197
- action: actionSchema
4198
- });
4199
- var alertLayoutCallToActionSchema = z.object({
4200
- title: z.string(),
4201
- accessibilityDescription: z.string().optional(),
4202
- behavior: behaviorSchema
4203
- });
4204
- var listLayoutSchema = z.object({
4205
- type: z.literal("list"),
4206
- 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(),
4207
4171
  title: z.string().optional(),
4172
+ action: actionSchema,
4173
+ context: contextSchema.optional(),
4174
+ disabled: z.boolean().optional(),
4175
+ pinOrder: z.number().optional(),
4208
4176
  control: z.string().optional(),
4209
4177
  margin: sizeSchema.optional()
4210
4178
  });
4211
- var decisionLayoutSchema = z.object({
4212
- type: z.literal("decision"),
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),
4213
4192
  title: z.string().optional(),
4214
- options: z.array(decisionLayoutOptionSchema),
4193
+ callToAction: reviewLayoutCallToActionSchema.optional(),
4215
4194
  control: z.string().optional(),
4216
4195
  margin: sizeSchema.optional()
4217
4196
  });
@@ -4222,17 +4201,17 @@ var statusListLayoutSchema = z.object({
4222
4201
  control: z.string().optional(),
4223
4202
  margin: sizeSchema.optional()
4224
4203
  });
4225
- var reviewLayoutSchema = z.object({
4226
- type: z.literal("review"),
4227
- orientation: z.string().optional(),
4228
- action: actionSchema.optional(),
4229
- fields: z.array(reviewLayoutFieldSchema),
4230
- title: z.string().optional(),
4231
- callToAction: reviewLayoutCallToActionSchema.optional(),
4232
- control: z.string().optional(),
4233
- margin: sizeSchema.optional()
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
4234
4214
  });
4235
- var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
4236
4215
  var pollingSchema = z.object({
4237
4216
  url: z.string(),
4238
4217
  interval: z.number(),
@@ -4244,6 +4223,14 @@ var navigationSchema = z.object({
4244
4223
  back: navigationBackBehaviourSchema.optional(),
4245
4224
  stackBehavior: navigationStackBehaviorSchema.optional()
4246
4225
  });
4226
+ var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
4227
+ var decisionLayoutSchema = z.object({
4228
+ type: z.literal("decision"),
4229
+ title: z.string().optional(),
4230
+ options: z.array(decisionLayoutOptionSchema),
4231
+ control: z.string().optional(),
4232
+ margin: sizeSchema.optional()
4233
+ });
4247
4234
  var alertLayoutSchema = z.object({
4248
4235
  type: z.literal("alert"),
4249
4236
  markdown: z.string(),
@@ -4252,8 +4239,12 @@ var alertLayoutSchema = z.object({
4252
4239
  margin: sizeSchema.optional(),
4253
4240
  callToAction: alertLayoutCallToActionSchema.optional()
4254
4241
  });
4255
- var searchResponseBodySchema = z.object({
4256
- results: z.array(searchResultSchema)
4242
+ var listLayoutSchema = z.object({
4243
+ type: z.literal("list"),
4244
+ items: z.array(listLayoutItemSchema),
4245
+ title: z.string().optional(),
4246
+ control: z.string().optional(),
4247
+ margin: sizeSchema.optional()
4257
4248
  });
4258
4249
  var blobSchemaSchema = z.object({
4259
4250
  type: z.literal("blob"),
@@ -4293,6 +4284,19 @@ var constSchemaSchema = z.object({
4293
4284
  analyticsId: z.string().optional(),
4294
4285
  disabled: z.boolean().optional()
4295
4286
  });
4287
+ var searchResponseBodySchema = z.object({
4288
+ results: z.array(searchResultSchema)
4289
+ });
4290
+ var columnsLayoutSchema = z.lazy(
4291
+ () => z.object({
4292
+ type: z.literal("columns"),
4293
+ left: z.array(layoutSchema),
4294
+ right: z.array(layoutSchema),
4295
+ bias: columnsLayoutBiasSchema.optional(),
4296
+ control: z.string().optional(),
4297
+ margin: sizeSchema.optional()
4298
+ })
4299
+ );
4296
4300
  var layoutSchema = z.lazy(
4297
4301
  () => z.union([
4298
4302
  alertLayoutSchema,
@@ -4316,26 +4320,6 @@ var layoutSchema = z.lazy(
4316
4320
  statusListLayoutSchema
4317
4321
  ])
4318
4322
  );
4319
- var boxLayoutSchema = z.lazy(
4320
- () => z.object({
4321
- type: z.literal("box"),
4322
- components: z.array(layoutSchema),
4323
- width: sizeSchema.optional(),
4324
- border: z.boolean().optional(),
4325
- control: z.string().optional(),
4326
- margin: sizeSchema.optional()
4327
- })
4328
- );
4329
- var columnsLayoutSchema = z.lazy(
4330
- () => z.object({
4331
- type: z.literal("columns"),
4332
- left: z.array(layoutSchema),
4333
- right: z.array(layoutSchema),
4334
- bias: columnsLayoutBiasSchema.optional(),
4335
- control: z.string().optional(),
4336
- margin: sizeSchema.optional()
4337
- })
4338
- );
4339
4323
  var modalLayoutSchema = z.lazy(
4340
4324
  () => z.object({
4341
4325
  type: z.literal("modal"),
@@ -4350,25 +4334,14 @@ var modalLayoutContentSchema = z.lazy(
4350
4334
  components: z.array(layoutSchema)
4351
4335
  })
4352
4336
  );
4353
- var stepSchema = z.lazy(
4337
+ var boxLayoutSchema = z.lazy(
4354
4338
  () => z.object({
4355
- key: z.string().optional(),
4356
- type: z.string().optional(),
4357
- actions: z.array(actionSchema).optional(),
4358
- refreshFormUrl: z.string().optional(),
4359
- id: z.string(),
4360
- title: z.string(),
4361
- description: z.string().optional(),
4362
- schemas: z.array(schemaSchema),
4363
- layout: z.array(layoutSchema),
4364
- model: jsonElementSchema.optional(),
4365
- external: externalSchema.optional(),
4366
- polling: pollingSchema.optional(),
4367
- linkHandlers: z.array(linkHandlerSchema).optional(),
4368
- analytics: z.record(z.string()).optional(),
4369
- errors: stepErrorSchema.optional(),
4370
- navigation: navigationSchema.optional(),
4371
- refreshUrl: z.string().optional()
4339
+ type: z.literal("box"),
4340
+ components: z.array(layoutSchema),
4341
+ width: sizeSchema.optional(),
4342
+ border: z.boolean().optional(),
4343
+ control: z.string().optional(),
4344
+ margin: sizeSchema.optional()
4372
4345
  })
4373
4346
  );
4374
4347
  var schemaSchema = z.lazy(
@@ -4594,17 +4567,21 @@ var stringSchemaSchema = z.lazy(
4594
4567
  help: helpSchema.optional()
4595
4568
  })
4596
4569
  );
4597
- var arraySchemaListSchema = z.lazy(
4570
+ var persistAsyncSchema = z.lazy(
4571
+ () => z.object({
4572
+ param: z.string(),
4573
+ idProperty: z.string(),
4574
+ schema: schemaSchema,
4575
+ url: z.string(),
4576
+ method: httpMethodSchema
4577
+ })
4578
+ );
4579
+ var arraySchemaTupleSchema = z.lazy(
4598
4580
  () => z.object({
4599
4581
  type: z.literal("array"),
4600
4582
  promoted: z.boolean().optional(),
4601
4583
  $id: z.string().optional(),
4602
- items: schemaSchema,
4603
- addItemTitle: z.string(),
4604
- editItemTitle: z.string(),
4605
- minItems: z.number().optional(),
4606
- maxItems: z.number().optional(),
4607
- placeholder: z.string().optional(),
4584
+ items: z.array(schemaSchema),
4608
4585
  title: z.string().optional(),
4609
4586
  description: z.string().optional(),
4610
4587
  control: z.string().optional(),
@@ -4612,30 +4589,24 @@ var arraySchemaListSchema = z.lazy(
4612
4589
  icon: iconSchema.optional(),
4613
4590
  image: imageSchema.optional(),
4614
4591
  keywords: z.array(z.string()).optional(),
4615
- summary: summarySummariserSchema.optional(),
4592
+ summary: summaryProviderSchema.optional(),
4616
4593
  analyticsId: z.string().optional(),
4617
4594
  persistAsync: persistAsyncSchema.optional(),
4618
4595
  validationAsync: validateAsyncSchema.optional(),
4619
- alert: alertLayoutSchema.optional(),
4620
- validationMessages: z.record(z.string()).optional(),
4621
- disabled: z.boolean().optional()
4622
- })
4623
- );
4624
- var persistAsyncSchema = z.lazy(
4625
- () => z.object({
4626
- param: z.string(),
4627
- idProperty: z.string(),
4628
- schema: schemaSchema,
4629
- url: z.string(),
4630
- method: httpMethodSchema
4596
+ alert: alertLayoutSchema.optional()
4631
4597
  })
4632
4598
  );
4633
- var arraySchemaTupleSchema = z.lazy(
4599
+ var arraySchemaListSchema = z.lazy(
4634
4600
  () => z.object({
4635
4601
  type: z.literal("array"),
4636
4602
  promoted: z.boolean().optional(),
4637
4603
  $id: z.string().optional(),
4638
- items: z.array(schemaSchema),
4604
+ items: schemaSchema,
4605
+ addItemTitle: z.string(),
4606
+ editItemTitle: z.string(),
4607
+ minItems: z.number().optional(),
4608
+ maxItems: z.number().optional(),
4609
+ placeholder: z.string().optional(),
4639
4610
  title: z.string().optional(),
4640
4611
  description: z.string().optional(),
4641
4612
  control: z.string().optional(),
@@ -4643,11 +4614,34 @@ var arraySchemaTupleSchema = z.lazy(
4643
4614
  icon: iconSchema.optional(),
4644
4615
  image: imageSchema.optional(),
4645
4616
  keywords: z.array(z.string()).optional(),
4646
- summary: summaryProviderSchema.optional(),
4617
+ summary: summarySummariserSchema.optional(),
4647
4618
  analyticsId: z.string().optional(),
4648
4619
  persistAsync: persistAsyncSchema.optional(),
4649
4620
  validationAsync: validateAsyncSchema.optional(),
4650
- alert: alertLayoutSchema.optional()
4621
+ alert: alertLayoutSchema.optional(),
4622
+ validationMessages: z.record(z.string()).optional(),
4623
+ disabled: z.boolean().optional()
4624
+ })
4625
+ );
4626
+ var stepSchema = z.lazy(
4627
+ () => z.object({
4628
+ key: z.string().optional(),
4629
+ type: z.string().optional(),
4630
+ actions: z.array(actionSchema).optional(),
4631
+ refreshFormUrl: z.string().optional(),
4632
+ id: z.string(),
4633
+ title: z.string(),
4634
+ schemas: z.array(schemaSchema),
4635
+ layout: z.array(layoutSchema),
4636
+ description: z.string().optional(),
4637
+ model: jsonElementSchema.optional(),
4638
+ external: externalSchema.optional(),
4639
+ polling: pollingSchema.optional(),
4640
+ linkHandlers: z.array(linkHandlerSchema).optional(),
4641
+ analytics: z.record(z.string()).optional(),
4642
+ errors: stepErrorSchema.optional(),
4643
+ navigation: navigationSchema.optional(),
4644
+ refreshUrl: z.string().optional()
4651
4645
  })
4652
4646
  );
4653
4647