Skip to content

validateWorkflow

validateWorkflow(data, options?): SafeParseError<{ $schema?: string; id: string; version: string; name: string; description: string; author: { id: string; name: string; }; category: "image" | "video" | "audio" | "pdf" | "data" | "ai" | "developer" | "ecommerce" | "content-creation" | "other"; tags: string[]; nodes: object[]; edges: object[]; inputs: { type: "image" | "video" | "audio" | "pdf" | "text" | "data" | "unknown"; multiple: boolean; maxCount?: number; accept?: string[]; }; outputs: { type: "image" | "video" | "audio" | "pdf" | "text" | "data" | "unknown" | "archive"; format?: string; targets?: object[]; }; official?: boolean; createdAt?: number; updatedAt?: number; }> | { success: false; error: { issues: object[]; }; data?: undefined; } | { error?: undefined; success: true; data: { $schema?: string; id: string; version: string; name: string; description: string; author: { id: string; name: string; }; category: "image" | "video" | "audio" | "pdf" | "data" | "ai" | "developer" | "ecommerce" | "content-creation" | "other"; tags: string[]; nodes: object[]; edges: object[]; inputs: { type: "image" | "video" | "audio" | "pdf" | "text" | "data" | "unknown"; multiple: boolean; maxCount?: number; accept?: string[]; }; outputs: { type: "image" | "video" | "audio" | "pdf" | "text" | "data" | "unknown" | "archive"; format?: string; targets?: object[]; }; official?: boolean; createdAt?: number; updatedAt?: number; }; }

Defined in: packages/schema/src/validators.ts:148

unknown

ValidateWorkflowOptions

SafeParseError<{ $schema?: string; id: string; version: string; name: string; description: string; author: { id: string; name: string; }; category: "image" | "video" | "audio" | "pdf" | "data" | "ai" | "developer" | "ecommerce" | "content-creation" | "other"; tags: string[]; nodes: object[]; edges: object[]; inputs: { type: "image" | "video" | "audio" | "pdf" | "text" | "data" | "unknown"; multiple: boolean; maxCount?: number; accept?: string[]; }; outputs: { type: "image" | "video" | "audio" | "pdf" | "text" | "data" | "unknown" | "archive"; format?: string; targets?: object[]; }; official?: boolean; createdAt?: number; updatedAt?: number; }> | { success: false; error: { issues: object[]; }; data?: undefined; } | { error?: undefined; success: true; data: { $schema?: string; id: string; version: string; name: string; description: string; author: { id: string; name: string; }; category: "image" | "video" | "audio" | "pdf" | "data" | "ai" | "developer" | "ecommerce" | "content-creation" | "other"; tags: string[]; nodes: object[]; edges: object[]; inputs: { type: "image" | "video" | "audio" | "pdf" | "text" | "data" | "unknown"; multiple: boolean; maxCount?: number; accept?: string[]; }; outputs: { type: "image" | "video" | "audio" | "pdf" | "text" | "data" | "unknown" | "archive"; format?: string; targets?: object[]; }; official?: boolean; createdAt?: number; updatedAt?: number; }; }