@ginger-ai/ginger-js 0.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/README.md +88 -0
- package/dist/ginger.cjs.js +2 -0
- package/dist/ginger.cjs.js.map +1 -0
- package/dist/ginger.esm.d.ts +294 -0
- package/dist/ginger.esm.js +2 -0
- package/dist/ginger.esm.js.map +1 -0
- package/dist/ginger.umd.js +2 -0
- package/dist/ginger.umd.js.map +1 -0
- package/dist/types/behaviour/index.d.ts +49 -0
- package/dist/types/behaviour/index.d.ts.map +1 -0
- package/dist/types/client/index.d.ts +35 -0
- package/dist/types/client/index.d.ts.map +1 -0
- package/dist/types/core/constants.d.ts +5 -0
- package/dist/types/core/constants.d.ts.map +1 -0
- package/dist/types/core/dto/bot-detector.dto.d.ts +30 -0
- package/dist/types/core/dto/bot-detector.dto.d.ts.map +1 -0
- package/dist/types/core/dto/device-detector.dto.d.ts +54 -0
- package/dist/types/core/dto/device-detector.dto.d.ts.map +1 -0
- package/dist/types/core/dto/fingerprint.dto.d.ts +29 -0
- package/dist/types/core/dto/fingerprint.dto.d.ts.map +1 -0
- package/dist/types/core/dto/ginger.dto.d.ts +73 -0
- package/dist/types/core/dto/ginger.dto.d.ts.map +1 -0
- package/dist/types/core/dto/incognito-detector.dto.d.ts +4 -0
- package/dist/types/core/dto/incognito-detector.dto.d.ts.map +1 -0
- package/dist/types/core/dto/index.d.ts +10 -0
- package/dist/types/core/dto/index.d.ts.map +1 -0
- package/dist/types/core/dto/metrics.dto.d.ts +19 -0
- package/dist/types/core/dto/metrics.dto.d.ts.map +1 -0
- package/dist/types/core/dto/os-detector.dto.d.ts +6 -0
- package/dist/types/core/dto/os-detector.dto.d.ts.map +1 -0
- package/dist/types/core/dto/tor-detector.dto.d.ts +5 -0
- package/dist/types/core/dto/tor-detector.dto.d.ts.map +1 -0
- package/dist/types/core/helpers.d.ts +8 -0
- package/dist/types/core/helpers.d.ts.map +1 -0
- package/dist/types/core/http/httpClient.d.ts +28 -0
- package/dist/types/core/http/httpClient.d.ts.map +1 -0
- package/dist/types/core/http/request.d.ts +4 -0
- package/dist/types/core/http/request.d.ts.map +1 -0
- package/dist/types/core/index.d.ts +6 -0
- package/dist/types/core/index.d.ts.map +1 -0
- package/dist/types/core/util/error.d.ts +25 -0
- package/dist/types/core/util/error.d.ts.map +1 -0
- package/dist/types/core/util/generate-requestid.d.ts +2 -0
- package/dist/types/core/util/generate-requestid.d.ts.map +1 -0
- package/dist/types/device/components/audio/audio.d.ts +2 -0
- package/dist/types/device/components/audio/audio.d.ts.map +1 -0
- package/dist/types/device/components/canvas/canvas.d.ts +3 -0
- package/dist/types/device/components/canvas/canvas.d.ts.map +1 -0
- package/dist/types/device/components/extra/extra.d.ts +19 -0
- package/dist/types/device/components/extra/extra.d.ts.map +1 -0
- package/dist/types/device/components/fonts/fonts.d.ts +3 -0
- package/dist/types/device/components/fonts/fonts.d.ts.map +1 -0
- package/dist/types/device/components/hardware/hardware.d.ts +2 -0
- package/dist/types/device/components/hardware/hardware.d.ts.map +1 -0
- package/dist/types/device/components/index.d.ts +15 -0
- package/dist/types/device/components/index.d.ts.map +1 -0
- package/dist/types/device/components/locales/locales.d.ts +2 -0
- package/dist/types/device/components/locales/locales.d.ts.map +1 -0
- package/dist/types/device/components/math/math.d.ts +2 -0
- package/dist/types/device/components/math/math.d.ts.map +1 -0
- package/dist/types/device/components/permissions/permissions.d.ts +3 -0
- package/dist/types/device/components/permissions/permissions.d.ts.map +1 -0
- package/dist/types/device/components/plugins/plugins.d.ts +3 -0
- package/dist/types/device/components/plugins/plugins.d.ts.map +1 -0
- package/dist/types/device/components/screen/screen.d.ts +2 -0
- package/dist/types/device/components/screen/screen.d.ts.map +1 -0
- package/dist/types/device/components/screen/screenResolution.d.ts +16 -0
- package/dist/types/device/components/screen/screenResolution.d.ts.map +1 -0
- package/dist/types/device/components/system/browser.d.ts +22 -0
- package/dist/types/device/components/system/browser.d.ts.map +1 -0
- package/dist/types/device/components/system/emoji.d.ts +2 -0
- package/dist/types/device/components/system/emoji.d.ts.map +1 -0
- package/dist/types/device/components/system/system.d.ts +2 -0
- package/dist/types/device/components/system/system.d.ts.map +1 -0
- package/dist/types/device/components/webgl/imageHash.d.ts +3 -0
- package/dist/types/device/components/webgl/imageHash.d.ts.map +1 -0
- package/dist/types/device/components/webgl/webgl.d.ts +54 -0
- package/dist/types/device/components/webgl/webgl.d.ts.map +1 -0
- package/dist/types/device/factory.d.ts +26 -0
- package/dist/types/device/factory.d.ts.map +1 -0
- package/dist/types/device/index.d.ts +61 -0
- package/dist/types/device/index.d.ts.map +1 -0
- package/dist/types/device/modules/bot.d.ts +9 -0
- package/dist/types/device/modules/bot.d.ts.map +1 -0
- package/dist/types/device/modules/browserDetails.d.ts +6 -0
- package/dist/types/device/modules/browserDetails.d.ts.map +1 -0
- package/dist/types/device/modules/device/analyze-data.d.ts +7 -0
- package/dist/types/device/modules/device/analyze-data.d.ts.map +1 -0
- package/dist/types/device/modules/device/gather-data.d.ts +6 -0
- package/dist/types/device/modules/device/gather-data.d.ts.map +1 -0
- package/dist/types/device/modules/device/helpers.d.ts +9 -0
- package/dist/types/device/modules/device/helpers.d.ts.map +1 -0
- package/dist/types/device/modules/device/index.d.ts +3 -0
- package/dist/types/device/modules/device/index.d.ts.map +1 -0
- package/dist/types/device/modules/fp.d.ts +14 -0
- package/dist/types/device/modules/fp.d.ts.map +1 -0
- package/dist/types/device/modules/incognito.d.ts +7 -0
- package/dist/types/device/modules/incognito.d.ts.map +1 -0
- package/dist/types/device/modules/options.d.ts +12 -0
- package/dist/types/device/modules/options.d.ts.map +1 -0
- package/dist/types/device/modules/os.d.ts +3 -0
- package/dist/types/device/modules/os.d.ts.map +1 -0
- package/dist/types/device/modules/tor.d.ts +4 -0
- package/dist/types/device/modules/tor.d.ts.map +1 -0
- package/dist/types/device/utils/async.d.ts +33 -0
- package/dist/types/device/utils/async.d.ts.map +1 -0
- package/dist/types/device/utils/browser_.d.ts +103 -0
- package/dist/types/device/utils/browser_.d.ts.map +1 -0
- package/dist/types/device/utils/commonPixels.d.ts +2 -0
- package/dist/types/device/utils/commonPixels.d.ts.map +1 -0
- package/dist/types/device/utils/data.d.ts +33 -0
- package/dist/types/device/utils/data.d.ts.map +1 -0
- package/dist/types/device/utils/dom.d.ts +26 -0
- package/dist/types/device/utils/dom.d.ts.map +1 -0
- package/dist/types/device/utils/ephemeralIFrame.d.ts +5 -0
- package/dist/types/device/utils/ephemeralIFrame.d.ts.map +1 -0
- package/dist/types/device/utils/getMostFrequent.d.ts +6 -0
- package/dist/types/device/utils/getMostFrequent.d.ts.map +1 -0
- package/dist/types/device/utils/hash.d.ts +6 -0
- package/dist/types/device/utils/hash.d.ts.map +1 -0
- package/dist/types/device/utils/misc.d.ts +7 -0
- package/dist/types/device/utils/misc.d.ts.map +1 -0
- package/dist/types/device/utils/raceAll.d.ts +9 -0
- package/dist/types/device/utils/raceAll.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +52 -0
- package/src/behaviour/index.ts +279 -0
- package/src/client/index.ts +132 -0
- package/src/core/constants.ts +4 -0
- package/src/core/dto/bot-detector.dto.ts +32 -0
- package/src/core/dto/device-detector.dto.ts +67 -0
- package/src/core/dto/fingerprint.dto.ts +38 -0
- package/src/core/dto/ginger.dto.ts +89 -0
- package/src/core/dto/incognito-detector.dto.ts +2 -0
- package/src/core/dto/index.ts +18 -0
- package/src/core/dto/metrics.dto.ts +20 -0
- package/src/core/dto/os-detector.dto.ts +5 -0
- package/src/core/dto/tor-detector.dto.ts +4 -0
- package/src/core/helpers.ts +33 -0
- package/src/core/http/httpClient.ts +52 -0
- package/src/core/http/request.ts +32 -0
- package/src/core/index.ts +5 -0
- package/src/core/util/error.ts +40 -0
- package/src/core/util/generate-requestid.ts +63 -0
- package/src/device/components/audio/audio.ts +58 -0
- package/src/device/components/canvas/canvas.ts +88 -0
- package/src/device/components/extra/extra.ts +581 -0
- package/src/device/components/fonts/fonts.ts +143 -0
- package/src/device/components/hardware/hardware.ts +66 -0
- package/src/device/components/index.ts +14 -0
- package/src/device/components/locales/locales.ts +21 -0
- package/src/device/components/math/math.ts +39 -0
- package/src/device/components/permissions/permissions.ts +60 -0
- package/src/device/components/plugins/plugins.ts +22 -0
- package/src/device/components/screen/screen.ts +13 -0
- package/src/device/components/screen/screenResolution.ts +45 -0
- package/src/device/components/system/browser.ts +838 -0
- package/src/device/components/system/emoji.ts +134 -0
- package/src/device/components/system/system.ts +76 -0
- package/src/device/components/webgl/imageHash.ts +144 -0
- package/src/device/components/webgl/webgl.ts +302 -0
- package/src/device/factory.ts +54 -0
- package/src/device/index.ts +60 -0
- package/src/device/modules/bot.ts +25 -0
- package/src/device/modules/browserDetails.ts +11 -0
- package/src/device/modules/device/analyze-data.ts +150 -0
- package/src/device/modules/device/gather-data.ts +92 -0
- package/src/device/modules/device/helpers.ts +123 -0
- package/src/device/modules/device/index.ts +64 -0
- package/src/device/modules/fp.ts +138 -0
- package/src/device/modules/incognito.ts +253 -0
- package/src/device/modules/options.ts +17 -0
- package/src/device/modules/os.ts +15 -0
- package/src/device/modules/tor.ts +41 -0
- package/src/device/utils/async.ts +106 -0
- package/src/device/utils/browser_.ts +347 -0
- package/src/device/utils/commonPixels.ts +38 -0
- package/src/device/utils/data.ts +161 -0
- package/src/device/utils/dom.ts +148 -0
- package/src/device/utils/ephemeralIFrame.ts +35 -0
- package/src/device/utils/getMostFrequent.ts +39 -0
- package/src/device/utils/hash.ts +202 -0
- package/src/device/utils/misc.ts +18 -0
- package/src/device/utils/raceAll.ts +19 -0
- package/src/index.ts +3 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { FieldMetrics, Field } from "../core";
|
|
2
|
+
interface EventConfig {
|
|
3
|
+
readonly pauseThresholdMs: number;
|
|
4
|
+
}
|
|
5
|
+
declare const removeListener: () => void;
|
|
6
|
+
declare class EventTracker {
|
|
7
|
+
private static readonly DEFAULT_CONFIG;
|
|
8
|
+
private readonly config;
|
|
9
|
+
private isInitialized;
|
|
10
|
+
private readonly fields;
|
|
11
|
+
private readonly trackedFieldIds;
|
|
12
|
+
constructor(config?: Partial<EventConfig>);
|
|
13
|
+
/**
|
|
14
|
+
* Initialize tracking for multiple form fields
|
|
15
|
+
*/
|
|
16
|
+
initializeTracking(fields: readonly Field[]): void;
|
|
17
|
+
/**
|
|
18
|
+
* Get all tracked metrics data (excluding DOM elements)
|
|
19
|
+
*/
|
|
20
|
+
get metrics(): FieldMetrics[];
|
|
21
|
+
/**
|
|
22
|
+
* Remove tracking from specific field or all fields
|
|
23
|
+
*/
|
|
24
|
+
removeTracking(fieldId?: string): void;
|
|
25
|
+
private trackField;
|
|
26
|
+
private getValidElement;
|
|
27
|
+
private isValidInputElement;
|
|
28
|
+
private createFieldMetric;
|
|
29
|
+
private createInputHandler;
|
|
30
|
+
private handleInput;
|
|
31
|
+
private analyzeInteraction;
|
|
32
|
+
private updateFieldMetrics;
|
|
33
|
+
private determineFillMethod;
|
|
34
|
+
private isCorrection;
|
|
35
|
+
private isPaste;
|
|
36
|
+
private isPause;
|
|
37
|
+
private removeFieldTracking;
|
|
38
|
+
private removeAllTracking;
|
|
39
|
+
private cleanupFieldTracking;
|
|
40
|
+
private ensureInitialized;
|
|
41
|
+
}
|
|
42
|
+
export declare const trackInputs: (fields: readonly Field[]) => void;
|
|
43
|
+
export declare const getTrackedFields: () => {
|
|
44
|
+
distractions_count: number;
|
|
45
|
+
fields: FieldMetrics[];
|
|
46
|
+
};
|
|
47
|
+
export declare const removeTracking: (fieldId?: string) => void;
|
|
48
|
+
export { EventTracker, removeListener };
|
|
49
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/behaviour/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,YAAY,EAAwC,KAAK,EAAE,MAAM,SAAS,CA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,MAAM,cAAc,GAAI,UAAU,MAAM,KAAG,IAEjD,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Configurations, PayloadResponse, BehaviourPayload, BehaviourParams, BehaviourPayloadResponseData } from "../core";
|
|
2
|
+
interface GingerClient {
|
|
3
|
+
initialize(configs: Configurations): Promise<PayloadResponse | undefined>;
|
|
4
|
+
trackEvent(params: BehaviourParams): void;
|
|
5
|
+
getTrackedData(): BehaviourPayload;
|
|
6
|
+
submitEvent(): Promise<BehaviourPayloadResponseData>;
|
|
7
|
+
}
|
|
8
|
+
export declare class GingerJsClient implements GingerClient {
|
|
9
|
+
private readonly requestId;
|
|
10
|
+
private deviceResponse;
|
|
11
|
+
private isInitialized;
|
|
12
|
+
private trackDetails;
|
|
13
|
+
private httpClient;
|
|
14
|
+
constructor({ apikey }: Configurations);
|
|
15
|
+
initialize(): Promise<PayloadResponse>;
|
|
16
|
+
trackEvent({ event_type, track_fields, request_id }: BehaviourParams): void;
|
|
17
|
+
/**
|
|
18
|
+
* Get tracked data
|
|
19
|
+
*/
|
|
20
|
+
getTrackedData: () => {
|
|
21
|
+
event_type: "login" | "registration" | "credentials_update" | "alerts_snooze";
|
|
22
|
+
request_id: string | undefined;
|
|
23
|
+
fingerprint_id: string;
|
|
24
|
+
data: {
|
|
25
|
+
distractions_count: number;
|
|
26
|
+
fields: import("../core").FieldMetrics[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Call submitEvent to submit tracked data
|
|
31
|
+
*/
|
|
32
|
+
submitEvent: () => Promise<BehaviourPayloadResponseData>;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAML,cAAc,EAId,eAAe,EACf,gBAAgB,EAChB,eAAe,EAEf,4BAA4B,EAC7B,MAAM,SAAS,CAAC;AAEjB,UAAU,YAAY;IACpB,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAAC;IAC1E,UAAU,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;IAC1C,cAAc,IAAI,gBAAgB,CAAC;IACnC,WAAW,IAAI,OAAO,CAAC,4BAA4B,CAAC,CAAC;CACtD;AAED,qBAAa,cAAe,YAAW,YAAY;IACjD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAuB;IACjD,OAAO,CAAC,cAAc,CAAkC;IACxD,OAAO,CAAC,aAAa,CAAkB;IACvC,OAAO,CAAC,YAAY,CAA0B;IAC9C,OAAO,CAAC,UAAU,CAAa;gBAEnB,EAAE,MAAM,EAAE,EAAE,cAAc;IAIhC,UAAU;IAmBhB,UAAU,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,EAAE,eAAe,GAAG,IAAI;IAuB3E;;OAEG;IACH,cAAc;;;;;;;;MAqBZ;IAEF;;OAEG;IACH,WAAW,8CAgBT;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/core/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;CAGrB,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const BotKind: {
|
|
2
|
+
readonly Awesomium: "awesomium";
|
|
3
|
+
readonly Cef: "cef";
|
|
4
|
+
readonly CefSharp: "cefsharp";
|
|
5
|
+
readonly CoachJS: "coachjs";
|
|
6
|
+
readonly Electron: "electron";
|
|
7
|
+
readonly FMiner: "fminer";
|
|
8
|
+
readonly Geb: "geb";
|
|
9
|
+
readonly NightmareJS: "nightmarejs";
|
|
10
|
+
readonly Phantomas: "phantomas";
|
|
11
|
+
readonly PhantomJS: "phantomjs";
|
|
12
|
+
readonly Rhino: "rhino";
|
|
13
|
+
readonly Selenium: "selenium";
|
|
14
|
+
readonly Sequentum: "sequentum";
|
|
15
|
+
readonly SlimerJS: "slimerjs";
|
|
16
|
+
readonly WebDriverIO: "webdriverio";
|
|
17
|
+
readonly WebDriver: "webdriver";
|
|
18
|
+
readonly HeadlessChrome: "headless_chrome";
|
|
19
|
+
readonly Unknown: "unknown";
|
|
20
|
+
None: "none";
|
|
21
|
+
};
|
|
22
|
+
type BotKind = (typeof BotKind)[keyof typeof BotKind];
|
|
23
|
+
export type BotDetectionResult = {
|
|
24
|
+
status: boolean;
|
|
25
|
+
botKind: BotKind;
|
|
26
|
+
} | {
|
|
27
|
+
status: boolean;
|
|
28
|
+
} | null;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=bot-detector.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-detector.dto.d.ts","sourceRoot":"","sources":["../../../src/core/dto/bot-detector.dto.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,OAAO,EAAE;IACrB,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;IAChC,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;IAC1B,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC;IACpC,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;IAChC,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC;IACpC,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;IAChC,QAAQ,CAAC,cAAc,EAAE,iBAAiB,CAAC;IAC3C,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AACF,KAAK,OAAO,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;AAEtD,MAAM,MAAM,kBAAkB,GAC1B;IACE,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CAClB,GACD;IACE,MAAM,EAAE,OAAO,CAAC;CACjB,GACD,IAAI,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare const ALLOWED_OS: readonly ["ios", "android", "windows", "macos", "linux"];
|
|
2
|
+
export declare const ALLOWED_DEVICE_TYPES: readonly ["mobile", "desktop", "tablet"];
|
|
3
|
+
export type AllowedOs = (typeof ALLOWED_OS)[number];
|
|
4
|
+
export type DeviceType = (typeof ALLOWED_DEVICE_TYPES)[number] | null;
|
|
5
|
+
export interface BrandInfo {
|
|
6
|
+
brand: string;
|
|
7
|
+
version: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ClaimedDevice {
|
|
10
|
+
platform: string;
|
|
11
|
+
mobile: boolean;
|
|
12
|
+
brands: BrandInfo[];
|
|
13
|
+
guessedDeviceType: DeviceType | null;
|
|
14
|
+
}
|
|
15
|
+
export interface ScreenInfo {
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
pixelRatio: number;
|
|
19
|
+
}
|
|
20
|
+
export interface WebGLInfo {
|
|
21
|
+
vendor?: string;
|
|
22
|
+
renderer?: string;
|
|
23
|
+
error: string;
|
|
24
|
+
}
|
|
25
|
+
export interface DeviceSignals {
|
|
26
|
+
actualPlatform: string;
|
|
27
|
+
touchPoints: number;
|
|
28
|
+
screen: ScreenInfo;
|
|
29
|
+
webGL: WebGLInfo;
|
|
30
|
+
readonly userAgentString: string;
|
|
31
|
+
}
|
|
32
|
+
export interface DeviceAnalysis {
|
|
33
|
+
confidence: number;
|
|
34
|
+
spoofingConfidence: number;
|
|
35
|
+
isSpoofed: boolean;
|
|
36
|
+
detectionConflicts: string[];
|
|
37
|
+
realPlatform: AllowedOs | null;
|
|
38
|
+
realDeviceType: DeviceType;
|
|
39
|
+
}
|
|
40
|
+
export interface DeviceResults {
|
|
41
|
+
claimed: ClaimedDevice;
|
|
42
|
+
signals: DeviceSignals;
|
|
43
|
+
analysis: DeviceAnalysis;
|
|
44
|
+
}
|
|
45
|
+
export interface RefinedDeviceResults extends DeviceResults {
|
|
46
|
+
deviceOs: AllowedOs | null;
|
|
47
|
+
deviceType: DeviceType;
|
|
48
|
+
tampering: deviceTampering;
|
|
49
|
+
}
|
|
50
|
+
export interface deviceTampering {
|
|
51
|
+
status: boolean;
|
|
52
|
+
confidence?: number;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=device-detector.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-detector.dto.d.ts","sourceRoot":"","sources":["../../../src/core/dto/device-detector.dto.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,0DAMb,CAAC;AACX,eAAO,MAAM,oBAAoB,0CAA2C,CAAC;AAE7E,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AACpD,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;AAEtE,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aA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
|
1
|
+
export interface FingerprintComponentValue {
|
|
2
|
+
[key: string]: string | string[] | number | boolean | undefined | null | FingerprintComponentValue | FingerprintComponentValue[];
|
|
3
|
+
}
|
|
4
|
+
export interface RawDeviceData extends FingerprintComponentValue {
|
|
5
|
+
audio?: FingerprintComponentValue;
|
|
6
|
+
fonts?: FingerprintComponentValue;
|
|
7
|
+
hardware?: FingerprintComponentValue;
|
|
8
|
+
locales?: FingerprintComponentValue;
|
|
9
|
+
permissions?: FingerprintComponentValue;
|
|
10
|
+
screen?: FingerprintComponentValue;
|
|
11
|
+
system?: FingerprintComponentValue;
|
|
12
|
+
emojiFingerprint?: FingerprintComponentValue;
|
|
13
|
+
math?: FingerprintComponentValue;
|
|
14
|
+
vendorFlavour?: FingerprintComponentValue;
|
|
15
|
+
canvas?: FingerprintComponentValue;
|
|
16
|
+
webgl?: FingerprintComponentValue;
|
|
17
|
+
plugins?: FingerprintComponentValue;
|
|
18
|
+
domBlockers?: FingerprintComponentValue;
|
|
19
|
+
forcedColors?: FingerprintComponentValue;
|
|
20
|
+
colorGamut?: FingerprintComponentValue;
|
|
21
|
+
osCpu?: FingerprintComponentValue;
|
|
22
|
+
audioLatency?: FingerprintComponentValue;
|
|
23
|
+
}
|
|
24
|
+
export interface GingerJsFp {
|
|
25
|
+
hash: string;
|
|
26
|
+
data: RawDeviceData;
|
|
27
|
+
componentsUsedForHash: Array<keyof RawDeviceData>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=fingerprint.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fingerprint.dto.d.ts","sourceRoot":"","sources":["../../../src/core/dto/fingerprint.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC,CAAC,GAAG,EAAE,MAAM,GACR,MAAM,GACN,MAAM,EAAE,GACR,MAAM,GACN,OAAO,GACP,SAAS,GACT,IAAI,GACJ,yBAAyB,GACzB,yBAAyB,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,aAAc,SAAQ,yBAAyB;IAC9D,KAAK,CAAC,EAAE,yBAAyB,CAAC;IAClC,KAAK,CAAC,EAAE,yBAAyB,CAAC;IAClC,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IACrC,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;IAC7C,IAAI,CAAC,EAAE,yBAAyB,CAAC;IACjC,aAAa,CAAC,EAAE,yBAAyB,CAAC;IAC1C,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,KAAK,CAAC,EAAE,yBAAyB,CAAC;IAClC,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,YAAY,CAAC,EAAE,yBAAyB,CAAC;IACzC,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC,KAAK,CAAC,EAAE,yBAAyB,CAAC;IAClC,YAAY,CAAC,EAAE,yBAAyB,CAAC;CAC1C;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,aAAa,CAAC;IACpB,qBAAqB,EAAE,KAAK,CAAC,MAAM,aAAa,CAAC,CAAC;CACnD"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { BotDetectionResult } from "./bot-detector.dto";
|
|
2
|
+
import { IncognitoDetectionResult } from "./incognito-detector.dto";
|
|
3
|
+
import { TorDetectionResult } from "./tor-detector.dto";
|
|
4
|
+
import { RawDeviceData } from "./fingerprint.dto";
|
|
5
|
+
import { deviceTampering } from "./device-detector.dto";
|
|
6
|
+
import { FieldMetrics } from "./metrics.dto";
|
|
7
|
+
interface Device {
|
|
8
|
+
fingerprint_id: string;
|
|
9
|
+
type: string;
|
|
10
|
+
os: string | null;
|
|
11
|
+
os_version: string | undefined;
|
|
12
|
+
browserDetails: BrowserDetails;
|
|
13
|
+
bot: BotDetectionResult;
|
|
14
|
+
incognito: IncognitoDetectionResult;
|
|
15
|
+
tor: TorDetectionResult;
|
|
16
|
+
tampering: deviceTampering;
|
|
17
|
+
raw_device_data: RawDeviceData;
|
|
18
|
+
}
|
|
19
|
+
export interface BrowserDetails {
|
|
20
|
+
name: string;
|
|
21
|
+
version: string;
|
|
22
|
+
user_agent: string;
|
|
23
|
+
}
|
|
24
|
+
export interface Payload {
|
|
25
|
+
request_id: string;
|
|
26
|
+
device: Device;
|
|
27
|
+
}
|
|
28
|
+
export declare const EVENT_TYPES: readonly ["login", "registration", "credentials_update", "alerts_snooze"];
|
|
29
|
+
export type ALLOWED_EVENT_TYPES = (typeof EVENT_TYPES)[number];
|
|
30
|
+
export interface EventParams {
|
|
31
|
+
event_type: ALLOWED_EVENT_TYPES;
|
|
32
|
+
request_id: string | undefined;
|
|
33
|
+
fingerprint_id: string;
|
|
34
|
+
}
|
|
35
|
+
export interface BehaviourParams extends Omit<EventParams, "fingerprint_id"> {
|
|
36
|
+
track_fields: Field[];
|
|
37
|
+
}
|
|
38
|
+
export interface Field {
|
|
39
|
+
id: string;
|
|
40
|
+
ltm?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface Configurations {
|
|
43
|
+
apikey: string;
|
|
44
|
+
}
|
|
45
|
+
export interface BehaviourPayload extends EventParams {
|
|
46
|
+
data: {
|
|
47
|
+
fields: FieldMetrics[];
|
|
48
|
+
distractions_count: number;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export interface BehaviourPayloadResponse {
|
|
52
|
+
status: string;
|
|
53
|
+
message: string;
|
|
54
|
+
data: BehaviourPayloadResponseData;
|
|
55
|
+
}
|
|
56
|
+
export interface BehaviourPayloadResponseData {
|
|
57
|
+
request_id: string;
|
|
58
|
+
fingerprint_id: string;
|
|
59
|
+
event_type: string;
|
|
60
|
+
message: string;
|
|
61
|
+
occured_at: string;
|
|
62
|
+
}
|
|
63
|
+
export interface PayloadResponse {
|
|
64
|
+
status: string;
|
|
65
|
+
message: string;
|
|
66
|
+
data: PayloadResponseData;
|
|
67
|
+
}
|
|
68
|
+
export type PayloadResponseData = {
|
|
69
|
+
fingerprint_id: string;
|
|
70
|
+
[key: string]: string | string[] | boolean | PayloadResponseData | PayloadResponseData[];
|
|
71
|
+
};
|
|
72
|
+
export {};
|
|
73
|
+
//# sourceMappingURL=ginger.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ginger.dto.d.ts","sourceRoot":"","sources":["../../../src/core/dto/ginger.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,UAAU,MAAM;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,cAAc,EAAE,cAAc,CAAC;IAC/B,GAAG,EAAE,kBAAkB,CAAC;IACxB,SAAS,EAAE,wBAAwB,CAAC;IACpC,GAAG,EAAE,kBAAkB,CAAC;IACxB,SAAS,EAAE,eAAe,CAAC;IAC3B,eAAe,EAAE,aAAa,CAAC;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB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MAAM,CAAC;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,GAAG,mBAAmB,GAAG,mBAAmB,EAAE,CAAA;CACzF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incognito-detector.dto.d.ts","sourceRoot":"","sources":["../../../src/core/dto/incognito-detector.dto.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG,QAAQ,GAAG,cAAc,CAAC;AAC/C,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GingerJsFp, FingerprintComponentValue } from "./fingerprint.dto";
|
|
2
|
+
import { TorDetectionResult } from "./tor-detector.dto";
|
|
3
|
+
import { BotDetectionResult } from "./bot-detector.dto";
|
|
4
|
+
import { IncognitoDetectionResult } from "./incognito-detector.dto";
|
|
5
|
+
import { DeviceOs } from "./os-detector.dto";
|
|
6
|
+
export type { GingerJsFp, FingerprintComponentValue, TorDetectionResult, BotDetectionResult, IncognitoDetectionResult, DeviceOs, };
|
|
7
|
+
export * from "./device-detector.dto";
|
|
8
|
+
export * from "./metrics.dto";
|
|
9
|
+
export * from "./ginger.dto";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/dto/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,YAAY,EACV,UAAU,EACV,yBAAyB,EACzB,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,EACxB,QAAQ,GACT,CAAC;AAEF,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type FillMethod = "typed" | "pasted" | "mixed" | null;
|
|
2
|
+
export declare enum FillEnum {
|
|
3
|
+
typed = "typed",
|
|
4
|
+
paste = "pasted",
|
|
5
|
+
mixed = "mixed"
|
|
6
|
+
}
|
|
7
|
+
export interface FieldMetrics {
|
|
8
|
+
field_name: string;
|
|
9
|
+
ltm: boolean;
|
|
10
|
+
started_at: number;
|
|
11
|
+
ended_at: number;
|
|
12
|
+
interaction_count: number;
|
|
13
|
+
fill_method: FillMethod;
|
|
14
|
+
paste_count: number;
|
|
15
|
+
corrections_count: number;
|
|
16
|
+
pauses: number;
|
|
17
|
+
pauseDurations: number[];
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=metrics.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metrics.dto.d.ts","sourceRoot":"","sources":["../../../src/core/dto/metrics.dto.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,IAAI,CAAC;AAE7D,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,KAAK,WAAW;IAChB,KAAK,UAAU;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,OAAO,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,UAAU,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"os-detector.dto.d.ts","sourceRoot":"","sources":["../../../src/core/dto/os-detector.dto.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAI,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;CAChD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tor-detector.dto.d.ts","sourceRoot":"","sources":["../../../src/core/dto/tor-detector.dto.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default function getBasePath(apikey: string): string;
|
|
2
|
+
export declare const pageVisibility: () => {
|
|
3
|
+
getCount: () => number;
|
|
4
|
+
addListener: () => void;
|
|
5
|
+
removeListener: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const validatePresence: (key: string) => void;
|
|
8
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/core/helpers.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,MAAM,EAAE,MAAM,UAKjD;AAED,eAAO,MAAM,cAAc;;;;CAkB1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,KAAK,MAAM,SAE3C,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare enum Method {
|
|
2
|
+
POST = "POST"
|
|
3
|
+
}
|
|
4
|
+
interface HttpOptions<T> {
|
|
5
|
+
/**
|
|
6
|
+
* The URL to which the request is sent.
|
|
7
|
+
*/
|
|
8
|
+
url: string;
|
|
9
|
+
/**
|
|
10
|
+
* payload to send
|
|
11
|
+
*/
|
|
12
|
+
payload: T;
|
|
13
|
+
/**
|
|
14
|
+
* API Method
|
|
15
|
+
*/
|
|
16
|
+
method?: Method;
|
|
17
|
+
}
|
|
18
|
+
export interface HttpClient {
|
|
19
|
+
post<T, U>(options: HttpOptions<T>): Promise<U>;
|
|
20
|
+
}
|
|
21
|
+
export declare class GingerHttpClient implements HttpClient {
|
|
22
|
+
readonly basePath: string;
|
|
23
|
+
readonly apikey: string;
|
|
24
|
+
constructor(apikey: string);
|
|
25
|
+
post<T, U>(options: HttpOptions<T>): Promise<U>;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=httpClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpClient.d.ts","sourceRoot":"","sources":["../../../src/core/http/httpClient.ts"],"names":[],"mappings":"AAGA,aAAK,MAAM;IACT,IAAI,SAAS;CACd;AAED,UAAU,WAAW,CAAC,CAAC;IACrB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,OAAO,EAAE,CAAC,CAAC;IACX;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;CACjD;AAED,qBAAa,gBAAiB,YAAW,UAAU;IACjD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBAEZ,MAAM,EAAE,MAAM;IAMpB,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CAetD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../src/core/http/request.ts"],"names":[],"mappings":"AAEA,KAAK,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEhD,eAAO,MAAM,WAAW,GAAU,OAAO,EAAE,QAAQ,EACjD,KAAK,MAAM,EACX,SAAS,OAAO,EAChB,QAAQ,MAAM,EACd,QAAQ,MAAM,KACb,OAAO,CAAC,QAAQ,CAsBlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAA;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface GingerErrorResponse {
|
|
2
|
+
/**
|
|
3
|
+
* HTTP status code
|
|
4
|
+
*/
|
|
5
|
+
status: number;
|
|
6
|
+
/**
|
|
7
|
+
* HTTP status text
|
|
8
|
+
*/
|
|
9
|
+
statusText: string;
|
|
10
|
+
/**
|
|
11
|
+
* HTTP headers object
|
|
12
|
+
*/
|
|
13
|
+
headers: Headers;
|
|
14
|
+
}
|
|
15
|
+
export declare class GingerError extends Error {
|
|
16
|
+
statusCode: number;
|
|
17
|
+
response: GingerErrorResponse;
|
|
18
|
+
constructor(message: string, statusCode: number, response: GingerErrorResponse);
|
|
19
|
+
}
|
|
20
|
+
export declare class GingerClientError extends Error {
|
|
21
|
+
constructor(message: string);
|
|
22
|
+
}
|
|
23
|
+
export declare const handleException: (response: Response) => Promise<never>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/core/util/error.ts"],"names":[],"mappings":"AACA,UAAU,mBAAmB;IAC3B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,qBAAa,WAAY,SAAQ,KAAK;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,mBAAmB,CAAC;gBAElB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB;CAM/E;AAED,qBAAa,iBAAkB,SAAQ,KAAK;gBAC9B,OAAO,EAAE,MAAM;CAI5B;AAED,eAAO,MAAM,eAAe,GAAU,UAAU,QAAQ,mBAIvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-requestid.d.ts","sourceRoot":"","sources":["../../../src/core/util/generate-requestid.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,QAAO,MAQpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../../../src/device/components/audio/audio.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canvas.d.ts","sourceRoot":"","sources":["../../../../src/device/components/canvas/canvas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAoB,MAAM,eAAe,CAAA;AAgBpE,MAAM,CAAC,OAAO,UAAU,yBAAyB,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAkB/E"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks for browser-specific (not engine specific) global variables to tell browsers with the same engine apart.
|
|
3
|
+
* Only somewhat popular browsers are considered.
|
|
4
|
+
*/
|
|
5
|
+
export declare function getVendorFlavors(): any;
|
|
6
|
+
type Filters = Record<string, string[]>;
|
|
7
|
+
/**
|
|
8
|
+
* Only single element selector are supported (no operators like space, +, >, etc).
|
|
9
|
+
* `embed` and `position: fixed;` will be considered as blocked anyway because it always has no offsetParent.
|
|
10
|
+
* Avoid `iframe` and anything with `[src=]` because they produce excess HTTP requests.
|
|
11
|
+
*
|
|
12
|
+
* The "inappropriate" selectors are obfuscated. See https://github.com/fingerprintjs/fingerprintjs/issues/734.
|
|
13
|
+
* A function is used instead of a plain object to help tree-shaking.
|
|
14
|
+
*
|
|
15
|
+
* The function code is generated automatically. See docs/content_blockers.md to learn how to make the list.
|
|
16
|
+
*/
|
|
17
|
+
export declare function getFilters(): Filters;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=extra.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extra.d.ts","sourceRoot":"","sources":["../../../../src/device/components/extra/extra.ts"],"names":[],"mappings":"AAgGA;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,GAAG,CA2DtC;AAED,KAAK,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AAExC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAsTpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../../src/device/components/fonts/fonts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAoB,MAAM,eAAe,CAAA;AAoGpE,MAAM,CAAC,OAAO,UAAU,cAAc,IAAI,OAAO,CAAC,kBAAkB,CAAC,CA6BpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hardware.d.ts","sourceRoot":"","sources":["../../../../src/device/components/hardware/hardware.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './audio/audio';
|
|
2
|
+
import './canvas/canvas';
|
|
3
|
+
import './fonts/fonts';
|
|
4
|
+
import './hardware/hardware';
|
|
5
|
+
import './locales/locales';
|
|
6
|
+
import './permissions/permissions';
|
|
7
|
+
import './screen/screen';
|
|
8
|
+
import './screen/screenResolution';
|
|
9
|
+
import './webgl/webgl';
|
|
10
|
+
import './plugins/plugins';
|
|
11
|
+
import './system/system';
|
|
12
|
+
import './system/emoji';
|
|
13
|
+
import './math/math';
|
|
14
|
+
import './extra/extra';
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/device/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAA;AACtB,OAAO,iBAAiB,CAAA;AACxB,OAAO,eAAe,CAAA;AACtB,OAAO,qBAAqB,CAAA;AAC5B,OAAO,mBAAmB,CAAA;AAC1B,OAAO,2BAA2B,CAAA;AAClC,OAAO,iBAAiB,CAAA;AACxB,OAAO,2BAA2B,CAAA;AAClC,OAAO,eAAe,CAAA;AACtB,OAAO,mBAAmB,CAAA;AAC1B,OAAO,iBAAiB,CAAA;AACxB,OAAO,gBAAgB,CAAA;AACvB,OAAO,aAAa,CAAA;AACpB,OAAO,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/device/components/locales/locales.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../src/device/components/math/math.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../../src/device/components/permissions/permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAoB,MAAM,eAAe,CAAC;AA+BrE,wBAA8B,qBAAqB,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAOjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/device/components/plugins/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAoB,MAAM,eAAe,CAAA;AAEpE,MAAM,CAAC,OAAO,UAAU,mBAAmB,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAiBvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screen.d.ts","sourceRoot":"","sources":["../../../../src/device/components/screen/screen.ts"],"names":[],"mappings":""}
|