michangarrito/apps/whatsapp-service/dist/common/credentials-provider.service.d.ts
rckrdmrd 97f407c661 [MIGRATION-V2] feat: Migrar michangarrito a estructura v2
- Prefijo v2: MCH
- TRACEABILITY-MASTER.yml creado
- Listo para integracion como submodulo

Workspace: v2.0.0 | SIMCO: v4.0.0
2026-01-10 11:28:54 -06:00

38 lines
1.2 KiB
TypeScript

import { ConfigService } from '@nestjs/config';
export interface WhatsAppCredentials {
accessToken: string;
phoneNumberId: string;
businessAccountId?: string;
verifyToken?: string;
isFromPlatform: boolean;
tenantId?: string;
}
export interface LLMConfig {
apiKey: string;
provider: string;
model: string;
maxTokens: number;
temperature: number;
baseUrl: string;
systemPrompt?: string;
isFromPlatform: boolean;
tenantId?: string;
}
export declare class CredentialsProviderService {
private readonly configService;
private readonly logger;
private readonly backendClient;
private readonly cache;
private readonly CACHE_TTL;
constructor(configService: ConfigService);
getWhatsAppCredentials(tenantId?: string): Promise<WhatsAppCredentials>;
getPlatformWhatsAppCredentials(): WhatsAppCredentials;
getLLMConfig(tenantId?: string): Promise<LLMConfig>;
getPlatformLLMConfig(): LLMConfig;
resolveTenantFromPhoneNumberId(phoneNumberId: string): Promise<string | null>;
invalidateCache(tenantId: string): void;
private getFromCache;
private setCache;
private getDefaultBaseUrl;
}