#!/bin/sh
# Regenerates src/generated/api.ts from spec/openapi.json. Run after refreshing
# the spec; the output is committed so consumers never need the generator.
set -e
cd "$(dirname "$0")/.."
npx openapi-typescript spec/openapi.json -o src/generated/api.ts --alphabetize