@contentful/experiences-validators 3.7.0-beta.0 → 3.7.0-dev-20250917T1203-0e23897.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.
@@ -0,0 +1,933 @@
1
+ import { z } from 'zod';
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]>;
5
+ declare const UsedComponentsSchema: z.ZodArray<z.ZodObject<{
6
+ sys: z.ZodObject<{
7
+ type: z.ZodLiteral<"Link">;
8
+ id: z.ZodString;
9
+ 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">;
32
+ declare const DataSourceSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
33
+ sys: z.ZodObject<{
34
+ type: z.ZodLiteral<"Link">;
35
+ 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
+ }>>;
59
+ 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;
65
+ }>>;
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 DesignValueSchema: z.ZodObject<{
68
+ type: z.ZodLiteral<"DesignValue">;
69
+ valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
70
+ }, "strict", z.ZodTypeAny, {
71
+ type: "DesignValue";
72
+ valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
73
+ }, {
74
+ type: "DesignValue";
75
+ valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
76
+ }>;
77
+ declare const BoundValueSchema: z.ZodObject<{
78
+ type: z.ZodLiteral<"BoundValue">;
79
+ path: z.ZodString;
80
+ }, "strict", z.ZodTypeAny, {
81
+ path: string;
82
+ type: "BoundValue";
83
+ }, {
84
+ path: string;
85
+ type: "BoundValue";
86
+ }>;
87
+ declare const UnboundValueSchema: z.ZodObject<{
88
+ type: z.ZodLiteral<"UnboundValue">;
89
+ key: z.ZodString;
90
+ }, "strict", z.ZodTypeAny, {
91
+ type: "UnboundValue";
92
+ key: string;
93
+ }, {
94
+ type: "UnboundValue";
95
+ key: string;
96
+ }>;
97
+ declare const ComponentValueSchema: z.ZodObject<{
98
+ type: z.ZodLiteral<"ComponentValue">;
99
+ key: z.ZodString;
100
+ }, "strict", z.ZodTypeAny, {
101
+ type: "ComponentValue";
102
+ key: string;
103
+ }, {
104
+ type: "ComponentValue";
105
+ key: string;
106
+ }>;
107
+ declare const NoValueSchema: z.ZodObject<{
108
+ type: z.ZodLiteral<"NoValue">;
109
+ }, "strict", z.ZodTypeAny, {
110
+ type: "NoValue";
111
+ }, {
112
+ type: "NoValue";
113
+ }>;
114
+ declare const ComponentPropertyValueSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
115
+ type: z.ZodLiteral<"DesignValue">;
116
+ valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
117
+ }, "strict", z.ZodTypeAny, {
118
+ type: "DesignValue";
119
+ valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
120
+ }, {
121
+ type: "DesignValue";
122
+ valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
123
+ }>, z.ZodObject<{
124
+ type: z.ZodLiteral<"BoundValue">;
125
+ path: z.ZodString;
126
+ }, "strict", z.ZodTypeAny, {
127
+ path: string;
128
+ type: "BoundValue";
129
+ }, {
130
+ path: string;
131
+ type: "BoundValue";
132
+ }>, z.ZodObject<{
133
+ type: z.ZodLiteral<"UnboundValue">;
134
+ key: z.ZodString;
135
+ }, "strict", z.ZodTypeAny, {
136
+ type: "UnboundValue";
137
+ key: string;
138
+ }, {
139
+ type: "UnboundValue";
140
+ key: string;
141
+ }>, z.ZodObject<{
142
+ type: z.ZodLiteral<"HyperlinkValue">;
143
+ linkTargetKey: z.ZodString;
144
+ /** Allows to override parts of the URL, e.g. the locale */
145
+ overrides: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
146
+ }, "strict", z.ZodTypeAny, {
147
+ type: "HyperlinkValue";
148
+ linkTargetKey: string;
149
+ overrides?: {} | undefined;
150
+ }, {
151
+ type: "HyperlinkValue";
152
+ linkTargetKey: string;
153
+ overrides?: {} | undefined;
154
+ }>, z.ZodObject<{
155
+ type: z.ZodLiteral<"ComponentValue">;
156
+ key: z.ZodString;
157
+ }, "strict", z.ZodTypeAny, {
158
+ type: "ComponentValue";
159
+ key: string;
160
+ }, {
161
+ type: "ComponentValue";
162
+ key: string;
163
+ }>, z.ZodObject<{
164
+ type: z.ZodLiteral<"NoValue">;
165
+ }, "strict", z.ZodTypeAny, {
166
+ type: "NoValue";
167
+ }, {
168
+ type: "NoValue";
169
+ }>]>;
170
+ type ComponentPropertyValue = z.infer<typeof ComponentPropertyValueSchema>;
171
+ declare const ParameterSchema: z.ZodObject<{
172
+ type: z.ZodLiteral<"BoundValue">;
173
+ path: z.ZodString;
174
+ }, "strip", z.ZodTypeAny, {
175
+ path: string;
176
+ type: "BoundValue";
177
+ }, {
178
+ path: string;
179
+ type: "BoundValue";
180
+ }>;
181
+ type BreakpointQuery = '*' | `>${number}px` | `<${number}px`;
182
+ declare const BreakpointSchema: z.ZodObject<{
183
+ id: z.ZodString;
184
+ query: z.ZodEffects<z.ZodString, BreakpointQuery, string>;
185
+ previewSize: z.ZodString;
186
+ displayName: z.ZodString;
187
+ displayIcon: z.ZodOptional<z.ZodEnum<["desktop", "tablet", "mobile"]>>;
188
+ }, "strict", z.ZodTypeAny, {
189
+ id: string;
190
+ query: BreakpointQuery;
191
+ previewSize: string;
192
+ displayName: string;
193
+ displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
194
+ }, {
195
+ id: string;
196
+ query: string;
197
+ previewSize: string;
198
+ displayName: string;
199
+ displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
200
+ }>;
201
+ declare const BaseComponentTreeNodeSchema: z.ZodObject<{
202
+ id: z.ZodOptional<z.ZodString>;
203
+ definitionId: z.ZodString;
204
+ prebindingId: z.ZodOptional<z.ZodString>;
205
+ displayName: z.ZodOptional<z.ZodString>;
206
+ slotId: z.ZodOptional<z.ZodString>;
207
+ variables: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
208
+ type: z.ZodLiteral<"DesignValue">;
209
+ valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
210
+ }, "strict", z.ZodTypeAny, {
211
+ type: "DesignValue";
212
+ valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
213
+ }, {
214
+ type: "DesignValue";
215
+ valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
216
+ }>, z.ZodObject<{
217
+ type: z.ZodLiteral<"BoundValue">;
218
+ path: z.ZodString;
219
+ }, "strict", z.ZodTypeAny, {
220
+ path: string;
221
+ type: "BoundValue";
222
+ }, {
223
+ path: string;
224
+ type: "BoundValue";
225
+ }>, z.ZodObject<{
226
+ type: z.ZodLiteral<"UnboundValue">;
227
+ key: z.ZodString;
228
+ }, "strict", z.ZodTypeAny, {
229
+ type: "UnboundValue";
230
+ key: string;
231
+ }, {
232
+ type: "UnboundValue";
233
+ key: string;
234
+ }>, z.ZodObject<{
235
+ type: z.ZodLiteral<"HyperlinkValue">;
236
+ linkTargetKey: z.ZodString;
237
+ /** Allows to override parts of the URL, e.g. the locale */
238
+ overrides: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
239
+ }, "strict", z.ZodTypeAny, {
240
+ type: "HyperlinkValue";
241
+ linkTargetKey: string;
242
+ overrides?: {} | undefined;
243
+ }, {
244
+ type: "HyperlinkValue";
245
+ linkTargetKey: string;
246
+ overrides?: {} | undefined;
247
+ }>, z.ZodObject<{
248
+ type: z.ZodLiteral<"ComponentValue">;
249
+ key: z.ZodString;
250
+ }, "strict", z.ZodTypeAny, {
251
+ type: "ComponentValue";
252
+ key: string;
253
+ }, {
254
+ type: "ComponentValue";
255
+ key: string;
256
+ }>, z.ZodObject<{
257
+ type: z.ZodLiteral<"NoValue">;
258
+ }, "strict", z.ZodTypeAny, {
259
+ type: "NoValue";
260
+ }, {
261
+ type: "NoValue";
262
+ }>]>>;
263
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
264
+ type: z.ZodLiteral<"BoundValue">;
265
+ path: z.ZodString;
266
+ }, "strip", z.ZodTypeAny, {
267
+ path: string;
268
+ type: "BoundValue";
269
+ }, {
270
+ path: string;
271
+ type: "BoundValue";
272
+ }>>>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ definitionId: string;
275
+ variables: Record<string, {
276
+ type: "DesignValue";
277
+ valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
278
+ } | {
279
+ path: string;
280
+ type: "BoundValue";
281
+ } | {
282
+ type: "HyperlinkValue";
283
+ linkTargetKey: string;
284
+ overrides?: {} | undefined;
285
+ } | {
286
+ type: "UnboundValue";
287
+ key: string;
288
+ } | {
289
+ type: "ComponentValue";
290
+ key: string;
291
+ } | {
292
+ type: "NoValue";
293
+ }>;
294
+ id?: string | undefined;
295
+ displayName?: string | undefined;
296
+ prebindingId?: string | undefined;
297
+ slotId?: string | undefined;
298
+ parameters?: Record<string, {
299
+ path: string;
300
+ type: "BoundValue";
301
+ }> | undefined;
302
+ }, {
303
+ definitionId: string;
304
+ variables: Record<string, {
305
+ type: "DesignValue";
306
+ valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
307
+ } | {
308
+ path: string;
309
+ type: "BoundValue";
310
+ } | {
311
+ type: "HyperlinkValue";
312
+ linkTargetKey: string;
313
+ overrides?: {} | undefined;
314
+ } | {
315
+ type: "UnboundValue";
316
+ key: string;
317
+ } | {
318
+ type: "ComponentValue";
319
+ key: string;
320
+ } | {
321
+ type: "NoValue";
322
+ }>;
323
+ id?: string | undefined;
324
+ displayName?: string | undefined;
325
+ prebindingId?: string | undefined;
326
+ slotId?: string | undefined;
327
+ parameters?: Record<string, {
328
+ path: string;
329
+ type: "BoundValue";
330
+ }> | undefined;
331
+ }>;
332
+ type ComponentTreeNode = z.infer<typeof BaseComponentTreeNodeSchema> & {
333
+ children: ComponentTreeNode[];
334
+ };
335
+ declare const ComponentTreeSchema: z.ZodObject<{
336
+ breakpoints: z.ZodEffects<z.ZodArray<z.ZodObject<{
337
+ id: z.ZodString;
338
+ query: z.ZodEffects<z.ZodString, BreakpointQuery, string>;
339
+ previewSize: z.ZodString;
340
+ displayName: z.ZodString;
341
+ displayIcon: z.ZodOptional<z.ZodEnum<["desktop", "tablet", "mobile"]>>;
342
+ }, "strict", z.ZodTypeAny, {
343
+ id: string;
344
+ query: BreakpointQuery;
345
+ previewSize: string;
346
+ displayName: string;
347
+ displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
348
+ }, {
349
+ id: string;
350
+ query: string;
351
+ previewSize: string;
352
+ displayName: string;
353
+ displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
354
+ }>, "many">, {
355
+ id: string;
356
+ query: BreakpointQuery;
357
+ previewSize: string;
358
+ displayName: string;
359
+ displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
360
+ }[], {
361
+ id: string;
362
+ query: string;
363
+ previewSize: string;
364
+ displayName: string;
365
+ displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
366
+ }[]>;
367
+ children: z.ZodArray<z.ZodType<ComponentTreeNode, z.ZodTypeDef, ComponentTreeNode>, "many">;
368
+ schemaVersion: z.ZodLiteral<"2023-09-28">;
369
+ }, "strict", z.ZodTypeAny, {
370
+ children: ComponentTreeNode[];
371
+ breakpoints: {
372
+ id: string;
373
+ query: BreakpointQuery;
374
+ previewSize: string;
375
+ displayName: string;
376
+ displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
377
+ }[];
378
+ schemaVersion: "2023-09-28";
379
+ }, {
380
+ children: ComponentTreeNode[];
381
+ breakpoints: {
382
+ id: string;
383
+ query: string;
384
+ previewSize: string;
385
+ displayName: string;
386
+ displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
387
+ }[];
388
+ schemaVersion: "2023-09-28";
389
+ }>;
390
+
391
+ declare const ExperienceFieldsCMAShapeSchema: z.ZodObject<{
392
+ componentTree: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
393
+ dataSource: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
394
+ unboundValues: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
395
+ usedComponents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodTypeAny>>;
396
+ }, "strip", z.ZodTypeAny, {
397
+ componentTree: Record<string, any>;
398
+ dataSource: Record<string, any>;
399
+ unboundValues: Record<string, any>;
400
+ usedComponents?: Record<string, any> | undefined;
401
+ }, {
402
+ componentTree: Record<string, any>;
403
+ dataSource: Record<string, any>;
404
+ unboundValues: Record<string, any>;
405
+ usedComponents?: Record<string, any> | undefined;
406
+ }>;
407
+ type ExperienceFields = z.infer<typeof ExperienceFieldsCMAShapeSchema>;
408
+ type ExperienceDataSource = z.infer<typeof DataSourceSchema>;
409
+ type ExperienceUnboundValues = z.infer<typeof UnboundValuesSchema>;
410
+ type ExperienceUsedComponents = z.infer<typeof UsedComponentsSchema>;
411
+ type ExperienceComponentTree = z.infer<typeof ComponentTreeSchema>;
412
+ type ValuesByBreakpoint = z.infer<typeof ValuesByBreakpointSchema>;
413
+ type Breakpoint = z.infer<typeof BreakpointSchema>;
414
+ type PrimitiveValue = z.infer<typeof PrimitiveValueSchema>;
415
+ type DesignValue = z.infer<typeof DesignValueSchema>;
416
+ type BoundValue = z.infer<typeof BoundValueSchema>;
417
+ type NoValue = z.infer<typeof NoValueSchema>;
418
+ type UnboundValue = z.infer<typeof UnboundValueSchema>;
419
+ type ComponentValue = z.infer<typeof ComponentValueSchema>;
420
+ type Parameter = z.infer<typeof ParameterSchema>;
421
+
422
+ declare const ComponentSettingsSchema: z.ZodObject<{
423
+ variableDefinitions: z.ZodRecord<z.ZodString, z.ZodObject<{
424
+ displayName: z.ZodOptional<z.ZodString>;
425
+ type: z.ZodEnum<["Text", "RichText", "Number", "Date", "Boolean", "Location", "Media", "Object", "Hyperlink", "Array", "Link"]>;
426
+ description: z.ZodOptional<z.ZodString>;
427
+ group: z.ZodOptional<z.ZodString>;
428
+ 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<{
429
+ type: z.ZodLiteral<"DesignValue">;
430
+ valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
431
+ }, "strict", z.ZodTypeAny, {
432
+ type: "DesignValue";
433
+ valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
434
+ }, {
435
+ type: "DesignValue";
436
+ valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
437
+ }>, z.ZodObject<{
438
+ type: z.ZodLiteral<"BoundValue">;
439
+ path: z.ZodString;
440
+ }, "strict", z.ZodTypeAny, {
441
+ path: string;
442
+ type: "BoundValue";
443
+ }, {
444
+ path: string;
445
+ type: "BoundValue";
446
+ }>, z.ZodObject<{
447
+ type: z.ZodLiteral<"UnboundValue">;
448
+ key: z.ZodString;
449
+ }, "strict", z.ZodTypeAny, {
450
+ type: "UnboundValue";
451
+ key: string;
452
+ }, {
453
+ type: "UnboundValue";
454
+ key: string;
455
+ }>, z.ZodObject<{
456
+ type: z.ZodLiteral<"HyperlinkValue">;
457
+ linkTargetKey: z.ZodString;
458
+ overrides: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
459
+ }, "strict", z.ZodTypeAny, {
460
+ type: "HyperlinkValue";
461
+ linkTargetKey: string;
462
+ overrides?: {} | undefined;
463
+ }, {
464
+ type: "HyperlinkValue";
465
+ linkTargetKey: string;
466
+ overrides?: {} | undefined;
467
+ }>, z.ZodObject<{
468
+ type: z.ZodLiteral<"ComponentValue">;
469
+ key: z.ZodString;
470
+ }, "strict", z.ZodTypeAny, {
471
+ type: "ComponentValue";
472
+ key: string;
473
+ }, {
474
+ type: "ComponentValue";
475
+ key: string;
476
+ }>, z.ZodObject<{
477
+ type: z.ZodLiteral<"NoValue">;
478
+ }, "strict", z.ZodTypeAny, {
479
+ type: "NoValue";
480
+ }, {
481
+ type: "NoValue";
482
+ }>]>]>>;
483
+ validations: z.ZodOptional<z.ZodObject<{
484
+ bindingSourceType: z.ZodOptional<z.ZodArray<z.ZodEnum<["entry", "asset", "manual", "experience"]>, "atleastone">>;
485
+ required: z.ZodOptional<z.ZodBoolean>;
486
+ format: z.ZodOptional<z.ZodLiteral<"URL">>;
487
+ in: z.ZodOptional<z.ZodArray<z.ZodObject<{
488
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
489
+ displayName: z.ZodOptional<z.ZodString>;
490
+ }, "strip", z.ZodTypeAny, {
491
+ value: string | number;
492
+ displayName?: string | undefined;
493
+ }, {
494
+ value: string | number;
495
+ displayName?: string | undefined;
496
+ }>, "many">>;
497
+ }, "strip", z.ZodTypeAny, {
498
+ required?: boolean | undefined;
499
+ bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
500
+ format?: "URL" | undefined;
501
+ in?: {
502
+ value: string | number;
503
+ displayName?: string | undefined;
504
+ }[] | undefined;
505
+ }, {
506
+ required?: boolean | undefined;
507
+ bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
508
+ format?: "URL" | undefined;
509
+ in?: {
510
+ value: string | number;
511
+ displayName?: string | undefined;
512
+ }[] | undefined;
513
+ }>>;
514
+ }, "strip", z.ZodTypeAny, {
515
+ type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
516
+ displayName?: string | undefined;
517
+ description?: string | undefined;
518
+ group?: string | undefined;
519
+ defaultValue?: string | number | boolean | Record<any, any> | {
520
+ type: "DesignValue";
521
+ valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
522
+ } | {
523
+ path: string;
524
+ type: "BoundValue";
525
+ } | {
526
+ type: "HyperlinkValue";
527
+ linkTargetKey: string;
528
+ overrides?: {} | undefined;
529
+ } | {
530
+ type: "UnboundValue";
531
+ key: string;
532
+ } | {
533
+ type: "ComponentValue";
534
+ key: string;
535
+ } | {
536
+ type: "NoValue";
537
+ } | undefined;
538
+ validations?: {
539
+ required?: boolean | undefined;
540
+ bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
541
+ format?: "URL" | undefined;
542
+ in?: {
543
+ value: string | number;
544
+ displayName?: string | undefined;
545
+ }[] | undefined;
546
+ } | undefined;
547
+ }, {
548
+ type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
549
+ displayName?: string | undefined;
550
+ description?: string | undefined;
551
+ group?: string | undefined;
552
+ defaultValue?: string | number | boolean | Record<any, any> | {
553
+ type: "DesignValue";
554
+ valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
555
+ } | {
556
+ path: string;
557
+ type: "BoundValue";
558
+ } | {
559
+ type: "HyperlinkValue";
560
+ linkTargetKey: string;
561
+ overrides?: {} | undefined;
562
+ } | {
563
+ type: "UnboundValue";
564
+ key: string;
565
+ } | {
566
+ type: "ComponentValue";
567
+ key: string;
568
+ } | {
569
+ type: "NoValue";
570
+ } | undefined;
571
+ validations?: {
572
+ required?: boolean | undefined;
573
+ bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
574
+ format?: "URL" | undefined;
575
+ in?: {
576
+ value: string | number;
577
+ displayName?: string | undefined;
578
+ }[] | undefined;
579
+ } | undefined;
580
+ }>>;
581
+ 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"]>>;
582
+ category: z.ZodOptional<z.ZodString>;
583
+ prebindingDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
584
+ id: z.ZodString;
585
+ parameterDefinitions: z.ZodRecord<z.ZodString, z.ZodObject<{
586
+ defaultSource: z.ZodOptional<z.ZodObject<{
587
+ type: z.ZodEnum<["Entry"]>;
588
+ contentTypeId: z.ZodString;
589
+ link: z.ZodObject<{
590
+ sys: z.ZodObject<{
591
+ type: z.ZodLiteral<"Link">;
592
+ id: z.ZodString;
593
+ linkType: z.ZodEnum<["Entry"]>;
594
+ }, "strict", z.ZodTypeAny, {
595
+ type: "Link";
596
+ id: string;
597
+ linkType: "Entry";
598
+ }, {
599
+ type: "Link";
600
+ id: string;
601
+ linkType: "Entry";
602
+ }>;
603
+ }, "strict", z.ZodTypeAny, {
604
+ sys: {
605
+ type: "Link";
606
+ id: string;
607
+ linkType: "Entry";
608
+ };
609
+ }, {
610
+ sys: {
611
+ type: "Link";
612
+ id: string;
613
+ linkType: "Entry";
614
+ };
615
+ }>;
616
+ }, "strict", z.ZodTypeAny, {
617
+ type: "Entry";
618
+ contentTypeId: string;
619
+ link: {
620
+ sys: {
621
+ type: "Link";
622
+ id: string;
623
+ linkType: "Entry";
624
+ };
625
+ };
626
+ }, {
627
+ type: "Entry";
628
+ contentTypeId: string;
629
+ link: {
630
+ sys: {
631
+ type: "Link";
632
+ id: string;
633
+ linkType: "Entry";
634
+ };
635
+ };
636
+ }>>;
637
+ contentTypes: z.ZodArray<z.ZodString, "many">;
638
+ passToNodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
639
+ nodeId: z.ZodString;
640
+ parameterId: z.ZodString;
641
+ prebindingId: z.ZodString;
642
+ }, "strict", z.ZodTypeAny, {
643
+ prebindingId: string;
644
+ parameterId: string;
645
+ nodeId: string;
646
+ }, {
647
+ prebindingId: string;
648
+ parameterId: string;
649
+ nodeId: string;
650
+ }>, "many">>;
651
+ }, "strip", z.ZodTypeAny, {
652
+ contentTypes: string[];
653
+ defaultSource?: {
654
+ type: "Entry";
655
+ contentTypeId: string;
656
+ link: {
657
+ sys: {
658
+ type: "Link";
659
+ id: string;
660
+ linkType: "Entry";
661
+ };
662
+ };
663
+ } | undefined;
664
+ passToNodes?: {
665
+ prebindingId: string;
666
+ parameterId: string;
667
+ nodeId: string;
668
+ }[] | undefined;
669
+ }, {
670
+ contentTypes: string[];
671
+ defaultSource?: {
672
+ type: "Entry";
673
+ contentTypeId: string;
674
+ link: {
675
+ sys: {
676
+ type: "Link";
677
+ id: string;
678
+ linkType: "Entry";
679
+ };
680
+ };
681
+ } | undefined;
682
+ passToNodes?: {
683
+ prebindingId: string;
684
+ parameterId: string;
685
+ nodeId: string;
686
+ }[] | undefined;
687
+ }>>;
688
+ variableMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
689
+ parameterId: z.ZodString;
690
+ type: z.ZodLiteral<"ContentTypeMapping">;
691
+ pathsByContentType: z.ZodRecord<z.ZodString, z.ZodObject<{
692
+ path: z.ZodString;
693
+ }, "strip", z.ZodTypeAny, {
694
+ path: string;
695
+ }, {
696
+ path: string;
697
+ }>>;
698
+ }, "strip", z.ZodTypeAny, {
699
+ type: "ContentTypeMapping";
700
+ parameterId: string;
701
+ pathsByContentType: Record<string, {
702
+ path: string;
703
+ }>;
704
+ }, {
705
+ type: "ContentTypeMapping";
706
+ parameterId: string;
707
+ pathsByContentType: Record<string, {
708
+ path: string;
709
+ }>;
710
+ }>>>;
711
+ allowedVariableOverrides: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
712
+ }, "strict", z.ZodTypeAny, {
713
+ id: string;
714
+ parameterDefinitions: Record<string, {
715
+ contentTypes: string[];
716
+ defaultSource?: {
717
+ type: "Entry";
718
+ contentTypeId: string;
719
+ link: {
720
+ sys: {
721
+ type: "Link";
722
+ id: string;
723
+ linkType: "Entry";
724
+ };
725
+ };
726
+ } | undefined;
727
+ passToNodes?: {
728
+ prebindingId: string;
729
+ parameterId: string;
730
+ nodeId: string;
731
+ }[] | undefined;
732
+ }>;
733
+ variableMappings?: Record<string, {
734
+ type: "ContentTypeMapping";
735
+ parameterId: string;
736
+ pathsByContentType: Record<string, {
737
+ path: string;
738
+ }>;
739
+ }> | undefined;
740
+ allowedVariableOverrides?: string[] | undefined;
741
+ }, {
742
+ id: string;
743
+ parameterDefinitions: Record<string, {
744
+ contentTypes: string[];
745
+ defaultSource?: {
746
+ type: "Entry";
747
+ contentTypeId: string;
748
+ link: {
749
+ sys: {
750
+ type: "Link";
751
+ id: string;
752
+ linkType: "Entry";
753
+ };
754
+ };
755
+ } | undefined;
756
+ passToNodes?: {
757
+ prebindingId: string;
758
+ parameterId: string;
759
+ nodeId: string;
760
+ }[] | undefined;
761
+ }>;
762
+ variableMappings?: Record<string, {
763
+ type: "ContentTypeMapping";
764
+ parameterId: string;
765
+ pathsByContentType: Record<string, {
766
+ path: string;
767
+ }>;
768
+ }> | undefined;
769
+ allowedVariableOverrides?: string[] | undefined;
770
+ }>, "many">>;
771
+ }, "strict", z.ZodTypeAny, {
772
+ variableDefinitions: Record<string, {
773
+ type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
774
+ displayName?: string | undefined;
775
+ description?: string | undefined;
776
+ group?: string | undefined;
777
+ defaultValue?: string | number | boolean | Record<any, any> | {
778
+ type: "DesignValue";
779
+ valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
780
+ } | {
781
+ path: string;
782
+ type: "BoundValue";
783
+ } | {
784
+ type: "HyperlinkValue";
785
+ linkTargetKey: string;
786
+ overrides?: {} | undefined;
787
+ } | {
788
+ type: "UnboundValue";
789
+ key: string;
790
+ } | {
791
+ type: "ComponentValue";
792
+ key: string;
793
+ } | {
794
+ type: "NoValue";
795
+ } | undefined;
796
+ validations?: {
797
+ required?: boolean | undefined;
798
+ bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
799
+ format?: "URL" | undefined;
800
+ in?: {
801
+ value: string | number;
802
+ displayName?: string | undefined;
803
+ }[] | undefined;
804
+ } | undefined;
805
+ }>;
806
+ 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;
807
+ category?: string | undefined;
808
+ prebindingDefinitions?: {
809
+ id: string;
810
+ parameterDefinitions: Record<string, {
811
+ contentTypes: string[];
812
+ defaultSource?: {
813
+ type: "Entry";
814
+ contentTypeId: string;
815
+ link: {
816
+ sys: {
817
+ type: "Link";
818
+ id: string;
819
+ linkType: "Entry";
820
+ };
821
+ };
822
+ } | undefined;
823
+ passToNodes?: {
824
+ prebindingId: string;
825
+ parameterId: string;
826
+ nodeId: string;
827
+ }[] | undefined;
828
+ }>;
829
+ variableMappings?: Record<string, {
830
+ type: "ContentTypeMapping";
831
+ parameterId: string;
832
+ pathsByContentType: Record<string, {
833
+ path: string;
834
+ }>;
835
+ }> | undefined;
836
+ allowedVariableOverrides?: string[] | undefined;
837
+ }[] | undefined;
838
+ }, {
839
+ variableDefinitions: Record<string, {
840
+ type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
841
+ displayName?: string | undefined;
842
+ description?: string | undefined;
843
+ group?: string | undefined;
844
+ defaultValue?: string | number | boolean | Record<any, any> | {
845
+ type: "DesignValue";
846
+ valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
847
+ } | {
848
+ path: string;
849
+ type: "BoundValue";
850
+ } | {
851
+ type: "HyperlinkValue";
852
+ linkTargetKey: string;
853
+ overrides?: {} | undefined;
854
+ } | {
855
+ type: "UnboundValue";
856
+ key: string;
857
+ } | {
858
+ type: "ComponentValue";
859
+ key: string;
860
+ } | {
861
+ type: "NoValue";
862
+ } | undefined;
863
+ validations?: {
864
+ required?: boolean | undefined;
865
+ bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
866
+ format?: "URL" | undefined;
867
+ in?: {
868
+ value: string | number;
869
+ displayName?: string | undefined;
870
+ }[] | undefined;
871
+ } | undefined;
872
+ }>;
873
+ 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;
874
+ category?: string | undefined;
875
+ prebindingDefinitions?: {
876
+ id: string;
877
+ parameterDefinitions: Record<string, {
878
+ contentTypes: string[];
879
+ defaultSource?: {
880
+ type: "Entry";
881
+ contentTypeId: string;
882
+ link: {
883
+ sys: {
884
+ type: "Link";
885
+ id: string;
886
+ linkType: "Entry";
887
+ };
888
+ };
889
+ } | undefined;
890
+ passToNodes?: {
891
+ prebindingId: string;
892
+ parameterId: string;
893
+ nodeId: string;
894
+ }[] | undefined;
895
+ }>;
896
+ variableMappings?: Record<string, {
897
+ type: "ContentTypeMapping";
898
+ parameterId: string;
899
+ pathsByContentType: Record<string, {
900
+ path: string;
901
+ }>;
902
+ }> | undefined;
903
+ allowedVariableOverrides?: string[] | undefined;
904
+ }[] | undefined;
905
+ }>;
906
+ declare const PatternFieldsCMAShapeSchema: z.ZodObject<{
907
+ componentTree: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
908
+ dataSource: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
909
+ unboundValues: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
910
+ usedComponents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodTypeAny>>;
911
+ componentSettings: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
912
+ }, "strip", z.ZodTypeAny, {
913
+ componentTree: Record<string, any>;
914
+ dataSource: Record<string, any>;
915
+ unboundValues: Record<string, any>;
916
+ componentSettings: Record<string, any>;
917
+ usedComponents?: Record<string, any> | undefined;
918
+ }, {
919
+ componentTree: Record<string, any>;
920
+ dataSource: Record<string, any>;
921
+ unboundValues: Record<string, any>;
922
+ componentSettings: Record<string, any>;
923
+ usedComponents?: Record<string, any> | undefined;
924
+ }>;
925
+ type PatternFields = z.infer<typeof PatternFieldsCMAShapeSchema>;
926
+ type PatternComponentSettings = z.infer<typeof ComponentSettingsSchema>;
927
+
928
+ type ComponentDefinitionPropertyType = z.infer<typeof DefinitionPropertyTypeSchema>;
929
+
930
+ declare const SchemaVersions: z.ZodLiteral<"2023-09-28">;
931
+ type SchemaVersions = z.infer<typeof SchemaVersions>;
932
+
933
+ export { type BoundValue, type Breakpoint, type ComponentDefinitionPropertyType, type ComponentPropertyValue, type ComponentTreeNode, type ComponentValue, type DesignValue, type PatternComponentSettings as ExperienceComponentSettings, type ExperienceComponentTree, type ExperienceDataSource, type ExperienceFields, type ExperienceUnboundValues, type ExperienceUsedComponents, type NoValue, type Parameter, type PatternFields, type PrimitiveValue, SchemaVersions, type UnboundValue, type ValuesByBreakpoint };