UNPKG

@elevenlabs/convai-cli

Version:

CLI tool to manage ElevenLabs conversational AI agents

57 lines 1.6 kB
/** * Configuration management for CLI * Simple credential storage with keychain support */ export declare const LOCATIONS: readonly ["us", "global", "eu-residency", "in-residency"]; export type Location = (typeof LOCATIONS)[number]; export interface CliConfig { apiKey?: string; defaultEnvironment?: string; residency?: Location; [key: string]: unknown; } /** * Get the path to the CLI config file */ export declare function getConfigPath(): string; /** * Load CLI configuration from file */ export declare function loadConfig(): Promise<CliConfig>; /** * Save CLI configuration to file */ export declare function saveConfig(config: CliConfig): Promise<void>; /** * Get API key from storage or environment variable */ export declare function getApiKey(): Promise<string | undefined>; /** * Set API key in secure storage */ export declare function setApiKey(apiKey: string): Promise<void>; /** * Remove API key from storage */ export declare function removeApiKey(): Promise<void>; /** * Check if user is logged in (has API key) */ export declare function isLoggedIn(): Promise<boolean>; /** * Get default environment from config */ export declare function getDefaultEnvironment(): Promise<string>; /** * Set default environment in config */ export declare function setDefaultEnvironment(environment: string): Promise<void>; /** * Get residency from config */ export declare function getResidency(): Promise<string>; /** * Set residency in config */ export declare function setResidency(residency: Location): Promise<void>; //# sourceMappingURL=config.d.ts.map