UNPKG

n8n

Version:

n8n Workflow Automation Tool

173 lines (172 loc) • 4.37 kB
import { z } from 'zod'; export declare const manifestEntrySchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; target: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; target: string; }, { name: string; id: string; target: string; }>; export declare const packageManifestSchema: z.ZodEffects<z.ZodObject<{ packageFormatVersion: z.ZodLiteral<"1">; exportedAt: z.ZodString; sourceN8nVersion: z.ZodString; sourceId: z.ZodString; workflows: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; target: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; target: string; }, { name: string; id: string; target: string; }>, "many">>; credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; target: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; target: string; }, { name: string; id: string; target: string; }>, "many">>; requirements: z.ZodOptional<z.ZodObject<{ credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; type: z.ZodString; usedByWorkflows: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { name: string; id: string; type: string; usedByWorkflows: string[]; }, { name: string; id: string; type: string; usedByWorkflows: string[]; }>, "many">>; }, "strip", z.ZodTypeAny, { credentials?: { name: string; id: string; type: string; usedByWorkflows: string[]; }[] | undefined; }, { credentials?: { name: string; id: string; type: string; usedByWorkflows: string[]; }[] | undefined; }>>; }, "strip", z.ZodTypeAny, { sourceId: string; packageFormatVersion: "1"; exportedAt: string; sourceN8nVersion: string; workflows?: { name: string; id: string; target: string; }[] | undefined; credentials?: { name: string; id: string; target: string; }[] | undefined; requirements?: { credentials?: { name: string; id: string; type: string; usedByWorkflows: string[]; }[] | undefined; } | undefined; }, { sourceId: string; packageFormatVersion: "1"; exportedAt: string; sourceN8nVersion: string; workflows?: { name: string; id: string; target: string; }[] | undefined; credentials?: { name: string; id: string; target: string; }[] | undefined; requirements?: { credentials?: { name: string; id: string; type: string; usedByWorkflows: string[]; }[] | undefined; } | undefined; }>, { sourceId: string; packageFormatVersion: "1"; exportedAt: string; sourceN8nVersion: string; workflows?: { name: string; id: string; target: string; }[] | undefined; credentials?: { name: string; id: string; target: string; }[] | undefined; requirements?: { credentials?: { name: string; id: string; type: string; usedByWorkflows: string[]; }[] | undefined; } | undefined; }, { sourceId: string; packageFormatVersion: "1"; exportedAt: string; sourceN8nVersion: string; workflows?: { name: string; id: string; target: string; }[] | undefined; credentials?: { name: string; id: string; target: string; }[] | undefined; requirements?: { credentials?: { name: string; id: string; type: string; usedByWorkflows: string[]; }[] | undefined; } | undefined; }>; export type ManifestEntry = z.infer<typeof manifestEntrySchema>; export type PackageManifest = z.infer<typeof packageManifestSchema>;