@contentful/experiences-validators 3.8.10 → 3.8.11-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,410 +1,187 @@
1
1
  import { z } from 'zod';
2
2
 
3
- declare const DefinitionPropertyTypeSchema: z.ZodEnum<["Text", "RichText", "Number", "Date", "Boolean", "Location", "Media", "Object", "Hyperlink", "Array", "Link"]>;
4
- declare const PrimitiveValueSchema: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>;
3
+ declare const DefinitionPropertyTypeSchema: z.ZodEnum<{
4
+ Link: "Link";
5
+ Text: "Text";
6
+ RichText: "RichText";
7
+ Number: "Number";
8
+ Date: "Date";
9
+ Boolean: "Boolean";
10
+ Location: "Location";
11
+ Media: "Media";
12
+ Object: "Object";
13
+ Hyperlink: "Hyperlink";
14
+ Array: "Array";
15
+ }>;
16
+ declare const PrimitiveValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>;
5
17
  declare const UsedComponentsSchema: z.ZodArray<z.ZodObject<{
6
18
  sys: z.ZodObject<{
7
19
  type: z.ZodLiteral<"Link">;
8
20
  id: z.ZodString;
9
21
  linkType: z.ZodLiteral<"Entry">;
10
- }, "strip", z.ZodTypeAny, {
11
- type: "Link";
12
- id: string;
13
- linkType: "Entry";
14
- }, {
15
- type: "Link";
16
- id: string;
17
- linkType: "Entry";
18
- }>;
19
- }, "strip", z.ZodTypeAny, {
20
- sys: {
21
- type: "Link";
22
- id: string;
23
- linkType: "Entry";
24
- };
25
- }, {
26
- sys: {
27
- type: "Link";
28
- id: string;
29
- linkType: "Entry";
30
- };
31
- }>, "many">;
22
+ }, z.core.$strip>;
23
+ }, z.core.$strip>>;
32
24
  declare const DataSourceSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
33
25
  sys: z.ZodObject<{
34
26
  type: z.ZodLiteral<"Link">;
35
27
  id: z.ZodString;
36
- linkType: z.ZodEnum<["Entry", "Asset"]>;
37
- }, "strip", z.ZodTypeAny, {
38
- type: "Link";
39
- id: string;
40
- linkType: "Entry" | "Asset";
41
- }, {
42
- type: "Link";
43
- id: string;
44
- linkType: "Entry" | "Asset";
45
- }>;
46
- }, "strip", z.ZodTypeAny, {
47
- sys: {
48
- type: "Link";
49
- id: string;
50
- linkType: "Entry" | "Asset";
51
- };
52
- }, {
53
- sys: {
54
- type: "Link";
55
- id: string;
56
- linkType: "Entry" | "Asset";
57
- };
58
- }>>;
28
+ linkType: z.ZodEnum<{
29
+ Entry: "Entry";
30
+ Asset: "Asset";
31
+ }>;
32
+ }, z.core.$strip>;
33
+ }, z.core.$strip>>;
59
34
  declare const UnboundValuesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
60
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>;
61
- }, "strip", z.ZodTypeAny, {
62
- value?: string | number | boolean | Record<any, any> | undefined;
63
- }, {
64
- value?: string | number | boolean | Record<any, any> | undefined;
35
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>;
36
+ }, z.core.$strip>>;
37
+ declare const ValuesByBreakpointSchema: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
38
+ declare const BindingSourceTypeEnumSchema: z.ZodArray<z.ZodEnum<{
39
+ entry: "entry";
40
+ asset: "asset";
41
+ manual: "manual";
42
+ experience: "experience";
65
43
  }>>;
66
- declare const ValuesByBreakpointSchema: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
67
- declare const BindingSourceTypeEnumSchema: z.ZodArray<z.ZodEnum<["entry", "asset", "manual", "experience"]>, "atleastone">;
68
44
  declare const DesignValueSchema: z.ZodObject<{
69
45
  type: z.ZodLiteral<"DesignValue">;
70
- valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
71
- }, "strict", z.ZodTypeAny, {
72
- type: "DesignValue";
73
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
74
- }, {
75
- type: "DesignValue";
76
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
77
- }>;
46
+ valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
47
+ }, z.core.$strict>;
78
48
  declare const BoundValueSchema: z.ZodObject<{
79
49
  type: z.ZodLiteral<"BoundValue">;
80
50
  path: z.ZodString;
81
- }, "strict", z.ZodTypeAny, {
82
- path: string;
83
- type: "BoundValue";
84
- }, {
85
- path: string;
86
- type: "BoundValue";
87
- }>;
51
+ }, z.core.$strict>;
88
52
  declare const UnboundValueSchema: z.ZodObject<{
89
53
  type: z.ZodLiteral<"UnboundValue">;
90
54
  key: z.ZodString;
91
- }, "strict", z.ZodTypeAny, {
92
- type: "UnboundValue";
93
- key: string;
94
- }, {
95
- type: "UnboundValue";
96
- key: string;
97
- }>;
55
+ }, z.core.$strict>;
98
56
  declare const ComponentValueSchema: z.ZodObject<{
99
57
  type: z.ZodLiteral<"ComponentValue">;
100
58
  key: z.ZodString;
101
- }, "strict", z.ZodTypeAny, {
102
- type: "ComponentValue";
103
- key: string;
104
- }, {
105
- type: "ComponentValue";
106
- key: string;
107
- }>;
59
+ }, z.core.$strict>;
108
60
  declare const NoValueSchema: z.ZodObject<{
109
61
  type: z.ZodLiteral<"NoValue">;
110
- }, "strict", z.ZodTypeAny, {
111
- type: "NoValue";
112
- }, {
113
- type: "NoValue";
114
- }>;
115
- declare const ComponentPropertyValueSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
62
+ }, z.core.$strict>;
63
+ declare const ComponentPropertyValueSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
116
64
  type: z.ZodLiteral<"DesignValue">;
117
- valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
118
- }, "strict", z.ZodTypeAny, {
119
- type: "DesignValue";
120
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
121
- }, {
122
- type: "DesignValue";
123
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
124
- }>, z.ZodObject<{
65
+ valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
66
+ }, z.core.$strict>, z.ZodObject<{
125
67
  type: z.ZodLiteral<"BoundValue">;
126
68
  path: z.ZodString;
127
- }, "strict", z.ZodTypeAny, {
128
- path: string;
129
- type: "BoundValue";
130
- }, {
131
- path: string;
132
- type: "BoundValue";
133
- }>, z.ZodObject<{
69
+ }, z.core.$strict>, z.ZodObject<{
134
70
  type: z.ZodLiteral<"UnboundValue">;
135
71
  key: z.ZodString;
136
- }, "strict", z.ZodTypeAny, {
137
- type: "UnboundValue";
138
- key: string;
139
- }, {
140
- type: "UnboundValue";
141
- key: string;
142
- }>, z.ZodObject<{
72
+ }, z.core.$strict>, z.ZodObject<{
143
73
  type: z.ZodLiteral<"HyperlinkValue">;
144
74
  linkTargetKey: z.ZodString;
145
- /** Allows to override parts of the URL, e.g. the locale */
146
- overrides: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
147
- }, "strict", z.ZodTypeAny, {
148
- type: "HyperlinkValue";
149
- linkTargetKey: string;
150
- overrides?: {} | undefined;
151
- }, {
152
- type: "HyperlinkValue";
153
- linkTargetKey: string;
154
- overrides?: {} | undefined;
155
- }>, z.ZodObject<{
75
+ overrides: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
76
+ }, z.core.$strict>, z.ZodObject<{
156
77
  type: z.ZodLiteral<"ComponentValue">;
157
78
  key: z.ZodString;
158
- }, "strict", z.ZodTypeAny, {
159
- type: "ComponentValue";
160
- key: string;
161
- }, {
162
- type: "ComponentValue";
163
- key: string;
164
- }>, z.ZodObject<{
79
+ }, z.core.$strict>, z.ZodObject<{
165
80
  type: z.ZodLiteral<"NoValue">;
166
- }, "strict", z.ZodTypeAny, {
167
- type: "NoValue";
168
- }, {
169
- type: "NoValue";
170
- }>]>;
81
+ }, z.core.$strict>], "type">;
171
82
  type ComponentPropertyValue = z.infer<typeof ComponentPropertyValueSchema>;
172
83
  declare const ParameterSchema: z.ZodObject<{
173
84
  type: z.ZodLiteral<"BoundValue">;
174
85
  path: z.ZodString;
175
- }, "strip", z.ZodTypeAny, {
176
- path: string;
177
- type: "BoundValue";
178
- }, {
179
- path: string;
180
- type: "BoundValue";
181
- }>;
86
+ }, z.core.$strip>;
182
87
  type BreakpointQuery = '*' | `>${number}px` | `<${number}px`;
