@vcp-dev/contracts 0.6.5 → 0.6.6

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 CHANGED
@@ -18,6 +18,7 @@ npm install @vcp-dev/contracts
18
18
  - 校验 site edit operation / patch plan 输入输出
19
19
  - 复用 site edit runtime fallback 标签集合与能力 fallback helper
20
20
  - 复用 `site_id`、`snapshot_id`、`tenant_id` 等稳定边界字段
21
+ - 复用 FORM_SPEC、表单模板、CMS 字段投影、canonical hash 与保存 operation 合同
21
22
  - 在服务端、工具链或外部集成中共享 Zod schema 与推导类型
22
23
 
23
24
  ## 示例
@@ -0,0 +1,29 @@
1
+ import { z } from "zod";
2
+ export declare const COMPONENT_I18N_FILE_SUFFIX: ".i18n.json";
3
+ export declare const COMPONENT_I18N_NAMESPACE: "translation";
4
+ export interface ComponentI18nResourceTree {
5
+ readonly [key: string]: string | ComponentI18nResourceTree;
6
+ }
7
+ export type ComponentI18nResources = Readonly<Record<string, Readonly<{
8
+ translation: ComponentI18nResourceTree;
9
+ }>>>;
10
+ export type ComponentI18nResourcesValidationCode = "I18N_JSON_INVALID" | "I18N_ROOT_INVALID" | "I18N_LOCALE_INVALID" | "I18N_NAMESPACE_INVALID" | "I18N_RESOURCE_TREE_INVALID" | "I18N_RESOURCE_KEY_FORBIDDEN";
11
+ export interface ComponentI18nResourcesValidationError {
12
+ code: ComponentI18nResourcesValidationCode;
13
+ message: string;
14
+ path: readonly string[];
15
+ }
16
+ export type ComponentI18nResourcesValidationResult = {
17
+ success: true;
18
+ data: ComponentI18nResources;
19
+ } | {
20
+ success: false;
21
+ error: ComponentI18nResourcesValidationError;
22
+ };
23
+ /**
24
+ * Validates the component-local i18next resource contract without recursive
25
+ * calls so deeply nested untrusted JSON cannot exhaust the JavaScript stack.
26
+ */
27
+ export declare function validateComponentI18nResources(value: unknown): ComponentI18nResourcesValidationResult;
28
+ export declare function parseComponentI18nResourcesJson(content: string): ComponentI18nResourcesValidationResult;
29
+ export declare const ComponentI18nResourcesSchema: z.ZodType<ComponentI18nResources>;
@@ -7,10 +7,10 @@ export declare const FieldDeclSchema: z.ZodObject<{
7
7
  type: z.ZodEnum<{
8
8
  number: "number";
9
9
  boolean: "boolean";
10
+ date: "date";
10
11
  title: "title";
11
12
  text: "text";
12
13
  richtext: "richtext";
13
- date: "date";
14
14
  datetime: "datetime";
15
15
  url: "url";
16
16
  email: "email";
@@ -51,10 +51,10 @@ export declare const ConnectDynamicCollectionInputSchema: z.ZodObject<{
51
51
  type: z.ZodEnum<{
52
52
  number: "number";
53
53
  boolean: "boolean";
54
+ date: "date";
54
55
  title: "title";
55
56
  text: "text";
56
57
  richtext: "richtext";
57
- date: "date";
58
58
  datetime: "datetime";
59
59
  url: "url";
60
60
  email: "email";
@@ -80,10 +80,10 @@ export declare const ConnectDynamicCollectionInputSchema: z.ZodObject<{
80
80
  type: z.ZodEnum<{
81
81
  number: "number";
82
82
  boolean: "boolean";
83
+ date: "date";
83
84
  title: "title";
84
85
  text: "text";
85
86
  richtext: "richtext";
86
- date: "date";
87
87
  datetime: "datetime";
88
88
  url: "url";
89
89
  email: "email";
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  /**
3
3
  * connect_form provision 可声明的表单字段类型词表(非文件/媒体类)。
4
- * 词表→CMS 表单字段类型映射在 agent 侧 `cms-forms/field-type-to-form.ts`,
4
+ * 词表→CMS 表单字段类型映射在 agent 侧 `cms/forms/field-type-to-form.ts`,
5
5
  * 与 connect-dynamic-collection 的 FIELD_TYPES/field-type-to-cms 同款分层。
6
6
  */
7
7
  export declare const FORM_FIELD_TYPES: readonly ["text", "textarea", "email", "phone", "select", "radio", "multiselect", "boolean", "date", "number"];
@@ -11,8 +11,8 @@ export declare const FormFieldDeclSchema: z.ZodObject<{
11
11
  type: z.ZodEnum<{
12
12
  number: "number";
13
13
  boolean: "boolean";
14
- text: "text";
15
14
  date: "date";
15
+ text: "text";
16
16
  email: "email";
17
17
  select: "select";
18
18
  multiselect: "multiselect";
@@ -39,8 +39,8 @@ export declare const ConnectFormInputSchema: z.ZodObject<{
39
39
  type: z.ZodEnum<{
40
40
  number: "number";
41
41
  boolean: "boolean";
42
- text: "text";
43
42
  date: "date";
43
+ text: "text";
44
44
  email: "email";
45
45
  select: "select";
46
46
  multiselect: "multiselect";
@@ -5,6 +5,7 @@ export declare const DESIGNER_COMPONENT_LIBRARY_ERROR_CODES: {
5
5
  readonly unavailable: "DESIGNER_COMPONENT_LIBRARY_UNAVAILABLE";
6
6
  readonly timeout: "DESIGNER_COMPONENT_LIBRARY_TIMEOUT";
7
7
  readonly invalidResponse: "DESIGNER_COMPONENT_LIBRARY_INVALID_RESPONSE";
8
+ readonly incompatibleResource: "DESIGNER_COMPONENT_RESOURCE_INCOMPATIBLE";
8
9
  };
9
10
  export interface DesignerComponentCategoryNode {
10
11
  readonly id: string;
@@ -37,6 +38,18 @@ export declare const DesignerComponentsDataSchema: z.ZodObject<{
37
38
  }, z.core.$strict>>;
38
39
  next_cursor: z.ZodNullable<z.ZodString>;
39
40
  }, z.core.$strict>;
41
+ export declare const MockDesignerComponentInsertRequestSchema: z.ZodObject<{
42
+ resource_id: z.ZodString;
43
+ resolved_version: z.ZodString;
44
+ anchor_block_id: z.ZodString;
45
+ placement: z.ZodEnum<{
46
+ before: "before";
47
+ after: "after";
48
+ }>;
49
+ }, z.core.$strict>;
50
+ export declare const MockDesignerComponentInsertDataSchema: z.ZodObject<{
51
+ status: z.ZodLiteral<"mock_acknowledged">;
52
+ }, z.core.$strict>;
40
53
  export declare const ListDesignerComponentsQuerySchema: z.ZodObject<{
41
54
  category_id: z.ZodOptional<z.ZodString>;
42
55
  include_descendants: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
@@ -49,4 +62,36 @@ export declare const ListDesignerComponentsQuerySchema: z.ZodObject<{
49
62
  export type DesignerComponentCategoriesData = z.infer<typeof DesignerComponentCategoriesDataSchema>;
50
63
  export type DesignerComponentCatalogItem = z.infer<typeof DesignerComponentCatalogItemSchema>;
51
64
  export type DesignerComponentsData = z.infer<typeof DesignerComponentsDataSchema>;
65
+ export type MockDesignerComponentInsertRequest = z.infer<typeof MockDesignerComponentInsertRequestSchema>;
66
+ export type MockDesignerComponentInsertData = z.infer<typeof MockDesignerComponentInsertDataSchema>;
52
67
  export type ListDesignerComponentsQuery = z.infer<typeof ListDesignerComponentsQuerySchema>;
68
+ export declare const DesignerComponentExactVersionSchema: z.ZodString;
69
+ export declare const InstallDesignerComponentBodySchema: z.ZodObject<{
70
+ version: z.ZodString;
71
+ }, z.core.$strict>;
72
+ export declare const DesignerComponentInstallDataSchema: z.ZodObject<{
73
+ resource_id: z.ZodString;
74
+ resolved_version: z.ZodString;
75
+ revision_id: z.ZodString;
76
+ digest_sha256: z.ZodString;
77
+ materialization: z.ZodObject<{
78
+ instanceBaseName: z.ZodString;
79
+ files: z.ZodArray<z.ZodObject<{
80
+ pathTemplate: z.ZodString;
81
+ content: z.ZodString;
82
+ role: z.ZodOptional<z.ZodString>;
83
+ }, z.core.$strict>>;
84
+ entry: z.ZodObject<{
85
+ pathTemplate: z.ZodString;
86
+ export: z.ZodUnion<readonly [z.ZodObject<{
87
+ kind: z.ZodLiteral<"default">;
88
+ }, z.core.$strict>, z.ZodObject<{
89
+ kind: z.ZodLiteral<"named">;
90
+ name: z.ZodString;
91
+ }, z.core.$strict>]>;
92
+ }, z.core.$strict>;
93
+ dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
94
+ }, z.core.$strict>;
95
+ }, z.core.$strict>;
96
+ export type InstallDesignerComponentBody = z.infer<typeof InstallDesignerComponentBodySchema>;
97
+ export type DesignerComponentInstallData = z.infer<typeof DesignerComponentInstallDataSchema>;
@@ -0,0 +1,349 @@
1
+ import { z } from "zod";
2
+ export declare const INSERT_NEW_PAGE_CATEGORY_GROUP_KEY: "insertNewPage";
3
+ export declare const DESIGNER_PAGE_LIBRARY_ERROR_CODES: {
4
+ readonly categoryGroupMissing: "DESIGNER_PAGE_CATEGORY_GROUP_MISSING";
5
+ readonly unavailable: "DESIGNER_PAGE_LIBRARY_UNAVAILABLE";
6
+ readonly timeout: "DESIGNER_PAGE_LIBRARY_TIMEOUT";
7
+ readonly invalidResponse: "DESIGNER_PAGE_LIBRARY_INVALID_RESPONSE";
8
+ readonly incompatibleResource: "DESIGNER_PAGE_RESOURCE_INCOMPATIBLE";
9
+ };
10
+ export declare const DesignerPageResourceTypeSchema: z.ZodEnum<{
11
+ page: "page";
12
+ pages: "pages";
13
+ }>;
14
+ export type DesignerPageResourceType = z.infer<typeof DesignerPageResourceTypeSchema>;
15
+ export interface DesignerPageCategoryNode {
16
+ readonly id: string;
17
+ readonly key: string;
18
+ readonly name: string;
19
+ readonly children: readonly DesignerPageCategoryNode[];
20
+ }
21
+ export declare const DesignerPageCategoryNodeSchema: z.ZodType<DesignerPageCategoryNode>;
22
+ export declare const DesignerPageCategoriesDataSchema: z.ZodObject<{
23
+ category_group_key: z.ZodLiteral<"insertNewPage">;
24
+ categories: z.ZodArray<z.ZodType<DesignerPageCategoryNode, unknown, z.core.$ZodTypeInternals<DesignerPageCategoryNode, unknown>>>;
25
+ }, z.core.$strict>;
26
+ export declare const DesignerPageCatalogItemSchema: z.ZodObject<{
27
+ resource_id: z.ZodString;
28
+ resource_type: z.ZodEnum<{
29
+ page: "page";
30
+ pages: "pages";
31
+ }>;
32
+ name: z.ZodString;
33
+ description: z.ZodNullable<z.ZodString>;
34
+ thumbnail_url: z.ZodNullable<z.ZodString>;
35
+ resolved_version: z.ZodString;
36
+ category_id: z.ZodNullable<z.ZodString>;
37
+ }, z.core.$strict>;
38
+ export declare const DesignerPagesDataSchema: z.ZodObject<{
39
+ category_group_key: z.ZodLiteral<"insertNewPage">;
40
+ items: z.ZodArray<z.ZodObject<{
41
+ resource_id: z.ZodString;
42
+ resource_type: z.ZodEnum<{
43
+ page: "page";
44
+ pages: "pages";
45
+ }>;
46
+ name: z.ZodString;
47
+ description: z.ZodNullable<z.ZodString>;
48
+ thumbnail_url: z.ZodNullable<z.ZodString>;
49
+ resolved_version: z.ZodString;
50
+ category_id: z.ZodNullable<z.ZodString>;
51
+ }, z.core.$strict>>;
52
+ next_cursor: z.ZodNullable<z.ZodString>;
53
+ }, z.core.$strict>;
54
+ export declare const ListDesignerPagesQuerySchema: z.ZodObject<{
55
+ category_id: z.ZodOptional<z.ZodString>;
56
+ include_descendants: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
57
+ true: "true";
58
+ false: "false";
59
+ }>>, z.ZodTransform<boolean, "true" | "false" | undefined>>;
60
+ limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
61
+ cursor: z.ZodOptional<z.ZodString>;
62
+ }, z.core.$strict>;
63
+ export type DesignerPageCategoriesData = z.infer<typeof DesignerPageCategoriesDataSchema>;
64
+ export type DesignerPageCatalogItem = z.infer<typeof DesignerPageCatalogItemSchema>;
65
+ export type DesignerPagesData = z.infer<typeof DesignerPagesDataSchema>;
66
+ export type ListDesignerPagesQuery = z.infer<typeof ListDesignerPagesQuerySchema>;
67
+ export declare const DesignerPageExactVersionSchema: z.ZodString;
68
+ /**
69
+ * Designer phase one intentionally supports one route segment only. The
70
+ * designer owns the final route (including an optional random suffix); the
71
+ * engine validates it and never rewrites it.
72
+ */
73
+ export declare const PageResourceFinalRouteSchema: z.ZodString;
74
+ export type PageResourceFinalRoute = z.infer<typeof PageResourceFinalRouteSchema>;
75
+ export declare const DesignerSiteRouteIdSchema: z.ZodString;
76
+ export type DesignerSiteRouteId = z.infer<typeof DesignerSiteRouteIdSchema>;
77
+ export declare const PageResourcePageSelectionSchema: z.ZodObject<{
78
+ template_page_id: z.ZodString;
79
+ title: z.ZodString;
80
+ final_route: z.ZodString;
81
+ }, z.core.$strict>;
82
+ export type PageResourcePageSelection = z.infer<typeof PageResourcePageSelectionSchema>;
83
+ export declare const PageResourceDraftPageSchema: z.ZodObject<{
84
+ template_page_id: z.ZodString;
85
+ title: z.ZodString;
86
+ route: z.ZodObject<{
87
+ input: z.ZodString;
88
+ append_random_suffix: z.ZodOptional<z.ZodBoolean>;
89
+ random_suffix_length: z.ZodOptional<z.ZodNumber>;
90
+ final: z.ZodString;
91
+ }, z.core.$strict>;
92
+ }, z.core.$strict>;
93
+ export type PageResourceDraftPage = z.infer<typeof PageResourceDraftPageSchema>;
94
+ export declare const PageResourceDraftSchema: z.ZodObject<{
95
+ resource_id: z.ZodString;
96
+ resource_type: z.ZodEnum<{
97
+ page: "page";
98
+ pages: "pages";
99
+ }>;
100
+ resolved_version: z.ZodString;
101
+ pages: z.ZodArray<z.ZodObject<{
102
+ template_page_id: z.ZodString;
103
+ title: z.ZodString;
104
+ route: z.ZodObject<{
105
+ input: z.ZodString;
106
+ append_random_suffix: z.ZodOptional<z.ZodBoolean>;
107
+ random_suffix_length: z.ZodOptional<z.ZodNumber>;
108
+ final: z.ZodString;
109
+ }, z.core.$strict>;
110
+ }, z.core.$strict>>;
111
+ }, z.core.$strict>;
112
+ export type PageResourceDraft = z.infer<typeof PageResourceDraftSchema>;
113
+ export declare const InstallDesignerPageBodySchema: z.ZodObject<{
114
+ resource_type: z.ZodEnum<{
115
+ page: "page";
116
+ pages: "pages";
117
+ }>;
118
+ version: z.ZodString;
119
+ pages: z.ZodArray<z.ZodObject<{
120
+ template_page_id: z.ZodString;
121
+ title: z.ZodString;
122
+ final_route: z.ZodString;
123
+ }, z.core.$strict>>;
124
+ }, z.core.$strict>;
125
+ export type InstallDesignerPageBody = z.infer<typeof InstallDesignerPageBodySchema>;
126
+ export declare const PageResourceComponentReferenceSchema: z.ZodObject<{
127
+ instance_id: z.ZodString;
128
+ component_id: z.ZodString;
129
+ }, z.core.$strict>;
130
+ export type PageResourceComponentReference = z.infer<typeof PageResourceComponentReferenceSchema>;
131
+ export declare const PageResourceComponentSchema: z.ZodObject<{
132
+ component_id: z.ZodString;
133
+ materialization: z.ZodObject<{
134
+ instanceBaseName: z.ZodString;
135
+ files: z.ZodArray<z.ZodObject<{
136
+ pathTemplate: z.ZodString;
137
+ content: z.ZodString;
138
+ role: z.ZodOptional<z.ZodString>;
139
+ }, z.core.$strict>>;
140
+ entry: z.ZodObject<{
141
+ pathTemplate: z.ZodString;
142
+ export: z.ZodUnion<readonly [z.ZodObject<{
143
+ kind: z.ZodLiteral<"default">;
144
+ }, z.core.$strict>, z.ZodObject<{
145
+ kind: z.ZodLiteral<"named">;
146
+ name: z.ZodString;
147
+ }, z.core.$strict>]>;
148
+ }, z.core.$strict>;
149
+ dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
150
+ }, z.core.$strict>;
151
+ }, z.core.$strict>;
152
+ export type PageResourceComponent = z.infer<typeof PageResourceComponentSchema>;
153
+ export declare const PageResourcePageSchema: z.ZodObject<{
154
+ template_page_id: z.ZodString;
155
+ title: z.ZodString;
156
+ final_route: z.ZodString;
157
+ materialization: z.ZodObject<{
158
+ instanceBaseName: z.ZodString;
159
+ files: z.ZodArray<z.ZodObject<{
160
+ pathTemplate: z.ZodString;
161
+ content: z.ZodString;
162
+ role: z.ZodOptional<z.ZodString>;
163
+ }, z.core.$strict>>;
164
+ entry: z.ZodObject<{
165
+ pathTemplate: z.ZodString;
166
+ export: z.ZodUnion<readonly [z.ZodObject<{
167
+ kind: z.ZodLiteral<"default">;
168
+ }, z.core.$strict>, z.ZodObject<{
169
+ kind: z.ZodLiteral<"named">;
170
+ name: z.ZodString;
171
+ }, z.core.$strict>]>;
172
+ }, z.core.$strict>;
173
+ dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
174
+ }, z.core.$strict>;
175
+ components: z.ZodArray<z.ZodObject<{
176
+ instance_id: z.ZodString;
177
+ component_id: z.ZodString;
178
+ }, z.core.$strict>>;
179
+ }, z.core.$strict>;
180
+ export type PageResourcePage = z.infer<typeof PageResourcePageSchema>;
181
+ export declare const PageResourceArtifactSchema: z.ZodObject<{
182
+ resource_id: z.ZodString;
183
+ resource_type: z.ZodEnum<{
184
+ page: "page";
185
+ pages: "pages";
186
+ }>;
187
+ resolved_version: z.ZodString;
188
+ revision_id: z.ZodString;
189
+ digest_sha256: z.ZodString;
190
+ components: z.ZodArray<z.ZodObject<{
191
+ component_id: z.ZodString;
192
+ materialization: z.ZodObject<{
193
+ instanceBaseName: z.ZodString;
194
+ files: z.ZodArray<z.ZodObject<{
195
+ pathTemplate: z.ZodString;
196
+ content: z.ZodString;
197
+ role: z.ZodOptional<z.ZodString>;
198
+ }, z.core.$strict>>;
199
+ entry: z.ZodObject<{
200
+ pathTemplate: z.ZodString;
201
+ export: z.ZodUnion<readonly [z.ZodObject<{
202
+ kind: z.ZodLiteral<"default">;
203
+ }, z.core.$strict>, z.ZodObject<{
204
+ kind: z.ZodLiteral<"named">;
205
+ name: z.ZodString;
206
+ }, z.core.$strict>]>;
207
+ }, z.core.$strict>;
208
+ dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
209
+ }, z.core.$strict>;
210
+ }, z.core.$strict>>;
211
+ pages: z.ZodArray<z.ZodObject<{
212
+ template_page_id: z.ZodString;
213
+ title: z.ZodString;
214
+ final_route: z.ZodString;
215
+ materialization: z.ZodObject<{
216
+ instanceBaseName: z.ZodString;
217
+ files: z.ZodArray<z.ZodObject<{
218
+ pathTemplate: z.ZodString;
219
+ content: z.ZodString;
220
+ role: z.ZodOptional<z.ZodString>;
221
+ }, z.core.$strict>>;
222
+ entry: z.ZodObject<{
223
+ pathTemplate: z.ZodString;
224
+ export: z.ZodUnion<readonly [z.ZodObject<{
225
+ kind: z.ZodLiteral<"default">;
226
+ }, z.core.$strict>, z.ZodObject<{
227
+ kind: z.ZodLiteral<"named">;
228
+ name: z.ZodString;
229
+ }, z.core.$strict>]>;
230
+ }, z.core.$strict>;
231
+ dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
232
+ }, z.core.$strict>;
233
+ components: z.ZodArray<z.ZodObject<{
234
+ instance_id: z.ZodString;
235
+ component_id: z.ZodString;
236
+ }, z.core.$strict>>;
237
+ }, z.core.$strict>>;
238
+ project_dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
239
+ }, z.core.$strict>;
240
+ export type PageResourceArtifact = z.infer<typeof PageResourceArtifactSchema>;
241
+ export declare const DesignerPageInstallDataSchema: z.ZodObject<{
242
+ resource_id: z.ZodString;
243
+ resource_type: z.ZodEnum<{
244
+ page: "page";
245
+ pages: "pages";
246
+ }>;
247
+ resolved_version: z.ZodString;
248
+ revision_id: z.ZodString;
249
+ digest_sha256: z.ZodString;
250
+ components: z.ZodArray<z.ZodObject<{
251
+ component_id: z.ZodString;
252
+ materialization: z.ZodObject<{
253
+ instanceBaseName: z.ZodString;
254
+ files: z.ZodArray<z.ZodObject<{
255
+ pathTemplate: z.ZodString;
256
+ content: z.ZodString;
257
+ role: z.ZodOptional<z.ZodString>;
258
+ }, z.core.$strict>>;
259
+ entry: z.ZodObject<{
260
+ pathTemplate: z.ZodString;
261
+ export: z.ZodUnion<readonly [z.ZodObject<{
262
+ kind: z.ZodLiteral<"default">;
263
+ }, z.core.$strict>, z.ZodObject<{
264
+ kind: z.ZodLiteral<"named">;
265
+ name: z.ZodString;
266
+ }, z.core.$strict>]>;
267
+ }, z.core.$strict>;
268
+ dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
269
+ }, z.core.$strict>;
270
+ }, z.core.$strict>>;
271
+ pages: z.ZodArray<z.ZodObject<{
272
+ template_page_id: z.ZodString;
273
+ title: z.ZodString;
274
+ final_route: z.ZodString;
275
+ materialization: z.ZodObject<{
276
+ instanceBaseName: z.ZodString;
277
+ files: z.ZodArray<z.ZodObject<{
278
+ pathTemplate: z.ZodString;
279
+ content: z.ZodString;
280
+ role: z.ZodOptional<z.ZodString>;
281
+ }, z.core.$strict>>;
282
+ entry: z.ZodObject<{
283
+ pathTemplate: z.ZodString;
284
+ export: z.ZodUnion<readonly [z.ZodObject<{
285
+ kind: z.ZodLiteral<"default">;
286
+ }, z.core.$strict>, z.ZodObject<{
287
+ kind: z.ZodLiteral<"named">;
288
+ name: z.ZodString;
289
+ }, z.core.$strict>]>;
290
+ }, z.core.$strict>;
291
+ dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
292
+ }, z.core.$strict>;
293
+ components: z.ZodArray<z.ZodObject<{
294
+ instance_id: z.ZodString;
295
+ component_id: z.ZodString;
296
+ }, z.core.$strict>>;
297
+ }, z.core.$strict>>;
298
+ project_dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
299
+ }, z.core.$strict>;
300
+ export type DesignerPageInstallData = z.infer<typeof DesignerPageInstallDataSchema>;
301
+ export declare const PageResourceRouteMappingSchema: z.ZodObject<{
302
+ template_page_id: z.ZodString;
303
+ title: z.ZodString;
304
+ final_route: z.ZodString;
305
+ route_file_path: z.ZodString;
306
+ }, z.core.$strict>;
307
+ export type PageResourceRouteMapping = z.infer<typeof PageResourceRouteMappingSchema>;
308
+ export declare const DesignerPageResourceTemplateSchema: z.ZodObject<{
309
+ template_page_id: z.ZodString;
310
+ title: z.ZodString;
311
+ }, z.core.$strict>;
312
+ export type DesignerPageResourceTemplate = z.infer<typeof DesignerPageResourceTemplateSchema>;
313
+ export declare const DesignerPageResourcePreparationDataSchema: z.ZodObject<{
314
+ resource_id: z.ZodString;
315
+ resource_type: z.ZodEnum<{
316
+ page: "page";
317
+ pages: "pages";
318
+ }>;
319
+ resolved_version: z.ZodString;
320
+ pages: z.ZodArray<z.ZodObject<{
321
+ template_page_id: z.ZodString;
322
+ title: z.ZodString;
323
+ }, z.core.$strict>>;
324
+ }, z.core.$strict>;
325
+ export type DesignerPageResourcePreparationData = z.infer<typeof DesignerPageResourcePreparationDataSchema>;
326
+ export declare const PrepareDesignerPageBodySchema: z.ZodObject<{
327
+ resource_type: z.ZodEnum<{
328
+ page: "page";
329
+ pages: "pages";
330
+ }>;
331
+ version: z.ZodString;
332
+ }, z.core.$strict>;
333
+ export type PrepareDesignerPageBody = z.infer<typeof PrepareDesignerPageBodySchema>;
334
+ export declare const DesignerSitePageSchema: z.ZodObject<{
335
+ title: z.ZodString;
336
+ route_id: z.ZodString;
337
+ }, z.core.$strict>;
338
+ export type DesignerSitePage = z.infer<typeof DesignerSitePageSchema>;
339
+ export declare const DesignerSitePagesDataSchema: z.ZodObject<{
340
+ items: z.ZodArray<z.ZodObject<{
341
+ title: z.ZodString;
342
+ route_id: z.ZodString;
343
+ }, z.core.$strict>>;
344
+ }, z.core.$strict>;
345
+ export type DesignerSitePagesData = z.infer<typeof DesignerSitePagesDataSchema>;
346
+ export declare const EnhanceDesignerPageResourceBodySchema: z.ZodObject<{
347
+ candidate: z.ZodRecord<z.ZodString, z.ZodUnknown>;
348
+ }, z.core.$strict>;
349
+ export type EnhanceDesignerPageResourceBody = z.infer<typeof EnhanceDesignerPageResourceBodySchema>;