@vcp-dev/contracts 0.10.31 → 0.10.33
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/auth-account.d.ts +12 -0
- package/dist/designer-bridge-telemetry.d.ts +86 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +8 -8
- package/dist/media-library.d.ts +4 -2
- package/dist/preview-sandbox-cleanup.d.ts +96 -0
- package/dist/site-edit-version.d.ts +1 -1
- package/dist/site-initial-review.d.ts +293 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** 账号类别仅用于展示,不承担站点权限判断。未知整数保留给前端降级。 */
|
|
3
|
+
export declare const AuthProfileSchema: z.ZodObject<{
|
|
4
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
5
|
+
account_category: z.ZodNullable<z.ZodNumber>;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
export type AuthProfile = z.infer<typeof AuthProfileSchema>;
|
|
8
|
+
/** 域名允许名单由 API 配置校验;入口路径由 Account 管理。 */
|
|
9
|
+
export declare const ReturnWorkbenchResponseSchema: z.ZodObject<{
|
|
10
|
+
redirect_url: z.ZodURL;
|
|
11
|
+
}, z.core.$strict>;
|
|
12
|
+
export type ReturnWorkbenchResponse = z.infer<typeof ReturnWorkbenchResponseSchema>;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* 设计器编辑桥的前端诊断遥测。
|
|
4
|
+
*
|
|
5
|
+
* 只记录排查「编辑功能一直在连接」所需的阶段、耗时与机器可读错误码:每个 iframe
|
|
6
|
+
* 生命周期一条就绪摘要,加上超时、断线、重载等异常。不携带鉴权材料、URL query、
|
|
7
|
+
* 页面内容或错误正文;服务端写结构化日志,不落库。
|
|
8
|
+
*/
|
|
9
|
+
export declare const DESIGNER_BRIDGE_TELEMETRY_MAX_EVENTS = 20;
|
|
10
|
+
export declare const DesignerBridgeTelemetryEventTypeSchema: z.ZodEnum<{
|
|
11
|
+
lifecycle_ready: "lifecycle_ready";
|
|
12
|
+
activation_timeout: "activation_timeout";
|
|
13
|
+
bridge_failure: "bridge_failure";
|
|
14
|
+
readiness_recovery_failed: "readiness_recovery_failed";
|
|
15
|
+
}>;
|
|
16
|
+
export type DesignerBridgeTelemetryEventType = z.infer<typeof DesignerBridgeTelemetryEventTypeSchema>;
|
|
17
|
+
export declare const DesignerBridgeTelemetryEventSchema: z.ZodObject<{
|
|
18
|
+
type: z.ZodEnum<{
|
|
19
|
+
lifecycle_ready: "lifecycle_ready";
|
|
20
|
+
activation_timeout: "activation_timeout";
|
|
21
|
+
bridge_failure: "bridge_failure";
|
|
22
|
+
readiness_recovery_failed: "readiness_recovery_failed";
|
|
23
|
+
}>;
|
|
24
|
+
lifecycle_id: z.ZodString;
|
|
25
|
+
elapsed_ms: z.ZodNumber;
|
|
26
|
+
route_id: z.ZodOptional<z.ZodString>;
|
|
27
|
+
expected_snapshot_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
bridge_state: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
failed: "failed";
|
|
30
|
+
ready: "ready";
|
|
31
|
+
connecting: "connecting";
|
|
32
|
+
reconnecting: "reconnecting";
|
|
33
|
+
"reload-required": "reload-required";
|
|
34
|
+
}>>;
|
|
35
|
+
failure_code: z.ZodOptional<z.ZodString>;
|
|
36
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
37
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
38
|
+
failed: "failed";
|
|
39
|
+
}>>;
|
|
40
|
+
transport_ms: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
activation_ms: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
reconnects: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
reloads: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
edit_engine_version: z.ZodOptional<z.ZodString>;
|
|
45
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
visible: "visible";
|
|
47
|
+
hidden: "hidden";
|
|
48
|
+
}>>;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
export type DesignerBridgeTelemetryEvent = z.infer<typeof DesignerBridgeTelemetryEventSchema>;
|
|
51
|
+
export declare const DesignerBridgeTelemetryBatchSchema: z.ZodObject<{
|
|
52
|
+
events: z.ZodArray<z.ZodObject<{
|
|
53
|
+
type: z.ZodEnum<{
|
|
54
|
+
lifecycle_ready: "lifecycle_ready";
|
|
55
|
+
activation_timeout: "activation_timeout";
|
|
56
|
+
bridge_failure: "bridge_failure";
|
|
57
|
+
readiness_recovery_failed: "readiness_recovery_failed";
|
|
58
|
+
}>;
|
|
59
|
+
lifecycle_id: z.ZodString;
|
|
60
|
+
elapsed_ms: z.ZodNumber;
|
|
61
|
+
route_id: z.ZodOptional<z.ZodString>;
|
|
62
|
+
expected_snapshot_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
bridge_state: z.ZodOptional<z.ZodEnum<{
|
|
64
|
+
failed: "failed";
|
|
65
|
+
ready: "ready";
|
|
66
|
+
connecting: "connecting";
|
|
67
|
+
reconnecting: "reconnecting";
|
|
68
|
+
"reload-required": "reload-required";
|
|
69
|
+
}>>;
|
|
70
|
+
failure_code: z.ZodOptional<z.ZodString>;
|
|
71
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
72
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
73
|
+
failed: "failed";
|
|
74
|
+
}>>;
|
|
75
|
+
transport_ms: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
activation_ms: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
reconnects: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
reloads: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
edit_engine_version: z.ZodOptional<z.ZodString>;
|
|
80
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
81
|
+
visible: "visible";
|
|
82
|
+
hidden: "hidden";
|
|
83
|
+
}>>;
|
|
84
|
+
}, z.core.$strict>>;
|
|
85
|
+
}, z.core.$strict>;
|
|
86
|
+
export type DesignerBridgeTelemetryBatch = z.infer<typeof DesignerBridgeTelemetryBatchSchema>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export { PREVIEW_SANDBOX_CLEANUP_LIMIT, PREVIEW_SANDBOX_CLEANUP_CONFLICT_ERROR_CODE, ClaimPreviewSandboxCleanupsRequestSchema, ClaimPreviewSandboxCleanupsResponseSchema, CompletePreviewSandboxCleanupRequestSchema, CompletePreviewSandboxCleanupResponseSchema, type ClaimPreviewSandboxCleanupsRequest, type ClaimPreviewSandboxCleanupsResponse, type CompletePreviewSandboxCleanupRequest, type CompletePreviewSandboxCleanupResponse, } from "./preview-sandbox-cleanup.js";
|
|
2
3
|
export { BlockInteractionSchema, type BlockInteraction, } from "./block-interaction.js";
|
|
3
4
|
export { NextPageCodeErrorSchema, isNextPageCodeErrorCode, type NextPageCodeError, } from "./next-page-code-error.js";
|
|
4
5
|
import { type TemplateVersion } from "./template-version.js";
|
|
@@ -20,6 +21,7 @@ export * from "./external-site-edit.js";
|
|
|
20
21
|
export * from "./workspace-attachment.js";
|
|
21
22
|
export * from "./internal-entity-id.js";
|
|
22
23
|
export * from "./run-control.js";
|
|
24
|
+
export * from "./designer-bridge-telemetry.js";
|
|
23
25
|
export * from "./designer-component-library.js";
|
|
24
26
|
export * from "./designer-page-library.js";
|
|
25
27
|
export * from "./component-i18n-resources.js";
|
|
@@ -20068,6 +20070,22 @@ export declare const REST_API_ENDPOINTS: readonly [{
|
|
|
20068
20070
|
readonly status: "implemented";
|
|
20069
20071
|
readonly request_body_schema: "PersistPreviewSessionRequestSchema";
|
|
20070
20072
|
readonly response_schema: "PersistPreviewSessionResponseSchema";
|
|
20073
|
+
}, {
|
|
20074
|
+
readonly method: "POST";
|
|
20075
|
+
readonly path: "/internal/sites/:site_id/preview-sandbox-cleanups/claim";
|
|
20076
|
+
readonly tag: "sandbox-sessions";
|
|
20077
|
+
readonly summary: "Claim up to 32 persisted retired preview sessions under exact current snapshot and canonical ready-session CAS; preserve the current physical sandbox and retry stopping tombstones across processes.";
|
|
20078
|
+
readonly status: "implemented";
|
|
20079
|
+
readonly request_body_schema: "ClaimPreviewSandboxCleanupsRequestSchema";
|
|
20080
|
+
readonly response_schema: "ClaimPreviewSandboxCleanupsResponseSchema";
|
|
20081
|
+
}, {
|
|
20082
|
+
readonly method: "POST";
|
|
20083
|
+
readonly path: "/internal/sites/:site_id/preview-sandbox-cleanups/:session_id/complete";
|
|
20084
|
+
readonly tag: "sandbox-sessions";
|
|
20085
|
+
readonly summary: "Acknowledge confirmed provider termination for an exact tenant/site/session/sandbox stopping tombstone; matching stopped acknowledgements are idempotent.";
|
|
20086
|
+
readonly status: "implemented";
|
|
20087
|
+
readonly request_body_schema: "CompletePreviewSandboxCleanupRequestSchema";
|
|
20088
|
+
readonly response_schema: "CompletePreviewSandboxCleanupResponseSchema";
|
|
20071
20089
|
}, {
|
|
20072
20090
|
readonly method: "GET";
|
|
20073
20091
|
readonly path: "/sites/:site_id/preview-sessions/current";
|
|
@@ -24209,3 +24227,5 @@ export type { WorkspaceDesignApplyRequest, WorkspaceDesignApplyResponse, Workspa
|
|
|
24209
24227
|
export * from "./step5-keyword-library.js";
|
|
24210
24228
|
export * from "./cms-navigation.js";
|
|
24211
24229
|
export * from "./site-migration-progress.js";
|
|
24230
|
+
export * from "./auth-account.js";
|
|
24231
|
+
export * from "./site-initial-review.js";
|