Skip to content

Commit 514a5c6

Browse files
chore(api): generate api types for note management schemas
1 parent 6b466bc commit 514a5c6

File tree

2 files changed

+153
-3
lines changed

2 files changed

+153
-3
lines changed

backend/app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
findings,
2121
health,
2222
knowledge_graph,
23-
notes,
2423
locations,
24+
notes,
2525
redaction,
2626
sse,
2727
synthesis,

packages/types/src/generated/api.ts

Lines changed: 152 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,8 +1262,9 @@ export interface paths {
12621262
* Generate Geospatial Intelligence
12631263
* @description Trigger on-demand geospatial analysis.
12641264
*
1265-
* Spawns Geospatial Agent async task. Returns immediately with 202 Accepted.
1266-
* Frontend should subscribe to SSE for progress updates.
1265+
* Schedules a background task with its own DB session (following the
1266+
* pipeline pattern). Returns immediately with 202 Accepted.
1267+
* Frontend polls GET /geospatial/status for progress.
12671268
*/
12681269
post: operations["generate_geospatial_intelligence_api_cases__case_id__geospatial_generate_post"];
12691270
delete?: never;
@@ -2836,6 +2837,23 @@ export interface components {
28362837
*/
28372838
created_at: string;
28382839
};
2840+
/**
2841+
* GenerateMetadataResponse
2842+
* @description Schema for generated metadata response.
2843+
*/
2844+
GenerateMetadataResponse: {
2845+
/**
2846+
* Note Id
2847+
* Format: uuid
2848+
*/
2849+
note_id: string;
2850+
/** Title */
2851+
title: string;
2852+
/** Subtitle */
2853+
subtitle: string;
2854+
/** Content */
2855+
content?: string | null;
2856+
};
28392857
/**
28402858
* GraphResponse
28412859
* @description Full knowledge graph data for a case, containing all entities and relationships.
@@ -2988,6 +3006,138 @@ export interface components {
29883006
*/
29893007
created_at: string;
29903008
};
3009+
/**
3010+
* NoteCreate
3011+
* @description Schema for creating a new note.
3012+
*/
3013+
NoteCreate: {
3014+
type: components["schemas"]["NoteType"];
3015+
/**
3016+
* Content
3017+
* @description Text content for text notes
3018+
*/
3019+
content?: string | null;
3020+
};
3021+
/**
3022+
* NoteExportRequest
3023+
* @description Schema for exporting a note as evidence.
3024+
*/
3025+
NoteExportRequest: {
3026+
/**
3027+
* Description
3028+
* @description Optional description for the exported file
3029+
*/
3030+
description?: string | null;
3031+
};
3032+
/**
3033+
* NoteExportResponse
3034+
* @description Schema for export response.
3035+
*/
3036+
NoteExportResponse: {
3037+
/**
3038+
* Note Id
3039+
* Format: uuid
3040+
*/
3041+
note_id: string;
3042+
/**
3043+
* File Id
3044+
* Format: uuid
3045+
*/
3046+
file_id: string;
3047+
/** File Name */
3048+
file_name: string;
3049+
/** Message */
3050+
message: string;
3051+
};
3052+
/**
3053+
* NoteListResponse
3054+
* @description Schema for listing notes.
3055+
*/
3056+
NoteListResponse: {
3057+
/** Notes */
3058+
notes: components["schemas"]["NoteResponse"][];
3059+
/** Total */
3060+
total: number;
3061+
/** Page */
3062+
page: number;
3063+
/** Per Page */
3064+
per_page: number;
3065+
};
3066+
/**
3067+
* NoteResponse
3068+
* @description Schema for note response.
3069+
*/
3070+
NoteResponse: {
3071+
/**
3072+
* Id
3073+
* Format: uuid
3074+
*/
3075+
id: string;
3076+
/**
3077+
* Case Id
3078+
* Format: uuid
3079+
*/
3080+
case_id: string;
3081+
/** User Id */
3082+
user_id: string;
3083+
type: components["schemas"]["NoteType"];
3084+
/** Content */
3085+
content?: string | null;
3086+
/** Audio Storage Path */
3087+
audio_storage_path?: string | null;
3088+
/** Audio Duration Seconds */
3089+
audio_duration_seconds?: number | null;
3090+
/** Audio Mime Type */
3091+
audio_mime_type?: string | null;
3092+
/** Title */
3093+
title?: string | null;
3094+
/** Subtitle */
3095+
subtitle?: string | null;
3096+
/**
3097+
* Is Exported
3098+
* @default false
3099+
*/
3100+
is_exported: boolean;
3101+
/** Exported File Id */
3102+
exported_file_id?: string | null;
3103+
/**
3104+
* Created At
3105+
* Format: date-time
3106+
*/
3107+
created_at: string;
3108+
/**
3109+
* Updated At
3110+
* Format: date-time
3111+
*/
3112+
updated_at: string;
3113+
};
3114+
/**
3115+
* NoteType
3116+
* @description Type of note.
3117+
* @enum {string}
3118+
*/
3119+
NoteType: "TEXT" | "AUDIO";
3120+
/**
3121+
* NoteUpdate
3122+
* @description Schema for updating an existing note.
3123+
*/
3124+
NoteUpdate: {
3125+
/**
3126+
* Content
3127+
* @description Updated text content
3128+
*/
3129+
content?: string | null;
3130+
/**
3131+
* Title
3132+
* @description Updated title
3133+
*/
3134+
title?: string | null;
3135+
/**
3136+
* Subtitle
3137+
* @description Updated subtitle
3138+
*/
3139+
subtitle?: string | null;
3140+
};
29913141
/**
29923142
* OrchestratorOutput
29933143
* @description Complete output from the Orchestrator Agent.

0 commit comments

Comments
 (0)