@visonid/liveness 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/VisonLiveness.d.ts +23 -9
- package/src/VisonLiveness.js +1 -1
- package/src/alignment/FaceAlignmentManager.js +1 -1
- package/src/analyzer/DepthAnalyzer.js +1 -1
- package/src/analyzer/FaceAnalyzer.js +1 -1
- package/src/analyzer/FaceAttributeDetector.js +1 -1
- package/src/analyzer/FrequencyAnalyzer.js +1 -1
- package/src/analyzer/GestureAnalyzer.js +1 -1
- package/src/analyzer/QualityChecker.js +1 -1
- package/src/analyzer/TemporalAnalyzer.js +1 -1
- package/src/api/liveness.api.js +1 -1
- package/src/camera/CameraManager.js +1 -1
- package/src/camera/FrameCapture.js +1 -1
- package/src/camera/VirtualCameraDetector.js +1 -1
- package/src/challenges/ChallengeManager.js +1 -1
- package/src/challenges/GestureRunner.js +1 -1
- package/src/i18n/index.js +1 -1
- package/src/index.js +1 -1
- package/src/ml/AntiSpoofDetector.js +1 -1
- package/src/ml/DeepfakeDetector.js +1 -1
- package/src/ml/MLAttributeDetector.js +1 -1
- package/src/types/index.d.ts +27 -0
- package/src/types/index.js +1 -1
- package/src/ui/FeedbackUI.d.ts +1 -1
- package/src/ui/FeedbackUI.js +1 -1
- package/src/ui/InstructionUI.d.ts +4 -0
- package/src/ui/InstructionUI.js +1 -1
- package/src/utils/DeviceFingerprint.js +1 -1
- package/src/utils/EnvironmentGuard.js +1 -1
- package/src/utils/FrameSigner.js +1 -1
- package/src/utils/TTSPlayer.js +1 -1
- package/src/utils/crypto.js +1 -1
- package/src/utils/logger.js +1 -1
package/package.json
CHANGED
package/src/VisonLiveness.d.ts
CHANGED
|
@@ -48,15 +48,24 @@ export declare class VisonLiveness {
|
|
|
48
48
|
private attrTypeStableCount;
|
|
49
49
|
private lastAttrTypeKey;
|
|
50
50
|
private lastFaceDetectedAt;
|
|
51
|
-
private
|
|
52
|
-
private
|
|
53
|
-
private
|
|
54
|
-
private
|
|
55
|
-
private
|
|
56
|
-
private
|
|
57
|
-
private
|
|
58
|
-
private
|
|
59
|
-
private
|
|
51
|
+
private guardConfirm;
|
|
52
|
+
private attrConfirm;
|
|
53
|
+
private lightMin;
|
|
54
|
+
private lightMax;
|
|
55
|
+
private attrBrightnessMin;
|
|
56
|
+
private attrBrightnessMax;
|
|
57
|
+
private attrMinFill;
|
|
58
|
+
private attrMaxFill;
|
|
59
|
+
private noFaceGraceMs;
|
|
60
|
+
private warningCooldownMs;
|
|
61
|
+
private uiPreset;
|
|
62
|
+
private state;
|
|
63
|
+
private stateEnteredAt;
|
|
64
|
+
private stuckHelperConfig;
|
|
65
|
+
private stuckHelperTimer;
|
|
66
|
+
private stuckHelperInterval;
|
|
67
|
+
private lastGuardWarningAt;
|
|
68
|
+
private lastDisplayedGuardWarning;
|
|
60
69
|
private isInPreflight;
|
|
61
70
|
private silentFrames;
|
|
62
71
|
private silentCaptureTimer;
|
|
@@ -64,6 +73,11 @@ export declare class VisonLiveness {
|
|
|
64
73
|
on(event: string, callback: (event: LivenessEvent) => void): void;
|
|
65
74
|
off(event: string, callback: (event: LivenessEvent) => void): void;
|
|
66
75
|
private emit;
|
|
76
|
+
private applyPresetConfig;
|
|
77
|
+
private normalizeStuckHelperConfig;
|
|
78
|
+
private setState;
|
|
79
|
+
private scheduleStuckHelper;
|
|
80
|
+
private stopStuckHelper;
|
|
67
81
|
start(mode?: LivenessMode): Promise<LivenessResult>;
|
|
68
82
|
/**
|
|
69
83
|
* Abort the current liveness detection
|