@smartip/js
Version:
SmartIP.io Official Javascript Library (Typescript)
99 lines • 2.24 kB
TypeScript
export interface IIPModel {
'status-code': number;
'geo': IGeo;
'asn': IAsn;
'currency': ICurrency;
'timezone': ITimezone;
'security': ISecurity;
'crypto'?: ICrypto;
'user-agent': IUserAgent;
'error'?: any;
'hostname': string;
'ip-type': string;
'requester-ip': string;
'ip': string;
}
export interface IGeo {
'is-metric': boolean;
'is-in-europe': boolean;
'country-geo-id': number;
'region-code': string;
'region-name': string;
'continent-code': string;
'continent-name': string;
capital: string;
'country-name': string;
'country-iso-code': string;
longitude: number;
latitude: number;
'zip-code': string;
city: string;
}
export interface IAsn {
name: string;
type: string;
domain: string;
organization: string;
asn: string;
}
export interface ICurrency {
'native-name': string;
code: string;
name: string;
symbol: string;
}
export interface ITimezone {
'is-daylight-saving': boolean;
'gmt-offset': number;
'date-time': Date;
'microsoft-name': string;
'iana-name': string;
}
export interface ISecurity {
'is-crawler': boolean;
'is-proxy': boolean;
'is-tor': boolean;
'tor-insights'?: ITorInsights;
'proxy-insights'?: IProxyInsights;
'crawler-insights'?: ICrawlerInsights;
}
export interface ITorInsights {
'exit-node': string;
'published-on': string;
'last-status-on': string;
}
export interface ICrawlerInsights {
'type': string;
'name': string;
'domain': string;
}
export interface IProxyInsights {
'type': string;
}
export interface IOs {
name: string;
platform: string;
version: string;
family: string;
}
export interface IDevice {
brand: string;
model: string;
family: string;
}
export interface ICrypto {
port: number;
coin: string;
}
export interface IUserAgent {
os: IOs;
device: IDevice;
'engine-version': string;
engine: string;
name: string;
type: string;
header: string;
version: string;
family: string;
}
//# sourceMappingURL=IpModel.d.ts.map