183
88
  declare const BreakpointSchema: z.ZodObject<{
184
89
  id: z.ZodString;
185
- query: z.ZodEffects<z.ZodString, BreakpointQuery, string>;
90
+ query: z.ZodString & z.ZodType<BreakpointQuery, string, z.core.$ZodTypeInternals<BreakpointQuery, string>>;
186
91
  previewSize: z.ZodOptional<z.ZodString>;
187
92
  displayName: z.ZodString;
188
- displayIcon: z.ZodOptional<z.ZodEnum<["desktop", "tablet", "mobile"]>>;
189
- }, "strict", z.ZodTypeAny, {
190
- id: string;
191
- query: BreakpointQuery;
192
- displayName: string;
193
- previewSize?: string | undefined;
194
- displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
195
- }, {
196
- id: string;
197
- query: string;
198
- displayName: string;
199
- previewSize?: string | undefined;
200
- displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
201
- }>;
93
+ displayIcon: z.ZodOptional<z.ZodEnum<{
94
+ desktop: "desktop";
95
+ tablet: "tablet";
96
+ mobile: "mobile";
97
+ }>>;
98
+ }, z.core.$strict>;
202
99
  declare const BaseComponentTreeNodeSchema: z.ZodObject<{
203
100
  id: z.ZodOptional<z.ZodString>;
204
101
  definitionId: z.ZodString;
205
102
  prebindingId: z.ZodOptional<z.ZodString>;
206
103
  displayName: z.ZodOptional<z.ZodString>;
207
104
  slotId: z.ZodOptional<z.ZodString>;
208
- variables: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
105
+ variables: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
209
106
  type: z.ZodLiteral<"DesignValue">;
210
- valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
211
- }, "strict", z.ZodTypeAny, {
212
- type: "DesignValue";
213
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
214
- }, {
215
- type: "DesignValue";
216
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
217
- }>, z.ZodObject<{
107
+ valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
108
+ }, z.core.$strict>, z.ZodObject<{
218
109
  type: z.ZodLiteral<"BoundValue">;
219
110
  path: z.ZodString;
220
- }, "strict", z.ZodTypeAny, {
221
- path: string;
222
- type: "BoundValue";
223
- }, {
224
- path: string;
225
- type: "BoundValue";
226
- }>, z.ZodObject<{
111
+ }, z.core.$strict>, z.ZodObject<{
227
112
  type: z.ZodLiteral<"UnboundValue">;
228
113
  key: z.ZodString;
229
- }, "strict", z.ZodTypeAny, {
230
- type: "UnboundValue";
231
- key: string;
232
- }, {
233
- type: "UnboundValue";
234
- key: string;
235
- }>, z.ZodObject<{
114
+ }, z.core.$strict>, z.ZodObject<{
236
115
  type: z.ZodLiteral<"HyperlinkValue">;
237
116
  linkTargetKey: z.ZodString;
238
- /** Allows to override parts of the URL, e.g. the locale */
239
- overrides: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
240
- }, "strict", z.ZodTypeAny, {
241
- type: "HyperlinkValue";
242
- linkTargetKey: string;
243
- overrides?: {} | undefined;
244
- }, {
245
- type: "HyperlinkValue";
246
- linkTargetKey: string;
247
- overrides?: {} | undefined;
248
- }>, z.ZodObject<{
117
+ overrides: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
118
+ }, z.core.$strict>, z.ZodObject<{
249
119
  type: z.ZodLiteral<"ComponentValue">;
250
120
  key: z.ZodString;
251
- }, "strict", z.ZodTypeAny, {
252
- type: "ComponentValue";
253
- key: string;
254
- }, {
255
- type: "ComponentValue";
256
- key: string;
257
- }>, z.ZodObject<{
121
+ }, z.core.$strict>, z.ZodObject<{
258
122
  type: z.ZodLiteral<"NoValue">;
259
- }, "strict", z.ZodTypeAny, {
260
- type: "NoValue";
261
- }, {
262
- type: "NoValue";
263
- }>]>>;
123
+ }, z.core.$strict>], "type">>;
264
124
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
265
125
  type: z.ZodLiteral<"BoundValue">;
266
126
  path: z.ZodString;
267
- }, "strip", z.ZodTypeAny, {
268
- path: string;
269
- type: "BoundValue";
270
- }, {
271
- path: string;
272
- type: "BoundValue";
273
- }>>>;
274
- }, "strip", z.ZodTypeAny, {
275
- definitionId: string;
276
- variables: Record<string, {
277
- type: "DesignValue";
278
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
279
- } | {
280
- path: string;
281
- type: "BoundValue";
282
- } | {
283
- type: "HyperlinkValue";
284
- linkTargetKey: string;
285
- overrides?: {} | undefined;
286
- } | {
287
- type: "UnboundValue";
288
- key: string;
289
- } | {
290
- type: "ComponentValue";
291
- key: string;
292
- } | {
293
- type: "NoValue";
294
- }>;
295
- id?: string | undefined;
296
- displayName?: string | undefined;
297
- prebindingId?: string | undefined;
298
- slotId?: string | undefined;
299
- parameters?: Record<string, {
300
- path: string;
301
- type: "BoundValue";
302
- }> | undefined;
303
- }, {
304
- definitionId: string;
305
- variables: Record<string, {
306
- type: "DesignValue";
307
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
308
- } | {
309
- path: string;
310
- type: "BoundValue";
311
- } | {
312
- type: "HyperlinkValue";
313
- linkTargetKey: string;
314
- overrides?: {} | undefined;
315
- } | {
316
- type: "UnboundValue";
317
- key: string;
318
- } | {
319
- type: "ComponentValue";
320
- key: string;
321
- } | {
322
- type: "NoValue";
323
- }>;
324
- id?: string | undefined;
325
- displayName?: string | undefined;
326
- prebindingId?: string | undefined;
327
- slotId?: string | undefined;
328
- parameters?: Record<string, {
329
- path: string;
330
- type: "BoundValue";
331
- }> | undefined;
332
- }>;
127
+ }, z.core.$strip>>>;
128
+ }, z.core.$strip>;
333
129
  type ComponentTreeNode = z.infer<typeof BaseComponentTreeNodeSchema> & {
334
130
  children: ComponentTreeNode[];
335
131
  };
336
132
  declare const ComponentTreeSchema: z.ZodObject<{
337
- breakpoints: z.ZodEffects<z.ZodArray<z.ZodObject<{
133
+ breakpoints: z.ZodArray<z.ZodObject<{
338
134
  id: z.ZodString;
339
- query: z.ZodEffects<z.ZodString, BreakpointQuery, string>;
135
+ query: z.ZodString & z.ZodType<BreakpointQuery, string, z.core.$ZodTypeInternals<BreakpointQuery, string>>;
340
136
  previewSize: z.ZodOptional<z.ZodString>;
341
137
  displayName: z.ZodString;
342
- displayIcon: z.ZodOptional<z.ZodEnum<["desktop", "tablet", "mobile"]>>;
343
- }, "strict", z.ZodTypeAny, {
344
- id: string;
345
- query: BreakpointQuery;
346
- displayName: string;
347
- previewSize?: string | undefined;
348
- displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
349
- }, {
350
- id: string;
351
- query: string;
352
- displayName: string;
353
- previewSize?: string | undefined;
354
- displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
355
- }>, "many">, {
356
- id: string;
357
- query: BreakpointQuery;
358
- displayName: string;
359
- previewSize?: string | undefined;
360
- displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
361
- }[], {
362
- id: string;
363
- query: string;
364
- displayName: string;
365
- previewSize?: string | undefined;
366
- displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
367
- }[]>;
368
- children: z.ZodArray<z.ZodType<ComponentTreeNode, z.ZodTypeDef, ComponentTreeNode>, "many">;
138
+ displayIcon: z.ZodOptional<z.ZodEnum<{
139
+ desktop: "desktop";
140
+ tablet: "tablet";
141
+ mobile: "mobile";
142
+ }>>;
143
+ }, z.core.$strict>>;
144
+ children: z.ZodArray<z.ZodType<ComponentTreeNode, unknown, z.core.$ZodTypeInternals<ComponentTreeNode, unknown>>>;
369
145
  schemaVersion: z.ZodLiteral<"2023-09-28">;
370
- }, "strict", z.ZodTypeAny, {
371
- children: ComponentTreeNode[];
372
- breakpoints: {
373
- id: string;
374
- query: BreakpointQuery;
375
- displayName: string;
376
- previewSize?: string | undefined;
377
- displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
378
- }[];
379
- schemaVersion: "2023-09-28";
380
- }, {
381
- children: ComponentTreeNode[];
382
- breakpoints: {
383
- id: string;
384
- query: string;
385
- displayName: string;
386
- previewSize?: string | undefined;
387
- displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
388
- }[];
389
- schemaVersion: "2023-09-28";
390
- }>;
146
+ }, z.core.$strict>;
391
147
 
