Parse and validate a JMAP session response using the JMAPSessionSchema.
Performs structural validation only (required top-level fields, account shape,
presence of the Core server capability key). Capability-specific content
validation is performed separately via the capability registry's
validateServerCapabilities() and validateAccountCapabilities() methods.
The returned session object is not frozen — callers should apply
deepFreeze() after capability validation has had a chance to strip
invalid capabilities from the session.
Parameters
jsonResponse: unknown
The raw JSON response from the server to be validated.
Parse and validate a JMAP session response using the JMAPSessionSchema.
Performs structural validation only (required top-level fields, account shape, presence of the Core server capability key). Capability-specific content validation is performed separately via the capability registry's
validateServerCapabilities()andvalidateAccountCapabilities()methods.The returned session object is not frozen — callers should apply
deepFreeze()after capability validation has had a chance to strip invalid capabilities from the session.