computer-auditor / src /types.ts
algorembrant's picture
Upload 28 files
b4143a2 verified
export interface DriveInfo {
letter: string
mount: string
label: string
totalBytes: number
freeBytes: number
usedBytes: number
}
export interface DirEntry {
name: string
fullPath: string
isDirectory: boolean
sizeBytes: number
mtimeMs: number
error?: string
sizeTruncated?: boolean
}
export interface ProcessRow {
pid: number
name: string
memoryBytes: number
cpuSeconds?: number
commandLine?: string
}
export interface ServiceRow {
name: string
displayName: string
state: string
startType: string
}
export interface InstalledApp {
name: string
version: string
publisher: string
installLocation: string
uninstallString: string
estimatedSizeKb: number
}
export interface NetworkRow {
name: string
address: string
family: string
internal: boolean
mac?: string
}
export interface SystemSnapshot {
hostname: string
platform: string
release: string
arch: string
uptimeSec: number
totalMem: number
freeMem: number
cpuModel: string
cpuCount: number
load1: number
load5: number
load15: number
userInfo: string
homedir: string
tmpdir: string
}
export type NavId =
| 'overview'
| 'storage'
| 'filesystem'
| 'processes'
| 'services'
| 'apps'
| 'network'
| 'environment'
| 'startup'
| 'scheduled'
| 'features'