Chore-1185: sync app-api mirror + regen src/gen to v3 matter contract

Story 1185Epic None64 files · +3067/−7773

PR #294 · pramaan-io/pramaan-app · merged 2026-06-10

Why this matters

Backend moved. The client didn't.

Matter creation, snapshot POST, labels & filing types — stranded on V2.

Hand-patching is a treadmill.

The fix — Sync the mirror, regenerate the client, drop what the server now owns.

How it flows

sequenceDiagram
  autonumber
  participant backend as Backend V3
  participant mirror as Mirror (openapi)
  participant gen as Codegen (src/gen)
  participant app as App code
  participant tests as Tests
  backend->>mirror: V3 catalog reissued
  mirror->>gen: regen runs
  gen->>gen: rewrite types, zod, hooks
  gen->>app: drop createTemplateSnapshot call
  app->>tests: update fixtures

Files changed (64)

File±
openapi/app-api.json ★+2973 −4029
src/app/[locale]/(workspace)/matters/actions.ts+0 −9
src/gen/client/appCreateMatterFilingType.ts+0 −76
src/gen/client/appCreateMatterParticipantLabel.ts+0 −76
src/gen/client/appCreateMatterTemplateSnapshot.ts+0 −76
src/gen/client/appUpdateMatterFilingType.ts+0 −81
src/gen/client/appUpdateMatterParticipantLabel.ts+0 −81
src/gen/client/index.ts+0 −5
src/gen/hooks/index.ts+0 −20
src/gen/hooks/useAppCreateMatterFilingType.ts+0 −162
src/gen/hooks/useAppCreateMatterParticipantLabel.ts+0 −164
src/gen/hooks/useAppCreateMatterTemplateSnapshot.ts+0 −164
src/gen/hooks/useAppUpdateMatterFilingType.ts+0 −175
src/gen/hooks/useAppUpdateMatterParticipantLabel.ts+0 −184
src/gen/index.ts+0 −174
src/gen/schemas/matterDetailView.json ★+15
src/gen/schemas/matterFilingTypeCreateRequest.json+0 −31
src/gen/schemas/matterFilingTypeUpdateRequest.json+0 −39
src/gen/schemas/matterFrameView.json+5
src/gen/schemas/matterListItem.json+5
src/gen/schemas/matterListResponse.json+5
src/gen/schemas/matterParticipantLabelCreateRequest.json+0 −31
src/gen/schemas/matterParticipantLabelUpdateRequest.json+0 −39
src/gen/schemas/matterParticipantLabelView.json+0 −70
src/gen/schemas/matterSnapshotFilingTypeView.json+0 −70
src/gen/schemas/matterTemplateSnapshotCreateRequest.json+0 −31
src/gen/schemas/matterTemplateSnapshotView.json+11 −201
src/gen/types/AppCreateMatterFilingType.ts+0 −85
src/gen/types/AppCreateMatterParticipantLabel.ts+0 −85
src/gen/types/AppCreateMatterTemplateSnapshot.ts+0 −85
src/gen/types/AppUpdateMatterFilingType.ts+0 −89
src/gen/types/AppUpdateMatterParticipantLabel.ts+0 −89
src/gen/types/MatterDetailView.ts+4
src/gen/types/MatterFilingTypeCreateRequest.ts+0 −30
src/gen/types/MatterFilingTypeUpdateRequest.ts+0 −29
src/gen/types/MatterFrameView.ts+4
src/gen/types/MatterListItem.ts+4
src/gen/types/MatterParticipantLabelCreateRequest.ts+0 −30
src/gen/types/MatterParticipantLabelUpdateRequest.ts+0 −29
src/gen/types/MatterParticipantLabelView.ts+0 −59
src/gen/types/MatterSnapshotFilingTypeView.ts+0 −59
src/gen/types/MatterTemplateSnapshotCreateRequest.ts+0 −30
src/gen/types/MatterTemplateSnapshotView.ts+7 −34
src/gen/types/index.ts+0 −77
src/gen/zod/appCreateMatterFilingTypeSchema.ts+0 −102
src/gen/zod/appCreateMatterParticipantLabelSchema.ts+0 −102
src/gen/zod/appCreateMatterTemplateSnapshotSchema.ts+0 −102
src/gen/zod/appUpdateMatterFilingTypeSchema.ts+0 −103
src/gen/zod/appUpdateMatterParticipantLabelSchema.ts+0 −103
src/gen/zod/index.ts+0 −72
src/gen/zod/matterDetailViewSchema.ts+7
src/gen/zod/matterFilingTypeCreateRequestSchema.ts+0 −25
src/gen/zod/matterFilingTypeUpdateRequestSchema.ts+0 −27
src/gen/zod/matterFrameViewSchema.ts+7
src/gen/zod/matterListItemSchema.ts+7
src/gen/zod/matterParticipantLabelCreateRequestSchema.ts+0 −29
src/gen/zod/matterParticipantLabelUpdateRequestSchema.ts+0 −27
src/gen/zod/matterParticipantLabelViewSchema.ts+0 −42
src/gen/zod/matterSnapshotFilingTypeViewSchema.ts+0 −36
src/gen/zod/matterTemplateSnapshotCreateRequestSchema.ts+0 −31
src/gen/zod/matterTemplateSnapshotViewSchema.ts ★+13 −31
src/lib/matters/gateway.ts+0 −20
tests/unit/matter-actions.test.ts+0 −31
tests/unit/matters-contract.test.ts+0 −92