hydrateResourceIO
Hydrates (deserializes) the data fields of a resource returned by the World SDK: a workflow run, step, hook, or event. Workflow data is serialized using the devalue format, so this is required before displaying step input/output in a user interface.
The function dispatches on the resource shape: steps get input/output hydrated, hooks get metadata, events get eventData, and runs get input/output.
API signature
Parameters
| Parameter | Type | Description |
|---|---|---|
resource | WorkflowRun | Step | Hook | Event | The resource with serialized data fields |
revivers | Revivers | Reviver functions for deserialization. Use observabilityRevivers for standard use. |
Returns
The same resource with its data fields hydrated into plain JavaScript values.
Encrypted data fields pass through as raw Uint8Array values rather than being decrypted. See Encrypted Data.