[Story-1005] Regenerate Matter Redesign contracts

Story 1005Epic 995📜 The Evidentiary RecordMatter Intelligence100 files · +54364/−3451

PR #213 · pramaan-io/pramaan-app · merged 2026-06-03

How it flows

sequenceDiagram
  autonumber
  participant spec as pramaan-functions
  participant specfile as openapi/app-api.json
  participant gen as Kubb generator
  participant artifacts as src/gen
  participant gates as Quality gates
  spec->>specfile: commit new API
  specfile->>gen: pnpm kubb:generate
  gen->>artifacts: types · zod · hooks
  artifacts->>gates: typecheck · lint · test · build
  gates->>gates: all green

What this PR deliberately does NOT do

every artefact regenerated from one openapi spec
drift between code and API is structurally impossible
HR-20: generated-contract adoption only
no screen paints the new data yet
downstream app stories will consume the new hooks

Files changed (100)

File±
docs/walkthroughs/story-1005-walkthrough.html+206
openapi/app-api.json ★+13905 −3441
src/gen/client/appAttachFilingTypeMatterType.ts+81
src/gen/client/appCreateClaimBlockRef.ts+77
src/gen/client/appCreateClaimRbrLink.ts+77
src/gen/client/appCreateClaimValidationCheck.ts+79
src/gen/client/appCreateFilingType.ts+68
src/gen/client/appCreateMatterAdversaryRead.ts+76
src/gen/client/appCreateMatterAnnotation.ts+76
src/gen/client/appCreateMatterClaim.ts+73
src/gen/client/appCreateMatterProceedingStage.ts+81
src/gen/client/appCreateMatterRbr.ts+75
src/gen/client/appCreateMatterTemplateSnapshot.ts+76
src/gen/client/appCreateRelatedMatter.ts+75
src/gen/client/appCreateRelatedMatterCarryForwardRecord.ts+81
src/gen/client/appDeleteClaimBlockRef.ts+71
src/gen/client/appDeleteClaimRbrLink.ts+71
src/gen/client/appDeleteFilingType.ts+65
src/gen/client/appDeleteMatterClaim.ts+65
src/gen/client/appDetachFilingTypeMatterType.ts+70
src/gen/client/appGetClaimBlockRef.ts+67
src/gen/client/appGetClaimRbrLink.ts+67
src/gen/client/appGetFilingType.ts+63
src/gen/client/appGetForumsSummary.ts+54
src/gen/client/appGetMatterAdversaryRead.ts+65
src/gen/client/appGetMatterAnnotation.ts+65
src/gen/client/appGetMatterClaim.ts+65
src/gen/client/appGetMatterRbr.ts+65
src/gen/client/appGetMatterTemplate.ts+63
src/gen/client/appGetMatterTemplateSnapshot.ts+63
src/gen/client/appGetMatterValidationCheck.ts+65
src/gen/client/appListClaimBlockRefs.ts+65
src/gen/client/appListClaimRbrLinks.ts+68
src/gen/client/appListClaimValidationChecks.ts+68
src/gen/client/appListFilingTypes.ts+57
src/gen/client/appListMatterAdversaryReads.ts+66
src/gen/client/appListMatterAnnotations.ts+66
src/gen/client/appListMatterClaims.ts+66
src/gen/client/appListMatterProceedingStages.ts+68
src/gen/client/appListMatterRbrs.ts+63
src/gen/client/appListMatterTemplates.ts+54
src/gen/client/appListMatterValidationChecks.ts+66
src/gen/client/appListProceedingAdversaryReads.ts+71
src/gen/client/appListRelatedMatterCarryForwardRecords.ts+70
src/gen/client/appListRelatedMatters.ts+63
src/gen/client/appListTargetAnnotations.ts+74
src/gen/client/appPatchMatterAdversaryReadResponse.ts+83
src/gen/client/appPatchMatterAdversaryReadState.ts+81
src/gen/client/appResolveMatterValidationCheck.ts+81
src/gen/client/appUpdateClaimBlockRef.ts+83
src/gen/client/appUpdateClaimRbrLink.ts+81
src/gen/client/appUpdateFilingType.ts+75
src/gen/client/appUpdateMatterAnnotation.ts+81
src/gen/client/appUpdateMatterClaim.ts+75
src/gen/client/appUpdateMatterProceedingStage.ts+84
src/gen/client/index.ts+53
src/gen/hooks/index.ts ★+316
src/gen/hooks/useAppAttachFilingTypeMatterType.ts+177
src/gen/hooks/useAppCreateClaimBlockRef.ts+167
src/gen/hooks/useAppCreateClaimRbrLink.ts+167
src/gen/hooks/useAppCreateClaimValidationCheck.ts+171
src/gen/hooks/useAppCreateFilingType.ts+156
src/gen/hooks/useAppCreateMatterAdversaryRead.ts+162
src/gen/hooks/useAppCreateMatterAnnotation.ts+162
src/gen/hooks/useAppCreateMatterClaim.ts+156
src/gen/hooks/useAppCreateMatterProceedingStage.ts+177
src/gen/hooks/useAppCreateMatterRbr.ts+162
src/gen/hooks/useAppCreateMatterTemplateSnapshot.ts+164
src/gen/hooks/useAppCreateRelatedMatter.ts+162
src/gen/hooks/useAppCreateRelatedMatterCarryForwardRecord.ts ★+179
src/gen/hooks/useAppDeleteClaimBlockRef.ts+164
src/gen/hooks/useAppDeleteClaimRbrLink.ts+164
src/gen/hooks/useAppDeleteFilingType.ts+152
src/gen/hooks/useAppDeleteMatterClaim.ts+151
src/gen/hooks/useAppDetachFilingTypeMatterType.ts+164
src/gen/hooks/useAppGetClaimBlockRef.ts+143
src/gen/hooks/useAppGetClaimBlockRefSuspense.ts+145
src/gen/hooks/useAppGetClaimRbrLink.ts+143
src/gen/hooks/useAppGetClaimRbrLinkSuspense.ts+145
src/gen/hooks/useAppGetFilingType.ts+130
src/gen/hooks/useAppGetFilingTypeSuspense.ts+129
src/gen/hooks/useAppGetForumsSummary.ts+114
src/gen/hooks/useAppGetForumsSummarySuspense.ts+113
src/gen/hooks/useAppGetMatterAdversaryRead.ts+139
src/gen/hooks/useAppGetMatterAdversaryReadSuspense.ts+140
src/gen/hooks/useAppGetMatterAnnotation.ts+139
src/gen/hooks/useAppGetMatterAnnotationSuspense.ts+140
src/gen/hooks/useAppGetMatterClaim.ts+133
src/gen/hooks/useAppGetMatterClaimSuspense.ts+137
src/gen/hooks/useAppGetMatterRbr.ts+133
src/gen/hooks/useAppGetMatterRbrSuspense.ts+137
src/gen/hooks/useAppGetMatterTemplate.ts+137
src/gen/hooks/useAppGetMatterTemplateSnapshot.ts+131
src/gen/hooks/useAppGetMatterTemplateSnapshotSuspense.ts+133
src/gen/hooks/useAppGetMatterTemplateSuspense.ts+139
src/gen/hooks/useAppGetMatterValidationCheck.ts+139
src/gen/hooks/useAppGetMatterValidationCheckSuspense.ts+140
src/gen/hooks/useAppListClaimBlockRefs.ts+139
src/gen/hooks/useAppListClaimBlockRefsSuspense.ts+137
src/gen/hooks/useAppListClaimRbrLinks.ts+145