-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
68 lines (62 loc) · 1.69 KB
/
types.ts
File metadata and controls
68 lines (62 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
export enum ConnectionState {
DISCONNECTED = 'DISCONNECTED',
CONNECTING = 'CONNECTING',
CONNECTED = 'CONNECTED',
ERROR = 'ERROR',
}
export interface TranscriptionItem {
id: string;
role: 'user' | 'model';
text: string;
isComplete: boolean;
}
export interface AudioSettings {
voiceName: string;
apiKey: string;
increasedSensitivityMode: boolean;
}
export interface VoiceProfile {
id: string;
name: string;
apiVoice: string;
systemDescription: string;
pitchShift: number; // Semitones
}
export interface User {
username: string;
passwordHash: string; // Stored locally
}
export interface StoredSession {
id: string;
timestamp: number;
transcripts: TranscriptionItem[];
audioBlob?: Blob; // Not stored in localStorage, but handled in memory for download
}
export interface CanonicalProtocolTranscriptItem {
speaker: 'Interviewer' | 'Interviewee' | 'AI';
text: string;
timestamp: string;
}
export interface CanonicalProtocolPackage {
protocolVersion: string;
exportedAt: string;
sourceApp: string;
session: {
id: string;
timestamp: number;
};
analysis: {
summary: string;
takeaways: string[];
modalities: string[];
phasesCount: number;
codebookSuggestions: { label: string; rationale: string; exemplarQuote: string }[];
diachronicStructure: { phaseName: string; description: string; startTime: string }[];
synchronicStructure: { category: string; details: string }[];
transcript: CanonicalProtocolTranscriptItem[];
};
coding: {
codes: { id: string; name: string; color: string }[];
annotations: { id: string; codeId: string; segmentIndex: number; startOffset: number; endOffset: number; text: string }[];
};
}