chore(web-ui): regen api types — party-claims-summary endpoints (#202) #364

Merged
chaim merged 1 commits from worktree-agent-ae0bc7fc1516f1f34 into main 2026-06-30 12:52:26 +00:00
Owner

מה ולמה

הרצת npm run api:types מחדש כדי לסנכרן את הלקוח המגונרט (web-ui/src/lib/api/types.ts) מול ה-OpenAPI schema החי בייצור, אחרי ש-PR #358 (#202) הוסיף את שלושת ה-endpoints (read-only) של summarize_party_claims:

  • GET /api/cases/{case_number}/research/party-claims-summary (read)
  • GET /api/cases/{case_number}/research/party-claims-summary/download
  • GET /api/cases/{case_number}/research/party-claims-summary/export-docx

הריג'ן גם קולט endpoints נוספים שזחלו מסנכרון מאז הריג'ן האחרון (citation-verification + verify, agents/reset, digest-radar, plans/fetch, learning/style-distance-history, scripts/{name}/run, canonical-halachot instances), ומחזיר את הלקוח המגונרט היחיד למצב תואם-ייצור. הקובץ נוצר אוטומטית — לא נערך ידנית.

Invariants — הצהרה (חובה)

  • נוגע / מקיים: X6 (חוזה UI↔API — שמירת הלקוח המגונרט מסונכרן עם ה-OpenAPI של FastAPI). G2 (מקור-אמת יחיד — לקוח מגונרט יחיד מ-openapi-typescript, ללא טיפוסים מקבילים ערוכים-ביד).

צ'קליסט — פרוטוקול כתיבת-קוד

  • קראתי את ספ-התחום הרלוונטי (X6 — UI↔API contract) + AGENTS.md לפני הכתיבה
  • השינוי לא יוצר מסלול מקביל ליכולת קיימת (G2) — זהו אותו קובץ מגונרט יחיד
  • לא הוספתי מגע-Paperclip מחוץ ל-Platform Port (G12) — לא רלוונטי, רק טיפוסי-UI
  • אין בליעה שקטה של שגיאות — אין שינויי לוגיקה
  • הקובץ נוצר אוטומטית (openapi-typescript), לא נערך ביד

אימות

  • npm run api:types → גונרר מחדש מ-https://legal-ai.nautilus.marcusgroup.org/openapi.json
  • git diff: שינוי בקובץ אחד בלבד — web-ui/src/lib/api/types.ts (+695/-41)
  • npx tsc --noEmit → עבר נקי (exit 0)

🤖 Generated with Claude Code

## מה ולמה הרצת `npm run api:types` מחדש כדי לסנכרן את הלקוח המגונרט (`web-ui/src/lib/api/types.ts`) מול ה-OpenAPI schema החי בייצור, אחרי ש-PR #358 (#202) הוסיף את שלושת ה-endpoints (read-only) של `summarize_party_claims`: - `GET /api/cases/{case_number}/research/party-claims-summary` (read) - `GET /api/cases/{case_number}/research/party-claims-summary/download` - `GET /api/cases/{case_number}/research/party-claims-summary/export-docx` הריג'ן גם קולט endpoints נוספים שזחלו מסנכרון מאז הריג'ן האחרון (citation-verification + verify, agents/reset, digest-radar, plans/fetch, learning/style-distance-history, scripts/{name}/run, canonical-halachot instances), ומחזיר את הלקוח המגונרט היחיד למצב תואם-ייצור. **הקובץ נוצר אוטומטית — לא נערך ידנית.** ## Invariants — הצהרה (חובה) - **נוגע / מקיים:** **X6** (חוזה UI↔API — שמירת הלקוח המגונרט מסונכרן עם ה-OpenAPI של FastAPI). **G2** (מקור-אמת יחיד — לקוח מגונרט יחיד מ-`openapi-typescript`, ללא טיפוסים מקבילים ערוכים-ביד). ## צ'קליסט — פרוטוקול כתיבת-קוד - [x] קראתי את ספ-התחום הרלוונטי (X6 — UI↔API contract) + AGENTS.md לפני הכתיבה - [x] השינוי **לא** יוצר מסלול מקביל ליכולת קיימת (G2) — זהו אותו קובץ מגונרט יחיד - [x] **לא** הוספתי מגע-Paperclip מחוץ ל-Platform Port (G12) — לא רלוונטי, רק טיפוסי-UI - [x] אין בליעה שקטה של שגיאות — אין שינויי לוגיקה - [x] הקובץ נוצר אוטומטית (`openapi-typescript`), לא נערך ביד ## אימות - `npm run api:types` → גונרר מחדש מ-`https://legal-ai.nautilus.marcusgroup.org/openapi.json` - `git diff`: שינוי בקובץ אחד בלבד — `web-ui/src/lib/api/types.ts` (+695/-41) - `npx tsc --noEmit` → עבר נקי (exit 0) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chaim added 1 commit 2026-06-30 12:52:02 +00:00
chore(web-ui): regen api types — party-claims-summary endpoints (#202)
All checks were successful
G12 Leak-Guard / leak-guard (pull_request) Successful in 3s
Lint — undefined names / undefined-names (pull_request) Successful in 10s
c84417369d
Regenerate src/lib/api/types.ts from the live production OpenAPI schema
after PR #358 (#202) added the read-only summarize_party_claims endpoints:

- GET /api/cases/{case_number}/research/party-claims-summary (read)
- GET /api/cases/{case_number}/research/party-claims-summary/download
- GET /api/cases/{case_number}/research/party-claims-summary/export-docx

The regen also picks up other endpoints that had drifted out of sync
(citation-verification, agents/reset, digest-radar, plans/fetch,
style-distance-history, scripts/{name}/run, canonical-halachot instances),
bringing the single generated client back in line with production.

Invariants: X6 (UI<->API contract kept in sync via the generated client),
G2 (single auto-generated client, no hand-edited parallel types).

tsc --noEmit passes clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
chaim merged commit c6d20654a9 into main 2026-06-30 12:52:26 +00:00
chaim deleted branch worktree-agent-ae0bc7fc1516f1f34 2026-06-30 12:52:26 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ezer-mishpati/legal-ai#364