chore(api): resync generated client with backend OpenAPI spec#24
Merged
Conversation
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>
6914ed0 to
519558c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Mechanical resync of the orval-generated API client (
frontend/src/api/generated/) with the backend's OpenAPI spec, viapnpm 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/callsparams type was missing thedidfilter from a prior feature. This surfaced while reviewing #23.Regenerating clears it all in one pass:
didparam to the calls params type.tsc -btypecheck 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 thetimezonequery 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-upgenerate-apineeded.Reproducing
With the backend running on the #23 branch,
cd frontend && pnpm run generate-apireproduces this diff exactly.🤖 Generated with Claude Code