SysProM
    Preparing search index...

    Interface OperationDef<TInput, TOutput>

    Definition of a SysProM operation — a named, typed function with Zod schemas for input validation and output description.

    interface OperationDef<
        TInput extends z.ZodType = z.ZodType,
        TOutput extends z.ZodType = z.ZodType,
    > {
        description: string;
        fn: (input: output<TInput>) => output<TOutput>;
        input: TInput;
        name: string;
        output: TOutput;
    }

    Type Parameters

    • TInput extends z.ZodType = z.ZodType

      Zod schema type for the operation's input.

    • TOutput extends z.ZodType = z.ZodType

      Zod schema type for the operation's output.

    Index

    Properties

    description: string

    Human-readable description of what the operation does.

    fn: (input: output<TInput>) => output<TOutput>

    The implementation function.

    input: TInput

    Zod schema used to validate the operation's input.

    name: string

    Machine-readable operation name (e.g. "addNode").

    output: TOutput

    Zod schema describing the operation's output shape.