mirror of
https://github.com/Melorise/TamaASR.git
synced 2026-11-07 14:39:32 +00:00
AI-assisted-by: Codex AI-model: gpt-5.6-sol AI-reasoning-effort: medium Co-authored-by: Codex <codex@openai.com>
51 lines
1.2 KiB
TypeScript
51 lines
1.2 KiB
TypeScript
export type SessionState = 'idle' | 'starting' | 'recording' | 'stopping';
|
|
export type BackendLoginState = 'unknown' | 'logged-in' | 'logged-out';
|
|
export type BackendReadyState = 'loading' | 'ready' | 'login-required' | 'error';
|
|
|
|
export interface Point {
|
|
x: number;
|
|
y: number;
|
|
}
|
|
|
|
export interface AppSettings {
|
|
backendId: string;
|
|
shortcut: string;
|
|
autoStart: boolean;
|
|
diagnosticLogging: boolean;
|
|
overlayPosition: Point | null;
|
|
loginNoticeShown: Record<string, boolean>;
|
|
}
|
|
|
|
export interface BackendRuntimeStatus {
|
|
backendId: string;
|
|
ready: boolean;
|
|
login: BackendLoginState;
|
|
detail: string;
|
|
}
|
|
|
|
export interface BackendStatusPayload {
|
|
backend: string;
|
|
ready: boolean;
|
|
loggedIn: boolean | null;
|
|
detail?: string;
|
|
}
|
|
|
|
export interface DisplayInfo {
|
|
id: string;
|
|
label: string;
|
|
workArea: Electron.Rectangle;
|
|
}
|
|
|
|
export interface SettingsViewState {
|
|
backendId: string;
|
|
backends: Array<{ id: string; label: string; status: BackendRuntimeStatus }>;
|
|
sessionState: SessionState;
|
|
shortcut: string;
|
|
autoStart: boolean;
|
|
diagnosticLogging: boolean;
|
|
overlayPosition: Point;
|
|
displays: DisplayInfo[];
|
|
version: string;
|
|
repositoryUrl: string | null;
|
|
}
|