n8n
Version:
n8n Workflow Automation Tool
24 lines (23 loc) • 1.11 kB
TypeScript
import { CreateSlackAgentAppDto, type CreateSlackAgentAppResponse, type SlackAgentAppManifestResponse } from '@n8n/api-types';
import type { AuthenticatedRequest } from '@n8n/db';
import type { Request, Response } from 'express';
import { SlackManualSetupService } from './integrations/platforms/slack/slack-manual-setup.service';
export declare class AgentSlackIntegrationsController {
private readonly manualSetup;
constructor(manualSetup: SlackManualSetupService);
createSlackApp(req: AuthenticatedRequest<{
projectId: string;
}>, _res: Response, agentId: string, payload: CreateSlackAgentAppDto): Promise<CreateSlackAgentAppResponse>;
getSlackAppManifest(req: AuthenticatedRequest<{
projectId: string;
}>, _res: Response, agentId: string): Promise<SlackAgentAppManifestResponse>;
handleSlackAppOAuthCallback(req: Request<{
projectId: string;
agentId: string;
}, unknown, unknown, {
code?: string;
state?: string;
error?: string;
error_description?: string;
}>, res: Response, agentId: string): Promise<void>;
}