@oona/vlo / host / ActivityRegistration
Interface: ActivityRegistration
Defined in: sdk/ts/sdk/src/host/context.ts:39
An activity as the host knows it: a name and a validator for the worker's output. hash and jsonSchema are present on real Activity values and drive registry upserts on boot; a bare { name, output } still validates.
Properties
hash?
readonlyoptionalhash?:string
Defined in: sdk/ts/sdk/src/host/context.ts:45
Content hash of the activity definition; the registry version.
jsonSchema?
readonlyoptionaljsonSchema?:object
Defined in: sdk/ts/sdk/src/host/context.ts:47
JSON Schema for both sides, written to the registry on boot when hash is also present.
input
input:
unknown
output
output:
unknown
name
readonlyname:string
Defined in: sdk/ts/sdk/src/host/context.ts:41
Activity name, as the workflow schedules it.
output
readonlyoutput:Validator
Defined in: sdk/ts/sdk/src/host/context.ts:43
Validates a worker's output before it is folded; a failure fails the attempt with schema_violation.
retry?
readonlyoptionalretry?:unknown
Defined in: sdk/ts/sdk/src/host/context.ts:49
Retry policy, journaled next to the schema as byte-exact JSON.