Feature/install wizard disk info (#1923)

* update disk res for install wizard (#1914)

* change types to match setup api

Co-authored-by: Matt Hill <MattDHill@users.noreply.github.com>
This commit is contained in:
Aiden McClelland
2022-11-09 12:27:43 -07:00
parent 67b54ac1eb
commit 4e47960440
16 changed files with 139 additions and 127 deletions

View File

@@ -14,3 +14,29 @@ export interface Log {
timestamp: string
message: string
}
export type DiskListResponse = DiskInfo[]
export interface DiskInfo {
logicalname: string
vendor: string | null
model: string | null
partitions: PartitionInfo[]
capacity: number
guid: string | null
}
export interface PartitionInfo {
logicalname: string
label: string | null
capacity: number
used: number | null
'embassy-os': EmbassyOSDiskInfo | null
}
export type EmbassyOSDiskInfo = {
version: string
full: boolean
'password-hash': string | null
'wrapped-key': string | null
}