@vcp-dev/contracts 0.8.3 → 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.
@@ -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
  /**
@@ -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.3";
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";
@@ -524,6 +524,24 @@ export declare const GetSiteDomainConfigurationResponseSchema: z.ZodObject<{
524
524
  message: z.ZodString;
525
525
  }, z.core.$strict>;
526
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>;
527
545
  export declare const SitePublishDomainCheckRequestSchema: z.ZodObject<{
528
546
  hostname: z.ZodString;
529
547
  expected_revision: z.ZodNumber;