392
148
  declare const ExperienceFieldsCMAShapeSchema: z.ZodObject<{
393
- componentTree: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
394
- dataSource: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
395
- unboundValues: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
396
- usedComponents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodTypeAny>>;
397
- }, "strip", z.ZodTypeAny, {
398
- componentTree: Record<string, any>;
399
- dataSource: Record<string, any>;
400
- unboundValues: Record<string, any>;
401
- usedComponents?: Record<string, any> | undefined;
402
- }, {
403
- componentTree: Record<string, any>;
404
- dataSource: Record<string, any>;
405
- unboundValues: Record<string, any>;
406
- usedComponents?: Record<string, any> | undefined;
407
- }>;
149
+ componentTree: z.ZodRecord<z.ZodString, z.ZodObject<{
150
+ breakpoints: z.ZodArray<z.ZodObject<{
151
+ id: z.ZodString;
152
+ query: z.ZodString & z.ZodType<"*" | `>${number}px` | `<${number}px`, string, z.core.$ZodTypeInternals<"*" | `>${number}px` | `<${number}px`, string>>;
153
+ previewSize: z.ZodOptional<z.ZodString>;
154
+ displayName: z.ZodString;
155
+ displayIcon: z.ZodOptional<z.ZodEnum<{
156
+ desktop: "desktop";
157
+ tablet: "tablet";
158
+ mobile: "mobile";
159
+ }>>;
160
+ }, z.core.$strict>>;
161
+ children: z.ZodArray<z.ZodType<ComponentTreeNode, unknown, z.core.$ZodTypeInternals<ComponentTreeNode, unknown>>>;
162
+ schemaVersion: z.ZodLiteral<"2023-09-28">;
163
+ }, z.core.$strict>>;
164
+ dataSource: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
165
+ sys: z.ZodObject<{
166
+ type: z.ZodLiteral<"Link">;
167
+ id: z.ZodString;
168
+ linkType: z.ZodEnum<{
169
+ Entry: "Entry";
170
+ Asset: "Asset";
171
+ }>;
172
+ }, z.core.$strip>;
173
+ }, z.core.$strip>>>;
174
+ unboundValues: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
175
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>;
176
+ }, z.core.$strip>>>;
177
+ usedComponents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
178
+ sys: z.ZodObject<{
179
+ type: z.ZodLiteral<"Link">;
180
+ id: z.ZodString;
181
+ linkType: z.ZodLiteral<"Entry">;
182
+ }, z.core.$strip>;
183
+ }, z.core.$strip>>>>;
184
+ }, z.core.$strip>;
408
185
  type ExperienceFields = z.infer<typeof ExperienceFieldsCMAShapeSchema>;
409
186
  type ExperienceDataSource = z.infer<typeof DataSourceSchema>;
410
187
  type ExperienceUnboundValues = z.infer<typeof UnboundValuesSchema>;
@@ -424,792 +201,302 @@ type Parameter = z.infer<typeof ParameterSchema>;
424
201
  declare const VariableMappingSchema: z.ZodObject<{
425
202
  parameterId: z.ZodString;
426
203
  type: z.ZodLiteral<"ContentTypeMapping">;
427
- pathsByContentType: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
204
+ pathsByContentType: z.ZodRecord<z.ZodString, z.ZodObject<{
428
205
  path: z.ZodString;
429
- }, "strip", z.ZodTypeAny, {
430
- path: string;
431
- }, {
432
- path: string;
433
- }>>, Record<string, {
434
- path: string;
435
- }>, Record<string, {
436
- path: string;
437
- }>>;
438
- }, "strip", z.ZodTypeAny, {
439
- type: "ContentTypeMapping";
440
- parameterId: string;
441
- pathsByContentType: Record<string, {
442
- path: string;
443
- }>;
444
- }, {
445
- type: "ContentTypeMapping";
446
- parameterId: string;
447
- pathsByContentType: Record<string, {
448
- path: string;
449
- }>;
450
- }>;
206
+ }, z.core.$strip>>;
207
+ }, z.core.$strip>;
451
208
  declare const ParameterDefinitionSchema: z.ZodObject<{
452
209
  defaultSource: z.ZodOptional<z.ZodObject<{
453
- type: z.ZodEnum<["Entry"]>;
210
+ type: z.ZodEnum<{
211
+ Entry: "Entry";
212
+ }>;
454
213
  contentTypeId: z.ZodString;
455
214
  link: z.ZodObject<{
456
215
  sys: z.ZodObject<{
457
216
  type: z.ZodLiteral<"Link">;
458
217
  id: z.ZodString;
459
- linkType: z.ZodEnum<["Entry"]>;
460
- }, "strict", z.ZodTypeAny, {
461
- type: "Link";
462
- id: string;
463
- linkType: "Entry";
464
- }, {
465
- type: "Link";
466
- id: string;
467
- linkType: "Entry";
468
- }>;
469
- }, "strict", z.ZodTypeAny, {
470
- sys: {
471
- type: "Link";
472
- id: string;
473
- linkType: "Entry";
474
- };
475
- }, {
476
- sys: {
477
- type: "Link";
478
- id: string;
479
- linkType: "Entry";
480
- };
481
- }>;
482
- }, "strict", z.ZodTypeAny, {
483
- type: "Entry";
484
- contentTypeId: string;
485
- link: {
486
- sys: {
487
- type: "Link";
488
- id: string;
489
- linkType: "Entry";
490
- };
491
- };
492
- }, {
493
- type: "Entry";
494
- contentTypeId: string;
495
- link: {
496
- sys: {
497
- type: "Link";
498
- id: string;
499
- linkType: "Entry";
500
- };
501
- };
502
- }>>;
503
- contentTypes: z.ZodArray<z.ZodString, "many">;
218
+ linkType: z.ZodEnum<{
219
+ Entry: "Entry";
220
+ }>;
221
+ }, z.core.$strict>;
222
+ }, z.core.$strict>;
223
+ }, z.core.$strict>>;
224
+ contentTypes: z.ZodArray<z.ZodString>;
504
225
  passToNodes: z.ZodArray<z.ZodObject<{
505
226
  nodeId: z.ZodString;
506
227
  parameterId: z.ZodString;
507
228
  prebindingId: z.ZodString;
508
- }, "strict", z.ZodTypeAny, {
509
- prebindingId: string;
510
- parameterId: string;
511
- nodeId: string;
512
- }, {
513
- prebindingId: string;
514
- parameterId: string;
515
- nodeId: string;
516
- }>, "many">;
517
- }, "strip", z.ZodTypeAny, {
518
- contentTypes: string[];
519
- passToNodes: {
520
- prebindingId: string;
521
- parameterId: string;
522
- nodeId: string;
523
- }[];
524
- defaultSource?: {
525
- type: "Entry";
526
- contentTypeId: string;
527
- link: {
528
- sys: {
529
- type: "Link";
530
- id: string;
531
- linkType: "Entry";
532
- };
533
- };
534
- } | undefined;
535
- }, {
536
- contentTypes: string[];
537
- passToNodes: {
538
- prebindingId: string;
539
- parameterId: string;
540
- nodeId: string;
541
- }[];
542
- defaultSource?: {
543
- type: "Entry";
544
- contentTypeId: string;
545
- link: {
546
- sys: {
547
- type: "Link";
548
- id: string;
549
- linkType: "Entry";
550
- };
551
- };
552
- } | undefined;
553
- }>;
554
- declare const ComponentSettingsSchema: z.ZodEffects<z.ZodObject<{
229
+ }, z.core.$strict>>;
230
+ }, z.core.$strip>;
231
+ declare const ComponentSettingsSchema: z.ZodObject<{
555
232
  variableDefinitions: z.ZodRecord<z.ZodString, z.ZodObject<{
556
233
  displayName: z.ZodOptional<z.ZodString>;
557
- type: z.ZodEnum<["Text", "RichText", "Number", "Date", "Boolean", "Location", "Media", "Object", "Hyperlink", "Array", "Link"]>;
234
+ type: z.ZodEnum<{
235
+ Link: "Link";
236
+ Text: "Text";
237
+ RichText: "RichText";
238
+ Number: "Number";
239
+ Date: "Date";
240
+ Boolean: "Boolean";
241
+ Location: "Location";
242
+ Media: "Media";
243
+ Object: "Object";
244
+ Hyperlink: "Hyperlink";
245
+ Array: "Array";
246
+ }>;
558
247
  description: z.ZodOptional<z.ZodString>;
559
248
  group: z.ZodOptional<z.ZodString>;
560
- defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
249
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>, z.ZodDiscriminatedUnion<[z.ZodObject<{
561
250
  type: z.ZodLiteral<"DesignValue">;
562
- valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
563
- }, "strict", z.ZodTypeAny, {
564
- type: "DesignValue";
565
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
566
- }, {
567
- type: "DesignValue";
568
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
569
- }>, z.ZodObject<{
251
+ valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
252
+ }, z.core.$strict>, z.ZodObject<{
570
253
  type: z.ZodLiteral<"BoundValue">;
571
254
  path: z.ZodString;
572
- }, "strict", z.ZodTypeAny, {
573
- path: string;
574
- type: "BoundValue";
575
- }, {
576
- path: string;
577
- type: "BoundValue";
578
- }>, z.ZodObject<{
255
+ }, z.core.$strict>, z.ZodObject<{
579
256
  type: z.ZodLiteral<"UnboundValue">;
580
257
  key: z.ZodString;
581
- }, "strict", z.ZodTypeAny, {
582
- type: "UnboundValue";
583
- key: string;
584
- }, {
585
- type: "UnboundValue";
586
- key: string;
587
- }>, z.ZodObject<{
258
+ }, z.core.$strict>, z.ZodObject<{
588
259
  type: z.ZodLiteral<"HyperlinkValue">;
589
260
  linkTargetKey: z.ZodString;
590
- overrides: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
591
- }, "strict", z.ZodTypeAny, {
592
- type: "HyperlinkValue";
593
- linkTargetKey: string;
594
- overrides?: {} | undefined;
595
- }, {
596
- type: "HyperlinkValue";
597
- linkTargetKey: string;
598
- overrides?: {} | undefined;
599
- }>, z.ZodObject<{
261
+ overrides: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
262
+ }, z.core.$strict>, z.ZodObject<{
600
263
  type: z.ZodLiteral<"ComponentValue">;
601
264
  key: z.ZodString;
602
- }, "strict", z.ZodTypeAny, {
603
- type: "ComponentValue";
604
- key: string;
605
- }, {
606
- type: "ComponentValue";
607
- key: string;
608
- }>, z.ZodObject<{
265
+ }, z.core.$strict>, z.ZodObject<{
609
266
  type: z.ZodLiteral<"NoValue">;
610
- }, "strict", z.ZodTypeAny, {
611
- type: "NoValue";
612
- }, {
613
- type: "NoValue";
614
- }>]>]>>;
267
+ }, z.core.$strict>], "type">]>>;
615
268
  validations: z.ZodOptional<z.ZodObject<{
616
- bindingSourceType: z.ZodOptional<z.ZodArray<z.ZodEnum<["entry", "asset", "manual", "experience"]>, "atleastone">>;
269
+ bindingSourceType: z.ZodOptional<z.ZodArray<z.ZodEnum<{
270
+ entry: "entry";
271
+ asset: "asset";
272
+ manual: "manual";
273
+ experience: "experience";
274
+ }>>>;
617
275
  required: z.ZodOptional<z.ZodBoolean>;
618
276
  format: z.ZodOptional<z.ZodLiteral<"URL">>;
619
277
  in: z.ZodOptional<z.ZodArray<z.ZodObject<{
620
- value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
278
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
621
279
  displayName: z.ZodOptional<z.ZodString>;
622
- }, "strip", z.ZodTypeAny, {
623
- value: string | number;
624
- displayName?: string | undefined;
625
- }, {
626
- value: string | number;
627
- displayName?: string | undefined;
628
- }>, "many">>;
629
- }, "strip", z.ZodTypeAny, {
630
- required?: boolean | undefined;
631
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
632
- format?: "URL" | undefined;
633
- in?: {
634
- value: string | number;
635
- displayName?: string | undefined;
636
- }[] | undefined;
637
- }, {
638
- required?: boolean | undefined;
639
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
640
- format?: "URL" | undefined;
641
- in?: {
642
- value: string | number;
643
- displayName?: string | undefined;
644
- }[] | undefined;
645
- }>>;
646
- }, "strip", z.ZodTypeAny, {
647
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
648
- displayName?: string | undefined;
649
- description?: string | undefined;
650
- group?: string | undefined;
651
- defaultValue?: string | number | boolean | Record<any, any> | {
652
- type: "DesignValue";
653
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
654
- } | {
655
- path: string;
656
- type: "BoundValue";
657
- } | {
658
- type: "HyperlinkValue";
659
- linkTargetKey: string;
660
- overrides?: {} | undefined;
661
- } | {
662
- type: "UnboundValue";
663
- key: string;
664
- } | {
665
- type: "ComponentValue";
666
- key: string;
667
- } | {
668
- type: "NoValue";
669
- } | undefined;
670
- validations?: {
671
- required?: boolean | undefined;
672
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
673
- format?: "URL" | undefined;
674
- in?: {
675
- value: string | number;
676
- displayName?: string | undefined;
677
- }[] | undefined;
678
- } | undefined;
679
- }, {
680
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
681
- displayName?: string | undefined;
682
- description?: string | undefined;
683
- group?: string | undefined;
684
- defaultValue?: string | number | boolean | Record<any, any> | {
685
- type: "DesignValue";
686
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
687
- } | {
688
- path: string;
689
- type: "BoundValue";
690
- } | {
691
- type: "HyperlinkValue";
692
- linkTargetKey: string;
693
- overrides?: {} | undefined;
694
- } | {
695
- type: "UnboundValue";
696
- key: string;
697
- } | {
698
- type: "ComponentValue";
699
- key: string;
700
- } | {
701
- type: "NoValue";
702
- } | undefined;
703
- validations?: {
704
- required?: boolean | undefined;
705
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
706
- format?: "URL" | undefined;
707
- in?: {
708
- value: string | number;
709
- displayName?: string | undefined;
710
- }[] | undefined;
711
- } | undefined;
280
+ }, z.core.$strip>>>;
281
+ }, z.core.$strip>>;
282
+ }, z.core.$strip>>;
283
+ thumbnailId: z.ZodOptional<z.ZodEnum<{
284
+ columns: "columns";
285
+ columnsPlusRight: "columnsPlusRight";
286
+ imagesSquare: "imagesSquare";
287
+ subtitles: "subtitles";
288
+ rowsPlusBottom: "rowsPlusBottom";
289
+ userRectangle: "userRectangle";
290
+ textbox: "textbox";
291
+ monitorPlay: "monitorPlay";
292
+ article: "article";
293
+ table: "table";
294
+ star: "star";
295
+ heartStraight: "heartStraight";
296
+ frameCorners: "frameCorners";
297
+ rows: "rows";
298
+ dotsThreeOutline: "dotsThreeOutline";
299
+ listDashes: "listDashes";
300
+ checkerBoard: "checkerBoard";
301
+ gridFour: "gridFour";
302
+ slideshow: "slideshow";
303
+ diamondsFour: "diamondsFour";
304
+ cards: "cards";
305
+ textColumns: "textColumns";
306
+ duplex: "duplex";
712
307
  }>>;
