@vcp-dev/contracts 0.4.8 → 0.6.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,971 @@
1
+ import { z } from "zod";
2
+ export declare const SiteEditPageCompositionErrorCodeSchema: z.ZodEnum<{
3
+ VERSION_STALE: "VERSION_STALE";
4
+ RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
5
+ MULTIPLE_PAGE_RETURNS: "MULTIPLE_PAGE_RETURNS";
6
+ INDIRECT_RETURN_ONLY: "INDIRECT_RETURN_ONLY";
7
+ PAGE_CONTAINER_AMBIGUOUS: "PAGE_CONTAINER_AMBIGUOUS";
8
+ NO_SAFE_PAGE_PLACEMENT: "NO_SAFE_PAGE_PLACEMENT";
9
+ MEMBER_NOT_INDEPENDENT: "MEMBER_NOT_INDEPENDENT";
10
+ UNSUPPORTED_ROUTE_STRUCTURE: "UNSUPPORTED_ROUTE_STRUCTURE";
11
+ RUNTIME_ANCHOR_UNRESOLVED: "RUNTIME_ANCHOR_UNRESOLVED";
12
+ ROUTE_RETURN_NOT_FOUND: "ROUTE_RETURN_NOT_FOUND";
13
+ }>;
14
+ export type SiteEditPageCompositionErrorCode = z.infer<typeof SiteEditPageCompositionErrorCodeSchema>;
15
+ export declare const SiteEditPageCompositionDiagnosticSchema: z.ZodObject<{
16
+ code: z.ZodString;
17
+ message: z.ZodString;
18
+ }, z.core.$strict>;
19
+ export type SiteEditPageCompositionDiagnostic = z.infer<typeof SiteEditPageCompositionDiagnosticSchema>;
20
+ export declare const SiteEditPageCompositionContainerSchema: z.ZodUnion<readonly [z.ZodObject<{
21
+ kind: z.ZodLiteral<"virtual-route-root">;
22
+ key: z.ZodString;
23
+ }, z.core.$strict>, z.ZodObject<{
24
+ kind: z.ZodLiteral<"jsx-container">;
25
+ key: z.ZodString;
26
+ sourceMemberKey: z.ZodString;
27
+ sourceFile: z.ZodString;
28
+ componentName: z.ZodOptional<z.ZodString>;
29
+ }, z.core.$strict>, z.ZodObject<{
30
+ kind: z.ZodLiteral<"starter-placeholder">;
31
+ key: z.ZodString;
32
+ sourceFile: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strict>]>;
34
+ export type SiteEditPageCompositionContainer = z.infer<typeof SiteEditPageCompositionContainerSchema>;
35
+ export declare const SiteEditPageCompositionSourceMemberSchema: z.ZodObject<{
36
+ key: z.ZodString;
37
+ kind: z.ZodEnum<{
38
+ "starter-placeholder": "starter-placeholder";
39
+ "jsx-element": "jsx-element";
40
+ "jsx-fragment": "jsx-fragment";
41
+ "jsx-expression": "jsx-expression";
42
+ "null-return": "null-return";
43
+ }>;
44
+ containerKey: z.ZodString;
45
+ label: z.ZodString;
46
+ sourceFile: z.ZodOptional<z.ZodString>;
47
+ isAtomic: z.ZodBoolean;
48
+ }, z.core.$strict>;
49
+ export type SiteEditPageCompositionSourceMember = z.infer<typeof SiteEditPageCompositionSourceMemberSchema>;
50
+ export declare const SiteEditPageCompositionBusinessMemberSchema: z.ZodObject<{
51
+ key: z.ZodString;
52
+ sourceMemberKey: z.ZodString;
53
+ containerKey: z.ZodString;
54
+ label: z.ZodString;
55
+ isIndependent: z.ZodBoolean;
56
+ }, z.core.$strict>;
57
+ export type SiteEditPageCompositionBusinessMember = z.infer<typeof SiteEditPageCompositionBusinessMemberSchema>;
58
+ export declare const SiteEditPageCompositionPlacementUnitSchema: z.ZodObject<{
59
+ key: z.ZodString;
60
+ containerKey: z.ZodString;
61
+ businessMemberKeys: z.ZodArray<z.ZodString>;
62
+ isMultiMember: z.ZodBoolean;
63
+ }, z.core.$strict>;
64
+ export type SiteEditPageCompositionPlacementUnit = z.infer<typeof SiteEditPageCompositionPlacementUnitSchema>;
65
+ export declare const SiteEditPagePlacementSchema: z.ZodObject<{
66
+ kind: z.ZodLiteral<"page-composition">;
67
+ placementKey: z.ZodString;
68
+ documentVersion: z.ZodNumber;
69
+ }, z.core.$strict>;
70
+ export type SiteEditPagePlacement = z.infer<typeof SiteEditPagePlacementSchema>;
71
+ export declare const SiteEditPagePlacementOptionSchema: z.ZodObject<{
72
+ kind: z.ZodLiteral<"page-composition">;
73
+ placementKey: z.ZodString;
74
+ documentVersion: z.ZodNumber;
75
+ routeId: z.ZodString;
76
+ placementUnitKey: z.ZodString;
77
+ relation: z.ZodEnum<{
78
+ before: "before";
79
+ after: "after";
80
+ prepend: "prepend";
81
+ append: "append";
82
+ }>;
83
+ }, z.core.$strict>;
84
+ export type SiteEditPagePlacementOption = z.infer<typeof SiteEditPagePlacementOptionSchema>;
85
+ export declare const SiteEditPageCompositionPlacementTargetSchema: z.ZodObject<{
86
+ kind: z.ZodLiteral<"page-composition">;
87
+ placementKey: z.ZodString;
88
+ documentVersion: z.ZodNumber;
89
+ routeId: z.ZodString;
90
+ placementUnitKey: z.ZodString;
91
+ relation: z.ZodEnum<{
92
+ before: "before";
93
+ after: "after";
94
+ prepend: "prepend";
95
+ append: "append";
96
+ }>;
97
+ }, z.core.$strict>;
98
+ export type SiteEditPageCompositionPlacementTarget = z.infer<typeof SiteEditPageCompositionPlacementTargetSchema>;
99
+ export declare const SiteEditPageUnitTargetSchema: z.ZodObject<{
100
+ kind: z.ZodLiteral<"page-unit">;
101
+ routeId: z.ZodString;
102
+ placementUnitKey: z.ZodString;
103
+ }, z.core.$strict>;
104
+ export type SiteEditPageUnitTarget = z.infer<typeof SiteEditPageUnitTargetSchema>;
105
+ export declare const SiteEditPageCompositionSupportedSchema: z.ZodObject<{
106
+ status: z.ZodLiteral<"supported">;
107
+ version: z.ZodNumber;
108
+ routeId: z.ZodString;
109
+ container: z.ZodUnion<readonly [z.ZodObject<{
110
+ kind: z.ZodLiteral<"virtual-route-root">;
111
+ key: z.ZodString;
112
+ }, z.core.$strict>, z.ZodObject<{
113
+ kind: z.ZodLiteral<"jsx-container">;
114
+ key: z.ZodString;
115
+ sourceMemberKey: z.ZodString;
116
+ sourceFile: z.ZodString;
117
+ componentName: z.ZodOptional<z.ZodString>;
118
+ }, z.core.$strict>, z.ZodObject<{
119
+ kind: z.ZodLiteral<"starter-placeholder">;
120
+ key: z.ZodString;
121
+ sourceFile: z.ZodOptional<z.ZodString>;
122
+ }, z.core.$strict>]>;
123
+ sourceMembers: z.ZodArray<z.ZodObject<{
124
+ key: z.ZodString;
125
+ kind: z.ZodEnum<{
126
+ "starter-placeholder": "starter-placeholder";
127
+ "jsx-element": "jsx-element";
128
+ "jsx-fragment": "jsx-fragment";
129
+ "jsx-expression": "jsx-expression";
130
+ "null-return": "null-return";
131
+ }>;
132
+ containerKey: z.ZodString;
133
+ label: z.ZodString;
134
+ sourceFile: z.ZodOptional<z.ZodString>;
135
+ isAtomic: z.ZodBoolean;
136
+ }, z.core.$strict>>;
137
+ businessMembers: z.ZodArray<z.ZodObject<{
138
+ key: z.ZodString;
139
+ sourceMemberKey: z.ZodString;
140
+ containerKey: z.ZodString;
141
+ label: z.ZodString;
142
+ isIndependent: z.ZodBoolean;
143
+ }, z.core.$strict>>;
144
+ placementUnits: z.ZodArray<z.ZodObject<{
145
+ key: z.ZodString;
146
+ containerKey: z.ZodString;
147
+ businessMemberKeys: z.ZodArray<z.ZodString>;
148
+ isMultiMember: z.ZodBoolean;
149
+ }, z.core.$strict>>;
150
+ placements: z.ZodArray<z.ZodObject<{
151
+ kind: z.ZodLiteral<"page-composition">;
152
+ placementKey: z.ZodString;
153
+ documentVersion: z.ZodNumber;
154
+ routeId: z.ZodString;
155
+ placementUnitKey: z.ZodString;
156
+ relation: z.ZodEnum<{
157
+ before: "before";
158
+ after: "after";
159
+ prepend: "prepend";
160
+ append: "append";
161
+ }>;
162
+ }, z.core.$strict>>;
163
+ }, z.core.$strict>;
164
+ export type SiteEditPageCompositionSupported = z.infer<typeof SiteEditPageCompositionSupportedSchema>;
165
+ export declare const SiteEditPageCompositionUnsupportedSchema: z.ZodObject<{
166
+ status: z.ZodLiteral<"unsupported">;
167
+ version: z.ZodNumber;
168
+ routeId: z.ZodString;
169
+ reason: z.ZodEnum<{
170
+ VERSION_STALE: "VERSION_STALE";
171
+ RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
172
+ MULTIPLE_PAGE_RETURNS: "MULTIPLE_PAGE_RETURNS";
173
+ INDIRECT_RETURN_ONLY: "INDIRECT_RETURN_ONLY";
174
+ PAGE_CONTAINER_AMBIGUOUS: "PAGE_CONTAINER_AMBIGUOUS";
175
+ NO_SAFE_PAGE_PLACEMENT: "NO_SAFE_PAGE_PLACEMENT";
176
+ MEMBER_NOT_INDEPENDENT: "MEMBER_NOT_INDEPENDENT";
177
+ UNSUPPORTED_ROUTE_STRUCTURE: "UNSUPPORTED_ROUTE_STRUCTURE";
178
+ RUNTIME_ANCHOR_UNRESOLVED: "RUNTIME_ANCHOR_UNRESOLVED";
179
+ ROUTE_RETURN_NOT_FOUND: "ROUTE_RETURN_NOT_FOUND";
180
+ }>;
181
+ diagnostics: z.ZodArray<z.ZodObject<{
182
+ code: z.ZodString;
183
+ message: z.ZodString;
184
+ }, z.core.$strict>>;
185
+ }, z.core.$strict>;
186
+ export type SiteEditPageCompositionUnsupported = z.infer<typeof SiteEditPageCompositionUnsupportedSchema>;
187
+ export declare const SiteEditPageCompositionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
188
+ status: z.ZodLiteral<"supported">;
189
+ version: z.ZodNumber;
190
+ routeId: z.ZodString;
191
+ container: z.ZodUnion<readonly [z.ZodObject<{
192
+ kind: z.ZodLiteral<"virtual-route-root">;
193
+ key: z.ZodString;
194
+ }, z.core.$strict>, z.ZodObject<{
195
+ kind: z.ZodLiteral<"jsx-container">;
196
+ key: z.ZodString;
197
+ sourceMemberKey: z.ZodString;
198
+ sourceFile: z.ZodString;
199
+ componentName: z.ZodOptional<z.ZodString>;
200
+ }, z.core.$strict>, z.ZodObject<{
201
+ kind: z.ZodLiteral<"starter-placeholder">;
202
+ key: z.ZodString;
203
+ sourceFile: z.ZodOptional<z.ZodString>;
204
+ }, z.core.$strict>]>;
205
+ sourceMembers: z.ZodArray<z.ZodObject<{
206
+ key: z.ZodString;
207
+ kind: z.ZodEnum<{
208
+ "starter-placeholder": "starter-placeholder";
209
+ "jsx-element": "jsx-element";
210
+ "jsx-fragment": "jsx-fragment";
211
+ "jsx-expression": "jsx-expression";
212
+ "null-return": "null-return";
213
+ }>;
214
+ containerKey: z.ZodString;
215
+ label: z.ZodString;
216
+ sourceFile: z.ZodOptional<z.ZodString>;
217
+ isAtomic: z.ZodBoolean;
218
+ }, z.core.$strict>>;
219
+ businessMembers: z.ZodArray<z.ZodObject<{
220
+ key: z.ZodString;
221
+ sourceMemberKey: z.ZodString;
222
+ containerKey: z.ZodString;
223
+ label: z.ZodString;
224
+ isIndependent: z.ZodBoolean;
225
+ }, z.core.$strict>>;
226
+ placementUnits: z.ZodArray<z.ZodObject<{
227
+ key: z.ZodString;
228
+ containerKey: z.ZodString;
229
+ businessMemberKeys: z.ZodArray<z.ZodString>;
230
+ isMultiMember: z.ZodBoolean;
231
+ }, z.core.$strict>>;
232
+ placements: z.ZodArray<z.ZodObject<{
233
+ kind: z.ZodLiteral<"page-composition">;
234
+ placementKey: z.ZodString;
235
+ documentVersion: z.ZodNumber;
236
+ routeId: z.ZodString;
237
+ placementUnitKey: z.ZodString;
238
+ relation: z.ZodEnum<{
239
+ before: "before";
240
+ after: "after";
241
+ prepend: "prepend";
242
+ append: "append";
243
+ }>;
244
+ }, z.core.$strict>>;
245
+ }, z.core.$strict>, z.ZodObject<{
246
+ status: z.ZodLiteral<"unsupported">;
247
+ version: z.ZodNumber;
248
+ routeId: z.ZodString;
249
+ reason: z.ZodEnum<{
250
+ VERSION_STALE: "VERSION_STALE";
251
+ RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
252
+ MULTIPLE_PAGE_RETURNS: "MULTIPLE_PAGE_RETURNS";
253
+ INDIRECT_RETURN_ONLY: "INDIRECT_RETURN_ONLY";
254
+ PAGE_CONTAINER_AMBIGUOUS: "PAGE_CONTAINER_AMBIGUOUS";
255
+ NO_SAFE_PAGE_PLACEMENT: "NO_SAFE_PAGE_PLACEMENT";
256
+ MEMBER_NOT_INDEPENDENT: "MEMBER_NOT_INDEPENDENT";
257
+ UNSUPPORTED_ROUTE_STRUCTURE: "UNSUPPORTED_ROUTE_STRUCTURE";
258
+ RUNTIME_ANCHOR_UNRESOLVED: "RUNTIME_ANCHOR_UNRESOLVED";
259
+ ROUTE_RETURN_NOT_FOUND: "ROUTE_RETURN_NOT_FOUND";
260
+ }>;
261
+ diagnostics: z.ZodArray<z.ZodObject<{
262
+ code: z.ZodString;
263
+ message: z.ZodString;
264
+ }, z.core.$strict>>;
265
+ }, z.core.$strict>], "status">;
266
+ export type SiteEditPageComposition = z.infer<typeof SiteEditPageCompositionSchema>;
267
+ export declare const SITE_EDIT_PAGE_COMPOSITION_SCHEMA_VERSION: 2;
268
+ export declare const SITE_EDIT_PAGE_COMPOSITION_V2_CAPABILITY: "page-composition-v2";
269
+ export declare const SiteEditPageCompositionSourceRangeSchema: z.ZodObject<{
270
+ start: z.ZodNumber;
271
+ end: z.ZodNumber;
272
+ startLine: z.ZodOptional<z.ZodNumber>;
273
+ startColumn: z.ZodOptional<z.ZodNumber>;
274
+ endLine: z.ZodOptional<z.ZodNumber>;
275
+ endColumn: z.ZodOptional<z.ZodNumber>;
276
+ }, z.core.$strict>;
277
+ export type SiteEditPageCompositionSourceRange = z.infer<typeof SiteEditPageCompositionSourceRangeSchema>;
278
+ export declare const SiteEditPageCompositionRuntimeRefSchema: z.ZodObject<{
279
+ key: z.ZodString;
280
+ instanceIndex: z.ZodOptional<z.ZodNumber>;
281
+ instanceCount: z.ZodOptional<z.ZodNumber>;
282
+ textSegmentIndex: z.ZodOptional<z.ZodNumber>;
283
+ }, z.core.$strict>;
284
+ export type SiteEditPageCompositionRuntimeRef = z.infer<typeof SiteEditPageCompositionRuntimeRefSchema>;
285
+ export declare const SiteEditPageCompositionSourceMemberKindSchema: z.ZodEnum<{
286
+ text: "text";
287
+ "starter-placeholder": "starter-placeholder";
288
+ "component-call": "component-call";
289
+ "native-jsx": "native-jsx";
290
+ "dynamic-expression": "dynamic-expression";
291
+ "indirect-expression": "indirect-expression";
292
+ }>;
293
+ export type SiteEditPageCompositionSourceMemberKind = z.infer<typeof SiteEditPageCompositionSourceMemberKindSchema>;
294
+ export declare const SiteEditPageCompositionAtomicKindSchema: z.ZodEnum<{
295
+ text: "text";
296
+ "starter-placeholder": "starter-placeholder";
297
+ "dynamic-expression": "dynamic-expression";
298
+ "indirect-expression": "indirect-expression";
299
+ none: "none";
300
+ }>;
301
+ export type SiteEditPageCompositionAtomicKind = z.infer<typeof SiteEditPageCompositionAtomicKindSchema>;
302
+ export declare const SiteEditPageCompositionV2ContainerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
303
+ kind: z.ZodLiteral<"virtual-route-root">;
304
+ key: z.ZodNull;
305
+ routeReturn: z.ZodObject<{
306
+ sourceIdentity: z.ZodObject<{
307
+ file: z.ZodString;
308
+ component: z.ZodString;
309
+ structuralPath: z.ZodString;
310
+ key: z.ZodString;
311
+ }, z.core.$strip>;
312
+ sourceRange: z.ZodObject<{
313
+ start: z.ZodNumber;
314
+ end: z.ZodNumber;
315
+ startLine: z.ZodOptional<z.ZodNumber>;
316
+ startColumn: z.ZodOptional<z.ZodNumber>;
317
+ endLine: z.ZodOptional<z.ZodNumber>;
318
+ endColumn: z.ZodOptional<z.ZodNumber>;
319
+ }, z.core.$strict>;
320
+ }, z.core.$strict>;
321
+ }, z.core.$strict>, z.ZodObject<{
322
+ kind: z.ZodLiteral<"jsx-container">;
323
+ key: z.ZodString;
324
+ sourceMemberKey: z.ZodString;
325
+ }, z.core.$strict>, z.ZodObject<{
326
+ kind: z.ZodLiteral<"starter-placeholder">;
327
+ key: z.ZodString;
328
+ sourceMemberKey: z.ZodString;
329
+ replacementMode: z.ZodLiteral<"replace">;
330
+ }, z.core.$strict>], "kind">;
331
+ export type SiteEditPageCompositionV2Container = z.infer<typeof SiteEditPageCompositionV2ContainerSchema>;
332
+ export declare const SiteEditPageCompositionV2SourceMemberSchema: z.ZodObject<{
333
+ key: z.ZodString;
334
+ kind: z.ZodEnum<{
335
+ text: "text";
336
+ "starter-placeholder": "starter-placeholder";
337
+ "component-call": "component-call";
338
+ "native-jsx": "native-jsx";
339
+ "dynamic-expression": "dynamic-expression";
340
+ "indirect-expression": "indirect-expression";
341
+ }>;
342
+ parentKey: z.ZodNullable<z.ZodString>;
343
+ childKeys: z.ZodArray<z.ZodString>;
344
+ order: z.ZodNumber;
345
+ label: z.ZodString;
346
+ sourceIdentity: z.ZodObject<{
347
+ file: z.ZodString;
348
+ component: z.ZodString;
349
+ structuralPath: z.ZodString;
350
+ key: z.ZodString;
351
+ }, z.core.$strip>;
352
+ sourceRange: z.ZodNullable<z.ZodObject<{
353
+ start: z.ZodNumber;
354
+ end: z.ZodNumber;
355
+ startLine: z.ZodOptional<z.ZodNumber>;
356
+ startColumn: z.ZodOptional<z.ZodNumber>;
357
+ endLine: z.ZodOptional<z.ZodNumber>;
358
+ endColumn: z.ZodOptional<z.ZodNumber>;
359
+ }, z.core.$strict>>;
360
+ atomicKind: z.ZodEnum<{
361
+ text: "text";
362
+ "starter-placeholder": "starter-placeholder";
363
+ "dynamic-expression": "dynamic-expression";
364
+ "indirect-expression": "indirect-expression";
365
+ none: "none";
366
+ }>;
367
+ }, z.core.$strict>;
368
+ export type SiteEditPageCompositionV2SourceMember = z.infer<typeof SiteEditPageCompositionV2SourceMemberSchema>;
369
+ export declare const SiteEditPageCompositionV2BusinessMemberSchema: z.ZodObject<{
370
+ key: z.ZodString;
371
+ sourceMemberKey: z.ZodString;
372
+ placementUnitKey: z.ZodString;
373
+ label: z.ZodString;
374
+ isIndependent: z.ZodBoolean;
375
+ }, z.core.$strict>;
376
+ export type SiteEditPageCompositionV2BusinessMember = z.infer<typeof SiteEditPageCompositionV2BusinessMemberSchema>;
377
+ export declare const SiteEditPageCompositionBoundaryModeSchema: z.ZodEnum<{
378
+ container: "container";
379
+ independent: "independent";
380
+ atomic: "atomic";
381
+ }>;
382
+ export type SiteEditPageCompositionBoundaryMode = z.infer<typeof SiteEditPageCompositionBoundaryModeSchema>;
383
+ export declare const SiteEditPageCompositionV2PlacementUnitSchema: z.ZodObject<{
384
+ key: z.ZodString;
385
+ containerKey: z.ZodNullable<z.ZodString>;
386
+ sourceMemberKeys: z.ZodArray<z.ZodString>;
387
+ businessMemberKeys: z.ZodArray<z.ZodString>;
388
+ order: z.ZodNumber;
389
+ boundaryMode: z.ZodEnum<{
390
+ container: "container";
391
+ independent: "independent";
392
+ atomic: "atomic";
393
+ }>;
394
+ isIndependent: z.ZodBoolean;
395
+ isMultiMember: z.ZodBoolean;
396
+ }, z.core.$strict>;
397
+ export type SiteEditPageCompositionV2PlacementUnit = z.infer<typeof SiteEditPageCompositionV2PlacementUnitSchema>;
398
+ export declare const SiteEditPageCompositionV2PlacementRelationSchema: z.ZodEnum<{
399
+ replace: "replace";
400
+ before: "before";
401
+ after: "after";
402
+ prepend: "prepend";
403
+ append: "append";
404
+ }>;
405
+ export type SiteEditPageCompositionV2PlacementRelation = z.infer<typeof SiteEditPageCompositionV2PlacementRelationSchema>;
406
+ export declare const SiteEditPageCompositionV2WriteModeSchema: z.ZodEnum<{
407
+ "insert-sibling": "insert-sibling";
408
+ "insert-child": "insert-child";
409
+ "replace-placeholder": "replace-placeholder";
410
+ }>;
411
+ export type SiteEditPageCompositionV2WriteMode = z.infer<typeof SiteEditPageCompositionV2WriteModeSchema>;
412
+ export declare const SiteEditPageCompositionV2PlacementSchema: z.ZodObject<{
413
+ kind: z.ZodLiteral<"page-composition">;
414
+ placementKey: z.ZodString;
415
+ documentVersion: z.ZodNumber;
416
+ routeId: z.ZodString;
417
+ placementUnitKey: z.ZodString;
418
+ containerKey: z.ZodNullable<z.ZodString>;
419
+ relation: z.ZodEnum<{
420
+ replace: "replace";
421
+ before: "before";
422
+ after: "after";
423
+ prepend: "prepend";
424
+ append: "append";
425
+ }>;
426
+ writeMode: z.ZodEnum<{
427
+ "insert-sibling": "insert-sibling";
428
+ "insert-child": "insert-child";
429
+ "replace-placeholder": "replace-placeholder";
430
+ }>;
431
+ }, z.core.$strict>;
432
+ export type SiteEditPageCompositionV2Placement = z.infer<typeof SiteEditPageCompositionV2PlacementSchema>;
433
+ export declare const SiteEditPageCompositionVisualAnchorSchema: z.ZodObject<{
434
+ key: z.ZodString;
435
+ placementUnitKey: z.ZodString;
436
+ runtimeRefs: z.ZodArray<z.ZodObject<{
437
+ key: z.ZodString;
438
+ instanceIndex: z.ZodOptional<z.ZodNumber>;
439
+ instanceCount: z.ZodOptional<z.ZodNumber>;
440
+ textSegmentIndex: z.ZodOptional<z.ZodNumber>;
441
+ }, z.core.$strict>>;
442
+ }, z.core.$strict>;
443
+ export type SiteEditPageCompositionVisualAnchor = z.infer<typeof SiteEditPageCompositionVisualAnchorSchema>;
444
+ export declare const SiteEditPageCompositionV2SupportedSchema: z.ZodObject<{
445
+ schemaVersion: z.ZodLiteral<2>;
446
+ status: z.ZodLiteral<"supported">;
447
+ version: z.ZodNumber;
448
+ routeId: z.ZodString;
449
+ container: z.ZodDiscriminatedUnion<[z.ZodObject<{
450
+ kind: z.ZodLiteral<"virtual-route-root">;
451
+ key: z.ZodNull;
452
+ routeReturn: z.ZodObject<{
453
+ sourceIdentity: z.ZodObject<{
454
+ file: z.ZodString;
455
+ component: z.ZodString;
456
+ structuralPath: z.ZodString;
457
+ key: z.ZodString;
458
+ }, z.core.$strip>;
459
+ sourceRange: z.ZodObject<{
460
+ start: z.ZodNumber;
461
+ end: z.ZodNumber;
462
+ startLine: z.ZodOptional<z.ZodNumber>;
463
+ startColumn: z.ZodOptional<z.ZodNumber>;
464
+ endLine: z.ZodOptional<z.ZodNumber>;
465
+ endColumn: z.ZodOptional<z.ZodNumber>;
466
+ }, z.core.$strict>;
467
+ }, z.core.$strict>;
468
+ }, z.core.$strict>, z.ZodObject<{
469
+ kind: z.ZodLiteral<"jsx-container">;
470
+ key: z.ZodString;
471
+ sourceMemberKey: z.ZodString;
472
+ }, z.core.$strict>, z.ZodObject<{
473
+ kind: z.ZodLiteral<"starter-placeholder">;
474
+ key: z.ZodString;
475
+ sourceMemberKey: z.ZodString;
476
+ replacementMode: z.ZodLiteral<"replace">;
477
+ }, z.core.$strict>], "kind">;
478
+ sourceMembers: z.ZodArray<z.ZodObject<{
479
+ key: z.ZodString;
480
+ kind: z.ZodEnum<{
481
+ text: "text";
482
+ "starter-placeholder": "starter-placeholder";
483
+ "component-call": "component-call";
484
+ "native-jsx": "native-jsx";
485
+ "dynamic-expression": "dynamic-expression";
486
+ "indirect-expression": "indirect-expression";
487
+ }>;
488
+ parentKey: z.ZodNullable<z.ZodString>;
489
+ childKeys: z.ZodArray<z.ZodString>;
490
+ order: z.ZodNumber;
491
+ label: z.ZodString;
492
+ sourceIdentity: z.ZodObject<{
493
+ file: z.ZodString;
494
+ component: z.ZodString;
495
+ structuralPath: z.ZodString;
496
+ key: z.ZodString;
497
+ }, z.core.$strip>;
498
+ sourceRange: z.ZodNullable<z.ZodObject<{
499
+ start: z.ZodNumber;
500
+ end: z.ZodNumber;
501
+ startLine: z.ZodOptional<z.ZodNumber>;
502
+ startColumn: z.ZodOptional<z.ZodNumber>;
503
+ endLine: z.ZodOptional<z.ZodNumber>;
504
+ endColumn: z.ZodOptional<z.ZodNumber>;
505
+ }, z.core.$strict>>;
506
+ atomicKind: z.ZodEnum<{
507
+ text: "text";
508
+ "starter-placeholder": "starter-placeholder";
509
+ "dynamic-expression": "dynamic-expression";
510
+ "indirect-expression": "indirect-expression";
511
+ none: "none";
512
+ }>;
513
+ }, z.core.$strict>>;
514
+ businessMembers: z.ZodArray<z.ZodObject<{
515
+ key: z.ZodString;
516
+ sourceMemberKey: z.ZodString;
517
+ placementUnitKey: z.ZodString;
518
+ label: z.ZodString;
519
+ isIndependent: z.ZodBoolean;
520
+ }, z.core.$strict>>;
521
+ placementUnits: z.ZodArray<z.ZodObject<{
522
+ key: z.ZodString;
523
+ containerKey: z.ZodNullable<z.ZodString>;
524
+ sourceMemberKeys: z.ZodArray<z.ZodString>;
525
+ businessMemberKeys: z.ZodArray<z.ZodString>;
526
+ order: z.ZodNumber;
527
+ boundaryMode: z.ZodEnum<{
528
+ container: "container";
529
+ independent: "independent";
530
+ atomic: "atomic";
531
+ }>;
532
+ isIndependent: z.ZodBoolean;
533
+ isMultiMember: z.ZodBoolean;
534
+ }, z.core.$strict>>;
535
+ placements: z.ZodArray<z.ZodObject<{
536
+ kind: z.ZodLiteral<"page-composition">;
537
+ placementKey: z.ZodString;
538
+ documentVersion: z.ZodNumber;
539
+ routeId: z.ZodString;
540
+ placementUnitKey: z.ZodString;
541
+ containerKey: z.ZodNullable<z.ZodString>;
542
+ relation: z.ZodEnum<{
543
+ replace: "replace";
544
+ before: "before";
545
+ after: "after";
546
+ prepend: "prepend";
547
+ append: "append";
548
+ }>;
549
+ writeMode: z.ZodEnum<{
550
+ "insert-sibling": "insert-sibling";
551
+ "insert-child": "insert-child";
552
+ "replace-placeholder": "replace-placeholder";
553
+ }>;
554
+ }, z.core.$strict>>;
555
+ visualAnchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
556
+ key: z.ZodString;
557
+ placementUnitKey: z.ZodString;
558
+ runtimeRefs: z.ZodArray<z.ZodObject<{
559
+ key: z.ZodString;
560
+ instanceIndex: z.ZodOptional<z.ZodNumber>;
561
+ instanceCount: z.ZodOptional<z.ZodNumber>;
562
+ textSegmentIndex: z.ZodOptional<z.ZodNumber>;
563
+ }, z.core.$strict>>;
564
+ }, z.core.$strict>>>;
565
+ diagnostics: z.ZodArray<z.ZodObject<{
566
+ code: z.ZodString;
567
+ message: z.ZodString;
568
+ }, z.core.$strict>>;
569
+ }, z.core.$strict>;
570
+ export type SiteEditPageCompositionV2Supported = z.infer<typeof SiteEditPageCompositionV2SupportedSchema>;
571
+ export declare const SiteEditPageCompositionV2UnsupportedSchema: z.ZodObject<{
572
+ schemaVersion: z.ZodLiteral<2>;
573
+ status: z.ZodLiteral<"unsupported">;
574
+ version: z.ZodNumber;
575
+ routeId: z.ZodString;
576
+ reason: z.ZodEnum<{
577
+ VERSION_STALE: "VERSION_STALE";
578
+ RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
579
+ MULTIPLE_PAGE_RETURNS: "MULTIPLE_PAGE_RETURNS";
580
+ INDIRECT_RETURN_ONLY: "INDIRECT_RETURN_ONLY";
581
+ PAGE_CONTAINER_AMBIGUOUS: "PAGE_CONTAINER_AMBIGUOUS";
582
+ NO_SAFE_PAGE_PLACEMENT: "NO_SAFE_PAGE_PLACEMENT";
583
+ MEMBER_NOT_INDEPENDENT: "MEMBER_NOT_INDEPENDENT";
584
+ UNSUPPORTED_ROUTE_STRUCTURE: "UNSUPPORTED_ROUTE_STRUCTURE";
585
+ RUNTIME_ANCHOR_UNRESOLVED: "RUNTIME_ANCHOR_UNRESOLVED";
586
+ ROUTE_RETURN_NOT_FOUND: "ROUTE_RETURN_NOT_FOUND";
587
+ }>;
588
+ diagnostics: z.ZodArray<z.ZodObject<{
589
+ code: z.ZodString;
590
+ message: z.ZodString;
591
+ }, z.core.$strict>>;
592
+ }, z.core.$strict>;
593
+ export type SiteEditPageCompositionV2Unsupported = z.infer<typeof SiteEditPageCompositionV2UnsupportedSchema>;
594
+ export declare const SiteEditPageCompositionV2Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
595
+ schemaVersion: z.ZodLiteral<2>;
596
+ status: z.ZodLiteral<"supported">;
597
+ version: z.ZodNumber;
598
+ routeId: z.ZodString;
599
+ container: z.ZodDiscriminatedUnion<[z.ZodObject<{
600
+ kind: z.ZodLiteral<"virtual-route-root">;
601
+ key: z.ZodNull;
602
+ routeReturn: z.ZodObject<{
603
+ sourceIdentity: z.ZodObject<{
604
+ file: z.ZodString;
605
+ component: z.ZodString;
606
+ structuralPath: z.ZodString;
607
+ key: z.ZodString;
608
+ }, z.core.$strip>;
609
+ sourceRange: z.ZodObject<{
610
+ start: z.ZodNumber;
611
+ end: z.ZodNumber;
612
+ startLine: z.ZodOptional<z.ZodNumber>;
613
+ startColumn: z.ZodOptional<z.ZodNumber>;
614
+ endLine: z.ZodOptional<z.ZodNumber>;
615
+ endColumn: z.ZodOptional<z.ZodNumber>;
616
+ }, z.core.$strict>;
617
+ }, z.core.$strict>;
618
+ }, z.core.$strict>, z.ZodObject<{
619
+ kind: z.ZodLiteral<"jsx-container">;
620
+ key: z.ZodString;
621
+ sourceMemberKey: z.ZodString;
622
+ }, z.core.$strict>, z.ZodObject<{
623
+ kind: z.ZodLiteral<"starter-placeholder">;
624
+ key: z.ZodString;
625
+ sourceMemberKey: z.ZodString;
626
+ replacementMode: z.ZodLiteral<"replace">;
627
+ }, z.core.$strict>], "kind">;
628
+ sourceMembers: z.ZodArray<z.ZodObject<{
629
+ key: z.ZodString;
630
+ kind: z.ZodEnum<{
631
+ text: "text";
632
+ "starter-placeholder": "starter-placeholder";
633
+ "component-call": "component-call";
634
+ "native-jsx": "native-jsx";
635
+ "dynamic-expression": "dynamic-expression";
636
+ "indirect-expression": "indirect-expression";
637
+ }>;
638
+ parentKey: z.ZodNullable<z.ZodString>;
639
+ childKeys: z.ZodArray<z.ZodString>;
640
+ order: z.ZodNumber;
641
+ label: z.ZodString;
642
+ sourceIdentity: z.ZodObject<{
643
+ file: z.ZodString;
644
+ component: z.ZodString;
645
+ structuralPath: z.ZodString;
646
+ key: z.ZodString;
647
+ }, z.core.$strip>;
648
+ sourceRange: z.ZodNullable<z.ZodObject<{
649
+ start: z.ZodNumber;
650
+ end: z.ZodNumber;
651
+ startLine: z.ZodOptional<z.ZodNumber>;
652
+ startColumn: z.ZodOptional<z.ZodNumber>;
653
+ endLine: z.ZodOptional<z.ZodNumber>;
654
+ endColumn: z.ZodOptional<z.ZodNumber>;
655
+ }, z.core.$strict>>;
656
+ atomicKind: z.ZodEnum<{
657
+ text: "text";
658
+ "starter-placeholder": "starter-placeholder";
659
+ "dynamic-expression": "dynamic-expression";
660
+ "indirect-expression": "indirect-expression";
661
+ none: "none";
662
+ }>;
663
+ }, z.core.$strict>>;
664
+ businessMembers: z.ZodArray<z.ZodObject<{
665
+ key: z.ZodString;
666
+ sourceMemberKey: z.ZodString;
667
+ placementUnitKey: z.ZodString;
668
+ label: z.ZodString;
669
+ isIndependent: z.ZodBoolean;
670
+ }, z.core.$strict>>;
671
+ placementUnits: z.ZodArray<z.ZodObject<{
672
+ key: z.ZodString;
673
+ containerKey: z.ZodNullable<z.ZodString>;
674
+ sourceMemberKeys: z.ZodArray<z.ZodString>;
675
+ businessMemberKeys: z.ZodArray<z.ZodString>;
676
+ order: z.ZodNumber;
677
+ boundaryMode: z.ZodEnum<{
678
+ container: "container";
679
+ independent: "independent";
680
+ atomic: "atomic";
681
+ }>;
682
+ isIndependent: z.ZodBoolean;
683
+ isMultiMember: z.ZodBoolean;
684
+ }, z.core.$strict>>;
685
+ placements: z.ZodArray<z.ZodObject<{
686
+ kind: z.ZodLiteral<"page-composition">;
687
+ placementKey: z.ZodString;
688
+ documentVersion: z.ZodNumber;
689
+ routeId: z.ZodString;
690
+ placementUnitKey: z.ZodString;
691
+ containerKey: z.ZodNullable<z.ZodString>;
692
+ relation: z.ZodEnum<{
693
+ replace: "replace";
694
+ before: "before";
695
+ after: "after";
696
+ prepend: "prepend";
697
+ append: "append";
698
+ }>;
699
+ writeMode: z.ZodEnum<{
700
+ "insert-sibling": "insert-sibling";
701
+ "insert-child": "insert-child";
702
+ "replace-placeholder": "replace-placeholder";
703
+ }>;
704
+ }, z.core.$strict>>;
705
+ visualAnchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
706
+ key: z.ZodString;
707
+ placementUnitKey: z.ZodString;
708
+ runtimeRefs: z.ZodArray<z.ZodObject<{
709
+ key: z.ZodString;
710
+ instanceIndex: z.ZodOptional<z.ZodNumber>;
711
+ instanceCount: z.ZodOptional<z.ZodNumber>;
712
+ textSegmentIndex: z.ZodOptional<z.ZodNumber>;
713
+ }, z.core.$strict>>;
714
+ }, z.core.$strict>>>;
715
+ diagnostics: z.ZodArray<z.ZodObject<{
716
+ code: z.ZodString;
717
+ message: z.ZodString;
718
+ }, z.core.$strict>>;
719
+ }, z.core.$strict>, z.ZodObject<{
720
+ schemaVersion: z.ZodLiteral<2>;
721
+ status: z.ZodLiteral<"unsupported">;
722
+ version: z.ZodNumber;
723
+ routeId: z.ZodString;
724
+ reason: z.ZodEnum<{
725
+ VERSION_STALE: "VERSION_STALE";
726
+ RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
727
+ MULTIPLE_PAGE_RETURNS: "MULTIPLE_PAGE_RETURNS";
728
+ INDIRECT_RETURN_ONLY: "INDIRECT_RETURN_ONLY";
729
+ PAGE_CONTAINER_AMBIGUOUS: "PAGE_CONTAINER_AMBIGUOUS";
730
+ NO_SAFE_PAGE_PLACEMENT: "NO_SAFE_PAGE_PLACEMENT";
731
+ MEMBER_NOT_INDEPENDENT: "MEMBER_NOT_INDEPENDENT";
732
+ UNSUPPORTED_ROUTE_STRUCTURE: "UNSUPPORTED_ROUTE_STRUCTURE";
733
+ RUNTIME_ANCHOR_UNRESOLVED: "RUNTIME_ANCHOR_UNRESOLVED";
734
+ ROUTE_RETURN_NOT_FOUND: "ROUTE_RETURN_NOT_FOUND";
735
+ }>;
736
+ diagnostics: z.ZodArray<z.ZodObject<{
737
+ code: z.ZodString;
738
+ message: z.ZodString;
739
+ }, z.core.$strict>>;
740
+ }, z.core.$strict>], "status">;
741
+ export type SiteEditPageCompositionV2 = z.infer<typeof SiteEditPageCompositionV2Schema>;
742
+ /**
743
+ * Compatibility decoder for migration boundaries. Production emitters should
744
+ * advertise page-composition-v2 before switching from the legacy schema.
745
+ */
746
+ export declare const SiteEditPageCompositionAnyVersionSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
747
+ schemaVersion: z.ZodLiteral<2>;
748
+ status: z.ZodLiteral<"supported">;
749
+ version: z.ZodNumber;
750
+ routeId: z.ZodString;
751
+ container: z.ZodDiscriminatedUnion<[z.ZodObject<{
752
+ kind: z.ZodLiteral<"virtual-route-root">;
753
+ key: z.ZodNull;
754
+ routeReturn: z.ZodObject<{
755
+ sourceIdentity: z.ZodObject<{
756
+ file: z.ZodString;
757
+ component: z.ZodString;
758
+ structuralPath: z.ZodString;
759
+ key: z.ZodString;
760
+ }, z.core.$strip>;
761
+ sourceRange: z.ZodObject<{
762
+ start: z.ZodNumber;
763
+ end: z.ZodNumber;
764
+ startLine: z.ZodOptional<z.ZodNumber>;
765
+ startColumn: z.ZodOptional<z.ZodNumber>;
766
+ endLine: z.ZodOptional<z.ZodNumber>;
767
+ endColumn: z.ZodOptional<z.ZodNumber>;
768
+ }, z.core.$strict>;
769
+ }, z.core.$strict>;
770
+ }, z.core.$strict>, z.ZodObject<{
771
+ kind: z.ZodLiteral<"jsx-container">;
772
+ key: z.ZodString;
773
+ sourceMemberKey: z.ZodString;
774
+ }, z.core.$strict>, z.ZodObject<{
775
+ kind: z.ZodLiteral<"starter-placeholder">;
776
+ key: z.ZodString;
777
+ sourceMemberKey: z.ZodString;
778
+ replacementMode: z.ZodLiteral<"replace">;
779
+ }, z.core.$strict>], "kind">;
780
+ sourceMembers: z.ZodArray<z.ZodObject<{
781
+ key: z.ZodString;
782
+ kind: z.ZodEnum<{
783
+ text: "text";
784
+ "starter-placeholder": "starter-placeholder";
785
+ "component-call": "component-call";
786
+ "native-jsx": "native-jsx";
787
+ "dynamic-expression": "dynamic-expression";
788
+ "indirect-expression": "indirect-expression";
789
+ }>;
790
+ parentKey: z.ZodNullable<z.ZodString>;
791
+ childKeys: z.ZodArray<z.ZodString>;
792
+ order: z.ZodNumber;
793
+ label: z.ZodString;
794
+ sourceIdentity: z.ZodObject<{
795
+ file: z.ZodString;
796
+ component: z.ZodString;
797
+ structuralPath: z.ZodString;
798
+ key: z.ZodString;
799
+ }, z.core.$strip>;
800
+ sourceRange: z.ZodNullable<z.ZodObject<{
801
+ start: z.ZodNumber;
802
+ end: z.ZodNumber;
803
+ startLine: z.ZodOptional<z.ZodNumber>;
804
+ startColumn: z.ZodOptional<z.ZodNumber>;
805
+ endLine: z.ZodOptional<z.ZodNumber>;
806
+ endColumn: z.ZodOptional<z.ZodNumber>;
807
+ }, z.core.$strict>>;
808
+ atomicKind: z.ZodEnum<{
809
+ text: "text";
810
+ "starter-placeholder": "starter-placeholder";
811
+ "dynamic-expression": "dynamic-expression";
812
+ "indirect-expression": "indirect-expression";
813
+ none: "none";
814
+ }>;
815
+ }, z.core.$strict>>;
816
+ businessMembers: z.ZodArray<z.ZodObject<{
817
+ key: z.ZodString;
818
+ sourceMemberKey: z.ZodString;
819
+ placementUnitKey: z.ZodString;
820
+ label: z.ZodString;
821
+ isIndependent: z.ZodBoolean;
822
+ }, z.core.$strict>>;
823
+ placementUnits: z.ZodArray<z.ZodObject<{
824
+ key: z.ZodString;
825
+ containerKey: z.ZodNullable<z.ZodString>;
826
+ sourceMemberKeys: z.ZodArray<z.ZodString>;
827
+ businessMemberKeys: z.ZodArray<z.ZodString>;
828
+ order: z.ZodNumber;
829
+ boundaryMode: z.ZodEnum<{
830
+ container: "container";
831
+ independent: "independent";
832
+ atomic: "atomic";
833
+ }>;
834
+ isIndependent: z.ZodBoolean;
835
+ isMultiMember: z.ZodBoolean;
836
+ }, z.core.$strict>>;
837
+ placements: z.ZodArray<z.ZodObject<{
838
+ kind: z.ZodLiteral<"page-composition">;
839
+ placementKey: z.ZodString;
840
+ documentVersion: z.ZodNumber;
841
+ routeId: z.ZodString;
842
+ placementUnitKey: z.ZodString;
843
+ containerKey: z.ZodNullable<z.ZodString>;
844
+ relation: z.ZodEnum<{
845
+ replace: "replace";
846
+ before: "before";
847
+ after: "after";
848
+ prepend: "prepend";
849
+ append: "append";
850
+ }>;
851
+ writeMode: z.ZodEnum<{
852
+ "insert-sibling": "insert-sibling";
853
+ "insert-child": "insert-child";
854
+ "replace-placeholder": "replace-placeholder";
855
+ }>;
856
+ }, z.core.$strict>>;
857
+ visualAnchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
858
+ key: z.ZodString;
859
+ placementUnitKey: z.ZodString;
860
+ runtimeRefs: z.ZodArray<z.ZodObject<{
861
+ key: z.ZodString;
862
+ instanceIndex: z.ZodOptional<z.ZodNumber>;
863
+ instanceCount: z.ZodOptional<z.ZodNumber>;
864
+ textSegmentIndex: z.ZodOptional<z.ZodNumber>;
865
+ }, z.core.$strict>>;
866
+ }, z.core.$strict>>>;
867
+ diagnostics: z.ZodArray<z.ZodObject<{
868
+ code: z.ZodString;
869
+ message: z.ZodString;
870
+ }, z.core.$strict>>;
871
+ }, z.core.$strict>, z.ZodObject<{
872
+ schemaVersion: z.ZodLiteral<2>;
873
+ status: z.ZodLiteral<"unsupported">;
874
+ version: z.ZodNumber;
875
+ routeId: z.ZodString;
876
+ reason: z.ZodEnum<{
877
+ VERSION_STALE: "VERSION_STALE";
878
+ RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
879
+ MULTIPLE_PAGE_RETURNS: "MULTIPLE_PAGE_RETURNS";
880
+ INDIRECT_RETURN_ONLY: "INDIRECT_RETURN_ONLY";
881
+ PAGE_CONTAINER_AMBIGUOUS: "PAGE_CONTAINER_AMBIGUOUS";
882
+ NO_SAFE_PAGE_PLACEMENT: "NO_SAFE_PAGE_PLACEMENT";
883
+ MEMBER_NOT_INDEPENDENT: "MEMBER_NOT_INDEPENDENT";
884
+ UNSUPPORTED_ROUTE_STRUCTURE: "UNSUPPORTED_ROUTE_STRUCTURE";
885
+ RUNTIME_ANCHOR_UNRESOLVED: "RUNTIME_ANCHOR_UNRESOLVED";
886
+ ROUTE_RETURN_NOT_FOUND: "ROUTE_RETURN_NOT_FOUND";
887
+ }>;
888
+ diagnostics: z.ZodArray<z.ZodObject<{
889
+ code: z.ZodString;
890
+ message: z.ZodString;
891
+ }, z.core.$strict>>;
892
+ }, z.core.$strict>], "status">, z.ZodDiscriminatedUnion<[z.ZodObject<{
893
+ status: z.ZodLiteral<"supported">;
894
+ version: z.ZodNumber;
895
+ routeId: z.ZodString;
896
+ container: z.ZodUnion<readonly [z.ZodObject<{
897
+ kind: z.ZodLiteral<"virtual-route-root">;
898
+ key: z.ZodString;
899
+ }, z.core.$strict>, z.ZodObject<{
900
+ kind: z.ZodLiteral<"jsx-container">;
901
+ key: z.ZodString;
902
+ sourceMemberKey: z.ZodString;
903
+ sourceFile: z.ZodString;
904
+ componentName: z.ZodOptional<z.ZodString>;
905
+ }, z.core.$strict>, z.ZodObject<{
906
+ kind: z.ZodLiteral<"starter-placeholder">;
907
+ key: z.ZodString;
908
+ sourceFile: z.ZodOptional<z.ZodString>;
909
+ }, z.core.$strict>]>;
910
+ sourceMembers: z.ZodArray<z.ZodObject<{
911
+ key: z.ZodString;
912
+ kind: z.ZodEnum<{
913
+ "starter-placeholder": "starter-placeholder";
914
+ "jsx-element": "jsx-element";
915
+ "jsx-fragment": "jsx-fragment";
916
+ "jsx-expression": "jsx-expression";
917
+ "null-return": "null-return";
918
+ }>;
919
+ containerKey: z.ZodString;
920
+ label: z.ZodString;
921
+ sourceFile: z.ZodOptional<z.ZodString>;
922
+ isAtomic: z.ZodBoolean;
923
+ }, z.core.$strict>>;
924
+ businessMembers: z.ZodArray<z.ZodObject<{
925
+ key: z.ZodString;
926
+ sourceMemberKey: z.ZodString;
927
+ containerKey: z.ZodString;
928
+ label: z.ZodString;
929
+ isIndependent: z.ZodBoolean;
930
+ }, z.core.$strict>>;
931
+ placementUnits: z.ZodArray<z.ZodObject<{
932
+ key: z.ZodString;
933
+ containerKey: z.ZodString;
934
+ businessMemberKeys: z.ZodArray<z.ZodString>;
935
+ isMultiMember: z.ZodBoolean;
936
+ }, z.core.$strict>>;
937
+ placements: z.ZodArray<z.ZodObject<{
938
+ kind: z.ZodLiteral<"page-composition">;
939
+ placementKey: z.ZodString;
940
+ documentVersion: z.ZodNumber;
941
+ routeId: z.ZodString;
942
+ placementUnitKey: z.ZodString;
943
+ relation: z.ZodEnum<{
944
+ before: "before";
945
+ after: "after";
946
+ prepend: "prepend";
947
+ append: "append";
948
+ }>;
949
+ }, z.core.$strict>>;
950
+ }, z.core.$strict>, z.ZodObject<{
951
+ status: z.ZodLiteral<"unsupported">;
952
+ version: z.ZodNumber;
953
+ routeId: z.ZodString;
954
+ reason: z.ZodEnum<{
955
+ VERSION_STALE: "VERSION_STALE";
956
+ RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
957
+ MULTIPLE_PAGE_RETURNS: "MULTIPLE_PAGE_RETURNS";
958
+ INDIRECT_RETURN_ONLY: "INDIRECT_RETURN_ONLY";
959
+ PAGE_CONTAINER_AMBIGUOUS: "PAGE_CONTAINER_AMBIGUOUS";
960
+ NO_SAFE_PAGE_PLACEMENT: "NO_SAFE_PAGE_PLACEMENT";
961
+ MEMBER_NOT_INDEPENDENT: "MEMBER_NOT_INDEPENDENT";
962
+ UNSUPPORTED_ROUTE_STRUCTURE: "UNSUPPORTED_ROUTE_STRUCTURE";
963
+ RUNTIME_ANCHOR_UNRESOLVED: "RUNTIME_ANCHOR_UNRESOLVED";
964
+ ROUTE_RETURN_NOT_FOUND: "ROUTE_RETURN_NOT_FOUND";
965
+ }>;
966
+ diagnostics: z.ZodArray<z.ZodObject<{
967
+ code: z.ZodString;
968
+ message: z.ZodString;
969
+ }, z.core.$strict>>;
970
+ }, z.core.$strict>], "status">]>;
971
+ export type SiteEditPageCompositionAnyVersion = z.infer<typeof SiteEditPageCompositionAnyVersionSchema>;