@vcp-dev/contracts 0.6.10 → 0.6.11

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.
Files changed (38) hide show
  1. package/dist/api-response.d.ts +11 -0
  2. package/dist/cms-page-directory.d.ts +245 -0
  3. package/dist/cms-site-id.d.ts +4 -0
  4. package/dist/connect-dynamic-collection.d.ts +13 -9
  5. package/dist/connect-form.d.ts +5 -3
  6. package/dist/crawler-task-service.d.ts +352 -0
  7. package/dist/custom-domain.d.ts +36 -2
  8. package/dist/customer-materials.d.ts +196 -0
  9. package/dist/deployment-progress.d.ts +51 -0
  10. package/dist/designer-component-library.d.ts +9 -7
  11. package/dist/designer-page-library.d.ts +36 -40
  12. package/dist/external-site-edit.d.ts +258 -0
  13. package/dist/firecrawl-internal.d.ts +103 -0
  14. package/dist/form-design.d.ts +79 -81
  15. package/dist/google-search-console.d.ts +316 -0
  16. package/dist/index.d.ts +4004 -1136
  17. package/dist/index.js +1 -1
  18. package/dist/input-context-bundle.d.ts +6 -6
  19. package/dist/internal-entity-id.d.ts +2 -0
  20. package/dist/launcher-prompt-templates.d.ts +639 -0
  21. package/dist/media-library.d.ts +164 -0
  22. package/dist/product-search.d.ts +227 -0
  23. package/dist/publish-quality.d.ts +92 -0
  24. package/dist/site-edit-event.d.ts +8 -0
  25. package/dist/site-edit-operation.d.ts +53 -11
  26. package/dist/site-edit-render-document.d.ts +13 -9
  27. package/dist/site-preview.d.ts +50 -0
  28. package/dist/site-workflow.d.ts +1006 -0
  29. package/dist/sitemap-navigation.d.ts +9 -0
  30. package/dist/step2-site-initialization.d.ts +209 -0
  31. package/dist/step3-digital-employee-analysis.d.ts +695 -0
  32. package/dist/step4-diagnosis.d.ts +204 -0
  33. package/dist/step5-strategy.d.ts +2697 -0
  34. package/dist/step6-design.d.ts +672 -0
  35. package/dist/user-facing-copy.d.ts +1 -0
  36. package/dist/workspace-resource-operation.d.ts +17 -9
  37. package/package.json +2 -1
  38. package/dist/publish-plan.d.ts +0 -54
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ export type ApiResponse<T> = {
3
+ code: number;
4
+ data: T;
5
+ message: string;
6
+ };
7
+ export declare const ApiResponseSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodObject<{
8
+ code: z.ZodNumber;
9
+ data: T;
10
+ message: z.ZodString;
11
+ }, z.core.$strip>;
@@ -0,0 +1,245 @@
1
+ import { z } from "zod";
2
+ export declare const HOME_PAGE_URL_PATH = "/";
3
+ export declare const CmsPageTypeSchema: z.ZodEnum<{
4
+ landing_page: "landing_page";
5
+ general_page: "general_page";
6
+ detail_page: "detail_page";
7
+ }>;
8
+ export type CmsPageType = z.infer<typeof CmsPageTypeSchema>;
9
+ export interface CmsPageDirectoryNode {
10
+ readonly cms_page_id: number;
11
+ readonly title: string;
12
+ readonly url_path: string;
13
+ readonly url: string | null;
14
+ readonly page_type: CmsPageType;
15
+ readonly vcp_managed: boolean;
16
+ readonly children: readonly CmsPageDirectoryNode[];
17
+ }
18
+ export declare const CmsPageDirectoryNodeSchema: z.ZodType<CmsPageDirectoryNode>;
19
+ export declare const CmsPageDirectoryGroupSchema: z.ZodObject<{
20
+ group_id: z.ZodString;
21
+ title: z.ZodString;
22
+ pages: z.ZodArray<z.ZodType<CmsPageDirectoryNode, unknown, z.core.$ZodTypeInternals<CmsPageDirectoryNode, unknown>>>;
23
+ }, z.core.$strict>;
24
+ export type CmsPageDirectoryGroup = z.infer<typeof CmsPageDirectoryGroupSchema>;
25
+ export declare const CmsPageDirectorySchema: z.ZodObject<{
26
+ groups: z.ZodArray<z.ZodObject<{
27
+ group_id: z.ZodString;
28
+ title: z.ZodString;
29
+ pages: z.ZodArray<z.ZodType<CmsPageDirectoryNode, unknown, z.core.$ZodTypeInternals<CmsPageDirectoryNode, unknown>>>;
30
+ }, z.core.$strict>>;
31
+ }, z.core.$strict>;
32
+ export type CmsPageDirectory = z.infer<typeof CmsPageDirectorySchema>;
33
+ /** 将 CMS 当前页面目录响应归一化为 VCP 内部目录模型。 */
34
+ export declare function parseCmsPageDirectory(input: unknown): CmsPageDirectory | null;
35
+ export declare const DesignerPageDisabledReasonSchema: z.ZodEnum<{
36
+ missing_url: "missing_url";
37
+ not_vcp_managed: "not_vcp_managed";
38
+ }>;
39
+ export type DesignerPageDisabledReason = z.infer<typeof DesignerPageDisabledReasonSchema>;
40
+ export declare const DesignerPageDeleteBlockReasonSchema: z.ZodEnum<{
41
+ not_vcp_managed: "not_vcp_managed";
42
+ home_page: "home_page";
43
+ not_selectable: "not_selectable";
44
+ page_has_children: "page_has_children";
45
+ last_selectable_page: "last_selectable_page";
46
+ cms_unbound: "cms_unbound";
47
+ }>;
48
+ export type DesignerPageDeleteBlockReason = z.infer<typeof DesignerPageDeleteBlockReasonSchema>;
49
+ export interface DesignerPageNode {
50
+ /** Null for VCP sitemap pages when the site has no CMS binding. */
51
+ readonly cms_page_id: number | null;
52
+ readonly title: string;
53
+ readonly url_path: string;
54
+ readonly url: string | null;
55
+ readonly page_type: CmsPageType;
56
+ readonly vcp_managed: boolean;
57
+ readonly selectable: boolean;
58
+ readonly disabled_reason: DesignerPageDisabledReason | null;
59
+ readonly can_delete: boolean;
60
+ readonly delete_block_reason: DesignerPageDeleteBlockReason | null;
61
+ readonly has_cms_children: boolean;
62
+ readonly children: readonly DesignerPageNode[];
63
+ }
64
+ export declare const DesignerPageNodeSchema: z.ZodType<DesignerPageNode>;
65
+ export declare const DesignerPageGroupSchema: z.ZodObject<{
66
+ group_id: z.ZodString;
67
+ title: z.ZodString;
68
+ pages: z.ZodArray<z.ZodType<DesignerPageNode, unknown, z.core.$ZodTypeInternals<DesignerPageNode, unknown>>>;
69
+ }, z.core.$strict>;
70
+ export type DesignerPageGroup = z.infer<typeof DesignerPageGroupSchema>;
71
+ export declare const DeleteDesignerPageRequestSchema: z.ZodObject<{
72
+ base_snapshot_id: z.ZodUUID;
73
+ expected_url_path: z.ZodString;
74
+ }, z.core.$strict>;
75
+ export type DeleteDesignerPageRequest = z.infer<typeof DeleteDesignerPageRequestSchema>;
76
+ export declare const PageDirectoryReconcileStatusSchema: z.ZodEnum<{
77
+ failed: "failed";
78
+ succeeded: "succeeded";
79
+ }>;
80
+ export declare const PageDirectoryReconcileFailedPageSchema: z.ZodObject<{
81
+ url_path: z.ZodString;
82
+ phase: z.ZodEnum<{
83
+ ensure: "ensure";
84
+ binding: "binding";
85
+ delete: "delete";
86
+ }>;
87
+ code: z.ZodString;
88
+ message: z.ZodString;
89
+ }, z.core.$strict>;
90
+ export declare const PageDirectoryReconcileResultSchema: z.ZodObject<{
91
+ status: z.ZodEnum<{
92
+ failed: "failed";
93
+ succeeded: "succeeded";
94
+ }>;
95
+ checked_count: z.ZodNumber;
96
+ ensured_count: z.ZodNumber;
97
+ deleted_count: z.ZodNumber;
98
+ already_absent_count: z.ZodNumber;
99
+ failed_pages: z.ZodArray<z.ZodObject<{
100
+ url_path: z.ZodString;
101
+ phase: z.ZodEnum<{
102
+ ensure: "ensure";
103
+ binding: "binding";
104
+ delete: "delete";
105
+ }>;
106
+ code: z.ZodString;
107
+ message: z.ZodString;
108
+ }, z.core.$strict>>;
109
+ warnings: z.ZodArray<z.ZodString>;
110
+ }, z.core.$strict>;
111
+ export type PageDirectoryReconcileResult = z.infer<typeof PageDirectoryReconcileResultSchema>;
112
+ export declare const DeleteDesignerPageResultSchema: z.ZodObject<{
113
+ result_snapshot_id: z.ZodUUID;
114
+ deleted_files: z.ZodArray<z.ZodString>;
115
+ updated_files: z.ZodArray<z.ZodString>;
116
+ preserved_shared_files: z.ZodArray<z.ZodString>;
117
+ warnings: z.ZodArray<z.ZodString>;
118
+ next_url: z.ZodNullable<z.ZodURL>;
119
+ previous_url: z.ZodNullable<z.ZodURL>;
120
+ cms_reconcile_result: z.ZodObject<{
121
+ status: z.ZodEnum<{
122
+ failed: "failed";
123
+ succeeded: "succeeded";
124
+ }>;
125
+ checked_count: z.ZodNumber;
126
+ ensured_count: z.ZodNumber;
127
+ deleted_count: z.ZodNumber;
128
+ already_absent_count: z.ZodNumber;
129
+ failed_pages: z.ZodArray<z.ZodObject<{
130
+ url_path: z.ZodString;
131
+ phase: z.ZodEnum<{
132
+ ensure: "ensure";
133
+ binding: "binding";
134
+ delete: "delete";
135
+ }>;
136
+ code: z.ZodString;
137
+ message: z.ZodString;
138
+ }, z.core.$strict>>;
139
+ warnings: z.ZodArray<z.ZodString>;
140
+ }, z.core.$strict>;
141
+ }, z.core.$strict>;
142
+ export type DeleteDesignerPageResult = z.infer<typeof DeleteDesignerPageResultSchema>;
143
+ export declare const DeleteDesignerPageResponseSchema: z.ZodObject<{
144
+ code: z.ZodLiteral<0>;
145
+ message: z.ZodString;
146
+ data: z.ZodObject<{
147
+ result_snapshot_id: z.ZodUUID;
148
+ deleted_files: z.ZodArray<z.ZodString>;
149
+ updated_files: z.ZodArray<z.ZodString>;
150
+ preserved_shared_files: z.ZodArray<z.ZodString>;
151
+ warnings: z.ZodArray<z.ZodString>;
152
+ next_url: z.ZodNullable<z.ZodURL>;
153
+ previous_url: z.ZodNullable<z.ZodURL>;
154
+ cms_reconcile_result: z.ZodObject<{
155
+ status: z.ZodEnum<{
156
+ failed: "failed";
157
+ succeeded: "succeeded";
158
+ }>;
159
+ checked_count: z.ZodNumber;
160
+ ensured_count: z.ZodNumber;
161
+ deleted_count: z.ZodNumber;
162
+ already_absent_count: z.ZodNumber;
163
+ failed_pages: z.ZodArray<z.ZodObject<{
164
+ url_path: z.ZodString;
165
+ phase: z.ZodEnum<{
166
+ ensure: "ensure";
167
+ binding: "binding";
168
+ delete: "delete";
169
+ }>;
170
+ code: z.ZodString;
171
+ message: z.ZodString;
172
+ }, z.core.$strict>>;
173
+ warnings: z.ZodArray<z.ZodString>;
174
+ }, z.core.$strict>;
175
+ }, z.core.$strict>;
176
+ }, z.core.$strict>;
177
+ export type DeleteDesignerPageResponse = z.infer<typeof DeleteDesignerPageResponseSchema>;
178
+ export declare const DeleteDesignerPageErrorDetailsSchema: z.ZodObject<{
179
+ source_committed: z.ZodBoolean;
180
+ result_snapshot_id: z.ZodOptional<z.ZodUUID>;
181
+ cms_reconcile_result: z.ZodOptional<z.ZodObject<{
182
+ status: z.ZodEnum<{
183
+ failed: "failed";
184
+ succeeded: "succeeded";
185
+ }>;
186
+ checked_count: z.ZodNumber;
187
+ ensured_count: z.ZodNumber;
188
+ deleted_count: z.ZodNumber;
189
+ already_absent_count: z.ZodNumber;
190
+ failed_pages: z.ZodArray<z.ZodObject<{
191
+ url_path: z.ZodString;
192
+ phase: z.ZodEnum<{
193
+ ensure: "ensure";
194
+ binding: "binding";
195
+ delete: "delete";
196
+ }>;
197
+ code: z.ZodString;
198
+ message: z.ZodString;
199
+ }, z.core.$strict>>;
200
+ warnings: z.ZodArray<z.ZodString>;
201
+ }, z.core.$strict>>;
202
+ }, z.core.$strict>;
203
+ export type DeleteDesignerPageErrorDetails = z.infer<typeof DeleteDesignerPageErrorDetailsSchema>;
204
+ export declare const PageTargetKindSchema: z.ZodEnum<{
205
+ general_page: "general_page";
206
+ detail_page: "detail_page";
207
+ }>;
208
+ export declare const PageTargetSchema: z.ZodObject<{
209
+ url_path: z.ZodString;
210
+ title: z.ZodString;
211
+ kind: z.ZodEnum<{
212
+ general_page: "general_page";
213
+ detail_page: "detail_page";
214
+ }>;
215
+ route_file: z.ZodString;
216
+ collection_id: z.ZodOptional<z.ZodString>;
217
+ }, z.core.$strict>;
218
+ export type PageTarget = z.infer<typeof PageTargetSchema>;
219
+ export declare const PageTargetSetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
220
+ complete: z.ZodLiteral<true>;
221
+ targets: z.ZodArray<z.ZodObject<{
222
+ url_path: z.ZodString;
223
+ title: z.ZodString;
224
+ kind: z.ZodEnum<{
225
+ general_page: "general_page";
226
+ detail_page: "detail_page";
227
+ }>;
228
+ route_file: z.ZodString;
229
+ collection_id: z.ZodOptional<z.ZodString>;
230
+ }, z.core.$strict>>;
231
+ }, z.core.$strict>, z.ZodObject<{
232
+ complete: z.ZodLiteral<false>;
233
+ targets: z.ZodArray<z.ZodObject<{
234
+ url_path: z.ZodString;
235
+ title: z.ZodString;
236
+ kind: z.ZodEnum<{
237
+ general_page: "general_page";
238
+ detail_page: "detail_page";
239
+ }>;
240
+ route_file: z.ZodString;
241
+ collection_id: z.ZodOptional<z.ZodString>;
242
+ }, z.core.$strict>>;
243
+ errors: z.ZodArray<z.ZodString>;
244
+ }, z.core.$strict>], "complete">;
245
+ export type PageTargetSet = z.infer<typeof PageTargetSetSchema>;
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ /** CMS owns this identifier; VCP only persists and forwards a validated UUID. */
3
+ export declare const CmsSiteIdSchema: z.ZodString;
4
+ export type CmsSiteId = z.infer<typeof CmsSiteIdSchema>;
@@ -8,12 +8,12 @@ export declare const FieldDeclSchema: z.ZodObject<{
8
8
  number: "number";
9
9
  boolean: "boolean";
10
10
  date: "date";
11
+ url: "url";
11
12
  title: "title";
13
+ email: "email";
14
+ datetime: "datetime";
12
15
  text: "text";
13
16
  richtext: "richtext";
14
- datetime: "datetime";
15
- url: "url";
16
- email: "email";
17
17
  color: "color";
18
18
  select: "select";
19
19
  multiselect: "multiselect";
@@ -46,18 +46,22 @@ export declare const ConnectDynamicCollectionInputSchema: z.ZodObject<{
46
46
  route_file_path: z.ZodString;
47
47
  target_component_path: z.ZodString;
48
48
  content_type_hint: z.ZodString;
49
+ collection_purpose: z.ZodOptional<z.ZodEnum<{
50
+ generic: "generic";
51
+ product: "product";
52
+ }>>;
49
53
  required_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
50
54
  name: z.ZodString;
51
55
  type: z.ZodEnum<{
52
56
  number: "number";
53
57
  boolean: "boolean";
54
58
  date: "date";
59
+ url: "url";
55
60
  title: "title";
61
+ email: "email";
62
+ datetime: "datetime";
56
63
  text: "text";
57
64
  richtext: "richtext";
58
- datetime: "datetime";
59
- url: "url";
60
- email: "email";
61
65
  color: "color";
62
66
  select: "select";
63
67
  multiselect: "multiselect";
@@ -81,12 +85,12 @@ export declare const ConnectDynamicCollectionInputSchema: z.ZodObject<{
81
85
  number: "number";
82
86
  boolean: "boolean";
83
87
  date: "date";
88
+ url: "url";
84
89
  title: "title";
90
+ email: "email";
91
+ datetime: "datetime";
85
92
  text: "text";
86
93
  richtext: "richtext";
87
- datetime: "datetime";
88
- url: "url";
89
- email: "email";
90
94
  color: "color";
91
95
  select: "select";
92
96
  multiselect: "multiselect";
@@ -4,7 +4,7 @@ import { z } from "zod";
4
4
  * 词表→CMS 表单字段类型映射在 agent 侧 `cms/forms/field-type-to-form.ts`,
5
5
  * 与 connect-dynamic-collection 的 FIELD_TYPES/field-type-to-cms 同款分层。
6
6
  */
7
- export declare const FORM_FIELD_TYPES: readonly ["text", "textarea", "email", "phone", "select", "radio", "multiselect", "boolean", "date", "number"];
7
+ export declare const FORM_FIELD_TYPES: readonly ["text", "textarea", "email", "phone", "select", "radio", "multiselect", "boolean", "date", "number", "file"];
8
8
  export type FormFieldType = (typeof FORM_FIELD_TYPES)[number];
9
9
  export declare const FormFieldDeclSchema: z.ZodObject<{
10
10
  name: z.ZodString;
@@ -12,8 +12,9 @@ export declare const FormFieldDeclSchema: z.ZodObject<{
12
12
  number: "number";
13
13
  boolean: "boolean";
14
14
  date: "date";
15
- text: "text";
15
+ file: "file";
16
16
  email: "email";
17
+ text: "text";
17
18
  select: "select";
18
19
  multiselect: "multiselect";
19
20
  textarea: "textarea";
@@ -40,8 +41,9 @@ export declare const ConnectFormInputSchema: z.ZodObject<{
40
41
  number: "number";
41
42
  boolean: "boolean";
42
43
  date: "date";
43
- text: "text";
44
+ file: "file";
44
45
  email: "email";
46
+ text: "text";
45
47
  select: "select";
46
48
  multiselect: "multiselect";
47
49
  textarea: "textarea";