Import apps/browser/src/types.ts

This commit is contained in:
QQ 2026-11-14 14:27:42 +08:00
parent d331005971
commit db4bbb7738
1 changed files with 25 additions and 0 deletions

25
apps/browser/src/types.ts Normal file
View File

@ -0,0 +1,25 @@
export interface DeviceIdentity {
deviceId: string
name: string
platform: 'browser'
publicKey: string
}
export interface Credentials {
serverUrl: string
deviceId: string
account: string
accessToken: string
accessTokenExpiresAt: number
refreshToken: string
refreshTokenExpiresAt: number
}
export interface RemoteHost {
deviceId: string
name: string
platform: string
online: boolean
lastSeenAt?: number
harnessVersion?: string
}