Compute the capabilities this object requires that are NOT present in
declared. Used by a server to build the data.requiredCapabilities
payload of a -32003 MissingRequiredClientCapabilityError: this is the
set a request needs, declared is what the client actually advertised,
and the result is a ClientCapabilities containing exactly the missing
ones. A capability is satisfied when the client declared at least the same
presence flag (sub-capability flags imply their parent presence here, in
line with toJson). The result is null iff every requirement is met; a
non-null value carries exactly the unmet ones. The experimental and
extensions Json maps are compared by required-key presence: any required
key absent from declared is reported.
Compute the capabilities this object requires that are NOT present in declared. Used by a server to build the data.requiredCapabilities payload of a -32003 MissingRequiredClientCapabilityError: this is the set a request needs, declared is what the client actually advertised, and the result is a ClientCapabilities containing exactly the missing ones. A capability is satisfied when the client declared at least the same presence flag (sub-capability flags imply their parent presence here, in line with toJson). The result is null iff every requirement is met; a non-null value carries exactly the unmet ones. The experimental and extensions Json maps are compared by required-key presence: any required key absent from declared is reported.