Skip to content

EventGateInput

Defined in: packages/server/src/events/route.ts:44

What the gating hook is told about one event. identity is already resolved from the verified claims.

claims: object

Defined in: packages/server/src/events/route.ts:50

The verified claims of the ingesting request ({} when the registry needs none).

[key: string]: unknown

optional app_metadata?: object

[key: string]: unknown

optional roles?: string[]

optional sub?: string


event: object

Defined in: packages/server/src/events/route.ts:48

The client’s envelope, with its payload already validated against the stream’s registered schema.

eventId: string

occurredAtUs: string = unixMicrosecondsSchema

payload: unknown

stream: string


identity: Record<string, string>

Defined in: packages/server/src/events/route.ts:52

The server-stamped identity this event would carry onto the queue.


stream: string

Defined in: packages/server/src/events/route.ts:46

The Event-stream name — the key the hook dispatches on.