@vcp-dev/contracts 0.10.31 → 0.10.32

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.
@@ -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
@@ -20,6 +20,7 @@ export * from "./external-site-edit.js";
20
20
  export * from "./workspace-attachment.js";
21
21
  export * from "./internal-entity-id.js";
22
22
  export * from "./run-control.js";
23
+ export * from "./designer-bridge-telemetry.js";
23
24
  export * from "./designer-component-library.js";
24
25
  export * from "./designer-page-library.js";
25
26
  export * from "./component-i18n-resources.js";
@@ -24209,3 +24210,4 @@ export type { WorkspaceDesignApplyRequest, WorkspaceDesignApplyResponse, Workspa
24209
24210
  export * from "./step5-keyword-library.js";
24210
24211
  export * from "./cms-navigation.js";
24211
24212
  export * from "./site-migration-progress.js";
24213
+ export * from "./auth-account.js";