@yidun/livedetect-sdk-h5
Version:
活体检测 H5
38 lines (37 loc) • 1.15 kB
TypeScript
import NELiveDetection from './live-detection';
import type { Lang } from './utils/i18n';
export interface RequestResponse {
code: number;
msg: string;
result: string;
}
export interface PirvateOptions {
code?: string;
colorMap?: string[];
token?: string;
solutionType?: number;
videoActions?: string[];
}
export interface Options extends PirvateOptions {
container: HTMLElement | string;
businessKey: string;
mode?: 'mount' | 'popup';
diameter?: number;
audio?: boolean;
fallback?: boolean;
footerTip?: boolean;
lang?: Lang;
apiServer?: string;
preload?: boolean;
isSupport?: (ua: BrandVersion) => boolean;
onMount?: (instance?: NELiveDetection) => void;
onReady?: (instance?: NELiveDetection) => void;
}
export declare type WarnType = 'fail' | 'tip';
export declare type FailCode = 'unsupported' | 'notallowed' | 'notfound' | 'notreadable' | 'overconstrained' | 'abort' | 'reject' | 'timeout' | 'action_timeout' | 'auth' | 'pdFail';
export interface BrandVersion {
osName: string;
osVersion: string;
browserName: string;
browserVersion: string;
}