@authme/liveness 2.4.11 → 2.7.1

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
@@ -68,11 +68,27 @@ class FasService extends engine.AuthmeEngineModuleBase {
68
68
  }
69
69
  }
70
70
 
71
- const init = url => Immediately => __awaiter(void 0, void 0, void 0, function* () {
71
+ var name = "authme/sdk";
72
+ var version$1 = "2.7.1";
73
+ var date = "2024-09-06T02:00:28+0000";
74
+ var packageInfo = {
75
+ name: name,
76
+ version: version$1,
77
+ date: date
78
+ };
79
+
80
+ const init = url => (Immediately, passive, compareCustomerClientId) => __awaiter(void 0, void 0, void 0, function* () {
72
81
  return core.sendRequest(url, 'POST', {
73
82
  body: JSON.stringify({
74
83
  Immediately,
75
- encrypt: true
84
+ encrypt: true,
85
+ passive: passive,
86
+ compareCustomerClientId: compareCustomerClientId,
87
+ clientInfo: {
88
+ os: 'web',
89
+ os_ver: util.osVersion(),
90
+ client_ver: packageInfo.version
91
+ }
76
92
  })
77
93
  });
78
94
  });
@@ -146,17 +162,6 @@ exports.LivenessResultStatus = void 0;
146
162
  LivenessResultStatus["UPLOADING"] = "Uploading";
147
163
  })(exports.LivenessResultStatus || (exports.LivenessResultStatus = {}));
148
164
 
149
- var name = "@authme/liveness";
150
- var version$1 = "2.4.11";
151
- var peerDependencies = {
152
- "core-js": "^3.6.0"
153
- };
154
- var packageInfo = {
155
- name: name,
156
- version: version$1,
157
- peerDependencies: peerDependencies
158
- };
159
-
160
165
  var _a;
161
166
  var _b, _c;
162
167
  const version = packageInfo.version;
package/index.js CHANGED
@@ -3,7 +3,7 @@ export { EAuthMeEyeStatus, EAuthMeFASServiceStage, EAuthMeFaceAntiSpoofingStatus
3
3
  import 'core-js/modules/es.regexp.to-string.js';
4
4
  import 'core-js/modules/es.object.assign.js';
5
5
  import { sendRequest } from '@authme/core';
6
- import { dataURItoBlob } from '@authme/util';
6
+ import { osVersion, dataURItoBlob } from '@authme/util';
7
7
  import 'core-js/modules/es.symbol.description.js';
8
8
 
9
9
  /******************************************************************************
@@ -65,11 +65,27 @@ class FasService extends AuthmeEngineModuleBase {
65
65
  }
66
66
  }
67
67
 
68
- const init = url => Immediately => __awaiter(void 0, void 0, void 0, function* () {
68
+ var name = "authme/sdk";
69
+ var version$1 = "2.7.1";
70
+ var date = "2024-09-06T02:00:28+0000";
71
+ var packageInfo = {
72
+ name: name,
73
+ version: version$1,
74
+ date: date
75
+ };
76
+
77
+ const init = url => (Immediately, passive, compareCustomerClientId) => __awaiter(void 0, void 0, void 0, function* () {
69
78
  return sendRequest(url, 'POST', {
70
79
  body: JSON.stringify({
71
80
  Immediately,
72
- encrypt: true
81
+ encrypt: true,
82
+ passive: passive,
83
+ compareCustomerClientId: compareCustomerClientId,
84
+ clientInfo: {
85
+ os: 'web',
86
+ os_ver: osVersion(),
87
+ client_ver: packageInfo.version
88
+ }
73
89
  })
74
90
  });
75
91
  });
@@ -143,17 +159,6 @@ var LivenessResultStatus;
143
159
  LivenessResultStatus["UPLOADING"] = "Uploading";
144
160
  })(LivenessResultStatus || (LivenessResultStatus = {}));
145
161
 
146
- var name = "@authme/liveness";
147
- var version$1 = "2.4.11";
148
- var peerDependencies = {
149
- "core-js": "^3.6.0"
150
- };
151
- var packageInfo = {
152
- name: name,
153
- version: version$1,
154
- peerDependencies: peerDependencies
155
- };
156
-
157
162
  var _a;
158
163
  var _b, _c;
159
164
  const version = packageInfo.version;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@authme/liveness",
3
- "version": "2.4.11",
3
+ "version": "2.7.1",
4
4
  "peerDependencies": {
5
5
  "core-js": "^3.6.0",
6
- "@authme/core": "2.4.11",
7
- "@authme/util": "2.4.11",
8
- "@authme/engine": "2.4.11"
6
+ "@authme/core": "2.7.1",
7
+ "@authme/util": "2.7.1",
8
+ "@authme/engine": "2.7.1"
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;