The callable signature for a single endpoint on the typed client.
When the endpoint requires arguments (path params, body, query, or
headers) the function takes a single argument object. When no arguments
are needed the function can be called with no arguments.
Every endpoint call also exposes a .stream() method that returns an
AsyncIterable<string> yielding newline-delimited chunks (e.g. NDJSON).
An optional AbortSignal can be passed to cancel an in-flight stream.
The callable signature for a single endpoint on the typed client.
When the endpoint requires arguments (path params, body, query, or headers) the function takes a single argument object. When no arguments are needed the function can be called with no arguments.
Every endpoint call also exposes a
.stream()method that returns anAsyncIterable<string>yielding newline-delimited chunks (e.g. NDJSON). An optionalAbortSignalcan be passed to cancel an in-flight stream.