@vcp-dev/contracts 0.10.24 → 0.10.26

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.
@@ -1,20 +1,17 @@
1
1
  import { z } from "zod";
2
2
  /**
3
- * 企业知识库的资料分类。写入侧(`apps/api` 的知识库上传/改分类)与检索侧
4
- * (`apps/agent` 的 `query_knowledge_base`)共用同一份枚举:上游对非法分类
5
- * 是 200 + 空召回的静默行为,两侧必须锚定同一份合法值才能把"分类拼错"和
6
- * "这家企业没这类资料"区分开。
3
+ * 企业知识库上传时使用的七个预置分类。查询覆盖全部分类,不接受分类参数。
7
4
  *
8
5
  * 顺序即上游与既有 UI 的展示顺序,不要随意调整。
9
6
  */
10
- export declare const KNOWLEDGE_CATEGORY_CODES: readonly ["company_profile", "product_manual", "product_list", "customer_case", "product_help", "qualification", "industry_material"];
7
+ export declare const KNOWLEDGE_CATEGORY_CODES: readonly ["brand", "fact", "cert", "case", "svc", "faq", "voice"];
11
8
  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";
9
+ brand: "brand";
10
+ fact: "fact";
11
+ cert: "cert";
12
+ case: "case";
13
+ svc: "svc";
14
+ faq: "faq";
15
+ voice: "voice";
19
16
  }>;
20
17
  export type KnowledgeCategoryCode = z.infer<typeof KnowledgeCategoryCodeSchema>;
@@ -6,29 +6,6 @@ export declare const KnowledgeSourceReadinessStatusSchema: z.ZodEnum<{
6
6
  running: "running";
7
7
  missing: "missing";
8
8
  }>;
9
- export declare const KnowledgeTaskStatusSchema: z.ZodObject<{
10
- task_id: z.ZodString;
11
- status: z.ZodEnum<{
12
- failed: "failed";
13
- ready: "ready";
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
- failed: "failed";
25
- ready: "ready";
26
- pending: "pending";
27
- running: "running";
28
- missing: "missing";
29
- }>;
30
- }, z.core.$strict>>;
31
- }, z.core.$strict>;
32
9
  export declare const Step2KnowledgeOpaqueIdSchema: z.ZodString;