713
- thumbnailId: z.ZodOptional<z.ZodEnum<["columns", "columnsPlusRight", "imagesSquare", "subtitles", "rowsPlusBottom", "userRectangle", "textbox", "monitorPlay", "article", "table", "star", "heartStraight", "frameCorners", "rows", "dotsThreeOutline", "listDashes", "checkerBoard", "gridFour", "slideshow", "diamondsFour", "cards", "textColumns", "duplex"]>>;
714
308
  category: z.ZodOptional<z.ZodString>;
715
309
  prebindingDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
716
310
  id: z.ZodString;
717
311
  parameterDefinitions: z.ZodRecord<z.ZodString, z.ZodObject<{
718
312
  defaultSource: z.ZodOptional<z.ZodObject<{
719
- type: z.ZodEnum<["Entry"]>;
313
+ type: z.ZodEnum<{
314
+ Entry: "Entry";
315
+ }>;
720
316
  contentTypeId: z.ZodString;
721
317
  link: z.ZodObject<{
722
318
  sys: z.ZodObject<{
723
319
  type: z.ZodLiteral<"Link">;
724
320
  id: z.ZodString;
725
- linkType: z.ZodEnum<["Entry"]>;
726
- }, "strict", z.ZodTypeAny, {
727
- type: "Link";
728
- id: string;
729
- linkType: "Entry";
730
- }, {
731
- type: "Link";
732
- id: string;
733
- linkType: "Entry";
734
- }>;
735
- }, "strict", z.ZodTypeAny, {
736
- sys: {
737
- type: "Link";
738
- id: string;
739
- linkType: "Entry";
740
- };
741
- }, {
742
- sys: {
743
- type: "Link";
744
- id: string;
745
- linkType: "Entry";
746
- };
747
- }>;
748
- }, "strict", z.ZodTypeAny, {
749
- type: "Entry";
750
- contentTypeId: string;
751
- link: {
752
- sys: {
753
- type: "Link";
754
- id: string;
755
- linkType: "Entry";
756
- };
757
- };
758
- }, {
759
- type: "Entry";
760
- contentTypeId: string;
761
- link: {
762
- sys: {
763
- type: "Link";
764
- id: string;
765
- linkType: "Entry";
766
- };
767
- };
768
- }>>;
769
- contentTypes: z.ZodArray<z.ZodString, "many">;
321
+ linkType: z.ZodEnum<{
322
+ Entry: "Entry";
323
+ }>;
324
+ }, z.core.$strict>;
325
+ }, z.core.$strict>;
326
+ }, z.core.$strict>>;
327
+ contentTypes: z.ZodArray<z.ZodString>;
770
328
  passToNodes: z.ZodArray<z.ZodObject<{
771
329
  nodeId: z.ZodString;
772
330
  parameterId: z.ZodString;
773
331
  prebindingId: z.ZodString;
774
- }, "strict", z.ZodTypeAny, {
775
- prebindingId: string;
776
- parameterId: string;
777
- nodeId: string;
778
- }, {
779
- prebindingId: string;
780
- parameterId: string;
781
- nodeId: string;
782
- }>, "many">;
783
- }, "strip", z.ZodTypeAny, {
784
- contentTypes: string[];
785
- passToNodes: {
786
- prebindingId: string;
787
- parameterId: string;
788
- nodeId: string;
789
- }[];
790
- defaultSource?: {
791
- type: "Entry";
792
- contentTypeId: string;
793
- link: {
794
- sys: {
795
- type: "Link";
796
- id: string;
797
- linkType: "Entry";
798
- };
799
- };
800
- } | undefined;
801
- }, {
802
- contentTypes: string[];
803
- passToNodes: {
804
- prebindingId: string;
805
- parameterId: string;
806
- nodeId: string;
807
- }[];
808
- defaultSource?: {
809
- type: "Entry";
810
- contentTypeId: string;
811
- link: {
812
- sys: {
813
- type: "Link";
814
- id: string;
815
- linkType: "Entry";
816
- };
817
- };
818
- } | undefined;
819
- }>>;
332
+ }, z.core.$strict>>;
333
+ }, z.core.$strip>>;
820
334
  variableMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
