@vcp-dev/contracts 0.4.9 → 0.6.1
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.
- package/dist/index.d.ts +39 -32
- package/dist/index.js +1 -1
- package/dist/site-edit-class-name-source.d.ts +3 -98
- package/dist/site-edit-event.d.ts +20 -2
- package/dist/site-edit-history-status.d.ts +120 -0
- package/dist/site-edit-materialization.d.ts +49 -0
- package/dist/site-edit-mutation-context.d.ts +24 -0
- package/dist/site-edit-operation.d.ts +465 -52
- package/dist/site-edit-page-composition.d.ts +971 -0
- package/dist/site-edit-render-document.d.ts +73 -138
- package/dist/site-edit-render-page-composition.d.ts +84 -0
- package/dist/site-edit-session.d.ts +15 -0
- package/dist/site-edit-version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { type SiteEditCommandResult } from "./site-edit-command-result.js";
|
|
3
3
|
export declare const SiteEditOperationTypeSchema: z.ZodEnum<{
|
|
4
|
+
"insert-child": "insert-child";
|
|
4
5
|
"update-text": "update-text";
|
|
5
6
|
"update-array-item": "update-array-item";
|
|
6
7
|
"remove-node": "remove-node";
|
|
7
|
-
"insert-child": "insert-child";
|
|
8
8
|
"move-node": "move-node";
|
|
9
9
|
"set-class-name-source": "set-class-name-source";
|
|
10
10
|
"set-props": "set-props";
|
|
@@ -20,6 +20,10 @@ export declare const SiteEditOperationTargetSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
20
20
|
kind: z.ZodLiteral<"node">;
|
|
21
21
|
key: z.ZodString;
|
|
22
22
|
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
kind: z.ZodLiteral<"page-unit">;
|
|
24
|
+
routeId: z.ZodString;
|
|
25
|
+
placementUnitKey: z.ZodString;
|
|
26
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
23
27
|
kind: z.ZodLiteral<"route">;
|
|
24
28
|
routeId: z.ZodString;
|
|
25
29
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -35,6 +39,7 @@ export declare const SiteEditStylePropertySchema: z.ZodEnum<{
|
|
|
35
39
|
transform: "transform";
|
|
36
40
|
width: "width";
|
|
37
41
|
height: "height";
|
|
42
|
+
order: "order";
|
|
38
43
|
display: "display";
|
|
39
44
|
position: "position";
|
|
40
45
|
top: "top";
|
|
@@ -47,7 +52,6 @@ export declare const SiteEditStylePropertySchema: z.ZodEnum<{
|
|
|
47
52
|
flexGrow: "flexGrow";
|
|
48
53
|
flexShrink: "flexShrink";
|
|
49
54
|
flexBasis: "flexBasis";
|
|
50
|
-
order: "order";
|
|
51
55
|
gridTemplateColumns: "gridTemplateColumns";
|
|
52
56
|
gridTemplateRows: "gridTemplateRows";
|
|
53
57
|
columns: "columns";
|
|
@@ -156,9 +160,21 @@ export declare const SiteEditMoveTargetSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
156
160
|
append: "append";
|
|
157
161
|
}>;
|
|
158
162
|
parentKey: z.ZodString;
|
|
159
|
-
}, z.core.$strip
|
|
163
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
164
|
+
kind: z.ZodLiteral<"page-composition">;
|
|
165
|
+
placementKey: z.ZodString;
|
|
166
|
+
documentVersion: z.ZodNumber;
|
|
167
|
+
routeId: z.ZodString;
|
|
168
|
+
placementUnitKey: z.ZodString;
|
|
169
|
+
relation: z.ZodEnum<{
|
|
170
|
+
before: "before";
|
|
171
|
+
after: "after";
|
|
172
|
+
prepend: "prepend";
|
|
173
|
+
append: "append";
|
|
174
|
+
}>;
|
|
175
|
+
}, z.core.$strict>]>;
|
|
160
176
|
export type SiteEditMoveTarget = z.infer<typeof SiteEditMoveTargetSchema>;
|
|
161
|
-
export declare const SiteEditInsertNodeSpecSchema: z.
|
|
177
|
+
export declare const SiteEditInsertNodeSpecSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
162
178
|
kind: z.ZodLiteral<"native-tag">;
|
|
163
179
|
tag: z.ZodString;
|
|
164
180
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -168,8 +184,31 @@ export declare const SiteEditInsertNodeSpecSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
168
184
|
source: z.ZodString;
|
|
169
185
|
exportName: z.ZodString;
|
|
170
186
|
}, z.core.$strip>;
|
|
187
|
+
materialization: z.ZodOptional<z.ZodNever>;
|
|
171
188
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
172
|
-
}, z.core.$
|
|
189
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
190
|
+
kind: z.ZodLiteral<"component-call">;
|
|
191
|
+
component: z.ZodOptional<z.ZodNever>;
|
|
192
|
+
materialization: z.ZodObject<{
|
|
193
|
+
instanceBaseName: z.ZodString;
|
|
194
|
+
files: z.ZodArray<z.ZodObject<{
|
|
195
|
+
pathTemplate: z.ZodString;
|
|
196
|
+
content: z.ZodString;
|
|
197
|
+
role: z.ZodOptional<z.ZodString>;
|
|
198
|
+
}, z.core.$strict>>;
|
|
199
|
+
entry: z.ZodObject<{
|
|
200
|
+
pathTemplate: z.ZodString;
|
|
201
|
+
export: z.ZodUnion<readonly [z.ZodObject<{
|
|
202
|
+
kind: z.ZodLiteral<"default">;
|
|
203
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
204
|
+
kind: z.ZodLiteral<"named">;
|
|
205
|
+
name: z.ZodString;
|
|
206
|
+
}, z.core.$strict>]>;
|
|
207
|
+
}, z.core.$strict>;
|
|
208
|
+
dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
|
|
209
|
+
}, z.core.$strict>;
|
|
210
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
|
|
211
|
+
}, z.core.$strict>]>;
|
|
173
212
|
export type SiteEditInsertNodeSpec = z.infer<typeof SiteEditInsertNodeSpecSchema>;
|
|
174
213
|
export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
175
214
|
kind: z.ZodLiteral<"update-text">;
|
|
@@ -184,7 +223,7 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
184
223
|
kind: z.ZodLiteral<"remove-node">;
|
|
185
224
|
}, z.core.$strip>, z.ZodObject<{
|
|
186
225
|
kind: z.ZodLiteral<"insert-child">;
|
|
187
|
-
node: z.
|
|
226
|
+
node: z.ZodUnion<readonly [z.ZodObject<{
|
|
188
227
|
kind: z.ZodLiteral<"native-tag">;
|
|
189
228
|
tag: z.ZodString;
|
|
190
229
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -194,9 +233,32 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
194
233
|
source: z.ZodString;
|
|
195
234
|
exportName: z.ZodString;
|
|
196
235
|
}, z.core.$strip>;
|
|
236
|
+
materialization: z.ZodOptional<z.ZodNever>;
|
|
197
237
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
198
|
-
}, z.core.$
|
|
199
|
-
|
|
238
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
239
|
+
kind: z.ZodLiteral<"component-call">;
|
|
240
|
+
component: z.ZodOptional<z.ZodNever>;
|
|
241
|
+
materialization: z.ZodObject<{
|
|
242
|
+
instanceBaseName: z.ZodString;
|
|
243
|
+
files: z.ZodArray<z.ZodObject<{
|
|
244
|
+
pathTemplate: z.ZodString;
|
|
245
|
+
content: z.ZodString;
|
|
246
|
+
role: z.ZodOptional<z.ZodString>;
|
|
247
|
+
}, z.core.$strict>>;
|
|
248
|
+
entry: z.ZodObject<{
|
|
249
|
+
pathTemplate: z.ZodString;
|
|
250
|
+
export: z.ZodUnion<readonly [z.ZodObject<{
|
|
251
|
+
kind: z.ZodLiteral<"default">;
|
|
252
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
253
|
+
kind: z.ZodLiteral<"named">;
|
|
254
|
+
name: z.ZodString;
|
|
255
|
+
}, z.core.$strict>]>;
|
|
256
|
+
}, z.core.$strict>;
|
|
257
|
+
dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
|
|
258
|
+
}, z.core.$strict>;
|
|
259
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
|
|
260
|
+
}, z.core.$strict>]>;
|
|
261
|
+
position: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
200
262
|
relation: z.ZodEnum<{
|
|
201
263
|
before: "before";
|
|
202
264
|
after: "after";
|
|
@@ -208,7 +270,23 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
208
270
|
append: "append";
|
|
209
271
|
}>;
|
|
210
272
|
parentKey: z.ZodString;
|
|
211
|
-
}, z.core.$strip
|
|
273
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
274
|
+
kind: z.ZodLiteral<"page-composition">;
|
|
275
|
+
placementKey: z.ZodString;
|
|
276
|
+
documentVersion: z.ZodNumber;
|
|
277
|
+
routeId: z.ZodString;
|
|
278
|
+
placementUnitKey: z.ZodString;
|
|
279
|
+
relation: z.ZodEnum<{
|
|
280
|
+
before: "before";
|
|
281
|
+
after: "after";
|
|
282
|
+
prepend: "prepend";
|
|
283
|
+
append: "append";
|
|
284
|
+
}>;
|
|
285
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
286
|
+
kind: z.ZodLiteral<"page-composition">;
|
|
287
|
+
placementKey: z.ZodString;
|
|
288
|
+
documentVersion: z.ZodNumber;
|
|
289
|
+
}, z.core.$strict>]>;
|
|
212
290
|
}, z.core.$strip>, z.ZodObject<{
|
|
213
291
|
kind: z.ZodLiteral<"move-node">;
|
|
214
292
|
target: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -223,7 +301,19 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
223
301
|
append: "append";
|
|
224
302
|
}>;
|
|
225
303
|
parentKey: z.ZodString;
|
|
226
|
-
}, z.core.$strip
|
|
304
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
305
|
+
kind: z.ZodLiteral<"page-composition">;
|
|
306
|
+
placementKey: z.ZodString;
|
|
307
|
+
documentVersion: z.ZodNumber;
|
|
308
|
+
routeId: z.ZodString;
|
|
309
|
+
placementUnitKey: z.ZodString;
|
|
310
|
+
relation: z.ZodEnum<{
|
|
311
|
+
before: "before";
|
|
312
|
+
after: "after";
|
|
313
|
+
prepend: "prepend";
|
|
314
|
+
append: "append";
|
|
315
|
+
}>;
|
|
316
|
+
}, z.core.$strict>]>;
|
|
227
317
|
preserveBindings: z.ZodOptional<z.ZodBoolean>;
|
|
228
318
|
}, z.core.$strip>, z.ZodObject<{
|
|
229
319
|
kind: z.ZodLiteral<"set-class-name-source">;
|
|
@@ -237,18 +327,10 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
237
327
|
oldAttrRange: z.ZodNullable<z.ZodObject<{
|
|
238
328
|
start: z.ZodNumber;
|
|
239
329
|
end: z.ZodNumber;
|
|
240
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
241
|
-
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
242
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
243
|
-
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
244
330
|
}, z.core.$strip>>;
|
|
245
331
|
openingElementRange: z.ZodObject<{
|
|
246
332
|
start: z.ZodNumber;
|
|
247
333
|
end: z.ZodNumber;
|
|
248
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
249
|
-
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
250
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
251
|
-
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
252
334
|
}, z.core.$strip>;
|
|
253
335
|
newAttrRaw: z.ZodNullable<z.ZodString>;
|
|
254
336
|
intent: z.ZodObject<{
|
|
@@ -286,18 +368,10 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
286
368
|
oldAttrRange: z.ZodNullable<z.ZodObject<{
|
|
287
369
|
start: z.ZodNumber;
|
|
288
370
|
end: z.ZodNumber;
|
|
289
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
290
|
-
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
291
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
292
|
-
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
293
371
|
}, z.core.$strip>>;
|
|
294
372
|
openingElementRange: z.ZodObject<{
|
|
295
373
|
start: z.ZodNumber;
|
|
296
374
|
end: z.ZodNumber;
|
|
297
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
298
|
-
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
299
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
300
|
-
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
301
375
|
}, z.core.$strip>;
|
|
302
376
|
newAttrRaw: z.ZodNullable<z.ZodString>;
|
|
303
377
|
intent: z.ZodObject<{
|
|
@@ -344,13 +418,21 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
344
418
|
}, z.core.$strict>], "kind">;
|
|
345
419
|
export type SiteEditOperationParams = z.infer<typeof SiteEditOperationParamsSchema>;
|
|
346
420
|
export declare const SiteEditOperationErrorCodeSchema: z.ZodEnum<{
|
|
421
|
+
VERSION_STALE: "VERSION_STALE";
|
|
422
|
+
RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
|
|
347
423
|
NODE_NOT_FOUND: "NODE_NOT_FOUND";
|
|
348
424
|
ROUTE_NOT_FOUND: "ROUTE_NOT_FOUND";
|
|
349
425
|
CAPABILITY_REJECTED: "CAPABILITY_REJECTED";
|
|
350
426
|
CONSTRAINT_VIOLATED: "CONSTRAINT_VIOLATED";
|
|
351
427
|
INVALID_PARAMS: "INVALID_PARAMS";
|
|
352
428
|
PLAN_FAILED: "PLAN_FAILED";
|
|
353
|
-
|
|
429
|
+
TRANSACTION_PREFLIGHT_FAILED: "TRANSACTION_PREFLIGHT_FAILED";
|
|
430
|
+
ROUTE_REBUILD_FAILED: "ROUTE_REBUILD_FAILED";
|
|
431
|
+
HISTORY_COMMIT_FAILED: "HISTORY_COMMIT_FAILED";
|
|
432
|
+
MATERIALIZATION_CONFLICT: "MATERIALIZATION_CONFLICT";
|
|
433
|
+
MATERIALIZATION_REJECTED: "MATERIALIZATION_REJECTED";
|
|
434
|
+
MUTATION_ASSERTION_REQUIRED: "MUTATION_ASSERTION_REQUIRED";
|
|
435
|
+
MUTATION_ASSERTION_INVALID: "MUTATION_ASSERTION_INVALID";
|
|
354
436
|
AST_PARSE_ERROR: "AST_PARSE_ERROR";
|
|
355
437
|
UNSUPPORTED_OPERATION: "UNSUPPORTED_OPERATION";
|
|
356
438
|
LOCATOR_FAILED: "LOCATOR_FAILED";
|
|
@@ -358,18 +440,32 @@ export declare const SiteEditOperationErrorCodeSchema: z.ZodEnum<{
|
|
|
358
440
|
WRITE_IO_ERROR: "WRITE_IO_ERROR";
|
|
359
441
|
CONCURRENT_MODIFIED: "CONCURRENT_MODIFIED";
|
|
360
442
|
ROLLBACK_FAILED: "ROLLBACK_FAILED";
|
|
443
|
+
RECOVERY_PERSIST_FAILED: "RECOVERY_PERSIST_FAILED";
|
|
444
|
+
MUTATION_SESSION_REQUIRED: "MUTATION_SESSION_REQUIRED";
|
|
445
|
+
LEASE_ASSERTION_INVALID: "LEASE_ASSERTION_INVALID";
|
|
446
|
+
LEASE_ASSERTION_EXPIRED: "LEASE_ASSERTION_EXPIRED";
|
|
447
|
+
LEASE_ASSERTION_SCOPE_MISMATCH: "LEASE_ASSERTION_SCOPE_MISMATCH";
|
|
448
|
+
CROSS_PAGE_MOVE_UNSUPPORTED: "CROSS_PAGE_MOVE_UNSUPPORTED";
|
|
361
449
|
INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
362
450
|
}>;
|
|
363
451
|
export type SiteEditOperationErrorCode = z.infer<typeof SiteEditOperationErrorCodeSchema>;
|
|
364
452
|
export declare const SiteEditOperationErrorSchema: z.ZodObject<{
|
|
365
453
|
code: z.ZodEnum<{
|
|
454
|
+
VERSION_STALE: "VERSION_STALE";
|
|
455
|
+
RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
|
|
366
456
|
NODE_NOT_FOUND: "NODE_NOT_FOUND";
|
|
367
457
|
ROUTE_NOT_FOUND: "ROUTE_NOT_FOUND";
|
|
368
458
|
CAPABILITY_REJECTED: "CAPABILITY_REJECTED";
|
|
369
459
|
CONSTRAINT_VIOLATED: "CONSTRAINT_VIOLATED";
|
|
370
460
|
INVALID_PARAMS: "INVALID_PARAMS";
|
|
371
461
|
PLAN_FAILED: "PLAN_FAILED";
|
|
372
|
-
|
|
462
|
+
TRANSACTION_PREFLIGHT_FAILED: "TRANSACTION_PREFLIGHT_FAILED";
|
|
463
|
+
ROUTE_REBUILD_FAILED: "ROUTE_REBUILD_FAILED";
|
|
464
|
+
HISTORY_COMMIT_FAILED: "HISTORY_COMMIT_FAILED";
|
|
465
|
+
MATERIALIZATION_CONFLICT: "MATERIALIZATION_CONFLICT";
|
|
466
|
+
MATERIALIZATION_REJECTED: "MATERIALIZATION_REJECTED";
|
|
467
|
+
MUTATION_ASSERTION_REQUIRED: "MUTATION_ASSERTION_REQUIRED";
|
|
468
|
+
MUTATION_ASSERTION_INVALID: "MUTATION_ASSERTION_INVALID";
|
|
373
469
|
AST_PARSE_ERROR: "AST_PARSE_ERROR";
|
|
374
470
|
UNSUPPORTED_OPERATION: "UNSUPPORTED_OPERATION";
|
|
375
471
|
LOCATOR_FAILED: "LOCATOR_FAILED";
|
|
@@ -377,6 +473,12 @@ export declare const SiteEditOperationErrorSchema: z.ZodObject<{
|
|
|
377
473
|
WRITE_IO_ERROR: "WRITE_IO_ERROR";
|
|
378
474
|
CONCURRENT_MODIFIED: "CONCURRENT_MODIFIED";
|
|
379
475
|
ROLLBACK_FAILED: "ROLLBACK_FAILED";
|
|
476
|
+
RECOVERY_PERSIST_FAILED: "RECOVERY_PERSIST_FAILED";
|
|
477
|
+
MUTATION_SESSION_REQUIRED: "MUTATION_SESSION_REQUIRED";
|
|
478
|
+
LEASE_ASSERTION_INVALID: "LEASE_ASSERTION_INVALID";
|
|
479
|
+
LEASE_ASSERTION_EXPIRED: "LEASE_ASSERTION_EXPIRED";
|
|
480
|
+
LEASE_ASSERTION_SCOPE_MISMATCH: "LEASE_ASSERTION_SCOPE_MISMATCH";
|
|
481
|
+
CROSS_PAGE_MOVE_UNSUPPORTED: "CROSS_PAGE_MOVE_UNSUPPORTED";
|
|
380
482
|
INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
381
483
|
}>;
|
|
382
484
|
message: z.ZodString;
|
|
@@ -395,10 +497,10 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
395
497
|
baseSnapshotId: z.ZodString;
|
|
396
498
|
routeId: z.ZodOptional<z.ZodString>;
|
|
397
499
|
kind: z.ZodEnum<{
|
|
500
|
+
"insert-child": "insert-child";
|
|
398
501
|
"update-text": "update-text";
|
|
399
502
|
"update-array-item": "update-array-item";
|
|
400
503
|
"remove-node": "remove-node";
|
|
401
|
-
"insert-child": "insert-child";
|
|
402
504
|
"move-node": "move-node";
|
|
403
505
|
"set-class-name-source": "set-class-name-source";
|
|
404
506
|
"set-props": "set-props";
|
|
@@ -409,6 +511,10 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
409
511
|
kind: z.ZodLiteral<"node">;
|
|
410
512
|
key: z.ZodString;
|
|
411
513
|
}, z.core.$strip>, z.ZodObject<{
|
|
514
|
+
kind: z.ZodLiteral<"page-unit">;
|
|
515
|
+
routeId: z.ZodString;
|
|
516
|
+
placementUnitKey: z.ZodString;
|
|
517
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
412
518
|
kind: z.ZodLiteral<"route">;
|
|
413
519
|
routeId: z.ZodString;
|
|
414
520
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -424,6 +530,12 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
424
530
|
instanceIndex: z.ZodOptional<z.ZodNumber>;
|
|
425
531
|
instanceCount: z.ZodOptional<z.ZodNumber>;
|
|
426
532
|
}, z.core.$strip>>;
|
|
533
|
+
mutationContext: z.ZodOptional<z.ZodObject<{
|
|
534
|
+
editingSessionId: z.ZodString;
|
|
535
|
+
lockId: z.ZodString;
|
|
536
|
+
ownerId: z.ZodString;
|
|
537
|
+
leaseAssertion: z.ZodString;
|
|
538
|
+
}, z.core.$strict>>;
|
|
427
539
|
params: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
428
540
|
kind: z.ZodLiteral<"update-text">;
|
|
429
541
|
segmentIndex: z.ZodNumber;
|
|
@@ -437,7 +549,7 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
437
549
|
kind: z.ZodLiteral<"remove-node">;
|
|
438
550
|
}, z.core.$strip>, z.ZodObject<{
|
|
439
551
|
kind: z.ZodLiteral<"insert-child">;
|
|
440
|
-
node: z.
|
|
552
|
+
node: z.ZodUnion<readonly [z.ZodObject<{
|
|
441
553
|
kind: z.ZodLiteral<"native-tag">;
|
|
442
554
|
tag: z.ZodString;
|
|
443
555
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -447,9 +559,32 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
447
559
|
source: z.ZodString;
|
|
448
560
|
exportName: z.ZodString;
|
|
449
561
|
}, z.core.$strip>;
|
|
562
|
+
materialization: z.ZodOptional<z.ZodNever>;
|
|
450
563
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
451
|
-
}, z.core.$
|
|
452
|
-
|
|
564
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
565
|
+
kind: z.ZodLiteral<"component-call">;
|
|
566
|
+
component: z.ZodOptional<z.ZodNever>;
|
|
567
|
+
materialization: z.ZodObject<{
|
|
568
|
+
instanceBaseName: z.ZodString;
|
|
569
|
+
files: z.ZodArray<z.ZodObject<{
|
|
570
|
+
pathTemplate: z.ZodString;
|
|
571
|
+
content: z.ZodString;
|
|
572
|
+
role: z.ZodOptional<z.ZodString>;
|
|
573
|
+
}, z.core.$strict>>;
|
|
574
|
+
entry: z.ZodObject<{
|
|
575
|
+
pathTemplate: z.ZodString;
|
|
576
|
+
export: z.ZodUnion<readonly [z.ZodObject<{
|
|
577
|
+
kind: z.ZodLiteral<"default">;
|
|
578
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
579
|
+
kind: z.ZodLiteral<"named">;
|
|
580
|
+
name: z.ZodString;
|
|
581
|
+
}, z.core.$strict>]>;
|
|
582
|
+
}, z.core.$strict>;
|
|
583
|
+
dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
|
|
584
|
+
}, z.core.$strict>;
|
|
585
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
|
|
586
|
+
}, z.core.$strict>]>;
|
|
587
|
+
position: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
453
588
|
relation: z.ZodEnum<{
|
|
454
589
|
before: "before";
|
|
455
590
|
after: "after";
|
|
@@ -461,7 +596,23 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
461
596
|
append: "append";
|
|
462
597
|
}>;
|
|
463
598
|
parentKey: z.ZodString;
|
|
464
|
-
}, z.core.$strip
|
|
599
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
600
|
+
kind: z.ZodLiteral<"page-composition">;
|
|
601
|
+
placementKey: z.ZodString;
|
|
602
|
+
documentVersion: z.ZodNumber;
|
|
603
|
+
routeId: z.ZodString;
|
|
604
|
+
placementUnitKey: z.ZodString;
|
|
605
|
+
relation: z.ZodEnum<{
|
|
606
|
+
before: "before";
|
|
607
|
+
after: "after";
|
|
608
|
+
prepend: "prepend";
|
|
609
|
+
append: "append";
|
|
610
|
+
}>;
|
|
611
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
612
|
+
kind: z.ZodLiteral<"page-composition">;
|
|
613
|
+
placementKey: z.ZodString;
|
|
614
|
+
documentVersion: z.ZodNumber;
|
|
615
|
+
}, z.core.$strict>]>;
|
|
465
616
|
}, z.core.$strip>, z.ZodObject<{
|
|
466
617
|
kind: z.ZodLiteral<"move-node">;
|
|
467
618
|
target: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -476,7 +627,19 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
476
627
|
append: "append";
|
|
477
628
|
}>;
|
|
478
629
|
parentKey: z.ZodString;
|
|
479
|
-
}, z.core.$strip
|
|
630
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
631
|
+
kind: z.ZodLiteral<"page-composition">;
|
|
632
|
+
placementKey: z.ZodString;
|
|
633
|
+
documentVersion: z.ZodNumber;
|
|
634
|
+
routeId: z.ZodString;
|
|
635
|
+
placementUnitKey: z.ZodString;
|
|
636
|
+
relation: z.ZodEnum<{
|
|
637
|
+
before: "before";
|
|
638
|
+
after: "after";
|
|
639
|
+
prepend: "prepend";
|
|
640
|
+
append: "append";
|
|
641
|
+
}>;
|
|
642
|
+
}, z.core.$strict>]>;
|
|
480
643
|
preserveBindings: z.ZodOptional<z.ZodBoolean>;
|
|
481
644
|
}, z.core.$strip>, z.ZodObject<{
|
|
482
645
|
kind: z.ZodLiteral<"set-class-name-source">;
|
|
@@ -490,18 +653,10 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
490
653
|
oldAttrRange: z.ZodNullable<z.ZodObject<{
|
|
491
654
|
start: z.ZodNumber;
|
|
492
655
|
end: z.ZodNumber;
|
|
493
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
494
|
-
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
495
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
496
|
-
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
497
656
|
}, z.core.$strip>>;
|
|
498
657
|
openingElementRange: z.ZodObject<{
|
|
499
658
|
start: z.ZodNumber;
|
|
500
659
|
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
660
|
}, z.core.$strip>;
|
|
506
661
|
newAttrRaw: z.ZodNullable<z.ZodString>;
|
|
507
662
|
intent: z.ZodObject<{
|
|
@@ -539,18 +694,10 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
539
694
|
oldAttrRange: z.ZodNullable<z.ZodObject<{
|
|
540
695
|
start: z.ZodNumber;
|
|
541
696
|
end: z.ZodNumber;
|
|
542
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
543
|
-
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
544
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
545
|
-
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
546
697
|
}, z.core.$strip>>;
|
|
547
698
|
openingElementRange: z.ZodObject<{
|
|
548
699
|
start: z.ZodNumber;
|
|
549
700
|
end: z.ZodNumber;
|
|
550
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
551
|
-
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
552
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
553
|
-
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
554
701
|
}, z.core.$strip>;
|
|
555
702
|
newAttrRaw: z.ZodNullable<z.ZodString>;
|
|
556
703
|
intent: z.ZodObject<{
|
|
@@ -597,13 +744,271 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
597
744
|
}, z.core.$strict>], "kind">;
|
|
598
745
|
}, z.core.$strip>;
|
|
599
746
|
export type SiteEditOperationRequest = z.infer<typeof SiteEditOperationRequestSchema>;
|
|
747
|
+
/** @deprecated Use SiteEditOperationRequest. */
|
|
748
|
+
export type SiteEditAuthenticatedOperationRequest = SiteEditOperationRequest;
|
|
749
|
+
/**
|
|
750
|
+
* @deprecated Signed mutation assertions are no longer required.
|
|
751
|
+
*/
|
|
752
|
+
export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
753
|
+
id: z.ZodString;
|
|
754
|
+
siteId: z.ZodString;
|
|
755
|
+
baseSnapshotId: z.ZodString;
|
|
756
|
+
routeId: z.ZodOptional<z.ZodString>;
|
|
757
|
+
kind: z.ZodEnum<{
|
|
758
|
+
"insert-child": "insert-child";
|
|
759
|
+
"update-text": "update-text";
|
|
760
|
+
"update-array-item": "update-array-item";
|
|
761
|
+
"remove-node": "remove-node";
|
|
762
|
+
"move-node": "move-node";
|
|
763
|
+
"set-class-name-source": "set-class-name-source";
|
|
764
|
+
"set-props": "set-props";
|
|
765
|
+
"apply-style-draft": "apply-style-draft";
|
|
766
|
+
"source-edit": "source-edit";
|
|
767
|
+
}>;
|
|
768
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
769
|
+
kind: z.ZodLiteral<"node">;
|
|
770
|
+
key: z.ZodString;
|
|
771
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
772
|
+
kind: z.ZodLiteral<"page-unit">;
|
|
773
|
+
routeId: z.ZodString;
|
|
774
|
+
placementUnitKey: z.ZodString;
|
|
775
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
776
|
+
kind: z.ZodLiteral<"route">;
|
|
777
|
+
routeId: z.ZodString;
|
|
778
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
779
|
+
kind: z.ZodLiteral<"source-file">;
|
|
780
|
+
path: z.ZodString;
|
|
781
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
782
|
+
kind: z.ZodLiteral<"source-batch">;
|
|
783
|
+
paths: z.ZodArray<z.ZodString>;
|
|
784
|
+
}, z.core.$strip>], "kind">;
|
|
785
|
+
documentVersion: z.ZodNumber;
|
|
786
|
+
selectionRef: z.ZodOptional<z.ZodObject<{
|
|
787
|
+
key: z.ZodString;
|
|
788
|
+
instanceIndex: z.ZodOptional<z.ZodNumber>;
|
|
789
|
+
instanceCount: z.ZodOptional<z.ZodNumber>;
|
|
790
|
+
}, z.core.$strip>>;
|
|
791
|
+
mutationContext: z.ZodOptional<z.ZodObject<{
|
|
792
|
+
editingSessionId: z.ZodString;
|
|
793
|
+
lockId: z.ZodString;
|
|
794
|
+
ownerId: z.ZodString;
|
|
795
|
+
leaseAssertion: z.ZodString;
|
|
796
|
+
}, z.core.$strict>>;
|
|
797
|
+
params: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
798
|
+
kind: z.ZodLiteral<"update-text">;
|
|
799
|
+
segmentIndex: z.ZodNumber;
|
|
800
|
+
value: z.ZodString;
|
|
801
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
802
|
+
kind: z.ZodLiteral<"update-array-item">;
|
|
803
|
+
segmentIndex: z.ZodNumber;
|
|
804
|
+
index: z.ZodNumber;
|
|
805
|
+
value: z.ZodString;
|
|
806
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
807
|
+
kind: z.ZodLiteral<"remove-node">;
|
|
808
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
809
|
+
kind: z.ZodLiteral<"insert-child">;
|
|
810
|
+
node: z.ZodUnion<readonly [z.ZodObject<{
|
|
811
|
+
kind: z.ZodLiteral<"native-tag">;
|
|
812
|
+
tag: z.ZodString;
|
|
813
|
+
text: z.ZodOptional<z.ZodString>;
|
|
814
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
815
|
+
kind: z.ZodLiteral<"component-call">;
|
|
816
|
+
component: z.ZodObject<{
|
|
817
|
+
source: z.ZodString;
|
|
818
|
+
exportName: z.ZodString;
|
|
819
|
+
}, z.core.$strip>;
|
|
820
|
+
materialization: z.ZodOptional<z.ZodNever>;
|
|
821
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
822
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
823
|
+
kind: z.ZodLiteral<"component-call">;
|
|
824
|
+
component: z.ZodOptional<z.ZodNever>;
|
|
825
|
+
materialization: z.ZodObject<{
|
|
826
|
+
instanceBaseName: z.ZodString;
|
|
827
|
+
files: z.ZodArray<z.ZodObject<{
|
|
828
|
+
pathTemplate: z.ZodString;
|
|
829
|
+
content: z.ZodString;
|
|
830
|
+
role: z.ZodOptional<z.ZodString>;
|
|
831
|
+
}, z.core.$strict>>;
|
|
832
|
+
entry: z.ZodObject<{
|
|
833
|
+
pathTemplate: z.ZodString;
|
|
834
|
+
export: z.ZodUnion<readonly [z.ZodObject<{
|
|
835
|
+
kind: z.ZodLiteral<"default">;
|
|
836
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
837
|
+
kind: z.ZodLiteral<"named">;
|
|
838
|
+
name: z.ZodString;
|
|
839
|
+
}, z.core.$strict>]>;
|
|
840
|
+
}, z.core.$strict>;
|
|
841
|
+
dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
|
|
842
|
+
}, z.core.$strict>;
|
|
843
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
|
|
844
|
+
}, z.core.$strict>]>;
|
|
845
|
+
position: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
846
|
+
relation: z.ZodEnum<{
|
|
847
|
+
before: "before";
|
|
848
|
+
after: "after";
|
|
849
|
+
}>;
|
|
850
|
+
anchorKey: z.ZodString;
|
|
851
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
852
|
+
relation: z.ZodEnum<{
|
|
853
|
+
prepend: "prepend";
|
|
854
|
+
append: "append";
|
|
855
|
+
}>;
|
|
856
|
+
parentKey: z.ZodString;
|
|
857
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
858
|
+
kind: z.ZodLiteral<"page-composition">;
|
|
859
|
+
placementKey: z.ZodString;
|
|
860
|
+
documentVersion: z.ZodNumber;
|
|
861
|
+
routeId: z.ZodString;
|
|
862
|
+
placementUnitKey: z.ZodString;
|
|
863
|
+
relation: z.ZodEnum<{
|
|
864
|
+
before: "before";
|
|
865
|
+
after: "after";
|
|
866
|
+
prepend: "prepend";
|
|
867
|
+
append: "append";
|
|
868
|
+
}>;
|
|
869
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
870
|
+
kind: z.ZodLiteral<"page-composition">;
|
|
871
|
+
placementKey: z.ZodString;
|
|
872
|
+
documentVersion: z.ZodNumber;
|
|
873
|
+
}, z.core.$strict>]>;
|
|
874
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
875
|
+
kind: z.ZodLiteral<"move-node">;
|
|
876
|
+
target: z.ZodUnion<readonly [z.ZodObject<{
|
|
877
|
+
relation: z.ZodEnum<{
|
|
878
|
+
before: "before";
|
|
879
|
+
after: "after";
|
|
880
|
+
}>;
|
|
881
|
+
anchorKey: z.ZodString;
|
|
882
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
883
|
+
relation: z.ZodEnum<{
|
|
884
|
+
prepend: "prepend";
|
|
885
|
+
append: "append";
|
|
886
|
+
}>;
|
|
887
|
+
parentKey: z.ZodString;
|
|
888
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
889
|
+
kind: z.ZodLiteral<"page-composition">;
|
|
890
|
+
placementKey: z.ZodString;
|
|
891
|
+
documentVersion: z.ZodNumber;
|
|
892
|
+
routeId: z.ZodString;
|
|
893
|
+
placementUnitKey: z.ZodString;
|
|
894
|
+
relation: z.ZodEnum<{
|
|
895
|
+
before: "before";
|
|
896
|
+
after: "after";
|
|
897
|
+
prepend: "prepend";
|
|
898
|
+
append: "append";
|
|
899
|
+
}>;
|
|
900
|
+
}, z.core.$strict>]>;
|
|
901
|
+
preserveBindings: z.ZodOptional<z.ZodBoolean>;
|
|
902
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
903
|
+
kind: z.ZodLiteral<"set-class-name-source">;
|
|
904
|
+
routeId: z.ZodOptional<z.ZodString>;
|
|
905
|
+
filePath: z.ZodString;
|
|
906
|
+
expectedVersion: z.ZodObject<{
|
|
907
|
+
documentVersion: z.ZodNumber;
|
|
908
|
+
contentHash: z.ZodString;
|
|
909
|
+
}, z.core.$strip>;
|
|
910
|
+
oldAttrRaw: z.ZodNullable<z.ZodString>;
|
|
911
|
+
oldAttrRange: z.ZodNullable<z.ZodObject<{
|
|
912
|
+
start: z.ZodNumber;
|
|
913
|
+
end: z.ZodNumber;
|
|
914
|
+
}, z.core.$strip>>;
|
|
915
|
+
openingElementRange: z.ZodObject<{
|
|
916
|
+
start: z.ZodNumber;
|
|
917
|
+
end: z.ZodNumber;
|
|
918
|
+
}, z.core.$strip>;
|
|
919
|
+
newAttrRaw: z.ZodNullable<z.ZodString>;
|
|
920
|
+
intent: z.ZodObject<{
|
|
921
|
+
source: z.ZodEnum<{
|
|
922
|
+
"style-panel": "style-panel";
|
|
923
|
+
"class-source-editor": "class-source-editor";
|
|
924
|
+
}>;
|
|
925
|
+
operation: z.ZodEnum<{
|
|
926
|
+
"replace-static-classname": "replace-static-classname";
|
|
927
|
+
"replace-expression": "replace-expression";
|
|
928
|
+
"create-attribute": "create-attribute";
|
|
929
|
+
"remove-attribute": "remove-attribute";
|
|
930
|
+
}>;
|
|
931
|
+
}, z.core.$strip>;
|
|
932
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
933
|
+
kind: z.ZodLiteral<"set-props">;
|
|
934
|
+
props: z.ZodRecord<z.ZodEnum<{
|
|
935
|
+
src: "src";
|
|
936
|
+
alt: "alt";
|
|
937
|
+
poster: "poster";
|
|
938
|
+
href: "href";
|
|
939
|
+
width: "width";
|
|
940
|
+
height: "height";
|
|
941
|
+
}> & z.core.$partial, z.ZodString>;
|
|
942
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
943
|
+
kind: z.ZodLiteral<"apply-style-draft">;
|
|
944
|
+
className: z.ZodOptional<z.ZodObject<{
|
|
945
|
+
routeId: z.ZodOptional<z.ZodString>;
|
|
946
|
+
filePath: z.ZodString;
|
|
947
|
+
expectedVersion: z.ZodObject<{
|
|
948
|
+
documentVersion: z.ZodNumber;
|
|
949
|
+
contentHash: z.ZodString;
|
|
950
|
+
}, z.core.$strip>;
|
|
951
|
+
oldAttrRaw: z.ZodNullable<z.ZodString>;
|
|
952
|
+
oldAttrRange: z.ZodNullable<z.ZodObject<{
|
|
953
|
+
start: z.ZodNumber;
|
|
954
|
+
end: z.ZodNumber;
|
|
955
|
+
}, z.core.$strip>>;
|
|
956
|
+
openingElementRange: z.ZodObject<{
|
|
957
|
+
start: z.ZodNumber;
|
|
958
|
+
end: z.ZodNumber;
|
|
959
|
+
}, z.core.$strip>;
|
|
960
|
+
newAttrRaw: z.ZodNullable<z.ZodString>;
|
|
961
|
+
intent: z.ZodObject<{
|
|
962
|
+
source: z.ZodEnum<{
|
|
963
|
+
"style-panel": "style-panel";
|
|
964
|
+
"class-source-editor": "class-source-editor";
|
|
965
|
+
}>;
|
|
966
|
+
operation: z.ZodEnum<{
|
|
967
|
+
"replace-static-classname": "replace-static-classname";
|
|
968
|
+
"replace-expression": "replace-expression";
|
|
969
|
+
"create-attribute": "create-attribute";
|
|
970
|
+
"remove-attribute": "remove-attribute";
|
|
971
|
+
}>;
|
|
972
|
+
}, z.core.$strip>;
|
|
973
|
+
}, z.core.$strip>>;
|
|
974
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
975
|
+
src: "src";
|
|
976
|
+
alt: "alt";
|
|
977
|
+
poster: "poster";
|
|
978
|
+
href: "href";
|
|
979
|
+
width: "width";
|
|
980
|
+
height: "height";
|
|
981
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
982
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
983
|
+
kind: z.ZodLiteral<"source-edit">;
|
|
984
|
+
conflictPolicy: z.ZodEnum<{
|
|
985
|
+
"compare-and-swap": "compare-and-swap";
|
|
986
|
+
overwrite: "overwrite";
|
|
987
|
+
}>;
|
|
988
|
+
edits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
989
|
+
operation: z.ZodLiteral<"upsert">;
|
|
990
|
+
path: z.ZodString;
|
|
991
|
+
content: z.ZodString;
|
|
992
|
+
baseContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
993
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
994
|
+
operation: z.ZodLiteral<"delete">;
|
|
995
|
+
path: z.ZodString;
|
|
996
|
+
capability: z.ZodLiteral<"source-delete">;
|
|
997
|
+
confirmDelete: z.ZodLiteral<true>;
|
|
998
|
+
confirmPath: z.ZodString;
|
|
999
|
+
baseContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1000
|
+
}, z.core.$strict>], "operation">>;
|
|
1001
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1002
|
+
}, z.core.$strict>], "kind">;
|
|
1003
|
+
}, z.core.$strip>;
|
|
1004
|
+
export type SiteEditSignedOperationRequest = z.infer<typeof SiteEditSignedOperationRequestSchema>;
|
|
600
1005
|
export declare const SiteEditOperationPayloadSchema: z.ZodObject<{
|
|
601
1006
|
requestId: z.ZodString;
|
|
602
1007
|
kind: z.ZodEnum<{
|
|
1008
|
+
"insert-child": "insert-child";
|
|
603
1009
|
"update-text": "update-text";
|
|
604
1010
|
"update-array-item": "update-array-item";
|
|
605
1011
|
"remove-node": "remove-node";
|
|
606
|
-
"insert-child": "insert-child";
|
|
607
1012
|
"move-node": "move-node";
|
|
608
1013
|
"set-class-name-source": "set-class-name-source";
|
|
609
1014
|
"set-props": "set-props";
|
|
@@ -614,6 +1019,10 @@ export declare const SiteEditOperationPayloadSchema: z.ZodObject<{
|
|
|
614
1019
|
kind: z.ZodLiteral<"node">;
|
|
615
1020
|
key: z.ZodString;
|
|
616
1021
|
}, z.core.$strip>, z.ZodObject<{
|
|
1022
|
+
kind: z.ZodLiteral<"page-unit">;
|
|
1023
|
+
routeId: z.ZodString;
|
|
1024
|
+
placementUnitKey: z.ZodString;
|
|
1025
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
617
1026
|
kind: z.ZodLiteral<"route">;
|
|
618
1027
|
routeId: z.ZodString;
|
|
619
1028
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -637,10 +1046,10 @@ export declare const SiteEditOperationCommandResultSchema: z.ZodDiscriminatedUni
|
|
|
637
1046
|
data: z.ZodObject<{
|
|
638
1047
|
requestId: z.ZodString;
|
|
639
1048
|
kind: z.ZodEnum<{
|
|
1049
|
+
"insert-child": "insert-child";
|
|
640
1050
|
"update-text": "update-text";
|
|
641
1051
|
"update-array-item": "update-array-item";
|
|
642
1052
|
"remove-node": "remove-node";
|
|
643
|
-
"insert-child": "insert-child";
|
|
644
1053
|
"move-node": "move-node";
|
|
645
1054
|
"set-class-name-source": "set-class-name-source";
|
|
646
1055
|
"set-props": "set-props";
|
|
@@ -651,6 +1060,10 @@ export declare const SiteEditOperationCommandResultSchema: z.ZodDiscriminatedUni
|
|
|
651
1060
|
kind: z.ZodLiteral<"node">;
|
|
652
1061
|
key: z.ZodString;
|
|
653
1062
|
}, z.core.$strip>, z.ZodObject<{
|
|
1063
|
+
kind: z.ZodLiteral<"page-unit">;
|
|
1064
|
+
routeId: z.ZodString;
|
|
1065
|
+
placementUnitKey: z.ZodString;
|
|
1066
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
654
1067
|
kind: z.ZodLiteral<"route">;
|
|
655
1068
|
routeId: z.ZodString;
|
|
656
1069
|
}, z.core.$strip>, z.ZodObject<{
|