33
10
  export declare const Step2KnowledgeScopeSchema: z.ZodObject<{
34
11
  knowledge_site_id: z.ZodString;
@@ -37,13 +14,13 @@ export declare const Step2KnowledgeScopeSchema: z.ZodObject<{
37
14
  export declare const KnowledgeSourceReadinessSchema: z.ZodObject<{
38
15
  source_file_id: z.ZodString;
39
16
  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";
17
+ brand: "brand";
18
+ fact: "fact";
19
+ cert: "cert";
20
+ case: "case";
21
+ svc: "svc";
22
+ faq: "faq";
23
+ voice: "voice";
47
24
  }>>;
48
25
  category_confirmed: z.ZodBoolean;
49
26
  status: z.ZodEnum<{
@@ -59,13 +36,13 @@ export declare const KnowledgeContextReadinessSchema: z.ZodObject<{
59
36
  files: z.ZodArray<z.ZodObject<{
60
37
  source_file_id: z.ZodString;
61
38
  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";
39
+ brand: "brand";
40
+ fact: "fact";
41
+ cert: "cert";
42
+ case: "case";
43
+ svc: "svc";
44
+ faq: "faq";
45
+ voice: "voice";
69
46
  }>>;
70
47
  category_confirmed: z.ZodBoolean;
71
48
  status: z.ZodEnum<{
@@ -87,8 +64,6 @@ export declare const KnowledgeContextReadinessSchema: z.ZodObject<{
87
64
  }, z.core.$strict>;
88
65
  }, z.core.$strict>;
89
66
  export type KnowledgeSourceReadinessStatus = z.infer<typeof KnowledgeSourceReadinessStatusSchema>;
90
- export type KnowledgeTaskStatus = z.infer<typeof KnowledgeTaskStatusSchema>;
91
- export type KnowledgeTaskStatusBatch = z.infer<typeof KnowledgeTaskStatusBatchSchema>;
92
67
  export type Step2KnowledgeScope = z.infer<typeof Step2KnowledgeScopeSchema>;
93
68
  export type KnowledgeSourceReadiness = z.infer<typeof KnowledgeSourceReadinessSchema>;
94
69
  export type KnowledgeContextReadiness = z.infer<typeof KnowledgeContextReadinessSchema>;
@@ -277,8 +277,7 @@ export declare const LauncherPromptTemplateApplyRequestSchema: z.ZodObject<{
277
277
  seoKeywords: z.ZodOptional<z.ZodArray<z.ZodObject<{
278
278
  id: z.ZodString;
279
279
  keyword: z.ZodString;
280
- business_id: z.ZodString;
281
- business_name: z.ZodString;
280
+ business_ids: z.ZodArray<z.ZodString>;
282
281
  category: z.ZodEnum<{
283
282
  产品: "产品";
284
283
  "\u90E8\u4EF6/\u8017\u6750": "部件/耗材";
@@ -288,19 +287,8 @@ export declare const LauncherPromptTemplateApplyRequestSchema: z.ZodObject<{
288
287
  "\u8D44\u8D28/\u80FD\u529B": "资质/能力";
289
288
  }>;
290
289
  selling_points: z.ZodString;
291
- section_id: z.ZodString;
292
- content_usage: z.ZodEnum<{
293
- product: "product";
294
- category: "category";
295
- solution: "solution";
296
- service: "service";
297
- capability: "capability";
298
- article: "article";
299
- faq: "faq";
300
- }>;
301
290
  intent: z.ZodString;
302
291
  semantic_group: z.ZodString;
303
- primary_business: z.ZodBoolean;
304
292
  monthly_volume: z.ZodNumber;
305
293
  keyword_difficulty: z.ZodNullable<z.ZodNumber>;
306
294
  variants: z.ZodArray<z.ZodString>;
@@ -469,8 +457,7 @@ export declare const LauncherPromptTemplateApplyResponseSchema: z.ZodObject<{
469
457
  seoKeywords: z.ZodOptional<z.ZodArray<z.ZodObject<{
470
458
  id: z.ZodString;
471
459
  keyword: z.ZodString;
472
- business_id: z.ZodString;
473
- business_name: z.ZodString;
460
+ business_ids: z.ZodArray<z.ZodString>;
474
461
  category: z.ZodEnum<{
475
462
  产品: "产品";
476
463
  "\u90E8\u4EF6/\u8017\u6750": "部件/耗材";
@@ -480,19 +467,8 @@ export declare const LauncherPromptTemplateApplyResponseSchema: z.ZodObject<{
480
467
  "\u8D44\u8D28/\u80FD\u529B": "资质/能力";
481
468
  }>;
482
469
  selling_points: z.ZodString;
483
- section_id: z.ZodString;
484
- content_usage: z.ZodEnum<{
485
- product: "product";
486
- category: "category";
487
- solution: "solution";
488
- service: "service";
489
- capability: "capability";
490
- article: "article";
491
- faq: "faq";
492
- }>;
493
470
  intent: z.ZodString;
494
471
  semantic_group: z.ZodString;
495
- primary_business: z.ZodBoolean;
496
472
  monthly_volume: z.ZodNumber;
497
473
  keyword_difficulty: z.ZodNullable<z.ZodNumber>;
498
474
  variants: z.ZodArray<z.ZodString>;
@@ -11,6 +11,26 @@ export declare const ProductSearchValueShapeSchema: z.ZodEnum<{
11
11
  category_list: "category_list";
12
12
  }>;
13
13
  export declare const ProductSearchRouteIdSchema: z.ZodString;
14
+ export declare const ProductSearchPrepareFailureReasonSchema: z.ZodEnum<{
15
+ base_snapshot_missing: "base_snapshot_missing";
16
+ route_not_found: "route_not_found";
17
+ cms_unavailable: "cms_unavailable";
18
+ product_application_not_found: "product_application_not_found";
19
+ not_a_configuration_change: "not_a_configuration_change";
20
+ tool_execution_failed: "tool_execution_failed";
21
+ }>;
22
+ export declare const ProductSearchPrepareFailureSchema: z.ZodObject<{
23
+ status: z.ZodLiteral<"failed">;
24
+ reason: z.ZodEnum<{
25
+ base_snapshot_missing: "base_snapshot_missing";
26
+ route_not_found: "route_not_found";
27
+ cms_unavailable: "cms_unavailable";
28
+ product_application_not_found: "product_application_not_found";
29
+ not_a_configuration_change: "not_a_configuration_change";
30
+ tool_execution_failed: "tool_execution_failed";
31
+ }>;
32
+ }, z.core.$strict>;
33
+ export type ProductSearchPrepareFailure = z.infer<typeof ProductSearchPrepareFailureSchema>;
14
34
  export declare const ProductSearchFilterMetaSchema: z.ZodObject<{
15
35
  minimum: z.ZodNumber;
16
36
  maximum: z.ZodNumber;
@@ -38,6 +38,7 @@ export declare const SiteEditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
38
38
  "replace-node": "replace-node";
39
39
  "move-node": "move-node";
40
40
  "set-class-name-source": "set-class-name-source";
41
+ "set-link-target": "set-link-target";
41
42
  "apply-style-draft": "apply-style-draft";
42
43
  "source-edit": "source-edit";
43
44
  "insert-page-resource": "insert-page-resource";
@@ -45,5 +45,6 @@ export declare const SiteEditMaterializationSchema: z.ZodObject<{
45
45
  }, z.core.$strict>]>;
46
46
  }, z.core.$strict>;
47
47
  dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
48
+ projectDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
48
49
  }, z.core.$strict>;
49
50
  export type SiteEditMaterialization = z.infer<typeof SiteEditMaterializationSchema>;
@@ -9,6 +9,7 @@ export declare const SiteEditOperationTypeSchema: z.ZodEnum<{
9
9
  "replace-node": "replace-node";
10
10
  "move-node": "move-node";
11
11
  "set-class-name-source": "set-class-name-source";
12
+ "set-link-target": "set-link-target";
12
13
  "apply-style-draft": "apply-style-draft";
13
14
  "source-edit": "source-edit";
14
15
  "insert-page-resource": "insert-page-resource";
@@ -280,6 +281,7 @@ export declare const SiteEditMaterializedComponentNodeSpecSchema: z.ZodObject<{
280
281
  }, z.core.$strict>]>;
281
282
  }, z.core.$strict>;
282
283
  dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
284
+ projectDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
283
285
  }, z.core.$strict>;
284
286
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
285
287
  }, z.core.$strict>;
@@ -316,6 +318,7 @@ export declare const SiteEditInsertNodeSpecSchema: z.ZodUnion<readonly [z.ZodObj
316
318
  }, z.core.$strict>]>;
317
319
  }, z.core.$strict>;
318
320
  dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
321
+ projectDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
319
322
  }, z.core.$strict>;
320
323
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
321
324
  }, z.core.$strict>]>;
