n8n
Version:
n8n Workflow Automation Tool
32 lines (31 loc) • 787 B
TypeScript
import { InstanceAiExamplesQueryDto } from '@n8n/api-types';
interface ExampleNode {
name: string;
displayName?: string;
icon?: string;
iconData?: {
type: string;
fileBuffer?: string;
icon?: string;
};
}
interface ExampleWorkflow {
id: number;
name: string;
category: string;
subcategory?: string;
relevanceScore?: number;
prompt?: string;
nodes: ExampleNode[];
}
export declare class InstanceAiExamplesController {
private cachedData;
getExamples(_req: unknown, _res: unknown, query: InstanceAiExamplesQueryDto): {
categories: string[];
subcategories: Record<string, string[]>;
totalWorkflows: number;
workflows: ExampleWorkflow[];
};
private loadData;
}
export {};