hibp
Version:
An unofficial TypeScript SDK for the 'Have I been pwned?' service.
44 lines (43 loc) • 1.17 kB
TypeScript
export interface Breach {
Name: string;
Title: string;
Domain: string;
BreachDate: string;
AddedDate: string;
ModifiedDate: string;
PwnCount: number;
Description: string;
DataClasses: string[];
IsVerified: boolean;
IsFabricated: boolean;
IsSensitive: boolean;
IsRetired: boolean;
IsSpamList: boolean;
IsMalware: boolean;
IsSubscriptionFree: boolean;
LogoPath: string;
}
export interface Paste {
Id: string;
Source: string;
Title: string;
Date: string;
EmailCount: number;
}
export interface SubscriptionStatus {
SubscriptionName: string;
Description: string;
SubscribedUntil: string;
Rpm: number;
DomainSearchMaxBreachedAccounts: number;
IncludesStealerLogs: boolean;
}
export interface SubscribedDomain {
DomainName: string;
PwnCount: number | null;
PwnCountExcludingSpamLists: number | null;
PwnCountExcludingSpamListsAtLastSubscriptionRenewal: number | null;
NextSubscriptionRenewal: string | null;
}
export type BreachedDomainsByEmailAlias = Record<string, string[]>;
export type StealerLogDomainsByEmailAlias = Record<string, string[]>;