@visonid/liveness 1.0.7 → 1.0.9

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visonid/liveness",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Vison Liveness Detection Web SDK",
5
5
  "main": "src/index.js",
6
6
  "module": "src/index.js",
@@ -48,15 +48,24 @@ export declare class VisonLiveness {
48
48
  private attrTypeStableCount;
49
49
  private lastAttrTypeKey;
50
50
  private lastFaceDetectedAt;
51
- private readonly GUARD_CONFIRM;
52
- private readonly ATTR_CONFIRM;
53
- private readonly LIGHT_MIN;
54
- private readonly LIGHT_MAX;
55
- private readonly ATTR_BRIGHTNESS_MIN;
56
- private readonly ATTR_BRIGHTNESS_MAX;
57
- private readonly ATTR_MIN_FILL;
58
- private readonly ATTR_MAX_FILL;
59
- private readonly NO_FACE_GRACE_MS;
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