ApiCallError when success is false, including the
NOT_SUPPORTED failure a call answers with when no host is present.
Extract one property from the success branch of a response, throwing if the call failed.
The API envelope returned by a bridge call.
Property key of the success branch to extract.
ApiCallError when success is false.
Turn a response into its success branch, throwing when the call failed.
Namespace methods resolve with the envelope and do not throw for a failure they report (a call the host rejects outright, such as an unknown method, still rejects).
unwrapis for code that prefers an exception to checkingsuccessat every call site. Pass a key to get one field of the success branch instead.