The expected response payload type.
The URL to send the request to.
The HTTP method to use (GET, POST, PUT, or DELETE).
Optionaldata: string | object
The data to send with the request, when present.
Optionalauth: RequestAuthInput
The authentication material to include in the request headers. A string is treated as a bearer token for backwards compatibility.
OptionalsendOptions: SendRequestOptions
Named trailing options; see SendRequestOptions.
The unwrapped response data. For documents with a single root
field this is the bare field value; multi-root-field or zero-root-field
documents return the full { data } envelope. With protocol: "rest",
the parsed response body is returned as-is.
Sends a request to the specified URL through the ordered transport pipeline.
GraphQL callers get envelope unwrapping by leaving
protocolunset (or"graphql"); REST callers passprotocol: "rest"and receive the parsed body verbatim. REST HTTP failures return asAniLinkRestError; GraphQL HTTP failures return asAniLinkApiError.