821
335
  parameterId: z.ZodString;
822
336
  type: z.ZodLiteral<"ContentTypeMapping">;
823
- pathsByContentType: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
337
+ pathsByContentType: z.ZodRecord<z.ZodString, z.ZodObject<{
824
338
  path: z.ZodString;
825
- }, "strip", z.ZodTypeAny, {
826
- path: string;
827
- }, {
828
- path: string;
829
- }>>, Record<string, {
830
- path: string;
831
- }>, Record<string, {
832
- path: string;
339
+ }, z.core.$strip>>;
340
+ }, z.core.$strip>>>;
341
+ allowedVariableOverrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
342
+ }, z.core.$strict>>>;
343
+ }, z.core.$strict>;
344
+ declare const PatternFieldsCMAShapeSchema: z.ZodObject<{
345
+ componentTree: z.ZodRecord<z.ZodString, z.ZodObject<{
346
+ breakpoints: z.ZodArray<z.ZodObject<{
347
+ id: z.ZodString;
348
+ query: z.ZodString & z.ZodType<"*" | `>${number}px` | `<${number}px`, string, z.core.$ZodTypeInternals<"*" | `>${number}px` | `<${number}px`, string>>;
349
+ previewSize: z.ZodOptional<z.ZodString>;
350
+ displayName: z.ZodString;
351
+ displayIcon: z.ZodOptional<z.ZodEnum<{
352
+ desktop: "desktop";
353
+ tablet: "tablet";
354
+ mobile: "mobile";
833
355
  }>>;
834
- }, "strip", z.ZodTypeAny, {
835
- type: "ContentTypeMapping";
836
- parameterId: string;
837
- pathsByContentType: Record<string, {
838
- path: string;
356
+ }, z.core.$strict>>;
357
+ children: z.ZodArray<z.ZodType<ComponentTreeNode, unknown, z.core.$ZodTypeInternals<ComponentTreeNode, unknown>>>;
358
+ schemaVersion: z.ZodLiteral<"2023-09-28">;
359
+ }, z.core.$strict>>;
360
+ dataSource: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
361
+ sys: z.ZodObject<{
362
+ type: z.ZodLiteral<"Link">;
363
+ id: z.ZodString;
364
+ linkType: z.ZodEnum<{
365
+ Entry: "Entry";
366
+ Asset: "Asset";
839
367
  }>;
840
- }, {
841
- type: "ContentTypeMapping";
842
- parameterId: string;
843
- pathsByContentType: Record<string, {
844
- path: string;
368
+ }, z.core.$strip>;
369
+ }, z.core.$strip>>>;
370
+ unboundValues: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
371
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>;
372
+ }, z.core.$strip>>>;
373
+ usedComponents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
374
+ sys: z.ZodObject<{
375
+ type: z.ZodLiteral<"Link">;
376
+ id: z.ZodString;
377
+ linkType: z.ZodLiteral<"Entry">;
378
+ }, z.core.$strip>;
379
+ }, z.core.$strip>>>>;
380
+ componentSettings: z.ZodRecord<z.ZodString, z.ZodObject<{
381
+ variableDefinitions: z.ZodRecord<z.ZodString, z.ZodObject<{
382
+ displayName: z.ZodOptional<z.ZodString>;
383
+ type: z.ZodEnum<{
384
+ Link: "Link";
385
+ Text: "Text";
386
+ RichText: "RichText";
387
+ Number: "Number";
388
+ Date: "Date";
389
+ Boolean: "Boolean";
390
+ Location: "Location";
391
+ Media: "Media";
392
+ Object: "Object";
393
+ Hyperlink: "Hyperlink";
394
+ Array: "Array";
845
395
  }>;
846
- }>>>;
847
- allowedVariableOverrides: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
848
- }, "strict", z.ZodTypeAny, {
849
- id: string;
850
- parameterDefinitions: Record<string, {
851
- contentTypes: string[];
852
- passToNodes: {
853
- prebindingId: string;
854
- parameterId: string;
855
- nodeId: string;
856
- }[];
857
- defaultSource?: {
858
- type: "Entry";
859
- contentTypeId: string;
860
- link: {
861
- sys: {
862
- type: "Link";
863
- id: string;
864
- linkType: "Entry";
865
- };
866
- };
867
- } | undefined;
868
- }>;
869
- variableMappings?: Record<string, {
870
- type: "ContentTypeMapping";
871
- parameterId: string;
872
- pathsByContentType: Record<string, {
873
- path: string;
874
- }>;
875
- }> | undefined;
876
- allowedVariableOverrides?: string[] | undefined;
877
- }, {
878
- id: string;
879
- parameterDefinitions: Record<string, {
880
- contentTypes: string[];
881
- passToNodes: {
882
- prebindingId: string;
883
- parameterId: string;
884
- nodeId: string;
885
- }[];
886
- defaultSource?: {
887
- type: "Entry";
888
- contentTypeId: string;
889
- link: {
890
- sys: {
891
- type: "Link";
892
- id: string;
893
- linkType: "Entry";
894
- };
895
- };
896
- } | undefined;
897
- }>;
898
- variableMappings?: Record<string, {
899
- type: "ContentTypeMapping";
900
- parameterId: string;
901
- pathsByContentType: Record<string, {
902
- path: string;
903
- }>;
904
- }> | undefined;
905
- allowedVariableOverrides?: string[] | undefined;
906
- }>, "many">>;
907
- }, "strict", z.ZodTypeAny, {
908
- variableDefinitions: Record<string, {
909
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
910
- displayName?: string | undefined;
911
- description?: string | undefined;
912
- group?: string | undefined;
913
- defaultValue?: string | number | boolean | Record<any, any> | {
914
- type: "DesignValue";
915
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
916
- } | {
917
- path: string;
918
- type: "BoundValue";
919
- } | {
920
- type: "HyperlinkValue";
921
- linkTargetKey: string;
922
- overrides?: {} | undefined;
923
- } | {
924
- type: "UnboundValue";
925
- key: string;
926
- } | {
927
- type: "ComponentValue";
928
- key: string;
929
- } | {
930
- type: "NoValue";
931
- } | undefined;
932
- validations?: {
933
- required?: boolean | undefined;
934
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
935
- format?: "URL" | undefined;
936
- in?: {
937
- value: string | number;
938
- displayName?: string | undefined;
939
- }[] | undefined;
940
- } | undefined;
941
- }>;
942
- thumbnailId?: "columns" | "columnsPlusRight" | "imagesSquare" | "subtitles" | "rowsPlusBottom" | "userRectangle" | "textbox" | "monitorPlay" | "article" | "table" | "star" | "heartStraight" | "frameCorners" | "rows" | "dotsThreeOutline" | "listDashes" | "checkerBoard" | "gridFour" | "slideshow" | "diamondsFour" | "cards" | "textColumns" | "duplex" | undefined;
943
- category?: string | undefined;
944
- prebindingDefinitions?: {
945
- id: string;
946
- parameterDefinitions: Record<string, {
947
- contentTypes: string[];
948
- passToNodes: {
949
- prebindingId: string;
950
- parameterId: string;
951
- nodeId: string;
952
- }[];
953
- defaultSource?: {
954
- type: "Entry";
955
- contentTypeId: string;
956
- link: {
957
- sys: {
958
- type: "Link";
959
- id: string;
960
- linkType: "Entry";
961
- };
962
- };
963
- } | undefined;
964
- }>;
965
- variableMappings?: Record<string, {
966
- type: "ContentTypeMapping";
967
- parameterId: string;
968
- pathsByContentType: Record<string, {
969
- path: string;
970
- }>;
971
- }> | undefined;
972
- allowedVariableOverrides?: string[] | undefined;
973
- }[] | undefined;
974
- }, {
975
- variableDefinitions: Record<string, {
976
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
977
- displayName?: string | undefined;
978
- description?: string | undefined;
979
- group?: string | undefined;
980
- defaultValue?: string | number | boolean | Record<any, any> | {
981
- type: "DesignValue";
982
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
983
- } | {
984
- path: string;
985
- type: "BoundValue";
986
- } | {
987
- type: "HyperlinkValue";
988
- linkTargetKey: string;
989
- overrides?: {} | undefined;
990
- } | {
991
- type: "UnboundValue";
992
- key: string;
993
- } | {
994
- type: "ComponentValue";
995
- key: string;
996
- } | {
997
- type: "NoValue";
998
- } | undefined;
999
- validations?: {
1000
- required?: boolean | undefined;
1001
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
1002
- format?: "URL" | undefined;
1003
- in?: {
1004
- value: string | number;
1005
- displayName?: string | undefined;
1006
- }[] | undefined;
1007
- } | undefined;
1008
- }>;
1009
- thumbnailId?: "columns" | "columnsPlusRight" | "imagesSquare" | "subtitles" | "rowsPlusBottom" | "userRectangle" | "textbox" | "monitorPlay" | "article" | "table" | "star" | "heartStraight" | "frameCorners" | "rows" | "dotsThreeOutline" | "listDashes" | "checkerBoard" | "gridFour" | "slideshow" | "diamondsFour" | "cards" | "textColumns" | "duplex" | undefined;
1010
- category?: string | undefined;
1011
- prebindingDefinitions?: {
1012
- id: string;
1013
- parameterDefinitions: Record<string, {
1014
- contentTypes: string[];
1015
- passToNodes: {
1016
- prebindingId: string;
1017
- parameterId: string;
1018
- nodeId: string;
1019
- }[];
1020
- defaultSource?: {
1021
- type: "Entry";
1022
- contentTypeId: string;
1023
- link: {
1024
- sys: {
1025
- type: "Link";
1026
- id: string;
1027
- linkType: "Entry";
1028
- };
1029
- };
1030
- } | undefined;
1031
- }>;
1032
- variableMappings?: Record<string, {
1033
- type: "ContentTypeMapping";
1034
- parameterId: string;
1035
- pathsByContentType: Record<string, {
1036
- path: string;
1037
- }>;
1038
- }> | undefined;
1039
- allowedVariableOverrides?: string[] | undefined;
1040
- }[] | undefined;
1041
- }>, {
1042
- variableDefinitions: Record<string, {
1043
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
1044
- displayName?: string | undefined;
1045
- description?: string | undefined;
1046
- group?: string | undefined;
1047
- defaultValue?: string | number | boolean | Record<any, any> | {
1048
- type: "DesignValue";
1049
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
1050
- } | {
1051
- path: string;
1052
- type: "BoundValue";
1053
- } | {
1054
- type: "HyperlinkValue";
1055
- linkTargetKey: string;
1056
- overrides?: {} | undefined;
1057
- } | {
1058
- type: "UnboundValue";
1059
- key: string;
1060
- } | {
1061
- type: "ComponentValue";
1062
- key: string;
1063
- } | {
1064
- type: "NoValue";
1065
- } | undefined;
1066
- validations?: {
1067
- required?: boolean | undefined;
1068
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
1069
- format?: "URL" | undefined;
1070
- in?: {
1071
- value: string | number;
1072
- displayName?: string | undefined;
1073
- }[] | undefined;
1074
- } | undefined;
1075
- }>;
1076
- thumbnailId?: "columns" | "columnsPlusRight" | "imagesSquare" | "subtitles" | "rowsPlusBottom" | "userRectangle" | "textbox" | "monitorPlay" | "article" | "table" | "star" | "heartStraight" | "frameCorners" | "rows" | "dotsThreeOutline" | "listDashes" | "checkerBoard" | "gridFour" | "slideshow" | "diamondsFour" | "cards" | "textColumns" | "duplex" | undefined;
1077
- category?: string | undefined;
1078
- prebindingDefinitions?: {
1079
- id: string;
1080
- parameterDefinitions: Record<string, {
1081
- contentTypes: string[];
1082
- passToNodes: {
1083
- prebindingId: string;
1084
- parameterId: string;
1085
- nodeId: string;
1086
- }[];
1087
- defaultSource?: {
1088
- type: "Entry";
1089
- contentTypeId: string;
1090
- link: {
1091
- sys: {
1092
- type: "Link";
1093
- id: string;
1094
- linkType: "Entry";
1095
- };
1096
- };
1097
- } | undefined;
1098
- }>;
1099
- variableMappings?: Record<string, {
1100
- type: "ContentTypeMapping";
1101
- parameterId: string;
1102
- pathsByContentType: Record<string, {
1103
- path: string;
1104
- }>;
1105
- }> | undefined;
1106
- allowedVariableOverrides?: string[] | undefined;
1107
- }[] | undefined;
1108
- }, {
1109
- variableDefinitions: Record<string, {
1110
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
1111
- displayName?: string | undefined;
1112
- description?: string | undefined;
1113
- group?: string | undefined;
1114
- defaultValue?: string | number | boolean | Record<any, any> | {
1115
- type: "DesignValue";
1116
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
1117
- } | {
1118
- path: string;
1119
- type: "BoundValue";
1120
- } | {
1121
- type: "HyperlinkValue";
1122
- linkTargetKey: string;
1123
- overrides?: {} | undefined;
1124
- } | {
1125
- type: "UnboundValue";
1126
- key: string;
1127
- } | {
1128
- type: "ComponentValue";
1129
- key: string;
1130
- } | {
1131
- type: "NoValue";
1132
- } | undefined;
1133
- validations?: {
1134
- required?: boolean | undefined;
1135
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
1136
- format?: "URL" | undefined;
1137
- in?: {
1138
- value: string | number;
1139
- displayName?: string | undefined;
1140
- }[] | undefined;
1141
- } | undefined;
1142
- }>;
1143
- thumbnailId?: "columns" | "columnsPlusRight" | "imagesSquare" | "subtitles" | "rowsPlusBottom" | "userRectangle" | "textbox" | "monitorPlay" | "article" | "table" | "star" | "heartStraight" | "frameCorners" | "rows" | "dotsThreeOutline" | "listDashes" | "checkerBoard" | "gridFour" | "slideshow" | "diamondsFour" | "cards" | "textColumns" | "duplex" | undefined;
1144
- category?: string | undefined;
1145
- prebindingDefinitions?: {
1146
- id: string;
1147
- parameterDefinitions: Record<string, {
1148
- contentTypes: string[];
1149
- passToNodes: {
1150
- prebindingId: string;
1151
- parameterId: string;
1152
- nodeId: string;
1153
- }[];
1154
- defaultSource?: {
1155
- type: "Entry";
1156
- contentTypeId: string;
1157
- link: {
1158
- sys: {
1159
- type: "Link";
1160
- id: string;
1161
- linkType: "Entry";
1162
- };
1163
- };
1164
- } | undefined;
1165
- }>;
1166
- variableMappings?: Record<string, {
1167
- type: "ContentTypeMapping";
1168
- parameterId: string;
1169
- pathsByContentType: Record<string, {
1170
- path: string;
1171
- }>;
1172
- }> | undefined;
1173
- allowedVariableOverrides?: string[] | undefined;
1174
- }[] | undefined;
1175
- }>;
1176
- declare const PatternFieldsCMAShapeSchema: z.ZodEffects<z.ZodObject<{
1177
- componentTree: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
1178
- dataSource: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
1179
- unboundValues: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
1180
- usedComponents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodTypeAny>>;
1181
- componentSettings: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
1182
- }, "strip", z.ZodTypeAny, {
1183
- componentTree: Record<string, any>;
1184
- dataSource: Record<string, any>;
1185
- unboundValues: Record<string, any>;
1186
- componentSettings: Record<string, any>;
1187
- usedComponents?: Record<string, any> | undefined;
1188
- }, {
1189
- componentTree: Record<string, any>;
1190
- dataSource: Record<string, any>;
1191
- unboundValues: Record<string, any>;
1192
- componentSettings: Record<string, any>;
1193
- usedComponents?: Record<string, any> | undefined;
1194
- }>, {
1195
- componentTree: Record<string, any>;
1196
- dataSource: Record<string, any>;
1197
- unboundValues: Record<string, any>;
1198
- componentSettings: Record<string, any>;
1199
- usedComponents?: Record<string, any> | undefined;
1200
- }, {
1201
- componentTree: Record<string, any>;
1202
- dataSource: Record<string, any>;
1203
- unboundValues: Record<string, any>;
1204
- componentSettings: Record<string, any>;
1205
- usedComponents?: Record<string, any> | undefined;
1206
- }>;
396
+ description: z.ZodOptional<z.ZodString>;
397
+ group: z.ZodOptional<z.ZodString>;
398
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>, z.ZodDiscriminatedUnion<[z.ZodObject<{
399
+ type: z.ZodLiteral<"DesignValue">;
400
+ valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
401
+ }, z.core.$strict>, z.ZodObject<{
402
+ type: z.ZodLiteral<"BoundValue">;
403
+ path: z.ZodString;
404
+ }, z.core.$strict>, z.ZodObject<{
405
+ type: z.ZodLiteral<"UnboundValue">;
406
+ key: z.ZodString;
407
+ }, z.core.$strict>, z.ZodObject<{
408
+ type: z.ZodLiteral<"HyperlinkValue">;
409
+ linkTargetKey: z.ZodString;
410
+ overrides: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
411
+ }, z.core.$strict>, z.ZodObject<{
412
+ type: z.ZodLiteral<"ComponentValue">;
413
+ key: z.ZodString;
414
+ }, z.core.$strict>, z.ZodObject<{
415
+ type: z.ZodLiteral<"NoValue">;
416
+ }, z.core.$strict>], "type">]>>;
417
+ validations: z.ZodOptional<z.ZodObject<{
418
+ bindingSourceType: z.ZodOptional<z.ZodArray<z.ZodEnum<{
419
+ entry: "entry";
420
+ asset: "asset";
421
+ manual: "manual";
422
+ experience: "experience";
423
+ }>>>;
424
+ required: z.ZodOptional<z.ZodBoolean>;
425
+ format: z.ZodOptional<z.ZodLiteral<"URL">>;
426
+ in: z.ZodOptional<z.ZodArray<z.ZodObject<{
427
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
428
+ displayName: z.ZodOptional<z.ZodString>;
429
+ }, z.core.$strip>>>;
430
+ }, z.core.$strip>>;
431
+ }, z.core.$strip>>;
432
+ thumbnailId: z.ZodOptional<z.ZodEnum<{
433
+ columns: "columns";
434
+ columnsPlusRight: "columnsPlusRight";
435
+ imagesSquare: "imagesSquare";
436
+ subtitles: "subtitles";
437
+ rowsPlusBottom: "rowsPlusBottom";
438
+ userRectangle: "userRectangle";
439
+ textbox: "textbox";
440
+ monitorPlay: "monitorPlay";
441
+ article: "article";
442
+ table: "table";
443
+ star: "star";
444
+ heartStraight: "heartStraight";
445
+ frameCorners: "frameCorners";
446
+ rows: "rows";
447
+ dotsThreeOutline: "dotsThreeOutline";
448
+ listDashes: "listDashes";
449
+ checkerBoard: "checkerBoard";
450
+ gridFour: "gridFour";
451
+ slideshow: "slideshow";
452
+ diamondsFour: "diamondsFour";
453
+ cards: "cards";
454
+ textColumns: "textColumns";
455
+ duplex: "duplex";
456
+ }>>;
457
+ category: z.ZodOptional<z.ZodString>;
458
+ prebindingDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
459
+ id: z.ZodString;
460
+ parameterDefinitions: z.ZodRecord<z.ZodString, z.ZodObject<{
461
+ defaultSource: z.ZodOptional<z.ZodObject<{
462
+ type: z.ZodEnum<{
463
+ Entry: "Entry";
464
+ }>;
465
+ contentTypeId: z.ZodString;
466
+ link: z.ZodObject<{
467
+ sys: z.ZodObject<{
468
+ type: z.ZodLiteral<"Link">;
469
+ id: z.ZodString;
470
+ linkType: z.ZodEnum<{
471
+ Entry: "Entry";
472
+ }>;
473
+ }, z.core.$strict>;
474
+ }, z.core.$strict>;
475
+ }, z.core.$strict>>;
476
+ contentTypes: z.ZodArray<z.ZodString>;
477
+ passToNodes: z.ZodArray<z.ZodObject<{
478
+ nodeId: z.ZodString;
479
+ parameterId: z.ZodString;
480
+ prebindingId: z.ZodString;
481
+ }, z.core.$strict>>;
482
+ }, z.core.$strip>>;
483
+ variableMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
484
+ parameterId: z.ZodString;
485
+ type: z.ZodLiteral<"ContentTypeMapping">;
486
+ pathsByContentType: z.ZodRecord<z.ZodString, z.ZodObject<{
487
+ path: z.ZodString;
488
+ }, z.core.$strip>>;
489
+ }, z.core.$strip>>>;
490
+ allowedVariableOverrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
491
+ }, z.core.$strict>>>;
492
+ }, z.core.$strict>>;
493
+ }, z.core.$strip>;
1207
494
  type PatternFields = z.infer<typeof PatternFieldsCMAShapeSchema>;
