@vcp-dev/contracts 0.6.8 → 0.6.10

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,714 @@
1
+ import { z } from "zod";
2
+ export declare const WorkspaceResourceKindSchema: z.ZodEnum<{
3
+ page: "page";
4
+ pages: "pages";
5
+ component: "component";
6
+ }>;
7
+ export type WorkspaceResourceKind = z.infer<typeof WorkspaceResourceKindSchema>;
8
+ export declare const WorkspaceResourceOperationSummarySchema: z.ZodObject<{
9
+ resource_kind: z.ZodEnum<{
10
+ page: "page";
11
+ pages: "pages";
12
+ component: "component";
13
+ }>;
14
+ resource_name: z.ZodString;
15
+ file_count: z.ZodNumber;
16
+ total_bytes: z.ZodNumber;
17
+ content_digest: z.ZodString;
18
+ custom_prompt: z.ZodOptional<z.ZodString>;
19
+ final_routes: z.ZodArray<z.ZodString>;
20
+ }, z.core.$strict>;
21
+ export type WorkspaceResourceOperationSummary = z.infer<typeof WorkspaceResourceOperationSummarySchema>;
22
+ export declare const WorkspaceResourceNavigationSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
23
+ kind: z.ZodLiteral<"none">;
24
+ }, z.core.$strict>, z.ZodObject<{
25
+ kind: z.ZodLiteral<"primary">;
26
+ items: z.ZodArray<z.ZodObject<{
27
+ label: z.ZodString;
28
+ href: z.ZodString;
29
+ }, z.core.$strict>>;
30
+ }, z.core.$strict>], "kind">;
31
+ export type WorkspaceResourceNavigationSelection = z.infer<typeof WorkspaceResourceNavigationSelectionSchema>;
32
+ export declare const WorkspaceResourceOperationTransientInputSchema: z.ZodObject<{
33
+ base_snapshot_id: z.ZodString;
34
+ operation: z.ZodObject<{
35
+ id: z.ZodString;
36
+ siteId: z.ZodUUID;
37
+ baseSnapshotId: z.ZodUUID;
38
+ routeId: z.ZodOptional<z.ZodString>;
39
+ kind: z.ZodEnum<{
40
+ "insert-child": "insert-child";
41
+ "update-text": "update-text";
42
+ "update-array-item": "update-array-item";
43
+ "remove-node": "remove-node";
44
+ "move-node": "move-node";
45
+ "set-class-name-source": "set-class-name-source";
46
+ "set-props": "set-props";
47
+ "apply-style-draft": "apply-style-draft";
48
+ "source-edit": "source-edit";
49
+ "insert-page-resource": "insert-page-resource";
50
+ }>;
51
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
52
+ kind: z.ZodLiteral<"node">;
53
+ key: z.ZodString;
54
+ }, z.core.$strip>, z.ZodObject<{
55
+ kind: z.ZodLiteral<"page-unit">;
56
+ routeId: z.ZodString;
57
+ placementUnitKey: z.ZodString;
58
+ }, z.core.$strict>, z.ZodObject<{
59
+ kind: z.ZodLiteral<"route">;
60
+ routeId: z.ZodString;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ kind: z.ZodLiteral<"source-file">;
63
+ path: z.ZodString;
64
+ }, z.core.$strip>, z.ZodObject<{
65
+ kind: z.ZodLiteral<"source-batch">;
66
+ paths: z.ZodArray<z.ZodString>;
67
+ }, z.core.$strip>, z.ZodObject<{
68
+ kind: z.ZodLiteral<"project">;
69
+ }, z.core.$strict>], "kind">;
70
+ documentVersion: z.ZodNumber;
71
+ selectionRef: z.ZodOptional<z.ZodObject<{
72
+ key: z.ZodString;
73
+ instanceIndex: z.ZodOptional<z.ZodNumber>;
74
+ instanceCount: z.ZodOptional<z.ZodNumber>;
75
+ }, z.core.$strip>>;
76
+ mutationContext: z.ZodOptional<z.ZodObject<{
77
+ editingSessionId: z.ZodString;
78
+ lockId: z.ZodString;
79
+ ownerId: z.ZodString;
80
+ leaseAssertion: z.ZodString;
81
+ }, z.core.$strict>>;
82
+ params: z.ZodDiscriminatedUnion<[z.ZodObject<{
83
+ kind: z.ZodLiteral<"update-text">;
84
+ segmentIndex: z.ZodNumber;
85
+ value: z.ZodString;
86
+ }, z.core.$strip>, z.ZodObject<{
87
+ kind: z.ZodLiteral<"update-array-item">;
88
+ segmentIndex: z.ZodNumber;
89
+ index: z.ZodNumber;
90
+ value: z.ZodString;
91
+ }, z.core.$strip>, z.ZodObject<{
92
+ kind: z.ZodLiteral<"remove-node">;
93
+ }, z.core.$strip>, z.ZodObject<{
94
+ kind: z.ZodLiteral<"insert-child">;
95
+ node: z.ZodUnion<readonly [z.ZodObject<{
96
+ kind: z.ZodLiteral<"native-tag">;
97
+ tag: z.ZodString;
98
+ text: z.ZodOptional<z.ZodString>;
99
+ }, z.core.$strip>, z.ZodObject<{
100
+ kind: z.ZodLiteral<"component-call">;
101
+ component: z.ZodObject<{
102
+ source: z.ZodString;
103
+ exportName: z.ZodString;
104
+ }, z.core.$strip>;
105
+ materialization: z.ZodOptional<z.ZodNever>;
106
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
107
+ }, z.core.$strict>, z.ZodObject<{
108
+ kind: z.ZodLiteral<"component-call">;
109
+ component: z.ZodOptional<z.ZodNever>;
110
+ materialization: z.ZodObject<{
111
+ instanceBaseName: z.ZodString;
112
+ files: z.ZodArray<z.ZodObject<{
113
+ pathTemplate: z.ZodString;
114
+ content: z.ZodString;
115
+ role: z.ZodOptional<z.ZodString>;
116
+ }, z.core.$strict>>;
117
+ entry: z.ZodObject<{
118
+ pathTemplate: z.ZodString;
119
+ export: z.ZodUnion<readonly [z.ZodObject<{
120
+ kind: z.ZodLiteral<"default">;
121
+ }, z.core.$strict>, z.ZodObject<{
122
+ kind: z.ZodLiteral<"named">;
123
+ name: z.ZodString;
124
+ }, z.core.$strict>]>;
125
+ }, z.core.$strict>;
126
+ dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
127
+ }, z.core.$strict>;
128
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
129
+ }, z.core.$strict>]>;
130
+ position: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
131
+ relation: z.ZodEnum<{
132
+ before: "before";
133
+ after: "after";
134
+ }>;
135
+ anchorKey: z.ZodString;
136
+ }, z.core.$strip>, z.ZodObject<{
137
+ relation: z.ZodEnum<{
138
+ prepend: "prepend";
139
+ append: "append";
140
+ }>;
141
+ parentKey: z.ZodString;
142
+ }, z.core.$strip>, z.ZodObject<{
143
+ kind: z.ZodLiteral<"page-composition">;
144
+ placementKey: z.ZodString;
145
+ documentVersion: z.ZodNumber;
146
+ routeId: z.ZodString;
147
+ placementUnitKey: z.ZodString;
148
+ relation: z.ZodEnum<{
149
+ before: "before";
150
+ after: "after";
151
+ prepend: "prepend";
152
+ append: "append";
153
+ }>;
154
+ }, z.core.$strict>]>, z.ZodObject<{
155
+ kind: z.ZodLiteral<"page-composition">;
156
+ placementKey: z.ZodString;
157
+ documentVersion: z.ZodNumber;
158
+ }, z.core.$strict>]>;
159
+ }, z.core.$strip>, z.ZodObject<{
160
+ kind: z.ZodLiteral<"move-node">;
161
+ target: z.ZodUnion<readonly [z.ZodObject<{
162
+ relation: z.ZodEnum<{
163
+ before: "before";
164
+ after: "after";
165
+ }>;
166
+ anchorKey: z.ZodString;
167
+ }, z.core.$strip>, z.ZodObject<{
168
+ relation: z.ZodEnum<{
169
+ prepend: "prepend";
170
+ append: "append";
171
+ }>;
172
+ parentKey: z.ZodString;
173
+ }, z.core.$strip>, z.ZodObject<{
174
+ kind: z.ZodLiteral<"page-composition">;
175
+ placementKey: z.ZodString;
176
+ documentVersion: z.ZodNumber;
177
+ routeId: z.ZodString;
178
+ placementUnitKey: z.ZodString;
179
+ relation: z.ZodEnum<{
180
+ before: "before";
181
+ after: "after";
182
+ prepend: "prepend";
183
+ append: "append";
184
+ }>;
185
+ }, z.core.$strict>]>;
186
+ preserveBindings: z.ZodOptional<z.ZodBoolean>;
187
+ }, z.core.$strip>, z.ZodObject<{
188
+ kind: z.ZodLiteral<"set-class-name-source">;
189
+ routeId: z.ZodOptional<z.ZodString>;
190
+ filePath: z.ZodString;
191
+ expectedVersion: z.ZodObject<{
192
+ documentVersion: z.ZodNumber;
193
+ contentHash: z.ZodString;
194
+ }, z.core.$strip>;
195
+ oldAttrRaw: z.ZodNullable<z.ZodString>;
196
+ oldAttrRange: z.ZodNullable<z.ZodObject<{
197
+ start: z.ZodNumber;
198
+ end: z.ZodNumber;
199
+ }, z.core.$strip>>;
200
+ openingElementRange: z.ZodObject<{
201
+ start: z.ZodNumber;
202
+ end: z.ZodNumber;
203
+ }, z.core.$strip>;
204
+ newAttrRaw: z.ZodNullable<z.ZodString>;
205
+ intent: z.ZodObject<{
206
+ source: z.ZodEnum<{
207
+ "style-panel": "style-panel";
208
+ "class-source-editor": "class-source-editor";
209
+ }>;
210
+ operation: z.ZodEnum<{
211
+ "replace-static-classname": "replace-static-classname";
212
+ "replace-expression": "replace-expression";
213
+ "create-attribute": "create-attribute";
214
+ "remove-attribute": "remove-attribute";
215
+ }>;
216
+ }, z.core.$strip>;
217
+ }, z.core.$strip>, z.ZodObject<{
218
+ kind: z.ZodLiteral<"set-props">;
219
+ props: z.ZodRecord<z.ZodEnum<{
220
+ src: "src";
221
+ alt: "alt";
222
+ poster: "poster";
223
+ href: "href";
224
+ width: "width";
225
+ height: "height";
226
+ }> & z.core.$partial, z.ZodString>;
227
+ }, z.core.$strip>, z.ZodObject<{
228
+ kind: z.ZodLiteral<"apply-style-draft">;
229
+ className: z.ZodOptional<z.ZodObject<{
230
+ routeId: z.ZodOptional<z.ZodString>;
231
+ filePath: z.ZodString;
232
+ expectedVersion: z.ZodObject<{
233
+ documentVersion: z.ZodNumber;
234
+ contentHash: z.ZodString;
235
+ }, z.core.$strip>;
236
+ oldAttrRaw: z.ZodNullable<z.ZodString>;
237
+ oldAttrRange: z.ZodNullable<z.ZodObject<{
238
+ start: z.ZodNumber;
239
+ end: z.ZodNumber;
240
+ }, z.core.$strip>>;
241
+ openingElementRange: z.ZodObject<{
242
+ start: z.ZodNumber;
243
+ end: z.ZodNumber;
244
+ }, z.core.$strip>;
245
+ newAttrRaw: z.ZodNullable<z.ZodString>;
246
+ intent: z.ZodObject<{
247
+ source: z.ZodEnum<{
248
+ "style-panel": "style-panel";
249
+ "class-source-editor": "class-source-editor";
250
+ }>;
251
+ operation: z.ZodEnum<{
252
+ "replace-static-classname": "replace-static-classname";
253
+ "replace-expression": "replace-expression";
254
+ "create-attribute": "create-attribute";
255
+ "remove-attribute": "remove-attribute";
256
+ }>;
257
+ }, z.core.$strip>;
258
+ }, z.core.$strip>>;
259
+ props: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
260
+ src: "src";
261
+ alt: "alt";
262
+ poster: "poster";
263
+ href: "href";
264
+ width: "width";
265
+ height: "height";
266
+ }> & z.core.$partial, z.ZodString>>;
267
+ }, z.core.$strip>, z.ZodObject<{
268
+ kind: z.ZodLiteral<"source-edit">;
269
+ conflictPolicy: z.ZodEnum<{
270
+ "compare-and-swap": "compare-and-swap";
271
+ overwrite: "overwrite";
272
+ }>;
273
+ edits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
274
+ operation: z.ZodLiteral<"upsert">;
275
+ path: z.ZodString;
276
+ content: z.ZodString;
277
+ baseContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
278
+ }, z.core.$strict>, z.ZodObject<{
279
+ operation: z.ZodLiteral<"delete">;
280
+ path: z.ZodString;
281
+ capability: z.ZodLiteral<"source-delete">;
282
+ confirmDelete: z.ZodLiteral<true>;
283
+ confirmPath: z.ZodString;
284
+ baseContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
285
+ }, z.core.$strict>], "operation">>;
286
+ reason: z.ZodOptional<z.ZodString>;
287
+ }, z.core.$strict>, z.ZodObject<{
288
+ kind: z.ZodLiteral<"insert-page-resource">;
289
+ artifact: z.ZodObject<{
290
+ resource_id: z.ZodString;
291
+ resource_type: z.ZodEnum<{
292
+ page: "page";
293
+ pages: "pages";
294
+ }>;
295
+ resolved_version: z.ZodString;
296
+ revision_id: z.ZodString;
297
+ digest_sha256: z.ZodString;
298
+ components: z.ZodArray<z.ZodObject<{
299
+ component_id: z.ZodString;
300
+ materialization: z.ZodObject<{
301
+ instanceBaseName: z.ZodString;
302
+ files: z.ZodArray<z.ZodObject<{
303
+ pathTemplate: z.ZodString;
304
+ content: z.ZodString;
305
+ role: z.ZodOptional<z.ZodString>;
306
+ }, z.core.$strict>>;
307
+ entry: z.ZodObject<{
308
+ pathTemplate: z.ZodString;
309
+ export: z.ZodUnion<readonly [z.ZodObject<{
310
+ kind: z.ZodLiteral<"default">;
311
+ }, z.core.$strict>, z.ZodObject<{
312
+ kind: z.ZodLiteral<"named">;
313
+ name: z.ZodString;
314
+ }, z.core.$strict>]>;
315
+ }, z.core.$strict>;
316
+ dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
317
+ }, z.core.$strict>;
318
+ }, z.core.$strict>>;
319
+ pages: z.ZodArray<z.ZodObject<{
320
+ template_page_id: z.ZodString;
321
+ title: z.ZodString;
322
+ final_route: z.ZodString;
323
+ materialization: z.ZodObject<{
324
+ instanceBaseName: z.ZodString;
325
+ files: z.ZodArray<z.ZodObject<{
326
+ pathTemplate: z.ZodString;
327
+ content: z.ZodString;
328
+ role: z.ZodOptional<z.ZodString>;
329
+ }, z.core.$strict>>;
330
+ entry: z.ZodObject<{
331
+ pathTemplate: z.ZodString;
332
+ export: z.ZodUnion<readonly [z.ZodObject<{
333
+ kind: z.ZodLiteral<"default">;
334
+ }, z.core.$strict>, z.ZodObject<{
335
+ kind: z.ZodLiteral<"named">;
336
+ name: z.ZodString;
337
+ }, z.core.$strict>]>;
338
+ }, z.core.$strict>;
339
+ dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
340
+ }, z.core.$strict>;
341
+ components: z.ZodArray<z.ZodObject<{
342
+ instance_id: z.ZodString;
343
+ component_id: z.ZodString;
344
+ }, z.core.$strict>>;
345
+ }, z.core.$strict>>;
346
+ project_dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
347
+ }, z.core.$strict>;
348
+ }, z.core.$strict>], "kind">;
349
+ }, z.core.$strip>;
350
+ navigation_selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
351
+ kind: z.ZodLiteral<"none">;
352
+ }, z.core.$strict>, z.ZodObject<{
353
+ kind: z.ZodLiteral<"primary">;
354
+ items: z.ZodArray<z.ZodObject<{
355
+ label: z.ZodString;
356
+ href: z.ZodString;
357
+ }, z.core.$strict>>;
358
+ }, z.core.$strict>], "kind">>;
359
+ }, z.core.$strict>;
360
+ export type WorkspaceResourceOperationTransientInput = z.infer<typeof WorkspaceResourceOperationTransientInputSchema>;
361
+ export declare const WorkspaceResourceOperationClientMessageSchema: z.ZodObject<{
362
+ id: z.ZodString;
363
+ tenant_id: z.ZodString;
364
+ site_id: z.ZodString;
365
+ run_id: z.ZodOptional<z.ZodString>;
366
+ correlation_id: z.ZodOptional<z.ZodString>;
367
+ sent_at: z.ZodString;
368
+ type: z.ZodLiteral<"client.resource.operation.create">;
369
+ payload: z.ZodObject<{
370
+ client_message_id: z.ZodString;
371
+ display: z.ZodObject<{
372
+ resource_kind: z.ZodEnum<{
373
+ page: "page";
374
+ pages: "pages";
375
+ component: "component";
376
+ }>;
377
+ resource_name: z.ZodString;
378
+ file_count: z.ZodNumber;
379
+ total_bytes: z.ZodNumber;
380
+ content_digest: z.ZodString;
381
+ custom_prompt: z.ZodOptional<z.ZodString>;
382
+ final_routes: z.ZodArray<z.ZodString>;
383
+ }, z.core.$strict>;
384
+ transient_resource_input: z.ZodObject<{
385
+ base_snapshot_id: z.ZodString;
386
+ operation: z.ZodObject<{
387
+ id: z.ZodString;
388
+ siteId: z.ZodUUID;
389
+ baseSnapshotId: z.ZodUUID;
390
+ routeId: z.ZodOptional<z.ZodString>;
391
+ kind: z.ZodEnum<{
392
+ "insert-child": "insert-child";
393
+ "update-text": "update-text";
394
+ "update-array-item": "update-array-item";
395
+ "remove-node": "remove-node";
396
+ "move-node": "move-node";
397
+ "set-class-name-source": "set-class-name-source";
398
+ "set-props": "set-props";
399
+ "apply-style-draft": "apply-style-draft";
400
+ "source-edit": "source-edit";
401
+ "insert-page-resource": "insert-page-resource";
402
+ }>;
403
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
404
+ kind: z.ZodLiteral<"node">;
405
+ key: z.ZodString;
406
+ }, z.core.$strip>, z.ZodObject<{
407
+ kind: z.ZodLiteral<"page-unit">;
408
+ routeId: z.ZodString;
409
+ placementUnitKey: z.ZodString;
410
+ }, z.core.$strict>, z.ZodObject<{
411
+ kind: z.ZodLiteral<"route">;
412
+ routeId: z.ZodString;
413
+ }, z.core.$strip>, z.ZodObject<{
414
+ kind: z.ZodLiteral<"source-file">;
415
+ path: z.ZodString;
416
+ }, z.core.$strip>, z.ZodObject<{
417
+ kind: z.ZodLiteral<"source-batch">;
418
+ paths: z.ZodArray<z.ZodString>;
419
+ }, z.core.$strip>, z.ZodObject<{
420
+ kind: z.ZodLiteral<"project">;
421
+ }, z.core.$strict>], "kind">;
422
+ documentVersion: z.ZodNumber;
423
+ selectionRef: z.ZodOptional<z.ZodObject<{
424
+ key: z.ZodString;
425
+ instanceIndex: z.ZodOptional<z.ZodNumber>;
426
+ instanceCount: z.ZodOptional<z.ZodNumber>;
427
+ }, z.core.$strip>>;
428
+ mutationContext: z.ZodOptional<z.ZodObject<{
429
+ editingSessionId: z.ZodString;
430
+ lockId: z.ZodString;
431
+ ownerId: z.ZodString;
432
+ leaseAssertion: z.ZodString;
433
+ }, z.core.$strict>>;
434
+ params: z.ZodDiscriminatedUnion<[z.ZodObject<{
435
+ kind: z.ZodLiteral<"update-text">;
436
+ segmentIndex: z.ZodNumber;
437
+ value: z.ZodString;
438
+ }, z.core.$strip>, z.ZodObject<{
439
+ kind: z.ZodLiteral<"update-array-item">;
440
+ segmentIndex: z.ZodNumber;
441
+ index: z.ZodNumber;
442
+ value: z.ZodString;
443
+ }, z.core.$strip>, z.ZodObject<{
444
+ kind: z.ZodLiteral<"remove-node">;
445
+ }, z.core.$strip>, z.ZodObject<{
446
+ kind: z.ZodLiteral<"insert-child">;
447
+ node: z.ZodUnion<readonly [z.ZodObject<{
448
+ kind: z.ZodLiteral<"native-tag">;
449
+ tag: z.ZodString;
450
+ text: z.ZodOptional<z.ZodString>;
451
+ }, z.core.$strip>, z.ZodObject<{
452
+ kind: z.ZodLiteral<"component-call">;
453
+ component: z.ZodObject<{
454
+ source: z.ZodString;
455
+ exportName: z.ZodString;
456
+ }, z.core.$strip>;
457
+ materialization: z.ZodOptional<z.ZodNever>;
458
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
459
+ }, z.core.$strict>, z.ZodObject<{
460
+ kind: z.ZodLiteral<"component-call">;
461
+ component: z.ZodOptional<z.ZodNever>;
462
+ materialization: z.ZodObject<{
463
+ instanceBaseName: z.ZodString;
464
+ files: z.ZodArray<z.ZodObject<{
465
+ pathTemplate: z.ZodString;
466
+ content: z.ZodString;
467
+ role: z.ZodOptional<z.ZodString>;
468
+ }, z.core.$strict>>;
469
+ entry: z.ZodObject<{
470
+ pathTemplate: z.ZodString;
471
+ export: z.ZodUnion<readonly [z.ZodObject<{
472
+ kind: z.ZodLiteral<"default">;
473
+ }, z.core.$strict>, z.ZodObject<{
474
+ kind: z.ZodLiteral<"named">;
475
+ name: z.ZodString;
476
+ }, z.core.$strict>]>;
477
+ }, z.core.$strict>;
478
+ dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
479
+ }, z.core.$strict>;
480
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
481
+ }, z.core.$strict>]>;
482
+ position: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
483
+ relation: z.ZodEnum<{
484
+ before: "before";
485
+ after: "after";
486
+ }>;
487
+ anchorKey: z.ZodString;
488
+ }, z.core.$strip>, z.ZodObject<{
489
+ relation: z.ZodEnum<{
490
+ prepend: "prepend";
491
+ append: "append";
492
+ }>;
493
+ parentKey: z.ZodString;
494
+ }, z.core.$strip>, z.ZodObject<{
495
+ kind: z.ZodLiteral<"page-composition">;
496
+ placementKey: z.ZodString;
497
+ documentVersion: z.ZodNumber;
498
+ routeId: z.ZodString;
499
+ placementUnitKey: z.ZodString;
500
+ relation: z.ZodEnum<{
501
+ before: "before";
502
+ after: "after";
503
+ prepend: "prepend";
504
+ append: "append";
505
+ }>;
506
+ }, z.core.$strict>]>, z.ZodObject<{
507
+ kind: z.ZodLiteral<"page-composition">;
508
+ placementKey: z.ZodString;
509
+ documentVersion: z.ZodNumber;
510
+ }, z.core.$strict>]>;
511
+ }, z.core.$strip>, z.ZodObject<{
512
+ kind: z.ZodLiteral<"move-node">;
513
+ target: z.ZodUnion<readonly [z.ZodObject<{
514
+ relation: z.ZodEnum<{
515
+ before: "before";
516
+ after: "after";
517
+ }>;
518
+ anchorKey: z.ZodString;
519
+ }, z.core.$strip>, z.ZodObject<{
520
+ relation: z.ZodEnum<{
521
+ prepend: "prepend";
522
+ append: "append";
523
+ }>;
524
+ parentKey: z.ZodString;
525
+ }, z.core.$strip>, z.ZodObject<{
526
+ kind: z.ZodLiteral<"page-composition">;
527
+ placementKey: z.ZodString;
528
+ documentVersion: z.ZodNumber;
529
+ routeId: z.ZodString;
530
+ placementUnitKey: z.ZodString;
531
+ relation: z.ZodEnum<{
532
+ before: "before";
533
+ after: "after";
534
+ prepend: "prepend";
535
+ append: "append";
536
+ }>;
537
+ }, z.core.$strict>]>;
538
+ preserveBindings: z.ZodOptional<z.ZodBoolean>;
539
+ }, z.core.$strip>, z.ZodObject<{
540
+ kind: z.ZodLiteral<"set-class-name-source">;
541
+ routeId: z.ZodOptional<z.ZodString>;
542
+ filePath: z.ZodString;
543
+ expectedVersion: z.ZodObject<{
544
+ documentVersion: z.ZodNumber;
545
+ contentHash: z.ZodString;
546
+ }, z.core.$strip>;
547
+ oldAttrRaw: z.ZodNullable<z.ZodString>;
548
+ oldAttrRange: z.ZodNullable<z.ZodObject<{
549
+ start: z.ZodNumber;
550
+ end: z.ZodNumber;
551
+ }, z.core.$strip>>;
552
+ openingElementRange: z.ZodObject<{
553
+ start: z.ZodNumber;
554
+ end: z.ZodNumber;
555
+ }, z.core.$strip>;
556
+ newAttrRaw: z.ZodNullable<z.ZodString>;
557
+ intent: z.ZodObject<{
558
+ source: z.ZodEnum<{
559
+ "style-panel": "style-panel";
560
+ "class-source-editor": "class-source-editor";
561
+ }>;
562
+ operation: z.ZodEnum<{
563
+ "replace-static-classname": "replace-static-classname";
564
+ "replace-expression": "replace-expression";
565
+ "create-attribute": "create-attribute";
566
+ "remove-attribute": "remove-attribute";
567
+ }>;
568
+ }, z.core.$strip>;
569
+ }, z.core.$strip>, z.ZodObject<{
570
+ kind: z.ZodLiteral<"set-props">;
571
+ props: z.ZodRecord<z.ZodEnum<{
572
+ src: "src";
573
+ alt: "alt";
574
+ poster: "poster";
575
+ href: "href";
576
+ width: "width";
577
+ height: "height";
578
+ }> & z.core.$partial, z.ZodString>;
579
+ }, z.core.$strip>, z.ZodObject<{
580
+ kind: z.ZodLiteral<"apply-style-draft">;
581
+ className: z.ZodOptional<z.ZodObject<{
582
+ routeId: z.ZodOptional<z.ZodString>;
583
+ filePath: z.ZodString;
584
+ expectedVersion: z.ZodObject<{
585
+ documentVersion: z.ZodNumber;
586
+ contentHash: z.ZodString;
587
+ }, z.core.$strip>;
588
+ oldAttrRaw: z.ZodNullable<z.ZodString>;
589
+ oldAttrRange: z.ZodNullable<z.ZodObject<{
590
+ start: z.ZodNumber;
591
+ end: z.ZodNumber;
592
+ }, z.core.$strip>>;
593
+ openingElementRange: z.ZodObject<{
594
+ start: z.ZodNumber;
595
+ end: z.ZodNumber;
596
+ }, z.core.$strip>;
597
+ newAttrRaw: z.ZodNullable<z.ZodString>;
598
+ intent: z.ZodObject<{
599
+ source: z.ZodEnum<{
600
+ "style-panel": "style-panel";
601
+ "class-source-editor": "class-source-editor";
602
+ }>;
603
+ operation: z.ZodEnum<{
604
+ "replace-static-classname": "replace-static-classname";
605
+ "replace-expression": "replace-expression";
606
+ "create-attribute": "create-attribute";
607
+ "remove-attribute": "remove-attribute";
608
+ }>;
609
+ }, z.core.$strip>;
610
+ }, z.core.$strip>>;
611
+ props: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
612
+ src: "src";
613
+ alt: "alt";
614
+ poster: "poster";
615
+ href: "href";
616
+ width: "width";
617
+ height: "height";
618
+ }> & z.core.$partial, z.ZodString>>;
619
+ }, z.core.$strip>, z.ZodObject<{
620
+ kind: z.ZodLiteral<"source-edit">;
621
+ conflictPolicy: z.ZodEnum<{
622
+ "compare-and-swap": "compare-and-swap";
623
+ overwrite: "overwrite";
624
+ }>;
625
+ edits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
626
+ operation: z.ZodLiteral<"upsert">;
627
+ path: z.ZodString;
628
+ content: z.ZodString;
629
+ baseContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
630
+ }, z.core.$strict>, z.ZodObject<{
631
+ operation: z.ZodLiteral<"delete">;
632
+ path: z.ZodString;
633
+ capability: z.ZodLiteral<"source-delete">;
634
+ confirmDelete: z.ZodLiteral<true>;
635
+ confirmPath: z.ZodString;
636
+ baseContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
637
+ }, z.core.$strict>], "operation">>;
638
+ reason: z.ZodOptional<z.ZodString>;
639
+ }, z.core.$strict>, z.ZodObject<{
640
+ kind: z.ZodLiteral<"insert-page-resource">;
641
+ artifact: z.ZodObject<{
642
+ resource_id: z.ZodString;
643
+ resource_type: z.ZodEnum<{
644
+ page: "page";
645
+ pages: "pages";
646
+ }>;
647
+ resolved_version: z.ZodString;
648
+ revision_id: z.ZodString;
649
+ digest_sha256: z.ZodString;
650
+ components: z.ZodArray<z.ZodObject<{
651
+ component_id: z.ZodString;
652
+ materialization: z.ZodObject<{
653
+ instanceBaseName: z.ZodString;
654
+ files: z.ZodArray<z.ZodObject<{
655
+ pathTemplate: z.ZodString;
656
+ content: z.ZodString;
657
+ role: z.ZodOptional<z.ZodString>;
658
+ }, z.core.$strict>>;
659
+ entry: z.ZodObject<{
660
+ pathTemplate: z.ZodString;
661
+ export: z.ZodUnion<readonly [z.ZodObject<{
662
+ kind: z.ZodLiteral<"default">;
663
+ }, z.core.$strict>, z.ZodObject<{
664
+ kind: z.ZodLiteral<"named">;
665
+ name: z.ZodString;
666
+ }, z.core.$strict>]>;
667
+ }, z.core.$strict>;
668
+ dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
669
+ }, z.core.$strict>;
670
+ }, z.core.$strict>>;
671
+ pages: z.ZodArray<z.ZodObject<{
672
+ template_page_id: z.ZodString;
673
+ title: z.ZodString;
674
+ final_route: z.ZodString;
675
+ materialization: z.ZodObject<{
676
+ instanceBaseName: z.ZodString;
677
+ files: z.ZodArray<z.ZodObject<{
678
+ pathTemplate: z.ZodString;
679
+ content: z.ZodString;
680
+ role: z.ZodOptional<z.ZodString>;
681
+ }, z.core.$strict>>;
682
+ entry: z.ZodObject<{
683
+ pathTemplate: z.ZodString;
684
+ export: z.ZodUnion<readonly [z.ZodObject<{
685
+ kind: z.ZodLiteral<"default">;
686
+ }, z.core.$strict>, z.ZodObject<{
687
+ kind: z.ZodLiteral<"named">;
688
+ name: z.ZodString;
689
+ }, z.core.$strict>]>;
690
+ }, z.core.$strict>;
691
+ dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
692
+ }, z.core.$strict>;
693
+ components: z.ZodArray<z.ZodObject<{
694
+ instance_id: z.ZodString;
695
+ component_id: z.ZodString;
696
+ }, z.core.$strict>>;
697
+ }, z.core.$strict>>;
698
+ project_dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
699
+ }, z.core.$strict>;
700
+ }, z.core.$strict>], "kind">;
701
+ }, z.core.$strip>;
702
+ navigation_selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
703
+ kind: z.ZodLiteral<"none">;
704
+ }, z.core.$strict>, z.ZodObject<{
705
+ kind: z.ZodLiteral<"primary">;
706
+ items: z.ZodArray<z.ZodObject<{
707
+ label: z.ZodString;
708
+ href: z.ZodString;
709
+ }, z.core.$strict>>;
710
+ }, z.core.$strict>], "kind">>;
711
+ }, z.core.$strict>;
712
+ }, z.core.$strict>;
713
+ }, z.core.$strict>;
714
+ export type WorkspaceResourceOperationClientMessage = z.infer<typeof WorkspaceResourceOperationClientMessageSchema>;