Interface: NodeDefinition<TInput, TOutput, TMetadata>
Defined in: index.ts:34
Type Parameters
TInput
TInput = unknown
The schema or validator for the input data.
TOutput
TOutput = unknown
The schema or validator for the output data.
TMetadata
TMetadata = Record<string, unknown>
The type of the metadata object.
Properties
executor()
executor: (
data,context,externalPayload?,globals?) =>Promise<{__pause?:true;data:TOutput;nextHandle?:string; }>
Defined in: index.ts:52
Parameters
data
TInput
The validated input data.
context
The execution context containing results from previous nodes.
externalPayload?
unknown
Optional payload passed to the execution.
globals?
unknown
Global variables passed to the execution (e.g., secrets).
Returns
Promise<{ __pause?: true; data: TOutput; nextHandle?: string; }>
A promise resolving to the node's result, including data and optional control flags.
metadata?
optionalmetadata:TMetadata
Defined in: index.ts:40
Description
Optional metadata for the node definition (e.g., validation schemas).
retryPolicy?
optionalretryPolicy:RetryPolicy
Defined in: index.ts:42
Description
Policy for handling errors and retrying execution.