generate-types command creates type definition files in a given language for all enabled SuprSend schemas from a specified workspace.
Syntax
| Argument | Description |
|---|---|
<language> | The programming language to generate types for. Supported languages - typescript, go, python, java, kotlin, swift, dart |
--output-file | Path to the output file where types will be generated (required) |
Flags
| Flag | Description | Default |
|---|---|---|
-h, --help | Show help for the command | – |
--output-file string | Output file for generated types | – |
--build-flags string | Flags to generate types in a certain way (e.g. --zod for TypeScript) | – |
--mode string | Mode of schema to fetch (draft, live) | live |
--workspace string | Workspace to get schemas from | staging |