@vcp-dev/contracts 0.8.1 → 0.8.2
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/dist/cms-page-directory.d.ts +9 -0
- package/dist/connect-form.d.ts +15 -2
- package/dist/custom-domain.d.ts +40 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.js +1 -1
- package/dist/site-edit-version.d.ts +1 -1
- package/dist/site-publish-domain.d.ts +382 -0
- package/package.json +1 -1
|
@@ -32,6 +32,15 @@ export interface CmsPageDirectoryNode {
|
|
|
32
32
|
readonly vcp_managed: boolean;
|
|
33
33
|
readonly children: readonly CmsPageDirectoryNode[];
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* A CMS row is selectable in Designer only when every part of its route
|
|
37
|
+
* identity is safe for VCP-managed source and page-directory operations.
|
|
38
|
+
* Keep this predicate at the shared contract boundary so the UI projection,
|
|
39
|
+
* API guard, Agent guard, and reconcile logic cannot silently disagree.
|
|
40
|
+
*/
|
|
41
|
+
export declare function isCmsPageSelectable(page: Pick<CmsPageDirectoryNode, "url_path" | "url" | "page_type" | "vcp_managed">): page is Pick<CmsPageDirectoryNode, "url_path" | "url" | "page_type" | "vcp_managed"> & {
|
|
42
|
+
url: string;
|
|
43
|
+
};
|
|
35
44
|
export declare const CmsPageDirectoryNodeSchema: z.ZodType<CmsPageDirectoryNode>;
|
|
36
45
|
export declare const CmsPageDirectoryGroupSchema: z.ZodObject<{
|
|
37
46
|
group_id: z.ZodString;
|
package/dist/connect-form.d.ts
CHANGED
|
@@ -6,13 +6,27 @@ import { z } from "zod";
|
|
|
6
6
|
*/
|
|
7
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
|
+
/**
|
|
10
|
+
* 生成侧(模型)可声明的字段类型:`FORM_FIELD_TYPES` 去掉 `file`。
|
|
11
|
+
*
|
|
12
|
+
* 附件上传本版不由生成侧产出。multipart 前置只在 `connect_form` 工具里完整实现
|
|
13
|
+
* (`prepareMultipartClient` 升级生成站的 `lib/cms/client.ts`,并对受保护路径传
|
|
14
|
+
* `systemOwnedPaths`);标准表单预建走的是另一条落盘路径,两者都没有。缺了它,
|
|
15
|
+
* 表单会正常渲染、访客也能选文件,提交时 `FormData` 被 `JSON.stringify` 成
|
|
16
|
+
* `"{}"`,文件静默丢失且前后端都不报错。
|
|
17
|
+
*
|
|
18
|
+
* 表单设计器不受此限制:`file` 仍在 `FORM_FIELD_TYPES` 里,`FormSpecV1`、CMS 字段
|
|
19
|
+
* 映射与生成站 runtime 的文件渲染全部保留,站主在设计器里手工添加的附件字段走的是
|
|
20
|
+
* 带 multipart 前置的保存链路。将来生成侧补齐前置后,把 `file` 加回本表即可。
|
|
21
|
+
*/
|
|
22
|
+
export declare const MODEL_DECLARABLE_FORM_FIELD_TYPES: readonly ["text", "textarea", "email", "phone", "select", "radio", "multiselect", "boolean", "date", "number"];
|
|
23
|
+
export type ModelDeclarableFormFieldType = (typeof MODEL_DECLARABLE_FORM_FIELD_TYPES)[number];
|
|
9
24
|
export declare const FormFieldDeclSchema: z.ZodObject<{
|
|
10
25
|
name: z.ZodString;
|
|
11
26
|
type: z.ZodEnum<{
|
|
12
27
|
number: "number";
|
|
13
28
|
boolean: "boolean";
|
|
14
29
|
date: "date";
|
|
15
|
-
file: "file";
|
|
16
30
|
text: "text";
|
|
17
31
|
email: "email";
|
|
18
32
|
select: "select";
|
|
@@ -41,7 +55,6 @@ export declare const ConnectFormInputSchema: z.ZodObject<{
|
|
|
41
55
|
number: "number";
|
|
42
56
|
boolean: "boolean";
|
|
43
57
|
date: "date";
|
|
44
|
-
file: "file";
|
|
45
58
|
text: "text";
|
|
46
59
|
email: "email";
|
|
47
60
|
select: "select";
|
package/dist/custom-domain.d.ts
CHANGED
|
@@ -47,6 +47,32 @@ export declare const DomainOperationErrorSchema: z.ZodObject<{
|
|
|
47
47
|
message: z.ZodString;
|
|
48
48
|
}, z.core.$strict>;
|
|
49
49
|
export type DomainOperationError = z.infer<typeof DomainOperationErrorSchema>;
|
|
50
|
+
export declare const DomainDnsVerificationObservationSchema: z.ZodObject<{
|
|
51
|
+
purpose: z.ZodEnum<{
|
|
52
|
+
traffic: "traffic";
|
|
53
|
+
ownership: "ownership";
|
|
54
|
+
certificate_delegation: "certificate_delegation";
|
|
55
|
+
}>;
|
|
56
|
+
verified: z.ZodBoolean;
|
|
57
|
+
observedValues: z.ZodArray<z.ZodString>;
|
|
58
|
+
}, z.core.$strict>;
|
|
59
|
+
export type DomainDnsVerificationObservation = z.infer<typeof DomainDnsVerificationObservationSchema>;
|
|
60
|
+
/** Browser-safe diagnostics from one completed Cloud verify_dns operation. */
|
|
61
|
+
export declare const DomainDnsVerificationResultSchema: z.ZodObject<{
|
|
62
|
+
ready: z.ZodBoolean;
|
|
63
|
+
providerReady: z.ZodBoolean;
|
|
64
|
+
dnsVerified: z.ZodBoolean;
|
|
65
|
+
records: z.ZodArray<z.ZodObject<{
|
|
66
|
+
purpose: z.ZodEnum<{
|
|
67
|
+
traffic: "traffic";
|
|
68
|
+
ownership: "ownership";
|
|
69
|
+
certificate_delegation: "certificate_delegation";
|
|
70
|
+
}>;
|
|
71
|
+
verified: z.ZodBoolean;
|
|
72
|
+
observedValues: z.ZodArray<z.ZodString>;
|
|
73
|
+
}, z.core.$strict>>;
|
|
74
|
+
}, z.core.$strict>;
|
|
75
|
+
export type DomainDnsVerificationResult = z.infer<typeof DomainDnsVerificationResultSchema>;
|
|
50
76
|
export declare const DomainDnsRecordSchema: z.ZodObject<{
|
|
51
77
|
purpose: z.ZodEnum<{
|
|
52
78
|
traffic: "traffic";
|
|
@@ -173,5 +199,19 @@ export declare const DomainOperationSchema: z.ZodObject<{
|
|
|
173
199
|
code: z.ZodString;
|
|
174
200
|
message: z.ZodString;
|
|
175
201
|
}, z.core.$strict>>;
|
|
202
|
+
result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
203
|
+
ready: z.ZodBoolean;
|
|
204
|
+
providerReady: z.ZodBoolean;
|
|
205
|
+
dnsVerified: z.ZodBoolean;
|
|
206
|
+
records: z.ZodArray<z.ZodObject<{
|
|
207
|
+
purpose: z.ZodEnum<{
|
|
208
|
+
traffic: "traffic";
|
|
209
|
+
ownership: "ownership";
|
|
210
|
+
certificate_delegation: "certificate_delegation";
|
|
211
|
+
}>;
|
|
212
|
+
verified: z.ZodBoolean;
|
|
213
|
+
observedValues: z.ZodArray<z.ZodString>;
|
|
214
|
+
}, z.core.$strict>>;
|
|
215
|
+
}, z.core.$strict>>>;
|
|
176
216
|
}, z.core.$strict>;
|
|
177
217
|
export type DomainOperation = z.infer<typeof DomainOperationSchema>;
|
package/dist/index.d.ts
CHANGED
|
@@ -17965,9 +17965,16 @@ export declare const REST_API_ENDPOINTS: readonly [{
|
|
|
17965
17965
|
readonly method: "GET";
|
|
17966
17966
|
readonly path: "/sites/:site_id/publish-workflows/:workflow_id/domain/operation";
|
|
17967
17967
|
readonly tag: "publish-workflow";
|
|
17968
|
-
readonly summary: "
|
|
17968
|
+
readonly summary: "Read the current publish workflow domain operation.";
|
|
17969
17969
|
readonly status: "implemented";
|
|
17970
17970
|
readonly response_schema: "GetSitePublishDomainOperationResponseSchema";
|
|
17971
|
+
}, {
|
|
17972
|
+
readonly method: "POST";
|
|
17973
|
+
readonly path: "/sites/:site_id/publish-workflows/:workflow_id/domain/operation/reconcile";
|
|
17974
|
+
readonly tag: "publish-workflow";
|
|
17975
|
+
readonly summary: "Recover or reconcile the current publish workflow domain operation.";
|
|
17976
|
+
readonly status: "implemented";
|
|
17977
|
+
readonly response_schema: "ReconcileSitePublishDomainOperationResponseSchema";
|
|
17971
17978
|
}, {
|
|
17972
17979
|
readonly method: "POST";
|
|
17973
17980
|
readonly path: "/sites/:site_id/integrations/gsc/auth/start";
|