1208
495
  type ParameterDefinition = z.infer<typeof ParameterDefinitionSchema>;
1209
496
  type VariableMapping = z.infer<typeof VariableMappingSchema>;
1210
497
  type PatternComponentSettings = z.infer<typeof ComponentSettingsSchema>;
1211
498
 
1212
- declare const ComponentDefinitionSchema: z.ZodEffects<z.ZodObject<{
499
+ declare const ComponentDefinitionSchema: z.ZodObject<{
1213
500
  id: z.ZodString;
1214
501
  name: z.ZodString;
1215
502
  category: z.ZodOptional<z.ZodString>;
@@ -1219,305 +506,46 @@ declare const ComponentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1219
506
  children: z.ZodOptional<z.ZodBoolean>;
1220
507
  slots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1221
508
  displayName: z.ZodOptional<z.ZodString>;
1222
- }, "strip", z.ZodTypeAny, {
1223
- displayName?: string | undefined;
1224
- }, {
1225
- displayName?: string | undefined;
1226
- }>>>;
1227
- builtInStyles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
509
+ }, z.core.$strip>>>;
510
+ builtInStyles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1228
511
  tooltip: z.ZodOptional<z.ZodObject<{
1229
512
  imageUrl: z.ZodOptional<z.ZodString>;
1230
513
  description: z.ZodString;
1231
- }, "strip", z.ZodTypeAny, {
1232
- description: string;
1233
- imageUrl?: string | undefined;
1234
- }, {
1235
- description: string;
1236
- imageUrl?: string | undefined;
1237
- }>>;
1238
- variables: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
514
+ }, z.core.$strip>>;
515
+ variables: z.ZodRecord<z.ZodString, z.ZodObject<{
1239
516
  displayName: z.ZodOptional<z.ZodString>;
1240
- type: z.ZodEnum<["Text", "RichText", "Number", "Date", "Boolean", "Location", "Media", "Object", "Hyperlink", "Array", "Link"]>;
517
+ type: z.ZodEnum<{
518
+ Link: "Link";
519
+ Text: "Text";
520
+ RichText: "RichText";
521
+ Number: "Number";
522
+ Date: "Date";
523
+ Boolean: "Boolean";
524
+ Location: "Location";
525
+ Media: "Media";
526
+ Object: "Object";
527
+ Hyperlink: "Hyperlink";
528
+ Array: "Array";
529
+ }>;
1241
530
  description: z.ZodOptional<z.ZodString>;
1242
531
  group: z.ZodOptional<z.ZodString>;
1243
- defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1244
- type: z.ZodLiteral<"DesignValue">;
1245
- valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
1246
- }, "strict", z.ZodTypeAny, {
1247
- type: "DesignValue";
1248
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
1249
- }, {
1250
- type: "DesignValue";
1251
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
1252
- }>, z.ZodObject<{
1253
- type: z.ZodLiteral<"BoundValue">;
1254
- path: z.ZodString;
1255
- }, "strict", z.ZodTypeAny, {
1256
- path: string;
1257
- type: "BoundValue";
1258
- }, {
1259
- path: string;
1260
- type: "BoundValue";
1261
- }>, z.ZodObject<{
1262
- type: z.ZodLiteral<"UnboundValue">;
1263
- key: z.ZodString;
1264
- }, "strict", z.ZodTypeAny, {
1265
- type: "UnboundValue";
1266
- key: string;
1267
- }, {
1268
- type: "UnboundValue";
1269
- key: string;
1270
- }>, z.ZodObject<{
1271
- type: z.ZodLiteral<"HyperlinkValue">;
1272
- linkTargetKey: z.ZodString;
1273
- overrides: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
1274
- }, "strict", z.ZodTypeAny, {
1275
- type: "HyperlinkValue";
1276
- linkTargetKey: string;
1277
- overrides?: {} | undefined;
1278
- }, {
1279
- type: "HyperlinkValue";
1280
- linkTargetKey: string;
1281
- overrides?: {} | undefined;
1282
- }>, z.ZodObject<{
1283
- type: z.ZodLiteral<"ComponentValue">;
1284
- key: z.ZodString;
1285
- }, "strict", z.ZodTypeAny, {
1286
- type: "ComponentValue";
1287
- key: string;
1288
- }, {
1289
- type: "ComponentValue";
1290
- key: string;
1291
- }>, z.ZodObject<{
1292
- type: z.ZodLiteral<"NoValue">;
1293
- }, "strict", z.ZodTypeAny, {
1294
- type: "NoValue";
1295
- }, {
1296
- type: "NoValue";
1297
- }>]>]>>;
1298
532
  validations: z.ZodOptional<z.ZodObject<{
1299
- bindingSourceType: z.ZodOptional<z.ZodArray<z.ZodEnum<["entry", "asset", "manual", "experience"]>, "atleastone">>;
533
+ bindingSourceType: z.ZodOptional<z.ZodArray<z.ZodEnum<{
534
+ entry: "entry";
535
+ asset: "asset";
536
+ manual: "manual";
537
+ experience: "experience";
538
+ }>>>;
1300
539
  required: z.ZodOptional<z.ZodBoolean>;
1301
540
  format: z.ZodOptional<z.ZodLiteral<"URL">>;
1302
541
  in: z.ZodOptional<z.ZodArray<z.ZodObject<{
1303
- value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
542
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1304
543
  displayName: z.ZodOptional<z.ZodString>;
1305
- }, "strip", z.ZodTypeAny, {
1306
- value: string | number;
1307
- displayName?: string | undefined;
1308
- }, {
1309
- value: string | number;
1310
- displayName?: string | undefined;
1311
- }>, "many">>;
1312
- }, "strip", z.ZodTypeAny, {
1313
- required?: boolean | undefined;
1314
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
1315
- format?: "URL" | undefined;
1316
- in?: {
1317
- value: string | number;
1318
- displayName?: string | undefined;
1319
- }[] | undefined;
1320
- }, {
1321
- required?: boolean | undefined;
1322
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
1323
- format?: "URL" | undefined;
1324
- in?: {
1325
- value: string | number;
1326
- displayName?: string | undefined;
1327
- }[] | undefined;
1328
- }>>;
1329
- }, {
1330
- defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>;
1331
- }>, "strip", z.ZodTypeAny, {
1332
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
1333
- displayName?: string | undefined;
1334
- description?: string | undefined;
1335
- group?: string | undefined;
1336
- defaultValue?: string | number | boolean | Record<any, any> | undefined;
1337
- validations?: {
1338
- required?: boolean | undefined;
1339
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
1340
- format?: "URL" | undefined;
1341
- in?: {
1342
- value: string | number;
1343
- displayName?: string | undefined;
1344
- }[] | undefined;
1345
- } | undefined;
1346
- }, {
1347
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
1348
- displayName?: string | undefined;
1349
- description?: string | undefined;
1350
- group?: string | undefined;
1351
- defaultValue?: string | number | boolean | Record<any, any> | undefined;
1352
- validations?: {
1353
- required?: boolean | undefined;
1354
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
1355
- format?: "URL" | undefined;
1356
- in?: {
1357
- value: string | number;
1358
- displayName?: string | undefined;
1359
- }[] | undefined;
1360
- } | undefined;
1361
- }>, {
1362
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
1363
- displayName?: string | undefined;
1364
- description?: string | undefined;
1365
- group?: string | undefined;
1366
- defaultValue?: string | number | boolean | Record<any, any> | undefined;
1367
- validations?: {
1368
- required?: boolean | undefined;
1369
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
1370
- format?: "URL" | undefined;
1371
- in?: {
1372
- value: string | number;
1373
- displayName?: string | undefined;
1374
- }[] | undefined;
1375
- } | undefined;
1376
- }, {
1377
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
1378
- displayName?: string | undefined;
1379
- description?: string | undefined;
1380
- group?: string | undefined;
1381
- defaultValue?: string | number | boolean | Record<any, any> | undefined;
1382
- validations?: {
1383
- required?: boolean | undefined;
1384
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
1385
- format?: "URL" | undefined;
1386
- in?: {
1387
- value: string | number;
1388
- displayName?: string | undefined;
1389
- }[] | undefined;
1390
- } | undefined;
1391
- }>>;
1392
- }, "strip", z.ZodTypeAny, {
1393
- id: string;
1394
- variables: Record<string, {
1395
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
1396
- displayName?: string | undefined;
1397
- description?: string | undefined;
1398
- group?: string | undefined;
1399
- defaultValue?: string | number | boolean | Record<any, any> | undefined;
1400
- validations?: {
1401
- required?: boolean | undefined;
1402
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
1403
- format?: "URL" | undefined;
1404
- in?: {
1405
- value: string | number;
1406
- displayName?: string | undefined;
1407
- }[] | undefined;
1408
- } | undefined;
1409
- }>;
1410
- name: string;
1411
- children?: boolean | undefined;
1412
- thumbnailId?: string | undefined;
1413
- category?: string | undefined;
1414
- thumbnailUrl?: string | undefined;
1415
- hyperlinkPattern?: string | undefined;
1416
- slots?: Record<string, {
1417
- displayName?: string | undefined;
1418
- }> | undefined;
1419
- builtInStyles?: string[] | undefined;
1420
- tooltip?: {
1421
- description: string;
1422
- imageUrl?: string | undefined;
1423
- } | undefined;
1424
- }, {
1425
- id: string;
1426
- variables: Record<string, {
1427
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
1428
- displayName?: string | undefined;
1429
- description?: string | undefined;
1430
- group?: string | undefined;
1431
- defaultValue?: string | number | boolean | Record<any, any> | undefined;
1432
- validations?: {
1433
- required?: boolean | undefined;
1434
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
1435
- format?: "URL" | undefined;
1436
- in?: {
1437
- value: string | number;
1438
- displayName?: string | undefined;
1439
- }[] | undefined;
1440
- } | undefined;
1441
- }>;
1442
- name: string;
1443
- children?: boolean | undefined;
1444
- thumbnailId?: string | undefined;
1445
- category?: string | undefined;
1446
- thumbnailUrl?: string | undefined;
1447
- hyperlinkPattern?: string | undefined;
1448
- slots?: Record<string, {
1449
- displayName?: string | undefined;
1450
- }> | undefined;
1451
- builtInStyles?: string[] | undefined;
1452
- tooltip?: {
1453
- description: string;
1454
- imageUrl?: string | undefined;
1455
- } | undefined;
1456
- }>, {
1457
- id: string;
1458
- variables: Record<string, {
1459
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
1460
- displayName?: string | undefined;
1461
- description?: string | undefined;
1462
- group?: string | undefined;
1463
- defaultValue?: string | number | boolean | Record<any, any> | undefined;
1464
- validations?: {
1465
- required?: boolean | undefined;
1466
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
1467
- format?: "URL" | undefined;
1468
- in?: {
1469
- value: string | number;
1470
- displayName?: string | undefined;
1471
- }[] | undefined;
1472
- } | undefined;
1473
- }>;
1474
- name: string;
1475
- children?: boolean | undefined;
1476
- thumbnailId?: string | undefined;
1477
- category?: string | undefined;
1478
- thumbnailUrl?: string | undefined;
1479
- hyperlinkPattern?: string | undefined;
1480
- slots?: Record<string, {
1481
- displayName?: string | undefined;
1482
- }> | undefined;
1483
- builtInStyles?: string[] | undefined;
1484
- tooltip?: {
1485
- description: string;
1486
- imageUrl?: string | undefined;
1487
- } | undefined;
1488
- }, {
1489
- id: string;
1490
- variables: Record<string, {
1491
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
1492
- displayName?: string | undefined;
1493
- description?: string | undefined;
1494
- group?: string | undefined;
1495
- defaultValue?: string | number | boolean | Record<any, any> | undefined;
1496
- validations?: {
1497
- required?: boolean | undefined;
1498
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
1499
- format?: "URL" | undefined;
1500
- in?: {
1501
- value: string | number;
1502
- displayName?: string | undefined;
1503
- }[] | undefined;
1504
- } | undefined;
1505
- }>;
1506
- name: string;
1507
- children?: boolean | undefined;
1508
- thumbnailId?: string | undefined;
1509
- category?: string | undefined;
1510
- thumbnailUrl?: string | undefined;
1511
- hyperlinkPattern?: string | undefined;
1512
- slots?: Record<string, {
1513
- displayName?: string | undefined;
1514
- }> | undefined;
1515
- builtInStyles?: string[] | undefined;
1516
- tooltip?: {
1517
- description: string;
1518
- imageUrl?: string | undefined;
1519
- } | undefined;
1520
- }>;
544
+ }, z.core.$strip>>>;
545
+ }, z.core.$strip>>;
546
+ defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>;
547
+ }, z.core.$strip>>;
548
+ }, z.core.$strip>;
1521
549
  type ComponentDefinitionPropertyType = z.infer<typeof DefinitionPropertyTypeSchema>;
