/** 事件类型 */ export type EventType = 'track' | 'perf' | 'performance' | 'behavior' | 'error' | 'replay' | 'log' | 'trace' /** 行为事件名称枚举 */ export type BehaviorEventName = | 'pv' | 'page_leave' | 'click' | 'scroll' | 'route_change' | 'hashchange' | 'popstate' | 'pushState' | 'replaceState' | 'form_submit' | 'rage_click' | 'dead_click' | 'copy' | 'paste' | 'download' | 'input_focus' | 'input_blur' | 'input_change' | 'select_change' | 'keyboard' | 'touch_tap' | 'touch_swipe' | 'app_start' | 'app_foreground' | 'app_background' | 'network_change' /** 用户信息 */ export interface EysUser { /** 用户唯一标识 */ id?: string /** 用户名称 */ name?: string /** 用户手机号 */ phone?: string /** 用户 ID(别名) */ userId?: string /** 用户名(别名) */ userName?: string /** 用户手机号(别名) */ userPhone?: string } /** 隐私同意状态 */ export type ConsentStatus = 'granted' | 'denied' /** * 隐私策略档位。 * 注意两级分类(见 ADR-007):第一级凭据(password/token/secret/authorization/cookie/apikey/jwt… * 及对应请求头)在**所有档位(含 off)**常驻剥离,是有意的 carve-out、不违反"采集层不丢弃"原则; * 第二级通用 PII(自由文本邮箱/手机/身份证/银行卡/JWT、表单值、URL query、body PII)才受本档位控制。 * - `off`:关闭第二级通用 PII 的采集层脱敏(全量采集);凭据剥离仍生效。仅用于已具备下游查询层脱敏的应用。 * - `balanced`(默认,刻意的隐私安全出厂默认):对第二级 PII 做采集层脱敏。 * - `strict`:在 balanced 基础上进一步收紧(丢弃整个 URL query、