@privateid/ultrapass-web-sdk 1.3.1 → 1.3.2-1300478
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/README.md +75 -75
- package/dist/apiUtils.d.ts +46 -46
- package/dist/apiUtils.js +922 -922
- package/dist/application/index.d.ts +7 -7
- package/dist/application/index.js +27 -27
- package/dist/application/modules/core/document/DocumentService.d.ts +22 -22
- package/dist/application/modules/core/document/DocumentService.js +254 -254
- package/dist/application/modules/core/document/document.constants.d.ts +15 -15
- package/dist/application/modules/core/document/document.constants.js +21 -21
- package/dist/application/modules/core/document/document.domain.d.ts +7 -7
- package/dist/application/modules/core/document/document.domain.js +1 -1
- package/dist/application/modules/core/document/document.types.d.ts +17 -17
- package/dist/application/modules/core/document/document.types.js +1 -1
- package/dist/application/modules/core/document/document.utils.d.ts +3 -3
- package/dist/application/modules/core/document/document.utils.js +58 -58
- package/dist/application/modules/core/document/index.d.ts +3 -3
- package/dist/application/modules/core/document/index.js +1 -1
- package/dist/application/modules/core/face/FaceService.d.ts +33 -33
- package/dist/application/modules/core/face/FaceService.js +228 -221
- package/dist/application/modules/core/face/FaceService.js.map +1 -1
- package/dist/application/modules/core/face/face.constants.d.ts +53 -53
- package/dist/application/modules/core/face/face.constants.js +53 -53
- package/dist/application/modules/core/face/face.domain.d.ts +10 -10
- package/dist/application/modules/core/face/face.domain.js +1 -1
- package/dist/application/modules/core/face/face.types.d.ts +41 -38
- package/dist/application/modules/core/face/face.types.js +1 -1
- package/dist/application/modules/core/face/face.utils.d.ts +15 -15
- package/dist/application/modules/core/face/face.utils.js +101 -101
- package/dist/application/modules/core/face/index.d.ts +3 -3
- package/dist/application/modules/core/face/index.js +1 -1
- package/dist/application/modules/global/shared.constants.d.ts +2 -2
- package/dist/application/modules/global/shared.constants.js +2 -2
- package/dist/application/modules/global/shared.utils.d.ts +25 -25
- package/dist/application/modules/global/shared.utils.js +100 -100
- package/dist/application/modules/global/shared.utils.js.map +1 -1
- package/dist/application/modules/internal/feature-flag/LDFeatureFlagService.d.ts +9 -0
- package/dist/application/modules/internal/feature-flag/LDFeatureFlagService.js +32 -0
- package/dist/application/modules/internal/feature-flag/LDFeatureFlagService.js.map +1 -0
- package/dist/application/modules/internal/feature-flag/feature-flag-init.d.ts +11 -0
- package/dist/application/modules/internal/feature-flag/feature-flag-init.js +24 -0
- package/dist/application/modules/internal/feature-flag/feature-flag-init.js.map +1 -0
- package/dist/application/modules/internal/feature-flag/feature-flag.domain.d.ts +10 -0
- package/dist/application/modules/internal/feature-flag/feature-flag.domain.js +7 -0
- package/dist/application/modules/internal/feature-flag/feature-flag.domain.js.map +1 -0
- package/dist/application/modules/internal/feature-flag/featureFlagInit.d.ts +11 -0
- package/dist/application/modules/internal/feature-flag/featureFlagInit.js +44 -0
- package/dist/application/modules/internal/feature-flag/featureFlagInit.js.map +1 -0
- package/dist/application/modules/internal/feature-flag/index.d.ts +2 -0
- package/dist/application/modules/internal/feature-flag/index.js +3 -0
- package/dist/application/modules/internal/feature-flag/index.js.map +1 -0
- package/dist/application/modules/internal/shared/index.d.ts +2 -0
- package/dist/application/modules/internal/shared/index.js +3 -0
- package/dist/application/modules/internal/shared/index.js.map +1 -0
- package/dist/application/modules/internal/shared/shared.constants.d.ts +2 -0
- package/dist/application/modules/internal/shared/shared.constants.js +3 -0
- package/dist/application/modules/internal/shared/shared.constants.js.map +1 -0
- package/dist/application/modules/internal/shared/shared.utils.d.ts +44 -0
- package/dist/application/modules/internal/shared/shared.utils.js +204 -0
- package/dist/application/modules/internal/shared/shared.utils.js.map +1 -0
- package/dist/application/modules/internal/wasm-orchestrator/WasmOrchestratorService.d.ts +28 -0
- package/dist/application/modules/internal/wasm-orchestrator/WasmOrchestratorService.js +380 -0
- package/dist/application/modules/internal/wasm-orchestrator/WasmOrchestratorService.js.map +1 -0
- package/dist/application/modules/internal/wasm-orchestrator/index.d.ts +6 -0
- package/dist/application/modules/internal/wasm-orchestrator/index.js +9 -0
- package/dist/application/modules/internal/wasm-orchestrator/index.js.map +1 -0
- package/dist/application/modules/internal/wasm-orchestrator/wasm-orchestrator.constants.d.ts +28 -0
- package/dist/application/modules/internal/wasm-orchestrator/wasm-orchestrator.constants.js +35 -0
- package/dist/application/modules/internal/wasm-orchestrator/wasm-orchestrator.constants.js.map +1 -0
- package/dist/application/modules/internal/wasm-orchestrator/wasm-orchestrator.domain.d.ts +51 -0
- package/dist/application/modules/internal/wasm-orchestrator/wasm-orchestrator.domain.js +2 -0
- package/dist/application/modules/internal/wasm-orchestrator/wasm-orchestrator.domain.js.map +1 -0
- package/dist/application/modules/internal/wasm-orchestrator/wasm-orchestrator.types.d.ts +142 -0
- package/dist/application/modules/internal/wasm-orchestrator/wasm-orchestrator.types.js +2 -0
- package/dist/application/modules/internal/wasm-orchestrator/wasm-orchestrator.types.js.map +1 -0
- package/dist/application/modules/internal/wasm-orchestrator/wasm-orchestrator.utils.d.ts +86 -0
- package/dist/application/modules/internal/wasm-orchestrator/wasm-orchestrator.utils.js +201 -0
- package/dist/application/modules/internal/wasm-orchestrator/wasm-orchestrator.utils.js.map +1 -0
- package/dist/application/modules/support/camera/CameraServiceFactory.d.ts +10 -10
- package/dist/application/modules/support/camera/CameraServiceFactory.js +33 -33
- package/dist/application/modules/support/camera/CameraServiceFactory.js.map +1 -1
- package/dist/application/modules/support/camera/camera.constants.d.ts +9 -9
- package/dist/application/modules/support/camera/camera.constants.js +48 -48
- package/dist/application/modules/support/camera/camera.domain.d.ts +15 -15
- package/dist/application/modules/support/camera/camera.domain.js +1 -1
- package/dist/application/modules/support/camera/camera.types.d.ts +42 -42
- package/dist/application/modules/support/camera/camera.types.js +10 -10
- package/dist/application/modules/support/camera/camera.utils.d.ts +157 -157
- package/dist/application/modules/support/camera/camera.utils.js +623 -623
- package/dist/application/modules/support/camera/index.d.ts +24 -24
- package/dist/application/modules/support/camera/index.js +27 -27
- package/dist/application/modules/support/camera/services/BaseCameraService.d.ts +41 -41
- package/dist/application/modules/support/camera/services/BaseCameraService.js +278 -278
- package/dist/application/modules/support/camera/services/DesktopCameraService.d.ts +5 -5
- package/dist/application/modules/support/camera/services/DesktopCameraService.js +46 -46
- package/dist/application/modules/support/camera/services/FirefoxCameraService.d.ts +5 -5
- package/dist/application/modules/support/camera/services/FirefoxCameraService.js +46 -46
- package/dist/application/modules/support/camera/services/MacSafariCameraService.d.ts +5 -5
- package/dist/application/modules/support/camera/services/MacSafariCameraService.js +47 -47
- package/dist/application/modules/support/camera/services/MobileCameraService.d.ts +5 -5
- package/dist/application/modules/support/camera/services/MobileCameraService.js +133 -133
- package/dist/application/modules/support/engine/EngineService.d.ts +15 -0
- package/dist/application/modules/support/engine/EngineService.js +106 -0
- package/dist/application/modules/support/engine/EngineService.js.map +1 -0
- package/dist/application/modules/support/engine/engine.constants.d.ts +33 -0
- package/dist/application/modules/support/engine/engine.constants.js +35 -0
- package/dist/application/modules/support/engine/engine.constants.js.map +1 -0
- package/dist/application/modules/support/engine/engine.domain.d.ts +23 -0
- package/dist/application/modules/support/engine/engine.domain.js +2 -0
- package/dist/application/modules/support/engine/engine.domain.js.map +1 -0
- package/dist/application/modules/support/engine/engine.types.d.ts +32 -0
- package/dist/application/modules/support/engine/engine.types.js +2 -0
- package/dist/application/modules/support/engine/engine.types.js.map +1 -0
- package/dist/application/modules/support/engine/engine.utils.d.ts +65 -0
- package/dist/application/modules/support/engine/engine.utils.js +135 -0
- package/dist/application/modules/support/engine/engine.utils.js.map +1 -0
- package/dist/application/modules/support/engine/index.d.ts +3 -0
- package/dist/application/modules/support/engine/index.js +2 -0
- package/dist/application/modules/support/engine/index.js.map +1 -0
- package/dist/application/modules/support/permissions/PermissionsService.d.ts +55 -55
- package/dist/application/modules/support/permissions/PermissionsService.js +183 -183
- package/dist/application/modules/support/permissions/index.d.ts +4 -4
- package/dist/application/modules/support/permissions/index.js +2 -2
- package/dist/application/modules/support/permissions/permission.utils.d.ts +6 -6
- package/dist/application/modules/support/permissions/permission.utils.js +33 -33
- package/dist/application/modules/support/permissions/permissions.domain.d.ts +6 -6
- package/dist/application/modules/support/permissions/permissions.domain.js +1 -1
- package/dist/application/modules/support/permissions/permissions.types.d.ts +9 -9
- package/dist/application/modules/support/permissions/permissions.types.js +1 -1
- package/dist/application/modules/support/wasm/WasmService.d.ts +25 -25
- package/dist/application/modules/support/wasm/WasmService.js +156 -155
- package/dist/application/modules/support/wasm/WasmService.js.map +1 -1
- package/dist/application/modules/support/wasm/index.d.ts +6 -6
- package/dist/application/modules/support/wasm/index.js +8 -8
- package/dist/application/modules/support/wasm/wasm.constants.d.ts +78 -78
- package/dist/application/modules/support/wasm/wasm.constants.js +86 -86
- package/dist/application/modules/support/wasm/wasm.domain.d.ts +52 -52
- package/dist/application/modules/support/wasm/wasm.domain.js +1 -1
- package/dist/application/modules/support/wasm/wasm.types.d.ts +119 -118
- package/dist/application/modules/support/wasm/wasm.types.js +1 -1
- package/dist/application/modules/support/wasm/wasm.utils.d.ts +88 -88
- package/dist/application/modules/support/wasm/wasm.utils.js +243 -243
- package/dist/application/modules/support/wasm-orchestrator/WasmOrchestratorService.d.ts +28 -0
- package/dist/application/modules/support/wasm-orchestrator/WasmOrchestratorService.js +324 -0
- package/dist/application/modules/support/wasm-orchestrator/WasmOrchestratorService.js.map +1 -0
- package/dist/application/modules/support/wasm-orchestrator/index.d.ts +6 -0
- package/dist/application/modules/support/wasm-orchestrator/index.js +9 -0
- package/dist/application/modules/support/wasm-orchestrator/index.js.map +1 -0
- package/dist/application/modules/support/wasm-orchestrator/wasm-orchestrator.constants.d.ts +36 -0
- package/dist/application/modules/support/wasm-orchestrator/wasm-orchestrator.constants.js +44 -0
- package/dist/application/modules/support/wasm-orchestrator/wasm-orchestrator.constants.js.map +1 -0
- package/dist/application/modules/support/wasm-orchestrator/wasm-orchestrator.domain.d.ts +47 -0
- package/dist/application/modules/support/wasm-orchestrator/wasm-orchestrator.domain.js +2 -0
- package/dist/application/modules/support/wasm-orchestrator/wasm-orchestrator.domain.js.map +1 -0
- package/dist/application/modules/support/wasm-orchestrator/wasm-orchestrator.types.d.ts +136 -0
- package/dist/application/modules/support/wasm-orchestrator/wasm-orchestrator.types.js +2 -0
- package/dist/application/modules/support/wasm-orchestrator/wasm-orchestrator.types.js.map +1 -0
- package/dist/application/modules/support/wasm-orchestrator/wasm-orchestrator.utils.d.ts +91 -0
- package/dist/application/modules/support/wasm-orchestrator/wasm-orchestrator.utils.js +250 -0
- package/dist/application/modules/support/wasm-orchestrator/wasm-orchestrator.utils.js.map +1 -0
- package/dist/application/workers/index.d.ts +42 -42
- package/dist/application/workers/index.js +8 -8
- package/dist/application/workers/wasm/WasmWorkerService.d.ts +66 -0
- package/dist/application/workers/wasm/WasmWorkerService.js +801 -0
- package/dist/application/workers/wasm/WasmWorkerService.js.map +1 -0
- package/dist/application/workers/wasm/index.d.ts +4 -0
- package/dist/application/workers/wasm/index.js +9 -0
- package/dist/application/workers/wasm/index.js.map +1 -0
- package/dist/application/workers/wasm/wasm-worker.constants.d.ts +5 -0
- package/dist/application/workers/wasm/wasm-worker.constants.js +6 -0
- package/dist/application/workers/wasm/wasm-worker.constants.js.map +1 -0
- package/dist/application/workers/wasm/wasm-worker.domain.d.ts +99 -0
- package/dist/application/workers/wasm/wasm-worker.domain.js +2 -0
- package/dist/application/workers/wasm/wasm-worker.domain.js.map +1 -0
- package/dist/application/workers/wasm/wasm-worker.types.d.ts +88 -0
- package/dist/application/workers/wasm/wasm-worker.types.js +2 -0
- package/dist/application/workers/wasm/wasm-worker.types.js.map +1 -0
- package/dist/application/workers/wasm/wasm-worker.utils.d.ts +10 -0
- package/dist/application/workers/wasm/wasm-worker.utils.js +130 -0
- package/dist/application/workers/wasm/wasm-worker.utils.js.map +1 -0
- package/dist/buildConfig.d.ts +3 -0
- package/dist/buildConfig.js +7 -0
- package/dist/buildConfig.js.map +1 -0
- package/dist/cameraUtils.d.ts +77 -77
- package/dist/cameraUtils.js +361 -361
- package/dist/constants.d.ts +9 -9
- package/dist/constants.js +13 -13
- package/dist/createCallback.d.ts +56 -56
- package/dist/createCallback.js +332 -331
- package/dist/createCallback.js.map +1 -1
- package/dist/dbUtils.d.ts +14 -14
- package/dist/dbUtils.js +148 -148
- package/dist/envUtils.d.ts +4 -4
- package/dist/envUtils.js +16 -16
- package/dist/faceModule.d.ts +196 -196
- package/dist/faceModule.js +978 -978
- package/dist/featureFlagInit.d.ts +11 -0
- package/dist/featureFlagInit.js +44 -0
- package/dist/featureFlagInit.js.map +1 -0
- package/dist/index.d.ts +38 -38
- package/dist/index.js +82 -82
- package/dist/main.d.ts +30 -30
- package/dist/main.js +84 -84
- package/dist/types.d.ts +139 -139
- package/dist/types.js +77 -77
- package/dist/utils.d.ts +84 -84
- package/dist/utils.js +580 -580
- package/package.json +102 -102
- package/wasm/ultra/nosimd/{25.11.13-1357710 → 26.01.08-1300478}/privid_fhe_uber.js +18 -18
- package/wasm/ultra/nosimd/{25.11.13-1357710 → 26.01.08-1300478}/privid_fhe_uber.wasm +0 -0
- package/wasm/ultra/nosimd/version.json +2 -2
- package/wasm/ultra/simd/{25.11.13-1357710 → 26.01.08-1300478}/privid_fhe_uber.js +18 -18
- package/wasm/ultra/simd/{25.11.13-1357710 → 26.01.08-1300478}/privid_fhe_uber.wasm +0 -0
- package/wasm/ultra/simd/version.json +2 -2
- package/workers/comlink.min.js +7 -7
- package/workers/comlink.min.js.map +1 -1
- package/workers/wasm.worker.js +936 -924
package/README.md
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
<h1 align="center">Ultra Web SDK</h1>
|
|
2
|
-
|
|
3
|
-
#### <p align="center">Powered by Private Identity® <br/> [https://privateid.com](https://privateid.com)</p>
|
|
4
|
-
|
|
5
|
-
<b> Face Validation Status </b>
|
|
6
|
-
| Property | Description |
|
|
7
|
-
| -------- | ------------------------- |
|
|
8
|
-
| -100 | Internal error |
|
|
9
|
-
| -2 | Too many faces (we return it if special flag is set and we detect 2 or more faces on the frame) |
|
|
10
|
-
| -1 | Invalid image |
|
|
11
|
-
| 0 | Valid face |
|
|
12
|
-
| 1 | Image spoof (Reserved Not Used) |
|
|
13
|
-
| 2 | Video spoof (Reserved Not Used) |
|
|
14
|
-
| 3 | Too close |
|
|
15
|
-
| 4 | Too far |
|
|
16
|
-
| 5 | Close to right edge |
|
|
17
|
-
| 6 | Close to left edge |
|
|
18
|
-
| 7 | Close to top edge |
|
|
19
|
-
| 8 | Close to bottom edge |
|
|
20
|
-
| 9 | Too blurry |
|
|
21
|
-
| 10 | Eye glasses detected |
|
|
22
|
-
| 11 | Facemask detected |
|
|
23
|
-
| 12 | Chin too far left |
|
|
24
|
-
| 13 | Chin too far right |
|
|
25
|
-
| 14 | Chin too far up |
|
|
26
|
-
| 15 | Chin too far down |
|
|
27
|
-
| 16 | Image too dim |
|
|
28
|
-
| 17 | Image too bright |
|
|
29
|
-
| 18 | Face low confidence value |
|
|
30
|
-
| 19 | Invalid face background (Used only for FaceISO) |
|
|
31
|
-
| 20 | Eyes closed (disabled by default) |
|
|
32
|
-
| 21 | Mouth open (disabled by default) |
|
|
33
|
-
| 22 | Face tilted right |
|
|
34
|
-
| 23 | Face tilted left |
|
|
35
|
-
| 24 | Eyeglasses AND facemask detected (sort of 10 + 11 at the same time) |
|
|
36
|
-
| 25 | Face is not in the anti-spoof oval (it's used by our anti-spoof logic now) |
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<b> Antispoof status </b>
|
|
40
|
-
| Property | Description |
|
|
41
|
-
|----------|----------------------------|
|
|
42
|
-
| -100 | Invalid Image |
|
|
43
|
-
| -6 | Skip antispoof (Skipping process alternating frames) |
|
|
44
|
-
| -4 | Invalid Face |
|
|
45
|
-
| -3 | Face Too Close To Edge (Reserved Not Used) |
|
|
46
|
-
| -2 | Mobile Phone Detected (Reserved Not Used) |
|
|
47
|
-
| -1 | No Face Detected |
|
|
48
|
-
| 0 | Real |
|
|
49
|
-
| 1 | Spoof Detected |
|
|
50
|
-
|
|
51
|
-
<b> Document Validation Status </b>
|
|
52
|
-
| Property | Description |
|
|
53
|
-
|----------|----------------------------|
|
|
54
|
-
| -2 | Internal Error |
|
|
55
|
-
| -1 | Document Not Detected |
|
|
56
|
-
| 0 | Valid Document |
|
|
57
|
-
| 1 | Low confidence score (Reserved Not Used) |
|
|
58
|
-
| 2 | Document is blurry |
|
|
59
|
-
| 3 | Document too close |
|
|
60
|
-
| 4 | Document too far |
|
|
61
|
-
| 5 | Document too far left |
|
|
62
|
-
| 6 | Document too far right |
|
|
63
|
-
| 7 | Document too far up |
|
|
64
|
-
| 8 | Document too far down |
|
|
65
|
-
| 9 | Fingers over document |
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
<b> Barcode Validation Status </b>
|
|
69
|
-
| Property | Description |
|
|
70
|
-
|----------|----------------------------|
|
|
71
|
-
| -1 | Barcode not detected |
|
|
72
|
-
| 0 | Barcode found and parsed |
|
|
73
|
-
| 3 | Unsupported barcode detected |
|
|
74
|
-
| 4 | Unable to parse barcode data |
|
|
75
|
-
|
|
1
|
+
<h1 align="center">Ultra Web SDK</h1>
|
|
2
|
+
|
|
3
|
+
#### <p align="center">Powered by Private Identity® <br/> [https://privateid.com](https://privateid.com)</p>
|
|
4
|
+
|
|
5
|
+
<b> Face Validation Status </b>
|
|
6
|
+
| Property | Description |
|
|
7
|
+
| -------- | ------------------------- |
|
|
8
|
+
| -100 | Internal error |
|
|
9
|
+
| -2 | Too many faces (we return it if special flag is set and we detect 2 or more faces on the frame) |
|
|
10
|
+
| -1 | Invalid image |
|
|
11
|
+
| 0 | Valid face |
|
|
12
|
+
| 1 | Image spoof (Reserved Not Used) |
|
|
13
|
+
| 2 | Video spoof (Reserved Not Used) |
|
|
14
|
+
| 3 | Too close |
|
|
15
|
+
| 4 | Too far |
|
|
16
|
+
| 5 | Close to right edge |
|
|
17
|
+
| 6 | Close to left edge |
|
|
18
|
+
| 7 | Close to top edge |
|
|
19
|
+
| 8 | Close to bottom edge |
|
|
20
|
+
| 9 | Too blurry |
|
|
21
|
+
| 10 | Eye glasses detected |
|
|
22
|
+
| 11 | Facemask detected |
|
|
23
|
+
| 12 | Chin too far left |
|
|
24
|
+
| 13 | Chin too far right |
|
|
25
|
+
| 14 | Chin too far up |
|
|
26
|
+
| 15 | Chin too far down |
|
|
27
|
+
| 16 | Image too dim |
|
|
28
|
+
| 17 | Image too bright |
|
|
29
|
+
| 18 | Face low confidence value |
|
|
30
|
+
| 19 | Invalid face background (Used only for FaceISO) |
|
|
31
|
+
| 20 | Eyes closed (disabled by default) |
|
|
32
|
+
| 21 | Mouth open (disabled by default) |
|
|
33
|
+
| 22 | Face tilted right |
|
|
34
|
+
| 23 | Face tilted left |
|
|
35
|
+
| 24 | Eyeglasses AND facemask detected (sort of 10 + 11 at the same time) |
|
|
36
|
+
| 25 | Face is not in the anti-spoof oval (it's used by our anti-spoof logic now) |
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<b> Antispoof status </b>
|
|
40
|
+
| Property | Description |
|
|
41
|
+
|----------|----------------------------|
|
|
42
|
+
| -100 | Invalid Image |
|
|
43
|
+
| -6 | Skip antispoof (Skipping process alternating frames) |
|
|
44
|
+
| -4 | Invalid Face |
|
|
45
|
+
| -3 | Face Too Close To Edge (Reserved Not Used) |
|
|
46
|
+
| -2 | Mobile Phone Detected (Reserved Not Used) |
|
|
47
|
+
| -1 | No Face Detected |
|
|
48
|
+
| 0 | Real |
|
|
49
|
+
| 1 | Spoof Detected |
|
|
50
|
+
|
|
51
|
+
<b> Document Validation Status </b>
|
|
52
|
+
| Property | Description |
|
|
53
|
+
|----------|----------------------------|
|
|
54
|
+
| -2 | Internal Error |
|
|
55
|
+
| -1 | Document Not Detected |
|
|
56
|
+
| 0 | Valid Document |
|
|
57
|
+
| 1 | Low confidence score (Reserved Not Used) |
|
|
58
|
+
| 2 | Document is blurry |
|
|
59
|
+
| 3 | Document too close |
|
|
60
|
+
| 4 | Document too far |
|
|
61
|
+
| 5 | Document too far left |
|
|
62
|
+
| 6 | Document too far right |
|
|
63
|
+
| 7 | Document too far up |
|
|
64
|
+
| 8 | Document too far down |
|
|
65
|
+
| 9 | Fingers over document |
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
<b> Barcode Validation Status </b>
|
|
69
|
+
| Property | Description |
|
|
70
|
+
|----------|----------------------------|
|
|
71
|
+
| -1 | Barcode not detected |
|
|
72
|
+
| 0 | Barcode found and parsed |
|
|
73
|
+
| 3 | Unsupported barcode detected |
|
|
74
|
+
| 4 | Unable to parse barcode data |
|
|
75
|
+
|
package/dist/apiUtils.d.ts
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
export declare const createDocumentDL: ({ baseUrl, token }: {
|
|
2
|
-
baseUrl: string;
|
|
3
|
-
token: string;
|
|
4
|
-
}) => Promise<any>;
|
|
5
|
-
export declare const updateDocumentDetails: ({ baseUrl, token, documentId, params, }: {
|
|
6
|
-
baseUrl: string;
|
|
7
|
-
token: string;
|
|
8
|
-
documentId: string;
|
|
9
|
-
params: {
|
|
10
|
-
encryptedKey: string;
|
|
11
|
-
iv: string;
|
|
12
|
-
gcmAad: string;
|
|
13
|
-
gcmTag: string;
|
|
14
|
-
encrptedMessage: string;
|
|
15
|
-
};
|
|
16
|
-
}) => Promise<any>;
|
|
17
|
-
export declare enum documentImageTypeEnum {
|
|
18
|
-
FRONTDLORIGINAL = "front",
|
|
19
|
-
FRONTDLHEADSHOT = "front_mugshot",
|
|
20
|
-
FRONTDLCROPPED = "front_cropped_document",
|
|
21
|
-
BACKDLORIGINAL = "back",
|
|
22
|
-
BACKDLCROPPED = "back_cropped_document",
|
|
23
|
-
BACKDLBARCODE = "back_barcode"
|
|
24
|
-
}
|
|
25
|
-
interface uploadDocumentImageParams {
|
|
26
|
-
type: documentImageTypeEnum;
|
|
27
|
-
data: string;
|
|
28
|
-
}
|
|
29
|
-
export declare const uploadDocumentImage: ({ baseUrl, token, documentId, params, }: {
|
|
30
|
-
baseUrl: string;
|
|
31
|
-
token: string;
|
|
32
|
-
documentId: string;
|
|
33
|
-
params: uploadDocumentImageParams;
|
|
34
|
-
}) => Promise<any>;
|
|
35
|
-
export declare const updateUserDetails: ({ baseUrl, token, params, }: {
|
|
36
|
-
baseUrl: string;
|
|
37
|
-
token: string;
|
|
38
|
-
params: {
|
|
39
|
-
encryptedKey: string;
|
|
40
|
-
iv: string;
|
|
41
|
-
gcmAad: string;
|
|
42
|
-
gcmTag: string;
|
|
43
|
-
encrptedMessage: string;
|
|
44
|
-
};
|
|
45
|
-
}) => Promise<any>;
|
|
46
|
-
export {};
|
|
1
|
+
export declare const createDocumentDL: ({ baseUrl, token }: {
|
|
2
|
+
baseUrl: string;
|
|
3
|
+
token: string;
|
|
4
|
+
}) => Promise<any>;
|
|
5
|
+
export declare const updateDocumentDetails: ({ baseUrl, token, documentId, params, }: {
|
|
6
|
+
baseUrl: string;
|
|
7
|
+
token: string;
|
|
8
|
+
documentId: string;
|
|
9
|
+
params: {
|
|
10
|
+
encryptedKey: string;
|
|
11
|
+
iv: string;
|
|
12
|
+
gcmAad: string;
|
|
13
|
+
gcmTag: string;
|
|
14
|
+
encrptedMessage: string;
|
|
15
|
+
};
|
|
16
|
+
}) => Promise<any>;
|
|
17
|
+
export declare enum documentImageTypeEnum {
|
|
18
|
+
FRONTDLORIGINAL = "front",
|
|
19
|
+
FRONTDLHEADSHOT = "front_mugshot",
|
|
20
|
+
FRONTDLCROPPED = "front_cropped_document",
|
|
21
|
+
BACKDLORIGINAL = "back",
|
|
22
|
+
BACKDLCROPPED = "back_cropped_document",
|
|
23
|
+
BACKDLBARCODE = "back_barcode"
|
|
24
|
+
}
|
|
25
|
+
interface uploadDocumentImageParams {
|
|
26
|
+
type: documentImageTypeEnum;
|
|
27
|
+
data: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const uploadDocumentImage: ({ baseUrl, token, documentId, params, }: {
|
|
30
|
+
baseUrl: string;
|
|
31
|
+
token: string;
|
|
32
|
+
documentId: string;
|
|
33
|
+
params: uploadDocumentImageParams;
|
|
34
|
+
}) => Promise<any>;
|
|
35
|
+
export declare const updateUserDetails: ({ baseUrl, token, params, }: {
|
|
36
|
+
baseUrl: string;
|
|
37
|
+
token: string;
|
|
38
|
+
params: {
|
|
39
|
+
encryptedKey: string;
|
|
40
|
+
iv: string;
|
|
41
|
+
gcmAad: string;
|
|
42
|
+
gcmTag: string;
|
|
43
|
+
encrptedMessage: string;
|
|
44
|
+
};
|
|
45
|
+
}) => Promise<any>;
|
|
46
|
+
export {};
|