@contentful/experience-design-system-client 2.42.1-dev-build-f69db6bf.0 → 2.43.0-alpha.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.
@@ -1,3 +1,1536 @@
1
+ export type Schema0 = CdfComponentDefinition;
2
+ export type Schema1 = ComponentTypeSummary;
3
+ export type Schema2 = number;
4
+ export type Schema3 = number | null;
5
+ export type Schema4 = boolean;
6
+ export type Schema5 = number;
7
+ export type Schema6 = boolean;
8
+ export type Schema7 = 1;
9
+ export type Schema8 = string;
10
+ export type Schema9 = Array<Schema8>;
11
+ export type Schema10 = ProjectionDiagnostic;
12
+ export type Schema11 = {
13
+ classification: 'breaking' | 'compatible';
14
+ breakingChanges: Array<BreakingChange>;
15
+ };
16
+ export type Schema12 = {
17
+ affectedFragments: number;
18
+ affectedExperiences: number;
19
+ referencedByFragment?: boolean;
20
+ };
21
+ export type Schema13 = {
22
+ name: string;
23
+ $type?: 'color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography';
24
+ [key: string]: unknown | string | ('color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography') | undefined;
25
+ };
26
+ export type Schema14 = {
27
+ id: string;
28
+ name: string;
29
+ type: string;
30
+ concepts?: Array<string>;
31
+ };
32
+ export type Schema15 = {
33
+ id: string;
34
+ name: string;
35
+ tokenIds: Array<string>;
36
+ description?: string;
37
+ };
38
+ export type Schema16 = {
39
+ id: string;
40
+ name: string;
41
+ tokenIds: Array<string>;
42
+ };
43
+ export type CdfGroupOrEntry = CdfComponent | CdfToken | CdfGroup;
44
+ export type CdfComponent = {
45
+ $type: 'component';
46
+ $description?: string;
47
+ $properties: {
48
+ [key: string]: CdfProperty;
49
+ };
50
+ $model?: CdfModelBinding;
51
+ $representationPlans?: {
52
+ [key: string]: CdfRepresentationPlan;
53
+ };
54
+ $slots?: {
55
+ [key: string]: CdfSlot;
56
+ };
57
+ };
58
+ export type CdfProperty = unknown & {
59
+ $type: 'string' | 'richtext' | 'number' | 'media' | 'link' | 'token' | 'boolean' | 'array' | 'record' | 'Integer' | 'DateTime' | 'Literal' | 'RichText' | 'JSON' | 'ResourceLink' | 'DiscriminatedUnion';
60
+ $category: 'content' | 'design' | 'state' | 'unattached';
61
+ $description?: string;
62
+ $required?: boolean;
63
+ $default?: unknown;
64
+ $values?: Array<unknown>;
65
+ $items?: CdfField;
66
+ $fields?: {
67
+ [key: string]: CdfField;
68
+ };
69
+ $sourceInput?: CdfSourceInput;
70
+ '$token.kind'?: string;
71
+ '$token.allowed'?: Array<string>;
72
+ value?: unknown;
73
+ valueType?: CdfField;
74
+ discriminator?: string;
75
+ members?: Array<CdfField>;
76
+ allowedResources?: CdfAllowedResources;
77
+ };
78
+ export type CdfField = unknown & {
79
+ $type: 'string' | 'richtext' | 'number' | 'media' | 'link' | 'token' | 'boolean' | 'array' | 'record' | 'Integer' | 'DateTime' | 'Literal' | 'RichText' | 'JSON' | 'ResourceLink' | 'DiscriminatedUnion';
80
+ $category?: 'content' | 'design' | 'state' | 'unattached';
81
+ $description?: string;
82
+ $required?: boolean;
83
+ $default?: unknown;
84
+ $values?: Array<unknown>;
85
+ $items?: CdfField;
86
+ $fields?: {
87
+ [key: string]: CdfField;
88
+ };
89
+ '$token.kind'?: string;
90
+ '$token.allowed'?: Array<string>;
91
+ value?: unknown;
92
+ valueType?: CdfField;
93
+ discriminator?: string;
94
+ members?: Array<CdfField>;
95
+ allowedResources?: CdfAllowedResources;
96
+ };
97
+ export type CdfAllowedResources = Array<unknown & {
98
+ type: 'Contentful:Entry' | 'Contentful:Asset';
99
+ source: 'crn:contentful:::content:spaces/$self/environments/$self';
100
+ allowedTypes?: Array<string>;
101
+ }>;
102
+ export type CdfSourceInput = {
103
+ schemaVersion: 1;
104
+ componentId: string;
105
+ componentDeclarationId: string;
106
+ rootSymbolId: string;
107
+ inputName: string;
108
+ inputPath: Array<string>;
109
+ };
110
+ export type CdfModelBinding = {
111
+ planId: string;
112
+ componentId: string;
113
+ propertyId: string;
114
+ nodeId: string;
115
+ sourceNodeId?: string;
116
+ };
117
+ export type CdfModelCardinality = {
118
+ min: number;
119
+ max: number | null;
120
+ ordered: boolean;
121
+ tuplePosition?: number;
122
+ rest?: boolean;
123
+ };
124
+ export type CdfTargetDefinition = {
125
+ type: 'String' | 'Number' | 'Boolean' | 'Array' | 'Record' | 'Integer' | 'DateTime' | 'RichText' | 'JSON' | 'ResourceLink' | 'Literal' | 'DiscriminatedUnion';
126
+ id?: string;
127
+ name?: string;
128
+ description?: string;
129
+ required?: boolean;
130
+ values?: Array<unknown>;
131
+ defaultValue?: unknown;
132
+ items?: CdfTargetDefinition;
133
+ fields?: {
134
+ [key: string]: CdfTargetDefinition;
135
+ };
136
+ allowedResources?: CdfAllowedResources;
137
+ value?: unknown;
138
+ valueType?: CdfTargetDefinition;
139
+ discriminator?: string;
140
+ members?: Array<CdfTargetDefinition>;
141
+ };
142
+ export type CdfRepresentationProposal = {
143
+ componentId: string;
144
+ propertyId: string;
145
+ key: string;
146
+ name: string;
147
+ sourceRevision: string;
148
+ sourceNodeIds: Array<string>;
149
+ declaredConstraints: Array<{
150
+ nodeId: string;
151
+ statement: string;
152
+ }>;
153
+ provenConstraints: Array<{
154
+ nodeId: string;
155
+ statement: string;
156
+ }>;
157
+ observations: Array<{
158
+ nodeId: string;
159
+ value: unknown;
160
+ }>;
161
+ judgment: string;
162
+ desiredType: 'String' | 'Number' | 'Boolean' | 'Array' | 'Record' | 'Integer' | 'DateTime' | 'RichText' | 'JSON' | 'ResourceLink' | 'Literal' | 'DiscriminatedUnion';
163
+ desiredDefinition: CdfTargetDefinition;
164
+ compatibility?: {
165
+ status: 'judged-compatible' | 'unresolved' | 'contradicted';
166
+ sourceUseRefs: Array<string>;
167
+ unresolvedRequirements: Array<string>;
168
+ };
169
+ };
170
+ export type CdfRepresentationPlan = {
171
+ proposal?: CdfRepresentationProposal;
172
+ schemaVersion: 1;
173
+ id: string;
174
+ kind: 'native' | 'component-model';
175
+ identity: {
176
+ componentId: string;
177
+ propertyId: string;
178
+ key: string;
179
+ sourceRevision: string;
180
+ nodeId: string;
181
+ };
182
+ logicalGraph: {
183
+ [key: string]: unknown;
184
+ };
185
+ sourceModel: {
186
+ [key: string]: unknown;
187
+ };
188
+ contextSnapshot?: unknown;
189
+ sourceDigest: string;
190
+ contextDigest: string;
191
+ category: 'content' | 'design' | 'state' | 'unattached';
192
+ defaultIntent: {
193
+ action: 'absent' | 'clear';
194
+ } | {
195
+ action: 'set';
196
+ value: unknown;
197
+ };
198
+ sourceDefault?: {
199
+ [key: string]: unknown;
200
+ };
201
+ nativeDefinition?: CdfProperty;
202
+ models: Array<{
203
+ key: string;
204
+ originalKey: string;
205
+ nodeId: string;
206
+ entry: CdfComponent;
207
+ }>;
208
+ modelExplorations?: Array<{
209
+ modelKey: string;
210
+ nodeId: string;
211
+ sourceRevision: string;
212
+ name: string;
213
+ description: string;
214
+ properties: Array<{
215
+ name: string;
216
+ description: string;
217
+ reasoning: string;
218
+ sourceNodeIds: Array<string>;
219
+ category: 'content' | 'design';
220
+ authorability: 'editable' | 'fixed' | 'uncertain';
221
+ }>;
222
+ slots: Array<{
223
+ name: string;
224
+ description: string;
225
+ reasoning: string;
226
+ sourceNodeIds: Array<string>;
227
+ }>;
228
+ modelingNotes: Array<string>;
229
+ }>;
230
+ attachment?: {
231
+ slot: string;
232
+ definition: CdfSlot;
233
+ };
234
+ mappings: Array<{
235
+ nodeId: string;
236
+ sourceNodeId?: string;
237
+ readonly?: boolean;
238
+ occurrenceReadonly?: boolean;
239
+ intrinsicReadonly?: boolean;
240
+ defaultIntent?: {
241
+ [key: string]: unknown;
242
+ };
243
+ path: Array<{
244
+ [key: string]: unknown;
245
+ }>;
246
+ required: boolean;
247
+ nullable: boolean | null;
248
+ undefinable: boolean | null;
249
+ disposition: 'native-field' | 'model' | 'slot' | 'reference' | 'reconstruction' | 'held';
250
+ reconstruction?: {
251
+ kind: 'fixed-value';
252
+ value: unknown;
253
+ } | {
254
+ kind: 'optional-value';
255
+ valueNodeId: string;
256
+ } | {
257
+ kind: 'object-envelope';
258
+ field: string;
259
+ valueNodeId: string;
260
+ } | {
261
+ kind: 'ordered-array';
262
+ itemNodeId: string;
263
+ } | {
264
+ kind: 'empty-value';
265
+ state: 'null' | 'undefined' | 'never';
266
+ };
267
+ componentKey?: string;
268
+ field?: string;
269
+ slot?: string;
270
+ targetNodeId?: string;
271
+ reason?: string;
272
+ withinValue?: {
273
+ ownerNodeId: string;
274
+ path: Array<{
275
+ [key: string]: unknown;
276
+ }>;
277
+ };
278
+ branchConditions?: Array<{
279
+ [key: string]: unknown;
280
+ }>;
281
+ variant?: {
282
+ wrapperKey: string;
283
+ slot: string;
284
+ componentKey: string;
285
+ };
286
+ }>;
287
+ issues: Array<{
288
+ path: string;
289
+ message: string;
290
+ }>;
291
+ sdkValid: boolean;
292
+ branchSelections?: Array<{
293
+ [key: string]: unknown;
294
+ }>;
295
+ requirements: Array<{
296
+ path: string;
297
+ capability: string;
298
+ }>;
299
+ };
300
+ export type CdfSlot = {
301
+ $sourceInput?: CdfSourceInput;
302
+ $modelBinding?: CdfModelBinding;
303
+ $cardinality?: CdfModelCardinality;
304
+ $description?: string;
305
+ $required?: boolean;
306
+ $allowedComponents?: Array<string>;
307
+ };
308
+ export type CdfToken = {
309
+ $type: 'color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography';
310
+ $value: unknown;
311
+ $description?: string;
312
+ };
313
+ export type CdfGroup = {
314
+ $description?: string;
315
+ [key: string]: CdfGroupOrEntry | string | undefined;
316
+ };
317
+ export type CdfComponentDefinition = {
318
+ $type: 'component';
319
+ $description?: string;
320
+ $properties: {
321
+ [key: string]: CdfProperty;
322
+ };
323
+ $model?: CdfModelBinding;
324
+ $representationPlans?: {
325
+ [key: string]: CdfRepresentationPlan;
326
+ };
327
+ $slots?: {
328
+ [key: string]: CdfSlot;
329
+ };
330
+ key: string;
331
+ };
332
+ export type CdfDocument = {
333
+ $schema: string;
334
+ allowDeletions?: boolean;
335
+ [key: string]: CdfGroupOrEntry | string | boolean | undefined;
336
+ };
337
+ export type PropertySummary = {
338
+ type: string;
339
+ category: string;
340
+ required: boolean;
341
+ default?: unknown;
342
+ definition?: CdfField;
343
+ targetDefinition?: unknown;
344
+ sourceDefinition?: unknown;
345
+ diagnostics?: Array<unknown>;
346
+ };
347
+ export type SlotSummary = {
348
+ definition?: CdfSlot;
349
+ targetDefinition?: unknown;
350
+ sourceDefinition?: unknown;
351
+ required?: boolean;
352
+ allowedComponents?: Array<string>;
353
+ metadata?: unknown;
354
+ };
355
+ export type ProjectionDiagnostic = {
356
+ componentId: string;
357
+ propertyId: string;
358
+ path: string;
359
+ outcome: 'supported' | 'conditional' | 'lossy' | 'unsupported';
360
+ code: string;
361
+ message: string;
362
+ };
363
+ export type ComponentTypeSummary = {
364
+ id: string;
365
+ name: string;
366
+ contentProperties: Array<string>;
367
+ designProperties: Array<string>;
368
+ slots: Array<string>;
369
+ targetDefinition?: unknown;
370
+ definition?: unknown;
371
+ sourceDefinition?: unknown;
372
+ fullProperties?: {
373
+ [key: string]: PropertySummary;
374
+ };
375
+ fullSlots?: {
376
+ [key: string]: SlotSummary;
377
+ };
378
+ currentSlotAllowed?: {
379
+ [key: string]: Array<string>;
380
+ };
381
+ projectionDiagnostics?: Array<ProjectionDiagnostic>;
382
+ deleteBlocked?: {
383
+ reason: 'fragment-referenced';
384
+ };
385
+ };
386
+ export type BreakingChange = {
387
+ propertyId: string;
388
+ reason: 'removed' | 'added_required_no_default' | 'type_changed' | 'validation_narrowed';
389
+ } | {
390
+ slotId: string;
391
+ reason: 'slot_removed' | 'slot_allowed_components_narrowed' | 'slot_became_required' | 'slot_added_required' | 'slot_cardinality_narrowed';
392
+ };
393
+ export type ManifestApplyRequest = {
394
+ $schema: string;
395
+ allowDeletions?: boolean;
396
+ acknowledgeBreakingChanges?: boolean;
397
+ [key: string]: CdfGroupOrEntry | string | boolean | undefined;
398
+ };
399
+ export type Schema02 = {
400
+ [key: string]: unknown;
401
+ };
402
+ export type Schema122 = {
403
+ [key: string]: unknown;
404
+ };
405
+ export type Schema22 = boolean;
406
+ export type Schema32 = boolean;
407
+ export type CdfGroupOrEntry2 = CdfComponent2 | CdfToken2 | CdfGroup2;
408
+ export type CdfComponent2 = {
409
+ $type: 'component';
410
+ $description?: string;
411
+ $properties: {
412
+ [key: string]: CdfProperty2;
413
+ };
414
+ $model?: CdfModelBinding2;
415
+ $representationPlans?: {
416
+ [key: string]: CdfRepresentationPlan2;
417
+ };
418
+ $slots?: {
419
+ [key: string]: CdfSlot2;
420
+ };
421
+ };
422
+ export type CdfProperty2 = unknown & {
423
+ $type: 'string' | 'richtext' | 'number' | 'media' | 'link' | 'token' | 'boolean' | 'array' | 'record' | 'Integer' | 'DateTime' | 'Literal' | 'RichText' | 'JSON' | 'ResourceLink' | 'DiscriminatedUnion';
424
+ $category: 'content' | 'design' | 'state' | 'unattached';
425
+ $description?: string;
426
+ $required?: boolean;
427
+ $default?: unknown;
428
+ $values?: Array<unknown>;
429
+ $items?: CdfField2;
430
+ $fields?: {
431
+ [key: string]: CdfField2;
432
+ };
433
+ $sourceInput?: CdfSourceInput2;
434
+ '$token.kind'?: string;
435
+ '$token.allowed'?: Array<string>;
436
+ value?: unknown;
437
+ valueType?: CdfField2;
438
+ discriminator?: string;
439
+ members?: Array<CdfField2>;
440
+ allowedResources?: CdfAllowedResources2;
441
+ };
442
+ export type CdfField2 = unknown & {
443
+ $type: 'string' | 'richtext' | 'number' | 'media' | 'link' | 'token' | 'boolean' | 'array' | 'record' | 'Integer' | 'DateTime' | 'Literal' | 'RichText' | 'JSON' | 'ResourceLink' | 'DiscriminatedUnion';
444
+ $category?: 'content' | 'design' | 'state' | 'unattached';
445
+ $description?: string;
446
+ $required?: boolean;
447
+ $default?: unknown;
448
+ $values?: Array<unknown>;
449
+ $items?: CdfField2;
450
+ $fields?: {
451
+ [key: string]: CdfField2;
452
+ };
453
+ '$token.kind'?: string;
454
+ '$token.allowed'?: Array<string>;
455
+ value?: unknown;
456
+ valueType?: CdfField2;
457
+ discriminator?: string;
458
+ members?: Array<CdfField2>;
459
+ allowedResources?: CdfAllowedResources2;
460
+ };
461
+ export type CdfAllowedResources2 = Array<unknown & {
462
+ type: 'Contentful:Entry' | 'Contentful:Asset';
463
+ source: 'crn:contentful:::content:spaces/$self/environments/$self';
464
+ allowedTypes?: Array<string>;
465
+ }>;
466
+ export type CdfSourceInput2 = {
467
+ schemaVersion: 1;
468
+ componentId: string;
469
+ componentDeclarationId: string;
470
+ rootSymbolId: string;
471
+ inputName: string;
472
+ inputPath: Array<string>;
473
+ };
474
+ export type CdfModelBinding2 = {
475
+ planId: string;
476
+ componentId: string;
477
+ propertyId: string;
478
+ nodeId: string;
479
+ sourceNodeId?: string;
480
+ };
481
+ export type CdfModelCardinality2 = {
482
+ min: number;
483
+ max: number | null;
484
+ ordered: boolean;
485
+ tuplePosition?: number;
486
+ rest?: boolean;
487
+ };
488
+ export type CdfTargetDefinition2 = {
489
+ type: 'String' | 'Number' | 'Boolean' | 'Array' | 'Record' | 'Integer' | 'DateTime' | 'RichText' | 'JSON' | 'ResourceLink' | 'Literal' | 'DiscriminatedUnion';
490
+ id?: string;
491
+ name?: string;
492
+ description?: string;
493
+ required?: boolean;
494
+ values?: Array<unknown>;
495
+ defaultValue?: unknown;
496
+ items?: CdfTargetDefinition2;
497
+ fields?: {
498
+ [key: string]: CdfTargetDefinition2;
499
+ };
500
+ allowedResources?: CdfAllowedResources2;
501
+ value?: unknown;
502
+ valueType?: CdfTargetDefinition2;
503
+ discriminator?: string;
504
+ members?: Array<CdfTargetDefinition2>;
505
+ };
506
+ export type CdfRepresentationProposal2 = {
507
+ componentId: string;
508
+ propertyId: string;
509
+ key: string;
510
+ name: string;
511
+ sourceRevision: string;
512
+ sourceNodeIds: Array<string>;
513
+ declaredConstraints: Array<{
514
+ nodeId: string;
515
+ statement: string;
516
+ }>;
517
+ provenConstraints: Array<{
518
+ nodeId: string;
519
+ statement: string;
520
+ }>;
521
+ observations: Array<{
522
+ nodeId: string;
523
+ value: unknown;
524
+ }>;
525
+ judgment: string;
526
+ desiredType: 'String' | 'Number' | 'Boolean' | 'Array' | 'Record' | 'Integer' | 'DateTime' | 'RichText' | 'JSON' | 'ResourceLink' | 'Literal' | 'DiscriminatedUnion';
527
+ desiredDefinition: CdfTargetDefinition2;
528
+ compatibility?: {
529
+ status: 'judged-compatible' | 'unresolved' | 'contradicted';
530
+ sourceUseRefs: Array<string>;
531
+ unresolvedRequirements: Array<string>;
532
+ };
533
+ };
534
+ export type CdfRepresentationPlan2 = {
535
+ proposal?: CdfRepresentationProposal2;
536
+ schemaVersion: 1;
537
+ id: string;
538
+ kind: 'native' | 'component-model';
539
+ identity: {
540
+ componentId: string;
541
+ propertyId: string;
542
+ key: string;
543
+ sourceRevision: string;
544
+ nodeId: string;
545
+ };
546
+ logicalGraph: {
547
+ [key: string]: unknown;
548
+ };
549
+ sourceModel: {
550
+ [key: string]: unknown;
551
+ };
552
+ contextSnapshot?: unknown;
553
+ sourceDigest: string;
554
+ contextDigest: string;
555
+ category: 'content' | 'design' | 'state' | 'unattached';
556
+ defaultIntent: {
557
+ action: 'absent' | 'clear';
558
+ } | {
559
+ action: 'set';
560
+ value: unknown;
561
+ };
562
+ sourceDefault?: {
563
+ [key: string]: unknown;
564
+ };
565
+ nativeDefinition?: CdfProperty2;
566
+ models: Array<{
567
+ key: string;
568
+ originalKey: string;
569
+ nodeId: string;
570
+ entry: CdfComponent2;
571
+ }>;
572
+ modelExplorations?: Array<{
573
+ modelKey: string;
574
+ nodeId: string;
575
+ sourceRevision: string;
576
+ name: string;
577
+ description: string;
578
+ properties: Array<{
579
+ name: string;
580
+ description: string;
581
+ reasoning: string;
582
+ sourceNodeIds: Array<string>;
583
+ category: 'content' | 'design';
584
+ authorability: 'editable' | 'fixed' | 'uncertain';
585
+ }>;
586
+ slots: Array<{
587
+ name: string;
588
+ description: string;
589
+ reasoning: string;
590
+ sourceNodeIds: Array<string>;
591
+ }>;
592
+ modelingNotes: Array<string>;
593
+ }>;
594
+ attachment?: {
595
+ slot: string;
596
+ definition: CdfSlot2;
597
+ };
598
+ mappings: Array<{
599
+ nodeId: string;
600
+ sourceNodeId?: string;
601
+ readonly?: boolean;
602
+ occurrenceReadonly?: boolean;
603
+ intrinsicReadonly?: boolean;
604
+ defaultIntent?: {
605
+ [key: string]: unknown;
606
+ };
607
+ path: Array<{
608
+ [key: string]: unknown;
609
+ }>;
610
+ required: boolean;
611
+ nullable: boolean | null;
612
+ undefinable: boolean | null;
613
+ disposition: 'native-field' | 'model' | 'slot' | 'reference' | 'reconstruction' | 'held';
614
+ reconstruction?: {
615
+ kind: 'fixed-value';
616
+ value: unknown;
617
+ } | {
618
+ kind: 'optional-value';
619
+ valueNodeId: string;
620
+ } | {
621
+ kind: 'object-envelope';
622
+ field: string;
623
+ valueNodeId: string;
624
+ } | {
625
+ kind: 'ordered-array';
626
+ itemNodeId: string;
627
+ } | {
628
+ kind: 'empty-value';
629
+ state: 'null' | 'undefined' | 'never';
630
+ };
631
+ componentKey?: string;
632
+ field?: string;
633
+ slot?: string;
634
+ targetNodeId?: string;
635
+ reason?: string;
636
+ withinValue?: {
637
+ ownerNodeId: string;
638
+ path: Array<{
639
+ [key: string]: unknown;
640
+ }>;
641
+ };
642
+ branchConditions?: Array<{
643
+ [key: string]: unknown;
644
+ }>;
645
+ variant?: {
646
+ wrapperKey: string;
647
+ slot: string;
648
+ componentKey: string;
649
+ };
650
+ }>;
651
+ issues: Array<{
652
+ path: string;
653
+ message: string;
654
+ }>;
655
+ sdkValid: boolean;
656
+ branchSelections?: Array<{
657
+ [key: string]: unknown;
658
+ }>;
659
+ requirements: Array<{
660
+ path: string;
661
+ capability: string;
662
+ }>;
663
+ };
664
+ export type CdfSlot2 = {
665
+ $sourceInput?: CdfSourceInput2;
666
+ $modelBinding?: CdfModelBinding2;
667
+ $cardinality?: CdfModelCardinality2;
668
+ $description?: string;
669
+ $required?: boolean;
670
+ $allowedComponents?: Array<string>;
671
+ };
672
+ export type CdfToken2 = {
673
+ $type: 'color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography';
674
+ $value: unknown;
675
+ $description?: string;
676
+ };
677
+ export type CdfGroup2 = {
678
+ $description?: string;
679
+ [key: string]: CdfGroupOrEntry2 | string | undefined;
680
+ };
681
+ export type CdfComponentDefinition2 = {
682
+ $type: 'component';
683
+ $description?: string;
684
+ $properties: {
685
+ [key: string]: CdfProperty2;
686
+ };
687
+ $model?: CdfModelBinding2;
688
+ $representationPlans?: {
689
+ [key: string]: CdfRepresentationPlan2;
690
+ };
691
+ $slots?: {
692
+ [key: string]: CdfSlot2;
693
+ };
694
+ key: string;
695
+ };
696
+ export type CdfDocument2 = {
697
+ $schema: string;
698
+ allowDeletions?: boolean;
699
+ [key: string]: CdfGroupOrEntry2 | string | boolean | undefined;
700
+ };
701
+ export type PropertySummary2 = {
702
+ type: string;
703
+ category: string;
704
+ required: boolean;
705
+ default?: unknown;
706
+ definition?: CdfField2;
707
+ targetDefinition?: unknown;
708
+ sourceDefinition?: unknown;
709
+ diagnostics?: Array<unknown>;
710
+ };
711
+ export type SlotSummary2 = {
712
+ definition?: CdfSlot2;
713
+ targetDefinition?: unknown;
714
+ sourceDefinition?: unknown;
715
+ required?: boolean;
716
+ allowedComponents?: Array<string>;
717
+ metadata?: unknown;
718
+ };
719
+ export type ProjectionDiagnostic2 = {
720
+ componentId: string;
721
+ propertyId: string;
722
+ path: string;
723
+ outcome: 'supported' | 'conditional' | 'lossy' | 'unsupported';
724
+ code: string;
725
+ message: string;
726
+ };
727
+ export type ComponentTypeSummary2 = {
728
+ id: string;
729
+ name: string;
730
+ contentProperties: Array<string>;
731
+ designProperties: Array<string>;
732
+ slots: Array<string>;
733
+ targetDefinition?: unknown;
734
+ definition?: unknown;
735
+ sourceDefinition?: unknown;
736
+ fullProperties?: {
737
+ [key: string]: PropertySummary2;
738
+ };
739
+ fullSlots?: {
740
+ [key: string]: SlotSummary2;
741
+ };
742
+ currentSlotAllowed?: {
743
+ [key: string]: Array<string>;
744
+ };
745
+ projectionDiagnostics?: Array<ProjectionDiagnostic2>;
746
+ deleteBlocked?: {
747
+ reason: 'fragment-referenced';
748
+ };
749
+ };
750
+ export type BreakingChange2 = {
751
+ propertyId: string;
752
+ reason: 'removed' | 'added_required_no_default' | 'type_changed' | 'validation_narrowed';
753
+ } | {
754
+ slotId: string;
755
+ reason: 'slot_removed' | 'slot_allowed_components_narrowed' | 'slot_became_required' | 'slot_added_required' | 'slot_cardinality_narrowed';
756
+ };
757
+ export type ManifestApplyRequest2 = {
758
+ $schema: string;
759
+ allowDeletions?: boolean;
760
+ acknowledgeBreakingChanges?: boolean;
761
+ [key: string]: CdfGroupOrEntry2 | string | boolean | undefined;
762
+ };
763
+ export type Schema03 = CdfComponentDefinition3;
764
+ export type Schema132 = ComponentTypeSummary3;
765
+ export type Schema23 = number;
766
+ export type Schema33 = number | null;
767
+ export type Schema42 = boolean;
768
+ export type Schema52 = number;
769
+ export type Schema62 = boolean;
770
+ export type Schema72 = 1;
771
+ export type Schema82 = string;
772
+ export type Schema92 = Array<Schema82>;
773
+ export type Schema102 = ProjectionDiagnostic3;
774
+ export type Schema112 = {
775
+ classification: 'breaking' | 'compatible';
776
+ breakingChanges: Array<BreakingChange3>;
777
+ };
778
+ export type Schema1222 = {
779
+ affectedFragments: number;
780
+ affectedExperiences: number;
781
+ referencedByFragment?: boolean;
782
+ };
783
+ export type Schema1322 = {
784
+ name: string;
785
+ $type?: 'color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography';
786
+ [key: string]: unknown | string | ('color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography') | undefined;
787
+ };
788
+ export type Schema142 = {
789
+ id: string;
790
+ name: string;
791
+ type: string;
792
+ concepts?: Array<string>;
793
+ };
794
+ export type Schema152 = {
795
+ id: string;
796
+ name: string;
797
+ tokenIds: Array<string>;
798
+ description?: string;
799
+ };
800
+ export type Schema162 = {
801
+ id: string;
802
+ name: string;
803
+ tokenIds: Array<string>;
804
+ };
805
+ export type CdfGroupOrEntry3 = CdfComponent3 | CdfToken3 | CdfGroup3;
806
+ export type CdfComponent3 = {
807
+ $type: 'component';
808
+ $description?: string;
809
+ $properties: {
810
+ [key: string]: CdfProperty3;
811
+ };
812
+ $model?: CdfModelBinding3;
813
+ $representationPlans?: {
814
+ [key: string]: CdfRepresentationPlan3;
815
+ };
816
+ $slots?: {
817
+ [key: string]: CdfSlot3;
818
+ };
819
+ };
820
+ export type CdfProperty3 = unknown & {
821
+ $type: 'string' | 'richtext' | 'number' | 'media' | 'link' | 'token' | 'boolean' | 'array' | 'record' | 'Integer' | 'DateTime' | 'Literal' | 'RichText' | 'JSON' | 'ResourceLink' | 'DiscriminatedUnion';
822
+ $category: 'content' | 'design' | 'state' | 'unattached';
823
+ $description?: string;
824
+ $required?: boolean;
825
+ $default?: unknown;
826
+ $values?: Array<unknown>;
827
+ $items?: CdfField3;
828
+ $fields?: {
829
+ [key: string]: CdfField3;
830
+ };
831
+ $sourceInput?: CdfSourceInput3;
832
+ '$token.kind'?: string;
833
+ '$token.allowed'?: Array<string>;
834
+ value?: unknown;
835
+ valueType?: CdfField3;
836
+ discriminator?: string;
837
+ members?: Array<CdfField3>;
838
+ allowedResources?: CdfAllowedResources3;
839
+ };
840
+ export type CdfField3 = unknown & {
841
+ $type: 'string' | 'richtext' | 'number' | 'media' | 'link' | 'token' | 'boolean' | 'array' | 'record' | 'Integer' | 'DateTime' | 'Literal' | 'RichText' | 'JSON' | 'ResourceLink' | 'DiscriminatedUnion';
842
+ $category?: 'content' | 'design' | 'state' | 'unattached';
843
+ $description?: string;
844
+ $required?: boolean;
845
+ $default?: unknown;
846
+ $values?: Array<unknown>;
847
+ $items?: CdfField3;
848
+ $fields?: {
849
+ [key: string]: CdfField3;
850
+ };
851
+ '$token.kind'?: string;
852
+ '$token.allowed'?: Array<string>;
853
+ value?: unknown;
854
+ valueType?: CdfField3;
855
+ discriminator?: string;
856
+ members?: Array<CdfField3>;
857
+ allowedResources?: CdfAllowedResources3;
858
+ };
859
+ export type CdfAllowedResources3 = Array<unknown & {
860
+ type: 'Contentful:Entry' | 'Contentful:Asset';
861
+ source: 'crn:contentful:::content:spaces/$self/environments/$self';
862
+ allowedTypes?: Array<string>;
863
+ }>;
864
+ export type CdfSourceInput3 = {
865
+ schemaVersion: 1;
866
+ componentId: string;
867
+ componentDeclarationId: string;
868
+ rootSymbolId: string;
869
+ inputName: string;
870
+ inputPath: Array<string>;
871
+ };
872
+ export type CdfModelBinding3 = {
873
+ planId: string;
874
+ componentId: string;
875
+ propertyId: string;
876
+ nodeId: string;
877
+ sourceNodeId?: string;
878
+ };
879
+ export type CdfModelCardinality3 = {
880
+ min: number;
881
+ max: number | null;
882
+ ordered: boolean;
883
+ tuplePosition?: number;
884
+ rest?: boolean;
885
+ };
886
+ export type CdfTargetDefinition3 = {
887
+ type: 'String' | 'Number' | 'Boolean' | 'Array' | 'Record' | 'Integer' | 'DateTime' | 'RichText' | 'JSON' | 'ResourceLink' | 'Literal' | 'DiscriminatedUnion';
888
+ id?: string;
889
+ name?: string;
890
+ description?: string;
891
+ required?: boolean;
892
+ values?: Array<unknown>;
893
+ defaultValue?: unknown;
894
+ items?: CdfTargetDefinition3;
895
+ fields?: {
896
+ [key: string]: CdfTargetDefinition3;
897
+ };
898
+ allowedResources?: CdfAllowedResources3;
899
+ value?: unknown;
900
+ valueType?: CdfTargetDefinition3;
901
+ discriminator?: string;
902
+ members?: Array<CdfTargetDefinition3>;
903
+ };
904
+ export type CdfRepresentationProposal3 = {
905
+ componentId: string;
906
+ propertyId: string;
907
+ key: string;
908
+ name: string;
909
+ sourceRevision: string;
910
+ sourceNodeIds: Array<string>;
911
+ declaredConstraints: Array<{
912
+ nodeId: string;
913
+ statement: string;
914
+ }>;
915
+ provenConstraints: Array<{
916
+ nodeId: string;
917
+ statement: string;
918
+ }>;
919
+ observations: Array<{
920
+ nodeId: string;
921
+ value: unknown;
922
+ }>;
923
+ judgment: string;
924
+ desiredType: 'String' | 'Number' | 'Boolean' | 'Array' | 'Record' | 'Integer' | 'DateTime' | 'RichText' | 'JSON' | 'ResourceLink' | 'Literal' | 'DiscriminatedUnion';
925
+ desiredDefinition: CdfTargetDefinition3;
926
+ compatibility?: {
927
+ status: 'judged-compatible' | 'unresolved' | 'contradicted';
928
+ sourceUseRefs: Array<string>;
929
+ unresolvedRequirements: Array<string>;
930
+ };
931
+ };
932
+ export type CdfRepresentationPlan3 = {
933
+ proposal?: CdfRepresentationProposal3;
934
+ schemaVersion: 1;
935
+ id: string;
936
+ kind: 'native' | 'component-model';
937
+ identity: {
938
+ componentId: string;
939
+ propertyId: string;
940
+ key: string;
941
+ sourceRevision: string;
942
+ nodeId: string;
943
+ };
944
+ logicalGraph: {
945
+ [key: string]: unknown;
946
+ };
947
+ sourceModel: {
948
+ [key: string]: unknown;
949
+ };
950
+ contextSnapshot?: unknown;
951
+ sourceDigest: string;
952
+ contextDigest: string;
953
+ category: 'content' | 'design' | 'state' | 'unattached';
954
+ defaultIntent: {
955
+ action: 'absent' | 'clear';
956
+ } | {
957
+ action: 'set';
958
+ value: unknown;
959
+ };
960
+ sourceDefault?: {
961
+ [key: string]: unknown;
962
+ };
963
+ nativeDefinition?: CdfProperty3;
964
+ models: Array<{
965
+ key: string;
966
+ originalKey: string;
967
+ nodeId: string;
968
+ entry: CdfComponent3;
969
+ }>;
970
+ modelExplorations?: Array<{
971
+ modelKey: string;
972
+ nodeId: string;
973
+ sourceRevision: string;
974
+ name: string;
975
+ description: string;
976
+ properties: Array<{
977
+ name: string;
978
+ description: string;
979
+ reasoning: string;
980
+ sourceNodeIds: Array<string>;
981
+ category: 'content' | 'design';
982
+ authorability: 'editable' | 'fixed' | 'uncertain';
983
+ }>;
984
+ slots: Array<{
985
+ name: string;
986
+ description: string;
987
+ reasoning: string;
988
+ sourceNodeIds: Array<string>;
989
+ }>;
990
+ modelingNotes: Array<string>;
991
+ }>;
992
+ attachment?: {
993
+ slot: string;
994
+ definition: CdfSlot3;
995
+ };
996
+ mappings: Array<{
997
+ nodeId: string;
998
+ sourceNodeId?: string;
999
+ readonly?: boolean;
1000
+ occurrenceReadonly?: boolean;
1001
+ intrinsicReadonly?: boolean;
1002
+ defaultIntent?: {
1003
+ [key: string]: unknown;
1004
+ };
1005
+ path: Array<{
1006
+ [key: string]: unknown;
1007
+ }>;
1008
+ required: boolean;
1009
+ nullable: boolean | null;
1010
+ undefinable: boolean | null;
1011
+ disposition: 'native-field' | 'model' | 'slot' | 'reference' | 'reconstruction' | 'held';
1012
+ reconstruction?: {
1013
+ kind: 'fixed-value';
1014
+ value: unknown;
1015
+ } | {
1016
+ kind: 'optional-value';
1017
+ valueNodeId: string;
1018
+ } | {
1019
+ kind: 'object-envelope';
1020
+ field: string;
1021
+ valueNodeId: string;
1022
+ } | {
1023
+ kind: 'ordered-array';
1024
+ itemNodeId: string;
1025
+ } | {
1026
+ kind: 'empty-value';
1027
+ state: 'null' | 'undefined' | 'never';
1028
+ };
1029
+ componentKey?: string;
1030
+ field?: string;
1031
+ slot?: string;
1032
+ targetNodeId?: string;
1033
+ reason?: string;
1034
+ withinValue?: {
1035
+ ownerNodeId: string;
1036
+ path: Array<{
1037
+ [key: string]: unknown;
1038
+ }>;
1039
+ };
1040
+ branchConditions?: Array<{
1041
+ [key: string]: unknown;
1042
+ }>;
1043
+ variant?: {
1044
+ wrapperKey: string;
1045
+ slot: string;
1046
+ componentKey: string;
1047
+ };
1048
+ }>;
1049
+ issues: Array<{
1050
+ path: string;
1051
+ message: string;
1052
+ }>;
1053
+ sdkValid: boolean;
1054
+ branchSelections?: Array<{
1055
+ [key: string]: unknown;
1056
+ }>;
1057
+ requirements: Array<{
1058
+ path: string;
1059
+ capability: string;
1060
+ }>;
1061
+ };
1062
+ export type CdfSlot3 = {
1063
+ $sourceInput?: CdfSourceInput3;
1064
+ $modelBinding?: CdfModelBinding3;
1065
+ $cardinality?: CdfModelCardinality3;
1066
+ $description?: string;
1067
+ $required?: boolean;
1068
+ $allowedComponents?: Array<string>;
1069
+ };
1070
+ export type CdfToken3 = {
1071
+ $type: 'color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography';
1072
+ $value: unknown;
1073
+ $description?: string;
1074
+ };
1075
+ export type CdfGroup3 = {
1076
+ $description?: string;
1077
+ [key: string]: CdfGroupOrEntry3 | string | undefined;
1078
+ };
1079
+ export type CdfComponentDefinition3 = {
1080
+ $type: 'component';
1081
+ $description?: string;
1082
+ $properties: {
1083
+ [key: string]: CdfProperty3;
1084
+ };
1085
+ $model?: CdfModelBinding3;
1086
+ $representationPlans?: {
1087
+ [key: string]: CdfRepresentationPlan3;
1088
+ };
1089
+ $slots?: {
1090
+ [key: string]: CdfSlot3;
1091
+ };
1092
+ key: string;
1093
+ };
1094
+ export type CdfDocument3 = {
1095
+ $schema: string;
1096
+ allowDeletions?: boolean;
1097
+ [key: string]: CdfGroupOrEntry3 | string | boolean | undefined;
1098
+ };
1099
+ export type PropertySummary3 = {
1100
+ type: string;
1101
+ category: string;
1102
+ required: boolean;
1103
+ default?: unknown;
1104
+ definition?: CdfField3;
1105
+ targetDefinition?: unknown;
1106
+ sourceDefinition?: unknown;
1107
+ diagnostics?: Array<unknown>;
1108
+ };
1109
+ export type SlotSummary3 = {
1110
+ definition?: CdfSlot3;
1111
+ targetDefinition?: unknown;
1112
+ sourceDefinition?: unknown;
1113
+ required?: boolean;
1114
+ allowedComponents?: Array<string>;
1115
+ metadata?: unknown;
1116
+ };
1117
+ export type ProjectionDiagnostic3 = {
1118
+ componentId: string;
1119
+ propertyId: string;
1120
+ path: string;
1121
+ outcome: 'supported' | 'conditional' | 'lossy' | 'unsupported';
1122
+ code: string;
1123
+ message: string;
1124
+ };
1125
+ export type ComponentTypeSummary3 = {
1126
+ id: string;
1127
+ name: string;
1128
+ contentProperties: Array<string>;
1129
+ designProperties: Array<string>;
1130
+ slots: Array<string>;
1131
+ targetDefinition?: unknown;
1132
+ definition?: unknown;
1133
+ sourceDefinition?: unknown;
1134
+ fullProperties?: {
1135
+ [key: string]: PropertySummary3;
1136
+ };
1137
+ fullSlots?: {
1138
+ [key: string]: SlotSummary3;
1139
+ };
1140
+ currentSlotAllowed?: {
1141
+ [key: string]: Array<string>;
1142
+ };
1143
+ projectionDiagnostics?: Array<ProjectionDiagnostic3>;
1144
+ deleteBlocked?: {
1145
+ reason: 'fragment-referenced';
1146
+ };
1147
+ };
1148
+ export type BreakingChange3 = {
1149
+ propertyId: string;
1150
+ reason: 'removed' | 'added_required_no_default' | 'type_changed' | 'validation_narrowed';
1151
+ } | {
1152
+ slotId: string;
1153
+ reason: 'slot_removed' | 'slot_allowed_components_narrowed' | 'slot_became_required' | 'slot_added_required' | 'slot_cardinality_narrowed';
1154
+ };
1155
+ export type ManifestApplyRequest3 = {
1156
+ $schema: string;
1157
+ allowDeletions?: boolean;
1158
+ acknowledgeBreakingChanges?: boolean;
1159
+ [key: string]: CdfGroupOrEntry3 | string | boolean | undefined;
1160
+ };
1161
+ export type Schema04 = {
1162
+ [key: string]: unknown;
1163
+ };
1164
+ export type Schema143 = {
1165
+ [key: string]: unknown;
1166
+ };
1167
+ export type Schema24 = boolean;
1168
+ export type Schema34 = boolean;
1169
+ export type Schema43 = 'Component';
1170
+ export type Schema53 = CdfComponentDefinition4;
1171
+ export type Schema63 = 'DesignToken';
1172
+ export type Schema73 = {
1173
+ path: string;
1174
+ $type: 'color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography';
1175
+ $value: unknown;
1176
+ $description?: string;
1177
+ };
1178
+ export type CdfGroupOrEntry4 = CdfComponent4 | CdfToken4 | CdfGroup4;
1179
+ export type CdfComponent4 = {
1180
+ $type: 'component';
1181
+ $description?: string;
1182
+ $properties: {
1183
+ [key: string]: CdfProperty4;
1184
+ };
1185
+ $model?: CdfModelBinding4;
1186
+ $representationPlans?: {
1187
+ [key: string]: CdfRepresentationPlan4;
1188
+ };
1189
+ $slots?: {
1190
+ [key: string]: CdfSlot4;
1191
+ };
1192
+ };
1193
+ export type CdfProperty4 = unknown & {
1194
+ $type: 'string' | 'richtext' | 'number' | 'media' | 'link' | 'token' | 'boolean' | 'array' | 'record' | 'Integer' | 'DateTime' | 'Literal' | 'RichText' | 'JSON' | 'ResourceLink' | 'DiscriminatedUnion';
1195
+ $category: 'content' | 'design' | 'state' | 'unattached';
1196
+ $description?: string;
1197
+ $required?: boolean;
1198
+ $default?: unknown;
1199
+ $values?: Array<unknown>;
1200
+ $items?: CdfField4;
1201
+ $fields?: {
1202
+ [key: string]: CdfField4;
1203
+ };
1204
+ $sourceInput?: CdfSourceInput4;
1205
+ '$token.kind'?: string;
1206
+ '$token.allowed'?: Array<string>;
1207
+ value?: unknown;
1208
+ valueType?: CdfField4;
1209
+ discriminator?: string;
1210
+ members?: Array<CdfField4>;
1211
+ allowedResources?: CdfAllowedResources4;
1212
+ };
1213
+ export type CdfField4 = unknown & {
1214
+ $type: 'string' | 'richtext' | 'number' | 'media' | 'link' | 'token' | 'boolean' | 'array' | 'record' | 'Integer' | 'DateTime' | 'Literal' | 'RichText' | 'JSON' | 'ResourceLink' | 'DiscriminatedUnion';
1215
+ $category?: 'content' | 'design' | 'state' | 'unattached';
1216
+ $description?: string;
1217
+ $required?: boolean;
1218
+ $default?: unknown;
1219
+ $values?: Array<unknown>;
1220
+ $items?: CdfField4;
1221
+ $fields?: {
1222
+ [key: string]: CdfField4;
1223
+ };
1224
+ '$token.kind'?: string;
1225
+ '$token.allowed'?: Array<string>;
1226
+ value?: unknown;
1227
+ valueType?: CdfField4;
1228
+ discriminator?: string;
1229
+ members?: Array<CdfField4>;
1230
+ allowedResources?: CdfAllowedResources4;
1231
+ };
1232
+ export type CdfAllowedResources4 = Array<unknown & {
1233
+ type: 'Contentful:Entry' | 'Contentful:Asset';
1234
+ source: 'crn:contentful:::content:spaces/$self/environments/$self';
1235
+ allowedTypes?: Array<string>;
1236
+ }>;
1237
+ export type CdfSourceInput4 = {
1238
+ schemaVersion: 1;
1239
+ componentId: string;
1240
+ componentDeclarationId: string;
1241
+ rootSymbolId: string;
1242
+ inputName: string;
1243
+ inputPath: Array<string>;
1244
+ };
1245
+ export type CdfModelBinding4 = {
1246
+ planId: string;
1247
+ componentId: string;
1248
+ propertyId: string;
1249
+ nodeId: string;
1250
+ sourceNodeId?: string;
1251
+ };
1252
+ export type CdfModelCardinality4 = {
1253
+ min: number;
1254
+ max: number | null;
1255
+ ordered: boolean;
1256
+ tuplePosition?: number;
1257
+ rest?: boolean;
1258
+ };
1259
+ export type CdfTargetDefinition4 = {
1260
+ type: 'String' | 'Number' | 'Boolean' | 'Array' | 'Record' | 'Integer' | 'DateTime' | 'RichText' | 'JSON' | 'ResourceLink' | 'Literal' | 'DiscriminatedUnion';
1261
+ id?: string;
1262
+ name?: string;
1263
+ description?: string;
1264
+ required?: boolean;
1265
+ values?: Array<unknown>;
1266
+ defaultValue?: unknown;
1267
+ items?: CdfTargetDefinition4;
1268
+ fields?: {
1269
+ [key: string]: CdfTargetDefinition4;
1270
+ };
1271
+ allowedResources?: CdfAllowedResources4;
1272
+ value?: unknown;
1273
+ valueType?: CdfTargetDefinition4;
1274
+ discriminator?: string;
1275
+ members?: Array<CdfTargetDefinition4>;
1276
+ };
1277
+ export type CdfRepresentationProposal4 = {
1278
+ componentId: string;
1279
+ propertyId: string;
1280
+ key: string;
1281
+ name: string;
1282
+ sourceRevision: string;
1283
+ sourceNodeIds: Array<string>;
1284
+ declaredConstraints: Array<{
1285
+ nodeId: string;
1286
+ statement: string;
1287
+ }>;
1288
+ provenConstraints: Array<{
1289
+ nodeId: string;
1290
+ statement: string;
1291
+ }>;
1292
+ observations: Array<{
1293
+ nodeId: string;
1294
+ value: unknown;
1295
+ }>;
1296
+ judgment: string;
1297
+ desiredType: 'String' | 'Number' | 'Boolean' | 'Array' | 'Record' | 'Integer' | 'DateTime' | 'RichText' | 'JSON' | 'ResourceLink' | 'Literal' | 'DiscriminatedUnion';
1298
+ desiredDefinition: CdfTargetDefinition4;
1299
+ compatibility?: {
1300
+ status: 'judged-compatible' | 'unresolved' | 'contradicted';
1301
+ sourceUseRefs: Array<string>;
1302
+ unresolvedRequirements: Array<string>;
1303
+ };
1304
+ };
1305
+ export type CdfRepresentationPlan4 = {
1306
+ proposal?: CdfRepresentationProposal4;
1307
+ schemaVersion: 1;
1308
+ id: string;
1309
+ kind: 'native' | 'component-model';
1310
+ identity: {
1311
+ componentId: string;
1312
+ propertyId: string;
1313
+ key: string;
1314
+ sourceRevision: string;
1315
+ nodeId: string;
1316
+ };
1317
+ logicalGraph: {
1318
+ [key: string]: unknown;
1319
+ };
1320
+ sourceModel: {
1321
+ [key: string]: unknown;
1322
+ };
1323
+ contextSnapshot?: unknown;
1324
+ sourceDigest: string;
1325
+ contextDigest: string;
1326
+ category: 'content' | 'design' | 'state' | 'unattached';
1327
+ defaultIntent: {
1328
+ action: 'absent' | 'clear';
1329
+ } | {
1330
+ action: 'set';
1331
+ value: unknown;
1332
+ };
1333
+ sourceDefault?: {
1334
+ [key: string]: unknown;
1335
+ };
1336
+ nativeDefinition?: CdfProperty4;
1337
+ models: Array<{
1338
+ key: string;
1339
+ originalKey: string;
1340
+ nodeId: string;
1341
+ entry: CdfComponent4;
1342
+ }>;
1343
+ modelExplorations?: Array<{
1344
+ modelKey: string;
1345
+ nodeId: string;
1346
+ sourceRevision: string;
1347
+ name: string;
1348
+ description: string;
1349
+ properties: Array<{
1350
+ name: string;
1351
+ description: string;
1352
+ reasoning: string;
1353
+ sourceNodeIds: Array<string>;
1354
+ category: 'content' | 'design';
1355
+ authorability: 'editable' | 'fixed' | 'uncertain';
1356
+ }>;
1357
+ slots: Array<{
1358
+ name: string;
1359
+ description: string;
1360
+ reasoning: string;
1361
+ sourceNodeIds: Array<string>;
1362
+ }>;
1363
+ modelingNotes: Array<string>;
1364
+ }>;
1365
+ attachment?: {
1366
+ slot: string;
1367
+ definition: CdfSlot4;
1368
+ };
1369
+ mappings: Array<{
1370
+ nodeId: string;
1371
+ sourceNodeId?: string;
1372
+ readonly?: boolean;
1373
+ occurrenceReadonly?: boolean;
1374
+ intrinsicReadonly?: boolean;
1375
+ defaultIntent?: {
1376
+ [key: string]: unknown;
1377
+ };
1378
+ path: Array<{
1379
+ [key: string]: unknown;
1380
+ }>;
1381
+ required: boolean;
1382
+ nullable: boolean | null;
1383
+ undefinable: boolean | null;
1384
+ disposition: 'native-field' | 'model' | 'slot' | 'reference' | 'reconstruction' | 'held';
1385
+ reconstruction?: {
1386
+ kind: 'fixed-value';
1387
+ value: unknown;
1388
+ } | {
1389
+ kind: 'optional-value';
1390
+ valueNodeId: string;
1391
+ } | {
1392
+ kind: 'object-envelope';
1393
+ field: string;
1394
+ valueNodeId: string;
1395
+ } | {
1396
+ kind: 'ordered-array';
1397
+ itemNodeId: string;
1398
+ } | {
1399
+ kind: 'empty-value';
1400
+ state: 'null' | 'undefined' | 'never';
1401
+ };
1402
+ componentKey?: string;
1403
+ field?: string;
1404
+ slot?: string;
1405
+ targetNodeId?: string;
1406
+ reason?: string;
1407
+ withinValue?: {
1408
+ ownerNodeId: string;
1409
+ path: Array<{
1410
+ [key: string]: unknown;
1411
+ }>;
1412
+ };
1413
+ branchConditions?: Array<{
1414
+ [key: string]: unknown;
1415
+ }>;
1416
+ variant?: {
1417
+ wrapperKey: string;
1418
+ slot: string;
1419
+ componentKey: string;
1420
+ };
1421
+ }>;
1422
+ issues: Array<{
1423
+ path: string;
1424
+ message: string;
1425
+ }>;
1426
+ sdkValid: boolean;
1427
+ branchSelections?: Array<{
1428
+ [key: string]: unknown;
1429
+ }>;
1430
+ requirements: Array<{
1431
+ path: string;
1432
+ capability: string;
1433
+ }>;
1434
+ };
1435
+ export type CdfSlot4 = {
1436
+ $sourceInput?: CdfSourceInput4;
1437
+ $modelBinding?: CdfModelBinding4;
1438
+ $cardinality?: CdfModelCardinality4;
1439
+ $description?: string;
1440
+ $required?: boolean;
1441
+ $allowedComponents?: Array<string>;
1442
+ };
1443
+ export type CdfToken4 = {
1444
+ $type: 'color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography';
1445
+ $value: unknown;
1446
+ $description?: string;
1447
+ };
1448
+ export type CdfGroup4 = {
1449
+ $description?: string;
1450
+ [key: string]: CdfGroupOrEntry4 | string | undefined;
1451
+ };
1452
+ export type CdfComponentDefinition4 = {
1453
+ $type: 'component';
1454
+ $description?: string;
1455
+ $properties: {
1456
+ [key: string]: CdfProperty4;
1457
+ };
1458
+ $model?: CdfModelBinding4;
1459
+ $representationPlans?: {
1460
+ [key: string]: CdfRepresentationPlan4;
1461
+ };
1462
+ $slots?: {
1463
+ [key: string]: CdfSlot4;
1464
+ };
1465
+ key: string;
1466
+ };
1467
+ export type CdfDocument4 = {
1468
+ $schema: string;
1469
+ allowDeletions?: boolean;
1470
+ [key: string]: CdfGroupOrEntry4 | string | boolean | undefined;
1471
+ };
1472
+ export type PropertySummary4 = {
1473
+ type: string;
1474
+ category: string;
1475
+ required: boolean;
1476
+ default?: unknown;
1477
+ definition?: CdfField4;
1478
+ targetDefinition?: unknown;
1479
+ sourceDefinition?: unknown;
1480
+ diagnostics?: Array<unknown>;
1481
+ };
1482
+ export type SlotSummary4 = {
1483
+ definition?: CdfSlot4;
1484
+ targetDefinition?: unknown;
1485
+ sourceDefinition?: unknown;
1486
+ required?: boolean;
1487
+ allowedComponents?: Array<string>;
1488
+ metadata?: unknown;
1489
+ };
1490
+ export type ProjectionDiagnostic4 = {
1491
+ componentId: string;
1492
+ propertyId: string;
1493
+ path: string;
1494
+ outcome: 'supported' | 'conditional' | 'lossy' | 'unsupported';
1495
+ code: string;
1496
+ message: string;
1497
+ };
1498
+ export type ComponentTypeSummary4 = {
1499
+ id: string;
1500
+ name: string;
1501
+ contentProperties: Array<string>;
1502
+ designProperties: Array<string>;
1503
+ slots: Array<string>;
1504
+ targetDefinition?: unknown;
1505
+ definition?: unknown;
1506
+ sourceDefinition?: unknown;
1507
+ fullProperties?: {
1508
+ [key: string]: PropertySummary4;
1509
+ };
1510
+ fullSlots?: {
1511
+ [key: string]: SlotSummary4;
1512
+ };
1513
+ currentSlotAllowed?: {
1514
+ [key: string]: Array<string>;
1515
+ };
1516
+ projectionDiagnostics?: Array<ProjectionDiagnostic4>;
1517
+ deleteBlocked?: {
1518
+ reason: 'fragment-referenced';
1519
+ };
1520
+ };
1521
+ export type BreakingChange4 = {
1522
+ propertyId: string;
1523
+ reason: 'removed' | 'added_required_no_default' | 'type_changed' | 'validation_narrowed';
1524
+ } | {
1525
+ slotId: string;
1526
+ reason: 'slot_removed' | 'slot_allowed_components_narrowed' | 'slot_became_required' | 'slot_added_required' | 'slot_cardinality_narrowed';
1527
+ };
1528
+ export type ManifestApplyRequest4 = {
1529
+ $schema: string;
1530
+ allowDeletions?: boolean;
1531
+ acknowledgeBreakingChanges?: boolean;
1532
+ [key: string]: CdfGroupOrEntry4 | string | boolean | undefined;
1533
+ };
1
1534
  export type DesignSystemSourceDeleteData = {
2
1535
  body?: never;
3
1536
  path: {
@@ -2144,6 +3677,36 @@ export type DesignSystemImportCreateErrors = {
2144
3677
  * 422
2145
3678
  */
2146
3679
  422: {
3680
+ sys: {
3681
+ id: 'UnprocessableEntity';
3682
+ type: 'Error';
3683
+ };
3684
+ message?: string;
3685
+ requestId?: string;
3686
+ details?: unknown;
3687
+ i18nContext?: {
3688
+ code: string;
3689
+ pluralCount?: number;
3690
+ parameters?: {
3691
+ [key: string]: {
3692
+ type: 'string';
3693
+ value: string;
3694
+ } | {
3695
+ type: 'number';
3696
+ value: number;
3697
+ } | {
3698
+ type: 'date';
3699
+ value: string;
3700
+ } | {
3701
+ type: 'array.string';
3702
+ value: Array<string>;
3703
+ } | {
3704
+ type: 'array.number';
3705
+ value: Array<number>;
3706
+ };
3707
+ };
3708
+ };
3709
+ } | {
2147
3710
  sys: {
2148
3711
  type: 'Error';
2149
3712
  id: 'ValidationFailed';
@@ -2291,155 +3854,43 @@ export type DesignSystemImportCreateResponses = {
2291
3854
  };
2292
3855
  };
2293
3856
  components: {
2294
- new: Array<{
2295
- key: string;
2296
- [key: string]: unknown | string;
2297
- }>;
3857
+ new: Array<CdfComponentDefinition>;
2298
3858
  changed: Array<{
2299
- current: {
2300
- id: string;
2301
- name: string;
2302
- contentProperties: Array<string>;
2303
- designProperties: Array<string>;
2304
- slots: Array<string>;
2305
- fullProperties?: {
2306
- [key: string]: {
2307
- type: string;
2308
- category: string;
2309
- required: boolean;
2310
- default?: unknown;
2311
- };
2312
- };
2313
- deleteBlocked?: {
2314
- reason: 'fragment-referenced';
2315
- };
2316
- };
2317
- proposed: {
2318
- key: string;
2319
- [key: string]: unknown | string;
2320
- };
3859
+ current: ComponentTypeSummary;
3860
+ proposed: CdfComponentDefinition;
2321
3861
  hasPendingDraftChanges: boolean;
2322
- changeClassification?: {
2323
- classification: 'breaking' | 'compatible';
2324
- breakingChanges: Array<{
2325
- propertyId: string;
2326
- reason: 'removed' | 'added_required_no_default' | 'type_changed' | 'validation_narrowed';
2327
- } | {
2328
- slotId: string;
2329
- reason: 'slot_removed' | 'slot_allowed_components_narrowed';
2330
- }>;
2331
- };
2332
- impact?: {
2333
- affectedFragments: number;
2334
- affectedExperiences: number;
2335
- referencedByFragment?: boolean;
2336
- };
3862
+ changeClassification?: Schema11;
3863
+ impact?: Schema12;
3864
+ projectionDiagnostics?: Array<Schema10>;
2337
3865
  }>;
2338
3866
  unchanged: Array<string>;
2339
- removed: Array<{
2340
- id: string;
2341
- name: string;
2342
- contentProperties: Array<string>;
2343
- designProperties: Array<string>;
2344
- slots: Array<string>;
2345
- fullProperties?: {
2346
- [key: string]: {
2347
- type: string;
2348
- category: string;
2349
- required: boolean;
2350
- default?: unknown;
2351
- };
2352
- };
2353
- deleteBlocked?: {
2354
- reason: 'fragment-referenced';
2355
- };
2356
- }>;
3867
+ removed: Array<ComponentTypeSummary>;
2357
3868
  };
2358
3869
  tokens: {
2359
- new: Array<{
2360
- name: string;
2361
- $type?: 'color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography';
2362
- [key: string]: unknown | string | ('color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography') | undefined;
2363
- }>;
3870
+ new: Array<Schema13>;
2364
3871
  changed: Array<{
2365
- current: {
2366
- id: string;
2367
- name: string;
2368
- type: string;
2369
- concepts?: Array<string>;
2370
- };
2371
- proposed: {
2372
- name: string;
2373
- $type?: 'color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography';
2374
- [key: string]: unknown | string | ('color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography') | undefined;
2375
- };
3872
+ current: Schema14;
3873
+ proposed: Schema13;
2376
3874
  hasPendingDraftChanges: boolean;
2377
- changeClassification?: {
2378
- classification: 'breaking' | 'compatible';
2379
- breakingChanges: Array<{
2380
- propertyId: string;
2381
- reason: 'removed' | 'added_required_no_default' | 'type_changed' | 'validation_narrowed';
2382
- } | {
2383
- slotId: string;
2384
- reason: 'slot_removed' | 'slot_allowed_components_narrowed';
2385
- }>;
2386
- };
2387
- impact?: {
2388
- affectedFragments: number;
2389
- affectedExperiences: number;
2390
- referencedByFragment?: boolean;
2391
- };
3875
+ changeClassification?: Schema11;
3876
+ impact?: Schema12;
3877
+ projectionDiagnostics?: Array<ProjectionDiagnostic>;
2392
3878
  }>;
2393
3879
  unchanged: Array<string>;
2394
- removed: Array<{
2395
- id: string;
2396
- name: string;
2397
- type: string;
2398
- concepts?: Array<string>;
2399
- }>;
3880
+ removed: Array<Schema14>;
2400
3881
  };
2401
3882
  taxonomies: {
2402
- new: Array<{
2403
- id: string;
2404
- name: string;
2405
- tokenIds: Array<string>;
2406
- description?: string;
2407
- }>;
3883
+ new: Array<Schema15>;
2408
3884
  changed: Array<{
2409
- current: {
2410
- id: string;
2411
- name: string;
2412
- tokenIds: Array<string>;
2413
- };
2414
- proposed: {
2415
- id: string;
2416
- name: string;
2417
- tokenIds: Array<string>;
2418
- description?: string;
2419
- };
3885
+ current: Schema16;
3886
+ proposed: Schema15;
2420
3887
  hasPendingDraftChanges: boolean;
2421
- changeClassification?: {
2422
- classification: 'breaking' | 'compatible';
2423
- breakingChanges: Array<{
2424
- propertyId: string;
2425
- reason: 'removed' | 'added_required_no_default' | 'type_changed' | 'validation_narrowed';
2426
- } | {
2427
- slotId: string;
2428
- reason: 'slot_removed' | 'slot_allowed_components_narrowed';
2429
- }>;
2430
- };
2431
- impact?: {
2432
- affectedFragments: number;
2433
- affectedExperiences: number;
2434
- referencedByFragment?: boolean;
2435
- };
3888
+ changeClassification?: Schema11;
3889
+ impact?: Schema12;
3890
+ projectionDiagnostics?: Array<Schema10>;
2436
3891
  }>;
2437
3892
  unchanged: Array<string>;
2438
- removed: Array<{
2439
- id: string;
2440
- name: string;
2441
- tokenIds: Array<string>;
2442
- }>;
3893
+ removed: Array<Schema16>;
2443
3894
  };
2444
3895
  };
2445
3896
  };
@@ -2448,18 +3899,11 @@ export type DesignSystemImportSourcelessPreviewData = {
2448
3899
  /**
2449
3900
  * Body
2450
3901
  */
2451
- body?: {
2452
- allowDeletions?: boolean;
2453
- [key: string]: boolean | undefined;
2454
- } | {
2455
- componentsManifest?: {
2456
- [key: string]: unknown;
2457
- };
2458
- tokensManifest?: {
2459
- [key: string]: unknown;
2460
- };
2461
- acknowledgeBreakingChanges?: boolean;
2462
- allowDeletions?: boolean;
3902
+ body?: CdfDocument2 | {
3903
+ componentsManifest?: Schema02;
3904
+ tokensManifest?: Schema122;
3905
+ acknowledgeBreakingChanges?: Schema22;
3906
+ allowDeletions?: Schema32;
2463
3907
  };
2464
3908
  path: {
2465
3909
  spaceId: string;
@@ -2652,6 +4096,36 @@ export type DesignSystemImportSourcelessPreviewErrors = {
2652
4096
  * 422
2653
4097
  */
2654
4098
  422: {
4099
+ sys: {
4100
+ id: 'UnprocessableEntity';
4101
+ type: 'Error';
4102
+ };
4103
+ message?: string;
4104
+ requestId?: string;
4105
+ details?: unknown;
4106
+ i18nContext?: {
4107
+ code: string;
4108
+ pluralCount?: number;
4109
+ parameters?: {
4110
+ [key: string]: {
4111
+ type: 'string';
4112
+ value: string;
4113
+ } | {
4114
+ type: 'number';
4115
+ value: number;
4116
+ } | {
4117
+ type: 'date';
4118
+ value: string;
4119
+ } | {
4120
+ type: 'array.string';
4121
+ value: Array<string>;
4122
+ } | {
4123
+ type: 'array.number';
4124
+ value: Array<number>;
4125
+ };
4126
+ };
4127
+ };
4128
+ } | {
2655
4129
  sys: {
2656
4130
  type: 'Error';
2657
4131
  id: 'ValidationFailed';
@@ -2730,155 +4204,43 @@ export type DesignSystemImportSourcelessPreviewResponses = {
2730
4204
  */
2731
4205
  200: {
2732
4206
  components: {
2733
- new: Array<{
2734
- key: string;
2735
- [key: string]: unknown | string;
2736
- }>;
4207
+ new: Array<CdfComponentDefinition3>;
2737
4208
  changed: Array<{
2738
- current: {
2739
- id: string;
2740
- name: string;
2741
- contentProperties: Array<string>;
2742
- designProperties: Array<string>;
2743
- slots: Array<string>;
2744
- fullProperties?: {
2745
- [key: string]: {
2746
- type: string;
2747
- category: string;
2748
- required: boolean;
2749
- default?: unknown;
2750
- };
2751
- };
2752
- deleteBlocked?: {
2753
- reason: 'fragment-referenced';
2754
- };
2755
- };
2756
- proposed: {
2757
- key: string;
2758
- [key: string]: unknown | string;
2759
- };
4209
+ current: ComponentTypeSummary3;
4210
+ proposed: CdfComponentDefinition3;
2760
4211
  hasPendingDraftChanges: boolean;
2761
- changeClassification?: {
2762
- classification: 'breaking' | 'compatible';
2763
- breakingChanges: Array<{
2764
- propertyId: string;
2765
- reason: 'removed' | 'added_required_no_default' | 'type_changed' | 'validation_narrowed';
2766
- } | {
2767
- slotId: string;
2768
- reason: 'slot_removed' | 'slot_allowed_components_narrowed';
2769
- }>;
2770
- };
2771
- impact?: {
2772
- affectedFragments: number;
2773
- affectedExperiences: number;
2774
- referencedByFragment?: boolean;
2775
- };
4212
+ changeClassification?: Schema112;
4213
+ impact?: Schema1222;
4214
+ projectionDiagnostics?: Array<Schema102>;
2776
4215
  }>;
2777
4216
  unchanged: Array<string>;
2778
- removed: Array<{
2779
- id: string;
2780
- name: string;
2781
- contentProperties: Array<string>;
2782
- designProperties: Array<string>;
2783
- slots: Array<string>;
2784
- fullProperties?: {
2785
- [key: string]: {
2786
- type: string;
2787
- category: string;
2788
- required: boolean;
2789
- default?: unknown;
2790
- };
2791
- };
2792
- deleteBlocked?: {
2793
- reason: 'fragment-referenced';
2794
- };
2795
- }>;
4217
+ removed: Array<ComponentTypeSummary3>;
2796
4218
  };
2797
4219
  tokens: {
2798
- new: Array<{
2799
- name: string;
2800
- $type?: 'color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography';
2801
- [key: string]: unknown | string | ('color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography') | undefined;
2802
- }>;
4220
+ new: Array<Schema1322>;
2803
4221
  changed: Array<{
2804
- current: {
2805
- id: string;
2806
- name: string;
2807
- type: string;
2808
- concepts?: Array<string>;
2809
- };
2810
- proposed: {
2811
- name: string;
2812
- $type?: 'color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography';
2813
- [key: string]: unknown | string | ('color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography') | undefined;
2814
- };
4222
+ current: Schema142;
4223
+ proposed: Schema1322;
2815
4224
  hasPendingDraftChanges: boolean;
2816
- changeClassification?: {
2817
- classification: 'breaking' | 'compatible';
2818
- breakingChanges: Array<{
2819
- propertyId: string;
2820
- reason: 'removed' | 'added_required_no_default' | 'type_changed' | 'validation_narrowed';
2821
- } | {
2822
- slotId: string;
2823
- reason: 'slot_removed' | 'slot_allowed_components_narrowed';
2824
- }>;
2825
- };
2826
- impact?: {
2827
- affectedFragments: number;
2828
- affectedExperiences: number;
2829
- referencedByFragment?: boolean;
2830
- };
4225
+ changeClassification?: Schema112;
4226
+ impact?: Schema1222;
4227
+ projectionDiagnostics?: Array<ProjectionDiagnostic3>;
2831
4228
  }>;
2832
4229
  unchanged: Array<string>;
2833
- removed: Array<{
2834
- id: string;
2835
- name: string;
2836
- type: string;
2837
- concepts?: Array<string>;
2838
- }>;
4230
+ removed: Array<Schema142>;
2839
4231
  };
2840
4232
  taxonomies: {
2841
- new: Array<{
2842
- id: string;
2843
- name: string;
2844
- tokenIds: Array<string>;
2845
- description?: string;
2846
- }>;
4233
+ new: Array<Schema152>;
2847
4234
  changed: Array<{
2848
- current: {
2849
- id: string;
2850
- name: string;
2851
- tokenIds: Array<string>;
2852
- };
2853
- proposed: {
2854
- id: string;
2855
- name: string;
2856
- tokenIds: Array<string>;
2857
- description?: string;
2858
- };
4235
+ current: Schema162;
4236
+ proposed: Schema152;
2859
4237
  hasPendingDraftChanges: boolean;
2860
- changeClassification?: {
2861
- classification: 'breaking' | 'compatible';
2862
- breakingChanges: Array<{
2863
- propertyId: string;
2864
- reason: 'removed' | 'added_required_no_default' | 'type_changed' | 'validation_narrowed';
2865
- } | {
2866
- slotId: string;
2867
- reason: 'slot_removed' | 'slot_allowed_components_narrowed';
2868
- }>;
2869
- };
2870
- impact?: {
2871
- affectedFragments: number;
2872
- affectedExperiences: number;
2873
- referencedByFragment?: boolean;
2874
- };
4238
+ changeClassification?: Schema112;
4239
+ impact?: Schema1222;
4240
+ projectionDiagnostics?: Array<Schema102>;
2875
4241
  }>;
2876
4242
  unchanged: Array<string>;
2877
- removed: Array<{
2878
- id: string;
2879
- name: string;
2880
- tokenIds: Array<string>;
2881
- }>;
4243
+ removed: Array<Schema162>;
2882
4244
  };
2883
4245
  };
2884
4246
  };
@@ -2887,91 +4249,27 @@ export type DesignSystemImportApplyData = {
2887
4249
  /**
2888
4250
  * Body
2889
4251
  */
2890
- body?: {
2891
- allowDeletions?: boolean;
2892
- acknowledgeBreakingChanges?: boolean;
2893
- [key: string]: boolean | undefined;
2894
- } | {
2895
- componentsManifest?: {
2896
- [key: string]: unknown;
2897
- };
2898
- tokensManifest?: {
2899
- [key: string]: unknown;
2900
- };
2901
- acknowledgeBreakingChanges?: boolean;
2902
- allowDeletions?: boolean;
4252
+ body?: ManifestApplyRequest4 | {
4253
+ componentsManifest?: Schema04;
4254
+ tokensManifest?: Schema143;
4255
+ acknowledgeBreakingChanges?: Schema24;
4256
+ allowDeletions?: Schema34;
2903
4257
  } | {
2904
4258
  sourceId?: string;
2905
4259
  create: Array<{
2906
- entityType: 'Component';
2907
- definition: {
2908
- $type: 'component';
2909
- $description?: string;
2910
- $properties: {
2911
- [key: string]: {
2912
- $type: 'string' | 'richtext' | 'number' | 'media' | 'link' | 'enum' | 'token' | 'boolean';
2913
- $category: 'content' | 'design' | 'state' | 'unattached';
2914
- $description?: string;
2915
- $required?: boolean;
2916
- $default?: unknown;
2917
- $values?: Array<string>;
2918
- '$token.kind'?: string;
2919
- '$token.allowed'?: Array<string>;
2920
- };
2921
- };
2922
- $slots?: {
2923
- [key: string]: {
2924
- $description?: string;
2925
- $allowedComponents?: Array<string>;
2926
- $required?: boolean;
2927
- };
2928
- };
2929
- key: string;
2930
- };
4260
+ entityType: Schema43;
4261
+ definition: CdfComponentDefinition4;
2931
4262
  } | {
2932
- entityType: 'DesignToken';
2933
- definition: {
2934
- path: string;
2935
- $type: 'color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography';
2936
- $value: unknown;
2937
- $description?: string;
2938
- };
4263
+ entityType: Schema63;
4264
+ definition: Schema73;
2939
4265
  }>;
2940
4266
  update: Array<{
2941
- entityType: 'Component';
2942
- definition: {
2943
- $type: 'component';
2944
- $description?: string;
2945
- $properties: {
2946
- [key: string]: {
2947
- $type: 'string' | 'richtext' | 'number' | 'media' | 'link' | 'enum' | 'token' | 'boolean';
2948
- $category: 'content' | 'design' | 'state' | 'unattached';
2949
- $description?: string;
2950
- $required?: boolean;
2951
- $default?: unknown;
2952
- $values?: Array<string>;
2953
- '$token.kind'?: string;
2954
- '$token.allowed'?: Array<string>;
2955
- };
2956
- };
2957
- $slots?: {
2958
- [key: string]: {
2959
- $description?: string;
2960
- $allowedComponents?: Array<string>;
2961
- $required?: boolean;
2962
- };
2963
- };
2964
- key: string;
2965
- };
4267
+ entityType: Schema43;
4268
+ definition: CdfComponentDefinition4;
2966
4269
  id: string;
2967
4270
  } | {
2968
- entityType: 'DesignToken';
2969
- definition: {
2970
- path: string;
2971
- $type: 'color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier' | 'number' | 'strokeStyle' | 'border' | 'transition' | 'shadow' | 'gradient' | 'typography';
2972
- $value: unknown;
2973
- $description?: string;
2974
- };
4271
+ entityType: Schema63;
4272
+ definition: Schema73;
2975
4273
  id: string;
2976
4274
  }>;
2977
4275
  delete: Array<{