- Prefijo v2: MCH - TRACEABILITY-MASTER.yml creado - Listo para integracion como submodulo Workspace: v2.0.0 | SIMCO: v4.0.0
54 lines
1.7 KiB
TypeScript
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;
|
|
}>;
|
|
}
|