Skip to content

chore(api): resync generated client with backend OpenAPI spec#24

Merged
creativeux merged 1 commit into
mainfrom
chore/resync-api-codegen
Jun 28, 2026
Merged

chore(api): resync generated client with backend OpenAPI spec#24
creativeux merged 1 commit into
mainfrom
chore/resync-api-codegen

Conversation

@creativeux

@creativeux creativeux commented Jun 28, 2026

Copy link
Copy Markdown
Owner

What

Mechanical resync of the orval-generated API client (frontend/src/api/generated/) with the backend's OpenAPI spec, via pnpm run generate-api. No hand-written code or logic changes — Python remains the single source of truth per CLAUDE.md.

Why

The generated client had drifted badly from the backend. Most endpoint groups added since the last codegen — account, wizard, diagnostics, snapshots, parental controls — and their models were never regenerated, and the /api/calls params type was missing the did filter from a prior feature. This surfaced while reviewing #23.

Regenerating clears it all in one pass:

  • Adds the missing did param to the calls params type.
  • Pre-commit hook prettier-formatted the orval output; tsc -b typecheck passes against the existing hand-written hooks (no breaking type changes).

🥞 Stacked on #23

This PR is based on fix/call-log-timezone (#23) and was regenerated against that branch's spec, so the timezone query param #23 removes is already absent from the generated types here — no leftover drift.

Merge order: merge #23 first. GitHub will then auto-retarget this PR to main, and it lands clean with no follow-up generate-api needed.

Reproducing

With the backend running on the #23 branch, cd frontend && pnpm run generate-api reproduces this diff exactly.

🤖 Generated with Claude Code

The orval-generated API client had drifted far from the backend spec: most
endpoint groups (account, wizard, diagnostics, snapshots, parental controls)
and their models were never regenerated after the features landed, and the
/api/calls params type was missing the `did` filter added in a prior feature.

Regenerate the whole client from the live spec (`pnpm run generate-api`) to
clear the drift in one pass. This is a mechanical, no-logic-change resync —
Python remains the single source of truth per CLAUDE.md.

Stacked on top of #23 (fix/call-log-timezone) and regenerated against that
branch's spec, so the removed `/api/calls` `timezone` query param is already
absent here. Merge #23 first; this then lands clean on main with no follow-up
regen needed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@creativeux creativeux force-pushed the chore/resync-api-codegen branch from 6914ed0 to 519558c Compare June 28, 2026 16:51
@creativeux creativeux changed the base branch from main to fix/call-log-timezone June 28, 2026 16:51
Base automatically changed from fix/call-log-timezone to main June 28, 2026 17:33
@creativeux creativeux self-assigned this Jun 28, 2026
@creativeux creativeux merged commit 29031f1 into main Jun 28, 2026
2 checks passed
@creativeux creativeux deleted the chore/resync-api-codegen branch June 28, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant