@vcp-dev/contracts 0.3.14

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,593 @@
1
+ import { z } from "zod";
2
+ import { type SiteEditCommandResult } from "./site-edit-command-result.js";
3
+ export declare const SiteEditOperationTypeSchema: z.ZodEnum<{
4
+ "update-text": "update-text";
5
+ "remove-node": "remove-node";
6
+ "insert-child": "insert-child";
7
+ "move-node": "move-node";
8
+ "set-class-name-source": "set-class-name-source";
9
+ "set-props": "set-props";
10
+ "apply-style-draft": "apply-style-draft";
11
+ }>;
12
+ export type SiteEditOperationType = z.infer<typeof SiteEditOperationTypeSchema>;
13
+ export type SiteEditOperationValue = string | number | boolean | null | SiteEditOperationValue[] | {
14
+ [key: string]: SiteEditOperationValue;
15
+ };
16
+ export declare const SiteEditOperationValueSchema: z.ZodType<SiteEditOperationValue>;
17
+ export declare const SiteEditOperationTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
18
+ kind: z.ZodLiteral<"node">;
19
+ key: z.ZodString;
20
+ }, z.core.$strip>, z.ZodObject<{
21
+ kind: z.ZodLiteral<"route">;
22
+ routeId: z.ZodString;
23
+ }, z.core.$strip>], "kind">;
24
+ export type SiteEditOperationTarget = z.infer<typeof SiteEditOperationTargetSchema>;
25
+ export declare const SiteEditStylePropertySchema: z.ZodEnum<{
26
+ color: "color";
27
+ transform: "transform";
28
+ width: "width";
29
+ height: "height";
30
+ display: "display";
31
+ position: "position";
32
+ top: "top";
33
+ right: "right";
34
+ bottom: "bottom";
35
+ left: "left";
36
+ zIndex: "zIndex";
37
+ flexDirection: "flexDirection";
38
+ flexWrap: "flexWrap";
39
+ flexGrow: "flexGrow";
40
+ flexShrink: "flexShrink";
41
+ flexBasis: "flexBasis";
42
+ order: "order";
43
+ gridTemplateColumns: "gridTemplateColumns";
44
+ gridTemplateRows: "gridTemplateRows";
45
+ columns: "columns";
46
+ gridColumn: "gridColumn";
47
+ gridRow: "gridRow";
48
+ gap: "gap";
49
+ gapX: "gapX";
50
+ gapY: "gapY";
51
+ spaceX: "spaceX";
52
+ spaceY: "spaceY";
53
+ alignItems: "alignItems";
54
+ justifyContent: "justifyContent";
55
+ marginTop: "marginTop";
56
+ marginRight: "marginRight";
57
+ marginBottom: "marginBottom";
58
+ marginLeft: "marginLeft";
59
+ paddingTop: "paddingTop";
60
+ paddingRight: "paddingRight";
61
+ paddingBottom: "paddingBottom";
62
+ paddingLeft: "paddingLeft";
63
+ minWidth: "minWidth";
64
+ minHeight: "minHeight";
65
+ maxWidth: "maxWidth";
66
+ maxHeight: "maxHeight";
67
+ overflow: "overflow";
68
+ fontFamily: "fontFamily";
69
+ fontSize: "fontSize";
70
+ fontWeight: "fontWeight";
71
+ lineHeight: "lineHeight";
72
+ letterSpacing: "letterSpacing";
73
+ textAlign: "textAlign";
74
+ textTransform: "textTransform";
75
+ textDecoration: "textDecoration";
76
+ textOverflow: "textOverflow";
77
+ textIndent: "textIndent";
78
+ writingMode: "writingMode";
79
+ whiteSpace: "whiteSpace";
80
+ wordBreak: "wordBreak";
81
+ lineClamp: "lineClamp";
82
+ fontVariantNumeric: "fontVariantNumeric";
83
+ screenReaderOnly: "screenReaderOnly";
84
+ backgroundColor: "backgroundColor";
85
+ backgroundImage: "backgroundImage";
86
+ backgroundRepeat: "backgroundRepeat";
87
+ backgroundSize: "backgroundSize";
88
+ backgroundPosition: "backgroundPosition";
89
+ backgroundAttachment: "backgroundAttachment";
90
+ backgroundClip: "backgroundClip";
91
+ backgroundOrigin: "backgroundOrigin";
92
+ borderStyle: "borderStyle";
93
+ borderWidth: "borderWidth";
94
+ borderRadius: "borderRadius";
95
+ borderColor: "borderColor";
96
+ objectFit: "objectFit";
97
+ objectPosition: "objectPosition";
98
+ aspectRatio: "aspectRatio";
99
+ opacity: "opacity";
100
+ boxShadow: "boxShadow";
101
+ transformOrigin: "transformOrigin";
102
+ transitionProperty: "transitionProperty";
103
+ transitionDuration: "transitionDuration";
104
+ transitionTimingFunction: "transitionTimingFunction";
105
+ animation: "animation";
106
+ pointerEvents: "pointerEvents";
107
+ cursor: "cursor";
108
+ userSelect: "userSelect";
109
+ fontStyle: "fontStyle";
110
+ textUnderlineOffset: "textUnderlineOffset";
111
+ scrollMarginTop: "scrollMarginTop";
112
+ alignSelf: "alignSelf";
113
+ flex: "flex";
114
+ outlineStyle: "outlineStyle";
115
+ resize: "resize";
116
+ ringWidth: "ringWidth";
117
+ ringColor: "ringColor";
118
+ backdropFilter: "backdropFilter";
119
+ overscrollBehavior: "overscrollBehavior";
120
+ divideWidth: "divideWidth";
121
+ divideColor: "divideColor";
122
+ }>;
123
+ export type SiteEditStyleProperty = z.infer<typeof SiteEditStylePropertySchema>;
124
+ export declare const SiteEditStyleStateModeSchema: z.ZodEnum<{
125
+ hover: "hover";
126
+ active: "active";
127
+ focus: "focus";
128
+ disabled: "disabled";
129
+ }>;
130
+ export type SiteEditStyleStateMode = z.infer<typeof SiteEditStyleStateModeSchema>;
131
+ export declare const SiteEditStyleBreakpointSchema: z.ZodEnum<{
132
+ sm: "sm";
133
+ md: "md";
134
+ lg: "lg";
135
+ xl: "xl";
136
+ "2xl": "2xl";
137
+ }>;
138
+ export type SiteEditStyleBreakpoint = z.infer<typeof SiteEditStyleBreakpointSchema>;
139
+ export declare const SiteEditMoveTargetSchema: z.ZodUnion<readonly [z.ZodObject<{
140
+ relation: z.ZodEnum<{
141
+ before: "before";
142
+ after: "after";
143
+ }>;
144
+ anchorKey: z.ZodString;
145
+ }, z.core.$strip>, z.ZodObject<{
146
+ relation: z.ZodEnum<{
147
+ prepend: "prepend";
148
+ append: "append";
149
+ }>;
150
+ parentKey: z.ZodString;
151
+ }, z.core.$strip>]>;
152
+ export type SiteEditMoveTarget = z.infer<typeof SiteEditMoveTargetSchema>;
153
+ export declare const SiteEditInsertNodeSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
154
+ kind: z.ZodLiteral<"native-tag">;
155
+ tag: z.ZodString;
156
+ text: z.ZodOptional<z.ZodString>;
157
+ }, z.core.$strip>, z.ZodObject<{
158
+ kind: z.ZodLiteral<"component-call">;
159
+ component: z.ZodObject<{
160
+ source: z.ZodString;
161
+ exportName: z.ZodString;
162
+ }, z.core.$strip>;
163
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
164
+ }, z.core.$strip>], "kind">;
165
+ export type SiteEditInsertNodeSpec = z.infer<typeof SiteEditInsertNodeSpecSchema>;
166
+ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
167
+ kind: z.ZodLiteral<"update-text">;
168
+ segmentIndex: z.ZodNumber;
169
+ value: z.ZodString;
170
+ }, z.core.$strip>, z.ZodObject<{
171
+ kind: z.ZodLiteral<"remove-node">;
172
+ }, z.core.$strip>, z.ZodObject<{
173
+ kind: z.ZodLiteral<"insert-child">;
174
+ node: z.ZodDiscriminatedUnion<[z.ZodObject<{
175
+ kind: z.ZodLiteral<"native-tag">;
176
+ tag: z.ZodString;
177
+ text: z.ZodOptional<z.ZodString>;
178
+ }, z.core.$strip>, z.ZodObject<{
179
+ kind: z.ZodLiteral<"component-call">;
180
+ component: z.ZodObject<{
181
+ source: z.ZodString;
182
+ exportName: z.ZodString;
183
+ }, z.core.$strip>;
184
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
185
+ }, z.core.$strip>], "kind">;
186
+ position: z.ZodUnion<readonly [z.ZodObject<{
187
+ relation: z.ZodEnum<{
188
+ before: "before";
189
+ after: "after";
190
+ }>;
191
+ anchorKey: z.ZodString;
192
+ }, z.core.$strip>, z.ZodObject<{
193
+ relation: z.ZodEnum<{
194
+ prepend: "prepend";
195
+ append: "append";
196
+ }>;
197
+ parentKey: z.ZodString;
198
+ }, z.core.$strip>]>;
199
+ }, z.core.$strip>, z.ZodObject<{
200
+ kind: z.ZodLiteral<"move-node">;
201
+ target: z.ZodUnion<readonly [z.ZodObject<{
202
+ relation: z.ZodEnum<{
203
+ before: "before";
204
+ after: "after";
205
+ }>;
206
+ anchorKey: z.ZodString;
207
+ }, z.core.$strip>, z.ZodObject<{
208
+ relation: z.ZodEnum<{
209
+ prepend: "prepend";
210
+ append: "append";
211
+ }>;
212
+ parentKey: z.ZodString;
213
+ }, z.core.$strip>]>;
214
+ preserveBindings: z.ZodOptional<z.ZodBoolean>;
215
+ }, z.core.$strip>, z.ZodObject<{
216
+ kind: z.ZodLiteral<"set-class-name-source">;
217
+ routeId: z.ZodOptional<z.ZodString>;
218
+ filePath: z.ZodString;
219
+ expectedVersion: z.ZodObject<{
220
+ documentVersion: z.ZodNumber;
221
+ contentHash: z.ZodString;
222
+ }, z.core.$strip>;
223
+ oldAttrRaw: z.ZodNullable<z.ZodString>;
224
+ oldAttrRange: z.ZodNullable<z.ZodObject<{
225
+ start: z.ZodNumber;
226
+ end: z.ZodNumber;
227
+ startLine: z.ZodOptional<z.ZodNumber>;
228
+ startColumn: z.ZodOptional<z.ZodNumber>;
229
+ endLine: z.ZodOptional<z.ZodNumber>;
230
+ endColumn: z.ZodOptional<z.ZodNumber>;
231
+ }, z.core.$strip>>;
232
+ openingElementRange: z.ZodObject<{
233
+ start: z.ZodNumber;
234
+ end: z.ZodNumber;
235
+ startLine: z.ZodOptional<z.ZodNumber>;
236
+ startColumn: z.ZodOptional<z.ZodNumber>;
237
+ endLine: z.ZodOptional<z.ZodNumber>;
238
+ endColumn: z.ZodOptional<z.ZodNumber>;
239
+ }, z.core.$strip>;
240
+ newAttrRaw: z.ZodNullable<z.ZodString>;
241
+ intent: z.ZodObject<{
242
+ source: z.ZodEnum<{
243
+ "style-panel": "style-panel";
244
+ "class-source-editor": "class-source-editor";
245
+ }>;
246
+ operation: z.ZodEnum<{
247
+ "replace-static-classname": "replace-static-classname";
248
+ "replace-expression": "replace-expression";
249
+ "create-attribute": "create-attribute";
250
+ "remove-attribute": "remove-attribute";
251
+ }>;
252
+ }, z.core.$strip>;
253
+ }, z.core.$strip>, z.ZodObject<{
254
+ kind: z.ZodLiteral<"set-props">;
255
+ props: z.ZodRecord<z.ZodEnum<{
256
+ src: "src";
257
+ alt: "alt";
258
+ poster: "poster";
259
+ href: "href";
260
+ width: "width";
261
+ height: "height";
262
+ }> & z.core.$partial, z.ZodString>;
263
+ }, z.core.$strip>, z.ZodObject<{
264
+ kind: z.ZodLiteral<"apply-style-draft">;
265
+ className: z.ZodOptional<z.ZodObject<{
266
+ routeId: z.ZodOptional<z.ZodString>;
267
+ filePath: z.ZodString;
268
+ expectedVersion: z.ZodObject<{
269
+ documentVersion: z.ZodNumber;
270
+ contentHash: z.ZodString;
271
+ }, z.core.$strip>;
272
+ oldAttrRaw: z.ZodNullable<z.ZodString>;
273
+ oldAttrRange: z.ZodNullable<z.ZodObject<{
274
+ start: z.ZodNumber;
275
+ end: z.ZodNumber;
276
+ startLine: z.ZodOptional<z.ZodNumber>;
277
+ startColumn: z.ZodOptional<z.ZodNumber>;
278
+ endLine: z.ZodOptional<z.ZodNumber>;
279
+ endColumn: z.ZodOptional<z.ZodNumber>;
280
+ }, z.core.$strip>>;
281
+ openingElementRange: z.ZodObject<{
282
+ start: z.ZodNumber;
283
+ end: z.ZodNumber;
284
+ startLine: z.ZodOptional<z.ZodNumber>;
285
+ startColumn: z.ZodOptional<z.ZodNumber>;
286
+ endLine: z.ZodOptional<z.ZodNumber>;
287
+ endColumn: z.ZodOptional<z.ZodNumber>;
288
+ }, z.core.$strip>;
289
+ newAttrRaw: z.ZodNullable<z.ZodString>;
290
+ intent: z.ZodObject<{
291
+ source: z.ZodEnum<{
292
+ "style-panel": "style-panel";
293
+ "class-source-editor": "class-source-editor";
294
+ }>;
295
+ operation: z.ZodEnum<{
296
+ "replace-static-classname": "replace-static-classname";
297
+ "replace-expression": "replace-expression";
298
+ "create-attribute": "create-attribute";
299
+ "remove-attribute": "remove-attribute";
300
+ }>;
301
+ }, z.core.$strip>;
302
+ }, z.core.$strip>>;
303
+ props: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
304
+ src: "src";
305
+ alt: "alt";
306
+ poster: "poster";
307
+ href: "href";
308
+ width: "width";
309
+ height: "height";
310
+ }> & z.core.$partial, z.ZodString>>;
311
+ }, z.core.$strip>], "kind">;
312
+ export type SiteEditOperationParams = z.infer<typeof SiteEditOperationParamsSchema>;
313
+ export declare const SiteEditOperationErrorCodeSchema: z.ZodEnum<{
314
+ NODE_NOT_FOUND: "NODE_NOT_FOUND";
315
+ ROUTE_NOT_FOUND: "ROUTE_NOT_FOUND";
316
+ CAPABILITY_REJECTED: "CAPABILITY_REJECTED";
317
+ CONSTRAINT_VIOLATED: "CONSTRAINT_VIOLATED";
318
+ INVALID_PARAMS: "INVALID_PARAMS";
319
+ PLAN_FAILED: "PLAN_FAILED";
320
+ VERSION_STALE: "VERSION_STALE";
321
+ AST_PARSE_ERROR: "AST_PARSE_ERROR";
322
+ UNSUPPORTED_OPERATION: "UNSUPPORTED_OPERATION";
323
+ LOCATOR_FAILED: "LOCATOR_FAILED";
324
+ INVALID_TARGET: "INVALID_TARGET";
325
+ WRITE_IO_ERROR: "WRITE_IO_ERROR";
326
+ CONCURRENT_MODIFIED: "CONCURRENT_MODIFIED";
327
+ ROLLBACK_FAILED: "ROLLBACK_FAILED";
328
+ INTERNAL_ERROR: "INTERNAL_ERROR";
329
+ }>;
330
+ export type SiteEditOperationErrorCode = z.infer<typeof SiteEditOperationErrorCodeSchema>;
331
+ export declare const SiteEditOperationErrorSchema: z.ZodObject<{
332
+ code: z.ZodEnum<{
333
+ NODE_NOT_FOUND: "NODE_NOT_FOUND";
334
+ ROUTE_NOT_FOUND: "ROUTE_NOT_FOUND";
335
+ CAPABILITY_REJECTED: "CAPABILITY_REJECTED";
336
+ CONSTRAINT_VIOLATED: "CONSTRAINT_VIOLATED";
337
+ INVALID_PARAMS: "INVALID_PARAMS";
338
+ PLAN_FAILED: "PLAN_FAILED";
339
+ VERSION_STALE: "VERSION_STALE";
340
+ AST_PARSE_ERROR: "AST_PARSE_ERROR";
341
+ UNSUPPORTED_OPERATION: "UNSUPPORTED_OPERATION";
342
+ LOCATOR_FAILED: "LOCATOR_FAILED";
343
+ INVALID_TARGET: "INVALID_TARGET";
344
+ WRITE_IO_ERROR: "WRITE_IO_ERROR";
345
+ CONCURRENT_MODIFIED: "CONCURRENT_MODIFIED";
346
+ ROLLBACK_FAILED: "ROLLBACK_FAILED";
347
+ INTERNAL_ERROR: "INTERNAL_ERROR";
348
+ }>;
349
+ message: z.ZodString;
350
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
351
+ }, z.core.$strip>;
352
+ export type SiteEditOperationError = z.infer<typeof SiteEditOperationErrorSchema>;
353
+ export declare const SiteEditOperationSelectionRefSchema: z.ZodObject<{
354
+ key: z.ZodString;
355
+ instanceIndex: z.ZodOptional<z.ZodNumber>;
356
+ instanceCount: z.ZodOptional<z.ZodNumber>;
357
+ }, z.core.$strip>;
358
+ export type SiteEditOperationSelectionRef = z.infer<typeof SiteEditOperationSelectionRefSchema>;
359
+ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
360
+ id: z.ZodString;
361
+ siteId: z.ZodString;
362
+ baseSnapshotId: z.ZodString;
363
+ routeId: z.ZodOptional<z.ZodString>;
364
+ kind: z.ZodEnum<{
365
+ "update-text": "update-text";
366
+ "remove-node": "remove-node";
367
+ "insert-child": "insert-child";
368
+ "move-node": "move-node";
369
+ "set-class-name-source": "set-class-name-source";
370
+ "set-props": "set-props";
371
+ "apply-style-draft": "apply-style-draft";
372
+ }>;
373
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
374
+ kind: z.ZodLiteral<"node">;
375
+ key: z.ZodString;
376
+ }, z.core.$strip>, z.ZodObject<{
377
+ kind: z.ZodLiteral<"route">;
378
+ routeId: z.ZodString;
379
+ }, z.core.$strip>], "kind">;
380
+ documentVersion: z.ZodNumber;
381
+ selectionRef: z.ZodOptional<z.ZodObject<{
382
+ key: z.ZodString;
383
+ instanceIndex: z.ZodOptional<z.ZodNumber>;
384
+ instanceCount: z.ZodOptional<z.ZodNumber>;
385
+ }, z.core.$strip>>;
386
+ params: z.ZodDiscriminatedUnion<[z.ZodObject<{
387
+ kind: z.ZodLiteral<"update-text">;
388
+ segmentIndex: z.ZodNumber;
389
+ value: z.ZodString;
390
+ }, z.core.$strip>, z.ZodObject<{
391
+ kind: z.ZodLiteral<"remove-node">;
392
+ }, z.core.$strip>, z.ZodObject<{
393
+ kind: z.ZodLiteral<"insert-child">;
394
+ node: z.ZodDiscriminatedUnion<[z.ZodObject<{
395
+ kind: z.ZodLiteral<"native-tag">;
396
+ tag: z.ZodString;
397
+ text: z.ZodOptional<z.ZodString>;
398
+ }, z.core.$strip>, z.ZodObject<{
399
+ kind: z.ZodLiteral<"component-call">;
400
+ component: z.ZodObject<{
401
+ source: z.ZodString;
402
+ exportName: z.ZodString;
403
+ }, z.core.$strip>;
404
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
405
+ }, z.core.$strip>], "kind">;
406
+ position: z.ZodUnion<readonly [z.ZodObject<{
407
+ relation: z.ZodEnum<{
408
+ before: "before";
409
+ after: "after";
410
+ }>;
411
+ anchorKey: z.ZodString;
412
+ }, z.core.$strip>, z.ZodObject<{
413
+ relation: z.ZodEnum<{
414
+ prepend: "prepend";
415
+ append: "append";
416
+ }>;
417
+ parentKey: z.ZodString;
418
+ }, z.core.$strip>]>;
419
+ }, z.core.$strip>, z.ZodObject<{
420
+ kind: z.ZodLiteral<"move-node">;
421
+ target: z.ZodUnion<readonly [z.ZodObject<{
422
+ relation: z.ZodEnum<{
423
+ before: "before";
424
+ after: "after";
425
+ }>;
426
+ anchorKey: z.ZodString;
427
+ }, z.core.$strip>, z.ZodObject<{
428
+ relation: z.ZodEnum<{
429
+ prepend: "prepend";
430
+ append: "append";
431
+ }>;
432
+ parentKey: z.ZodString;
433
+ }, z.core.$strip>]>;
434
+ preserveBindings: z.ZodOptional<z.ZodBoolean>;
435
+ }, z.core.$strip>, z.ZodObject<{
436
+ kind: z.ZodLiteral<"set-class-name-source">;
437
+ routeId: z.ZodOptional<z.ZodString>;
438
+ filePath: z.ZodString;
439
+ expectedVersion: z.ZodObject<{
440
+ documentVersion: z.ZodNumber;
441
+ contentHash: z.ZodString;
442
+ }, z.core.$strip>;
443
+ oldAttrRaw: z.ZodNullable<z.ZodString>;
444
+ oldAttrRange: z.ZodNullable<z.ZodObject<{
445
+ start: z.ZodNumber;
446
+ end: z.ZodNumber;
447
+ startLine: z.ZodOptional<z.ZodNumber>;
448
+ startColumn: z.ZodOptional<z.ZodNumber>;
449
+ endLine: z.ZodOptional<z.ZodNumber>;
450
+ endColumn: z.ZodOptional<z.ZodNumber>;
451
+ }, z.core.$strip>>;
452
+ openingElementRange: z.ZodObject<{
453
+ start: z.ZodNumber;
454
+ end: z.ZodNumber;
455
+ startLine: z.ZodOptional<z.ZodNumber>;
456
+ startColumn: z.ZodOptional<z.ZodNumber>;
457
+ endLine: z.ZodOptional<z.ZodNumber>;
458
+ endColumn: z.ZodOptional<z.ZodNumber>;
459
+ }, z.core.$strip>;
460
+ newAttrRaw: z.ZodNullable<z.ZodString>;
461
+ intent: z.ZodObject<{
462
+ source: z.ZodEnum<{
463
+ "style-panel": "style-panel";
464
+ "class-source-editor": "class-source-editor";
465
+ }>;
466
+ operation: z.ZodEnum<{
467
+ "replace-static-classname": "replace-static-classname";
468
+ "replace-expression": "replace-expression";
469
+ "create-attribute": "create-attribute";
470
+ "remove-attribute": "remove-attribute";
471
+ }>;
472
+ }, z.core.$strip>;
473
+ }, z.core.$strip>, z.ZodObject<{
474
+ kind: z.ZodLiteral<"set-props">;
475
+ props: z.ZodRecord<z.ZodEnum<{
476
+ src: "src";
477
+ alt: "alt";
478
+ poster: "poster";
479
+ href: "href";
480
+ width: "width";
481
+ height: "height";
482
+ }> & z.core.$partial, z.ZodString>;
483
+ }, z.core.$strip>, z.ZodObject<{
484
+ kind: z.ZodLiteral<"apply-style-draft">;
485
+ className: z.ZodOptional<z.ZodObject<{
486
+ routeId: z.ZodOptional<z.ZodString>;
487
+ filePath: z.ZodString;
488
+ expectedVersion: z.ZodObject<{
489
+ documentVersion: z.ZodNumber;
490
+ contentHash: z.ZodString;
491
+ }, z.core.$strip>;
492
+ oldAttrRaw: z.ZodNullable<z.ZodString>;
493
+ oldAttrRange: z.ZodNullable<z.ZodObject<{
494
+ start: z.ZodNumber;
495
+ end: z.ZodNumber;
496
+ startLine: z.ZodOptional<z.ZodNumber>;
497
+ startColumn: z.ZodOptional<z.ZodNumber>;
498
+ endLine: z.ZodOptional<z.ZodNumber>;
499
+ endColumn: z.ZodOptional<z.ZodNumber>;
500
+ }, z.core.$strip>>;
501
+ openingElementRange: z.ZodObject<{
502
+ start: z.ZodNumber;
503
+ end: z.ZodNumber;
504
+ startLine: z.ZodOptional<z.ZodNumber>;
505
+ startColumn: z.ZodOptional<z.ZodNumber>;
506
+ endLine: z.ZodOptional<z.ZodNumber>;
507
+ endColumn: z.ZodOptional<z.ZodNumber>;
508
+ }, z.core.$strip>;
509
+ newAttrRaw: z.ZodNullable<z.ZodString>;
510
+ intent: z.ZodObject<{
511
+ source: z.ZodEnum<{
512
+ "style-panel": "style-panel";
513
+ "class-source-editor": "class-source-editor";
514
+ }>;
515
+ operation: z.ZodEnum<{
516
+ "replace-static-classname": "replace-static-classname";
517
+ "replace-expression": "replace-expression";
518
+ "create-attribute": "create-attribute";
519
+ "remove-attribute": "remove-attribute";
520
+ }>;
521
+ }, z.core.$strip>;
522
+ }, z.core.$strip>>;
523
+ props: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
524
+ src: "src";
525
+ alt: "alt";
526
+ poster: "poster";
527
+ href: "href";
528
+ width: "width";
529
+ height: "height";
530
+ }> & z.core.$partial, z.ZodString>>;
531
+ }, z.core.$strip>], "kind">;
532
+ }, z.core.$strip>;
533
+ export type SiteEditOperationRequest = z.infer<typeof SiteEditOperationRequestSchema>;
534
+ export declare const SiteEditOperationPayloadSchema: z.ZodObject<{
535
+ requestId: z.ZodString;
536
+ kind: z.ZodEnum<{
537
+ "update-text": "update-text";
538
+ "remove-node": "remove-node";
539
+ "insert-child": "insert-child";
540
+ "move-node": "move-node";
541
+ "set-class-name-source": "set-class-name-source";
542
+ "set-props": "set-props";
543
+ "apply-style-draft": "apply-style-draft";
544
+ }>;
545
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
546
+ kind: z.ZodLiteral<"node">;
547
+ key: z.ZodString;
548
+ }, z.core.$strip>, z.ZodObject<{
549
+ kind: z.ZodLiteral<"route">;
550
+ routeId: z.ZodString;
551
+ }, z.core.$strip>], "kind">;
552
+ resultVersion: z.ZodNumber;
553
+ affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
554
+ selectionRef: z.ZodOptional<z.ZodObject<{
555
+ key: z.ZodString;
556
+ instanceIndex: z.ZodOptional<z.ZodNumber>;
557
+ instanceCount: z.ZodOptional<z.ZodNumber>;
558
+ }, z.core.$strip>>;
559
+ }, z.core.$strip>;
560
+ export type SiteEditOperationPayload = z.infer<typeof SiteEditOperationPayloadSchema>;
561
+ export declare const SiteEditOperationCommandResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
562
+ ok: z.ZodLiteral<true>;
563
+ data: z.ZodObject<{
564
+ requestId: z.ZodString;
565
+ kind: z.ZodEnum<{
566
+ "update-text": "update-text";
567
+ "remove-node": "remove-node";
568
+ "insert-child": "insert-child";
569
+ "move-node": "move-node";
570
+ "set-class-name-source": "set-class-name-source";
571
+ "set-props": "set-props";
572
+ "apply-style-draft": "apply-style-draft";
573
+ }>;
574
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
575
+ kind: z.ZodLiteral<"node">;
576
+ key: z.ZodString;
577
+ }, z.core.$strip>, z.ZodObject<{
578
+ kind: z.ZodLiteral<"route">;
579
+ routeId: z.ZodString;
580
+ }, z.core.$strip>], "kind">;
581
+ resultVersion: z.ZodNumber;
582
+ affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
583
+ selectionRef: z.ZodOptional<z.ZodObject<{
584
+ key: z.ZodString;
585
+ instanceIndex: z.ZodOptional<z.ZodNumber>;
586
+ instanceCount: z.ZodOptional<z.ZodNumber>;
587
+ }, z.core.$strip>>;
588
+ }, z.core.$strip>;
589
+ }, z.core.$strip>, z.ZodObject<{
590
+ [x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
591
+ }, z.core.$strip>], "ok">;
592
+ export type SiteEditOperationCommandResult = SiteEditCommandResult<SiteEditOperationPayload, SiteEditOperationErrorCode, unknown, never, Partial<SiteEditOperationPayload>>;
593
+ export type SiteEditOperationResult = SiteEditOperationPayload;
@@ -0,0 +1,35 @@
1
+ import { z } from "zod";
2
+ export declare const SiteEditPatchPlanPatchSchema: z.ZodObject<{
3
+ path: z.ZodString;
4
+ operation: z.ZodEnum<{
5
+ create: "create";
6
+ update: "update";
7
+ delete: "delete";
8
+ }>;
9
+ expectedHash: z.ZodOptional<z.ZodString>;
10
+ fullContent: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ export type SiteEditPatchPlanPatch = z.infer<typeof SiteEditPatchPlanPatchSchema>;
13
+ export declare const SiteEditPatchPlanSchema: z.ZodObject<{
14
+ siteId: z.ZodString;
15
+ baseSnapshotId: z.ZodString;
16
+ operationId: z.ZodString;
17
+ reason: z.ZodString;
18
+ patches: z.ZodArray<z.ZodObject<{
19
+ path: z.ZodString;
20
+ operation: z.ZodEnum<{
21
+ create: "create";
22
+ update: "update";
23
+ delete: "delete";
24
+ }>;
25
+ expectedHash: z.ZodOptional<z.ZodString>;
26
+ fullContent: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strip>>;
28
+ changedRouteIds: z.ZodArray<z.ZodString>;
29
+ diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
30
+ code: z.ZodString;
31
+ message: z.ZodString;
32
+ path: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strip>>>;
34
+ }, z.core.$strip>;
35
+ export type SiteEditPatchPlan = z.infer<typeof SiteEditPatchPlanSchema>;