Documentation
¶
Overview ¶
Command wire-codegen generates the TypeScript wire surface and the Go path constants from the single wire contract in internal/wirespec, using the wiregen library (AST-based; github.com/cplieger/wiregen/v2).
Outputs:
- internal/server/static-src/wire/{types,decoders,client}.gen.ts — interfaces, validating decoders, and the typed decoder-bound client (consumed directly by the client modules; api-types.ts re-exports the common surface).
- internal/apipaths/paths.gen.go — Path* constants shared by the CLI.
The endpoint table's auth groups are checked against routes.go by internal/server's wirespec consistency test; routes.go stays authoritative for permissions.
Run: go run ./cmd/wire-codegen (from the subflux repo root)
Click to show internal directories.
Click to hide internal directories.