The generate-types command converts all enabled SuprSend schemas from a specified workspace into strongly-typed programming language interfaces. This command processes all enabled schemas with meaningful content from the workspace, not just a single schema.

Syntax

suprsend generate-types <output-file> [flags]
Arguments:
  • <output-file> - Path to the output file where types will be generated (required)
Supported File Types: We currently support .ts, .go, .py, .kt, .swift files. Additional extensions like .java and .dart may also be supported.

Options

FlagDescriptionDefault
-h, --helpShow help for the command
--build-flags stringFlags to generate types in a certain way
--mode stringMode of schema to fetch (currently unused)live

Examples

# Generate TypeScript types from all enabled schemas in staging workspace
suprsend generate-types types.ts

# Generate Go types from all enabled schemas in staging workspace
suprsend generate-types types.go