| 1 | export interface EnhanceSettings { |
| 2 | enabled: boolean; |
| 3 | provider: "anthropic" | "gemini" | "openai" | "ollama"; |
| 4 | model: string; |
| 5 | base_url: string; |
| 6 | api_key_env: string; |
| 7 | instructions: string; |
| 8 | } |
| 9 | |
| 10 | export interface Settings { |
| 11 | hotkey: string; |
| 12 | activation: "toggle" | "hold"; |
| 13 | injection_mode: "paste" | "type"; |
| 14 | restore_clipboard: boolean; |
| 15 | dictation_model: string; |
| 16 | language: string; |
| 17 | enhance: EnhanceSettings; |
| 18 | } |
| 19 | |
| 20 | export interface ModelInfo { |
| 21 | id: string; |
| 22 | label: string; |
| 23 | filename: string; |
| 24 | size_mb: number; |
| 25 | multilingual: boolean; |
| 26 | description: string; |
| 27 | installed: boolean; |
| 28 | } |
| 29 | |
| 30 | export interface DownloadProgress { |
| 31 | id: string; |
| 32 | downloaded: number; |
| 33 | total: number; |
| 34 | done: boolean; |
| 35 | } |
| 36 | |
| 37 | export interface TranscriptPayload { |
| 38 | raw: string; |
| 39 | text: string; |
| 40 | enhanced: boolean; |
| 41 | } |
| 42 | |
| 43 | export type RecordingState = "idle" | "recording" | "processing"; |
| 44 | |
| 45 | export interface EnvironmentInfo { |
| 46 | wayland: boolean; |
| 47 | compositor: string; |
| 48 | exe: string; |
| 49 | } |