@vcp-dev/contracts 0.10.11 → 0.10.12
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/colorway-distinctness.js +1 -1
- package/dist/connect-dynamic-collection.d.ts +2 -0
- package/dist/design-token-block.d.ts +119 -0
- package/dist/design-token-block.js +2 -0
- package/dist/design-tokens.d.ts +16 -6
- package/dist/design-tokens.js +1 -1
- package/dist/external-site-edit.d.ts +403 -0
- package/dist/globals-css-edit-guard.d.ts +15 -0
- package/dist/index.d.ts +64 -48
- package/dist/index.js +11 -1
- package/dist/launcher-prompt-templates.d.ts +2 -2
- package/dist/page-template.d.ts +2 -1
- package/dist/site-design-notes.d.ts +49 -0
- package/dist/site-edit-command-result.d.ts +2 -0
- package/dist/site-edit-version.d.ts +1 -1
- package/dist/site-migration-progress.d.ts +78 -0
- package/dist/site-permissions.d.ts +43 -0
- package/dist/site-workflow.d.ts +6 -0
- package/dist/workspace-design-apply.d.ts +47 -1
- package/package.json +6 -1
|
@@ -323,8 +323,8 @@ export declare const LauncherPromptTemplateApplyRequestSchema: z.ZodObject<{
|
|
|
323
323
|
userEdited: z.ZodBoolean;
|
|
324
324
|
lastEditedAt: z.ZodString;
|
|
325
325
|
lastEditedBy: z.ZodEnum<{
|
|
326
|
-
ai: "ai";
|
|
327
326
|
user: "user";
|
|
327
|
+
ai: "ai";
|
|
328
328
|
}>;
|
|
329
329
|
userInstruction: z.ZodOptional<z.ZodString>;
|
|
330
330
|
}, z.core.$strip>>;
|
|
@@ -510,8 +510,8 @@ export declare const LauncherPromptTemplateApplyResponseSchema: z.ZodObject<{
|
|
|
510
510
|
userEdited: z.ZodBoolean;
|
|
511
511
|
lastEditedAt: z.ZodString;
|
|
512
512
|
lastEditedBy: z.ZodEnum<{
|
|
513
|
-
ai: "ai";
|
|
514
513
|
user: "user";
|
|
514
|
+
ai: "ai";
|
|
515
515
|
}>;
|
|
516
516
|
userInstruction: z.ZodOptional<z.ZodString>;
|
|
517
517
|
}, z.core.$strip>>;
|
package/dist/page-template.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export declare const PageTemplateTaskSchema: z.ZodObject<{
|
|
|
92
92
|
failed: "failed";
|
|
93
93
|
}>>;
|
|
94
94
|
degraded_reason: z.ZodNull;
|
|
95
|
+
changes: z.ZodDefault<z.ZodNull>;
|
|
95
96
|
}, z.core.$strict>;
|
|
96
97
|
export type PageTemplateTask = z.infer<typeof PageTemplateTaskSchema>;
|
|
97
98
|
/** Create returns the shared asynchronous task envelope (HTTP 202). */
|
|
@@ -124,6 +125,7 @@ export declare const PageTemplateCreateResponseSchema: z.ZodObject<{
|
|
|
124
125
|
failed: "failed";
|
|
125
126
|
}>>;
|
|
126
127
|
degraded_reason: z.ZodNull;
|
|
128
|
+
changes: z.ZodDefault<z.ZodNull>;
|
|
127
129
|
}, z.core.$strict>;
|
|
128
130
|
}, z.core.$strict>;
|
|
129
131
|
export type PageTemplateCreateResponse = z.infer<typeof PageTemplateCreateResponseSchema>;
|
|
@@ -156,7 +158,6 @@ export declare const PageTemplateErrorCodeSchema: z.ZodEnum<{
|
|
|
156
158
|
PAGE_TEMPLATE_ID_COLLISION: "PAGE_TEMPLATE_ID_COLLISION";
|
|
157
159
|
PAGE_TEMPLATE_MANAGED_SOURCE_INVALID: "PAGE_TEMPLATE_MANAGED_SOURCE_INVALID";
|
|
158
160
|
PAGE_TEMPLATE_SNAPSHOT_CONFLICT: "PAGE_TEMPLATE_SNAPSHOT_CONFLICT";
|
|
159
|
-
PAGE_TEMPLATE_DYNAMIC_ROUTE_UNSUPPORTED: "PAGE_TEMPLATE_DYNAMIC_ROUTE_UNSUPPORTED";
|
|
160
161
|
PAGE_TEMPLATE_SOURCE_UNSUPPORTED: "PAGE_TEMPLATE_SOURCE_UNSUPPORTED";
|
|
161
162
|
PAGE_TEMPLATE_GENERATION_FAILED: "PAGE_TEMPLATE_GENERATION_FAILED";
|
|
162
163
|
PAGE_TEMPLATE_PATCH_FAILED: "PAGE_TEMPLATE_PATCH_FAILED";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* `app/globals.css` 里给 Agent 读的设计说明注释:自由文本行 + 结构化的调色板
|
|
4
|
+
* 输入依据。明暗底不进这里——一律读令牌区的 `color-scheme`(方案同步,见
|
|
5
|
+
* `design-token-block.ts` 的 `readColorScheme`)。
|
|
6
|
+
*/
|
|
7
|
+
export declare const SITE_DESIGN_NOTES_START = "/* <cms-builder:site-design-notes>";
|
|
8
|
+
export declare const SITE_DESIGN_NOTES_END = "</cms-builder:site-design-notes> */";
|
|
9
|
+
export declare const PaletteInputsSchema: z.ZodObject<{
|
|
10
|
+
primarySource: z.ZodEnum<{
|
|
11
|
+
user: "user";
|
|
12
|
+
derived: "derived";
|
|
13
|
+
}>;
|
|
14
|
+
neutral: z.ZodOptional<z.ZodString>;
|
|
15
|
+
foreground: z.ZodOptional<z.ZodString>;
|
|
16
|
+
supporting: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
|
+
imagePalette: z.ZodOptional<z.ZodObject<{
|
|
18
|
+
background: z.ZodOptional<z.ZodString>;
|
|
19
|
+
foreground: z.ZodOptional<z.ZodString>;
|
|
20
|
+
card: z.ZodOptional<z.ZodString>;
|
|
21
|
+
muted: z.ZodOptional<z.ZodString>;
|
|
22
|
+
border: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type PaletteInputs = z.infer<typeof PaletteInputsSchema>;
|
|
26
|
+
export type SiteDesignNotes = {
|
|
27
|
+
lines: string[];
|
|
28
|
+
paletteInputs: PaletteInputs | null;
|
|
29
|
+
};
|
|
30
|
+
export declare function formatSiteDesignNotes(notes: SiteDesignNotes): string;
|
|
31
|
+
/**
|
|
32
|
+
* 去掉 site-design-notes 注释块,连同 `upsertSiteDesignNotes` 插入它时附带的
|
|
33
|
+
* 换行一起清除,使「css 只有这段注释不同」在去除后能精确比较回同一份 CSS
|
|
34
|
+
* (对「块内容不同,其余字节相同」的两份 CSS 做相等性判断时尤其需要)。
|
|
35
|
+
*
|
|
36
|
+
* `upsertSiteDesignNotes` 有两条插入路径,各自加的换行数量固定,与插入点原有
|
|
37
|
+
* 的格式无关:
|
|
38
|
+
* - 紧跟最后一条 `@import` 插入(或替换已有块):块前、块后各恰好加一个换行。
|
|
39
|
+
* - 没有 `@import` 可挂靠、块插在文件开头:块后固定加两个换行(`\n\n`)。
|
|
40
|
+
* 按块前是否为空区分这两条路径,只吃掉这固定数量的换行,不动插入点本来就有
|
|
41
|
+
* 的其余换行——这样才能在原 css 本身带空行格式时也精确复原。
|
|
42
|
+
*/
|
|
43
|
+
export declare function stripSiteDesignNotes(css: string): string;
|
|
44
|
+
export declare function readSiteDesignNotes(css: string): SiteDesignNotes | null;
|
|
45
|
+
/**
|
|
46
|
+
* 有则替换,无则插在**最后一个** `@import` 行之后(模板常见连续多条 `@import`,
|
|
47
|
+
* 插在第一个之后会把说明注释楔进 import 语句之间);没有 import 时放文件开头。
|
|
48
|
+
*/
|
|
49
|
+
export declare function upsertSiteDesignNotes(css: string, notes: SiteDesignNotes): string;
|
|
@@ -3,6 +3,7 @@ import { type SiteEditCompositionContext } from "./site-edit-composition.js";
|
|
|
3
3
|
export declare const SiteEditCommandErrorSchema: z.ZodObject<{
|
|
4
4
|
code: z.ZodString;
|
|
5
5
|
message: z.ZodString;
|
|
6
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
7
|
}, z.core.$strip>;
|
|
7
8
|
export type SiteEditCommandError = z.infer<typeof SiteEditCommandErrorSchema>;
|
|
8
9
|
export declare const SiteEditCommandDiagnosticSchema: z.ZodObject<{
|
|
@@ -53,6 +54,7 @@ export type SiteEditCommandFailure<TCode extends string = string, TCurrent = unk
|
|
|
53
54
|
error: {
|
|
54
55
|
code: TCode;
|
|
55
56
|
message: string;
|
|
57
|
+
details?: Record<string, unknown>;
|
|
56
58
|
};
|
|
57
59
|
current?: TCurrent;
|
|
58
60
|
diagnostics?: TDiagnostic[];
|
|
@@ -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.
|
|
8
|
+
export declare const CURRENT_EDIT_ENGINE_VERSION = "0.10.12";
|
|
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";
|
|
@@ -46,6 +46,56 @@ export declare const MigrationCollectionProgressSchema: z.ZodDiscriminatedUnion<
|
|
|
46
46
|
imported: z.ZodNumber;
|
|
47
47
|
exception: z.ZodNumber;
|
|
48
48
|
}, z.core.$strict>], "status">;
|
|
49
|
+
/** Site-wide reasons that make every written redirect ineffective. */
|
|
50
|
+
export declare const MigrationRedirectSiteReasonSchema: z.ZodEnum<{
|
|
51
|
+
legacy_domain_not_routed: "legacy_domain_not_routed";
|
|
52
|
+
site_context_missing: "site_context_missing";
|
|
53
|
+
site_rules_limit_exceeded: "site_rules_limit_exceeded";
|
|
54
|
+
site_rules_not_served: "site_rules_not_served";
|
|
55
|
+
}>;
|
|
56
|
+
export declare const MigrationRedirectReasonCodeSchema: z.ZodEnum<{
|
|
57
|
+
legacy_domain_not_routed: "legacy_domain_not_routed";
|
|
58
|
+
site_context_missing: "site_context_missing";
|
|
59
|
+
site_rules_limit_exceeded: "site_rules_limit_exceeded";
|
|
60
|
+
site_rules_not_served: "site_rules_not_served";
|
|
61
|
+
target_page_unpublished: "target_page_unpublished";
|
|
62
|
+
redirect_target_missing: "redirect_target_missing";
|
|
63
|
+
redirect_write_failed: "redirect_write_failed";
|
|
64
|
+
}>;
|
|
65
|
+
/**
|
|
66
|
+
* Initialization 301 card, returned only after the site is published.
|
|
67
|
+
* "active" is inferred by the migration service (rule written + site-wide
|
|
68
|
+
* checks), not probed per URL. Processing/unavailable carry no counts.
|
|
69
|
+
*/
|
|
70
|
+
export declare const MigrationRedirectProgressSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
71
|
+
status: z.ZodLiteral<"processing">;
|
|
72
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
73
|
+
status: z.ZodLiteral<"unavailable">;
|
|
74
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
75
|
+
status: z.ZodLiteral<"ready">;
|
|
76
|
+
site_reason: z.ZodNullable<z.ZodEnum<{
|
|
77
|
+
legacy_domain_not_routed: "legacy_domain_not_routed";
|
|
78
|
+
site_context_missing: "site_context_missing";
|
|
79
|
+
site_rules_limit_exceeded: "site_rules_limit_exceeded";
|
|
80
|
+
site_rules_not_served: "site_rules_not_served";
|
|
81
|
+
}>>;
|
|
82
|
+
same_path: z.ZodNumber;
|
|
83
|
+
active: z.ZodNumber;
|
|
84
|
+
exception: z.ZodNumber;
|
|
85
|
+
exceptions: z.ZodArray<z.ZodObject<{
|
|
86
|
+
path: z.ZodString;
|
|
87
|
+
reason_code: z.ZodEnum<{
|
|
88
|
+
legacy_domain_not_routed: "legacy_domain_not_routed";
|
|
89
|
+
site_context_missing: "site_context_missing";
|
|
90
|
+
site_rules_limit_exceeded: "site_rules_limit_exceeded";
|
|
91
|
+
site_rules_not_served: "site_rules_not_served";
|
|
92
|
+
target_page_unpublished: "target_page_unpublished";
|
|
93
|
+
redirect_target_missing: "redirect_target_missing";
|
|
94
|
+
redirect_write_failed: "redirect_write_failed";
|
|
95
|
+
}>;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
}, z.core.$strip>], "status">;
|
|
98
|
+
export type MigrationRedirectProgress = z.infer<typeof MigrationRedirectProgressSchema>;
|
|
49
99
|
/** Additive fields shared by the service boundary and browser adapter. */
|
|
50
100
|
export declare const MigrationContentProgressSchema: z.ZodObject<{
|
|
51
101
|
overall_status: z.ZodEnum<{
|
|
@@ -109,5 +159,33 @@ export declare const MigrationContentProgressSchema: z.ZodObject<{
|
|
|
109
159
|
kind_budget_exhausted: "kind_budget_exhausted";
|
|
110
160
|
}>;
|
|
111
161
|
}, z.core.$strip>>;
|
|
162
|
+
redirects: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
163
|
+
status: z.ZodLiteral<"processing">;
|
|
164
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
165
|
+
status: z.ZodLiteral<"unavailable">;
|
|
166
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
167
|
+
status: z.ZodLiteral<"ready">;
|
|
168
|
+
site_reason: z.ZodNullable<z.ZodEnum<{
|
|
169
|
+
legacy_domain_not_routed: "legacy_domain_not_routed";
|
|
170
|
+
site_context_missing: "site_context_missing";
|
|
171
|
+
site_rules_limit_exceeded: "site_rules_limit_exceeded";
|
|
172
|
+
site_rules_not_served: "site_rules_not_served";
|
|
173
|
+
}>>;
|
|
174
|
+
same_path: z.ZodNumber;
|
|
175
|
+
active: z.ZodNumber;
|
|
176
|
+
exception: z.ZodNumber;
|
|
177
|
+
exceptions: z.ZodArray<z.ZodObject<{
|
|
178
|
+
path: z.ZodString;
|
|
179
|
+
reason_code: z.ZodEnum<{
|
|
180
|
+
legacy_domain_not_routed: "legacy_domain_not_routed";
|
|
181
|
+
site_context_missing: "site_context_missing";
|
|
182
|
+
site_rules_limit_exceeded: "site_rules_limit_exceeded";
|
|
183
|
+
site_rules_not_served: "site_rules_not_served";
|
|
184
|
+
target_page_unpublished: "target_page_unpublished";
|
|
185
|
+
redirect_target_missing: "redirect_target_missing";
|
|
186
|
+
redirect_write_failed: "redirect_write_failed";
|
|
187
|
+
}>;
|
|
188
|
+
}, z.core.$strip>>;
|
|
189
|
+
}, z.core.$strip>], "status">>>;
|
|
112
190
|
}, z.core.$strip>;
|
|
113
191
|
export type MigrationContentProgress = z.infer<typeof MigrationContentProgressSchema>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 建站范围权限:VCP 在建站流程里唯一消费的授权维度。
|
|
3
|
+
*
|
|
4
|
+
* 增长平台负责「网站建设」等菜单与按钮权限,并决定用户能否跳转过来;VCP 不重复
|
|
5
|
+
* 判定那一层,只读取当前用户在当前主站上的建站范围。方案见
|
|
6
|
+
* docs/security/2026-09-17-site-permissions-design.md。
|
|
7
|
+
*/
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
/**
|
|
10
|
+
* none 是「1–7 和 1–8 都没选」的正常结果,不是数据缺失,也不能回落成 build。
|
|
11
|
+
*/
|
|
12
|
+
export declare const LauncherScopeSchema: z.ZodEnum<{
|
|
13
|
+
none: "none";
|
|
14
|
+
build: "build";
|
|
15
|
+
build_publish: "build_publish";
|
|
16
|
+
}>;
|
|
17
|
+
export type LauncherScope = z.infer<typeof LauncherScopeSchema>;
|
|
18
|
+
export declare const SiteLauncherPermissionSchema: z.ZodObject<{
|
|
19
|
+
site_id: z.ZodUUID;
|
|
20
|
+
launcher_scope: z.ZodEnum<{
|
|
21
|
+
none: "none";
|
|
22
|
+
build: "build";
|
|
23
|
+
build_publish: "build_publish";
|
|
24
|
+
}>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export type SiteLauncherPermission = z.infer<typeof SiteLauncherPermissionSchema>;
|
|
27
|
+
export declare const GetSiteLauncherPermissionResponseSchema: z.ZodObject<{
|
|
28
|
+
permission: z.ZodObject<{
|
|
29
|
+
site_id: z.ZodUUID;
|
|
30
|
+
launcher_scope: z.ZodEnum<{
|
|
31
|
+
none: "none";
|
|
32
|
+
build: "build";
|
|
33
|
+
build_publish: "build_publish";
|
|
34
|
+
}>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type GetSiteLauncherPermissionResponse = z.infer<typeof GetSiteLauncherPermissionResponseSchema>;
|
|
38
|
+
/**
|
|
39
|
+
* 两个判断都从范围派生,不单独配置:单个布尔值分不出「未选择」和「1–7」,
|
|
40
|
+
* 所以合同保留三态。
|
|
41
|
+
*/
|
|
42
|
+
export declare function canEnterLauncher(scope: LauncherScope): boolean;
|
|
43
|
+
export declare function canPublishSite(scope: LauncherScope): boolean;
|
package/dist/site-workflow.d.ts
CHANGED
|
@@ -932,6 +932,12 @@ export declare const CompleteSiteWorkflowRequestSchema: z.ZodObject<{
|
|
|
932
932
|
expected_current_node: z.ZodLiteral<"publishing">;
|
|
933
933
|
}, z.core.$strict>;
|
|
934
934
|
export type CompleteSiteWorkflowRequest = z.infer<typeof CompleteSiteWorkflowRequestSchema>;
|
|
935
|
+
export declare const CompleteQualityOnlyWorkflowRequestSchema: z.ZodObject<{
|
|
936
|
+
expected_current_node: z.ZodLiteral<"preview_personalization">;
|
|
937
|
+
publish_workflow_id: z.ZodUUID;
|
|
938
|
+
expected_publish_revision: z.ZodNumber;
|
|
939
|
+
}, z.core.$strict>;
|
|
940
|
+
export type CompleteQualityOnlyWorkflowRequest = z.infer<typeof CompleteQualityOnlyWorkflowRequestSchema>;
|
|
935
941
|
export declare const RegisterWorkflowTaskRequestSchema: z.ZodObject<{
|
|
936
942
|
node_code: z.ZodEnum<{
|
|
937
943
|
welcome: "welcome";
|
|
@@ -18,7 +18,7 @@ export declare const WorkspaceDesignApplyRequestSchema: z.ZodObject<{
|
|
|
18
18
|
export type WorkspaceDesignApplyRequest = z.infer<typeof WorkspaceDesignApplyRequestSchema>;
|
|
19
19
|
export declare const WorkspaceDesignApplyResponseSchema: z.ZodObject<{
|
|
20
20
|
ok: z.ZodLiteral<true>;
|
|
21
|
-
design_plan_version: z.ZodNumber
|
|
21
|
+
design_plan_version: z.ZodOptional<z.ZodNumber>;
|
|
22
22
|
snapshot_id: z.ZodUUID;
|
|
23
23
|
site_design_context: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
24
24
|
visualDirection: z.ZodString;
|
|
@@ -78,3 +78,49 @@ export declare const WorkspaceDesignApplyResponseSchema: z.ZodObject<{
|
|
|
78
78
|
changed_files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
79
79
|
}, z.core.$strip>;
|
|
80
80
|
export type WorkspaceDesignApplyResponse = z.infer<typeof WorkspaceDesignApplyResponseSchema>;
|
|
81
|
+
/**
|
|
82
|
+
* Response for the workspace design panel's baseline read. Reverse-derived
|
|
83
|
+
* from `app/globals.css`'s executable token block when the snapshot has one
|
|
84
|
+
* (`source: "globals_css"`); falls back to the persisted DesignPlan archive's
|
|
85
|
+
* `siteDesignContext` for older snapshots that never materialized a token
|
|
86
|
+
* block (`source: "design_plan_archive"`).
|
|
87
|
+
*/
|
|
88
|
+
export declare const WorkspaceDesignCurrentResponseSchema: z.ZodObject<{
|
|
89
|
+
snapshot_id: z.ZodUUID;
|
|
90
|
+
color_seeds: z.ZodNullable<z.ZodObject<{
|
|
91
|
+
primary: z.ZodString;
|
|
92
|
+
accent: z.ZodString;
|
|
93
|
+
foreground: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
|
+
surface_mode: z.ZodNullable<z.ZodEnum<{
|
|
96
|
+
light: "light";
|
|
97
|
+
dark: "dark";
|
|
98
|
+
}>>;
|
|
99
|
+
fonts: z.ZodNullable<z.ZodObject<{
|
|
100
|
+
heading: z.ZodString;
|
|
101
|
+
body: z.ZodString;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
palette_inputs_present: z.ZodBoolean;
|
|
104
|
+
palette_inputs: z.ZodNullable<z.ZodObject<{
|
|
105
|
+
primarySource: z.ZodEnum<{
|
|
106
|
+
user: "user";
|
|
107
|
+
derived: "derived";
|
|
108
|
+
}>;
|
|
109
|
+
neutral: z.ZodOptional<z.ZodString>;
|
|
110
|
+
foreground: z.ZodOptional<z.ZodString>;
|
|
111
|
+
supporting: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
112
|
+
imagePalette: z.ZodOptional<z.ZodObject<{
|
|
113
|
+
background: z.ZodOptional<z.ZodString>;
|
|
114
|
+
foreground: z.ZodOptional<z.ZodString>;
|
|
115
|
+
card: z.ZodOptional<z.ZodString>;
|
|
116
|
+
muted: z.ZodOptional<z.ZodString>;
|
|
117
|
+
border: z.ZodOptional<z.ZodString>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
notes: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
121
|
+
source: z.ZodEnum<{
|
|
122
|
+
globals_css: "globals_css";
|
|
123
|
+
design_plan_archive: "design_plan_archive";
|
|
124
|
+
}>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
export type WorkspaceDesignCurrentResponse = z.infer<typeof WorkspaceDesignCurrentResponseSchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vcp-dev/contracts",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -32,6 +32,11 @@
|
|
|
32
32
|
"types": "./dist/design-tokens.d.ts",
|
|
33
33
|
"default": "./dist/design-tokens.js"
|
|
34
34
|
},
|
|
35
|
+
"./design-token-block": {
|
|
36
|
+
"development": "./src/design-token-block.ts",
|
|
37
|
+
"types": "./dist/design-token-block.d.ts",
|
|
38
|
+
"default": "./dist/design-token-block.js"
|
|
39
|
+
},
|
|
35
40
|
"./colorway-distinctness": {
|
|
36
41
|
"development": "./src/colorway-distinctness.ts",
|
|
37
42
|
"types": "./dist/colorway-distinctness.d.ts",
|