n8n
Version:
n8n Workflow Automation Tool
62 lines (61 loc) • 1.89 kB
TypeScript
import { z } from 'zod';
export declare const AgentScheduleIntegrationSchema: z.ZodObject<{
type: z.ZodLiteral<"schedule">;
active: z.ZodBoolean;
cronExpression: z.ZodEffects<z.ZodString, string, string>;
wakeUpPrompt: z.ZodString;
}, "strict", z.ZodTypeAny, {
active: boolean;
type: "schedule";
cronExpression: string;
wakeUpPrompt: string;
}, {
active: boolean;
type: "schedule";
cronExpression: string;
wakeUpPrompt: string;
}>;
export declare const AgentCredentialIntegrationSchema: z.ZodObject<{
type: z.ZodEffects<z.ZodString, string, string>;
credentialId: z.ZodString;
credentialName: z.ZodString;
}, "strict", z.ZodTypeAny, {
type: string;
credentialName: string;
credentialId: string;
}, {
type: string;
credentialName: string;
credentialId: string;
}>;
export declare const AgentIntegrationSchema: z.ZodUnion<[z.ZodObject<{
type: z.ZodLiteral<"schedule">;
active: z.ZodBoolean;
cronExpression: z.ZodEffects<z.ZodString, string, string>;
wakeUpPrompt: z.ZodString;
}, "strict", z.ZodTypeAny, {
active: boolean;
type: "schedule";
cronExpression: string;
wakeUpPrompt: string;
}, {
active: boolean;
type: "schedule";
cronExpression: string;
wakeUpPrompt: string;
}>, z.ZodObject<{
type: z.ZodEffects<z.ZodString, string, string>;
credentialId: z.ZodString;
credentialName: z.ZodString;
}, "strict", z.ZodTypeAny, {
type: string;
credentialName: string;
credentialId: string;
}, {
type: string;
credentialName: string;
credentialId: string;
}>]>;
export type AgentScheduleIntegrationConfig = z.infer<typeof AgentScheduleIntegrationSchema>;
export type AgentCredentialIntegrationConfig = z.infer<typeof AgentCredentialIntegrationSchema>;
export type AgentIntegrationConfig = z.infer<typeof AgentIntegrationSchema>;