n8n
Version:
n8n Workflow Automation Tool
34 lines (33 loc) • 1.49 kB
TypeScript
import { CreateAgentSkillDto, UpdateAgentSkillDto } from '@n8n/api-types';
import type { AuthenticatedRequest } from '@n8n/db';
import type { Response } from 'express';
import { AgentSkillsService } from './agent-skills.service';
export declare class AgentsSkillsController {
private readonly agentSkillsService;
constructor(agentSkillsService: AgentSkillsService);
listSkills(req: AuthenticatedRequest<{
projectId: string;
agentId: string;
}>): Promise<Record<string, import("@n8n/api-types").AgentSkill>>;
getSkill(req: AuthenticatedRequest<{
projectId: string;
agentId: string;
skillId: string;
}>, _res: Response, agentId: string, skillId: string): Promise<import("@n8n/api-types").AgentSkill>;
createSkill(req: AuthenticatedRequest<{
projectId: string;
agentId: string;
}>, _res: Response, agentId: string, payload: CreateAgentSkillDto): Promise<import("@n8n/api-types").AgentSkillMutationResponse>;
updateSkill(req: AuthenticatedRequest<{
projectId: string;
agentId: string;
skillId: string;
}>, _res: Response, agentId: string, skillId: string, payload: UpdateAgentSkillDto): Promise<import("@n8n/api-types").AgentSkillMutationResponse>;
deleteSkill(req: AuthenticatedRequest<{
projectId: string;
agentId: string;
skillId: string;
}>, _res: Response, agentId: string, skillId: string): Promise<{
ok: boolean;
}>;
}