@vcp-dev/contracts 0.6.10 → 0.7.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/README.md +5 -4
- package/dist/api-response.d.ts +11 -0
- package/dist/business-facts.d.ts +23 -0
- package/dist/cms-page-directory.d.ts +281 -0
- package/dist/cms-site-id.d.ts +4 -0
- package/dist/colorway-distinctness.js +1 -1
- package/dist/connect-dynamic-collection.d.ts +7 -3
- package/dist/connect-form.d.ts +7 -5
- package/dist/conversion-hints.d.ts +37 -0
- package/dist/crawler-task-service.d.ts +594 -0
- package/dist/custom-domain.d.ts +120 -206
- package/dist/customer-materials.d.ts +196 -0
- package/dist/deployment-lifecycle.d.ts +45 -0
- package/dist/deployment-progress.d.ts +51 -0
- package/dist/design-tokens.d.ts +1 -0
- package/dist/design-tokens.js +1 -1
- package/dist/designer-component-library.d.ts +9 -7
- package/dist/designer-page-library.d.ts +36 -40
- package/dist/e2b-preview-proxy.d.ts +5 -0
- package/dist/external-site-edit.d.ts +267 -0
- package/dist/firecrawl-internal.d.ts +122 -0
- package/dist/font-catalog.d.ts +5 -2
- package/dist/form-design.d.ts +109 -69
- package/dist/google-search-console.d.ts +317 -0
- package/dist/index.d.ts +7110 -1965
- package/dist/index.js +1 -1
- package/dist/industry-classification.d.ts +43 -0
- package/dist/input-context-bundle.d.ts +16 -6
- package/dist/internal-entity-id.d.ts +3 -0
- package/dist/knowledge-category.d.ts +20 -0
- package/dist/knowledge-source-readiness.d.ts +94 -0
- package/dist/launcher-prompt-templates.d.ts +742 -0
- package/dist/media-library.d.ts +164 -0
- package/dist/migration-products.d.ts +45 -0
- package/dist/page-slug.d.ts +2 -0
- package/dist/page-template.d.ts +95 -0
- package/dist/product-search.d.ts +227 -0
- package/dist/site-build.d.ts +563 -0
- package/dist/site-design-presets.d.ts +20 -0
- package/dist/site-edit-capability.d.ts +13 -1
- package/dist/site-edit-class-name-source.d.ts +40 -8
- package/dist/site-edit-command-result.d.ts +15 -4
- package/dist/site-edit-composition.d.ts +13 -0
- package/dist/site-edit-event.d.ts +76 -14
- package/dist/site-edit-history-status.d.ts +193 -0
- package/dist/site-edit-operation.d.ts +205 -62
- package/dist/site-edit-page-composition.d.ts +101 -22
- package/dist/site-edit-patch-plan.d.ts +49 -3
- package/dist/site-edit-render-document.d.ts +67 -17
- package/dist/site-edit-session.d.ts +5 -2
- package/dist/site-edit-source.d.ts +60 -11
- package/dist/site-edit-version.d.ts +1 -1
- package/dist/site-extra-requirement.d.ts +31 -0
- package/dist/site-locale.d.ts +20 -0
- package/dist/site-localization-fields.d.ts +196 -0
- package/dist/site-localization-scope.d.ts +95 -0
- package/dist/site-preview.d.ts +65 -0
- package/dist/site-publish-domain.d.ts +680 -0
- package/dist/site-publish-workflow.d.ts +612 -0
- package/dist/site-workflow-completions.d.ts +163 -0
- package/dist/site-workflow.d.ts +1026 -0
- package/dist/sitemap-navigation.d.ts +12 -0
- package/dist/step2-page-selection.d.ts +88 -0
- package/dist/step2-site-initialization.d.ts +500 -0
- package/dist/step3-digital-employee-analysis.d.ts +661 -0
- package/dist/step4-diagnosis.d.ts +272 -0
- package/dist/step5-strategy.d.ts +8076 -0
- package/dist/step6-design.d.ts +986 -0
- package/dist/subsite-localization-input.d.ts +121 -0
- package/dist/subsite-mount-path.d.ts +23 -0
- package/dist/subsite-visible-text-export.d.ts +22 -0
- package/dist/template-upgrade-observability.d.ts +2 -2
- package/dist/theme-presets.d.ts +56 -1
- package/dist/user-facing-copy.d.ts +1 -0
- package/dist/workspace-design-apply.d.ts +5 -0
- package/dist/workspace-resource-operation.d.ts +75 -33
- package/package.json +2 -1
- package/dist/publish-plan.d.ts +0 -54
|
@@ -11,6 +11,7 @@ export declare const SiteEditOperationTypeSchema: z.ZodEnum<{
|
|
|
11
11
|
"apply-style-draft": "apply-style-draft";
|
|
12
12
|
"source-edit": "source-edit";
|
|
13
13
|
"insert-page-resource": "insert-page-resource";
|
|
14
|
+
"delete-page-source": "delete-page-source";
|
|
14
15
|
}>;
|
|
15
16
|
export type SiteEditOperationType = z.infer<typeof SiteEditOperationTypeSchema>;
|
|
16
17
|
export type SiteEditOperationValue = string | number | boolean | null | SiteEditOperationValue[] | {
|
|
@@ -20,33 +21,65 @@ export declare const SiteEditOperationValueSchema: z.ZodType<SiteEditOperationVa
|
|
|
20
21
|
export declare const SiteEditOperationTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
21
22
|
kind: z.ZodLiteral<"node">;
|
|
22
23
|
key: z.ZodString;
|
|
23
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
24
25
|
kind: z.ZodLiteral<"page-unit">;
|
|
25
|
-
|
|
26
|
+
composition: z.ZodObject<{
|
|
27
|
+
routeId: z.ZodString;
|
|
28
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strict>;
|
|
26
30
|
placementUnitKey: z.ZodString;
|
|
27
31
|
}, z.core.$strict>, z.ZodObject<{
|
|
28
32
|
kind: z.ZodLiteral<"route">;
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
composition: z.ZodObject<{
|
|
34
|
+
routeId: z.ZodString;
|
|
35
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31
38
|
kind: z.ZodLiteral<"source-file">;
|
|
32
39
|
path: z.ZodString;
|
|
33
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
34
41
|
kind: z.ZodLiteral<"source-batch">;
|
|
35
42
|
paths: z.ZodArray<z.ZodString>;
|
|
36
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37
44
|
kind: z.ZodLiteral<"project">;
|
|
38
45
|
}, z.core.$strict>], "kind">;
|
|
39
46
|
export type SiteEditOperationTarget = z.infer<typeof SiteEditOperationTargetSchema>;
|
|
47
|
+
export declare const SiteEditOperationResultTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
48
|
+
kind: z.ZodLiteral<"node">;
|
|
49
|
+
key: z.ZodString;
|
|
50
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51
|
+
kind: z.ZodLiteral<"page-unit">;
|
|
52
|
+
composition: z.ZodObject<{
|
|
53
|
+
routeId: z.ZodString;
|
|
54
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
placementUnitKey: z.ZodString;
|
|
57
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
58
|
+
kind: z.ZodLiteral<"route">;
|
|
59
|
+
composition: z.ZodObject<{
|
|
60
|
+
routeId: z.ZodString;
|
|
61
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
64
|
+
kind: z.ZodLiteral<"source-file">;
|
|
65
|
+
path: z.ZodString;
|
|
66
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
67
|
+
kind: z.ZodLiteral<"source-batch">;
|
|
68
|
+
paths: z.ZodArray<z.ZodString>;
|
|
69
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
70
|
+
kind: z.ZodLiteral<"project">;
|
|
71
|
+
}, z.core.$strict>], "kind">;
|
|
72
|
+
export type SiteEditOperationResultTarget = z.infer<typeof SiteEditOperationResultTargetSchema>;
|
|
40
73
|
export declare const SiteEditStylePropertySchema: z.ZodEnum<{
|
|
41
74
|
transform: "transform";
|
|
42
75
|
color: "color";
|
|
43
76
|
cursor: "cursor";
|
|
44
77
|
columns: "columns";
|
|
78
|
+
position: "position";
|
|
45
79
|
width: "width";
|
|
46
80
|
height: "height";
|
|
47
81
|
order: "order";
|
|
48
82
|
display: "display";
|
|
49
|
-
position: "position";
|
|
50
83
|
top: "top";
|
|
51
84
|
right: "right";
|
|
52
85
|
bottom: "bottom";
|
|
@@ -138,9 +171,9 @@ export declare const SiteEditStylePropertySchema: z.ZodEnum<{
|
|
|
138
171
|
export type SiteEditStyleProperty = z.infer<typeof SiteEditStylePropertySchema>;
|
|
139
172
|
export declare const SiteEditStyleStateModeSchema: z.ZodEnum<{
|
|
140
173
|
active: "active";
|
|
174
|
+
disabled: "disabled";
|
|
141
175
|
hover: "hover";
|
|
142
176
|
focus: "focus";
|
|
143
|
-
disabled: "disabled";
|
|
144
177
|
}>;
|
|
145
178
|
export type SiteEditStyleStateMode = z.infer<typeof SiteEditStyleStateModeSchema>;
|
|
146
179
|
export declare const SiteEditStyleBreakpointSchema: z.ZodEnum<{
|
|
@@ -167,7 +200,10 @@ export declare const SiteEditMoveTargetSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
167
200
|
kind: z.ZodLiteral<"page-composition">;
|
|
168
201
|
placementKey: z.ZodString;
|
|
169
202
|
documentVersion: z.ZodNumber;
|
|
170
|
-
|
|
203
|
+
composition: z.ZodObject<{
|
|
204
|
+
routeId: z.ZodString;
|
|
205
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
206
|
+
}, z.core.$strict>;
|
|
171
207
|
placementUnitKey: z.ZodString;
|
|
172
208
|
relation: z.ZodEnum<{
|
|
173
209
|
before: "before";
|
|
@@ -277,7 +313,10 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
277
313
|
kind: z.ZodLiteral<"page-composition">;
|
|
278
314
|
placementKey: z.ZodString;
|
|
279
315
|
documentVersion: z.ZodNumber;
|
|
280
|
-
|
|
316
|
+
composition: z.ZodObject<{
|
|
317
|
+
routeId: z.ZodString;
|
|
318
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
319
|
+
}, z.core.$strict>;
|
|
281
320
|
placementUnitKey: z.ZodString;
|
|
282
321
|
relation: z.ZodEnum<{
|
|
283
322
|
before: "before";
|
|
@@ -289,6 +328,10 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
289
328
|
kind: z.ZodLiteral<"page-composition">;
|
|
290
329
|
placementKey: z.ZodString;
|
|
291
330
|
documentVersion: z.ZodNumber;
|
|
331
|
+
composition: z.ZodObject<{
|
|
332
|
+
routeId: z.ZodString;
|
|
333
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
334
|
+
}, z.core.$strict>;
|
|
292
335
|
}, z.core.$strict>]>;
|
|
293
336
|
}, z.core.$strip>, z.ZodObject<{
|
|
294
337
|
kind: z.ZodLiteral<"move-node">;
|
|
@@ -308,7 +351,10 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
308
351
|
kind: z.ZodLiteral<"page-composition">;
|
|
309
352
|
placementKey: z.ZodString;
|
|
310
353
|
documentVersion: z.ZodNumber;
|
|
311
|
-
|
|
354
|
+
composition: z.ZodObject<{
|
|
355
|
+
routeId: z.ZodString;
|
|
356
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
357
|
+
}, z.core.$strict>;
|
|
312
358
|
placementUnitKey: z.ZodString;
|
|
313
359
|
relation: z.ZodEnum<{
|
|
314
360
|
before: "before";
|
|
@@ -320,7 +366,6 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
320
366
|
preserveBindings: z.ZodOptional<z.ZodBoolean>;
|
|
321
367
|
}, z.core.$strip>, z.ZodObject<{
|
|
322
368
|
kind: z.ZodLiteral<"set-class-name-source">;
|
|
323
|
-
routeId: z.ZodOptional<z.ZodString>;
|
|
324
369
|
filePath: z.ZodString;
|
|
325
370
|
expectedVersion: z.ZodObject<{
|
|
326
371
|
documentVersion: z.ZodNumber;
|
|
@@ -361,7 +406,6 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
361
406
|
}, z.core.$strip>, z.ZodObject<{
|
|
362
407
|
kind: z.ZodLiteral<"apply-style-draft">;
|
|
363
408
|
className: z.ZodOptional<z.ZodObject<{
|
|
364
|
-
routeId: z.ZodOptional<z.ZodString>;
|
|
365
409
|
filePath: z.ZodString;
|
|
366
410
|
expectedVersion: z.ZodObject<{
|
|
367
411
|
documentVersion: z.ZodNumber;
|
|
@@ -423,11 +467,11 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
423
467
|
artifact: z.ZodObject<{
|
|
424
468
|
resource_id: z.ZodString;
|
|
425
469
|
resource_type: z.ZodEnum<{
|
|
426
|
-
page: "page";
|
|
427
470
|
pages: "pages";
|
|
471
|
+
page: "page";
|
|
428
472
|
}>;
|
|
429
|
-
resolved_version: z.
|
|
430
|
-
revision_id: z.ZodString
|
|
473
|
+
resolved_version: z.ZodNumber;
|
|
474
|
+
revision_id: z.ZodOptional<z.ZodString>;
|
|
431
475
|
digest_sha256: z.ZodString;
|
|
432
476
|
components: z.ZodArray<z.ZodObject<{
|
|
433
477
|
component_id: z.ZodString;
|
|
@@ -479,12 +523,16 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
479
523
|
}, z.core.$strict>>;
|
|
480
524
|
project_dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
|
|
481
525
|
}, z.core.$strict>;
|
|
526
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
527
|
+
kind: z.ZodLiteral<"delete-page-source">;
|
|
528
|
+
expectedUrlPath: z.ZodString;
|
|
482
529
|
}, z.core.$strict>], "kind">;
|
|
483
530
|
export type SiteEditOperationParams = z.infer<typeof SiteEditOperationParamsSchema>;
|
|
484
531
|
export declare const SiteEditOperationErrorCodeSchema: z.ZodEnum<{
|
|
485
532
|
VERSION_STALE: "VERSION_STALE";
|
|
486
533
|
RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
|
|
487
534
|
NODE_NOT_FOUND: "NODE_NOT_FOUND";
|
|
535
|
+
HOME_PAGE_LOCKED: "HOME_PAGE_LOCKED";
|
|
488
536
|
ROUTE_NOT_FOUND: "ROUTE_NOT_FOUND";
|
|
489
537
|
CAPABILITY_REJECTED: "CAPABILITY_REJECTED";
|
|
490
538
|
CONSTRAINT_VIOLATED: "CONSTRAINT_VIOLATED";
|
|
@@ -518,6 +566,7 @@ export declare const SiteEditOperationErrorSchema: z.ZodObject<{
|
|
|
518
566
|
VERSION_STALE: "VERSION_STALE";
|
|
519
567
|
RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
|
|
520
568
|
NODE_NOT_FOUND: "NODE_NOT_FOUND";
|
|
569
|
+
HOME_PAGE_LOCKED: "HOME_PAGE_LOCKED";
|
|
521
570
|
ROUTE_NOT_FOUND: "ROUTE_NOT_FOUND";
|
|
522
571
|
CAPABILITY_REJECTED: "CAPABILITY_REJECTED";
|
|
523
572
|
CONSTRAINT_VIOLATED: "CONSTRAINT_VIOLATED";
|
|
@@ -559,7 +608,10 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
559
608
|
id: z.ZodString;
|
|
560
609
|
siteId: z.ZodUUID;
|
|
561
610
|
baseSnapshotId: z.ZodUUID;
|
|
562
|
-
|
|
611
|
+
composition: z.ZodObject<{
|
|
612
|
+
routeId: z.ZodString;
|
|
613
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
614
|
+
}, z.core.$strict>;
|
|
563
615
|
kind: z.ZodEnum<{
|
|
564
616
|
"insert-child": "insert-child";
|
|
565
617
|
"update-text": "update-text";
|
|
@@ -571,24 +623,31 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
571
623
|
"apply-style-draft": "apply-style-draft";
|
|
572
624
|
"source-edit": "source-edit";
|
|
573
625
|
"insert-page-resource": "insert-page-resource";
|
|
626
|
+
"delete-page-source": "delete-page-source";
|
|
574
627
|
}>;
|
|
575
628
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
576
629
|
kind: z.ZodLiteral<"node">;
|
|
577
630
|
key: z.ZodString;
|
|
578
|
-
}, z.core.$
|
|
631
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
579
632
|
kind: z.ZodLiteral<"page-unit">;
|
|
580
|
-
|
|
633
|
+
composition: z.ZodObject<{
|
|
634
|
+
routeId: z.ZodString;
|
|
635
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
636
|
+
}, z.core.$strict>;
|
|
581
637
|
placementUnitKey: z.ZodString;
|
|
582
638
|
}, z.core.$strict>, z.ZodObject<{
|
|
583
639
|
kind: z.ZodLiteral<"route">;
|
|
584
|
-
|
|
585
|
-
|
|
640
|
+
composition: z.ZodObject<{
|
|
641
|
+
routeId: z.ZodString;
|
|
642
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
643
|
+
}, z.core.$strict>;
|
|
644
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
586
645
|
kind: z.ZodLiteral<"source-file">;
|
|
587
646
|
path: z.ZodString;
|
|
588
|
-
}, z.core.$
|
|
647
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
589
648
|
kind: z.ZodLiteral<"source-batch">;
|
|
590
649
|
paths: z.ZodArray<z.ZodString>;
|
|
591
|
-
}, z.core.$
|
|
650
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
592
651
|
kind: z.ZodLiteral<"project">;
|
|
593
652
|
}, z.core.$strict>], "kind">;
|
|
594
653
|
documentVersion: z.ZodNumber;
|
|
@@ -667,7 +726,10 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
667
726
|
kind: z.ZodLiteral<"page-composition">;
|
|
668
727
|
placementKey: z.ZodString;
|
|
669
728
|
documentVersion: z.ZodNumber;
|
|
670
|
-
|
|
729
|
+
composition: z.ZodObject<{
|
|
730
|
+
routeId: z.ZodString;
|
|
731
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
732
|
+
}, z.core.$strict>;
|
|
671
733
|
placementUnitKey: z.ZodString;
|
|
672
734
|
relation: z.ZodEnum<{
|
|
673
735
|
before: "before";
|
|
@@ -679,6 +741,10 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
679
741
|
kind: z.ZodLiteral<"page-composition">;
|
|
680
742
|
placementKey: z.ZodString;
|
|
681
743
|
documentVersion: z.ZodNumber;
|
|
744
|
+
composition: z.ZodObject<{
|
|
745
|
+
routeId: z.ZodString;
|
|
746
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
747
|
+
}, z.core.$strict>;
|
|
682
748
|
}, z.core.$strict>]>;
|
|
683
749
|
}, z.core.$strip>, z.ZodObject<{
|
|
684
750
|
kind: z.ZodLiteral<"move-node">;
|
|
@@ -698,7 +764,10 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
698
764
|
kind: z.ZodLiteral<"page-composition">;
|
|
699
765
|
placementKey: z.ZodString;
|
|
700
766
|
documentVersion: z.ZodNumber;
|
|
701
|
-
|
|
767
|
+
composition: z.ZodObject<{
|
|
768
|
+
routeId: z.ZodString;
|
|
769
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
770
|
+
}, z.core.$strict>;
|
|
702
771
|
placementUnitKey: z.ZodString;
|
|
703
772
|
relation: z.ZodEnum<{
|
|
704
773
|
before: "before";
|
|
@@ -710,7 +779,6 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
710
779
|
preserveBindings: z.ZodOptional<z.ZodBoolean>;
|
|
711
780
|
}, z.core.$strip>, z.ZodObject<{
|
|
712
781
|
kind: z.ZodLiteral<"set-class-name-source">;
|
|
713
|
-
routeId: z.ZodOptional<z.ZodString>;
|
|
714
782
|
filePath: z.ZodString;
|
|
715
783
|
expectedVersion: z.ZodObject<{
|
|
716
784
|
documentVersion: z.ZodNumber;
|
|
@@ -751,7 +819,6 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
751
819
|
}, z.core.$strip>, z.ZodObject<{
|
|
752
820
|
kind: z.ZodLiteral<"apply-style-draft">;
|
|
753
821
|
className: z.ZodOptional<z.ZodObject<{
|
|
754
|
-
routeId: z.ZodOptional<z.ZodString>;
|
|
755
822
|
filePath: z.ZodString;
|
|
756
823
|
expectedVersion: z.ZodObject<{
|
|
757
824
|
documentVersion: z.ZodNumber;
|
|
@@ -813,11 +880,11 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
813
880
|
artifact: z.ZodObject<{
|
|
814
881
|
resource_id: z.ZodString;
|
|
815
882
|
resource_type: z.ZodEnum<{
|
|
816
|
-
page: "page";
|
|
817
883
|
pages: "pages";
|
|
884
|
+
page: "page";
|
|
818
885
|
}>;
|
|
819
|
-
resolved_version: z.
|
|
820
|
-
revision_id: z.ZodString
|
|
886
|
+
resolved_version: z.ZodNumber;
|
|
887
|
+
revision_id: z.ZodOptional<z.ZodString>;
|
|
821
888
|
digest_sha256: z.ZodString;
|
|
822
889
|
components: z.ZodArray<z.ZodObject<{
|
|
823
890
|
component_id: z.ZodString;
|
|
@@ -869,8 +936,11 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
869
936
|
}, z.core.$strict>>;
|
|
870
937
|
project_dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
|
|
871
938
|
}, z.core.$strict>;
|
|
939
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
940
|
+
kind: z.ZodLiteral<"delete-page-source">;
|
|
941
|
+
expectedUrlPath: z.ZodString;
|
|
872
942
|
}, z.core.$strict>], "kind">;
|
|
873
|
-
}, z.core.$
|
|
943
|
+
}, z.core.$strict>;
|
|
874
944
|
export type SiteEditOperationRequest = z.infer<typeof SiteEditOperationRequestSchema>;
|
|
875
945
|
/** @deprecated Use SiteEditOperationRequest. */
|
|
876
946
|
export type SiteEditAuthenticatedOperationRequest = SiteEditOperationRequest;
|
|
@@ -881,7 +951,10 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
|
881
951
|
id: z.ZodString;
|
|
882
952
|
siteId: z.ZodUUID;
|
|
883
953
|
baseSnapshotId: z.ZodUUID;
|
|
884
|
-
|
|
954
|
+
composition: z.ZodObject<{
|
|
955
|
+
routeId: z.ZodString;
|
|
956
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
957
|
+
}, z.core.$strict>;
|
|
885
958
|
kind: z.ZodEnum<{
|
|
886
959
|
"insert-child": "insert-child";
|
|
887
960
|
"update-text": "update-text";
|
|
@@ -893,24 +966,31 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
|
893
966
|
"apply-style-draft": "apply-style-draft";
|
|
894
967
|
"source-edit": "source-edit";
|
|
895
968
|
"insert-page-resource": "insert-page-resource";
|
|
969
|
+
"delete-page-source": "delete-page-source";
|
|
896
970
|
}>;
|
|
897
971
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
898
972
|
kind: z.ZodLiteral<"node">;
|
|
899
973
|
key: z.ZodString;
|
|
900
|
-
}, z.core.$
|
|
974
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
901
975
|
kind: z.ZodLiteral<"page-unit">;
|
|
902
|
-
|
|
976
|
+
composition: z.ZodObject<{
|
|
977
|
+
routeId: z.ZodString;
|
|
978
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
979
|
+
}, z.core.$strict>;
|
|
903
980
|
placementUnitKey: z.ZodString;
|
|
904
981
|
}, z.core.$strict>, z.ZodObject<{
|
|
905
982
|
kind: z.ZodLiteral<"route">;
|
|
906
|
-
|
|
907
|
-
|
|
983
|
+
composition: z.ZodObject<{
|
|
984
|
+
routeId: z.ZodString;
|
|
985
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
986
|
+
}, z.core.$strict>;
|
|
987
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
908
988
|
kind: z.ZodLiteral<"source-file">;
|
|
909
989
|
path: z.ZodString;
|
|
910
|
-
}, z.core.$
|
|
990
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
911
991
|
kind: z.ZodLiteral<"source-batch">;
|
|
912
992
|
paths: z.ZodArray<z.ZodString>;
|
|
913
|
-
}, z.core.$
|
|
993
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
914
994
|
kind: z.ZodLiteral<"project">;
|
|
915
995
|
}, z.core.$strict>], "kind">;
|
|
916
996
|
documentVersion: z.ZodNumber;
|
|
@@ -989,7 +1069,10 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
|
989
1069
|
kind: z.ZodLiteral<"page-composition">;
|
|
990
1070
|
placementKey: z.ZodString;
|
|
991
1071
|
documentVersion: z.ZodNumber;
|
|
992
|
-
|
|
1072
|
+
composition: z.ZodObject<{
|
|
1073
|
+
routeId: z.ZodString;
|
|
1074
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
1075
|
+
}, z.core.$strict>;
|
|
993
1076
|
placementUnitKey: z.ZodString;
|
|
994
1077
|
relation: z.ZodEnum<{
|
|
995
1078
|
before: "before";
|
|
@@ -1001,6 +1084,10 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
|
1001
1084
|
kind: z.ZodLiteral<"page-composition">;
|
|
1002
1085
|
placementKey: z.ZodString;
|
|
1003
1086
|
documentVersion: z.ZodNumber;
|
|
1087
|
+
composition: z.ZodObject<{
|
|
1088
|
+
routeId: z.ZodString;
|
|
1089
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
1090
|
+
}, z.core.$strict>;
|
|
1004
1091
|
}, z.core.$strict>]>;
|
|
1005
1092
|
}, z.core.$strip>, z.ZodObject<{
|
|
1006
1093
|
kind: z.ZodLiteral<"move-node">;
|
|
@@ -1020,7 +1107,10 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
|
1020
1107
|
kind: z.ZodLiteral<"page-composition">;
|
|
1021
1108
|
placementKey: z.ZodString;
|
|
1022
1109
|
documentVersion: z.ZodNumber;
|
|
1023
|
-
|
|
1110
|
+
composition: z.ZodObject<{
|
|
1111
|
+
routeId: z.ZodString;
|
|
1112
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
1113
|
+
}, z.core.$strict>;
|
|
1024
1114
|
placementUnitKey: z.ZodString;
|
|
1025
1115
|
relation: z.ZodEnum<{
|
|
1026
1116
|
before: "before";
|
|
@@ -1032,7 +1122,6 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
|
1032
1122
|
preserveBindings: z.ZodOptional<z.ZodBoolean>;
|
|
1033
1123
|
}, z.core.$strip>, z.ZodObject<{
|
|
1034
1124
|
kind: z.ZodLiteral<"set-class-name-source">;
|
|
1035
|
-
routeId: z.ZodOptional<z.ZodString>;
|
|
1036
1125
|
filePath: z.ZodString;
|
|
1037
1126
|
expectedVersion: z.ZodObject<{
|
|
1038
1127
|
documentVersion: z.ZodNumber;
|
|
@@ -1073,7 +1162,6 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
|
1073
1162
|
}, z.core.$strip>, z.ZodObject<{
|
|
1074
1163
|
kind: z.ZodLiteral<"apply-style-draft">;
|
|
1075
1164
|
className: z.ZodOptional<z.ZodObject<{
|
|
1076
|
-
routeId: z.ZodOptional<z.ZodString>;
|
|
1077
1165
|
filePath: z.ZodString;
|
|
1078
1166
|
expectedVersion: z.ZodObject<{
|
|
1079
1167
|
documentVersion: z.ZodNumber;
|
|
@@ -1135,11 +1223,11 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
|
1135
1223
|
artifact: z.ZodObject<{
|
|
1136
1224
|
resource_id: z.ZodString;
|
|
1137
1225
|
resource_type: z.ZodEnum<{
|
|
1138
|
-
page: "page";
|
|
1139
1226
|
pages: "pages";
|
|
1227
|
+
page: "page";
|
|
1140
1228
|
}>;
|
|
1141
|
-
resolved_version: z.
|
|
1142
|
-
revision_id: z.ZodString
|
|
1229
|
+
resolved_version: z.ZodNumber;
|
|
1230
|
+
revision_id: z.ZodOptional<z.ZodString>;
|
|
1143
1231
|
digest_sha256: z.ZodString;
|
|
1144
1232
|
components: z.ZodArray<z.ZodObject<{
|
|
1145
1233
|
component_id: z.ZodString;
|
|
@@ -1191,8 +1279,11 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
|
1191
1279
|
}, z.core.$strict>>;
|
|
1192
1280
|
project_dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
|
|
1193
1281
|
}, z.core.$strict>;
|
|
1282
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1283
|
+
kind: z.ZodLiteral<"delete-page-source">;
|
|
1284
|
+
expectedUrlPath: z.ZodString;
|
|
1194
1285
|
}, z.core.$strict>], "kind">;
|
|
1195
|
-
}, z.core.$
|
|
1286
|
+
}, z.core.$strict>;
|
|
1196
1287
|
export type SiteEditSignedOperationRequest = z.infer<typeof SiteEditSignedOperationRequestSchema>;
|
|
1197
1288
|
export declare const SiteEditInsertPageResourceOutputSchema: z.ZodObject<{
|
|
1198
1289
|
kind: z.ZodLiteral<"insert-page-resource">;
|
|
@@ -1205,6 +1296,14 @@ export declare const SiteEditInsertPageResourceOutputSchema: z.ZodObject<{
|
|
|
1205
1296
|
}, z.core.$strict>>;
|
|
1206
1297
|
}, z.core.$strict>;
|
|
1207
1298
|
export type SiteEditInsertPageResourceOutput = z.infer<typeof SiteEditInsertPageResourceOutputSchema>;
|
|
1299
|
+
export declare const SiteEditDeletePageSourceOutputSchema: z.ZodObject<{
|
|
1300
|
+
kind: z.ZodLiteral<"delete-page-source">;
|
|
1301
|
+
deleted_files: z.ZodArray<z.ZodString>;
|
|
1302
|
+
updated_files: z.ZodArray<z.ZodString>;
|
|
1303
|
+
preserved_shared_files: z.ZodArray<z.ZodString>;
|
|
1304
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
1305
|
+
}, z.core.$strict>;
|
|
1306
|
+
export type SiteEditDeletePageSourceOutput = z.infer<typeof SiteEditDeletePageSourceOutputSchema>;
|
|
1208
1307
|
export declare const SiteEditOperationOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1209
1308
|
kind: z.ZodLiteral<"insert-page-resource">;
|
|
1210
1309
|
package_instance_id: z.ZodString;
|
|
@@ -1214,6 +1313,12 @@ export declare const SiteEditOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
1214
1313
|
final_route: z.ZodString;
|
|
1215
1314
|
route_file_path: z.ZodString;
|
|
1216
1315
|
}, z.core.$strict>>;
|
|
1316
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1317
|
+
kind: z.ZodLiteral<"delete-page-source">;
|
|
1318
|
+
deleted_files: z.ZodArray<z.ZodString>;
|
|
1319
|
+
updated_files: z.ZodArray<z.ZodString>;
|
|
1320
|
+
preserved_shared_files: z.ZodArray<z.ZodString>;
|
|
1321
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
1217
1322
|
}, z.core.$strict>], "kind">;
|
|
1218
1323
|
export type SiteEditOperationOutput = z.infer<typeof SiteEditOperationOutputSchema>;
|
|
1219
1324
|
export declare const SiteEditOperationPayloadSchema: z.ZodObject<{
|
|
@@ -1229,24 +1334,35 @@ export declare const SiteEditOperationPayloadSchema: z.ZodObject<{
|
|
|
1229
1334
|
"apply-style-draft": "apply-style-draft";
|
|
1230
1335
|
"source-edit": "source-edit";
|
|
1231
1336
|
"insert-page-resource": "insert-page-resource";
|
|
1337
|
+
"delete-page-source": "delete-page-source";
|
|
1232
1338
|
}>;
|
|
1339
|
+
composition: z.ZodObject<{
|
|
1340
|
+
routeId: z.ZodString;
|
|
1341
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
1342
|
+
}, z.core.$strict>;
|
|
1233
1343
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1234
1344
|
kind: z.ZodLiteral<"node">;
|
|
1235
1345
|
key: z.ZodString;
|
|
1236
|
-
}, z.core.$
|
|
1346
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1237
1347
|
kind: z.ZodLiteral<"page-unit">;
|
|
1238
|
-
|
|
1348
|
+
composition: z.ZodObject<{
|
|
1349
|
+
routeId: z.ZodString;
|
|
1350
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
1351
|
+
}, z.core.$strict>;
|
|
1239
1352
|
placementUnitKey: z.ZodString;
|
|
1240
1353
|
}, z.core.$strict>, z.ZodObject<{
|
|
1241
1354
|
kind: z.ZodLiteral<"route">;
|
|
1242
|
-
|
|
1243
|
-
|
|
1355
|
+
composition: z.ZodObject<{
|
|
1356
|
+
routeId: z.ZodString;
|
|
1357
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
1358
|
+
}, z.core.$strict>;
|
|
1359
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1244
1360
|
kind: z.ZodLiteral<"source-file">;
|
|
1245
1361
|
path: z.ZodString;
|
|
1246
|
-
}, z.core.$
|
|
1362
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1247
1363
|
kind: z.ZodLiteral<"source-batch">;
|
|
1248
1364
|
paths: z.ZodArray<z.ZodString>;
|
|
1249
|
-
}, z.core.$
|
|
1365
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1250
1366
|
kind: z.ZodLiteral<"project">;
|
|
1251
1367
|
}, z.core.$strict>], "kind">;
|
|
1252
1368
|
resultVersion: z.ZodNumber;
|
|
@@ -1265,11 +1381,21 @@ export declare const SiteEditOperationPayloadSchema: z.ZodObject<{
|
|
|
1265
1381
|
final_route: z.ZodString;
|
|
1266
1382
|
route_file_path: z.ZodString;
|
|
1267
1383
|
}, z.core.$strict>>;
|
|
1384
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1385
|
+
kind: z.ZodLiteral<"delete-page-source">;
|
|
1386
|
+
deleted_files: z.ZodArray<z.ZodString>;
|
|
1387
|
+
updated_files: z.ZodArray<z.ZodString>;
|
|
1388
|
+
preserved_shared_files: z.ZodArray<z.ZodString>;
|
|
1389
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
1268
1390
|
}, z.core.$strict>], "kind">>;
|
|
1269
|
-
}, z.core.$
|
|
1391
|
+
}, z.core.$strict>;
|
|
1270
1392
|
export type SiteEditOperationPayload = z.infer<typeof SiteEditOperationPayloadSchema>;
|
|
1271
1393
|
export declare const SiteEditOperationCommandResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1272
1394
|
ok: z.ZodLiteral<true>;
|
|
1395
|
+
composition: z.ZodObject<{
|
|
1396
|
+
routeId: z.ZodString;
|
|
1397
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
1398
|
+
}, z.core.$strict>;
|
|
1273
1399
|
data: z.ZodObject<{
|
|
1274
1400
|
requestId: z.ZodString;
|
|
1275
1401
|
kind: z.ZodEnum<{
|
|
@@ -1283,24 +1409,35 @@ export declare const SiteEditOperationCommandResultSchema: z.ZodDiscriminatedUni
|
|
|
1283
1409
|
"apply-style-draft": "apply-style-draft";
|
|
1284
1410
|
"source-edit": "source-edit";
|
|
1285
1411
|
"insert-page-resource": "insert-page-resource";
|
|
1412
|
+
"delete-page-source": "delete-page-source";
|
|
1286
1413
|
}>;
|
|
1414
|
+
composition: z.ZodObject<{
|
|
1415
|
+
routeId: z.ZodString;
|
|
1416
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
1417
|
+
}, z.core.$strict>;
|
|
1287
1418
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1288
1419
|
kind: z.ZodLiteral<"node">;
|
|
1289
1420
|
key: z.ZodString;
|
|
1290
|
-
}, z.core.$
|
|
1421
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1291
1422
|
kind: z.ZodLiteral<"page-unit">;
|
|
1292
|
-
|
|
1423
|
+
composition: z.ZodObject<{
|
|
1424
|
+
routeId: z.ZodString;
|
|
1425
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
1426
|
+
}, z.core.$strict>;
|
|
1293
1427
|
placementUnitKey: z.ZodString;
|
|
1294
1428
|
}, z.core.$strict>, z.ZodObject<{
|
|
1295
1429
|
kind: z.ZodLiteral<"route">;
|
|
1296
|
-
|
|
1297
|
-
|
|
1430
|
+
composition: z.ZodObject<{
|
|
1431
|
+
routeId: z.ZodString;
|
|
1432
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
1433
|
+
}, z.core.$strict>;
|
|
1434
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1298
1435
|
kind: z.ZodLiteral<"source-file">;
|
|
1299
1436
|
path: z.ZodString;
|
|
1300
|
-
}, z.core.$
|
|
1437
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1301
1438
|
kind: z.ZodLiteral<"source-batch">;
|
|
1302
1439
|
paths: z.ZodArray<z.ZodString>;
|
|
1303
|
-
}, z.core.$
|
|
1440
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1304
1441
|
kind: z.ZodLiteral<"project">;
|
|
1305
1442
|
}, z.core.$strict>], "kind">;
|
|
1306
1443
|
resultVersion: z.ZodNumber;
|
|
@@ -1319,10 +1456,16 @@ export declare const SiteEditOperationCommandResultSchema: z.ZodDiscriminatedUni
|
|
|
1319
1456
|
final_route: z.ZodString;
|
|
1320
1457
|
route_file_path: z.ZodString;
|
|
1321
1458
|
}, z.core.$strict>>;
|
|
1459
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1460
|
+
kind: z.ZodLiteral<"delete-page-source">;
|
|
1461
|
+
deleted_files: z.ZodArray<z.ZodString>;
|
|
1462
|
+
updated_files: z.ZodArray<z.ZodString>;
|
|
1463
|
+
preserved_shared_files: z.ZodArray<z.ZodString>;
|
|
1464
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
1322
1465
|
}, z.core.$strict>], "kind">>;
|
|
1323
|
-
}, z.core.$
|
|
1324
|
-
}, z.core.$
|
|
1466
|
+
}, z.core.$strict>;
|
|
1467
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1325
1468
|
[x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
1326
|
-
}, z.core.$
|
|
1469
|
+
}, z.core.$strict>], "ok">;
|
|
1327
1470
|
export type SiteEditOperationCommandResult = SiteEditCommandResult<SiteEditOperationPayload, SiteEditOperationErrorCode, unknown, never, Partial<SiteEditOperationPayload>>;
|
|
1328
1471
|
export type SiteEditOperationResult = SiteEditOperationPayload;
|