homebridge-config-ui-x
Version:
A web based management, configuration and control platform for Homebridge.
75 lines (74 loc) • 2.48 kB
TypeScript
import { ConfigService } from '../config/config.service';
import { AuthDto } from './auth.dto';
import { AuthService } from './auth.service';
export declare class AuthController {
private readonly authService;
private readonly configService;
constructor(authService: AuthService, configService: ConfigService);
signIn(body: AuthDto): Promise<any>;
getSettings(req: any): {
env: {
canShutdownRestartHost: boolean;
customWallpaperHash: string;
dockerOfflineUpdate: boolean;
homebridgeVersion: string;
homebridgeInstanceName: string;
instanceId: string;
lang: string;
packageName: any;
packageVersion: any;
platform: NodeJS.Platform;
port: number;
serviceMode: boolean;
setupWizardComplete: boolean;
};
formAuth: boolean;
lightingMode: "auto" | "light" | "dark";
serverTimestamp: string;
theme: string;
menuMode: "default" | "freeze";
} | {
env: {
enableAccessories: boolean;
enableTerminalAccess: boolean;
nodeVersion: string;
recommendChildBridges: boolean;
runningInDocker: boolean;
runningInSynologyPackage: boolean;
runningInPackageMode: boolean;
runningInLinux: boolean;
runningInFreeBSD: boolean;
runningOnRaspberryPi: boolean;
temperatureUnits: string;
usePnpm: boolean;
canShutdownRestartHost: boolean;
customWallpaperHash: string;
dockerOfflineUpdate: boolean;
homebridgeVersion: string;
homebridgeInstanceName: string;
instanceId: string;
lang: string;
packageName: any;
packageVersion: any;
platform: NodeJS.Platform;
port: number;
serviceMode: boolean;
setupWizardComplete: boolean;
};
wallpaper: string;
formAuth: boolean;
lightingMode: "auto" | "light" | "dark";
serverTimestamp: string;
theme: string;
menuMode: "default" | "freeze";
};
getCustomWallpaper(): import("fs").ReadStream;
getToken(): Promise<{
access_token: string;
token_type: string;
expires_in: number;
}>;
checkAuth(): {
status: string;
};
}