@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.
- package/dist/colorway-distinctness.js +1 -1
- package/dist/custom-domain.d.ts +263 -0
- package/dist/design-tokens.d.ts +0 -8
- package/dist/design-tokens.js +1 -1
- package/dist/index.d.ts +1991 -109
- package/dist/index.js +1 -1
- package/dist/input-context-bundle.d.ts +2 -0
- package/dist/page-slug.d.ts +18 -9
- package/dist/publish-plan.d.ts +54 -0
- 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 +18 -0
- package/dist/site-edit-operation.d.ts +467 -53
- package/dist/site-edit-page-composition.d.ts +971 -0
- package/dist/site-edit-render-document.d.ts +74 -139
- 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/dist/site-locale.d.ts +72 -2
- package/package.json +1 -2
|
@@ -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";
|
|
@@ -130,8 +134,8 @@ export declare const SiteEditStylePropertySchema: z.ZodEnum<{
|
|
|
130
134
|
}>;
|
|
131
135
|
export type SiteEditStyleProperty = z.infer<typeof SiteEditStylePropertySchema>;
|
|
132
136
|
export declare const SiteEditStyleStateModeSchema: z.ZodEnum<{
|
|
133
|
-
hover: "hover";
|
|
134
137
|
active: "active";
|
|
138
|
+
hover: "hover";
|
|
135
139
|
focus: "focus";
|
|
136
140
|
disabled: "disabled";
|
|
137
141
|
}>;
|
|
@@ -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.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,272 @@ 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
|
+
* Capability-gated decoder for mutation endpoints that require a signed lease
|
|
751
|
+
* assertion for every write, including generic node and source operations.
|
|
752
|
+
*/
|
|
753
|
+
export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
754
|
+
id: z.ZodString;
|
|
755
|
+
siteId: z.ZodString;
|
|
756
|
+
baseSnapshotId: z.ZodString;
|
|
757
|
+
routeId: z.ZodOptional<z.ZodString>;
|
|
758
|
+
kind: z.ZodEnum<{
|
|
759
|
+
"insert-child": "insert-child";
|
|
760
|
+
"update-text": "update-text";
|
|
761
|
+
"update-array-item": "update-array-item";
|
|
762
|
+
"remove-node": "remove-node";
|
|
763
|
+
"move-node": "move-node";
|
|
764
|
+
"set-class-name-source": "set-class-name-source";
|
|
765
|
+
"set-props": "set-props";
|
|
766
|
+
"apply-style-draft": "apply-style-draft";
|
|
767
|
+
"source-edit": "source-edit";
|
|
768
|
+
}>;
|
|
769
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
770
|
+
kind: z.ZodLiteral<"node">;
|
|
771
|
+
key: z.ZodString;
|
|
772
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
773
|
+
kind: z.ZodLiteral<"page-unit">;
|
|
774
|
+
routeId: z.ZodString;
|
|
775
|
+
placementUnitKey: z.ZodString;
|
|
776
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
777
|
+
kind: z.ZodLiteral<"route">;
|
|
778
|
+
routeId: z.ZodString;
|
|
779
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
780
|
+
kind: z.ZodLiteral<"source-file">;
|
|
781
|
+
path: z.ZodString;
|
|
782
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
783
|
+
kind: z.ZodLiteral<"source-batch">;
|
|
784
|
+
paths: z.ZodArray<z.ZodString>;
|
|
785
|
+
}, z.core.$strip>], "kind">;
|
|
786
|
+
documentVersion: z.ZodNumber;
|
|
787
|
+
selectionRef: z.ZodOptional<z.ZodObject<{
|
|
788
|
+
key: z.ZodString;
|
|
789
|
+
instanceIndex: z.ZodOptional<z.ZodNumber>;
|
|
790
|
+
instanceCount: z.ZodOptional<z.ZodNumber>;
|
|
791
|
+
}, z.core.$strip>>;
|
|
792
|
+
mutationContext: z.ZodObject<{
|
|
793
|
+
editingSessionId: z.ZodString;
|
|
794
|
+
lockId: z.ZodString;
|
|
795
|
+
ownerId: z.ZodString;
|
|
796
|
+
leaseAssertion: z.ZodString;
|
|
797
|
+
}, z.core.$strict>;
|
|
798
|
+
params: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
799
|
+
kind: z.ZodLiteral<"update-text">;
|
|
800
|
+
segmentIndex: z.ZodNumber;
|
|
801
|
+
value: z.ZodString;
|
|
802
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
803
|
+
kind: z.ZodLiteral<"update-array-item">;
|
|
804
|
+
segmentIndex: z.ZodNumber;
|
|
805
|
+
index: z.ZodNumber;
|
|
806
|
+
value: z.ZodString;
|
|
807
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
808
|
+
kind: z.ZodLiteral<"remove-node">;
|
|
809
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
810
|
+
kind: z.ZodLiteral<"insert-child">;
|
|
811
|
+
node: z.ZodUnion<readonly [z.ZodObject<{
|
|
812
|
+
kind: z.ZodLiteral<"native-tag">;
|
|
813
|
+
tag: z.ZodString;
|
|
814
|
+
text: z.ZodOptional<z.ZodString>;
|
|
815
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
816
|
+
kind: z.ZodLiteral<"component-call">;
|
|
817
|
+
component: z.ZodObject<{
|
|
818
|
+
source: z.ZodString;
|
|
819
|
+
exportName: z.ZodString;
|
|
820
|
+
}, z.core.$strip>;
|
|
821
|
+
materialization: z.ZodOptional<z.ZodNever>;
|
|
822
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
823
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
824
|
+
kind: z.ZodLiteral<"component-call">;
|
|
825
|
+
component: z.ZodOptional<z.ZodNever>;
|
|
826
|
+
materialization: z.ZodObject<{
|
|
827
|
+
instanceBaseName: z.ZodString;
|
|
828
|
+
files: z.ZodArray<z.ZodObject<{
|
|
829
|
+
pathTemplate: z.ZodString;
|
|
830
|
+
content: z.ZodString;
|
|
831
|
+
role: z.ZodOptional<z.ZodString>;
|
|
832
|
+
}, z.core.$strict>>;
|
|
833
|
+
entry: z.ZodObject<{
|
|
834
|
+
pathTemplate: z.ZodString;
|
|
835
|
+
export: z.ZodUnion<readonly [z.ZodObject<{
|
|
836
|
+
kind: z.ZodLiteral<"default">;
|
|
837
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
838
|
+
kind: z.ZodLiteral<"named">;
|
|
839
|
+
name: z.ZodString;
|
|
840
|
+
}, z.core.$strict>]>;
|
|
841
|
+
}, z.core.$strict>;
|
|
842
|
+
dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
|
|
843
|
+
}, z.core.$strict>;
|
|
844
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
|
|
845
|
+
}, z.core.$strict>]>;
|
|
846
|
+
position: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
847
|
+
relation: z.ZodEnum<{
|
|
848
|
+
before: "before";
|
|
849
|
+
after: "after";
|
|
850
|
+
}>;
|
|
851
|
+
anchorKey: z.ZodString;
|
|
852
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
853
|
+
relation: z.ZodEnum<{
|
|
854
|
+
prepend: "prepend";
|
|
855
|
+
append: "append";
|
|
856
|
+
}>;
|
|
857
|
+
parentKey: z.ZodString;
|
|
858
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
859
|
+
kind: z.ZodLiteral<"page-composition">;
|
|
860
|
+
placementKey: z.ZodString;
|
|
861
|
+
documentVersion: z.ZodNumber;
|
|
862
|
+
routeId: z.ZodString;
|
|
863
|
+
placementUnitKey: z.ZodString;
|
|
864
|
+
relation: z.ZodEnum<{
|
|
865
|
+
before: "before";
|
|
866
|
+
after: "after";
|
|
867
|
+
prepend: "prepend";
|
|
868
|
+
append: "append";
|
|
869
|
+
}>;
|
|
870
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
871
|
+
kind: z.ZodLiteral<"page-composition">;
|
|
872
|
+
placementKey: z.ZodString;
|
|
873
|
+
documentVersion: z.ZodNumber;
|
|
874
|
+
}, z.core.$strict>]>;
|
|
875
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
876
|
+
kind: z.ZodLiteral<"move-node">;
|
|
877
|
+
target: z.ZodUnion<readonly [z.ZodObject<{
|
|
878
|
+
relation: z.ZodEnum<{
|
|
879
|
+
before: "before";
|
|
880
|
+
after: "after";
|
|
881
|
+
}>;
|
|
882
|
+
anchorKey: z.ZodString;
|
|
883
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
884
|
+
relation: z.ZodEnum<{
|
|
885
|
+
prepend: "prepend";
|
|
886
|
+
append: "append";
|
|
887
|
+
}>;
|
|
888
|
+
parentKey: z.ZodString;
|
|
889
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
890
|
+
kind: z.ZodLiteral<"page-composition">;
|
|
891
|
+
placementKey: z.ZodString;
|
|
892
|
+
documentVersion: z.ZodNumber;
|
|
893
|
+
routeId: z.ZodString;
|
|
894
|
+
placementUnitKey: z.ZodString;
|
|
895
|
+
relation: z.ZodEnum<{
|
|
896
|
+
before: "before";
|
|
897
|
+
after: "after";
|
|
898
|
+
prepend: "prepend";
|
|
899
|
+
append: "append";
|
|
900
|
+
}>;
|
|
901
|
+
}, z.core.$strict>]>;
|
|
902
|
+
preserveBindings: z.ZodOptional<z.ZodBoolean>;
|
|
903
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
904
|
+
kind: z.ZodLiteral<"set-class-name-source">;
|
|
905
|
+
routeId: z.ZodOptional<z.ZodString>;
|
|
906
|
+
filePath: z.ZodString;
|
|
907
|
+
expectedVersion: z.ZodObject<{
|
|
908
|
+
documentVersion: z.ZodNumber;
|
|
909
|
+
contentHash: z.ZodString;
|
|
910
|
+
}, z.core.$strip>;
|
|
911
|
+
oldAttrRaw: z.ZodNullable<z.ZodString>;
|
|
912
|
+
oldAttrRange: z.ZodNullable<z.ZodObject<{
|
|
913
|
+
start: z.ZodNumber;
|
|
914
|
+
end: z.ZodNumber;
|
|
915
|
+
}, z.core.$strip>>;
|
|
916
|
+
openingElementRange: z.ZodObject<{
|
|
917
|
+
start: z.ZodNumber;
|
|
918
|
+
end: z.ZodNumber;
|
|
919
|
+
}, z.core.$strip>;
|
|
920
|
+
newAttrRaw: z.ZodNullable<z.ZodString>;
|
|
921
|
+
intent: z.ZodObject<{
|
|
922
|
+
source: z.ZodEnum<{
|
|
923
|
+
"style-panel": "style-panel";
|
|
924
|
+
"class-source-editor": "class-source-editor";
|
|
925
|
+
}>;
|
|
926
|
+
operation: z.ZodEnum<{
|
|
927
|
+
"replace-static-classname": "replace-static-classname";
|
|
928
|
+
"replace-expression": "replace-expression";
|
|
929
|
+
"create-attribute": "create-attribute";
|
|
930
|
+
"remove-attribute": "remove-attribute";
|
|
931
|
+
}>;
|
|
932
|
+
}, z.core.$strip>;
|
|
933
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
934
|
+
kind: z.ZodLiteral<"set-props">;
|
|
935
|
+
props: z.ZodRecord<z.ZodEnum<{
|
|
936
|
+
src: "src";
|
|
937
|
+
alt: "alt";
|
|
938
|
+
poster: "poster";
|
|
939
|
+
href: "href";
|
|
940
|
+
width: "width";
|
|
941
|
+
height: "height";
|
|
942
|
+
}> & z.core.$partial, z.ZodString>;
|
|
943
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
944
|
+
kind: z.ZodLiteral<"apply-style-draft">;
|
|
945
|
+
className: z.ZodOptional<z.ZodObject<{
|
|
946
|
+
routeId: z.ZodOptional<z.ZodString>;
|
|
947
|
+
filePath: z.ZodString;
|
|
948
|
+
expectedVersion: z.ZodObject<{
|
|
949
|
+
documentVersion: z.ZodNumber;
|
|
950
|
+
contentHash: z.ZodString;
|
|
951
|
+
}, z.core.$strip>;
|
|
952
|
+
oldAttrRaw: z.ZodNullable<z.ZodString>;
|
|
953
|
+
oldAttrRange: z.ZodNullable<z.ZodObject<{
|
|
954
|
+
start: z.ZodNumber;
|
|
955
|
+
end: z.ZodNumber;
|
|
956
|
+
}, z.core.$strip>>;
|
|
957
|
+
openingElementRange: z.ZodObject<{
|
|
958
|
+
start: z.ZodNumber;
|
|
959
|
+
end: z.ZodNumber;
|
|
960
|
+
}, z.core.$strip>;
|
|
961
|
+
newAttrRaw: z.ZodNullable<z.ZodString>;
|
|
962
|
+
intent: z.ZodObject<{
|
|
963
|
+
source: z.ZodEnum<{
|
|
964
|
+
"style-panel": "style-panel";
|
|
965
|
+
"class-source-editor": "class-source-editor";
|
|
966
|
+
}>;
|
|
967
|
+
operation: z.ZodEnum<{
|
|
968
|
+
"replace-static-classname": "replace-static-classname";
|
|
969
|
+
"replace-expression": "replace-expression";
|
|
970
|
+
"create-attribute": "create-attribute";
|
|
971
|
+
"remove-attribute": "remove-attribute";
|
|
972
|
+
}>;
|
|
973
|
+
}, z.core.$strip>;
|
|
974
|
+
}, z.core.$strip>>;
|
|
975
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
976
|
+
src: "src";
|
|
977
|
+
alt: "alt";
|
|
978
|
+
poster: "poster";
|
|
979
|
+
href: "href";
|
|
980
|
+
width: "width";
|
|
981
|
+
height: "height";
|
|
982
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
983
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
984
|
+
kind: z.ZodLiteral<"source-edit">;
|
|
985
|
+
conflictPolicy: z.ZodEnum<{
|
|
986
|
+
"compare-and-swap": "compare-and-swap";
|
|
987
|
+
overwrite: "overwrite";
|
|
988
|
+
}>;
|
|
989
|
+
edits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
990
|
+
operation: z.ZodLiteral<"upsert">;
|
|
991
|
+
path: z.ZodString;
|
|
992
|
+
content: z.ZodString;
|
|
993
|
+
baseContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
994
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
995
|
+
operation: z.ZodLiteral<"delete">;
|
|
996
|
+
path: z.ZodString;
|
|
997
|
+
capability: z.ZodLiteral<"source-delete">;
|
|
998
|
+
confirmDelete: z.ZodLiteral<true>;
|
|
999
|
+
confirmPath: z.ZodString;
|
|
1000
|
+
baseContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1001
|
+
}, z.core.$strict>], "operation">>;
|
|
1002
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1003
|
+
}, z.core.$strict>], "kind">;
|
|
1004
|
+
}, z.core.$strip>;
|
|
1005
|
+
export type SiteEditSignedOperationRequest = z.infer<typeof SiteEditSignedOperationRequestSchema>;
|
|
600
1006
|
export declare const SiteEditOperationPayloadSchema: z.ZodObject<{
|
|
601
1007
|
requestId: z.ZodString;
|
|
602
1008
|
kind: z.ZodEnum<{
|
|
1009
|
+
"insert-child": "insert-child";
|
|
603
1010
|
"update-text": "update-text";
|
|
604
1011
|
"update-array-item": "update-array-item";
|
|
605
1012
|
"remove-node": "remove-node";
|
|
606
|
-
"insert-child": "insert-child";
|
|
607
1013
|
"move-node": "move-node";
|
|
608
1014
|
"set-class-name-source": "set-class-name-source";
|
|
609
1015
|
"set-props": "set-props";
|
|
@@ -614,6 +1020,10 @@ export declare const SiteEditOperationPayloadSchema: z.ZodObject<{
|
|
|
614
1020
|
kind: z.ZodLiteral<"node">;
|
|
615
1021
|
key: z.ZodString;
|
|
616
1022
|
}, z.core.$strip>, z.ZodObject<{
|
|
1023
|
+
kind: z.ZodLiteral<"page-unit">;
|
|
1024
|
+
routeId: z.ZodString;
|
|
1025
|
+
placementUnitKey: z.ZodString;
|
|
1026
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
617
1027
|
kind: z.ZodLiteral<"route">;
|
|
618
1028
|
routeId: z.ZodString;
|
|
619
1029
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -637,10 +1047,10 @@ export declare const SiteEditOperationCommandResultSchema: z.ZodDiscriminatedUni
|
|
|
637
1047
|
data: z.ZodObject<{
|
|
638
1048
|
requestId: z.ZodString;
|
|
639
1049
|
kind: z.ZodEnum<{
|
|
1050
|
+
"insert-child": "insert-child";
|
|
640
1051
|
"update-text": "update-text";
|
|
641
1052
|
"update-array-item": "update-array-item";
|
|
642
1053
|
"remove-node": "remove-node";
|
|
643
|
-
"insert-child": "insert-child";
|
|
644
1054
|
"move-node": "move-node";
|
|
645
1055
|
"set-class-name-source": "set-class-name-source";
|
|
646
1056
|
"set-props": "set-props";
|
|
@@ -651,6 +1061,10 @@ export declare const SiteEditOperationCommandResultSchema: z.ZodDiscriminatedUni
|
|
|
651
1061
|
kind: z.ZodLiteral<"node">;
|
|
652
1062
|
key: z.ZodString;
|
|
653
1063
|
}, z.core.$strip>, z.ZodObject<{
|
|
1064
|
+
kind: z.ZodLiteral<"page-unit">;
|
|
1065
|
+
routeId: z.ZodString;
|
|
1066
|
+
placementUnitKey: z.ZodString;
|
|
1067
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
654
1068
|
kind: z.ZodLiteral<"route">;
|
|
655
1069
|
routeId: z.ZodString;
|
|
656
1070
|
}, z.core.$strip>, z.ZodObject<{
|