UNPKG

route-claudecode

Version:

Advanced routing and transformation system for Claude Code outputs to multiple AI providers

60 lines 1.64 kB
/** * CodeWhisperer 增强认证配置 * 基于 AIClient-2-API 的多源凭据管理设计 * 项目所有者: Jason Zhang */ export declare enum CredentialSource { BASE64 = "base64", FILE_PATH = "filePath", DIRECTORY_SCAN = "directoryScan", ENVIRONMENT = "environment", DEFAULT_PATH = "defaultPath" } export declare enum AuthMethod { SOCIAL = "social", IDC = "idc" } export interface TokenData { accessToken: string; refreshToken: string; clientId?: string; clientSecret?: string; expiresAt?: string; profileArn?: string; region?: string; authMethod?: AuthMethod; } export interface CredentialConfig { base64Creds?: string; credsFilePath?: string; credsDirPath?: string; priorityOrder?: CredentialSource[]; envPrefix?: string; } export interface RetryConfig { maxRetries: number; baseDelay: number; backoffMultiplier: number; retryableStatuses: number[]; timeoutMs: number; } export interface RegionConfig { region: string; refreshUrl?: string; refreshIDCUrl?: string; baseUrl?: string; amazonQUrl?: string; } export interface KiroAuthConfig { credentials: CredentialConfig; region?: RegionConfig; retry?: RetryConfig; authMethod?: AuthMethod; userAgent?: string; enableDebugLog?: boolean; } export declare const DEFAULT_RETRY_CONFIG: RetryConfig; export declare const DEFAULT_REGION_CONFIG: RegionConfig; export declare const DEFAULT_CREDENTIAL_CONFIG: CredentialConfig; export declare const KIRO_AUTH_TOKEN_FILE = "kiro-auth-token.json"; //# sourceMappingURL=enhanced-auth-config.d.ts.map