Skip to content

MethodInfo

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

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

optional defaults?: Record<string, any>;

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

Default values applied to omitted parameters before a call is sent.


optional doc?: string;

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

Human-readable documentation for the method, if the server provides it.


optional headerSchema?: Schema<any>;

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

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:24

Arrow schema of the per-batch input rows for exchange streams, when available.


name: string;

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

The method name as invoked by RpcClient.call / RpcClient.stream.


optional outputSchema?: Schema<any>;

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

Arrow schema of the per-batch output rows for stream methods, when available.


paramsSchema: Schema;

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

Arrow schema of the call parameters.


optional paramTypes?: Record<string, string>;

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

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


resultSchema: Schema;

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

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:18

Whether the method is a single request/response (unary) or a streaming method (stream).