@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
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* 行业判定:把用户已冻结的业务表述归到一份行业先验上。
|
|
4
|
+
*
|
|
5
|
+
* 为什么要单独一次调用:`skills/page-generation` 下的行业先验从来没被线上路径读
|
|
6
|
+
* 到过,所有站共用同一份通用先验。判定的输入是自由文本(客户资料的行业与主营
|
|
7
|
+
* 产品、原站流冻结的主营产品与现有市场),对自由文本做关键词匹配是本仓明令禁止
|
|
8
|
+
* 的,所以由服务端模型服务做一次轻量分类。
|
|
9
|
+
*
|
|
10
|
+
* 判定发生在建站开始之前(Sitemap 转发时),此时 Step6 设计推荐那次调用还没发生,
|
|
11
|
+
* 搭不了车,只能独立跑一次。
|
|
12
|
+
*
|
|
13
|
+
* 判错比不判更糟 —— 错误的行业先验会把整站带偏。所以宁可返回空,让下游退回通用
|
|
14
|
+
* 先验,也不给一个没把握的答案。
|
|
15
|
+
*/
|
|
16
|
+
export declare const IndustryClassificationRequestSchema: z.ZodObject<{
|
|
17
|
+
site_id: z.ZodUUID;
|
|
18
|
+
site_language: z.ZodString;
|
|
19
|
+
business_facts: z.ZodArray<z.ZodString>;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
export type IndustryClassificationRequest = z.infer<typeof IndustryClassificationRequestSchema>;
|
|
22
|
+
export declare const IndustryConfidenceSchema: z.ZodEnum<{
|
|
23
|
+
high: "high";
|
|
24
|
+
medium: "medium";
|
|
25
|
+
low: "low";
|
|
26
|
+
}>;
|
|
27
|
+
export type IndustryConfidence = z.infer<typeof IndustryConfidenceSchema>;
|
|
28
|
+
/**
|
|
29
|
+
* 判定结果。`skill_name` 为 null 表示判不出 —— 调用方据此整个不注入,agent 缺省
|
|
30
|
+
* 回到通用先验,行为与判定上线前逐字相同。
|
|
31
|
+
*
|
|
32
|
+
* `confidence` 由模型自报,调用方不能只押这一个信号:`low` 一律当判不出处理。
|
|
33
|
+
*/
|
|
34
|
+
export declare const IndustryClassificationResultSchema: z.ZodObject<{
|
|
35
|
+
skill_name: z.ZodNullable<z.ZodString>;
|
|
36
|
+
confidence: z.ZodEnum<{
|
|
37
|
+
high: "high";
|
|
38
|
+
medium: "medium";
|
|
39
|
+
low: "low";
|
|
40
|
+
}>;
|
|
41
|
+
reason: z.ZodString;
|
|
42
|
+
}, z.core.$strict>;
|
|
43
|
+
export type IndustryClassificationResult = z.infer<typeof IndustryClassificationResultSchema>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const InputSourceTypeSchema: z.ZodEnum<{
|
|
3
|
-
text: "text";
|
|
4
3
|
url: "url";
|
|
4
|
+
text: "text";
|
|
5
5
|
document: "document";
|
|
6
6
|
image: "image";
|
|
7
7
|
}>;
|
|
@@ -19,8 +19,8 @@ export declare const InputBundleStatusSchema: z.ZodEnum<{
|
|
|
19
19
|
}>;
|
|
20
20
|
export type InputBundleStatus = z.infer<typeof InputBundleStatusSchema>;
|
|
21
21
|
export declare const ExtractedFactKindSchema: z.ZodEnum<{
|
|
22
|
-
copy: "copy";
|
|
23
22
|
product: "product";
|
|
23
|
+
copy: "copy";
|
|
24
24
|
price: "price";
|
|
25
25
|
contact: "contact";
|
|
26
26
|
audience: "audience";
|
|
@@ -29,8 +29,8 @@ export declare const ExtractedFactKindSchema: z.ZodEnum<{
|
|
|
29
29
|
export declare const ExtractedFactSchema: z.ZodObject<{
|
|
30
30
|
fact: z.ZodString;
|
|
31
31
|
kind: z.ZodEnum<{
|
|
32
|
-
copy: "copy";
|
|
33
32
|
product: "product";
|
|
33
|
+
copy: "copy";
|
|
34
34
|
price: "price";
|
|
35
35
|
contact: "contact";
|
|
36
36
|
audience: "audience";
|
|
@@ -63,8 +63,8 @@ export type ReferenceSignals = z.infer<typeof ReferenceSignalsSchema>;
|
|
|
63
63
|
export declare const InputSourceSchema: z.ZodObject<{
|
|
64
64
|
source_id: z.ZodUUID;
|
|
65
65
|
type: z.ZodEnum<{
|
|
66
|
-
text: "text";
|
|
67
66
|
url: "url";
|
|
67
|
+
text: "text";
|
|
68
68
|
document: "document";
|
|
69
69
|
image: "image";
|
|
70
70
|
}>;
|
|
@@ -198,8 +198,8 @@ export declare const InputContextBundleSchema: z.ZodObject<{
|
|
|
198
198
|
sources: z.ZodArray<z.ZodObject<{
|
|
199
199
|
source_id: z.ZodUUID;
|
|
200
200
|
type: z.ZodEnum<{
|
|
201
|
-
text: "text";
|
|
202
201
|
url: "url";
|
|
202
|
+
text: "text";
|
|
203
203
|
document: "document";
|
|
204
204
|
image: "image";
|
|
205
205
|
}>;
|
|
@@ -217,8 +217,8 @@ export declare const InputContextBundleSchema: z.ZodObject<{
|
|
|
217
217
|
facts: z.ZodArray<z.ZodObject<{
|
|
218
218
|
fact: z.ZodString;
|
|
219
219
|
kind: z.ZodEnum<{
|
|
220
|
-
copy: "copy";
|
|
221
220
|
product: "product";
|
|
221
|
+
copy: "copy";
|
|
222
222
|
price: "price";
|
|
223
223
|
contact: "contact";
|
|
224
224
|
audience: "audience";
|
|
@@ -250,3 +250,13 @@ export declare const InputContextBundleSchema: z.ZodObject<{
|
|
|
250
250
|
}, z.core.$strip>>;
|
|
251
251
|
}, z.core.$strip>;
|
|
252
252
|
export type InputContextBundle = z.infer<typeof InputContextBundleSchema>;
|
|
253
|
+
/**
|
|
254
|
+
* 整站视觉参考图:用户自己传的 reference 轨图片优先,其次是参考站扫描截图。
|
|
255
|
+
*
|
|
256
|
+
* 两个消费方必须选出同一张:`apps/api` 的 Step6 推荐把它算进 `input_digest`
|
|
257
|
+
* 并转发 source_id,`apps/agent` 按 source_id 回读字节送多模态。选择规则一旦
|
|
258
|
+
* 分叉,就会出现「API 说图 A、agent 读图 B」的静默错配,所以规则只留这一份。
|
|
259
|
+
*/
|
|
260
|
+
export declare function selectReferenceVisualImage(bundle: Pick<InputContextBundle, "sources" | "reference">): {
|
|
261
|
+
source_id: string;
|
|
262
|
+
} | null;
|
|
@@ -26,6 +26,9 @@ export declare const SandboxSessionIdSchema: z.ZodUUID;
|
|
|
26
26
|
export declare const DeploymentIdSchema: z.ZodUUID;
|
|
27
27
|
export declare const DeploymentJobIdSchema: z.ZodUUID;
|
|
28
28
|
export declare const SiteOperationLockIdSchema: z.ZodUUID;
|
|
29
|
+
export declare const SitePublishWorkflowIdSchema: z.ZodUUID;
|
|
30
|
+
export declare const SiteWorkflowIdSchema: z.ZodUUID;
|
|
31
|
+
export declare const SiteWorkflowTaskRefIdSchema: z.ZodUUID;
|
|
29
32
|
export declare const FormDesignOperationRecordIdSchema: z.ZodUUID;
|
|
30
33
|
export declare const SiteTemplateUpgradeStateIdSchema: z.ZodUUID;
|
|
31
34
|
export declare const UsageRecordIdSchema: z.ZodUUID;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* 企业知识库的资料分类。写入侧(`apps/api` 的知识库上传/改分类)与检索侧
|
|
4
|
+
* (`apps/agent` 的 `query_knowledge_base`)共用同一份枚举:上游对非法分类
|
|
5
|
+
* 是 200 + 空召回的静默行为,两侧必须锚定同一份合法值才能把"分类拼错"和
|
|
6
|
+
* "这家企业没这类资料"区分开。
|
|
7
|
+
*
|
|
8
|
+
* 顺序即上游与既有 UI 的展示顺序,不要随意调整。
|
|
9
|
+
*/
|
|
10
|
+
export declare const KNOWLEDGE_CATEGORY_CODES: readonly ["company_profile", "product_manual", "product_list", "customer_case", "product_help", "qualification", "industry_material"];
|
|
11
|
+
export declare const KnowledgeCategoryCodeSchema: z.ZodEnum<{
|
|
12
|
+
company_profile: "company_profile";
|
|
13
|
+
product_manual: "product_manual";
|
|
14
|
+
product_list: "product_list";
|
|
15
|
+
customer_case: "customer_case";
|
|
16
|
+
product_help: "product_help";
|
|
17
|
+
qualification: "qualification";
|
|
18
|
+
industry_material: "industry_material";
|
|
19
|
+
}>;
|
|
20
|
+
export type KnowledgeCategoryCode = z.infer<typeof KnowledgeCategoryCodeSchema>;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const KnowledgeSourceReadinessStatusSchema: z.ZodEnum<{
|
|
3
|
+
ready: "ready";
|
|
4
|
+
failed: "failed";
|
|
5
|
+
pending: "pending";
|
|
6
|
+
running: "running";
|
|
7
|
+
missing: "missing";
|
|
8
|
+
}>;
|
|
9
|
+
export declare const KnowledgeTaskStatusSchema: z.ZodObject<{
|
|
10
|
+
task_id: z.ZodString;
|
|
11
|
+
status: z.ZodEnum<{
|
|
12
|
+
ready: "ready";
|
|
13
|
+
failed: "failed";
|
|
14
|
+
pending: "pending";
|
|
15
|
+
running: "running";
|
|
16
|
+
missing: "missing";
|
|
17
|
+
}>;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
/** Server-only normalized task results. Do not expose this to browsers. */
|
|
20
|
+
export declare const KnowledgeTaskStatusBatchSchema: z.ZodObject<{
|
|
21
|
+
items: z.ZodArray<z.ZodObject<{
|
|
22
|
+
task_id: z.ZodString;
|
|
23
|
+
status: z.ZodEnum<{
|
|
24
|
+
ready: "ready";
|
|
25
|
+
failed: "failed";
|
|
26
|
+
pending: "pending";
|
|
27
|
+
running: "running";
|
|
28
|
+
missing: "missing";
|
|
29
|
+
}>;
|
|
30
|
+
}, z.core.$strict>>;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
export declare const Step2KnowledgeOpaqueIdSchema: z.ZodString;
|
|
33
|
+
export declare const Step2KnowledgeScopeSchema: z.ZodObject<{
|
|
34
|
+
knowledge_site_id: z.ZodString;
|
|
35
|
+
source_ids: z.ZodArray<z.ZodString>;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
export declare const KnowledgeSourceReadinessSchema: z.ZodObject<{
|
|
38
|
+
source_file_id: z.ZodString;
|
|
39
|
+
category_code: z.ZodNullable<z.ZodEnum<{
|
|
40
|
+
company_profile: "company_profile";
|
|
41
|
+
product_manual: "product_manual";
|
|
42
|
+
product_list: "product_list";
|
|
43
|
+
customer_case: "customer_case";
|
|
44
|
+
product_help: "product_help";
|
|
45
|
+
qualification: "qualification";
|
|
46
|
+
industry_material: "industry_material";
|
|
47
|
+
}>>;
|
|
48
|
+
category_confirmed: z.ZodBoolean;
|
|
49
|
+
status: z.ZodEnum<{
|
|
50
|
+
ready: "ready";
|
|
51
|
+
failed: "failed";
|
|
52
|
+
pending: "pending";
|
|
53
|
+
running: "running";
|
|
54
|
+
missing: "missing";
|
|
55
|
+
}>;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
export declare const KnowledgeContextReadinessSchema: z.ZodObject<{
|
|
58
|
+
ready: z.ZodBoolean;
|
|
59
|
+
files: z.ZodArray<z.ZodObject<{
|
|
60
|
+
source_file_id: z.ZodString;
|
|
61
|
+
category_code: z.ZodNullable<z.ZodEnum<{
|
|
62
|
+
company_profile: "company_profile";
|
|
63
|
+
product_manual: "product_manual";
|
|
64
|
+
product_list: "product_list";
|
|
65
|
+
customer_case: "customer_case";
|
|
66
|
+
product_help: "product_help";
|
|
67
|
+
qualification: "qualification";
|
|
68
|
+
industry_material: "industry_material";
|
|
69
|
+
}>>;
|
|
70
|
+
category_confirmed: z.ZodBoolean;
|
|
71
|
+
status: z.ZodEnum<{
|
|
72
|
+
ready: "ready";
|
|
73
|
+
failed: "failed";
|
|
74
|
+
pending: "pending";
|
|
75
|
+
running: "running";
|
|
76
|
+
missing: "missing";
|
|
77
|
+
}>;
|
|
78
|
+
}, z.core.$strict>>;
|
|
79
|
+
counts: z.ZodObject<{
|
|
80
|
+
total: z.ZodNumber;
|
|
81
|
+
pending: z.ZodNumber;
|
|
82
|
+
running: z.ZodNumber;
|
|
83
|
+
ready: z.ZodNumber;
|
|
84
|
+
failed: z.ZodNumber;
|
|
85
|
+
missing: z.ZodNumber;
|
|
86
|
+
unclassified: z.ZodNumber;
|
|
87
|
+
}, z.core.$strict>;
|
|
88
|
+
}, z.core.$strict>;
|
|
89
|
+
export type KnowledgeSourceReadinessStatus = z.infer<typeof KnowledgeSourceReadinessStatusSchema>;
|
|
90
|
+
export type KnowledgeTaskStatus = z.infer<typeof KnowledgeTaskStatusSchema>;
|
|
91
|
+
export type KnowledgeTaskStatusBatch = z.infer<typeof KnowledgeTaskStatusBatchSchema>;
|
|
92
|
+
export type Step2KnowledgeScope = z.infer<typeof Step2KnowledgeScopeSchema>;
|
|
93
|
+
export type KnowledgeSourceReadiness = z.infer<typeof KnowledgeSourceReadinessSchema>;
|
|
94
|
+
export type KnowledgeContextReadiness = z.infer<typeof KnowledgeContextReadinessSchema>;
|