8. Regenerate frontend types
cd frontend
npm run generate-types
This runs openapi-typescript ../openapi.json -o types/api.d.ts, which is also generated and never hand-edited. CI regenerates it and runs git diff --exit-code, so commit it with the change.
Re-export the new DTO types from lib/api.ts so consumers don't dig into components['schemas']:
// frontend/lib/api.ts
type Schemas = components['schemas'];
// ... existing ones ...
export type Task = Schemas['TaskDto'];