Expand description
Protocol code generation — TypeScript types and protocol descriptors.
Reads a ProtocolManifest and emits:
- TypeScript interfaces for commands, queries, events, and DTOs
- Protocol descriptors for adapter generation
This module is the bridge between Rust protocol definitions and the generated artifacts that TypeScript consumers and runtime adapters use.
Structs§
- Protocol
Descriptor - A protocol descriptor for a command, query, or event.
- Protocol
Descriptor Set - A complete set of protocol descriptors for a project.
- Surface
Descriptor Set - A per-surface descriptor group.
Enums§
- Http
Method - HTTP method for remote adapter routing.
Functions§
- generate_
all_ surface_ typescripts - Generate one TypeScript module per surface in the manifest.
- generate_
descriptors - Generate protocol descriptors from a manifest.
- generate_
typescript - Generate a complete TypeScript module from a protocol manifest.
- generate_
typescript_ for_ surface - Generate a TypeScript module containing only the items that belong to
surface. - rust_
type_ to_ ts - Map a Rust type string (from manifest
tyfield) to a TypeScript type.