@vcp-dev/contracts 0.10.23 → 0.10.25
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/cms-navigation.d.ts +4 -0
- package/dist/cms-page-directory.d.ts +29 -0
- package/dist/index.d.ts +218 -316
- package/dist/index.js +62 -5
- package/dist/launcher-prompt-templates.d.ts +2 -26
- package/dist/migration-product-breadcrumb.d.ts +35 -0
- package/dist/migration-products.d.ts +2 -0
- package/dist/next-page-code-error.d.ts +21 -0
- package/dist/product-search.d.ts +20 -0
- package/dist/site-edit-operation.d.ts +72 -3
- package/dist/site-edit-render-document.d.ts +27 -0
- package/dist/site-edit-version.d.ts +1 -1
- package/dist/site-localization-scope.d.ts +3 -1
- package/dist/site-publish-workflow.d.ts +10 -1
- package/dist/step5-keyword-library.d.ts +28 -39
- package/dist/step5-strategy.d.ts +660 -653
- package/dist/subsite-sync-diff.d.ts +40 -0
- package/dist/workspace-resource-operation.d.ts +16 -2
- package/package.json +1 -1
|
@@ -28,6 +28,34 @@ export declare const SubsiteSyncDiffComputeRequestSchema: z.ZodObject<{
|
|
|
28
28
|
}, z.core.$strip>;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
export type SubsiteSyncDiffComputeRequest = z.infer<typeof SubsiteSyncDiffComputeRequestSchema>;
|
|
31
|
+
/** 新增页面的整页规模;跨页共享资源分别计数,不表示实际同步消耗。 */
|
|
32
|
+
export declare const SubsitePageEstimateSchema: z.ZodObject<{
|
|
33
|
+
page_path: z.ZodString;
|
|
34
|
+
page_route: z.ZodString;
|
|
35
|
+
page_title: z.ZodNullable<z.ZodString>;
|
|
36
|
+
ai_image_count: z.ZodNumber;
|
|
37
|
+
translation_character_count: z.ZodNumber;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export type SubsitePageEstimate = z.infer<typeof SubsitePageEstimateSchema>;
|
|
40
|
+
export declare const SubsiteDiffEstimateShape: {
|
|
41
|
+
page_count: z.ZodNumber;
|
|
42
|
+
ai_image_count: z.ZodNumber;
|
|
43
|
+
translation_character_count: z.ZodNumber;
|
|
44
|
+
page_estimates: z.ZodArray<z.ZodObject<{
|
|
45
|
+
page_path: z.ZodString;
|
|
46
|
+
page_route: z.ZodString;
|
|
47
|
+
page_title: z.ZodNullable<z.ZodString>;
|
|
48
|
+
ai_image_count: z.ZodNumber;
|
|
49
|
+
translation_character_count: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
};
|
|
52
|
+
export declare function validateSubsiteDiffEstimates(value: {
|
|
53
|
+
pending_pages: string[];
|
|
54
|
+
page_count: number;
|
|
55
|
+
ai_image_count: number;
|
|
56
|
+
translation_character_count: number;
|
|
57
|
+
page_estimates: SubsitePageEstimate[];
|
|
58
|
+
}, ctx: z.RefinementCtx): void;
|
|
31
59
|
/**
|
|
32
60
|
* 响应体。**绝不回带 `object_key`、store 绝对路径或内部堆栈**:调用方(apps/api)
|
|
33
61
|
* 那两个值本来就是自己传进去的,回显它们只会平白多一条把挂载点形状泄漏出去的路。
|
|
@@ -43,6 +71,16 @@ export declare const SubsiteSyncDiffComputeResponseSchema: z.ZodObject<{
|
|
|
43
71
|
child_only_count: z.ZodNumber;
|
|
44
72
|
base_snapshot_id: z.ZodString;
|
|
45
73
|
target_snapshot_id: z.ZodString;
|
|
74
|
+
page_count: z.ZodNumber;
|
|
75
|
+
ai_image_count: z.ZodNumber;
|
|
76
|
+
translation_character_count: z.ZodNumber;
|
|
77
|
+
page_estimates: z.ZodArray<z.ZodObject<{
|
|
78
|
+
page_path: z.ZodString;
|
|
79
|
+
page_route: z.ZodString;
|
|
80
|
+
page_title: z.ZodNullable<z.ZodString>;
|
|
81
|
+
ai_image_count: z.ZodNumber;
|
|
82
|
+
translation_character_count: z.ZodNumber;
|
|
83
|
+
}, z.core.$strip>>;
|
|
46
84
|
}, z.core.$strip>;
|
|
47
85
|
export type SubsiteSyncDiffComputeResponse = z.infer<typeof SubsiteSyncDiffComputeResponseSchema>;
|
|
48
86
|
/**
|
|
@@ -57,6 +95,7 @@ export declare const SubsiteSyncDiffErrorCodeSchema: z.ZodEnum<{
|
|
|
57
95
|
SUBSITE_DIFF_STORE_NOT_CONFIGURED: "SUBSITE_DIFF_STORE_NOT_CONFIGURED";
|
|
58
96
|
SUBSITE_DIFF_MANIFEST_MISSING: "SUBSITE_DIFF_MANIFEST_MISSING";
|
|
59
97
|
SUBSITE_DIFF_MANIFEST_INVALID: "SUBSITE_DIFF_MANIFEST_INVALID";
|
|
98
|
+
SUBSITE_DIFF_ESTIMATE_INVALID: "SUBSITE_DIFF_ESTIMATE_INVALID";
|
|
60
99
|
}>;
|
|
61
100
|
export type SubsiteSyncDiffErrorCode = z.infer<typeof SubsiteSyncDiffErrorCodeSchema>;
|
|
62
101
|
export declare const SubsiteSyncDiffErrorResponseSchema: z.ZodObject<{
|
|
@@ -65,6 +104,7 @@ export declare const SubsiteSyncDiffErrorResponseSchema: z.ZodObject<{
|
|
|
65
104
|
SUBSITE_DIFF_STORE_NOT_CONFIGURED: "SUBSITE_DIFF_STORE_NOT_CONFIGURED";
|
|
66
105
|
SUBSITE_DIFF_MANIFEST_MISSING: "SUBSITE_DIFF_MANIFEST_MISSING";
|
|
67
106
|
SUBSITE_DIFF_MANIFEST_INVALID: "SUBSITE_DIFF_MANIFEST_INVALID";
|
|
107
|
+
SUBSITE_DIFF_ESTIMATE_INVALID: "SUBSITE_DIFF_ESTIMATE_INVALID";
|
|
68
108
|
}>;
|
|
69
109
|
message: z.ZodString;
|
|
70
110
|
side: z.ZodOptional<z.ZodEnum<{
|
|
@@ -202,7 +202,7 @@ export declare const WorkspaceResourceOperationTransientInputSchema: z.ZodObject
|
|
|
202
202
|
}, z.core.$strict>;
|
|
203
203
|
}, z.core.$strip>, z.ZodObject<{
|
|
204
204
|
kind: z.ZodLiteral<"move-node">;
|
|
205
|
-
target: z.ZodUnion<readonly [z.ZodObject<{
|
|
205
|
+
target: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
206
206
|
relation: z.ZodEnum<{
|
|
207
207
|
before: "before";
|
|
208
208
|
after: "after";
|
|
@@ -230,6 +230,13 @@ export declare const WorkspaceResourceOperationTransientInputSchema: z.ZodObject
|
|
|
230
230
|
prepend: "prepend";
|
|
231
231
|
append: "append";
|
|
232
232
|
}>;
|
|
233
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
234
|
+
kind: z.ZodLiteral<"source-sibling">;
|
|
235
|
+
relation: z.ZodEnum<{
|
|
236
|
+
before: "before";
|
|
237
|
+
after: "after";
|
|
238
|
+
}>;
|
|
239
|
+
anchorKey: z.ZodString;
|
|
233
240
|
}, z.core.$strict>]>;
|
|
234
241
|
preserveBindings: z.ZodOptional<z.ZodBoolean>;
|
|
235
242
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -607,7 +614,7 @@ export declare const WorkspaceResourceOperationClientMessageSchema: z.ZodObject<
|
|
|
607
614
|
}, z.core.$strict>;
|
|
608
615
|
}, z.core.$strip>, z.ZodObject<{
|
|
609
616
|
kind: z.ZodLiteral<"move-node">;
|
|
610
|
-
target: z.ZodUnion<readonly [z.ZodObject<{
|
|
617
|
+
target: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
611
618
|
relation: z.ZodEnum<{
|
|
612
619
|
before: "before";
|
|
613
620
|
after: "after";
|
|
@@ -635,6 +642,13 @@ export declare const WorkspaceResourceOperationClientMessageSchema: z.ZodObject<
|
|
|
635
642
|
prepend: "prepend";
|
|
636
643
|
append: "append";
|
|
637
644
|
}>;
|
|
645
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
646
|
+
kind: z.ZodLiteral<"source-sibling">;
|
|
647
|
+
relation: z.ZodEnum<{
|
|
648
|
+
before: "before";
|
|
649
|
+
after: "after";
|
|
650
|
+
}>;
|
|
651
|
+
anchorKey: z.ZodString;
|
|
638
652
|
}, z.core.$strict>]>;
|
|
639
653
|
preserveBindings: z.ZodOptional<z.ZodBoolean>;
|
|
640
654
|
}, z.core.$strip>, z.ZodObject<{
|