1522
550
 
1523
551
  declare const SchemaVersions: z.ZodLiteral<"2023-09-28">;
@@ -1562,4 +590,5 @@ declare const validateExperienceFields: (experience: {
1562
590
  fields: Record<string, any>;
1563
591
  }, schemaVersionOverride?: SchemaVersions) => ValidatorReturnValue;
1564
592
 
1565
- export { type BindingSourceTypeEnum, type BoundValue, type Breakpoint, type ComponentDefinitionPropertyType, ComponentDefinitionSchema, type ComponentPropertyValue, type ComponentTreeNode, type ComponentValue, type DesignValue, type PatternComponentSettings as ExperienceComponentSettings, type ExperienceComponentTree, type ExperienceDataSource, type ExperienceFields, ExperienceFieldsCMAShapeSchema as ExperienceSchema_2023_09_28, type ExperienceUnboundValues, type ExperienceUsedComponents, type NoValue, type Parameter, type ParameterDefinition, type PatternFields, PatternFieldsCMAShapeSchema as PatternSchema_2023_09_28, type PrimitiveValue, SchemaVersions, type UnboundValue, type ValuesByBreakpoint, type VariableMapping, validateBreakpointsDefinition, validateComponentDefinition, validateExperienceFields };
593
+ export { ComponentDefinitionSchema, ExperienceFieldsCMAShapeSchema as ExperienceSchema_2023_09_28, PatternFieldsCMAShapeSchema as PatternSchema_2023_09_28, SchemaVersions, validateBreakpointsDefinition, validateComponentDefinition, validateExperienceFields };
594
+ export type { BindingSourceTypeEnum, BoundValue, Breakpoint, ComponentDefinitionPropertyType, ComponentPropertyValue, ComponentTreeNode, ComponentValue, DesignValue, PatternComponentSettings as ExperienceComponentSettings, ExperienceComponentTree, ExperienceDataSource, ExperienceFields, ExperienceUnboundValues, ExperienceUsedComponents, NoValue, Parameter, ParameterDefinition, PatternFields, PrimitiveValue, UnboundValue, ValuesByBreakpoint, VariableMapping };