Variable: SESSION_ERROR_SEVERITY
const SESSION_ERROR_SEVERITY: Readonly<Record<SessionErrorCode, SessionErrorSeverity>>;
Defined in: packages/media-session/src/validate.ts:674
The one place a SessionErrorCode is graded.
In TypeScript rather than on the bridge, deliberately: severity is a property of the code, not of the occurrence, so shipping it across the bridge would be a second copy that a Kotlin edit could silently desynchronise from a Swift one — the exact defect ARCHITECTURE §27 is named after. Native says what happened; this table says how much it cost, once, for both platforms.
Record<SessionErrorCode, …> and not Partial<…>: adding a member to the
union without grading it is then a typecheck failure rather than a silent
undefined.