typegen

command
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2026 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL