@bloume/id 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +75 -2
- package/dist/bloumeid.global.js +7 -0
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +47 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -0
- package/dist/server.cjs +2 -0
- package/dist/server.cjs.map +1 -0
- package/dist/server.d.cts +70 -0
- package/dist/server.d.ts +70 -0
- package/dist/server.mjs +2 -0
- package/dist/server.mjs.map +1 -0
- package/dist/types-oAJ8fW36.d.cts +328 -0
- package/dist/types-oAJ8fW36.d.ts +328 -0
- package/package.json +67 -3
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { F as FingerprintComponents } from './types-oAJ8fW36.js';
|
|
2
|
+
export { c as BloumeIDResult } from './types-oAJ8fW36.js';
|
|
3
|
+
|
|
4
|
+
interface BloumeIDServerConfig {
|
|
5
|
+
secretKey: string;
|
|
6
|
+
endpoint?: string;
|
|
7
|
+
timeoutMs?: number;
|
|
8
|
+
}
|
|
9
|
+
interface VerifiedRequestResponse {
|
|
10
|
+
verified?: boolean;
|
|
11
|
+
requestId: string;
|
|
12
|
+
visitorId: string;
|
|
13
|
+
siteId: string;
|
|
14
|
+
thumbmark: string;
|
|
15
|
+
hardwareHash: string;
|
|
16
|
+
dangerLevel: number;
|
|
17
|
+
confidence: number;
|
|
18
|
+
flags: {
|
|
19
|
+
isBot: boolean;
|
|
20
|
+
isSpoofed: boolean;
|
|
21
|
+
isVpn: boolean;
|
|
22
|
+
isTor: boolean;
|
|
23
|
+
isDatacenter: boolean;
|
|
24
|
+
isProxy: boolean;
|
|
25
|
+
isIncognito: boolean;
|
|
26
|
+
crossBrowserMatched: boolean;
|
|
27
|
+
};
|
|
28
|
+
network: {
|
|
29
|
+
ipAddress: string;
|
|
30
|
+
ipSubnet: string;
|
|
31
|
+
ja4Hash: string | null;
|
|
32
|
+
asnNumber: number | null;
|
|
33
|
+
asnOrg: string | null;
|
|
34
|
+
country: string | null;
|
|
35
|
+
city: string | null;
|
|
36
|
+
};
|
|
37
|
+
createdAt: string;
|
|
38
|
+
components?: FingerprintComponents;
|
|
39
|
+
}
|
|
40
|
+
interface VisitorProfileResponse {
|
|
41
|
+
visitorId: string;
|
|
42
|
+
siteId: string;
|
|
43
|
+
hardwareHash: string;
|
|
44
|
+
firstSeenAt: string;
|
|
45
|
+
lastSeenAt: string;
|
|
46
|
+
visitCount: number;
|
|
47
|
+
maxDangerLevel: number;
|
|
48
|
+
tags: string[];
|
|
49
|
+
notes: string | null;
|
|
50
|
+
recentEvents: Array<{
|
|
51
|
+
requestId: string;
|
|
52
|
+
fullHash: string;
|
|
53
|
+
ipAddress: string;
|
|
54
|
+
dangerLevel: number;
|
|
55
|
+
confidence: number;
|
|
56
|
+
crossBrowserMatched: boolean;
|
|
57
|
+
createdAt: string;
|
|
58
|
+
}>;
|
|
59
|
+
}
|
|
60
|
+
declare class BloumeIDServer {
|
|
61
|
+
private readonly secretKey;
|
|
62
|
+
private readonly endpoint;
|
|
63
|
+
private readonly timeoutMs;
|
|
64
|
+
constructor(config: BloumeIDServerConfig);
|
|
65
|
+
private request;
|
|
66
|
+
verifyRequest(requestId: string): Promise<VerifiedRequestResponse>;
|
|
67
|
+
getVisitor(visitorId: string): Promise<VisitorProfileResponse>;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export { BloumeIDServer, type BloumeIDServerConfig, type VerifiedRequestResponse, type VisitorProfileResponse, BloumeIDServer as default };
|
package/dist/server.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var r=class{constructor(e){if(!e.secretKey||!e.secretKey.startsWith("bid_sec_"))throw new Error("BloumeIDServer requires a valid secretKey starting with 'bid_sec_'");this.secretKey=e.secretKey,this.endpoint=(e.endpoint??"http://localhost:3000").replace(/\/+$/,""),this.timeoutMs=e.timeoutMs??5e3}async request(e){let s=new AbortController,n=setTimeout(()=>s.abort(),this.timeoutMs);try{let t=await fetch(`${this.endpoint}${e}`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${this.secretKey}`,"X-BloumeID-Secret":this.secretKey},signal:s.signal});if(!t.ok){let i=await t.json().catch(()=>({}));throw new Error(i.error??`BloumeID API error (${t.status})`)}return await t.json()}finally{clearTimeout(n)}}async verifyRequest(e){if(!e||!e.startsWith("req_"))throw new Error("Invalid requestId: must start with 'req_'");return this.request(`/api/v1/requests/${encodeURIComponent(e)}`)}async getVisitor(e){if(!e||!e.startsWith("vis_"))throw new Error("Invalid visitorId: must start with 'vis_'");return this.request(`/api/v1/visitors/${encodeURIComponent(e)}`)}},a=r;export{r as BloumeIDServer,a as default};
|
|
2
|
+
//# sourceMappingURL=server.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/server.ts"],"sourcesContent":["import type { BloumeIDResult, FingerprintComponents } from \"./types\";\n\nexport interface BloumeIDServerConfig {\n secretKey: string;\n endpoint?: string;\n timeoutMs?: number;\n}\n\nexport interface VerifiedRequestResponse {\n verified?: boolean;\n requestId: string;\n visitorId: string;\n siteId: string;\n thumbmark: string;\n hardwareHash: string;\n dangerLevel: number;\n confidence: number;\n flags: {\n isBot: boolean;\n isSpoofed: boolean;\n isVpn: boolean;\n isTor: boolean;\n isDatacenter: boolean;\n isProxy: boolean;\n isIncognito: boolean;\n crossBrowserMatched: boolean;\n };\n network: {\n ipAddress: string;\n ipSubnet: string;\n ja4Hash: string | null;\n asnNumber: number | null;\n asnOrg: string | null;\n country: string | null;\n city: string | null;\n };\n createdAt: string;\n components?: FingerprintComponents;\n}\n\nexport interface VisitorProfileResponse {\n visitorId: string;\n siteId: string;\n hardwareHash: string;\n firstSeenAt: string;\n lastSeenAt: string;\n visitCount: number;\n maxDangerLevel: number;\n tags: string[];\n notes: string | null;\n recentEvents: Array<{\n requestId: string;\n fullHash: string;\n ipAddress: string;\n dangerLevel: number;\n confidence: number;\n crossBrowserMatched: boolean;\n createdAt: string;\n }>;\n}\n\nexport class BloumeIDServer {\n private readonly secretKey: string;\n private readonly endpoint: string;\n private readonly timeoutMs: number;\n\n constructor(config: BloumeIDServerConfig) {\n if (!config.secretKey || !config.secretKey.startsWith(\"bid_sec_\")) {\n throw new Error(\"BloumeIDServer requires a valid secretKey starting with 'bid_sec_'\");\n }\n this.secretKey = config.secretKey;\n this.endpoint = (config.endpoint ?? \"http://localhost:3000\").replace(/\\/+$/, \"\");\n this.timeoutMs = config.timeoutMs ?? 5000;\n }\n\n private async request<T>(path: string): Promise<T> {\n const controller = new AbortController();\n const timer = setTimeout(() => controller.abort(), this.timeoutMs);\n try {\n const res = await fetch(`${this.endpoint}${path}`, {\n method: \"GET\",\n headers: {\n Accept: \"application/json\",\n Authorization: `Bearer ${this.secretKey}`,\n \"X-BloumeID-Secret\": this.secretKey,\n },\n signal: controller.signal,\n });\n\n if (!res.ok) {\n const errBody = (await res.json().catch(() => ({}))) as { error?: string };\n throw new Error(errBody.error ?? `BloumeID API error (${res.status})`);\n }\n return (await res.json()) as T;\n } finally {\n clearTimeout(timer);\n }\n }\n\n public async verifyRequest(requestId: string): Promise<VerifiedRequestResponse> {\n if (!requestId || !requestId.startsWith(\"req_\")) {\n throw new Error(\"Invalid requestId: must start with 'req_'\");\n }\n return this.request<VerifiedRequestResponse>(\n `/api/v1/requests/${encodeURIComponent(requestId)}`\n );\n }\n\n public async getVisitor(visitorId: string): Promise<VisitorProfileResponse> {\n if (!visitorId || !visitorId.startsWith(\"vis_\")) {\n throw new Error(\"Invalid visitorId: must start with 'vis_'\");\n }\n return this.request<VisitorProfileResponse>(\n `/api/v1/visitors/${encodeURIComponent(visitorId)}`\n );\n }\n}\n\nexport type { BloumeIDResult };\nexport default BloumeIDServer;\n"],"mappings":"AA6DO,IAAMA,EAAN,KAAqB,CAK1B,YAAYC,EAA8B,CACxC,GAAI,CAACA,EAAO,WAAa,CAACA,EAAO,UAAU,WAAW,UAAU,EAC9D,MAAM,IAAI,MAAM,oEAAoE,EAEtF,KAAK,UAAYA,EAAO,UACxB,KAAK,UAAYA,EAAO,UAAY,yBAAyB,QAAQ,OAAQ,EAAE,EAC/E,KAAK,UAAYA,EAAO,WAAa,GACvC,CAEA,MAAc,QAAWC,EAA0B,CACjD,IAAMC,EAAa,IAAI,gBACjBC,EAAQ,WAAW,IAAMD,EAAW,MAAM,EAAG,KAAK,SAAS,EACjE,GAAI,CACF,IAAME,EAAM,MAAM,MAAM,GAAG,KAAK,QAAQ,GAAGH,CAAI,GAAI,CACjD,OAAQ,MACR,QAAS,CACP,OAAQ,mBACR,cAAe,UAAU,KAAK,SAAS,GACvC,oBAAqB,KAAK,SAC5B,EACA,OAAQC,EAAW,MACrB,CAAC,EAED,GAAI,CAACE,EAAI,GAAI,CACX,IAAMC,EAAW,MAAMD,EAAI,KAAK,EAAE,MAAM,KAAO,CAAC,EAAE,EAClD,MAAM,IAAI,MAAMC,EAAQ,OAAS,uBAAuBD,EAAI,MAAM,GAAG,CACvE,CACA,OAAQ,MAAMA,EAAI,KAAK,CACzB,QAAE,CACA,aAAaD,CAAK,CACpB,CACF,CAEA,MAAa,cAAcG,EAAqD,CAC9E,GAAI,CAACA,GAAa,CAACA,EAAU,WAAW,MAAM,EAC5C,MAAM,IAAI,MAAM,2CAA2C,EAE7D,OAAO,KAAK,QACV,oBAAoB,mBAAmBA,CAAS,CAAC,EACnD,CACF,CAEA,MAAa,WAAWC,EAAoD,CAC1E,GAAI,CAACA,GAAa,CAACA,EAAU,WAAW,MAAM,EAC5C,MAAM,IAAI,MAAM,2CAA2C,EAE7D,OAAO,KAAK,QACV,oBAAoB,mBAAmBA,CAAS,CAAC,EACnD,CACF,CACF,EAGOC,EAAQT","names":["BloumeIDServer","config","path","controller","timer","res","errBody","requestId","visitorId","server_default"]}
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
type CollectorName = "canvas" | "webgl" | "webgpu" | "audio" | "hardware" | "screen" | "cssMedia" | "mediaCodecs" | "fonts" | "timezone" | "intl" | "languages" | "userAgentData" | "storage" | "speech" | "math" | "webrtc" | "connection" | "media" | "permissions" | "antiSpoof" | "privateMode";
|
|
2
|
+
interface BloumeIDOptions {
|
|
3
|
+
exclude?: CollectorName[];
|
|
4
|
+
timeout?: number;
|
|
5
|
+
cacheLifetimeMs?: number;
|
|
6
|
+
includeRawComponents?: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface BloumeIDInitConfig {
|
|
9
|
+
apiKey?: string;
|
|
10
|
+
endpoint?: string;
|
|
11
|
+
region?: "eu" | "us" | "ap" | "global";
|
|
12
|
+
options?: BloumeIDOptions;
|
|
13
|
+
}
|
|
14
|
+
interface FingerprintJSGetOptions {
|
|
15
|
+
extendedResult?: boolean;
|
|
16
|
+
linkedId?: string;
|
|
17
|
+
tag?: Record<string, unknown> | string;
|
|
18
|
+
timeout?: number;
|
|
19
|
+
}
|
|
20
|
+
interface CanvasComponent {
|
|
21
|
+
hash: string;
|
|
22
|
+
winding: boolean;
|
|
23
|
+
doubleRenderConsistent: boolean;
|
|
24
|
+
geometryHash: string;
|
|
25
|
+
textHash: string;
|
|
26
|
+
emojiSubpixelHash?: string;
|
|
27
|
+
emojiAscentSum?: number;
|
|
28
|
+
emojiDescentSum?: number;
|
|
29
|
+
}
|
|
30
|
+
interface WebGLComponent {
|
|
31
|
+
webgl1Available: boolean;
|
|
32
|
+
webgl2Available: boolean;
|
|
33
|
+
vendor: string;
|
|
34
|
+
renderer: string;
|
|
35
|
+
unmaskedVendor: string;
|
|
36
|
+
unmaskedRenderer: string;
|
|
37
|
+
version: string;
|
|
38
|
+
shadingLanguageVersion: string;
|
|
39
|
+
extensionsCount: number;
|
|
40
|
+
extensionsHash: string;
|
|
41
|
+
maxTextureSize: number;
|
|
42
|
+
maxViewportDims: [number, number];
|
|
43
|
+
maxAnisotropy: number;
|
|
44
|
+
shaderPrecisionHash: string;
|
|
45
|
+
maxVertexUniformVectors?: number;
|
|
46
|
+
aliasedLineWidthRange?: [number, number];
|
|
47
|
+
pixelRenderHash?: string;
|
|
48
|
+
}
|
|
49
|
+
interface WebGPUComponent {
|
|
50
|
+
available: boolean;
|
|
51
|
+
vendor: string;
|
|
52
|
+
architecture: string;
|
|
53
|
+
device: string;
|
|
54
|
+
description: string;
|
|
55
|
+
limitsHash: string;
|
|
56
|
+
features?: string[];
|
|
57
|
+
maxTextureDimension2D?: number;
|
|
58
|
+
maxBindGroups?: number;
|
|
59
|
+
}
|
|
60
|
+
interface AudioComponent {
|
|
61
|
+
available: boolean;
|
|
62
|
+
sampleHash: string;
|
|
63
|
+
sumValue: number;
|
|
64
|
+
sampleRate: number;
|
|
65
|
+
maxChannelCount: number;
|
|
66
|
+
doubleRenderConsistent: boolean;
|
|
67
|
+
}
|
|
68
|
+
interface HardwareComponent {
|
|
69
|
+
hardwareConcurrency: number;
|
|
70
|
+
deviceMemory: number;
|
|
71
|
+
maxTouchPoints: number;
|
|
72
|
+
platform: string;
|
|
73
|
+
vendor: string;
|
|
74
|
+
oscpu: string;
|
|
75
|
+
pdfViewerEnabled: boolean;
|
|
76
|
+
cookieEnabled: boolean;
|
|
77
|
+
doNotTrack: string | null;
|
|
78
|
+
architectureHint: string;
|
|
79
|
+
globalPrivacyControl?: boolean;
|
|
80
|
+
}
|
|
81
|
+
interface ScreenComponent {
|
|
82
|
+
width: number;
|
|
83
|
+
height: number;
|
|
84
|
+
availWidth: number;
|
|
85
|
+
availHeight: number;
|
|
86
|
+
colorDepth: number;
|
|
87
|
+
pixelDepth: number;
|
|
88
|
+
devicePixelRatio: number;
|
|
89
|
+
orientationType: string;
|
|
90
|
+
hdrSupported: boolean;
|
|
91
|
+
colorGamut: "rec2020" | "p3" | "srgb" | "unknown";
|
|
92
|
+
forcedColors: boolean;
|
|
93
|
+
prefersDarkScheme: boolean;
|
|
94
|
+
prefersReducedMotion: boolean;
|
|
95
|
+
touchSupport: boolean;
|
|
96
|
+
}
|
|
97
|
+
interface CssMediaMatrixComponent {
|
|
98
|
+
prefersColorScheme: "dark" | "light" | "no-preference";
|
|
99
|
+
prefersReducedMotion: boolean;
|
|
100
|
+
prefersContrast: "more" | "less" | "no-preference";
|
|
101
|
+
forcedColors: boolean;
|
|
102
|
+
dynamicRangeHigh: boolean;
|
|
103
|
+
colorGamut: "rec2020" | "p3" | "srgb" | "unknown";
|
|
104
|
+
anyPointer: "fine" | "coarse" | "none";
|
|
105
|
+
anyHover: boolean;
|
|
106
|
+
invertedColors: boolean;
|
|
107
|
+
monochrome: boolean;
|
|
108
|
+
}
|
|
109
|
+
interface MediaCodecsComponent {
|
|
110
|
+
audioInputCount: number;
|
|
111
|
+
videoInputCount: number;
|
|
112
|
+
audioOutputCount: number;
|
|
113
|
+
av1Supported: boolean;
|
|
114
|
+
hevcSupported: boolean;
|
|
115
|
+
vp9Supported: boolean;
|
|
116
|
+
opusSupported: boolean;
|
|
117
|
+
flacSupported: boolean;
|
|
118
|
+
keyboardLayoutHash: string;
|
|
119
|
+
keyboardKeysCount: number;
|
|
120
|
+
}
|
|
121
|
+
interface FontsComponent {
|
|
122
|
+
detected: string[];
|
|
123
|
+
count: number;
|
|
124
|
+
hash: string;
|
|
125
|
+
}
|
|
126
|
+
interface TimezoneIntlComponent {
|
|
127
|
+
timezone: string;
|
|
128
|
+
timezoneOffsetMinutes: number;
|
|
129
|
+
locale: string;
|
|
130
|
+
calendar: string;
|
|
131
|
+
numberingSystem: string;
|
|
132
|
+
dateTimeFormatHash: string;
|
|
133
|
+
numberFormatSymbol: string;
|
|
134
|
+
pluralCategories: string[];
|
|
135
|
+
dstConsistent?: boolean;
|
|
136
|
+
}
|
|
137
|
+
interface LanguagesComponent {
|
|
138
|
+
language: string;
|
|
139
|
+
languages: string[];
|
|
140
|
+
consistentMainLanguage: boolean;
|
|
141
|
+
}
|
|
142
|
+
interface UserAgentDataComponent {
|
|
143
|
+
userAgent: string;
|
|
144
|
+
brands: Array<{
|
|
145
|
+
brand: string;
|
|
146
|
+
version: string;
|
|
147
|
+
}>;
|
|
148
|
+
mobile: boolean;
|
|
149
|
+
platform: string;
|
|
150
|
+
architecture: string;
|
|
151
|
+
bitness: string;
|
|
152
|
+
model: string;
|
|
153
|
+
platformVersion: string;
|
|
154
|
+
fullVersionListHash: string;
|
|
155
|
+
}
|
|
156
|
+
interface StorageComponent {
|
|
157
|
+
localStorage: boolean;
|
|
158
|
+
sessionStorage: boolean;
|
|
159
|
+
indexedDB: boolean;
|
|
160
|
+
cachesApi: boolean;
|
|
161
|
+
serviceWorker: boolean;
|
|
162
|
+
quotaBytes: number;
|
|
163
|
+
usageBytes: number;
|
|
164
|
+
}
|
|
165
|
+
interface SpeechComponent {
|
|
166
|
+
available: boolean;
|
|
167
|
+
voiceCount: number;
|
|
168
|
+
defaultVoice: string;
|
|
169
|
+
voicesHash: string;
|
|
170
|
+
}
|
|
171
|
+
interface MathComponent {
|
|
172
|
+
engineHint: "V8" | "SpiderMonkey" | "JavaScriptCore" | "Unknown";
|
|
173
|
+
constantsHash: string;
|
|
174
|
+
acos: number;
|
|
175
|
+
acosh: number;
|
|
176
|
+
asinh: number;
|
|
177
|
+
atanh: number;
|
|
178
|
+
cbrt: number;
|
|
179
|
+
cosh: number;
|
|
180
|
+
expm1: number;
|
|
181
|
+
log1p: number;
|
|
182
|
+
sinh: number;
|
|
183
|
+
tanh: number;
|
|
184
|
+
powPi: number;
|
|
185
|
+
}
|
|
186
|
+
interface WebRTCComponent {
|
|
187
|
+
available: boolean;
|
|
188
|
+
candidateTypes: string[];
|
|
189
|
+
localIpPresent: boolean;
|
|
190
|
+
sdpFeedbackHash: string;
|
|
191
|
+
}
|
|
192
|
+
interface ConnectionComponent {
|
|
193
|
+
available: boolean;
|
|
194
|
+
effectiveType: string;
|
|
195
|
+
rtt: number;
|
|
196
|
+
downlink: number;
|
|
197
|
+
saveData: boolean;
|
|
198
|
+
}
|
|
199
|
+
interface AntiSpoofComponent {
|
|
200
|
+
isBot: boolean;
|
|
201
|
+
isSpoofed: boolean;
|
|
202
|
+
isIncognito: boolean;
|
|
203
|
+
isVirtualMachine?: boolean;
|
|
204
|
+
webdriver: boolean;
|
|
205
|
+
automationArtifacts: string[];
|
|
206
|
+
chromeObjectAnomaly: boolean;
|
|
207
|
+
permissionsInconsistent: boolean;
|
|
208
|
+
workerMismatch: boolean;
|
|
209
|
+
canvasNoiseDetected: boolean;
|
|
210
|
+
audioNoiseDetected: boolean;
|
|
211
|
+
prototypeTampered?: boolean;
|
|
212
|
+
tamperedFunctions?: string[];
|
|
213
|
+
zeroOuterDimensions?: boolean;
|
|
214
|
+
stackEngineMismatch?: boolean;
|
|
215
|
+
timezoneDstMismatch?: boolean;
|
|
216
|
+
reasons: string[];
|
|
217
|
+
}
|
|
218
|
+
interface FingerprintComponents {
|
|
219
|
+
canvas: CanvasComponent;
|
|
220
|
+
webgl: WebGLComponent;
|
|
221
|
+
webgpu: WebGPUComponent;
|
|
222
|
+
audio: AudioComponent;
|
|
223
|
+
hardware: HardwareComponent;
|
|
224
|
+
screen: ScreenComponent;
|
|
225
|
+
cssMedia?: CssMediaMatrixComponent;
|
|
226
|
+
mediaCodecs?: MediaCodecsComponent;
|
|
227
|
+
fonts: FontsComponent;
|
|
228
|
+
timezoneIntl: TimezoneIntlComponent;
|
|
229
|
+
languages: LanguagesComponent;
|
|
230
|
+
userAgentData: UserAgentDataComponent;
|
|
231
|
+
storage: StorageComponent;
|
|
232
|
+
speech: SpeechComponent;
|
|
233
|
+
math: MathComponent;
|
|
234
|
+
webrtc: WebRTCComponent;
|
|
235
|
+
connection: ConnectionComponent;
|
|
236
|
+
antiSpoof: AntiSpoofComponent;
|
|
237
|
+
}
|
|
238
|
+
type SecurityRuleAction = "allow" | "challenge" | "block" | "flag";
|
|
239
|
+
interface FingerprintThreatInfo {
|
|
240
|
+
dangerLevel: number;
|
|
241
|
+
action?: SecurityRuleAction;
|
|
242
|
+
matchedRuleId?: string | null;
|
|
243
|
+
isBot: boolean;
|
|
244
|
+
isSpoofed: boolean;
|
|
245
|
+
isIncognito: boolean;
|
|
246
|
+
isVpn: boolean;
|
|
247
|
+
isTor: boolean;
|
|
248
|
+
isDatacenter: boolean;
|
|
249
|
+
isProxy: boolean;
|
|
250
|
+
isVirtualMachine?: boolean;
|
|
251
|
+
crossBrowserMatched: boolean;
|
|
252
|
+
vpn?: boolean;
|
|
253
|
+
proxy?: boolean;
|
|
254
|
+
tor?: boolean;
|
|
255
|
+
datacenter?: boolean;
|
|
256
|
+
bot?: boolean;
|
|
257
|
+
spoofed?: boolean;
|
|
258
|
+
ipAddress?: string;
|
|
259
|
+
asnNumber?: number | null;
|
|
260
|
+
asnOrg?: string | null;
|
|
261
|
+
country?: string | null;
|
|
262
|
+
city?: string | null;
|
|
263
|
+
latitude?: number | null;
|
|
264
|
+
longitude?: number | null;
|
|
265
|
+
durationMs: number;
|
|
266
|
+
collectorCount: number;
|
|
267
|
+
}
|
|
268
|
+
interface FingerprintProIpLocation {
|
|
269
|
+
city?: {
|
|
270
|
+
name: string | null;
|
|
271
|
+
};
|
|
272
|
+
country?: {
|
|
273
|
+
code: string | null;
|
|
274
|
+
name: string | null;
|
|
275
|
+
};
|
|
276
|
+
latitude?: number | null;
|
|
277
|
+
longitude?: number | null;
|
|
278
|
+
asn?: {
|
|
279
|
+
asn: string | null;
|
|
280
|
+
name: string | null;
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
interface FingerprintProSeenTimestamp {
|
|
284
|
+
global: string | null;
|
|
285
|
+
subscription: string | null;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Unified Dual-API Result supporting 100% of ThumbmarkJS Pro and Fingerprint.com (FingerprintJS Pro) schemas.
|
|
289
|
+
*/
|
|
290
|
+
interface BloumeIDResult {
|
|
291
|
+
visitorId: string;
|
|
292
|
+
thumbmark: string;
|
|
293
|
+
hardwareHash: string;
|
|
294
|
+
requestId: string;
|
|
295
|
+
visitorFound: boolean;
|
|
296
|
+
confidence: {
|
|
297
|
+
score: number;
|
|
298
|
+
revision?: string;
|
|
299
|
+
comment?: string;
|
|
300
|
+
};
|
|
301
|
+
incognito: boolean;
|
|
302
|
+
browserName: string;
|
|
303
|
+
browserVersion: string;
|
|
304
|
+
os: string;
|
|
305
|
+
osVersion: string;
|
|
306
|
+
device: string;
|
|
307
|
+
ip: string;
|
|
308
|
+
ipLocation: FingerprintProIpLocation;
|
|
309
|
+
firstSeenAt: FingerprintProSeenTimestamp;
|
|
310
|
+
lastSeenAt: FingerprintProSeenTimestamp;
|
|
311
|
+
linkedId?: string | null;
|
|
312
|
+
tag?: Record<string, unknown> | string | null;
|
|
313
|
+
components: FingerprintComponents;
|
|
314
|
+
info: FingerprintThreatInfo;
|
|
315
|
+
}
|
|
316
|
+
interface AntiReplayEnvelope {
|
|
317
|
+
timestamp: number;
|
|
318
|
+
nonce: string;
|
|
319
|
+
signature: string;
|
|
320
|
+
fullHash: string;
|
|
321
|
+
hardwareHash: string;
|
|
322
|
+
durationMs: number;
|
|
323
|
+
linkedId?: string;
|
|
324
|
+
tag?: Record<string, unknown> | string;
|
|
325
|
+
components: FingerprintComponents;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export type { AntiReplayEnvelope as A, BloumeIDInitConfig as B, CanvasComponent as C, FingerprintComponents as F, HardwareComponent as H, LanguagesComponent as L, MathComponent as M, ScreenComponent as S, TimezoneIntlComponent as T, UserAgentDataComponent as U, WebGLComponent as W, BloumeIDOptions as a, FingerprintJSGetOptions as b, BloumeIDResult as c, AntiSpoofComponent as d, AudioComponent as e, CollectorName as f, ConnectionComponent as g, CssMediaMatrixComponent as h, FingerprintProIpLocation as i, FingerprintProSeenTimestamp as j, FingerprintThreatInfo as k, FontsComponent as l, MediaCodecsComponent as m, SecurityRuleAction as n, SpeechComponent as o, StorageComponent as p, WebGPUComponent as q, WebRTCComponent as r };
|