Import packages/plugin/src/client/types.ts
This commit is contained in:
parent
42ad5c10db
commit
78123ee169
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue