@homebridge-plugins/homebridge-plugin-update-check
Version:
A Homebridge plugin for checking for updates to Homebridge and plugins
34 lines • 1.14 kB
TypeScript
import type { Logging } from 'homebridge';
export interface InstalledPlugin {
name: string;
installedVersion: string;
latestVersion: string;
updateAvailable: boolean;
}
export declare class UiApi {
private log;
private readonly secrets?;
private readonly baseUrl?;
private readonly httpsAgent?;
private token?;
private readonly dockerUrl?;
private readonly cacheable;
private readonly hbStoragePath;
constructor(hbStoragePath: string, log: Logging);
isConfigured(): boolean;
getHomebridge(): Promise<InstalledPlugin>;
getPlugins(): Promise<Array<InstalledPlugin>>;
getIgnoredPlugins(): Promise<Array<string>>;
getDocker(): Promise<InstalledPlugin>;
updateHomebridge(targetVersion?: string): Promise<boolean>;
updatePlugin(pluginName: string, targetVersion?: string): Promise<boolean>;
private runNpmCommand;
createBackup(): Promise<boolean>;
restartHomebridge(): Promise<boolean>;
private makeRestartCall;
private makeBackupCall;
private makeDockerCall;
private makeCall;
getToken(): string;
}
//# sourceMappingURL=ui-api.d.ts.map