@authme/liveness 2.1.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/CHANGELOG.md ADDED
@@ -0,0 +1,147 @@
1
+ # Changelog
2
+
3
+ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
+
5
+ ## [2.1.1](https://github.com/AuthMe01/web-client-sdk/compare/prod-2.1.0...prod-2.1.1) (2022-09-08)
6
+
7
+ ## 1.2.2 (2022-07-28)
8
+
9
+ ### Bug Fixes
10
+
11
+ - PROD-255 fix memory leak issue ([7c35177](https://github.com/AuthMe01/web-client-sdk/commit/7c351779f89020694f41f38d7fd8320284c6e544))
12
+ - PROD-255 remove console & add fas fail handle ([c2faac9](https://github.com/AuthMe01/web-client-sdk/commit/c2faac958921590958cfc851b678945babeb8402))
13
+ - PROD-255 tuning recognition frame performance ([7e8306f](https://github.com/AuthMe01/web-client-sdk/commit/7e8306f8e8567bc745e01b9836efc627601a5269))
14
+ - PROD-462 Adjust frame quality ([00e9f31](https://github.com/AuthMe01/web-client-sdk/commit/00e9f319a05176e112704a575acf4146aebd9ab0))
15
+ - PROD-680 liveness fail with background upload ([269d17d](https://github.com/AuthMe01/web-client-sdk/commit/269d17d29ffd795270e44455215c0f1c292a137b))
16
+ - PROD-715 add max fps control ([377fcd3](https://github.com/AuthMe01/web-client-sdk/commit/377fcd34624b98feaf87ed8468dd6174dd8d3981))
17
+
18
+ ### Features
19
+
20
+ - PR-46 passive fas impl ([307aa7d](https://github.com/AuthMe01/web-client-sdk/commit/307aa7dd85e43ebe41ee9074d2bea6981517de2d))
21
+ - PR-51 Integrate fas UI and logic ([e939088](https://github.com/AuthMe01/web-client-sdk/commit/e939088caffe678ef0e768d7281edd0e6eb09d82))
22
+ - PR-51 Integrate passive fas UI & logic ([f76fb5b](https://github.com/AuthMe01/web-client-sdk/commit/f76fb5b3a1f1cfbc9015524ce9a863c80eec5211))
23
+ - PR-52 Add FAS porting ([d43ec7e](https://github.com/AuthMe01/web-client-sdk/commit/d43ec7e92c215b108157aa3931625865c0603540))
24
+ - PROD-135 add fetch model from backend ([a701d6f](https://github.com/AuthMe01/web-client-sdk/commit/a701d6fadc1ed2b57bebb00360e818d34d561191))
25
+ - PROD-135 v3 fas api ([8e1e9cc](https://github.com/AuthMe01/web-client-sdk/commit/8e1e9cc9b8e5acbdbc4d49564bad8d42146a3c61))
26
+ - PROD-255 add OCR api impl ([40098a8](https://github.com/AuthMe01/web-client-sdk/commit/40098a8e76b02d3a3e7f4ef642da8d1806818496))
27
+ - PROD-334 Add Network Error Retry ([1dafbfd](https://github.com/AuthMe01/web-client-sdk/commit/1dafbfd2d51024abed9611cda4b7bd04401ed7f1))
28
+ - PROD-595 Add eKYC impl ([6b5cf51](https://github.com/AuthMe01/web-client-sdk/commit/6b5cf5198a8f3039a52a1f114ff2089cb45b17b2))
29
+ - PROD-957 update engineLib v1.0.2 ([f5383e5](https://github.com/AuthMe01/web-client-sdk/commit/f5383e5210c798bf2663ad8f094a16b937ffa5b6))
30
+
31
+ ## 1.2.1 (2022-07-28)
32
+
33
+ ### Bug Fixes
34
+
35
+ - PROD-255 fix memory leak issue ([7c35177](https://github.com/AuthMe01/web-client-sdk/commit/7c351779f89020694f41f38d7fd8320284c6e544))
36
+ - PROD-255 remove console & add fas fail handle ([c2faac9](https://github.com/AuthMe01/web-client-sdk/commit/c2faac958921590958cfc851b678945babeb8402))
37
+ - PROD-255 tuning recognition frame performance ([7e8306f](https://github.com/AuthMe01/web-client-sdk/commit/7e8306f8e8567bc745e01b9836efc627601a5269))
38
+ - PROD-462 Adjust frame quality ([00e9f31](https://github.com/AuthMe01/web-client-sdk/commit/00e9f319a05176e112704a575acf4146aebd9ab0))
39
+ - PROD-680 liveness fail with background upload ([269d17d](https://github.com/AuthMe01/web-client-sdk/commit/269d17d29ffd795270e44455215c0f1c292a137b))
40
+ - PROD-715 add max fps control ([377fcd3](https://github.com/AuthMe01/web-client-sdk/commit/377fcd34624b98feaf87ed8468dd6174dd8d3981))
41
+
42
+ ### Features
43
+
44
+ - PR-46 passive fas impl ([307aa7d](https://github.com/AuthMe01/web-client-sdk/commit/307aa7dd85e43ebe41ee9074d2bea6981517de2d))
45
+ - PR-51 Integrate fas UI and logic ([e939088](https://github.com/AuthMe01/web-client-sdk/commit/e939088caffe678ef0e768d7281edd0e6eb09d82))
46
+ - PR-51 Integrate passive fas UI & logic ([f76fb5b](https://github.com/AuthMe01/web-client-sdk/commit/f76fb5b3a1f1cfbc9015524ce9a863c80eec5211))
47
+ - PR-52 Add FAS porting ([d43ec7e](https://github.com/AuthMe01/web-client-sdk/commit/d43ec7e92c215b108157aa3931625865c0603540))
48
+ - PROD-135 add fetch model from backend ([a701d6f](https://github.com/AuthMe01/web-client-sdk/commit/a701d6fadc1ed2b57bebb00360e818d34d561191))
49
+ - PROD-135 v3 fas api ([8e1e9cc](https://github.com/AuthMe01/web-client-sdk/commit/8e1e9cc9b8e5acbdbc4d49564bad8d42146a3c61))
50
+ - PROD-255 add OCR api impl ([40098a8](https://github.com/AuthMe01/web-client-sdk/commit/40098a8e76b02d3a3e7f4ef642da8d1806818496))
51
+ - PROD-334 Add Network Error Retry ([1dafbfd](https://github.com/AuthMe01/web-client-sdk/commit/1dafbfd2d51024abed9611cda4b7bd04401ed7f1))
52
+ - PROD-595 Add eKYC impl ([6b5cf51](https://github.com/AuthMe01/web-client-sdk/commit/6b5cf5198a8f3039a52a1f114ff2089cb45b17b2))
53
+ - PROD-957 update engineLib v1.0.2 ([f5383e5](https://github.com/AuthMe01/web-client-sdk/commit/f5383e5210c798bf2663ad8f094a16b937ffa5b6))
54
+
55
+ # 1.2.0 (2022-07-25)
56
+
57
+ ### Bug Fixes
58
+
59
+ - PROD-255 fix memory leak issue ([7c35177](https://github.com/AuthMe01/web-client-sdk/commit/7c351779f89020694f41f38d7fd8320284c6e544))
60
+ - PROD-255 remove console & add fas fail handle ([c2faac9](https://github.com/AuthMe01/web-client-sdk/commit/c2faac958921590958cfc851b678945babeb8402))
61
+ - PROD-255 tuning recognition frame performance ([7e8306f](https://github.com/AuthMe01/web-client-sdk/commit/7e8306f8e8567bc745e01b9836efc627601a5269))
62
+ - PROD-462 Adjust frame quality ([00e9f31](https://github.com/AuthMe01/web-client-sdk/commit/00e9f319a05176e112704a575acf4146aebd9ab0))
63
+ - PROD-680 liveness fail with background upload ([269d17d](https://github.com/AuthMe01/web-client-sdk/commit/269d17d29ffd795270e44455215c0f1c292a137b))
64
+ - PROD-715 add max fps control ([377fcd3](https://github.com/AuthMe01/web-client-sdk/commit/377fcd34624b98feaf87ed8468dd6174dd8d3981))
65
+
66
+ ### Features
67
+
68
+ - PR-46 passive fas impl ([307aa7d](https://github.com/AuthMe01/web-client-sdk/commit/307aa7dd85e43ebe41ee9074d2bea6981517de2d))
69
+ - PR-51 Integrate fas UI and logic ([e939088](https://github.com/AuthMe01/web-client-sdk/commit/e939088caffe678ef0e768d7281edd0e6eb09d82))
70
+ - PR-51 Integrate passive fas UI & logic ([f76fb5b](https://github.com/AuthMe01/web-client-sdk/commit/f76fb5b3a1f1cfbc9015524ce9a863c80eec5211))
71
+ - PR-52 Add FAS porting ([d43ec7e](https://github.com/AuthMe01/web-client-sdk/commit/d43ec7e92c215b108157aa3931625865c0603540))
72
+ - PROD-135 add fetch model from backend ([a701d6f](https://github.com/AuthMe01/web-client-sdk/commit/a701d6fadc1ed2b57bebb00360e818d34d561191))
73
+ - PROD-135 v3 fas api ([8e1e9cc](https://github.com/AuthMe01/web-client-sdk/commit/8e1e9cc9b8e5acbdbc4d49564bad8d42146a3c61))
74
+ - PROD-255 add OCR api impl ([40098a8](https://github.com/AuthMe01/web-client-sdk/commit/40098a8e76b02d3a3e7f4ef642da8d1806818496))
75
+ - PROD-334 Add Network Error Retry ([1dafbfd](https://github.com/AuthMe01/web-client-sdk/commit/1dafbfd2d51024abed9611cda4b7bd04401ed7f1))
76
+ - PROD-595 Add eKYC impl ([6b5cf51](https://github.com/AuthMe01/web-client-sdk/commit/6b5cf5198a8f3039a52a1f114ff2089cb45b17b2))
77
+ - PROD-957 update engineLib v1.0.2 ([f5383e5](https://github.com/AuthMe01/web-client-sdk/commit/f5383e5210c798bf2663ad8f094a16b937ffa5b6))
78
+
79
+ ## 1.1.1 (2022-07-07)
80
+
81
+ ### Bug Fixes
82
+
83
+ - PROD-255 fix memory leak issue ([7c35177](https://github.com/AuthMe01/web-client-sdk/commit/7c351779f89020694f41f38d7fd8320284c6e544))
84
+ - PROD-255 remove console & add fas fail handle ([c2faac9](https://github.com/AuthMe01/web-client-sdk/commit/c2faac958921590958cfc851b678945babeb8402))
85
+ - PROD-255 tuning recognition frame performance ([7e8306f](https://github.com/AuthMe01/web-client-sdk/commit/7e8306f8e8567bc745e01b9836efc627601a5269))
86
+ - PROD-462 Adjust frame quality ([00e9f31](https://github.com/AuthMe01/web-client-sdk/commit/00e9f319a05176e112704a575acf4146aebd9ab0))
87
+ - PROD-680 liveness fail with background upload ([269d17d](https://github.com/AuthMe01/web-client-sdk/commit/269d17d29ffd795270e44455215c0f1c292a137b))
88
+ - PROD-715 add max fps control ([377fcd3](https://github.com/AuthMe01/web-client-sdk/commit/377fcd34624b98feaf87ed8468dd6174dd8d3981))
89
+
90
+ ### Features
91
+
92
+ - PR-46 passive fas impl ([307aa7d](https://github.com/AuthMe01/web-client-sdk/commit/307aa7dd85e43ebe41ee9074d2bea6981517de2d))
93
+ - PR-51 Integrate fas UI and logic ([e939088](https://github.com/AuthMe01/web-client-sdk/commit/e939088caffe678ef0e768d7281edd0e6eb09d82))
94
+ - PR-51 Integrate passive fas UI & logic ([f76fb5b](https://github.com/AuthMe01/web-client-sdk/commit/f76fb5b3a1f1cfbc9015524ce9a863c80eec5211))
95
+ - PR-52 Add FAS porting ([d43ec7e](https://github.com/AuthMe01/web-client-sdk/commit/d43ec7e92c215b108157aa3931625865c0603540))
96
+ - PROD-135 add fetch model from backend ([a701d6f](https://github.com/AuthMe01/web-client-sdk/commit/a701d6fadc1ed2b57bebb00360e818d34d561191))
97
+ - PROD-135 v3 fas api ([8e1e9cc](https://github.com/AuthMe01/web-client-sdk/commit/8e1e9cc9b8e5acbdbc4d49564bad8d42146a3c61))
98
+ - PROD-255 add OCR api impl ([40098a8](https://github.com/AuthMe01/web-client-sdk/commit/40098a8e76b02d3a3e7f4ef642da8d1806818496))
99
+ - PROD-334 Add Network Error Retry ([1dafbfd](https://github.com/AuthMe01/web-client-sdk/commit/1dafbfd2d51024abed9611cda4b7bd04401ed7f1))
100
+ - PROD-595 Add eKYC impl ([6b5cf51](https://github.com/AuthMe01/web-client-sdk/commit/6b5cf5198a8f3039a52a1f114ff2089cb45b17b2))
101
+ - PROD-957 update engineLib v1.0.2 ([f5383e5](https://github.com/AuthMe01/web-client-sdk/commit/f5383e5210c798bf2663ad8f094a16b937ffa5b6))
102
+
103
+ # 1.1.0 (2022-07-06)
104
+
105
+ ### Bug Fixes
106
+
107
+ - PROD-255 fix memory leak issue ([7c35177](https://github.com/AuthMe01/web-client-sdk/commit/7c351779f89020694f41f38d7fd8320284c6e544))
108
+ - PROD-255 remove console & add fas fail handle ([c2faac9](https://github.com/AuthMe01/web-client-sdk/commit/c2faac958921590958cfc851b678945babeb8402))
109
+ - PROD-255 tuning recognition frame performance ([7e8306f](https://github.com/AuthMe01/web-client-sdk/commit/7e8306f8e8567bc745e01b9836efc627601a5269))
110
+ - PROD-462 Adjust frame quality ([00e9f31](https://github.com/AuthMe01/web-client-sdk/commit/00e9f319a05176e112704a575acf4146aebd9ab0))
111
+ - PROD-680 liveness fail with background upload ([269d17d](https://github.com/AuthMe01/web-client-sdk/commit/269d17d29ffd795270e44455215c0f1c292a137b))
112
+ - PROD-715 add max fps control ([377fcd3](https://github.com/AuthMe01/web-client-sdk/commit/377fcd34624b98feaf87ed8468dd6174dd8d3981))
113
+
114
+ ### Features
115
+
116
+ - PR-46 passive fas impl ([307aa7d](https://github.com/AuthMe01/web-client-sdk/commit/307aa7dd85e43ebe41ee9074d2bea6981517de2d))
117
+ - PR-51 Integrate fas UI and logic ([e939088](https://github.com/AuthMe01/web-client-sdk/commit/e939088caffe678ef0e768d7281edd0e6eb09d82))
118
+ - PR-51 Integrate passive fas UI & logic ([f76fb5b](https://github.com/AuthMe01/web-client-sdk/commit/f76fb5b3a1f1cfbc9015524ce9a863c80eec5211))
119
+ - PR-52 Add FAS porting ([d43ec7e](https://github.com/AuthMe01/web-client-sdk/commit/d43ec7e92c215b108157aa3931625865c0603540))
120
+ - PROD-135 add fetch model from backend ([a701d6f](https://github.com/AuthMe01/web-client-sdk/commit/a701d6fadc1ed2b57bebb00360e818d34d561191))
121
+ - PROD-135 v3 fas api ([8e1e9cc](https://github.com/AuthMe01/web-client-sdk/commit/8e1e9cc9b8e5acbdbc4d49564bad8d42146a3c61))
122
+ - PROD-255 add OCR api impl ([40098a8](https://github.com/AuthMe01/web-client-sdk/commit/40098a8e76b02d3a3e7f4ef642da8d1806818496))
123
+ - PROD-334 Add Network Error Retry ([1dafbfd](https://github.com/AuthMe01/web-client-sdk/commit/1dafbfd2d51024abed9611cda4b7bd04401ed7f1))
124
+ - PROD-595 Add eKYC impl ([6b5cf51](https://github.com/AuthMe01/web-client-sdk/commit/6b5cf5198a8f3039a52a1f114ff2089cb45b17b2))
125
+ - PROD-957 update engineLib v1.0.2 ([f5383e5](https://github.com/AuthMe01/web-client-sdk/commit/f5383e5210c798bf2663ad8f094a16b937ffa5b6))
126
+
127
+ # 1.0.0 (2022-05-30)
128
+
129
+ ### Bug Fixes
130
+
131
+ - PROD-255 fix memory leak issue ([7c35177](https://github.com/AuthMe01/web-client-sdk/commit/7c351779f89020694f41f38d7fd8320284c6e544))
132
+ - PROD-255 remove console & add fas fail handle ([c2faac9](https://github.com/AuthMe01/web-client-sdk/commit/c2faac958921590958cfc851b678945babeb8402))
133
+ - PROD-255 tuning recognition frame performance ([7e8306f](https://github.com/AuthMe01/web-client-sdk/commit/7e8306f8e8567bc745e01b9836efc627601a5269))
134
+ - PROD-462 Adjust frame quality ([00e9f31](https://github.com/AuthMe01/web-client-sdk/commit/00e9f319a05176e112704a575acf4146aebd9ab0))
135
+ - PROD-680 liveness fail with background upload ([269d17d](https://github.com/AuthMe01/web-client-sdk/commit/269d17d29ffd795270e44455215c0f1c292a137b))
136
+
137
+ ### Features
138
+
139
+ - PR-46 passive fas impl ([307aa7d](https://github.com/AuthMe01/web-client-sdk/commit/307aa7dd85e43ebe41ee9074d2bea6981517de2d))
140
+ - PR-51 Integrate fas UI and logic ([e939088](https://github.com/AuthMe01/web-client-sdk/commit/e939088caffe678ef0e768d7281edd0e6eb09d82))
141
+ - PR-51 Integrate passive fas UI & logic ([f76fb5b](https://github.com/AuthMe01/web-client-sdk/commit/f76fb5b3a1f1cfbc9015524ce9a863c80eec5211))
142
+ - PR-52 Add FAS porting ([d43ec7e](https://github.com/AuthMe01/web-client-sdk/commit/d43ec7e92c215b108157aa3931625865c0603540))
143
+ - PROD-135 add fetch model from backend ([a701d6f](https://github.com/AuthMe01/web-client-sdk/commit/a701d6fadc1ed2b57bebb00360e818d34d561191))
144
+ - PROD-135 v3 fas api ([8e1e9cc](https://github.com/AuthMe01/web-client-sdk/commit/8e1e9cc9b8e5acbdbc4d49564bad8d42146a3c61))
145
+ - PROD-255 add OCR api impl ([40098a8](https://github.com/AuthMe01/web-client-sdk/commit/40098a8e76b02d3a3e7f4ef642da8d1806818496))
146
+ - PROD-334 Add Network Error Retry ([1dafbfd](https://github.com/AuthMe01/web-client-sdk/commit/1dafbfd2d51024abed9611cda4b7bd04401ed7f1))
147
+ - PROD-595 Add eKYC impl ([6b5cf51](https://github.com/AuthMe01/web-client-sdk/commit/6b5cf5198a8f3039a52a1f114ff2089cb45b17b2))
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # modules-liveness-feature-liveness
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Running unit tests
6
+
7
+ Run `nx test modules-liveness-feature-liveness` to execute the unit tests via [Jest](https://jestjs.io).
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@authme/liveness",
3
+ "version": "2.1.1",
4
+ "main": "./src/index.js",
5
+ "typings": "./src/index.d.ts",
6
+ "dependencies": {},
7
+ "peerDependencies": {
8
+ "@authme/core": "2.1.1",
9
+ "@authme/util": "2.1.1",
10
+ "three": "^0.136.0",
11
+ "@authme/engine": "2.1.1",
12
+ "rxjs": "~7.4.0",
13
+ "tslib": "^2.3.0"
14
+ }
15
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export * from './lib/modules-liveness-feature-liveness';
2
+ export * from './lib/enum';
3
+ export * from './lib/interface';
4
+ export * from './lib/data-access';
package/src/index.js ADDED
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./lib/modules-liveness-feature-liveness"), exports);
5
+ tslib_1.__exportStar(require("./lib/enum"), exports);
6
+ tslib_1.__exportStar(require("./lib/interface"), exports);
7
+ tslib_1.__exportStar(require("./lib/data-access"), exports);
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/modules/liveness/feature-liveness/src/index.ts"],"names":[],"mappings":";;;AAAA,kFAAwD;AACxD,qDAA2B;AAC3B,0DAAgC;AAChC,4DAAkC"}
@@ -0,0 +1,22 @@
1
+ import { LivenessDetectBody, LivenessResultResponse, LivenessUploadFrameBody, LivenessUploadMetaBody } from './dto.interface';
2
+ export declare const LivenessAPI: {
3
+ IdentityVerification: {
4
+ init: (Immediately: boolean) => Promise<any>;
5
+ detect: (data: LivenessDetectBody) => Promise<{
6
+ isLiveness?: boolean;
7
+ score?: number;
8
+ }>;
9
+ uploadFrame: (body: LivenessUploadFrameBody) => Promise<void>;
10
+ uploadFrameFile: (data: LivenessUploadFrameBody) => Promise<void>;
11
+ uploadMeta: (data: LivenessUploadMetaBody) => Promise<void>;
12
+ getResult: (id: string) => Promise<LivenessResultResponse>;
13
+ };
14
+ CustomerManagement: {
15
+ getVerifyResult: (id: string) => Promise<any>;
16
+ init: (Immediately: boolean) => Promise<any>;
17
+ detect: (data: LivenessDetectBody) => Promise<{
18
+ isLiveness?: boolean;
19
+ score?: number;
20
+ }>;
21
+ };
22
+ };
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LivenessAPI = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const core_1 = require("@authme/core");
6
+ const util_1 = require("@authme/util");
7
+ const init = (url) => (Immediately) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
8
+ return (0, core_1.sendRequest)(url, 'POST', JSON.stringify({
9
+ Immediately,
10
+ }));
11
+ });
12
+ const detect = (url) => (data) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
13
+ const formData = new FormData();
14
+ formData.append('id', data.id);
15
+ formData.append('score', data.score.toString());
16
+ formData.append('isLiveness', data.isLiveness.toString());
17
+ data.frames.forEach((element, index) => {
18
+ formData.append('Frames', element, `frame${index}`);
19
+ });
20
+ data.results.forEach((item, index) => {
21
+ formData.append(`results[${index}][status]`, item.status.split('_')[1]);
22
+ formData.append(`results[${index}][stage]`, item.stage.split('_')[1]);
23
+ });
24
+ return (0, core_1.sendRequest)(url, 'POST', formData, 'multipart/form-data');
25
+ });
26
+ const uploadFrameFile = (url) => (data) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
27
+ const formData = new FormData();
28
+ formData.append('id', data.id);
29
+ formData.append('index', data.index.toString());
30
+ formData.append('data', (0, util_1.dataURItoBlob)(data.data));
31
+ return (0, core_1.sendRequest)(url, 'POST', formData, 'multipart/form-data');
32
+ });
33
+ const uploadFrame = (url) => (body) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
34
+ return (0, core_1.sendRequest)(url, 'POST', JSON.stringify(Object.assign(Object.assign({}, body), { data: body.data.split('base64,')[1] })));
35
+ });
36
+ const uploadMeta = (url) => (data) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
37
+ return (0, core_1.sendRequest)(url, 'POST', JSON.stringify(data));
38
+ });
39
+ const getResult = (url) => (id) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return (0, core_1.sendRequest)(`${url}${id}`, 'GET'); });
40
+ const getVerifyResult = (url) => (id) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return (0, core_1.sendRequest)(`${url}${id}`, 'GET'); });
41
+ const IdentityVerification = {
42
+ init: init('/api/identity-verification/v3/liveness/init'),
43
+ detect: detect('/api/identity-verification/v3/liveness/detect'),
44
+ uploadFrame: uploadFrame('/api/identity-verification/v3/liveness/frame'),
45
+ uploadFrameFile: uploadFrameFile('/api/identity-verification/v3/liveness/frame-file'),
46
+ uploadMeta: uploadMeta('/api/identity-verification/v3/liveness/meta'),
47
+ getResult: getResult('/api/identity-verification/v3/liveness/result/'),
48
+ };
49
+ const CustomerManagement = {
50
+ getVerifyResult: getVerifyResult('/api/customer-management/liveness-verify/v3/result/'),
51
+ init: init('/api/customer-management/liveness-verify/v3/init'),
52
+ detect: detect('/api/customer-management/liveness-verify/v3/detect'),
53
+ };
54
+ exports.LivenessAPI = {
55
+ IdentityVerification,
56
+ CustomerManagement,
57
+ };
58
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../../../../../libs/modules/liveness/feature-liveness/src/lib/data-access/api.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,37 @@
1
+ export interface LivenessDetectBody {
2
+ id: string;
3
+ frames: Blob[];
4
+ score: number;
5
+ isLiveness: boolean;
6
+ results: {
7
+ status: string;
8
+ stage: string;
9
+ }[];
10
+ }
11
+ export interface LivenessUploadFrameBody {
12
+ id: string;
13
+ index: number;
14
+ data: string;
15
+ }
16
+ export interface LivenessUploadMetaBody {
17
+ id: string;
18
+ data: string;
19
+ }
20
+ export interface LivenessInitResponse {
21
+ id: string;
22
+ expiredIn: number;
23
+ parameters: {
24
+ fasThreshold: number;
25
+ fasTimeout: number;
26
+ fasMaxFps: number;
27
+ fasStages: string[];
28
+ };
29
+ }
30
+ export interface LivenessResultResponse {
31
+ state: string;
32
+ isPass: boolean;
33
+ score: number;
34
+ createTime: string;
35
+ updateTime: string;
36
+ expiryTime: string;
37
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=dto.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dto.interface.js","sourceRoot":"","sources":["../../../../../../../../libs/modules/liveness/feature-liveness/src/lib/data-access/dto.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './api';
2
+ export * from './dto.interface';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./api"), exports);
5
+ tslib_1.__exportStar(require("./dto.interface"), exports);
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../libs/modules/liveness/feature-liveness/src/lib/data-access/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsB;AACtB,0DAAgC"}
@@ -0,0 +1,46 @@
1
+ export declare enum FasRecognitionResult {
2
+ Failed = "EAuthMeFASServiceStatus_Failed",
3
+ NoFace = "EAuthMeFASServiceStatus_NoFace",
4
+ FaceNotAtCenter = "EAuthMeFASServiceStatus_FaceNotAtCenter",
5
+ FaceTooSmall = "EAuthMeFASServiceStatus_FaceTooSmall",
6
+ FaceTooLarge = "EAuthMeFASServiceStatus_FaceTooLarge",
7
+ NeedFaceToCamera = "EAuthMeFASServiceStatus_NeedFaceToCamera",
8
+ FaceMasked = "EAuthMeFASServiceStatus_FaceMasked",
9
+ NeedOpenMouth = "EAuthMeFASServiceStatus_NeedOpenMouth",
10
+ NeedCloseMouth = "EAuthMeFASServiceStatus_NeedCloseMouth",
11
+ NeedSmile = "EAuthMeFASServiceStatus_NeedSmile",
12
+ NeedOpenEyes = "EAuthMeFASServiceStatus_NeedOpenEyes",
13
+ NeedMoreFrame = "EAuthMeFASServiceStatus_NeedMoreFrame",
14
+ Error = "EAuthMeFASServiceStatus_Error",
15
+ Pass = "EAuthMeFASServiceStatus_Pass"
16
+ }
17
+ export declare enum EAuthMeFASServiceStage {
18
+ Passive = "EAuthMeFASServiceStage_Passive",
19
+ OpenMouth = "EAuthMeFASServiceStage_OpenMouth",
20
+ CloseMouth = "EAuthMeFASServiceStage_CloseMouth",
21
+ Smile = "EAuthMeFASServiceStage_Smile",
22
+ Done = "EAuthMeFASServiceStage_Done"
23
+ }
24
+ export declare enum EAuthMeEyeStatus {
25
+ Eye_Close = "EAuthMeEyeStatus_Eye_Close",
26
+ Eye_Open = "EAuthMeEyeStatus_Eye_Open"
27
+ }
28
+ export declare enum EAuthMeMouthStatus {
29
+ Mouth_Close = "EAuthMeMouthStatus_Mouth_Close",
30
+ Mouth_Open = "EAuthMeMouthStatus_Mouth_Open"
31
+ }
32
+ export declare enum EAuthMeFacePose {
33
+ Unknown = "EAuthMeFacePose_Unknown",
34
+ LeftProfile = "EAuthMeFacePose_LeftProfile",
35
+ LeftFrontal = "EAuthMeFacePose_LeftFrontal",
36
+ Frontal = "EAuthMeFacePose_Frontal",
37
+ RightFrontal = "EAuthMeFacePose_RightFrontal",
38
+ RightProfile = "EAuthMeFacePose_RightProfile",
39
+ UpFrontal = "EAuthMeFacePose_UpFrontal",
40
+ DownFrontal = "EAuthMeFacePose_DownFrontal"
41
+ }
42
+ export declare enum EAuthMeFaceAntiSpoofingStatus {
43
+ FrameNotEnough = "EAuthMeFaceAntiSpoofingStatus_FrameNotEnough",
44
+ Real = "EAuthMeFaceAntiSpoofingStatus_Real",
45
+ Spoof = "EAuthMeFaceAntiSpoofingStatus_Spoof"
46
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EAuthMeFaceAntiSpoofingStatus = exports.EAuthMeFacePose = exports.EAuthMeMouthStatus = exports.EAuthMeEyeStatus = exports.EAuthMeFASServiceStage = exports.FasRecognitionResult = void 0;
4
+ var FasRecognitionResult;
5
+ (function (FasRecognitionResult) {
6
+ FasRecognitionResult["Failed"] = "EAuthMeFASServiceStatus_Failed";
7
+ FasRecognitionResult["NoFace"] = "EAuthMeFASServiceStatus_NoFace";
8
+ FasRecognitionResult["FaceNotAtCenter"] = "EAuthMeFASServiceStatus_FaceNotAtCenter";
9
+ FasRecognitionResult["FaceTooSmall"] = "EAuthMeFASServiceStatus_FaceTooSmall";
10
+ FasRecognitionResult["FaceTooLarge"] = "EAuthMeFASServiceStatus_FaceTooLarge";
11
+ FasRecognitionResult["NeedFaceToCamera"] = "EAuthMeFASServiceStatus_NeedFaceToCamera";
12
+ FasRecognitionResult["FaceMasked"] = "EAuthMeFASServiceStatus_FaceMasked";
13
+ FasRecognitionResult["NeedOpenMouth"] = "EAuthMeFASServiceStatus_NeedOpenMouth";
14
+ FasRecognitionResult["NeedCloseMouth"] = "EAuthMeFASServiceStatus_NeedCloseMouth";
15
+ FasRecognitionResult["NeedSmile"] = "EAuthMeFASServiceStatus_NeedSmile";
16
+ FasRecognitionResult["NeedOpenEyes"] = "EAuthMeFASServiceStatus_NeedOpenEyes";
17
+ FasRecognitionResult["NeedMoreFrame"] = "EAuthMeFASServiceStatus_NeedMoreFrame";
18
+ FasRecognitionResult["Error"] = "EAuthMeFASServiceStatus_Error";
19
+ FasRecognitionResult["Pass"] = "EAuthMeFASServiceStatus_Pass";
20
+ })(FasRecognitionResult = exports.FasRecognitionResult || (exports.FasRecognitionResult = {}));
21
+ var EAuthMeFASServiceStage;
22
+ (function (EAuthMeFASServiceStage) {
23
+ EAuthMeFASServiceStage["Passive"] = "EAuthMeFASServiceStage_Passive";
24
+ EAuthMeFASServiceStage["OpenMouth"] = "EAuthMeFASServiceStage_OpenMouth";
25
+ EAuthMeFASServiceStage["CloseMouth"] = "EAuthMeFASServiceStage_CloseMouth";
26
+ EAuthMeFASServiceStage["Smile"] = "EAuthMeFASServiceStage_Smile";
27
+ EAuthMeFASServiceStage["Done"] = "EAuthMeFASServiceStage_Done";
28
+ })(EAuthMeFASServiceStage = exports.EAuthMeFASServiceStage || (exports.EAuthMeFASServiceStage = {}));
29
+ var EAuthMeEyeStatus;
30
+ (function (EAuthMeEyeStatus) {
31
+ EAuthMeEyeStatus["Eye_Close"] = "EAuthMeEyeStatus_Eye_Close";
32
+ EAuthMeEyeStatus["Eye_Open"] = "EAuthMeEyeStatus_Eye_Open";
33
+ })(EAuthMeEyeStatus = exports.EAuthMeEyeStatus || (exports.EAuthMeEyeStatus = {}));
34
+ var EAuthMeMouthStatus;
35
+ (function (EAuthMeMouthStatus) {
36
+ EAuthMeMouthStatus["Mouth_Close"] = "EAuthMeMouthStatus_Mouth_Close";
37
+ EAuthMeMouthStatus["Mouth_Open"] = "EAuthMeMouthStatus_Mouth_Open";
38
+ })(EAuthMeMouthStatus = exports.EAuthMeMouthStatus || (exports.EAuthMeMouthStatus = {}));
39
+ var EAuthMeFacePose;
40
+ (function (EAuthMeFacePose) {
41
+ EAuthMeFacePose["Unknown"] = "EAuthMeFacePose_Unknown";
42
+ EAuthMeFacePose["LeftProfile"] = "EAuthMeFacePose_LeftProfile";
43
+ EAuthMeFacePose["LeftFrontal"] = "EAuthMeFacePose_LeftFrontal";
44
+ EAuthMeFacePose["Frontal"] = "EAuthMeFacePose_Frontal";
45
+ EAuthMeFacePose["RightFrontal"] = "EAuthMeFacePose_RightFrontal";
46
+ EAuthMeFacePose["RightProfile"] = "EAuthMeFacePose_RightProfile";
47
+ EAuthMeFacePose["UpFrontal"] = "EAuthMeFacePose_UpFrontal";
48
+ EAuthMeFacePose["DownFrontal"] = "EAuthMeFacePose_DownFrontal";
49
+ })(EAuthMeFacePose = exports.EAuthMeFacePose || (exports.EAuthMeFacePose = {}));
50
+ var EAuthMeFaceAntiSpoofingStatus;
51
+ (function (EAuthMeFaceAntiSpoofingStatus) {
52
+ EAuthMeFaceAntiSpoofingStatus["FrameNotEnough"] = "EAuthMeFaceAntiSpoofingStatus_FrameNotEnough";
53
+ EAuthMeFaceAntiSpoofingStatus["Real"] = "EAuthMeFaceAntiSpoofingStatus_Real";
54
+ EAuthMeFaceAntiSpoofingStatus["Spoof"] = "EAuthMeFaceAntiSpoofingStatus_Spoof";
55
+ })(EAuthMeFaceAntiSpoofingStatus = exports.EAuthMeFaceAntiSpoofingStatus || (exports.EAuthMeFaceAntiSpoofingStatus = {}));
56
+ //# sourceMappingURL=fas-recognition.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fas-recognition.enum.js","sourceRoot":"","sources":["../../../../../../../../libs/modules/liveness/feature-liveness/src/lib/enum/fas-recognition.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAeX;AAfD,WAAY,oBAAoB;IAC9B,iEAAyC,CAAA;IACzC,iEAAyC,CAAA;IACzC,mFAA2D,CAAA;IAC3D,6EAAqD,CAAA;IACrD,6EAAqD,CAAA;IACrD,qFAA6D,CAAA;IAC7D,yEAAiD,CAAA;IACjD,+EAAuD,CAAA;IACvD,iFAAyD,CAAA;IACzD,uEAA+C,CAAA;IAC/C,6EAAqD,CAAA;IACrD,+EAAuD,CAAA;IACvD,+DAAuC,CAAA;IACvC,6DAAqC,CAAA;AACvC,CAAC,EAfW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAe/B;AAED,IAAY,sBAMX;AAND,WAAY,sBAAsB;IAChC,oEAA0C,CAAA;IAC1C,wEAA8C,CAAA;IAC9C,0EAAgD,CAAA;IAChD,gEAAsC,CAAA;IACtC,8DAAoC,CAAA;AACtC,CAAC,EANW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAMjC;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,4DAAwC,CAAA;IACxC,0DAAsC,CAAA;AACxC,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AACD,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,oEAA8C,CAAA;IAC9C,kEAA4C,CAAA;AAC9C,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AACD,IAAY,eASX;AATD,WAAY,eAAe;IACzB,sDAAmC,CAAA;IACnC,8DAA2C,CAAA;IAC3C,8DAA2C,CAAA;IAC3C,sDAAmC,CAAA;IACnC,gEAA6C,CAAA;IAC7C,gEAA6C,CAAA;IAC7C,0DAAuC,CAAA;IACvC,8DAA2C,CAAA;AAC7C,CAAC,EATW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAS1B;AAED,IAAY,6BAIX;AAJD,WAAY,6BAA6B;IACvC,gGAA+D,CAAA;IAC/D,4EAA2C,CAAA;IAC3C,8EAA6C,CAAA;AAC/C,CAAC,EAJW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAIxC"}
@@ -0,0 +1 @@
1
+ export * from './fas-recognition.enum';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./fas-recognition.enum"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../libs/modules/liveness/feature-liveness/src/lib/enum/index.ts"],"names":[],"mappings":";;;AAAA,iEAAuC"}
@@ -0,0 +1,35 @@
1
+ import { AuthMeRectFloat } from '@authme/engine';
2
+ import { EAuthMeEyeStatus, EAuthMeFaceAntiSpoofingStatus, EAuthMeFacePose, EAuthMeFASServiceStage, EAuthMeMouthStatus, FasRecognitionResult } from '../enum';
3
+ export interface FasResult {
4
+ info: AuthMeFASServiceInfo;
5
+ eStatus: FasRecognitionResult;
6
+ eStage: EAuthMeFASServiceStage;
7
+ }
8
+ export interface AuthMeFASServiceInfo {
9
+ face: AuthMeFaceInfo;
10
+ eye: AuthMeEyeInfo;
11
+ mouth: AuthMeMouthInfo;
12
+ pose: AuthMeFacePoseInfo;
13
+ fas: AuthMeFASInfo;
14
+ }
15
+ export interface AuthMeFaceInfo {
16
+ fScore: number;
17
+ fMask: number;
18
+ box: AuthMeRectFloat;
19
+ afLandmark: number[];
20
+ }
21
+ export interface AuthMeEyeInfo {
22
+ fScore: number;
23
+ eStatus: EAuthMeEyeStatus;
24
+ }
25
+ export interface AuthMeMouthInfo {
26
+ fScore: number;
27
+ eStatus: EAuthMeMouthStatus;
28
+ }
29
+ export interface AuthMeFacePoseInfo {
30
+ ePose: EAuthMeFacePose;
31
+ }
32
+ export interface AuthMeFASInfo {
33
+ eStatus: EAuthMeFaceAntiSpoofingStatus;
34
+ fScore: number;
35
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=fas.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fas.interface.js","sourceRoot":"","sources":["../../../../../../../../libs/modules/liveness/feature-liveness/src/lib/interface/fas.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './fas.interface';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./fas.interface"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../libs/modules/liveness/feature-liveness/src/lib/interface/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC"}
@@ -0,0 +1,7 @@
1
+ import { AuthmeEngineModuleBase, MlEngine } from '@authme/engine';
2
+ import { EAuthMeFASServiceStage } from './enum';
3
+ import { FasResult } from './interface';
4
+ export declare class FasService extends AuthmeEngineModuleBase<FasResult> {
5
+ constructor(engine: MlEngine);
6
+ setStage(stageList: EAuthMeFASServiceStage[]): Promise<any>;
7
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FasService = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const engine_1 = require("@authme/engine");
6
+ const rxjs_1 = require("rxjs");
7
+ class FasService extends engine_1.AuthmeEngineModuleBase {
8
+ constructor(engine) {
9
+ super(engine);
10
+ this.moduleName = engine_1.EngineModule.Fas;
11
+ }
12
+ setStage(stageList) {
13
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
14
+ const stageStrList = stageList.map((x) => x.split('_')[1]);
15
+ return yield (0, rxjs_1.firstValueFrom)(this.engine.run(this.moduleName, 'setStage', { stageList: stageStrList }));
16
+ });
17
+ }
18
+ }
19
+ exports.FasService = FasService;
20
+ //# sourceMappingURL=modules-liveness-feature-liveness.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modules-liveness-feature-liveness.js","sourceRoot":"","sources":["../../../../../../../libs/modules/liveness/feature-liveness/src/lib/modules-liveness-feature-liveness.ts"],"names":[],"mappings":";;;;AAAA,2CAAgF;AAChF,+BAAsC;AAItC,MAAa,UAAW,SAAQ,+BAAiC;IAC/D,YAAY,MAAgB;QAC1B,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,qBAAY,CAAC,GAAG,CAAC;IACrC,CAAC;IAEK,QAAQ,CAAC,SAAmC;;YAChD,MAAM,YAAY,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC3D,OAAO,MAAM,IAAA,qBAAc,EACzB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC,CAC1E,CAAC;QACJ,CAAC;KAAA;CACF;AAZD,gCAYC"}