@datadome/fraud-sdk-node
Version:
Fraud Protection - Node.js SDK
30 lines (29 loc) • 647 B
TypeScript
import { Address } from "../address";
export declare enum ResponseAction {
ALLOW = "allow",
DENY = "deny"
}
/** Status of the call the API */
export declare enum ResponseStatus {
OK = "ok",
FAILURE = "failure",/** Something went wrong, the action should continue */
TIMEOUT = "timeout"
}
export declare class Error {
field: string;
error: string;
}
/**
* Response
*/
export declare class Response {
action: ResponseAction;
status: ResponseStatus;
reasons: string[];
ip: string;
location: Address;
}
export declare class ResponseError extends Response {
message: string;
errors: Error[];
}