n8n
Version:
n8n Workflow Automation Tool
20 lines (19 loc) • 951 B
TypeScript
import type { User } from '@n8n/db';
import z from 'zod';
import type { ToolDefinition } from '../mcp.types';
import type { CollaborationService } from '../../../collaboration/collaboration.service';
import type { Telemetry } from '../../../telemetry';
import type { WorkflowFinderService } from '../../../workflows/workflow-finder.service';
import type { WorkflowService } from '../../../workflows/workflow.service';
declare const inputSchema: z.ZodObject<{
workflowId: z.ZodString;
versionId: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
workflowId: string;
versionId?: string | undefined;
}, {
workflowId: string;
versionId?: string | undefined;
}>;
export declare const createPublishWorkflowTool: (user: User, workflowFinderService: WorkflowFinderService, workflowService: WorkflowService, telemetry: Telemetry, collaborationService: CollaborationService) => ToolDefinition<typeof inputSchema.shape>;
export {};