@authme/liveness 2.4.8 → 2.7.0

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/index.cjs CHANGED
@@ -69,19 +69,21 @@ class FasService extends engine.AuthmeEngineModuleBase {
69
69
  }
70
70
 
71
71
  var name = "authme/sdk";
72
- var version$1 = "2.4.8";
73
- var date = "2023-12-20T07:24:47+0000";
72
+ var version$1 = "2.7.0";
73
+ var date = "2024-05-30T14:54:23+0000";
74
74
  var packageInfo = {
75
75
  name: name,
76
76
  version: version$1,
77
77
  date: date
78
78
  };
79
79
 
80
- const init = url => Immediately => __awaiter(void 0, void 0, void 0, function* () {
80
+ const init = url => (Immediately, passive, compareCustomerClientId) => __awaiter(void 0, void 0, void 0, function* () {
81
81
  return core.sendRequest(url, 'POST', {
82
82
  body: JSON.stringify({
83
83
  Immediately,
84
84
  encrypt: true,
85
+ passive: passive,
86
+ compareCustomerClientId: compareCustomerClientId,
85
87
  clientInfo: {
86
88
  os: 'web',
87
89
  os_ver: util.osVersion(),
package/index.js CHANGED
@@ -66,19 +66,21 @@ class FasService extends AuthmeEngineModuleBase {
66
66
  }
67
67
 
68
68
  var name = "authme/sdk";
69
- var version$1 = "2.4.8";
70
- var date = "2023-12-20T07:24:47+0000";
69
+ var version$1 = "2.7.0";
70
+ var date = "2024-05-30T14:54:23+0000";
71
71
  var packageInfo = {
72
72
  name: name,
73
73
  version: version$1,
74
74
  date: date
75
75
  };
76
76
 
77
- const init = url => Immediately => __awaiter(void 0, void 0, void 0, function* () {
77
+ const init = url => (Immediately, passive, compareCustomerClientId) => __awaiter(void 0, void 0, void 0, function* () {
78
78
  return sendRequest(url, 'POST', {
79
79
  body: JSON.stringify({
80
80
  Immediately,
81
81
  encrypt: true,
82
+ passive: passive,
83
+ compareCustomerClientId: compareCustomerClientId,
82
84
  clientInfo: {
83
85
  os: 'web',
84
86
  os_ver: osVersion(),
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@authme/liveness",
3
- "version": "2.4.8",
3
+ "version": "2.7.0",
4
4
  "peerDependencies": {
5
5
  "core-js": "^3.6.0",
6
- "@authme/core": "2.4.8",
7
- "@authme/util": "2.4.8",
8
- "@authme/engine": "2.4.8"
6
+ "@authme/core": "2.7.0",
7
+ "@authme/util": "2.7.0",
8
+ "@authme/engine": "2.7.0"
9
9
  },
10
10
  "module": "./index.js",
11
11
  "main": "./index.cjs",
@@ -1,7 +1,7 @@
1
1
  import { LivenessDetectBody, LivenessResultResponse, LivenessUploadFrameBody, LivenessUploadMetaBody } from './dto.interface';
2
2
  export declare const LivenessAPI: {
3
3
  IdentityVerification: {
4
- init: (Immediately: boolean) => Promise<any>;
4
+ init: (Immediately: boolean, passive?: boolean | null, compareCustomerClientId?: string | null) => Promise<any>;
5
5
  detect: (data: LivenessDetectBody) => Promise<{
6
6
  isLiveness?: boolean;
7
7
  score?: number;
@@ -13,7 +13,7 @@ export declare const LivenessAPI: {
13
13
  };
14
14
  CustomerManagement: {
15
15
  getVerifyResult: (id: string) => Promise<any>;
16
- init: (Immediately: boolean) => Promise<any>;
16
+ init: (Immediately: boolean, passive?: boolean | null, compareCustomerClientId?: string | null) => Promise<any>;
17
17
  detect: (data: LivenessDetectBody) => Promise<{
18
18
  isLiveness?: boolean;
19
19
  score?: number;