This module is types only — no runtime code beyond tiny guards and
constants, no dependencies. It is safe to import from the record hot path and
the zero-dependency verifier. Runtime validation (which pulls in valibot)
lives in validation.
A duration for configuration options: either milliseconds as a number, or a human-friendly string such as "5s", "30m", "2h", "90d". Parsed by ./duration.durationToMs.
The privacy-bearing sections of an event. Each is hashed separately (salted with the event id) so it can be erased without breaking the chain (ADR 0004, ADR 0011).
A JSON object (the shape of metadata, context, and actor/target metadata). undefined members are allowed for ergonomics and dropped on serialization, exactly like JSON.stringify.