@@ -365,6 +368,7 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
365
368
  }, z.core.$strict>]>;
366
369
  }, z.core.$strict>;
367
370
  dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
371
+ projectDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
368
372
  }, z.core.$strict>;
369
373
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
370
374
  }, z.core.$strict>]>;
@@ -427,6 +431,7 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
427
431
  }, z.core.$strict>]>;
428
432
  }, z.core.$strict>;
429
433
  dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
434
+ projectDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
430
435
  }, z.core.$strict>;
431
436
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
432
437
  }, z.core.$strict>;
@@ -512,6 +517,26 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
512
517
  operation: z.ZodLiteral<"remove">;
513
518
  name: z.ZodString;
514
519
  }, z.core.$strict>], "operation">>;
520
+ }, z.core.$strict>, z.ZodObject<{
521
+ kind: z.ZodLiteral<"set-link-target">;
522
+ scope: z.ZodLiteral<"selection">;
523
+ link: z.ZodDiscriminatedUnion<[z.ZodObject<{
524
+ kind: z.ZodLiteral<"none">;
525
+ }, z.core.$strict>, z.ZodObject<{
526
+ kind: z.ZodLiteral<"internal-route">;
527
+ href: z.ZodString;
528
+ }, z.core.$strict>, z.ZodObject<{
529
+ kind: z.ZodLiteral<"native-link">;
530
+ href: z.ZodString;
531
+ }, z.core.$strict>], "kind">;
532
+ changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
533
+ operation: z.ZodLiteral<"set">;
534
+ name: z.ZodString;
535
+ value: z.ZodType<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown, z.core.$ZodTypeInternals<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown>>;
536
+ }, z.core.$strict>, z.ZodObject<{
537
+ operation: z.ZodLiteral<"remove">;
538
+ name: z.ZodString;
539
+ }, z.core.$strict>], "operation">>;
515
540
  }, z.core.$strict>, z.ZodObject<{
516
541
  kind: z.ZodLiteral<"apply-style-draft">;
517
542
  className: z.ZodOptional<z.ZodObject<{
@@ -601,6 +626,7 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
601
626
  }, z.core.$strict>]>;
