OptionaldependenciesAccess other tasks/resources/events. Can be an object or a function when you need late or config‑dependent resolution.
Stable task identifier within its owner subtree.
OptionalinputOptional validation schema for runtime input validation. When provided, task input will be validated before execution.
OptionalmetaOptional metadata used for docs, filtering and tooling.
OptionalmiddlewareMiddleware applied around task execution.
OptionalresultOptional validation schema for the task result.
When provided, the result will be validated immediately after the task's
run resolves, without considering middleware.
Task implementation body.
Runner validates input before this runs and validates the result immediately after it resolves when schemas are configured.
OptionaltagsTags applied to the task that may affect contracts, routing, or runtime behavior.
OptionalthrowsDeclares which typed errors are part of this task's contract.
This is a declarative contract only:
Use Runner error helpers only.
Declarative task definition contract.