import { z } from 'zod'; import type { JsonValue } from './json-schema.js'; export { jsonValueSchema } from './json-schema.js'; export type { JsonPrimitive, JsonValue } from './json-schema.js'; /** A round costs a whole child run, so the ceiling is deliberately low: past * this an author wants a different Workflow, not a longer loop. It also keeps * an iterating node inside the reconcile budget in `runner.ts`. */ export declare const MAX_ITERATION_ROUNDS = 20; export declare const workflowIdSchema: z.ZodString; export declare const nodeIdSchema: z.ZodString; export declare const bindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ source: z.ZodLiteral<"fixed">; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; type InferredBinding = z.infer; export type Binding = (Omit, 'value'> & { value: T; }) | Exclude; declare const workflowOutputSchema: z.ZodObject<{ fields: z.ZodRecord; required: z.ZodBoolean; description: z.ZodOptional; }, z.core.$strict>>; allowAdditionalFields: z.ZodBoolean; }, z.core.$strict>; declare const triggerNodeSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"trigger">; name: z.ZodString; config: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"manual">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"schedule">; cron: z.ZodString; timezone: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"event">; eventName: z.ZodString; tokenRef: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"todo-status">; status: z.ZodString; actor: z.ZodOptional; delegates: z.ZodOptional>; label: z.ZodOptional; department: z.ZodOptional; assignee: z.ZodOptional; unlabeled: z.ZodOptional>; unassigned: z.ZodOptional>; rootOnly: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"workflow-call">; }, z.core.$strict>], "kind">; }, z.core.$strict>; declare const employeeNodeSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"employee">; name: z.ZodString; config: z.ZodObject<{ employee: z.ZodDiscriminatedUnion<[z.ZodObject<{ source: z.ZodLiteral<"fixed">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; prompt: z.ZodString; continueFrom: z.ZodOptional>; engine: z.ZodOptional; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; model: z.ZodOptional; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; effort: z.ZodOptional; value: z.ZodEnum<{ low: "low"; medium: "medium"; high: "high"; xhigh: "xhigh"; }>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; fallback: z.ZodOptional, z.ZodLiteral<"none">, z.ZodArray]>>; output: z.ZodOptional; required: z.ZodBoolean; description: z.ZodOptional; }, z.core.$strict>>; allowAdditionalFields: z.ZodBoolean; }, z.core.$strict>>; retry: z.ZodOptional; }, z.core.$strict>>; timeoutMinutes: z.ZodOptional; mutex: z.ZodOptional; }, z.core.$strict>; }, z.core.$strict>; declare const conditionPredicateSchema: z.ZodObject<{ left: z.ZodDiscriminatedUnion<[z.ZodObject<{ source: z.ZodLiteral<"fixed">; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; operator: z.ZodEnum<{ in: "in"; equals: "equals"; "not-equals": "not-equals"; exists: "exists"; "not-exists": "not-exists"; contains: "contains"; gt: "gt"; gte: "gte"; lt: "lt"; lte: "lte"; }>; right: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; }, z.core.$strict>; declare const workflowIterationSchema: z.ZodObject<{ maxRounds: z.ZodOptional; continueWhile: z.ZodArray; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; operator: z.ZodEnum<{ in: "in"; equals: "equals"; "not-equals": "not-equals"; exists: "exists"; "not-exists": "not-exists"; contains: "contains"; gt: "gt"; gte: "gte"; lt: "lt"; lte: "lte"; }>; right: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; }, z.core.$strict>>; }, z.core.$strict>; declare const workflowCallNodeSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"workflow-call">; name: z.ZodString; config: z.ZodObject<{ workflowId: z.ZodDiscriminatedUnion<[z.ZodObject<{ source: z.ZodLiteral<"fixed">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; items: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; input: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>>; concurrency: z.ZodDefault; value: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">]>>; iterate: z.ZodOptional; continueWhile: z.ZodArray; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; operator: z.ZodEnum<{ in: "in"; equals: "equals"; "not-equals": "not-equals"; exists: "exists"; "not-exists": "not-exists"; contains: "contains"; gt: "gt"; gte: "gte"; lt: "lt"; lte: "lte"; }>; right: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>; }, z.core.$strict>; declare const conditionNodeSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"condition">; name: z.ZodString; config: z.ZodObject<{ cases: z.ZodArray; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; operator: z.ZodEnum<{ in: "in"; equals: "equals"; "not-equals": "not-equals"; exists: "exists"; "not-exists": "not-exists"; contains: "contains"; gt: "gt"; gte: "gte"; lt: "lt"; lte: "lte"; }>; right: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; }, z.core.$strict>>; }, z.core.$strict>>; defaultPort: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; declare const mergeNodeSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"merge">; name: z.ZodString; config: z.ZodObject<{ mode: z.ZodLiteral<"wait-all">; }, z.core.$strict>; }, z.core.$strict>; declare const approvalNodeSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"approval">; name: z.ZodString; config: z.ZodObject<{ description: z.ZodString; approver: z.ZodOptional; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; operatorOnly: z.ZodOptional; decidableBy: z.ZodOptional>; options: z.ZodOptional>; }, z.core.$strict>; }, z.core.$strict>; declare const waitNodeSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"wait">; name: z.ZodString; config: z.ZodDiscriminatedUnion<[z.ZodObject<{ mode: z.ZodLiteral<"duration">; minutes: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodLiteral<"until">; timestamp: z.ZodDiscriminatedUnion<[z.ZodObject<{ source: z.ZodLiteral<"fixed">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodLiteral<"todo-comment">; timeoutMinutes: z.ZodDefault; }, z.core.$strict>], "mode">; }, z.core.$strict>; declare const endNodeSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"end">; name: z.ZodString; config: z.ZodObject<{ result: z.ZodEnum<{ success: "success"; failure: "failure"; }>; message: z.ZodOptional; output: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; requires: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>; }, z.core.$strict>; export declare const workflowNodeSchema: z.ZodPreprocess; name: z.ZodString; config: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"manual">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"schedule">; cron: z.ZodString; timezone: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"event">; eventName: z.ZodString; tokenRef: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"todo-status">; status: z.ZodString; actor: z.ZodOptional; delegates: z.ZodOptional>; label: z.ZodOptional; department: z.ZodOptional; assignee: z.ZodOptional; unlabeled: z.ZodOptional>; unassigned: z.ZodOptional>; rootOnly: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"workflow-call">; }, z.core.$strict>], "kind">; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"employee">; name: z.ZodString; config: z.ZodObject<{ employee: z.ZodDiscriminatedUnion<[z.ZodObject<{ source: z.ZodLiteral<"fixed">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; prompt: z.ZodString; continueFrom: z.ZodOptional>; engine: z.ZodOptional; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; model: z.ZodOptional; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; effort: z.ZodOptional; value: z.ZodEnum<{ low: "low"; medium: "medium"; high: "high"; xhigh: "xhigh"; }>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; fallback: z.ZodOptional, z.ZodLiteral<"none">, z.ZodArray]>>; output: z.ZodOptional; required: z.ZodBoolean; description: z.ZodOptional; }, z.core.$strict>>; allowAdditionalFields: z.ZodBoolean; }, z.core.$strict>>; retry: z.ZodOptional; }, z.core.$strict>>; timeoutMinutes: z.ZodOptional; mutex: z.ZodOptional; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"workflow-call">; name: z.ZodString; config: z.ZodObject<{ workflowId: z.ZodDiscriminatedUnion<[z.ZodObject<{ source: z.ZodLiteral<"fixed">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; items: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; input: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>>; concurrency: z.ZodDefault; value: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">]>>; iterate: z.ZodOptional; continueWhile: z.ZodArray; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; operator: z.ZodEnum<{ in: "in"; equals: "equals"; "not-equals": "not-equals"; exists: "exists"; "not-exists": "not-exists"; contains: "contains"; gt: "gt"; gte: "gte"; lt: "lt"; lte: "lte"; }>; right: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"condition">; name: z.ZodString; config: z.ZodObject<{ cases: z.ZodArray; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; operator: z.ZodEnum<{ in: "in"; equals: "equals"; "not-equals": "not-equals"; exists: "exists"; "not-exists": "not-exists"; contains: "contains"; gt: "gt"; gte: "gte"; lt: "lt"; lte: "lte"; }>; right: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; }, z.core.$strict>>; }, z.core.$strict>>; defaultPort: z.ZodString; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"merge">; name: z.ZodString; config: z.ZodObject<{ mode: z.ZodLiteral<"wait-all">; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"approval">; name: z.ZodString; config: z.ZodObject<{ description: z.ZodString; approver: z.ZodOptional; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; operatorOnly: z.ZodOptional; decidableBy: z.ZodOptional>; options: z.ZodOptional>; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"wait">; name: z.ZodString; config: z.ZodDiscriminatedUnion<[z.ZodObject<{ mode: z.ZodLiteral<"duration">; minutes: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodLiteral<"until">; timestamp: z.ZodDiscriminatedUnion<[z.ZodObject<{ source: z.ZodLiteral<"fixed">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodLiteral<"todo-comment">; timeoutMinutes: z.ZodDefault; }, z.core.$strict>], "mode">; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"end">; name: z.ZodString; config: z.ZodObject<{ result: z.ZodEnum<{ success: "success"; failure: "failure"; }>; message: z.ZodOptional; output: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; requires: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>; }, z.core.$strict>], "type">>; declare const workflowEdgeSchema: z.ZodObject<{ id: z.ZodString; from: z.ZodObject<{ nodeId: z.ZodString; port: z.ZodString; }, z.core.$strict>; to: z.ZodObject<{ nodeId: z.ZodString; port: z.ZodLiteral<"input">; }, z.core.$strict>; }, z.core.$strict>; declare const workflowInputFieldSchema: z.ZodObject<{ key: z.ZodString; label: z.ZodString; type: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; model: "model"; employee: "employee"; engine: "engine"; }>; required: z.ZodBoolean; default: z.ZodOptional>; description: z.ZodOptional; }, z.core.$strict>; export declare const workflowDraftSchema: z.ZodPreprocess; required: z.ZodBoolean; default: z.ZodOptional>; description: z.ZodOptional; }, z.core.$strict>>>; nodes: z.ZodArray; name: z.ZodString; config: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"manual">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"schedule">; cron: z.ZodString; timezone: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"event">; eventName: z.ZodString; tokenRef: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"todo-status">; status: z.ZodString; actor: z.ZodOptional; delegates: z.ZodOptional>; label: z.ZodOptional; department: z.ZodOptional; assignee: z.ZodOptional; unlabeled: z.ZodOptional>; unassigned: z.ZodOptional>; rootOnly: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"workflow-call">; }, z.core.$strict>], "kind">; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"employee">; name: z.ZodString; config: z.ZodObject<{ employee: z.ZodDiscriminatedUnion<[z.ZodObject<{ source: z.ZodLiteral<"fixed">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; prompt: z.ZodString; continueFrom: z.ZodOptional>; engine: z.ZodOptional; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; model: z.ZodOptional; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; effort: z.ZodOptional; value: z.ZodEnum<{ low: "low"; medium: "medium"; high: "high"; xhigh: "xhigh"; }>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; fallback: z.ZodOptional, z.ZodLiteral<"none">, z.ZodArray]>>; output: z.ZodOptional; required: z.ZodBoolean; description: z.ZodOptional; }, z.core.$strict>>; allowAdditionalFields: z.ZodBoolean; }, z.core.$strict>>; retry: z.ZodOptional; }, z.core.$strict>>; timeoutMinutes: z.ZodOptional; mutex: z.ZodOptional; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"workflow-call">; name: z.ZodString; config: z.ZodObject<{ workflowId: z.ZodDiscriminatedUnion<[z.ZodObject<{ source: z.ZodLiteral<"fixed">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; items: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; input: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>>; concurrency: z.ZodDefault; value: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">]>>; iterate: z.ZodOptional; continueWhile: z.ZodArray; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; operator: z.ZodEnum<{ in: "in"; equals: "equals"; "not-equals": "not-equals"; exists: "exists"; "not-exists": "not-exists"; contains: "contains"; gt: "gt"; gte: "gte"; lt: "lt"; lte: "lte"; }>; right: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"condition">; name: z.ZodString; config: z.ZodObject<{ cases: z.ZodArray; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; operator: z.ZodEnum<{ in: "in"; equals: "equals"; "not-equals": "not-equals"; exists: "exists"; "not-exists": "not-exists"; contains: "contains"; gt: "gt"; gte: "gte"; lt: "lt"; lte: "lte"; }>; right: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; }, z.core.$strict>>; }, z.core.$strict>>; defaultPort: z.ZodString; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"merge">; name: z.ZodString; config: z.ZodObject<{ mode: z.ZodLiteral<"wait-all">; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"approval">; name: z.ZodString; config: z.ZodObject<{ description: z.ZodString; approver: z.ZodOptional; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; operatorOnly: z.ZodOptional; decidableBy: z.ZodOptional>; options: z.ZodOptional>; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"wait">; name: z.ZodString; config: z.ZodDiscriminatedUnion<[z.ZodObject<{ mode: z.ZodLiteral<"duration">; minutes: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodLiteral<"until">; timestamp: z.ZodDiscriminatedUnion<[z.ZodObject<{ source: z.ZodLiteral<"fixed">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodLiteral<"todo-comment">; timeoutMinutes: z.ZodDefault; }, z.core.$strict>], "mode">; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"end">; name: z.ZodString; config: z.ZodObject<{ result: z.ZodEnum<{ success: "success"; failure: "failure"; }>; message: z.ZodOptional; output: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; requires: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>; }, z.core.$strict>], "type">>; edges: z.ZodArray; to: z.ZodObject<{ nodeId: z.ZodString; port: z.ZodLiteral<"input">; }, z.core.$strict>; }, z.core.$strict>>; ui: z.ZodOptional>; layout: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>>; export declare const workflowDefinitionSchema: z.ZodPreprocess; required: z.ZodBoolean; default: z.ZodOptional>; description: z.ZodOptional; }, z.core.$strict>>>; nodes: z.ZodArray; name: z.ZodString; config: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"manual">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"schedule">; cron: z.ZodString; timezone: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"event">; eventName: z.ZodString; tokenRef: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"todo-status">; status: z.ZodString; actor: z.ZodOptional; delegates: z.ZodOptional>; label: z.ZodOptional; department: z.ZodOptional; assignee: z.ZodOptional; unlabeled: z.ZodOptional>; unassigned: z.ZodOptional>; rootOnly: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"workflow-call">; }, z.core.$strict>], "kind">; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"employee">; name: z.ZodString; config: z.ZodObject<{ employee: z.ZodDiscriminatedUnion<[z.ZodObject<{ source: z.ZodLiteral<"fixed">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; prompt: z.ZodString; continueFrom: z.ZodOptional>; engine: z.ZodOptional; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; model: z.ZodOptional; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; effort: z.ZodOptional; value: z.ZodEnum<{ low: "low"; medium: "medium"; high: "high"; xhigh: "xhigh"; }>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; fallback: z.ZodOptional, z.ZodLiteral<"none">, z.ZodArray]>>; output: z.ZodOptional; required: z.ZodBoolean; description: z.ZodOptional; }, z.core.$strict>>; allowAdditionalFields: z.ZodBoolean; }, z.core.$strict>>; retry: z.ZodOptional; }, z.core.$strict>>; timeoutMinutes: z.ZodOptional; mutex: z.ZodOptional; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"workflow-call">; name: z.ZodString; config: z.ZodObject<{ workflowId: z.ZodDiscriminatedUnion<[z.ZodObject<{ source: z.ZodLiteral<"fixed">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; items: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; input: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>>; concurrency: z.ZodDefault; value: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">]>>; iterate: z.ZodOptional; continueWhile: z.ZodArray; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; operator: z.ZodEnum<{ in: "in"; equals: "equals"; "not-equals": "not-equals"; exists: "exists"; "not-exists": "not-exists"; contains: "contains"; gt: "gt"; gte: "gte"; lt: "lt"; lte: "lte"; }>; right: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"condition">; name: z.ZodString; config: z.ZodObject<{ cases: z.ZodArray; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; operator: z.ZodEnum<{ in: "in"; equals: "equals"; "not-equals": "not-equals"; exists: "exists"; "not-exists": "not-exists"; contains: "contains"; gt: "gt"; gte: "gte"; lt: "lt"; lte: "lte"; }>; right: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; }, z.core.$strict>>; }, z.core.$strict>>; defaultPort: z.ZodString; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"merge">; name: z.ZodString; config: z.ZodObject<{ mode: z.ZodLiteral<"wait-all">; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"approval">; name: z.ZodString; config: z.ZodObject<{ description: z.ZodString; approver: z.ZodOptional; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; operatorOnly: z.ZodOptional; decidableBy: z.ZodOptional>; options: z.ZodOptional>; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"wait">; name: z.ZodString; config: z.ZodDiscriminatedUnion<[z.ZodObject<{ mode: z.ZodLiteral<"duration">; minutes: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodLiteral<"until">; timestamp: z.ZodDiscriminatedUnion<[z.ZodObject<{ source: z.ZodLiteral<"fixed">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodLiteral<"todo-comment">; timeoutMinutes: z.ZodDefault; }, z.core.$strict>], "mode">; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"end">; name: z.ZodString; config: z.ZodObject<{ result: z.ZodEnum<{ success: "success"; failure: "failure"; }>; message: z.ZodOptional; output: z.ZodOptional; value: z.ZodPreprocess>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"input">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"trigger">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"run">; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"node">; nodeId: z.ZodString; path: z.ZodString; }, z.core.$strict>], "source">>; requires: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>; }, z.core.$strict>], "type">>; edges: z.ZodArray; to: z.ZodObject<{ nodeId: z.ZodString; port: z.ZodLiteral<"input">; }, z.core.$strict>; }, z.core.$strict>>; ui: z.ZodOptional>; layout: z.ZodOptional>; }, z.core.$strict>>; schemaVersion: z.ZodLiteral<1>; id: z.ZodString; title: z.ZodString; description: z.ZodOptional; revision: z.ZodNumber; enabled: z.ZodBoolean; retiredAt: z.ZodOptional; }, z.core.$strict>>; export type WorkflowOutputSchema = z.infer; export type WorkflowInputField = z.infer; export type TriggerNode = z.infer; export type EmployeeNode = z.infer; export type WorkflowCallNode = z.infer; export type ConditionPredicate = z.infer; export type WorkflowIteration = z.infer; export type ConditionNode = z.infer; export type MergeNode = z.infer; export type ApprovalNode = z.infer; export type WaitNode = z.infer; export type EndNode = z.infer; export type WorkflowNode = z.infer; export type WorkflowEdge = z.infer; export type WorkflowDraft = z.infer; export type WorkflowDefinition = z.infer; export type WorkflowId = WorkflowDefinition['id']; export interface WorkflowNodeOutput { text: string; fields: Record; /** The option picked on an Approval node that offered a choice — read * downstream as `{{ node..choice }}`. */ choice?: string; employeeId?: string; engine?: string; model?: string; sessionId?: string; } //# sourceMappingURL=model.d.ts.map