Documentation
¶
Overview ¶
Command typegen generates TypeScript type definitions from a running Hanzo Base instance.
Usage:
go run cmd/typegen/main.go --url http://localhost:8090 --output types.ts \ --token "$BASE_TOKEN"
It connects to the Base API, reads all collection schemas, and emits TypeScript interfaces with a Collections type map.
The legacy --admin-email / --admin-password flags were removed in the IAM-native rip; pass a pre-obtained IAM JWT via --token or the BASE_TOKEN env var. Anonymous access (--token "") still works for public-readable collections.
Click to show internal directories.
Click to hide internal directories.