From 3d929c55c3d2f1c08b404efabcf843089ab5e8ed Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 8 Jun 2026 10:42:23 +0200 Subject: [PATCH] refactor(search): strip dead NL types from generated api.ts Remove the /api/search/nl path and the NlSearchRequest, NlQueryInterpretation, NlSearchResponse, PersonHint, and TagHint schemas left over from the NLP/smart-search removal. These were unused (nothing in frontend/src imported them); the manual strip matches what `npm run generate:api` produces against the now NL-free backend. Closes the last deferred review item on PR #772. Co-Authored-By: Claude Opus 4.8 --- frontend/src/lib/generated/api.ts | 73 ------------------------------- 1 file changed, 73 deletions(-) diff --git a/frontend/src/lib/generated/api.ts b/frontend/src/lib/generated/api.ts index 20653696..efe723b4 100644 --- a/frontend/src/lib/generated/api.ts +++ b/frontend/src/lib/generated/api.ts @@ -228,22 +228,6 @@ export interface paths { patch?: never; trace?: never; }; - "/api/search/nl": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: operations["search"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; "/api/persons": { parameters: { query?: never; @@ -1835,9 +1819,6 @@ export interface components { /** Format: uuid */ targetId: string; }; - NlSearchRequest: { - query: string; - }; Pageable: { /** Format: int32 */ page?: number; @@ -1897,34 +1878,6 @@ export interface components { /** Format: int32 */ length: number; }; - NlQueryInterpretation: { - resolvedPersons: components["schemas"]["PersonHint"][]; - ambiguousPersons: components["schemas"]["PersonHint"][]; - /** Format: date */ - dateFrom?: string; - /** Format: date */ - dateTo?: string; - keywords: string[]; - resolvedTags: components["schemas"]["TagHint"][]; - rawQuery: string; - keywordsApplied: boolean; - tagsApplied: boolean; - }; - NlSearchResponse: { - result: components["schemas"]["DocumentSearchResult"]; - interpretation: components["schemas"]["NlQueryInterpretation"]; - }; - PersonHint: { - /** Format: uuid */ - id: string; - displayName: string; - }; - TagHint: { - /** Format: uuid */ - id: string; - name: string; - color?: string; - }; SearchMatchData: { transcriptionSnippet?: string; titleOffsets: components["schemas"]["MatchOffset"][]; @@ -3244,32 +3197,6 @@ export interface operations { }; }; }; - search: { - parameters: { - query: { - pageable: components["schemas"]["Pageable"]; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["NlSearchRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "*/*": components["schemas"]["NlSearchResponse"]; - }; - }; - }; - }; getPersons: { parameters: { query?: {