602
627
  }, z.core.$strict>;
603
628
  dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
629
+ projectDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
604
630
  }, z.core.$strict>;
605
631
  }, z.core.$strict>>;
606
632
  pages: z.ZodArray<z.ZodObject<{
@@ -624,6 +650,7 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
624
650
  }, z.core.$strict>]>;
625
651
  }, z.core.$strict>;
626
652
  dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
653
+ projectDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
627
654
  }, z.core.$strict>;
628
655
  components: z.ZodArray<z.ZodObject<{
629
656
  instance_id: z.ZodString;
@@ -637,6 +664,9 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
637
664
  expectedUrlPath: z.ZodString;
638
665
  }, z.core.$strict>], "kind">;
639
666
  export type SiteEditOperationParams = z.infer<typeof SiteEditOperationParamsSchema>;
667
+ export type SiteEditSetLinkTargetParams = Extract<SiteEditOperationParams, {
668
+ kind: "set-link-target";
669
+ }>;
640
670
  export declare const SiteEditOperationErrorCodeSchema: z.ZodEnum<{
641
671
  VERSION_STALE: "VERSION_STALE";
642
672
  RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
@@ -730,6 +760,7 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
730
760
  "replace-node": "replace-node";
731
761
  "move-node": "move-node";
732
762
  "set-class-name-source": "set-class-name-source";
763
+ "set-link-target": "set-link-target";
733
764
  "apply-style-draft": "apply-style-draft";
734
765
  "source-edit": "source-edit";
735
766
  "insert-page-resource": "insert-page-resource";
@@ -817,6 +848,7 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
817
848
  }, z.core.$strict>]>;
818
849
  }, z.core.$strict>;
819
850
  dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
851
+ projectDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
820
852
  }, z.core.$strict>;
821
853
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
822
854
  }, z.core.$strict>]>;
@@ -879,6 +911,7 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
879
911
  }, z.core.$strict>]>;
880
912
  }, z.core.$strict>;
881
913
  dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
914
+ projectDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
882
915
  }, z.core.$strict>;
883
916
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
884
917
  }, z.core.$strict>;
@@ -964,6 +997,26 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
964
997
  operation: z.ZodLiteral<"remove">;
965
998
  name: z.ZodString;
966
999
  }, z.core.$strict>], "operation">>;
1000
+ }, z.core.$strict>, z.ZodObject<{
1001
+ kind: z.ZodLiteral<"set-link-target">;
1002
+ scope: z.ZodLiteral<"selection">;
1003
+ link: z.ZodDiscriminatedUnion<[z.ZodObject<{
1004
+ kind: z.ZodLiteral<"none">;
1005
+ }, z.core.$strict>, z.ZodObject<{
1006
+ kind: z.ZodLiteral<"internal-route">;
1007
+ href: z.ZodString;
1008
+ }, z.core.$strict>, z.ZodObject<{
1009
+ kind: z.ZodLiteral<"native-link">;
1010
+ href: z.ZodString;
1011
+ }, z.core.$strict>], "kind">;
1012
+ changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1013
+ operation: z.ZodLiteral<"set">;
1014
+ name: z.ZodString;
1015
+ value: z.ZodType<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown, z.core.$ZodTypeInternals<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown>>;
1016
+ }, z.core.$strict>, z.ZodObject<{
1017
+ operation: z.ZodLiteral<"remove">;
1018
+ name: z.ZodString;
1019
+ }, z.core.$strict>], "operation">>;
967
1020
  }, z.core.$strict>, z.ZodObject<{
968
1021
  kind: z.ZodLiteral<"apply-style-draft">;
969
1022
  className: z.ZodOptional<z.ZodObject<{
@@ -1053,6 +1106,7 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
1053
1106
  }, z.core.$strict>]>;
