@sumsub/fisherman
Version:
The Sumsub Fisherman is a powerful tool that helps developers integrate fraud detection capabilities into their applications. With Fisherman, you can easily identify and prevent fraudulent activities within your system, providing a safer and more secure e
22 lines (21 loc) • 913 B
TypeScript
import type { InitParams, ReportData, FpSimulation, FpRequestPayload } from '../types';
/**
* Report Manager:
*
* Prepares and sends data to the server.
* Batches requests to minimize network traffic.
*/
export declare function createReportManager(initParams: InitParams): void;
export declare function setEventsRelUrl(evRelUrl?: string): void;
export declare function setFpReqRelUrl(fpRelUrl?: string): void;
export declare function destroyReportManager(): void;
export declare function report(data: ReportData, options?: {
fpRequestId?: string;
fpVisitorId?: string;
fpSimulation?: FpSimulation;
sendImmediately?: boolean;
behavioralDataEnabled?: boolean;
}): Promise<void>;
export declare function getBaseUrl(): string;
export declare function reportFpRequestPayload(payload: FpRequestPayload): Promise<Response | undefined>;
export declare function setToken(newToken?: string): void;