diff --git a/packages/fingerprint-generator/src/fingerprint-generator.ts b/packages/fingerprint-generator/src/fingerprint-generator.ts index 6be64644..c580ae71 100644 --- a/packages/fingerprint-generator/src/fingerprint-generator.ts +++ b/packages/fingerprint-generator/src/fingerprint-generator.ts @@ -24,9 +24,34 @@ export type ScreenFingerprint = { hasHDR: boolean; } +export type Brand = { + brand: string; + version: string; +} + +export type UserAgentData = { + brands: Brand[]; + mobile: boolean; + platform: string; + architecture: string; + bitness: string; + fullVersionList: Brand[]; + model: string; + platformVersion: string; + uaFullVersion: string; +} + +export interface ExtraProperties { + vendorFlavors: string[]; + isBluetoothSupported: boolean; + globalPrivacyControl: null; + pdfViewerEnabled: boolean; + installedApps: any[]; +} + export type NavigatorFingerprint = { userAgent: string; - userAgentData: Record; + userAgentData: UserAgentData; doNotTrack: string; appCodeName: string; appName: string; @@ -43,8 +68,8 @@ export type NavigatorFingerprint = { vendor: string; vendorSub: string; maxTouchPoints?: number; - extraProperties: Record; -} + extraProperties: ExtraProperties; +}; export type VideoCard = { renderer: string;