@fiveohhwon/workflows-mcp
Version:
A Model Context Protocol (MCP) implementation for workflow management and automation.
1,311 lines • 68.3 kB
TypeScript
import { z } from 'zod';
export declare const ActionType: z.ZodEnum<["tool_call", "analyze", "consider", "research", "validate", "summarize", "decide", "wait_for_input", "transform", "extract", "compose", "branch", "loop", "parallel", "checkpoint", "notify", "assert", "retry"]>;
export type ActionType = z.infer<typeof ActionType>;
export declare const ErrorHandling: z.ZodEnum<["stop", "continue", "retry"]>;
export type ErrorHandling = z.infer<typeof ErrorHandling>;
export declare const BaseStep: z.ZodObject<{
id: z.ZodNumber;
action: z.ZodEnum<["tool_call", "analyze", "consider", "research", "validate", "summarize", "decide", "wait_for_input", "transform", "extract", "compose", "branch", "loop", "parallel", "checkpoint", "notify", "assert", "retry"]>;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "tool_call" | "analyze" | "consider" | "research" | "validate" | "summarize" | "decide" | "wait_for_input" | "transform" | "extract" | "compose" | "branch" | "loop" | "parallel" | "checkpoint" | "notify" | "assert" | "retry";
description: string;
error_handling: "retry" | "stop" | "continue";
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "tool_call" | "analyze" | "consider" | "research" | "validate" | "summarize" | "decide" | "wait_for_input" | "transform" | "extract" | "compose" | "branch" | "loop" | "parallel" | "checkpoint" | "notify" | "assert" | "retry";
description: string;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}>;
export declare const ToolCallStep: z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"tool_call">;
tool_name: z.ZodString;
parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "tool_call";
description: string;
error_handling: "retry" | "stop" | "continue";
tool_name: string;
parameters: Record<string, any>;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "tool_call";
description: string;
tool_name: string;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
parameters?: Record<string, any> | undefined;
}>;
export declare const CognitiveStep: z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodEnum<["analyze", "consider", "research", "validate", "summarize", "decide", "extract", "compose"]>;
input_from: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
criteria: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "analyze" | "consider" | "research" | "validate" | "summarize" | "decide" | "extract" | "compose";
description: string;
error_handling: "retry" | "stop" | "continue";
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
input_from?: string[] | undefined;
criteria?: string | undefined;
}, {
id: number;
action: "analyze" | "consider" | "research" | "validate" | "summarize" | "decide" | "extract" | "compose";
description: string;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
input_from?: string[] | undefined;
criteria?: string | undefined;
}>;
export declare const WaitForInputStep: z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"wait_for_input">;
prompt: z.ZodString;
input_type: z.ZodDefault<z.ZodEnum<["text", "number", "boolean", "json"]>>;
validation: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "wait_for_input";
description: string;
error_handling: "retry" | "stop" | "continue";
prompt: string;
input_type: "number" | "boolean" | "text" | "json";
validation?: string | undefined;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "wait_for_input";
description: string;
prompt: string;
validation?: string | undefined;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
input_type?: "number" | "boolean" | "text" | "json" | undefined;
}>;
export declare const TransformStep: z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"transform">;
input_from: z.ZodArray<z.ZodString, "many">;
transformation: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: number;
action: "transform";
description: string;
error_handling: "retry" | "stop" | "continue";
input_from: string[];
transformation: string;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "transform";
description: string;
input_from: string[];
transformation: string;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}>;
export declare const BranchCondition: z.ZodObject<{
if: z.ZodString;
goto_step: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
if: string;
goto_step: number;
}, {
if: string;
goto_step: number;
}>;
export declare const BranchStep: z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"branch">;
conditions: z.ZodArray<z.ZodObject<{
if: z.ZodString;
goto_step: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
if: string;
goto_step: number;
}, {
if: string;
goto_step: number;
}>, "many">;
default_step: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "branch";
description: string;
error_handling: "retry" | "stop" | "continue";
conditions: {
if: string;
goto_step: number;
}[];
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
default_step?: number | undefined;
}, {
id: number;
action: "branch";
description: string;
conditions: {
if: string;
goto_step: number;
}[];
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
default_step?: number | undefined;
}>;
export declare const LoopStep: z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"loop">;
over: z.ZodString;
as: z.ZodString;
steps: z.ZodArray<z.ZodNumber, "many">;
max_iterations: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "loop";
description: string;
error_handling: "retry" | "stop" | "continue";
over: string;
as: string;
steps: number[];
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
max_iterations?: number | undefined;
}, {
id: number;
action: "loop";
description: string;
over: string;
as: string;
steps: number[];
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
max_iterations?: number | undefined;
}>;
export declare const ParallelStep: z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"parallel">;
parallel_steps: z.ZodArray<z.ZodNumber, "many">;
wait_for_all: z.ZodDefault<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "parallel";
description: string;
error_handling: "retry" | "stop" | "continue";
parallel_steps: number[];
wait_for_all: boolean;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "parallel";
description: string;
parallel_steps: number[];
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
wait_for_all?: boolean | undefined;
}>;
export declare const CheckpointStep: z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"checkpoint">;
checkpoint_name: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: number;
action: "checkpoint";
description: string;
error_handling: "retry" | "stop" | "continue";
checkpoint_name: string;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "checkpoint";
description: string;
checkpoint_name: string;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}>;
export declare const NotifyStep: z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"notify">;
message: z.ZodString;
channel: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
message: string;
id: number;
action: "notify";
description: string;
error_handling: "retry" | "stop" | "continue";
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
channel?: string | undefined;
}, {
message: string;
id: number;
action: "notify";
description: string;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
channel?: string | undefined;
}>;
export declare const AssertStep: z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"assert">;
condition: z.ZodString;
message: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "assert";
description: string;
error_handling: "retry" | "stop" | "continue";
condition: string;
message?: string | undefined;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "assert";
description: string;
condition: string;
message?: string | undefined;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}>;
export declare const RetryStep: z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"retry">;
step_id: z.ZodNumber;
max_attempts: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "retry";
description: string;
error_handling: "retry" | "stop" | "continue";
step_id: number;
max_attempts: number;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "retry";
description: string;
step_id: number;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
max_attempts?: number | undefined;
}>;
export declare const Step: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"tool_call">;
tool_name: z.ZodString;
parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "tool_call";
description: string;
error_handling: "retry" | "stop" | "continue";
tool_name: string;
parameters: Record<string, any>;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "tool_call";
description: string;
tool_name: string;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
parameters?: Record<string, any> | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodEnum<["analyze", "consider", "research", "validate", "summarize", "decide", "extract", "compose"]>;
input_from: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
criteria: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "analyze" | "consider" | "research" | "validate" | "summarize" | "decide" | "extract" | "compose";
description: string;
error_handling: "retry" | "stop" | "continue";
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
input_from?: string[] | undefined;
criteria?: string | undefined;
}, {
id: number;
action: "analyze" | "consider" | "research" | "validate" | "summarize" | "decide" | "extract" | "compose";
description: string;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
input_from?: string[] | undefined;
criteria?: string | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"wait_for_input">;
prompt: z.ZodString;
input_type: z.ZodDefault<z.ZodEnum<["text", "number", "boolean", "json"]>>;
validation: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "wait_for_input";
description: string;
error_handling: "retry" | "stop" | "continue";
prompt: string;
input_type: "number" | "boolean" | "text" | "json";
validation?: string | undefined;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "wait_for_input";
description: string;
prompt: string;
validation?: string | undefined;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
input_type?: "number" | "boolean" | "text" | "json" | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"transform">;
input_from: z.ZodArray<z.ZodString, "many">;
transformation: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: number;
action: "transform";
description: string;
error_handling: "retry" | "stop" | "continue";
input_from: string[];
transformation: string;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "transform";
description: string;
input_from: string[];
transformation: string;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"branch">;
conditions: z.ZodArray<z.ZodObject<{
if: z.ZodString;
goto_step: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
if: string;
goto_step: number;
}, {
if: string;
goto_step: number;
}>, "many">;
default_step: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "branch";
description: string;
error_handling: "retry" | "stop" | "continue";
conditions: {
if: string;
goto_step: number;
}[];
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
default_step?: number | undefined;
}, {
id: number;
action: "branch";
description: string;
conditions: {
if: string;
goto_step: number;
}[];
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
default_step?: number | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"loop">;
over: z.ZodString;
as: z.ZodString;
steps: z.ZodArray<z.ZodNumber, "many">;
max_iterations: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "loop";
description: string;
error_handling: "retry" | "stop" | "continue";
over: string;
as: string;
steps: number[];
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
max_iterations?: number | undefined;
}, {
id: number;
action: "loop";
description: string;
over: string;
as: string;
steps: number[];
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
max_iterations?: number | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"parallel">;
parallel_steps: z.ZodArray<z.ZodNumber, "many">;
wait_for_all: z.ZodDefault<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "parallel";
description: string;
error_handling: "retry" | "stop" | "continue";
parallel_steps: number[];
wait_for_all: boolean;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "parallel";
description: string;
parallel_steps: number[];
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
wait_for_all?: boolean | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"checkpoint">;
checkpoint_name: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: number;
action: "checkpoint";
description: string;
error_handling: "retry" | "stop" | "continue";
checkpoint_name: string;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "checkpoint";
description: string;
checkpoint_name: string;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"notify">;
message: z.ZodString;
channel: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
message: string;
id: number;
action: "notify";
description: string;
error_handling: "retry" | "stop" | "continue";
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
channel?: string | undefined;
}, {
message: string;
id: number;
action: "notify";
description: string;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
channel?: string | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"assert">;
condition: z.ZodString;
message: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "assert";
description: string;
error_handling: "retry" | "stop" | "continue";
condition: string;
message?: string | undefined;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "assert";
description: string;
condition: string;
message?: string | undefined;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"retry">;
step_id: z.ZodNumber;
max_attempts: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "retry";
description: string;
error_handling: "retry" | "stop" | "continue";
step_id: number;
max_attempts: number;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "retry";
description: string;
step_id: number;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
max_attempts?: number | undefined;
}>]>;
export type Step = z.infer<typeof Step>;
export declare const InputParameter: z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "array", "object"]>;
description: z.ZodString;
required: z.ZodDefault<z.ZodBoolean>;
default: z.ZodOptional<z.ZodAny>;
validation: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: "string" | "number" | "boolean" | "object" | "array";
description: string;
required: boolean;
validation?: string | undefined;
default?: any;
}, {
type: "string" | "number" | "boolean" | "object" | "array";
description: string;
validation?: string | undefined;
required?: boolean | undefined;
default?: any;
}>;
export declare const WorkflowMetadata: z.ZodObject<{
created_at: z.ZodString;
updated_at: z.ZodString;
created_by: z.ZodOptional<z.ZodString>;
times_run: z.ZodDefault<z.ZodNumber>;
average_duration_ms: z.ZodOptional<z.ZodNumber>;
success_rate: z.ZodOptional<z.ZodNumber>;
last_run_at: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
created_at: string;
updated_at: string;
times_run: number;
created_by?: string | undefined;
average_duration_ms?: number | undefined;
success_rate?: number | undefined;
last_run_at?: string | undefined;
}, {
created_at: string;
updated_at: string;
created_by?: string | undefined;
times_run?: number | undefined;
average_duration_ms?: number | undefined;
success_rate?: number | undefined;
last_run_at?: string | undefined;
}>;
export declare const Workflow: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
description: z.ZodString;
goal: z.ZodString;
version: z.ZodString;
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "array", "object"]>;
description: z.ZodString;
required: z.ZodDefault<z.ZodBoolean>;
default: z.ZodOptional<z.ZodAny>;
validation: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: "string" | "number" | "boolean" | "object" | "array";
description: string;
required: boolean;
validation?: string | undefined;
default?: any;
}, {
type: "string" | "number" | "boolean" | "object" | "array";
description: string;
validation?: string | undefined;
required?: boolean | undefined;
default?: any;
}>>>;
outputs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
required_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
steps: z.ZodArray<z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"tool_call">;
tool_name: z.ZodString;
parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "tool_call";
description: string;
error_handling: "retry" | "stop" | "continue";
tool_name: string;
parameters: Record<string, any>;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "tool_call";
description: string;
tool_name: string;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
parameters?: Record<string, any> | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodEnum<["analyze", "consider", "research", "validate", "summarize", "decide", "extract", "compose"]>;
input_from: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
criteria: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "analyze" | "consider" | "research" | "validate" | "summarize" | "decide" | "extract" | "compose";
description: string;
error_handling: "retry" | "stop" | "continue";
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
input_from?: string[] | undefined;
criteria?: string | undefined;
}, {
id: number;
action: "analyze" | "consider" | "research" | "validate" | "summarize" | "decide" | "extract" | "compose";
description: string;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
input_from?: string[] | undefined;
criteria?: string | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"wait_for_input">;
prompt: z.ZodString;
input_type: z.ZodDefault<z.ZodEnum<["text", "number", "boolean", "json"]>>;
validation: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "wait_for_input";
description: string;
error_handling: "retry" | "stop" | "continue";
prompt: string;
input_type: "number" | "boolean" | "text" | "json";
validation?: string | undefined;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "wait_for_input";
description: string;
prompt: string;
validation?: string | undefined;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
input_type?: "number" | "boolean" | "text" | "json" | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"transform">;
input_from: z.ZodArray<z.ZodString, "many">;
transformation: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: number;
action: "transform";
description: string;
error_handling: "retry" | "stop" | "continue";
input_from: string[];
transformation: string;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "transform";
description: string;
input_from: string[];
transformation: string;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"branch">;
conditions: z.ZodArray<z.ZodObject<{
if: z.ZodString;
goto_step: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
if: string;
goto_step: number;
}, {
if: string;
goto_step: number;
}>, "many">;
default_step: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "branch";
description: string;
error_handling: "retry" | "stop" | "continue";
conditions: {
if: string;
goto_step: number;
}[];
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
default_step?: number | undefined;
}, {
id: number;
action: "branch";
description: string;
conditions: {
if: string;
goto_step: number;
}[];
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
default_step?: number | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"loop">;
over: z.ZodString;
as: z.ZodString;
steps: z.ZodArray<z.ZodNumber, "many">;
max_iterations: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "loop";
description: string;
error_handling: "retry" | "stop" | "continue";
over: string;
as: string;
steps: number[];
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
max_iterations?: number | undefined;
}, {
id: number;
action: "loop";
description: string;
over: string;
as: string;
steps: number[];
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
max_iterations?: number | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"parallel">;
parallel_steps: z.ZodArray<z.ZodNumber, "many">;
wait_for_all: z.ZodDefault<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
id: number;
action: "parallel";
description: string;
error_handling: "retry" | "stop" | "continue";
parallel_steps: number[];
wait_for_all: boolean;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "parallel";
description: string;
parallel_steps: number[];
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
wait_for_all?: boolean | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
show_all_variables: z.ZodOptional<z.ZodBoolean>;
} & {
action: z.ZodLiteral<"checkpoint">;
checkpoint_name: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: number;
action: "checkpoint";
description: string;
error_handling: "retry" | "stop" | "continue";
checkpoint_name: string;
save_result_as?: string | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}, {
id: number;
action: "checkpoint";
description: string;
checkpoint_name: string;
save_result_as?: string | undefined;
error_handling?: "retry" | "stop" | "continue" | undefined;
timeout_ms?: number | undefined;
retry_count?: number | undefined;
dependencies?: number[] | undefined;
show_all_variables?: boolean | undefined;
}>, z.ZodObject<{
id: z.ZodNumber;
description: z.ZodString;
save_result_as: z.ZodOptional<z.ZodString>;
error_handling: z.ZodDefault<z.ZodEnum<["stop", "continue", "retry"]>>;
timeout_ms: z.ZodOptional<z.ZodNumber>;
retry_count: z.ZodOptional<z.