@udene/sdk
Version:
Udene Fraud Detection SDK for JavaScript
41 lines (40 loc) • 1.15 kB
TypeScript
/**
* UdeneClient for JavaScript
* A client for interacting with the Udene Fraud Detection API
*/
export declare class UdeneClient {
private client;
/**
* Create a new UdeneClient instance
* @param apiKey - Your API key
* @param baseURL - Optional custom API base URL
*/
constructor(apiKey: string, baseURL?: string);
/**
* Get fraud metrics for the current user/session
* @returns Fraud metrics data
*/
getMetrics(): Promise<any>;
/**
* Get activity data for analysis
* @returns Activity data
*/
getActivity(): Promise<any>;
/**
* Track a user interaction for fraud analysis
* @param data - Interaction data to track
* @returns Tracking confirmation
*/
trackInteraction(data: any): Promise<any>;
/**
* Analyze a transaction for fraud
* @param transaction - Transaction data to analyze
* @returns Fraud analysis results
*/
analyzeTransaction(transaction: any): Promise<any>;
/**
* Get device fingerprint information
* @returns Device fingerprint data
*/
getDeviceFingerprint(): Promise<any>;
}