ekyc-sdk-arm
Version:
Automated Recognition Module
40 lines (39 loc) • 1.65 kB
TypeScript
import { Config, ResponseCheckStatus, ResponseCreateSession, ResponseCurrentQuestion, ResponseDetectFace, ResponseVerify, SaveTransactionDetail, TypeCall } from "./interface";
export declare class LivenessSDK {
private ApiKey;
private PathAPI;
private Cust_UUID;
private LivenessService;
private MinConfident;
private Round;
private QuestionNo;
private SessionID;
private ProcessStatus;
private centerConfident;
private ConfigChannel;
private SessionQuestions;
constructor(api_key: string, path_api: string | undefined, type: TypeCall, minConfident?: number);
GetConfig(): Promise<Config>;
GetConfidentConfig(): number;
private CheckFormatConfig;
CreateSession(cust_uuid: string): Promise<ResponseCreateSession>;
GetQuestionSession(): string[];
GetCurrentQuestion(): ResponseCurrentQuestion;
GetSessionID(): string;
SaveTransaction(image: File, is_timeout?: boolean): Promise<false | SaveTransactionDetail>;
private CheckPropertyInObj;
LoadModels(path: string): Promise<void>;
private GetMeanPosition;
private GetTop;
private ProcessImage;
SetAPIKey(api_key: string): void;
GetAPIKey(): string;
SetPathAPI(path_api: string): void;
GetPathAPI(): string;
SetTypeCall(type: TypeCall): void;
GetTypeCall(): TypeCall;
setCenterConfident(centerConfident: number): void;
DetectFace(image: File | string): Promise<ResponseDetectFace>;
Verify(cust_uuid: string, source_image: File): Promise<ResponseVerify>;
CheckServiceStatus(cust_uuid?: string): Promise<ResponseCheckStatus>;
}