From 8b498665df5d264c2cce66f789be2bf5fe5d6643 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 28 Apr 2026 21:10:54 +0200 Subject: [PATCH] chore(frontend): regenerate api.ts for PersonMention sidecar + PERSON_RENAME_CONFLICT openapi-typescript regenerated against the dev backend now exposes: - components.schemas.PersonMention with personId + displayName - TranscriptionBlock and CreateTranscriptionBlockDTO/UpdateTranscriptionBlockDTO carry the optional mentionedPersons array - (No new path entries: hover-card and typeahead reuse existing endpoints GET /api/persons, GET /api/persons/{id}, GET /api/persons/{id}/relationships.) Sealed inside PR-A so the frontend PR-B can import the new types from main without rebasing across an unrelated regen. Per Tobias' chain-tightening note in the consolidation summary. Refs #362 Co-Authored-By: Claude Opus 4.7 --- frontend/src/lib/generated/api.ts | 49 ++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/generated/api.ts b/frontend/src/lib/generated/api.ts index 30cec4fb..4d2787ad 100644 --- a/frontend/src/lib/generated/api.ts +++ b/frontend/src/lib/generated/api.ts @@ -132,6 +132,22 @@ export interface paths { patch?: never; trace?: never; }; + "/api/documents/{documentId}/transcription-blocks/review-all": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put: operations["markAllBlocksReviewed"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/api/documents/{documentId}/transcription-blocks/reorder": { parameters: { query?: never; @@ -1611,9 +1627,15 @@ export interface components { trainingLabels?: ("KURRENT_RECOGNITION" | "KURRENT_SEGMENTATION")[]; thumbnailUrl?: string; }; + PersonMention: { + /** Format: uuid */ + personId: string; + displayName: string; + }; UpdateTranscriptionBlockDTO: { text?: string; label?: string; + mentionedPersons?: components["schemas"]["PersonMention"][]; }; TranscriptionBlock: { /** Format: uuid */ @@ -1623,6 +1645,7 @@ export interface components { /** Format: uuid */ documentId: string; text?: string; + mentionedPersons: components["schemas"]["PersonMention"][]; label?: string; /** Format: int32 */ sortOrder: number; @@ -1665,7 +1688,8 @@ export interface components { CreateRelationshipRequest: { /** Format: uuid */ relatedPersonId: string; - relationType: string; + /** @enum {string} */ + relationType: "PARENT_OF" | "SPOUSE_OF" | "SIBLING_OF" | "FRIEND" | "COLLEAGUE" | "EMPLOYER" | "DOCTOR" | "NEIGHBOR" | "OTHER"; /** Format: int32 */ fromYear?: number; /** Format: int32 */ @@ -1796,6 +1820,7 @@ export interface components { height?: number; text?: string; label?: string; + mentionedPersons?: components["schemas"]["PersonMention"][]; }; CreateCommentDTO: { content?: string; @@ -2747,6 +2772,28 @@ export interface operations { }; }; }; + markAllBlocksReviewed: { + parameters: { + query?: never; + header?: never; + path: { + documentId: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "*/*": components["schemas"]["TranscriptionBlock"][]; + }; + }; + }; + }; reorderBlocks: { parameters: { query?: never;