@panoptic-it-solutions/unifi-api-client
Version:
A Node.js client library for the UniFi Controller API
78 lines (77 loc) • 1.64 kB
TypeScript
export interface SystemStatus {
version: string;
uptime: number;
status: string;
[key: string]: unknown;
}
export interface SystemSettings {
timezone: string;
hostname: string;
ntp_server: string;
[key: string]: unknown;
}
export interface SystemSettingsUpdate {
timezone?: string;
hostname?: string;
ntp_server?: string;
[key: string]: unknown;
}
export interface BackupOptions {
encrypted?: boolean;
password?: string;
[key: string]: unknown;
}
export interface BackupResponse {
backupId: string;
createdAt: number;
encrypted: boolean;
[key: string]: unknown;
}
export interface RestoreOptions {
resetSettings?: boolean;
[key: string]: unknown;
}
export interface RestoreResponse {
status: string;
message?: string;
[key: string]: unknown;
}
export interface FirmwareInfo {
version: string;
releaseDate: string;
changelog?: string;
[key: string]: unknown;
}
export interface UpdateResponse {
status: string;
message?: string;
[key: string]: unknown;
}
export interface LogEntry {
timestamp: number;
message: string;
level: string;
[key: string]: unknown;
}
export interface Alert {
id: string;
type: string;
message: string;
severity: string;
timestamp: number;
[key: string]: unknown;
}
export interface Backup {
_id: string;
name: string;
created_at: number;
size: number;
encrypted?: boolean;
[key: string]: unknown;
}
export interface SystemInfo {
version: string;
hostname: string;
uptime: number;
[key: string]: unknown;
}