michangarrito/apps/backend/dist/modules/integrations/entities/tenant-integration-credential.entity.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

58 lines
1.5 KiB
TypeScript

import { Tenant } from '../../auth/entities/tenant.entity';
export declare enum IntegrationType {
WHATSAPP = "whatsapp",
LLM = "llm",
STRIPE = "stripe",
MERCADOPAGO = "mercadopago",
CLIP = "clip"
}
export declare enum IntegrationProvider {
META = "meta",
OPENAI = "openai",
OPENROUTER = "openrouter",
ANTHROPIC = "anthropic",
OLLAMA = "ollama",
AZURE_OPENAI = "azure_openai",
STRIPE = "stripe",
MERCADOPAGO = "mercadopago",
CLIP = "clip"
}
export interface WhatsAppCredentials {
accessToken: string;
phoneNumberId: string;
businessAccountId?: string;
verifyToken?: string;
}
export interface LLMCredentials {
apiKey: string;
}
export interface LLMConfig {
model?: string;
maxTokens?: number;
temperature?: number;
systemPrompt?: string;
baseUrl?: string;
}
export interface StripeCredentials {
secretKey: string;
publishableKey?: string;
webhookSecret?: string;
}
export declare class TenantIntegrationCredential {
id: string;
tenantId: string;
tenant: Tenant;
integrationType: IntegrationType;
provider: IntegrationProvider;
credentials: WhatsAppCredentials | LLMCredentials | StripeCredentials | Record<string, any>;
config: LLMConfig | Record<string, any>;
isActive: boolean;
isVerified: boolean;
lastVerifiedAt: Date;
verificationError: string;
createdBy: string;
updatedBy: string;
createdAt: Date;
updatedAt: Date;
}