@vcp-dev/contracts 0.8.2 → 0.8.4

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.
@@ -274,9 +274,9 @@ export declare const LauncherPromptTemplateApplyRequestSchema: z.ZodObject<{
274
274
  normalized_keyword: z.ZodString;
275
275
  intc: z.ZodEnum<{
276
276
  C: "C";
277
+ T: "T";
277
278
  I: "I";
278
279
  N: "N";
279
- T: "T";
280
280
  }>;
281
281
  keyword_type: z.ZodString;
282
282
  intent_strength: z.ZodEnum<{
@@ -462,9 +462,9 @@ export declare const LauncherPromptTemplateApplyResponseSchema: z.ZodObject<{
462
462
  normalized_keyword: z.ZodString;
463
463
  intc: z.ZodEnum<{
464
464
  C: "C";
465
+ T: "T";
465
466
  I: "I";
466
467
  N: "N";
467
- T: "T";
468
468
  }>;
469
469
  keyword_type: z.ZodString;
470
470
  intent_strength: z.ZodEnum<{
@@ -162,3 +162,18 @@ export declare const UseUnsplashMediaResponseSchema: z.ZodObject<{
162
162
  }, z.core.$strip>;
163
163
  }, z.core.$strip>;
164
164
  export type UseUnsplashMediaResponse = z.infer<typeof UseUnsplashMediaResponseSchema>;
165
+ export declare const RegisterMediaResourceReferenceRequestSchema: z.ZodObject<{
166
+ source_id: z.ZodNumber;
167
+ source_title: z.ZodString;
168
+ source_url: z.ZodString;
169
+ resource_id: z.ZodNumber;
170
+ }, z.core.$strip>;
171
+ export type RegisterMediaResourceReferenceRequest = z.infer<typeof RegisterMediaResourceReferenceRequestSchema>;
172
+ export declare const RegisterMediaResourceReferenceResponseSchema: z.ZodObject<{
173
+ code: z.ZodLiteral<0>;
174
+ message: z.ZodString;
175
+ data: z.ZodObject<{
176
+ reported: z.ZodBoolean;
177
+ }, z.core.$strip>;
178
+ }, z.core.$strip>;
179
+ export type RegisterMediaResourceReferenceResponse = z.infer<typeof RegisterMediaResourceReferenceResponseSchema>;
@@ -25,7 +25,16 @@
25
25
  */
26
26
  export declare const PAGE_SLUG_SEGMENT_PATTERN_SOURCE = "[a-z0-9]+(?:-[a-z0-9]+)*";
27
27
  export declare const PAGE_SLUG_PATTERN: RegExp;
28
- export declare const PLATFORM_OWNED_PAGE_SLUGS: readonly ["/privacy", "/cookie-policy"];
28
+ /**
29
+ * 平台保留的路由路径:模板自带这些路由文件,Sitemap 不得生成同名路由,
30
+ * 路由剪枝也不得把它们删掉。是否允许用户编辑由 `.donttouch_files.json`
31
+ * 单独决定——`/system/not-found` 就是保留但可编辑的。
32
+ *
33
+ * 用 `/system/not-found` 而不是 `/404`:后者是 Next 的保留路径,
34
+ * `app/404/page.tsx` 不会成为路由(实测请求返回 404 而非 200),编辑桥的
35
+ * 路由表因此索引不到它。
36
+ */
37
+ export declare const PLATFORM_OWNED_PAGE_SLUGS: readonly ["/privacy", "/cookie-policy", "/system/not-found"];
29
38
  export declare const PLATFORM_OWNED_ROUTE_FILE_PATHS: string[];
30
39
  export declare function isCanonicalPageSlug(value: unknown): value is string;
31
40
  /**
@@ -25,6 +25,7 @@ export declare const SiteEditDynamicTargetKindSchema: z.ZodEnum<{
25
25
  text: "text";
26
26
  richtext: "richtext";
27
27
  "repeat-region": "repeat-region";
28
+ "conditional-region": "conditional-region";
28
29
  attribute: "attribute";
29
30
  "component-prop": "component-prop";
30
31
  }>;
@@ -65,6 +66,7 @@ export declare const SiteEditDynamicDataBindingSchema: z.ZodObject<{
65
66
  text: "text";
66
67
  richtext: "richtext";
67
68
  "repeat-region": "repeat-region";
69
+ "conditional-region": "conditional-region";
68
70
  attribute: "attribute";
69
71
  "component-prop": "component-prop";
70
72
  }>;
@@ -108,6 +110,7 @@ export declare const SiteEditDynamicDataDetailSchema: z.ZodObject<{
108
110
  text: "text";
109
111
  richtext: "richtext";
110
112
  "repeat-region": "repeat-region";
113
+ "conditional-region": "conditional-region";
111
114
  attribute: "attribute";
112
115
  "component-prop": "component-prop";
113
116
  }>;
@@ -908,6 +911,7 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
908
911
  text: "text";
909
912
  richtext: "richtext";
910
913
  "repeat-region": "repeat-region";
914
+ "conditional-region": "conditional-region";
911
915
  attribute: "attribute";
912
916
  "component-prop": "component-prop";
913
917
  }>;
@@ -1181,6 +1185,7 @@ export declare const SiteEditObjectEditContextSchema: z.ZodObject<{
1181
1185
  text: "text";
1182
1186
  richtext: "richtext";
1183
1187
  "repeat-region": "repeat-region";
1188
+ "conditional-region": "conditional-region";
1184
1189
  attribute: "attribute";
1185
1190
  "component-prop": "component-prop";
1186
1191
  }>;
@@ -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.8.2";
8
+ export declare const CURRENT_EDIT_ENGINE_VERSION = "0.8.4";
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";
@@ -28,11 +28,10 @@ export declare function resolveSiteLocaleFromIso6393(iso6393: string): SiteLocal
28
28
  /**
29
29
  * 书写系统非拉丁的 locale 闭集。用于 DesignPlan Stage A 的 SEO 关键词分流。
30
30
  *
31
- * step5 关键词强制 English ASCII(`step5-strategy.ts` 的 superRefine),而
32
- * DesignPlan 有两条相反硬指令:`Never mix languages within visitor-facing copy.`
33
- * 与「所有 SEO 文案须写成站点 locale」。非拉丁书写系统站点逐字注入英文关键词
34
- * 即构成混语,因此这些 locale 只把关键词当语义主题信号,由模型用站点语种自行
35
- * 表达。
31
+ * Step5 关键词可能包含来源语言中的产品名、品牌名或其他非 ASCII 字符,而
32
+ * DesignPlan 仍要求访客文案统一使用站点 locale。非拉丁书写系统站点不应机械
33
+ * 粘贴不同书写系统的关键词,因此这些 locale 只把关键词当语义主题信号,由模型
34
+ * 用站点语种自行表达。
36
35
  *
37
36
  * 写成显式常量清单而不是运行时推断:SiteLocale 是闭集枚举(47 selectable +
38
37
  * 43 legacy),不是任意 BCP-47,推断只会引入不可控误判。`sr` 与 `mn-MN` 通行
@@ -21,27 +21,13 @@ export declare const CheckSitePublishDomainDataSchema: z.ZodObject<{
21
21
  gsc: "gsc";
22
22
  publish: "publish";
23
23
  }>;
24
- sensitive_word_task_id: z.ZodNumber;
25
- sensitive_word_task_status: z.ZodEnum<{
26
- failed: "failed";
27
- succeeded: "succeeded";
28
- pending: "pending";
29
- running: "running";
30
- }>;
31
- quality_task_code: z.ZodString;
24
+ quality_task_code: z.ZodNullable<z.ZodString>;
32
25
  quality_task_status: z.ZodEnum<{
33
26
  failed: "failed";
34
27
  succeeded: "succeeded";
35
28
  pending: "pending";
36
29
  running: "running";
37
30
  }>;
38
- task_id: z.ZodNullable<z.ZodString>;
39
- task_status: z.ZodEnum<{
40
- failed: "failed";
41
- succeeded: "succeeded";
42
- pending: "pending";
43
- running: "running";
44
- }>;
45
31
  publish_deployment_id: z.ZodNullable<z.ZodUUID>;
46
32
  domain_hostname: z.ZodNullable<z.ZodString>;
47
33
  domain_operation_type: z.ZodNullable<z.ZodEnum<{
@@ -110,27 +96,13 @@ export declare const CheckSitePublishDomainResponseSchema: z.ZodObject<{
110
96
  gsc: "gsc";
111
97
  publish: "publish";
112
98
  }>;
113
- sensitive_word_task_id: z.ZodNumber;
114
- sensitive_word_task_status: z.ZodEnum<{
115
- failed: "failed";
116
- succeeded: "succeeded";
117
- pending: "pending";
118
- running: "running";
119
- }>;
120
- quality_task_code: z.ZodString;
99
+ quality_task_code: z.ZodNullable<z.ZodString>;
121
100
  quality_task_status: z.ZodEnum<{
122
101
  failed: "failed";
123
102
  succeeded: "succeeded";
124
103
  pending: "pending";
125
104
  running: "running";
126
105
  }>;
127
- task_id: z.ZodNullable<z.ZodString>;
128
- task_status: z.ZodEnum<{
129
- failed: "failed";
130
- succeeded: "succeeded";
131
- pending: "pending";
132
- running: "running";
133
- }>;
134
106
  publish_deployment_id: z.ZodNullable<z.ZodUUID>;
135
107
  domain_hostname: z.ZodNullable<z.ZodString>;
136
108
  domain_operation_type: z.ZodNullable<z.ZodEnum<{
@@ -199,27 +171,13 @@ export declare const GetSitePublishDomainOperationDataSchema: z.ZodObject<{
199
171
  gsc: "gsc";
200
172
  publish: "publish";
201
173
  }>;
202
- sensitive_word_task_id: z.ZodNumber;
203
- sensitive_word_task_status: z.ZodEnum<{
204
- failed: "failed";
205
- succeeded: "succeeded";
206
- pending: "pending";
207
- running: "running";
208
- }>;
209
- quality_task_code: z.ZodString;
174
+ quality_task_code: z.ZodNullable<z.ZodString>;
210
175
  quality_task_status: z.ZodEnum<{
211
176
  failed: "failed";
212
177
  succeeded: "succeeded";
213
178
  pending: "pending";
214
179
  running: "running";
215
180
  }>;
216
- task_id: z.ZodNullable<z.ZodString>;
217
- task_status: z.ZodEnum<{
218
- failed: "failed";
219
- succeeded: "succeeded";
220
- pending: "pending";
221
- running: "running";
222
- }>;
223
181
  publish_deployment_id: z.ZodNullable<z.ZodUUID>;
224
182
  domain_hostname: z.ZodNullable<z.ZodString>;
225
183
  domain_operation_type: z.ZodNullable<z.ZodEnum<{
@@ -288,27 +246,13 @@ export declare const GetSitePublishDomainOperationResponseSchema: z.ZodObject<{
288
246
  gsc: "gsc";
289
247
  publish: "publish";
290
248
  }>;
291
- sensitive_word_task_id: z.ZodNumber;
292
- sensitive_word_task_status: z.ZodEnum<{
293
- failed: "failed";
294
- succeeded: "succeeded";
295
- pending: "pending";
296
- running: "running";
297
- }>;
298
- quality_task_code: z.ZodString;
249
+ quality_task_code: z.ZodNullable<z.ZodString>;
299
250
  quality_task_status: z.ZodEnum<{
300
251
  failed: "failed";
301
252
  succeeded: "succeeded";
302
253
  pending: "pending";
303
254
  running: "running";
304
255
  }>;
305
- task_id: z.ZodNullable<z.ZodString>;
306
- task_status: z.ZodEnum<{
307
- failed: "failed";
308
- succeeded: "succeeded";
309
- pending: "pending";
310
- running: "running";
311
- }>;
312
256
  publish_deployment_id: z.ZodNullable<z.ZodUUID>;
313
257
  domain_hostname: z.ZodNullable<z.ZodString>;
314
258
  domain_operation_type: z.ZodNullable<z.ZodEnum<{
@@ -378,27 +322,13 @@ export declare const ReconcileSitePublishDomainOperationDataSchema: z.ZodObject<
378
322
  gsc: "gsc";
379
323
  publish: "publish";
380
324
  }>;
381
- sensitive_word_task_id: z.ZodNumber;
382
- sensitive_word_task_status: z.ZodEnum<{
383
- failed: "failed";
384
- succeeded: "succeeded";
385
- pending: "pending";
386
- running: "running";
387
- }>;
388
- quality_task_code: z.ZodString;
325
+ quality_task_code: z.ZodNullable<z.ZodString>;
389
326
  quality_task_status: z.ZodEnum<{
390
327
  failed: "failed";
391
328
  succeeded: "succeeded";
392
329
  pending: "pending";
393
330
  running: "running";
394
331
  }>;
395
- task_id: z.ZodNullable<z.ZodString>;
396
- task_status: z.ZodEnum<{
397
- failed: "failed";
398
- succeeded: "succeeded";
399
- pending: "pending";
400
- running: "running";
401
- }>;
402
332
  publish_deployment_id: z.ZodNullable<z.ZodUUID>;
403
333
  domain_hostname: z.ZodNullable<z.ZodString>;
404
334
  domain_operation_type: z.ZodNullable<z.ZodEnum<{
@@ -467,27 +397,13 @@ export declare const ReconcileSitePublishDomainOperationResponseSchema: z.ZodObj
467
397
  gsc: "gsc";
468
398
  publish: "publish";
469
399
  }>;
470
- sensitive_word_task_id: z.ZodNumber;
471
- sensitive_word_task_status: z.ZodEnum<{
472
- failed: "failed";
473
- succeeded: "succeeded";
474
- pending: "pending";
475
- running: "running";
476
- }>;
477
- quality_task_code: z.ZodString;
400
+ quality_task_code: z.ZodNullable<z.ZodString>;
478
401
  quality_task_status: z.ZodEnum<{
479
402
  failed: "failed";
480
403
  succeeded: "succeeded";
481
404
  pending: "pending";
482
405
  running: "running";
483
406
  }>;
484
- task_id: z.ZodNullable<z.ZodString>;
485
- task_status: z.ZodEnum<{
486
- failed: "failed";
487
- succeeded: "succeeded";
488
- pending: "pending";
489
- running: "running";
490
- }>;
491
407
  publish_deployment_id: z.ZodNullable<z.ZodUUID>;
492
408
  domain_hostname: z.ZodNullable<z.ZodString>;
493
409
  domain_operation_type: z.ZodNullable<z.ZodEnum<{
@@ -608,6 +524,24 @@ export declare const GetSiteDomainConfigurationResponseSchema: z.ZodObject<{
608
524
  message: z.ZodString;
609
525
  }, z.core.$strict>;
610
526
  export type GetSiteDomainConfigurationResponse = z.infer<typeof GetSiteDomainConfigurationResponseSchema>;
527
+ export declare const ActiveSiteDomainDataSchema: z.ZodObject<{
528
+ published: z.ZodBoolean;
529
+ hostname: z.ZodString;
530
+ url: z.ZodString;
531
+ sandbox_url: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
532
+ }, z.core.$strict>;
533
+ export type ActiveSiteDomainData = z.infer<typeof ActiveSiteDomainDataSchema>;
534
+ export declare const GetActiveSiteDomainResponseSchema: z.ZodObject<{
535
+ code: z.ZodNumber;
536
+ data: z.ZodObject<{
537
+ published: z.ZodBoolean;
538
+ hostname: z.ZodString;
539
+ url: z.ZodString;
540
+ sandbox_url: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
541
+ }, z.core.$strict>;
542
+ message: z.ZodString;
543
+ }, z.core.$strict>;
544
+ export type GetActiveSiteDomainResponse = z.infer<typeof GetActiveSiteDomainResponseSchema>;
611
545
  export declare const SitePublishDomainCheckRequestSchema: z.ZodObject<{
612
546
  hostname: z.ZodString;
613
547
  expected_revision: z.ZodNumber;
@@ -629,27 +563,13 @@ export declare const SitePublishDomainCheckDataSchema: z.ZodObject<{
629
563
  gsc: "gsc";
630
564
  publish: "publish";
631
565
  }>;
632
- sensitive_word_task_id: z.ZodNumber;
633
- sensitive_word_task_status: z.ZodEnum<{
634
- failed: "failed";
635
- succeeded: "succeeded";
636
- pending: "pending";
637
- running: "running";
638
- }>;
639
- quality_task_code: z.ZodString;
566
+ quality_task_code: z.ZodNullable<z.ZodString>;
640
567
  quality_task_status: z.ZodEnum<{
641
568
  failed: "failed";
642
569
  succeeded: "succeeded";
643
570
  pending: "pending";
644
571
  running: "running";
645
572
  }>;
646
- task_id: z.ZodNullable<z.ZodString>;
647
- task_status: z.ZodEnum<{
648
- failed: "failed";
649
- succeeded: "succeeded";
650
- pending: "pending";
651
- running: "running";
652
- }>;
653
573
  publish_deployment_id: z.ZodNullable<z.ZodUUID>;
654
574
  domain_hostname: z.ZodNullable<z.ZodString>;
655
575
  domain_operation_type: z.ZodNullable<z.ZodEnum<{
@@ -718,27 +638,13 @@ export declare const SitePublishDomainCheckResponseSchema: z.ZodObject<{
718
638
  gsc: "gsc";
719
639
  publish: "publish";
720
640
  }>;
721
- sensitive_word_task_id: z.ZodNumber;
722
- sensitive_word_task_status: z.ZodEnum<{
723
- failed: "failed";
724
- succeeded: "succeeded";
725
- pending: "pending";
726
- running: "running";
727
- }>;
728
- quality_task_code: z.ZodString;
641
+ quality_task_code: z.ZodNullable<z.ZodString>;
729
642
  quality_task_status: z.ZodEnum<{
730
643
  failed: "failed";
731
644
  succeeded: "succeeded";
732
645
  pending: "pending";
733
646
  running: "running";
734
647
  }>;
735
- task_id: z.ZodNullable<z.ZodString>;
736
- task_status: z.ZodEnum<{
737
- failed: "failed";
738
- succeeded: "succeeded";
739
- pending: "pending";
740
- running: "running";
741
- }>;
742
648
  publish_deployment_id: z.ZodNullable<z.ZodUUID>;
743
649
  domain_hostname: z.ZodNullable<z.ZodString>;
744
650
  domain_operation_type: z.ZodNullable<z.ZodEnum<{
@@ -807,27 +713,13 @@ export declare const SitePublishDomainOperationDataSchema: z.ZodObject<{
807
713
  gsc: "gsc";
808
714
  publish: "publish";
809
715
  }>;
810
- sensitive_word_task_id: z.ZodNumber;
811
- sensitive_word_task_status: z.ZodEnum<{
812
- failed: "failed";
813
- succeeded: "succeeded";
814
- pending: "pending";
815
- running: "running";
816
- }>;
817
- quality_task_code: z.ZodString;
716
+ quality_task_code: z.ZodNullable<z.ZodString>;
818
717
  quality_task_status: z.ZodEnum<{
819
718
  failed: "failed";
820
719
  succeeded: "succeeded";
821
720
  pending: "pending";
822
721
  running: "running";
823
722
  }>;
824
- task_id: z.ZodNullable<z.ZodString>;
825
- task_status: z.ZodEnum<{
826
- failed: "failed";
827
- succeeded: "succeeded";
828
- pending: "pending";
829
- running: "running";
830
- }>;
831
723
  publish_deployment_id: z.ZodNullable<z.ZodUUID>;
832
724
  domain_hostname: z.ZodNullable<z.ZodString>;
833
725
  domain_operation_type: z.ZodNullable<z.ZodEnum<{
@@ -896,27 +788,13 @@ export declare const SitePublishDomainOperationResponseSchema: z.ZodObject<{
896
788
  gsc: "gsc";
897
789
  publish: "publish";
898
790
  }>;
899
- sensitive_word_task_id: z.ZodNumber;
900
- sensitive_word_task_status: z.ZodEnum<{
901
- failed: "failed";
902
- succeeded: "succeeded";
903
- pending: "pending";
904
- running: "running";
905
- }>;
906
- quality_task_code: z.ZodString;
791
+ quality_task_code: z.ZodNullable<z.ZodString>;
907
792
  quality_task_status: z.ZodEnum<{
908
793
  failed: "failed";
909
794
  succeeded: "succeeded";
910
795
  pending: "pending";
911
796
  running: "running";
912
797
  }>;
913
- task_id: z.ZodNullable<z.ZodString>;
914
- task_status: z.ZodEnum<{
915
- failed: "failed";
916
- succeeded: "succeeded";
917
- pending: "pending";
918
- running: "running";
919
- }>;
920
798
  publish_deployment_id: z.ZodNullable<z.ZodUUID>;
921
799
  domain_hostname: z.ZodNullable<z.ZodString>;
922
800
  domain_operation_type: z.ZodNullable<z.ZodEnum<{
@@ -987,27 +865,13 @@ export declare const SitePublishDomainReconcileOperationResponseSchema: z.ZodObj
987
865
  gsc: "gsc";
988
866
  publish: "publish";
989
867
  }>;
990
- sensitive_word_task_id: z.ZodNumber;
991
- sensitive_word_task_status: z.ZodEnum<{
992
- failed: "failed";
993
- succeeded: "succeeded";
994
- pending: "pending";
995
- running: "running";
996
- }>;
997
- quality_task_code: z.ZodString;
868
+ quality_task_code: z.ZodNullable<z.ZodString>;
998
869
  quality_task_status: z.ZodEnum<{
999
870
  failed: "failed";
1000
871
  succeeded: "succeeded";
1001
872
  pending: "pending";
1002
873
  running: "running";
1003
874
  }>;
1004
- task_id: z.ZodNullable<z.ZodString>;
1005
- task_status: z.ZodEnum<{
1006
- failed: "failed";
1007
- succeeded: "succeeded";
1008
- pending: "pending";
1009
- running: "running";
1010
- }>;
1011
875
  publish_deployment_id: z.ZodNullable<z.ZodUUID>;
1012
876
  domain_hostname: z.ZodNullable<z.ZodString>;
1013
877
  domain_operation_type: z.ZodNullable<z.ZodEnum<{