Skip to content

stampedEventSchema

const stampedEventSchema: ZodObject<{ eventId: ZodUUID; identity: ZodRecord<ZodString, ZodString>; occurredAtUs: ZodString; payload: ZodUnknown; }, $strict>

Defined in: packages/contracts/src/events.ts:125

The stamped envelope (ADR-0053 decision 5): what the server produces at ingest, carries through the queue, and delivers to the consumer callback as-is. identity is the record of claim-derived fields the Event stream’s registration declares, resolved from the VERIFIED claims of the ingesting request.

This is the security-sensitive interface of the lane — the point where a client-supplied event becomes an attributed fact — so its shape is contracts-defined, never implementation-defined. It carries no stream (the queue message names it once, below) and no client-supplied identity of any kind.