validateHookEvent
validateHookEvent(
body):RawHookEvent|null
Defined in: src/hooks-ingest.ts:146
Pure, total validator over an untrusted hook body. Returns null for non-objects or a
missing/non-string session_id (the only hard requirement). Reads hook_event_name
and derives a normalized event. UNKNOWN event/notification types are NOT dropped —
they’re accepted and flagged unknown: true so the spike surfaces a wrong upstream
string instead of silently disabling a signal.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”RawHookEvent | null