Import packages/plugin/src/client/types.ts

This commit is contained in:
QQ 2026-11-17 08:46:13 +08:00
parent 42ad5c10db
commit 78123ee169
1 changed files with 19 additions and 0 deletions

View File

@ -58,6 +58,8 @@ export interface RemoteStatus {
currentVersion: string
latestVersion: string
checkedAt: number
/** Set when this Desktop install can be updated in place. */
upgrade?: 'ready'
}
hostAuthorizationAvailable: boolean
host?: {
@ -262,6 +264,23 @@ export interface PluginSettingsView {
}
}
export type PluginLogLevel = 'debug' | 'info' | 'warn' | 'error'
export type PluginLogFilter = 'all' | 'warn'
export interface PluginLogEntry {
seq: number
timestamp: string
level: PluginLogLevel
line: string
}
export interface PluginLogView {
logLevel: PluginLogLevel
entries: PluginLogEntry[]
totalBuffered: number
filePath?: string
fileError?: string
}
export interface PluginAssociation {
method: 'account' | 'host_registration_code' | 'owned_device' | 'device_pairing'
account?: string