generated from sapphiredev/sapphire-template
/
PhishermanTypes.ts
55 lines (47 loc) · 952 Bytes
/
PhishermanTypes.ts
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
export interface PhishermanOptions {
apiKey: string;
}
export interface PhishermanReturnType {
verifiedPhish: boolean;
classification: 'malicious' | 'suspicious' | 'safe' | 'unknown';
}
export type CheckReturnType = PhishermanReturnType & {
isScam: boolean;
};
export interface PhishermanReportType {
success: boolean;
message: string;
}
export interface PhishermanInfo {
status: string;
created: string;
lastChecked: string;
verifiedPhish: boolean;
classification: string;
firstSeen: string;
lastSeen: string;
targetedBrand: string;
phishCaught: number;
details: Details;
}
export interface PhishermanInfoType {
[key: string]: PhishermanInfo;
}
interface Details {
phishTankId: string;
urlScanId: string;
websiteScreenshot: string;
ip_address: string;
asn: Asn;
registry: string;
country: Country;
}
interface Asn {
asn: string;
asn_name: string;
route: string;
}
interface Country {
code: string;
name: string;
}