UNPKG

@ai2070/l0

Version:

L0: The Missing Reliability Substrate for AI

93 lines 5.96 kB
import { z } from "zod4"; import type { StepResult, StructuredStepResult, StepContext, PipelineResult, PipelinePreset } from "../types/pipeline"; export declare const StepContextSchema: z.ZodType<StepContext>; export declare const StepResultSchema: z.ZodType<StepResult>; export declare const StructuredStepResultSchema: z.ZodType<StructuredStepResult>; export declare const PipelineStepSchema: z.ZodObject<{ name: z.ZodString; fn: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>; transform: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; condition: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onError: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onComplete: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, z.core.$strip>; export declare const StructuredPipelineStepSchema: z.ZodObject<{ name: z.ZodString; fn: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>; transform: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; condition: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onError: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onComplete: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, z.core.$strip>; export declare const PipelineOptionsSchema: z.ZodObject<{ name: z.ZodOptional<z.ZodString>; stopOnError: z.ZodOptional<z.ZodBoolean>; timeout: z.ZodOptional<z.ZodNumber>; signal: z.ZodOptional<z.ZodCustom<AbortSignal, AbortSignal>>; monitoring: z.ZodOptional<z.ZodObject<{ enabled: z.ZodOptional<z.ZodBoolean>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, z.core.$strip>>; onStart: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onComplete: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onError: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onProgress: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, z.core.$strip>; export declare const PipelineResultSchema: z.ZodType<PipelineResult>; export declare const PipelineSchema: z.ZodObject<{ name: z.ZodOptional<z.ZodString>; steps: z.ZodArray<z.ZodObject<{ name: z.ZodString; fn: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>; transform: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; condition: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onError: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onComplete: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, z.core.$strip>>; options: z.ZodObject<{ name: z.ZodOptional<z.ZodString>; stopOnError: z.ZodOptional<z.ZodBoolean>; timeout: z.ZodOptional<z.ZodNumber>; signal: z.ZodOptional<z.ZodCustom<AbortSignal, AbortSignal>>; monitoring: z.ZodOptional<z.ZodObject<{ enabled: z.ZodOptional<z.ZodBoolean>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, z.core.$strip>>; onStart: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onComplete: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onError: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onProgress: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, z.core.$strip>; run: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>; addStep: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>; removeStep: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>; getStep: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>; clone: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>; }, z.core.$strip>; export declare const PipelineBranchSchema: z.ZodObject<{ condition: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>; steps: z.ZodArray<z.ZodObject<{ name: z.ZodString; fn: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>; transform: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; condition: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onError: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onComplete: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, z.core.$strip>>; name: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export declare const StepBuilderOptionsSchema: z.ZodObject<{ l0Options: z.ZodOptional<z.ZodAny>; transform: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; condition: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onError: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, z.core.$strip>; export declare const PipelinePresetSchema: z.ZodType<PipelinePreset>; //# sourceMappingURL=pipeline.d.ts.map