@xyo-network/event-kit-schemas
v0.1.9
Published
Wake envelope, grant object, and JWT profile schema constants for XL1 Event Kit
Downloads
3,704
Readme
@xyo-network/event-kit-schemas
Canonical schema constants and Zod guards for XL1 Event Kit:
- wake Payload (
network.xyo.event.wake.envelope) - wake grant object with a required random
grantId(network.xyo.event.wake.grant) - wake JWT payload schema (
network.xyo.event.wake.jwt) - publisher service and dedicated encryption-key descriptors
- encrypted subscriptions and their clear HPKE routing envelope
- endpoint challenge requests/responses and publisher acceptances
- exact lifecycle revocations for services, keys, subscriptions, and acceptances
The D-002 schema tranche treats the wake object as a strict XYO Payload,
requires a 16-byte lowercase-hex wakeId, and limits Payload/JWT numeric fields
to nonnegative JSON safe integers. Strict wallet-JWT header and payload schemas
validate the exact initial encodings before protocol code applies cryptographic,
time-relative, address-equality, audience-equality, and replay checks.
Event Kit has one source-aware contract with unversioned schema identifiers. Strict parsers reject version suffixes and the head-only envelope shape. D-005 handshake guards enforce exclusive block expiries, linear revision links, canonical base64url sizes, and the supported delivery/challenge/HPKE profiles.
WakeSourceZod and WakeEnvelopeZod support finalized XL1, finalized Ethereum,
and named UTC interval schedules. Ethereum identity includes its decimal chain
ID and genesis hash; interval identity includes schedule ID, anchor, and
duration. authorizationChainId identifies the independent XL1 authority chain;
fromPosition and toPosition are inclusive source positions. The helper
completedUtcIntervalPosition returns no head before the first interval ends.
Publisher services advertise exact sources, and encrypted subscription filters
bind the source, first position, and maximum range.
See D-001, the D-002 wallet profile, the D-005 handshake profile, and the Yellow Paper.
