michangarrito/apps/backend/dist/modules/integrations/controllers/internal-integrations.controller.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

54 lines
1.7 KiB
TypeScript

import { ConfigService } from '@nestjs/config';
import { TenantIntegrationsService } from '../services/tenant-integrations.service';
import { IntegrationProvider } from '../entities/tenant-integration-credential.entity';
export declare class InternalIntegrationsController {
private readonly integrationsService;
private readonly configService;
constructor(integrationsService: TenantIntegrationsService, configService: ConfigService);
private validateInternalKey;
getWhatsAppCredentials(tenantId: string, internalKey: string): Promise<{
configured: boolean;
message: string;
credentials?: undefined;
} | {
configured: boolean;
credentials: {
accessToken: any;
phoneNumberId: any;
businessAccountId: any;
verifyToken: any;
};
message?: undefined;
}>;
getLLMConfig(tenantId: string, internalKey: string): Promise<{
configured: boolean;
message: string;
provider?: undefined;
credentials?: undefined;
config?: undefined;
} | {
configured: boolean;
provider: IntegrationProvider;
credentials: {
apiKey: any;
};
config: {
model: any;
maxTokens: any;
temperature: any;
baseUrl: any;
systemPrompt: any;
};
message?: undefined;
}>;
resolveTenantFromPhoneNumberId(phoneNumberId: string, internalKey: string): Promise<{
found: boolean;
message: string;
tenantId?: undefined;
} | {
found: boolean;
tenantId: string;
message?: undefined;
}>;
}