Expand description
Generate TypeScript client classes and scoped client factories.
Each service gets a {Service}Client class that wraps builder/parser functions
and provides typed method calls. Scoped clients (detected from nested union patterns)
get their own classes with curried scope fields.
Scoped client methods call deterministic builder functions and unwrap responses through the ancestor chain, matching the Rust codegen pattern exactly.
Functionsยง
- emit_
bound_ ๐unary_ call - emit_
error_ ๐throw - Emit an error-variant check that throws an
Errorwith the RPC error message. - generate_
client - Generate the main client class and scoped client classes.
- generate_
scoped_ ๐client - Generate a scoped client class (e.g., RepositoryClient).
- generate_
streaming_ ๐body - has_
streaming_ ๐in_ scoped - has_
streaming_ methods - Check if any method in the schema returns StreamInfo (indicating streaming support needed).