Skip to content

MethodInfo

Defined in: src/client/introspect.ts:13

Describes a single RPC method as reported by the server’s __describe__ response.

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.


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.


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.


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: Schema;

Defined in: src/client/introspect.ts:19

Arrow schema of the call parameters.


optional paramTypes?: Record<string, string>;

Defined in: src/client/introspect.ts:31

Per-parameter human-readable type names, if the server provides them.


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).