Defined in: packages/workflow-core/src/types.ts:415
TInput = unknown
TOutput = unknown
TState = Record<string, unknown>
__kind: "workflow";__kind: "workflow";Defined in: packages/workflow-core/src/types.ts:420
optional defaultStepRetry: StepRetryOptions;optional defaultStepRetry: StepRetryOptions;Defined in: packages/workflow-core/src/types.ts:434
optional description: string;optional description: string;Defined in: packages/workflow-core/src/types.ts:422
handler: (ctx) => Promise<TOutput>;handler: (ctx) => Promise<TOutput>;Defined in: packages/workflow-core/src/types.ts:436
any
Promise<TOutput>
id: string;id: string;Defined in: packages/workflow-core/src/types.ts:421
optional initialize: (args) => Partial<TState>;optional initialize: (args) => Partial<TState>;Defined in: packages/workflow-core/src/types.ts:433
TInput
Partial<TState>
optional inputSchema: SchemaInput;optional inputSchema: SchemaInput;Defined in: packages/workflow-core/src/types.ts:430
middlewares: readonly AnyMiddleware[];middlewares: readonly AnyMiddleware[];Defined in: packages/workflow-core/src/types.ts:435
optional outputSchema: SchemaInput;optional outputSchema: SchemaInput;Defined in: packages/workflow-core/src/types.ts:431
optional previousVersions: readonly WorkflowDefinition<any, any, any>[];optional previousVersions: readonly WorkflowDefinition<any, any, any>[];Defined in: packages/workflow-core/src/types.ts:429
Older versions of this workflow that may still have in-flight runs. The engine routes a run's resume call to the version whose identifier matches the run's persisted workflowVersion.
optional stateSchema: SchemaInput;optional stateSchema: SchemaInput;Defined in: packages/workflow-core/src/types.ts:432
optional version: string;optional version: string;Defined in: packages/workflow-core/src/types.ts:425
Caller-supplied version identifier. Used with previousVersions and selectWorkflowVersion for cross-version routing.