-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
49 lines (42 loc) · 1.03 KB
/
types.ts
File metadata and controls
49 lines (42 loc) · 1.03 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
export type Language = 'Tamil' | 'English' | 'Hindi' | 'Malayalam' | 'Telugu';
export interface VoiceDetectionRequest {
language: Language;
audioFormat: 'mp3';
audioBase64: string;
}
export interface VoiceDetectionResponse {
status: 'success' | 'error';
language: Language;
classification: 'AI_GENERATED' | 'HUMAN';
confidenceScore: number;
explanation: string;
}
export interface ScamMessage {
sender: 'scammer' | 'user';
text: string;
timestamp: number;
}
export interface HoneypotSession {
sessionId: string;
message: ScamMessage;
conversationHistory: ScamMessage[];
metadata: {
channel: string;
language: string;
locale: string;
};
}
export interface ExtractedIntelligence {
bankAccounts: string[];
upiIds: string[];
phishingLinks: string[];
phoneNumbers: string[];
suspiciousKeywords: string[];
}
export interface FinalResultPayload {
sessionId: string;
scamDetected: boolean;
totalMessagesExchanged: number;
extractedIntelligence: ExtractedIntelligence;
agentNotes: string;
}