diff --git a/src/lib/api.ts b/src/lib/api.ts index 2d077ba..2f225d2 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -142,6 +142,15 @@ export interface Meeting { summary: SummaryFile | null; calendar_event_id: string | null; tags: string[]; + template_id: string | null; +} + +// Note template (Phase 8, T8.1, FR-NOTE-5) — section headers applied to +// notes.md at recording-start time. +export interface NoteTemplate { + id: string; + name: string; + sections: string[]; } // Calendar / .pst (Phase 6, FR-CAL-*). @@ -267,8 +276,16 @@ export interface McpAccessEntry { // ---- Commands ---- export const api = { // `record` controls audio RETENTION (default false / off — ADR-0009). - startRecording: (meetingTitle?: string, calendarEventId?: string, record = false) => - invoke("start_recording", { args: { meetingTitle, calendarEventId, record } }), + startRecording: ( + meetingTitle?: string, + calendarEventId?: string, + record = false, + templateId?: string, + ) => + invoke("start_recording", { + args: { meetingTitle, calendarEventId, record, templateId }, + }), + listNoteTemplates: () => invoke("list_note_templates"), stopRecording: (meetingId: MeetingId) => invoke("stop_recording", { meetingId }), pauseRecording: (meetingId: MeetingId) => invoke("pause_recording", { meetingId }), resumeRecording: (meetingId: MeetingId) => invoke("resume_recording", { meetingId }),