n8n
Version:
n8n Workflow Automation Tool
52 lines (51 loc) • 1.42 kB
TypeScript
import { z } from 'zod';
export declare const packageCredentialRequirementSchema: 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[];
}>;
export declare const packageRequirementsSchema: 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;
}>;
export type PackageCredentialRequirement = z.infer<typeof packageCredentialRequirementSchema>;
export type PackageRequirements = z.infer<typeof packageRequirementsSchema>;