1054
1107
  }, z.core.$strict>;
1055
1108
  dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
1109
+ projectDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1056
1110
  }, z.core.$strict>;
1057
1111
  }, z.core.$strict>>;
1058
1112
  pages: z.ZodArray<z.ZodObject<{
@@ -1076,6 +1130,7 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
1076
1130
  }, z.core.$strict>]>;
1077
1131
  }, z.core.$strict>;
1078
1132
  dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
1133
+ projectDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1079
1134
  }, z.core.$strict>;
1080
1135
  components: z.ZodArray<z.ZodObject<{
1081
1136
  instance_id: z.ZodString;
@@ -1112,6 +1167,7 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
1112
1167
  "replace-node": "replace-node";
1113
1168
  "move-node": "move-node";
1114
1169
  "set-class-name-source": "set-class-name-source";
1170
+ "set-link-target": "set-link-target";
1115
1171
  "apply-style-draft": "apply-style-draft";
1116
1172
  "source-edit": "source-edit";
1117
1173
  "insert-page-resource": "insert-page-resource";
@@ -1199,6 +1255,7 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
1199
1255
  }, z.core.$strict>]>;
1200
1256
  }, z.core.$strict>;
1201
1257
  dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
1258
+ projectDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1202
1259
  }, z.core.$strict>;
1203
1260
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
1204
1261
  }, z.core.$strict>]>;
@@ -1261,6 +1318,7 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
1261
1318
  }, z.core.$strict>]>;
1262
1319
  }, z.core.$strict>;
1263
1320
  dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
1321
+ projectDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1264
1322
  }, z.core.$strict>;
1265
1323
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
1266
1324
  }, z.core.$strict>;
@@ -1346,6 +1404,26 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
1346
1404
  operation: z.ZodLiteral<"remove">;
1347
1405
  name: z.ZodString;
1348
1406
  }, z.core.$strict>], "operation">>;
1407
+ }, z.core.$strict>, z.ZodObject<{
1408
+ kind: z.ZodLiteral<"set-link-target">;
1409
+ scope: z.ZodLiteral<"selection">;
1410
+ link: z.ZodDiscriminatedUnion<[z.ZodObject<{
1411
+ kind: z.ZodLiteral<"none">;
1412
+ }, z.core.$strict>, z.ZodObject<{
1413
+ kind: z.ZodLiteral<"internal-route">;
1414
+ href: z.ZodString;
1415
+ }, z.core.$strict>, z.ZodObject<{
1416
+ kind: z.ZodLiteral<"native-link">;
1417
+ href: z.ZodString;
1418
+ }, z.core.$strict>], "kind">;
1419
+ changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1420
+ operation: z.ZodLiteral<"set">;
1421
+ name: z.ZodString;
1422
+ value: z.ZodType<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown, z.core.$ZodTypeInternals<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown>>;
1423
+ }, z.core.$strict>, z.ZodObject<{
1424
+ operation: z.ZodLiteral<"remove">;
1425
+ name: z.ZodString;
1426
+ }, z.core.$strict>], "operation">>;
1349
1427
  }, z.core.$strict>, z.ZodObject<{
1350
1428
  kind: z.ZodLiteral<"apply-style-draft">;
1351
1429
  className: z.ZodOptional<z.ZodObject<{
@@ -1435,6 +1513,7 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
1435
1513
  }, z.core.$strict>]>;
1436
1514
  }, z.core.$strict>;
1437
1515
  dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
1516
+ projectDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1438
1517
  }, z.core.$strict>;
1439
1518
  }, z.core.$strict>>;
1440
1519
  pages: z.ZodArray<z.ZodObject<{
@@ -1458,6 +1537,7 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
1458
1537
  }, z.core.$strict>]>;
1459
1538
  }, z.core.$strict>;
1460
1539
  dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
1540
+ projectDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1461
1541
  }, z.core.$strict>;
