Files
n8n-mcp/dist/telemetry/workflow-sanitizer.d.ts
2025-12-05 12:01:31 +01:00

34 lines
1006 B
TypeScript

interface WorkflowNode {
id: string;
name: string;
type: string;
position: [number, number];
parameters: any;
credentials?: any;
disabled?: boolean;
typeVersion?: number;
}
interface SanitizedWorkflow {
nodes: WorkflowNode[];
connections: any;
nodeCount: number;
nodeTypes: string[];
hasTrigger: boolean;
hasWebhook: boolean;
complexity: 'simple' | 'medium' | 'complex';
workflowHash: string;
}
export declare class WorkflowSanitizer {
private static readonly SENSITIVE_PATTERNS;
private static readonly SENSITIVE_FIELDS;
static sanitizeWorkflow(workflow: any): SanitizedWorkflow;
private static sanitizeNode;
private static sanitizeObject;
private static sanitizeString;
private static isSensitiveField;
private static sanitizeConnections;
static generateWorkflowHash(workflow: any): string;
static sanitizeWorkflowRaw(workflow: any): any;
}
export {};
//# sourceMappingURL=workflow-sanitizer.d.ts.map