MethodInfo
Defined in: src/client/introspect.ts:13
Describes a single RPC method as reported by the server’s __describe__ response.
Properties
Section titled “Properties”defaults?
Section titled “defaults?”optional defaults?: Record<string, any>;Defined in: src/client/introspect.ts:33
Default values applied to omitted parameters before a call is sent.
optional doc?: string;Defined in: src/client/introspect.ts:29
Human-readable documentation for the method, if the server provides it.
headerSchema?
Section titled “headerSchema?”optional headerSchema?: Schema<any>;Defined in: src/client/introspect.ts:27
Arrow schema of the stream’s one-time header row, when the method declares one.
inputSchema?
Section titled “inputSchema?”optional inputSchema?: Schema<any>;Defined in: src/client/introspect.ts:23
Arrow schema of the per-batch input rows for exchange streams, when available.
name: string;Defined in: src/client/introspect.ts:15
The method name as invoked by RpcClient.call / RpcClient.stream.
outputSchema?
Section titled “outputSchema?”optional outputSchema?: Schema<any>;Defined in: src/client/introspect.ts:25
Arrow schema of the per-batch output rows for stream methods, when available.
paramsSchema
Section titled “paramsSchema”paramsSchema: Schema;Defined in: src/client/introspect.ts:19
Arrow schema of the call parameters.
paramTypes?
Section titled “paramTypes?”optional paramTypes?: Record<string, string>;Defined in: src/client/introspect.ts:31
Per-parameter human-readable type names, if the server provides them.
resultSchema
Section titled “resultSchema”resultSchema: Schema;Defined in: src/client/introspect.ts:21
Arrow schema of a unary result; for stream methods this holds the per-batch output schema.
type: "unary" | "stream";Defined in: src/client/introspect.ts:17
Whether the method is a single request/response (unary) or a streaming method (stream).