1462
1542
  components: z.ZodArray<z.ZodObject<{
1463
1543
  instance_id: z.ZodString;
@@ -1519,6 +1599,7 @@ export declare const SiteEditOperationPayloadSchema: z.ZodObject<{
1519
1599
  "replace-node": "replace-node";
1520
1600
  "move-node": "move-node";
1521
1601
  "set-class-name-source": "set-class-name-source";
1602
+ "set-link-target": "set-link-target";
1522
1603
  "apply-style-draft": "apply-style-draft";
1523
1604
  "source-edit": "source-edit";
1524
1605
  "insert-page-resource": "insert-page-resource";
@@ -1595,6 +1676,7 @@ export declare const SiteEditOperationCommandResultSchema: z.ZodDiscriminatedUni
1595
1676
  "replace-node": "replace-node";
1596
1677
  "move-node": "move-node";
1597
1678
  "set-class-name-source": "set-class-name-source";
1679
+ "set-link-target": "set-link-target";
1598
1680
  "apply-style-draft": "apply-style-draft";
1599
1681
  "source-edit": "source-edit";
1600
1682
  "insert-page-resource": "insert-page-resource";
@@ -617,6 +617,7 @@ export declare const SiteEditStyleModelSchema: z.ZodUnion<readonly [z.ZodRecord<
617
617
  "replace-node": "replace-node";
618
618
  "move-node": "move-node";
619
619
  "set-class-name-source": "set-class-name-source";
620
+ "set-link-target": "set-link-target";
620
621
  "apply-style-draft": "apply-style-draft";
621
622
  "source-edit": "source-edit";
622
623
  "insert-page-resource": "insert-page-resource";
@@ -644,6 +645,7 @@ export declare const SiteEditStyleSourceSchema: z.ZodObject<{
644
645
  "replace-node": "replace-node";
645
646
  "move-node": "move-node";
646
647
  "set-class-name-source": "set-class-name-source";
648
+ "set-link-target": "set-link-target";
647
649
  "apply-style-draft": "apply-style-draft";
648
650
  "source-edit": "source-edit";
649
651
  "insert-page-resource": "insert-page-resource";
@@ -885,6 +887,7 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
885
887
  "replace-node": "replace-node";
886
888
  "move-node": "move-node";
887
889
  "set-class-name-source": "set-class-name-source";
890
+ "set-link-target": "set-link-target";
888
891
  "apply-style-draft": "apply-style-draft";
889
892
  "source-edit": "source-edit";
890
893
  "insert-page-resource": "insert-page-resource";
@@ -1156,6 +1159,11 @@ export declare const SiteEditObjectEditContextSchema: z.ZodObject<{
1156
1159
  }, z.core.$strict>;
1157
1160
  key: z.ZodString;
1158
1161
  tag: z.ZodString;
1162
+ linkSourceKind: z.ZodOptional<z.ZodEnum<{
1163
+ unsupported: "unsupported";
1164
+ "native-anchor": "native-anchor";
1165
+ "next-link": "next-link";
1166
+ }>>;
1159
1167
  label: z.ZodString;
1160
1168
  sourceLocator: z.ZodOptional<z.ZodObject<{
1161
1169
  sourceFile: z.ZodString;
@@ -1434,6 +1442,7 @@ export declare const SiteEditObjectStyleDetailSchema: z.ZodObject<{
1434
1442
  "replace-node": "replace-node";
1435
1443
  "move-node": "move-node";
1436
1444
  "set-class-name-source": "set-class-name-source";
1445
+ "set-link-target": "set-link-target";
1437
1446
  "apply-style-draft": "apply-style-draft";
1438
1447
  "source-edit": "source-edit";
1439
1448
  "insert-page-resource": "insert-page-resource";
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * 由 release-edit-engine-packages.ts 在 bump 版本时自动更新。
7
7
  */
8
- export declare const CURRENT_EDIT_ENGINE_VERSION = "0.10.24";
8
+ export declare const CURRENT_EDIT_ENGINE_VERSION = "0.10.26";
9
9
  export declare const EDIT_ENGINE_VERSION_HEADER = "x-vcp-edit-engine-version";
10
10
  export declare const EDIT_ENGINE_VERSION_SOURCE_HEADER = "x-vcp-edit-engine-version-source";
11
11
  export type EditEngineVersionSource = "explicit" | "fallback_current" | "system_current";
@@ -748,6 +748,7 @@ export declare const SitePublishWorkflowQualityDataSchema: z.ZodObject<{
748
748
  }, z.core.$strict>>;
749
749
  }, z.core.$strict>]>;
750
750
  }, z.core.$strict>>;
751
+ safety_gate_enabled: z.ZodOptional<z.ZodBoolean>;
751
752
  repair_result: z.ZodOptional<z.ZodObject<{
752
753
  items: z.ZodArray<z.ZodObject<{
753
754
  item_code: z.ZodString;
@@ -1006,6 +1007,7 @@ export declare const SitePublishWorkflowQualityResponseSchema: z.ZodObject<{
1006
1007
  }, z.core.$strict>>;
1007
1008
  }, z.core.$strict>]>;
1008
1009
  }, z.core.$strict>>;
1010
+ safety_gate_enabled: z.ZodOptional<z.ZodBoolean>;
1009
1011
  repair_result: z.ZodOptional<z.ZodObject<{
1010
1012
  items: z.ZodArray<z.ZodObject<{
1011
1013
  item_code: z.ZodString;
@@ -1122,3 +1124,10 @@ export type SitePublishWorkflowQualityResponse = z.infer<typeof SitePublishWorkf
1122
1124
  export declare function getSitePublishRepairItems(qualityResult: VcpQualityResult): SitePublishRepairInputItem[];
1123
1125
  export declare function isSitePublishRepairResultSuccessful(expectedItems: readonly SitePublishRepairInputItem[], repairResult: SitePublishRepairResult): boolean;
1124
1126
  export declare function buildFinalSitePublishQualityResult(qualityResult: VcpQualityResult, _legacyRepairResult?: SitePublishRepairResult): VcpQualityResult | null;
1127
+ export declare function isSitePublishQualityItemIssue(item: Pick<z.infer<typeof VcpQualityRemediationItemSchema>, "status" | "score" | "total_score">): boolean;
1128
+ export interface SitePublishSafetyAssessment {
1129
+ status: "passed" | "blocked" | "unavailable";
1130
+ issueCount: number;
1131
+ }
1132
+ /** Current Crew item outcomes are authoritative, including deficits above the dimension threshold. */
1133
+ export declare function getSitePublishSafetyAssessment(qualityResult?: VcpQualityResult | null): SitePublishSafetyAssessment;
@@ -11,8 +11,7 @@ export declare const Step5KeywordCategorySchema: z.ZodEnum<{
11
11
  export declare const Step5KeywordEntrySchema: z.ZodObject<{
12
12
  id: z.ZodString;
13
13
  keyword: z.ZodString;
14
- business_id: z.ZodString;
15
- business_name: z.ZodString;
14
+ business_ids: z.ZodArray<z.ZodString>;
16
15
  category: z.ZodEnum<{
17
16
  产品: "产品";
18
17
  "\u90E8\u4EF6/\u8017\u6750": "部件/耗材";
@@ -22,19 +21,8 @@ export declare const Step5KeywordEntrySchema: z.ZodObject<{
22
21
  "\u8D44\u8D28/\u80FD\u529B": "资质/能力";
23
22
  }>;
24
23
  selling_points: z.ZodString;
25
- section_id: z.ZodString;
26
- content_usage: z.ZodEnum<{
27
- product: "product";
28
- category: "category";
29
- solution: "solution";
30
- service: "service";
31
- capability: "capability";
32
- article: "article";
33
- faq: "faq";
34
- }>;
35
24
  intent: z.ZodString;
36
25
  semantic_group: z.ZodString;
37
- primary_business: z.ZodBoolean;
38
26
  monthly_volume: z.ZodNumber;
39
27
  keyword_difficulty: z.ZodNullable<z.ZodNumber>;
40
28
  variants: z.ZodArray<z.ZodString>;
@@ -54,8 +42,7 @@ export declare const Step5KeywordLibrarySchema: z.ZodObject<{
54
42
  entries: z.ZodArray<z.ZodObject<{
55
43
  id: z.ZodString;
56
44
  keyword: z.ZodString;
57
- business_id: z.ZodString;
58
- business_name: z.ZodString;
45
+ business_ids: z.ZodArray<z.ZodString>;
59
46
  category: z.ZodEnum<{
60
47
  产品: "产品";
61
48
  "\u90E8\u4EF6/\u8017\u6750": "部件/耗材";
@@ -65,19 +52,8 @@ export declare const Step5KeywordLibrarySchema: z.ZodObject<{
65
52
  "\u8D44\u8D28/\u80FD\u529B": "资质/能力";
66
53
  }>;
67
54
  selling_points: z.ZodString;
68
- section_id: z.ZodString;
69
- content_usage: z.ZodEnum<{
70
- product: "product";
71
- category: "category";
72
- solution: "solution";
73
- service: "service";
74
- capability: "capability";
75
- article: "article";
76
- faq: "faq";
77
- }>;
78
55
  intent: z.ZodString;
79
56
  semantic_group: z.ZodString;
80
- primary_business: z.ZodBoolean;
81
57
  monthly_volume: z.ZodNumber;
82
58
  keyword_difficulty: z.ZodNullable<z.ZodNumber>;
83
59
  variants: z.ZodArray<z.ZodString>;
@@ -87,8 +63,7 @@ export declare const Step5KeywordLibrarySchema: z.ZodObject<{
87
63
  candidates: z.ZodArray<z.ZodObject<{
88
64
  id: z.ZodString;
89
65
  keyword: z.ZodString;
90
- business_id: z.ZodString;
91
- business_name: z.ZodString;
66
+ business_ids: z.ZodArray<z.ZodString>;
92
67
  category: z.ZodEnum<{
93
68
  产品: "产品";
94
69
  "\u90E8\u4EF6/\u8017\u6750": "部件/耗材";
@@ -98,19 +73,8 @@ export declare const Step5KeywordLibrarySchema: z.ZodObject<{
98
73
  "\u8D44\u8D28/\u80FD\u529B": "资质/能力";
99
74
  }>;
100
75
  selling_points: z.ZodString;
101
- section_id: z.ZodString;
102
- content_usage: z.ZodEnum<{
103
- product: "product";
104
- category: "category";
105
- solution: "solution";
106
- service: "service";
107
- capability: "capability";
108
- article: "article";
109
- faq: "faq";
110
- }>;
111
76
  intent: z.ZodString;
112
77
  semantic_group: z.ZodString;
113
- primary_business: z.ZodBoolean;
114
78
  monthly_volume: z.ZodNumber;
115
79
  keyword_difficulty: z.ZodNullable<z.ZodNumber>;
116
80
  variants: z.ZodArray<z.ZodString>;
@@ -120,9 +84,34 @@ export declare const Step5KeywordLibrarySchema: z.ZodObject<{
120
84
  search_result_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
121
85
  }, z.core.$strict>;
122
86
  export type Step5KeywordLibrary = z.infer<typeof Step5KeywordLibrarySchema>;
87
+ export declare const Step5KeywordEntryEditSchema: z.ZodObject<{
88
+ entry_id: z.ZodString;
89
+ category: z.ZodEnum<{
90
+ 产品: "产品";
91
+ "\u90E8\u4EF6/\u8017\u6750": "部件/耗材";
92
+ 应用方案: "应用方案";
93
+ "\u5B9A\u5236/OEM": "定制/OEM";
94
+ 服务: "服务";
95
+ "\u8D44\u8D28/\u80FD\u529B": "资质/能力";
96
+ }>;
97
+ selling_points: z.ZodString;
98
+ }, z.core.$strict>;
99
+ export type Step5KeywordEntryEdit = z.infer<typeof Step5KeywordEntryEditSchema>;
123
100
  export declare const Step5KeywordSelectionSchema: z.ZodObject<{
124
101
  snapshot_id: z.ZodString;
125
102
  entry_ids: z.ZodArray<z.ZodString>;
103
+ entry_edits: z.ZodOptional<z.ZodArray<z.ZodObject<{
104
+ entry_id: z.ZodString;
105
+ category: z.ZodEnum<{
106
+ 产品: "产品";
107
+ "\u90E8\u4EF6/\u8017\u6750": "部件/耗材";
108
+ 应用方案: "应用方案";
109
+ "\u5B9A\u5236/OEM": "定制/OEM";
110
+ 服务: "服务";
111
+ "\u8D44\u8D28/\u80FD\u529B": "资质/能力";
112
+ }>;
113
+ selling_points: z.ZodString;
114
+ }, z.core.$strict>>>;
126
115
  }, z.core.$strict>;
127
116
  export type Step5KeywordSelection = z.infer<typeof Step5KeywordSelectionSchema>;
128
117
  export declare const Step5KeywordSearchBodySchema: z.ZodObject<{