-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
36 lines (31 loc) · 685 Bytes
/
Copy pathtypes.ts
File metadata and controls
36 lines (31 loc) · 685 Bytes
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
export interface ScanResult {
isPhishing: boolean;
probability: number;
reasoning: string;
heatmap: CharacterWeight[];
summary: {
criticalFindings: string[];
adversarialDetected: boolean;
};
}
export interface CharacterWeight {
char: string;
weight: number; // 0 to 1
label?: string; // e.g., "Lookalike character", "Suspicious TLD"
}
export enum ScanState {
IDLE = 'IDLE',
SCANNING = 'SCANNING',
COMPLETED = 'COMPLETED',
ERROR = 'ERROR'
}
export interface SimulationConfig {
adversarialEnabled: boolean;
}
export interface HistoryItem {
id: string;
timestamp: number;
content: string;
config: SimulationConfig;
result: ScanResult;
}