mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-08-17 19:47:08 +08:00
39 lines
885 B
TypeScript
39 lines
885 B
TypeScript
export type AgentHubRuntimeStatus = 'starting' | 'online' | 'offline' | 'error'
|
|
export type WechatConnectorStatus =
|
|
| 'checking'
|
|
| 'disconnected'
|
|
| 'starting'
|
|
| 'waiting_scan'
|
|
| 'scanned'
|
|
| 'online'
|
|
| 'error'
|
|
|
|
export interface AgentHubStatus {
|
|
hub: AgentHubRuntimeStatus
|
|
connector: WechatConnectorStatus
|
|
qrCodeDataUrl?: string
|
|
accountId?: string
|
|
wechatUserId?: string
|
|
error?: string
|
|
updatedAt: number
|
|
dataApi?: 'checking' | 'online' | 'offline'
|
|
databaseReady?: boolean
|
|
}
|
|
|
|
export interface AgentHubActionResult {
|
|
success: boolean
|
|
status: AgentHubStatus
|
|
error?: string
|
|
}
|
|
|
|
export type AgentHubLogSource = 'agent-hub' | 'wechat-connector' | 'system'
|
|
export type AgentHubLogLevel = 'info' | 'warn' | 'error'
|
|
|
|
export interface AgentHubLogEntry {
|
|
id: number
|
|
timestamp: number
|
|
source: AgentHubLogSource
|
|
level: AgentHubLogLevel
|
|
message: string
|
|
}
|