michangarrito/apps/backend/dist/modules/integrations/dto/integration-credentials.dto.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

77 lines
2.0 KiB
TypeScript

import { IntegrationType, IntegrationProvider } from '../entities/tenant-integration-credential.entity';
export declare class WhatsAppCredentialsDto {
accessToken: string;
phoneNumberId: string;
businessAccountId?: string;
verifyToken?: string;
}
export declare class LLMCredentialsDto {
apiKey: string;
}
export declare class LLMConfigDto {
model?: string;
maxTokens?: number;
temperature?: number;
systemPrompt?: string;
baseUrl?: string;
}
export declare class UpsertWhatsAppCredentialsDto {
credentials: WhatsAppCredentialsDto;
phoneNumber?: string;
displayName?: string;
}
export declare class UpsertLLMCredentialsDto {
provider: IntegrationProvider;
credentials: LLMCredentialsDto;
config?: LLMConfigDto;
}
export declare class CreateIntegrationCredentialDto {
integrationType: IntegrationType;
provider: IntegrationProvider;
credentials: Record<string, any>;
config?: Record<string, any>;
isActive?: boolean;
}
export declare class IntegrationCredentialResponseDto {
id: string;
integrationType: IntegrationType;
provider: IntegrationProvider;
hasCredentials: boolean;
isActive: boolean;
isVerified: boolean;
lastVerifiedAt?: Date;
verificationError?: string;
config: Record<string, any>;
createdAt: Date;
updatedAt: Date;
}
export declare class IntegrationStatusResponseDto {
whatsapp: {
configured: boolean;
usesPlatformNumber: boolean;
provider: string;
isVerified: boolean;
};
llm: {
configured: boolean;
usesPlatformDefault: boolean;
provider: string;
model: string;
isVerified: boolean;
};
payments: {
stripe: {
configured: boolean;
isVerified: boolean;
};
mercadopago: {
configured: boolean;
isVerified: boolean;
};
clip: {
configured: boolean;
isVerified: boolean;
};
};
}