UNPKG

polyv-live-cli

Version:

CLI tool for managing PolyV live streaming services.

27 lines 1.26 kB
import { AccountConfig, AccountsStore, AccountOperationResult, AccountDisplayInfo } from '../types/account.types'; export declare class AccountConfigManager { private configPath; private crypto; constructor(configPath?: string, masterKey?: string); private getDefaultConfigPath; private ensureConfigDir; private setSecurePermissions; private validateAccountConfig; loadAccountsStore(): AccountsStore; saveAccountsStore(store: AccountsStore): void; private createEmptyStore; addAccount(name: string, appId: string, appSecret: string, userId?: string, environment?: string, baseUrl?: string): AccountOperationResult; removeAccount(name: string): AccountOperationResult; getAccount(name: string): AccountConfig | null; listAccounts(): AccountDisplayInfo[]; accountExists(name: string): boolean; getConfigPath(): string; backupConfig(backupPath?: string): string; restoreConfig(backupPath: string): void; validateConfig(): boolean; setDefaultAccount(accountName: string): AccountOperationResult; unsetDefaultAccount(): AccountOperationResult; getDefaultAccount(): string | null; getDefaultAccountConfig(): AccountConfig | null; } //# sourceMappingURL=account-config.d.ts.map