michangarrito/apps/whatsapp-service/dist/common/credentials-provider.service.d.ts
rckrdmrd 48dea7a5d0 feat: Initial commit - michangarrito
Marketplace móvil para negocios locales mexicanos.

Estructura inicial:
- apps/backend (NestJS API)
- apps/frontend (React Web)
- apps/mobile (Expo/React Native)
- apps/mcp-server (Claude MCP Server)
- apps/whatsapp-service (WhatsApp Business API)
- database/ (PostgreSQL DDL)
- docs/ (Documentación)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 04:41:02 -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;
}