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.
Properties
Section titled “Properties”claims
Section titled “claims”claims:
object
Defined in: packages/server/src/events/route.ts:50
The verified claims of the ingesting request ({} when the registry needs none).
Index Signature
Section titled “Index Signature”[key: string]: unknown
app_metadata?
Section titled “app_metadata?”
optionalapp_metadata?:object
Index Signature
Section titled “Index Signature”[key: string]: unknown
app_metadata.roles?
Section titled “app_metadata.roles?”
optionalroles?:string[]
optionalsub?: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
Section titled “eventId”eventId:
string
occurredAtUs
Section titled “occurredAtUs”occurredAtUs:
string=unixMicrosecondsSchema
payload
Section titled “payload”payload:
unknown
stream
Section titled “stream”stream:
string
identity
Section titled “identity”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
Section titled “stream”stream:
string
Defined in: packages/server/src/events/route.ts:46
The Event-stream name — the key the hook dispatches on.