@incodetech/core 2.0.1 → 2.1.0-rc.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/dist/{BrowserStorageProvider-CuOW1Er2.esm.js → BrowserStorageProvider-BpJM-gIl.esm.js} +8 -1
- package/dist/{IpifyProvider-D7jx52AL.esm.js → IpifyProvider-D4LWD15E.esm.js} +28 -0
- package/dist/{MotionSensorProvider-4v7xkqAp.esm.js → MotionSensorProvider-Bx7Mpzt0.esm.js} +63 -13
- package/dist/{OpenViduRecordingProvider-CMu6XVdc.esm.js → OpenViduRecordingProvider-O4GjBseO.esm.js} +1 -1
- package/dist/StateMachine-BC_nGvrc.d.ts +2 -0
- package/dist/StreamCanvasCapture-ImiDQdVA.esm.js +118 -0
- package/dist/StreamCanvasCapture-yyl20qd9.d.ts +152 -0
- package/dist/{BaseWasmProvider-C_DLEI40.esm.js → WasmUtilProvider-CiEN7Gjn.esm.js} +183 -11
- package/dist/{addressSearch-BpTbTWCa.esm.js → addressSearch-DvmWXKZg.esm.js} +63 -57
- package/dist/{ae-signature-DDDZmWXj.esm.js → ae-signature-BFZta3TZ.esm.js} +1 -1
- package/dist/ae-signature.d.ts +3 -3
- package/dist/ae-signature.esm.js +6 -5
- package/dist/antifraud.d.ts +5 -46
- package/dist/antifraud.esm.js +6 -43
- package/dist/antifraudManager-CkV4u-LE.esm.js +55 -0
- package/dist/antifraudManager-CznnhyvD.d.ts +63 -0
- package/dist/{antifraudStateMachine-O0TMf6yc.esm.js → antifraudStateMachine-Ccrb-Jxc.esm.js} +2 -2
- package/dist/apiError-B-j-gyDx.esm.js +51 -0
- package/dist/authentication.d.ts +13 -11
- package/dist/authentication.esm.js +26 -22
- package/dist/{authenticationManager-C83GNIhl.d.ts → authenticationManager-CIVY80H9.d.ts} +4 -4
- package/dist/{authenticationManager-5M-fKzXx.esm.js → authenticationManager-ZNotsWnC.esm.js} +6 -6
- package/dist/{authenticationStateMachine-BMZqatiF.esm.js → authenticationStateMachine-DksVbF_H.esm.js} +21 -9
- package/dist/{backCameraStream-DMdMeGk2.esm.js → backCameraStream-D7Wo4Nbx.esm.js} +95 -7
- package/dist/{session-CrkWAs-q.esm.js → browserSimulation-B1dWiXp7.esm.js} +61 -476
- package/dist/camera.d.ts +4 -3
- package/dist/camera.esm.js +4 -3
- package/dist/canvas-SKcRBxsk.esm.js +230 -0
- package/dist/consent.d.ts +4 -398
- package/dist/consent.esm.js +6 -77
- package/dist/consentManager-BLd51QiW.d.ts +419 -0
- package/dist/consentManager-BYo9Nu1r.esm.js +90 -0
- package/dist/{consentStateMachine-CCT-B60O.esm.js → consentStateMachine-BG3yL8aC.esm.js} +9 -6
- package/dist/cpf-ocr.d.ts +4 -199
- package/dist/cpf-ocr.esm.js +8 -177
- package/dist/cpfOcrManager-BnieFXuG.d.ts +216 -0
- package/dist/cpfOcrManager-sSKegxox.esm.js +190 -0
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +4 -4
- package/dist/curp-validation.d.ts +8 -158
- package/dist/curp-validation.esm.js +6 -108
- package/dist/curpValidationManager-CFem6zP9.esm.js +122 -0
- package/dist/curpValidationManager-RttixpIc.d.ts +184 -0
- package/dist/{curpValidationStateMachine-CitWLr2c.esm.js → curpValidationStateMachine-B7V_qp66.esm.js} +20 -13
- package/dist/custom-fields.d.ts +2 -2
- package/dist/custom-fields.esm.js +4 -4
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +4 -41
- package/dist/customWatchlistStateMachine-HmFybXLX.esm.js +50 -0
- package/dist/{deepsightLoader-Cm4JIT_z.esm.js → deepsightLoader-65k1Appi.esm.js} +19 -10
- package/dist/{deepsightService-CEVxzehb.d.ts → deepsightService-B7ShOkWL.d.ts} +8 -160
- package/dist/deepsightService-CrHmvx8X.esm.js +276 -0
- package/dist/device.esm.js +4 -3
- package/dist/document-capture.d.ts +995 -86
- package/dist/document-capture.esm.js +34 -8
- package/dist/document-upload.d.ts +47 -47
- package/dist/document-upload.esm.js +7 -7
- package/dist/{documentCaptureStateMachine-BqzTDy9k.esm.js → documentCaptureStateMachine-WYV1r9le.esm.js} +90 -6
- package/dist/dynamic-forms.d.ts +20 -5
- package/dist/dynamic-forms.esm.js +150 -61
- package/dist/ekyb.d.ts +32 -13
- package/dist/ekyb.esm.js +25 -15
- package/dist/{ekybStateMachine-CyMx_kg-.esm.js → ekybStateMachine-aYixw2sL.esm.js} +319 -207
- package/dist/ekyc.d.ts +10 -78
- package/dist/ekyc.esm.js +17 -12
- package/dist/{ekycStateMachine-oeO0Iekd.esm.js → ekycStateMachine-CXbpaJJn.esm.js} +201 -113
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +5 -4
- package/dist/{electronicSignatureManager-D9OHzTpG.esm.js → electronicSignatureManager-BaECdJ1u.esm.js} +91 -23
- package/dist/email.d.ts +4 -3
- package/dist/email.esm.js +6 -5
- package/dist/{emailManager-wAV0LE-H.esm.js → emailManager--D5G3ChB.esm.js} +30 -7
- package/dist/{emailManager-DIfnS5g1.d.ts → emailManager-lAzDoQOs.d.ts} +66 -8
- package/dist/{emailStateMachine-DOf4j58N.esm.js → emailStateMachine-CxTOMAjC.esm.js} +46 -11
- package/dist/{endpoints-CnN3SyDa.esm.js → endpoints-BeTK0Mlt.esm.js} +6 -3
- package/dist/{events-D6-e4vok.esm.js → events-Dvvriq9l.esm.js} +3 -1
- package/dist/events.d.ts +2 -0
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +32 -16
- package/dist/extensibility.esm.js +55 -33
- package/dist/face-match.d.ts +32 -2
- package/dist/face-match.esm.js +5 -5
- package/dist/{faceCaptureManagerFactory-yqtpxjnN.d.ts → faceCaptureManagerFactory-C_hRHx8a.d.ts} +35 -11
- package/dist/{faceCaptureManagerFactory-Dh2PdGlF.esm.js → faceCaptureManagerFactory-kqbUqtrr.esm.js} +21 -5
- package/dist/{faceCaptureSetup-B3faSpYA.esm.js → faceCaptureSetup-CtvHWd3x.esm.js} +68 -183
- package/dist/{faceMatchStateMachine-DNFrxTFS.esm.js → faceMatchStateMachine-DdGXUBnx.esm.js} +60 -6
- package/dist/field-comparison.d.ts +4 -0
- package/dist/field-comparison.esm.js +7 -0
- package/dist/fieldComparisonManager-Bu5TaSr3.d.ts +76 -0
- package/dist/fieldComparisonManager-COGI2ARD.esm.js +162 -0
- package/dist/fiscal-qr.d.ts +59 -0
- package/dist/fiscal-qr.esm.js +323 -0
- package/dist/flow-events.d.ts +6 -5
- package/dist/flow.d.ts +23 -15
- package/dist/flow.esm.js +63 -17
- package/dist/flowCompletionService-BdR2cGgB.d.ts +19 -0
- package/dist/flowCompletionService-DdGojV9K.esm.js +20 -0
- package/dist/{flowServices-PiNsxLfK.esm.js → flowServices-BTuHLHVr.esm.js} +10 -5
- package/dist/geolocation.d.ts +4 -4
- package/dist/geolocation.esm.js +6 -6
- package/dist/{geolocationStateMachine-asasuHY2.esm.js → geolocationStateMachine-Dvh7X0wF.esm.js} +5 -5
- package/dist/getBrowser-C8DP7oTB.esm.js +8 -0
- package/dist/{getBrowser-BSXUTWXw.esm.js → getDeviceClass-C0olyNFS.esm.js} +1 -8
- package/dist/{getDeviceClass-BSntT9_j.esm.js → getDeviceClass-C8Do2qYu.esm.js} +1 -1
- package/dist/government-validation.d.ts +28 -8
- package/dist/government-validation.esm.js +19 -8
- package/dist/{governmentValidationStateMachine-BDDYrJTo.esm.js → governmentValidationStateMachine-DcJ-BfsC.esm.js} +35 -77
- package/dist/home.d.ts +15 -14
- package/dist/home.esm.js +2 -2
- package/dist/http-Cai3IoLS.esm.js +0 -0
- package/dist/http.esm.js +1 -0
- package/dist/id-ocr.d.ts +54 -54
- package/dist/id-ocr.esm.js +5 -5
- package/dist/id-verification.d.ts +27 -27
- package/dist/id-verification.esm.js +4 -4
- package/dist/id.d.ts +12 -10
- package/dist/id.esm.js +36 -26
- package/dist/{idCaptureManager-Fyd0eam-.d.ts → idCaptureManager-D-QYESvF.d.ts} +28 -14
- package/dist/{idCaptureManager-D0ktk7Hh.esm.js → idCaptureManager-DGVv5l1_.esm.js} +22 -7
- package/dist/{idCaptureStateMachine-dwlBUjbC.esm.js → idCaptureStateMachine-DHi7HydI.esm.js} +172 -123
- package/dist/{idOcrStateMachine-YbjjC_Gg.esm.js → idOcrStateMachine-CDQ5d_VM.esm.js} +4 -4
- package/dist/{idVerificationStateMachine-xbw9HP1Z.esm.js → idVerificationStateMachine-kRxwImzO.esm.js} +2 -2
- package/dist/identity-reuse.d.ts +4 -530
- package/dist/identity-reuse.esm.js +8 -274
- package/dist/identityReuseManager-C6n_97dw.esm.js +95 -0
- package/dist/identityReuseManager-DwLtVzUn.d.ts +428 -0
- package/dist/identityReuseStateMachine-BfE5YiEr.esm.js +148 -0
- package/dist/{index-BcRG8rtJ.d.ts → index-B5hPA0Bg.d.ts} +2 -2
- package/dist/{index-ChHWNH48.d.ts → index-B9NysVDB.d.ts} +469 -195
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +10 -8
- package/dist/{invokeOnCaptureCallback-rc6kBHo5.esm.js → invokeOnCaptureCallback-ygByVdnn.esm.js} +1 -1
- package/dist/{lib-BB0B_qQX.esm.js → lib-BY67lgbq.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +8 -412
- package/dist/mandatory-consent.esm.js +6 -76
- package/dist/mandatoryConsentManager-H6D18cZB.esm.js +89 -0
- package/dist/mandatoryConsentManager-KfIlURRY.d.ts +429 -0
- package/dist/{mandatoryConsentStateMachine-Cnco1jvn.esm.js → mandatoryConsentStateMachine-DtQNW1ji.esm.js} +6 -6
- package/dist/openviduLazy-B8L--0oe.esm.js +3 -0
- package/dist/{openviduLazy-Cok70ZSg.esm.js → openviduLazy-Dh14JNJc.esm.js} +2 -2
- package/dist/otp-CGMdUzBC.esm.js +33 -0
- package/dist/otp-DF5A0sFx.d.ts +8 -0
- package/dist/permissionGuards-C1ispV96.esm.js +23 -0
- package/dist/permissionServices-CG3bMSfG.esm.js +130 -0
- package/dist/phone.d.ts +4 -3
- package/dist/phone.esm.js +6 -5
- package/dist/{phoneManager-DAJbGhlY.esm.js → phoneManager-BmF-0Ez4.esm.js} +30 -7
- package/dist/{phoneManager-B6M30hKE.d.ts → phoneManager-fPmIBYQK.d.ts} +65 -7
- package/dist/{phoneStateMachine-CuPARRaT.esm.js → phoneStateMachine-BiV0yoEx.esm.js} +46 -11
- package/dist/{qe-signature-DFo_Cc-I.esm.js → qe-signature-CUYPcHVo.esm.js} +1 -1
- package/dist/qe-signature.d.ts +3 -3
- package/dist/qe-signature.esm.js +6 -5
- package/dist/{recordingService-Ig2UgbLv.esm.js → recordingService-Bn9EdCmz.esm.js} +197 -179
- package/dist/redirect-to-mobile.d.ts +6 -104
- package/dist/redirect-to-mobile.esm.js +6 -99
- package/dist/redirectToMobileManager-BNe3IzC_.d.ts +178 -0
- package/dist/redirectToMobileManager-Dy3t7o0C.esm.js +159 -0
- package/dist/{redirectToMobileStateMachine-BOEqe46A.esm.js → redirectToMobileStateMachine-DyAdRxfP.esm.js} +28 -19
- package/dist/{runChildModule-CqqwqAkW.esm.js → runChildModule-CuoHZ1cx.esm.js} +35 -3
- package/dist/selfie.d.ts +13 -11
- package/dist/selfie.esm.js +27 -23
- package/dist/{selfieManager-Duisl7qN.esm.js → selfieManager-BjCoKRy0.esm.js} +6 -6
- package/dist/{selfieManager-D0lSgd-J.d.ts → selfieManager-dUbKRzOh.d.ts} +4 -4
- package/dist/{selfieStateMachine-D76whWEf.esm.js → selfieStateMachine-b4F2q9zw.esm.js} +5 -3
- package/dist/session-DoVb-OcB.esm.js +152 -0
- package/dist/session.d.ts +37 -5
- package/dist/session.esm.js +12 -7
- package/dist/sessionInitializer-B8H5MsXM.esm.js +366 -0
- package/dist/{setup-C5AITV8m.d.ts → setup-BbkprdVv.d.ts} +57 -6
- package/dist/{setup-DPPAxmXf.esm.js → setup-BqEfrdja.esm.js} +162 -24
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +4 -4
- package/dist/{signatureStateMachine-B5-QVUve.esm.js → signatureStateMachine-C5qqYLRz.esm.js} +3 -3
- package/dist/stats-BMNUG1AU.esm.js +41 -0
- package/dist/stats.d.ts +13 -2
- package/dist/stats.esm.js +3 -2
- package/dist/trust-graph.d.ts +33 -4
- package/dist/trust-graph.esm.js +21 -15
- package/dist/{types-CFV9G_7j.d.ts → types-Bj9hdFjU.d.ts} +1 -1
- package/dist/{types-BP1m8VRw.d.ts → types-DOUhndhT.d.ts} +14 -2
- package/dist/types-DsnEVMhr.esm.js +34 -0
- package/dist/types-DvGZI7BF.d.ts +131 -0
- package/dist/{types-B06Ypu2F.d.ts → types-NuT8ftBV.d.ts} +1 -1
- package/dist/types-ya0LN_MX.d.ts +5 -0
- package/dist/{warmup-CEcppFiS.d.ts → warmup-Dg8Lh-50.d.ts} +8 -0
- package/dist/wasm.d.ts +6 -4
- package/dist/wasm.esm.js +11 -9
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +5 -73
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +4 -41
- package/dist/watchlistForBusinessStateMachine-DMl8j2Ov.esm.js +74 -0
- package/dist/watchlistStateMachine-DmQlqI6L.esm.js +50 -0
- package/dist/workflow.d.ts +150 -97
- package/dist/workflow.esm.js +156 -80
- package/package.json +19 -1
- package/dist/StateMachine-BCQrZJhf.d.ts +0 -2
- package/dist/WasmUtilProvider-j98OJf-S.esm.js +0 -114
- package/dist/browserSimulation-gxD8cSpM.esm.js +0 -20
- package/dist/deepsightService-O74l4Y__.esm.js +0 -489
- package/dist/displayErrors-DqJ_IbsG.d.ts +0 -39
- package/dist/flowCompletionService-DhkT4SRY.d.ts +0 -10
- package/dist/flowCompletionService-P54yzGvA.esm.js +0 -13
- package/dist/openviduLazy-Cm0XFh_v.esm.js +0 -3
- package/dist/permissionServices-D_i6nzEw.esm.js +0 -50
- package/dist/stats-CIfiPzb1.esm.js +0 -16
- package/dist/types-CAD4va6a.d.ts +0 -5
- package/dist/watchlistServices-DMbUhkBX.esm.js +0 -12
- /package/dist/{Actor-CI32dTbG.d.ts → Actor-Y0_Fj-KL.d.ts} +0 -0
- /package/dist/{ITimerCapability-C67ZRskg.esm.js → ITimerCapability-CB0I1Uf2.esm.js} +0 -0
- /package/dist/{Manager-C8PrhBOx.d.ts → Manager-BHn8wH8K.d.ts} +0 -0
- /package/dist/{camera-PA2Ljri3.esm.js → camera-DJWm3V4g.esm.js} +0 -0
- /package/dist/{camera-DBSxa6ML.d.ts → camera-SRBpPq2X.d.ts} +0 -0
- /package/dist/{chunk-CRF6K_H_.esm.js → chunk-CMUKZ2uL.esm.js} +0 -0
- /package/dist/{cpf-PPz2Njto.esm.js → cpf-BRzggV8G.esm.js} +0 -0
- /package/dist/{dateUtils-UoN5xswP.esm.js → dateUtils-AksLQmgV.esm.js} +0 -0
- /package/dist/{platform-CfrjKhmi.esm.js → platform-SKvEfCBh.esm.js} +0 -0
- /package/dist/{xstate.esm-B70JrNqo.esm.js → xstate.esm-C9wncMQa.esm.js} +0 -0
package/dist/workflow.esm.js
CHANGED
|
@@ -1,51 +1,63 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./WasmUtilProvider-CiEN7Gjn.esm.js";
|
|
2
2
|
import "./BrowserTimerProvider-DhNc_x02.esm.js";
|
|
3
3
|
import { t as api } from "./api-CESGtpbH.esm.js";
|
|
4
|
-
import { o as createManagerInstrumentation } from "./events-
|
|
5
|
-
import { t as endpoints } from "./endpoints-
|
|
6
|
-
import
|
|
7
|
-
import "./IpifyProvider-
|
|
8
|
-
import "./browserSimulation-
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import "./
|
|
12
|
-
import { t as
|
|
13
|
-
import "./
|
|
14
|
-
import "./
|
|
15
|
-
import "./
|
|
16
|
-
import "./
|
|
17
|
-
import "./
|
|
18
|
-
import "./
|
|
19
|
-
import "./
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
24
|
-
import "./
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import "./
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import "./
|
|
32
|
-
import "./
|
|
33
|
-
import
|
|
34
|
-
import { t as
|
|
35
|
-
import { t as
|
|
36
|
-
import { t as
|
|
37
|
-
import { t as
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import { t as
|
|
42
|
-
import { t as
|
|
43
|
-
import
|
|
44
|
-
import { t as
|
|
45
|
-
import { t as
|
|
46
|
-
import "./
|
|
47
|
-
import {
|
|
48
|
-
import { t as
|
|
4
|
+
import { h as addEvent, o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
|
|
5
|
+
import { t as endpoints } from "./endpoints-BeTK0Mlt.esm.js";
|
|
6
|
+
import "./stats-BMNUG1AU.esm.js";
|
|
7
|
+
import "./IpifyProvider-D4LWD15E.esm.js";
|
|
8
|
+
import "./browserSimulation-B1dWiXp7.esm.js";
|
|
9
|
+
import { n as getSessionFingerprintResult, r as initializeSession } from "./sessionInitializer-B8H5MsXM.esm.js";
|
|
10
|
+
import "./platform-SKvEfCBh.esm.js";
|
|
11
|
+
import "./getBrowser-C8DP7oTB.esm.js";
|
|
12
|
+
import { a as fromPromise, c as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-C9wncMQa.esm.js";
|
|
13
|
+
import { n as toIncodeApiError } from "./apiError-B-j-gyDx.esm.js";
|
|
14
|
+
import { n as electronicSignatureMachine } from "./electronicSignatureManager-BaECdJ1u.esm.js";
|
|
15
|
+
import "./ae-signature-BFZta3TZ.esm.js";
|
|
16
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-Ccrb-Jxc.esm.js";
|
|
17
|
+
import "./MotionSensorProvider-Bx7Mpzt0.esm.js";
|
|
18
|
+
import "./permissionServices-CG3bMSfG.esm.js";
|
|
19
|
+
import "./camera-DJWm3V4g.esm.js";
|
|
20
|
+
import "./recordingService-Bn9EdCmz.esm.js";
|
|
21
|
+
import "./ITimerCapability-CB0I1Uf2.esm.js";
|
|
22
|
+
import "./canvas-SKcRBxsk.esm.js";
|
|
23
|
+
import "./backCameraStream-D7Wo4Nbx.esm.js";
|
|
24
|
+
import "./deepsightService-CrHmvx8X.esm.js";
|
|
25
|
+
import "./getDeviceClass-C0olyNFS.esm.js";
|
|
26
|
+
import "./getDeviceClass-C8Do2qYu.esm.js";
|
|
27
|
+
import "./types-DsnEVMhr.esm.js";
|
|
28
|
+
import "./StreamCanvasCapture-ImiDQdVA.esm.js";
|
|
29
|
+
import "./permissionGuards-C1ispV96.esm.js";
|
|
30
|
+
import "./faceCaptureSetup-CtvHWd3x.esm.js";
|
|
31
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-DksVbF_H.esm.js";
|
|
32
|
+
import { t as consentMachine } from "./consentStateMachine-BG3yL8aC.esm.js";
|
|
33
|
+
import "./cpf-BRzggV8G.esm.js";
|
|
34
|
+
import { t as curpValidationMachine } from "./curpValidationStateMachine-B7V_qp66.esm.js";
|
|
35
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-HmFybXLX.esm.js";
|
|
36
|
+
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-WYV1r9le.esm.js";
|
|
37
|
+
import { n as toEkybConfig, t as ekybMachine } from "./ekybStateMachine-aYixw2sL.esm.js";
|
|
38
|
+
import "./addressSearch-DvmWXKZg.esm.js";
|
|
39
|
+
import "./session-DoVb-OcB.esm.js";
|
|
40
|
+
import "./flowServices-BTuHLHVr.esm.js";
|
|
41
|
+
import { n as toEkycConfig, t as ekycMachine } from "./ekycStateMachine-CXbpaJJn.esm.js";
|
|
42
|
+
import { t as emailMachine } from "./emailStateMachine-CxTOMAjC.esm.js";
|
|
43
|
+
import "./otp-CGMdUzBC.esm.js";
|
|
44
|
+
import { t as selfieMachine } from "./selfieStateMachine-b4F2q9zw.esm.js";
|
|
45
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-DHi7HydI.esm.js";
|
|
46
|
+
import { t as phoneMachine } from "./phoneStateMachine-BiV0yoEx.esm.js";
|
|
47
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-BfE5YiEr.esm.js";
|
|
48
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DtQNW1ji.esm.js";
|
|
49
|
+
import { t as redirectToMobileMachine } from "./redirectToMobileStateMachine-DyAdRxfP.esm.js";
|
|
50
|
+
import { t as faceMatchMachine } from "./faceMatchStateMachine-DdGXUBnx.esm.js";
|
|
51
|
+
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CuoHZ1cx.esm.js";
|
|
52
|
+
import { t as getFinishStatus } from "./flowCompletionService-DdGojV9K.esm.js";
|
|
53
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-Dvh7X0wF.esm.js";
|
|
54
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-DcJ-BfsC.esm.js";
|
|
55
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-CDQ5d_VM.esm.js";
|
|
56
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-kRxwImzO.esm.js";
|
|
57
|
+
import "./qe-signature-CUYPcHVo.esm.js";
|
|
58
|
+
import { t as signatureMachine } from "./signatureStateMachine-C5qqYLRz.esm.js";
|
|
59
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-DmQlqI6L.esm.js";
|
|
60
|
+
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-DMl8j2Ov.esm.js";
|
|
49
61
|
|
|
50
62
|
//#region src/internal/orchestration/defaultModules.ts
|
|
51
63
|
/**
|
|
@@ -69,6 +81,7 @@ const DEFAULT_MODULE_REGISTRY = {
|
|
|
69
81
|
FACE_MATCH: faceMatchMachine,
|
|
70
82
|
CURP_VALIDATION: curpValidationMachine,
|
|
71
83
|
GOVT_VALIDATION_PROVISIONING: governmentValidationMachine,
|
|
84
|
+
INE_VALIDATION: governmentValidationMachine,
|
|
72
85
|
GEOLOCATION: geolocationMachine,
|
|
73
86
|
EXTERNAL_VERIFICATION: ekycMachine,
|
|
74
87
|
EKYB: ekybMachine,
|
|
@@ -76,11 +89,16 @@ const DEFAULT_MODULE_REGISTRY = {
|
|
|
76
89
|
ADDRESS: documentCaptureMachine,
|
|
77
90
|
COMBINED_CONSENT: consentMachine,
|
|
78
91
|
MANDATORY_CONSENT: mandatoryConsentMachine,
|
|
92
|
+
ML_CONSENT: mandatoryConsentMachine,
|
|
79
93
|
SIGNATURE: signatureMachine,
|
|
80
94
|
ANTIFRAUD: antifraudMachine,
|
|
81
95
|
ID_OCR: idOcrStateMachine,
|
|
82
96
|
AE_SIGNATURE: electronicSignatureMachine,
|
|
83
|
-
QE_SIGNATURE: electronicSignatureMachine
|
|
97
|
+
QE_SIGNATURE: electronicSignatureMachine,
|
|
98
|
+
WATCHLIST: watchlistMachine,
|
|
99
|
+
WATCHLIST_BUSINESS: watchlistForBusinessMachine,
|
|
100
|
+
INCODE_WATCHLIST: customWatchlistMachine,
|
|
101
|
+
IDENTITY_REUSE: identityReuseMachine
|
|
84
102
|
};
|
|
85
103
|
/**
|
|
86
104
|
* Per-module config mappers for orchestrators (workflow / flow).
|
|
@@ -112,6 +130,27 @@ function applyConfigMapper(moduleKey, raw, mappers) {
|
|
|
112
130
|
const mapper = moduleKey ? mappers[moduleKey] : void 0;
|
|
113
131
|
return mapper ? mapper(raw) : raw;
|
|
114
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* Injects `processFaceBeforeMatch` into a FACE_MATCH node's raw config.
|
|
135
|
+
*
|
|
136
|
+
* In workflow mode the client never holds the full module list (nodes arrive
|
|
137
|
+
* one at a time from the server), so the orchestrated-flow approach of scanning
|
|
138
|
+
* `flow.flowModules` for an AUTHENTICATION module does not apply. Instead the
|
|
139
|
+
* workflow tracks whether it has seen an AUTHENTICATION node (`sawAuthentication`)
|
|
140
|
+
* and passes it here when launching FACE_MATCH. The AUTHENTICATION capture step
|
|
141
|
+
* skips server-side face processing, so face-match must trigger `process/face`
|
|
142
|
+
* before reading the score. Mirrors the orchestrated-flow fix (ENG-47558).
|
|
143
|
+
*
|
|
144
|
+
* No-op for any other module key. FACE_MATCH has no registered config mapper, so
|
|
145
|
+
* injecting into the raw object (before `applyConfigMapper`) is safe.
|
|
146
|
+
*/
|
|
147
|
+
function withFaceMatchProcessFlag(moduleKey, raw, sawAuthentication) {
|
|
148
|
+
if (moduleKey !== "FACE_MATCH") return raw;
|
|
149
|
+
return {
|
|
150
|
+
...raw,
|
|
151
|
+
processFaceBeforeMatch: sawAuthentication
|
|
152
|
+
};
|
|
153
|
+
}
|
|
115
154
|
|
|
116
155
|
//#endregion
|
|
117
156
|
//#region src/modules/workflow/workflowServices.ts
|
|
@@ -124,26 +163,38 @@ function assertWorkflowConfig(data, endpoint) {
|
|
|
124
163
|
if (!obj || typeof obj.id !== "string") throw new Error(`Invalid response from ${endpoint}: missing id`);
|
|
125
164
|
}
|
|
126
165
|
async function getCurrentNode(signal) {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
166
|
+
try {
|
|
167
|
+
const res = await api.get(endpoints.workflowCurrentNode, { signal });
|
|
168
|
+
assertWorkflowNode(res.data, endpoints.workflowCurrentNode);
|
|
169
|
+
return res.data;
|
|
170
|
+
} catch (error) {
|
|
171
|
+
toIncodeApiError(endpoints.workflowCurrentNode, error);
|
|
172
|
+
}
|
|
131
173
|
}
|
|
132
174
|
async function processNode(signal) {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
175
|
+
try {
|
|
176
|
+
const res = await api.post(endpoints.workflowProcessNode, {}, { signal });
|
|
177
|
+
assertWorkflowNode(res.data, endpoints.workflowProcessNode);
|
|
178
|
+
return res.data;
|
|
179
|
+
} catch (error) {
|
|
180
|
+
toIncodeApiError(endpoints.workflowProcessNode, error);
|
|
181
|
+
}
|
|
137
182
|
}
|
|
138
183
|
async function getWorkflowConfig(signal) {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
184
|
+
try {
|
|
185
|
+
const res = await api.get(endpoints.workflowInfo, { signal });
|
|
186
|
+
assertWorkflowConfig(res.data, endpoints.workflowInfo);
|
|
187
|
+
return res.data;
|
|
188
|
+
} catch (error) {
|
|
189
|
+
toIncodeApiError(endpoints.workflowInfo, error);
|
|
190
|
+
}
|
|
143
191
|
}
|
|
144
192
|
async function processCustomNode(data, signal) {
|
|
145
|
-
|
|
146
|
-
|
|
193
|
+
try {
|
|
194
|
+
await api.post(endpoints.customModuleExecution, data, { signal });
|
|
195
|
+
} catch (error) {
|
|
196
|
+
toIncodeApiError(endpoints.customModuleExecution, error);
|
|
197
|
+
}
|
|
147
198
|
}
|
|
148
199
|
|
|
149
200
|
//#endregion
|
|
@@ -297,26 +348,30 @@ const workflowMachine = setup({
|
|
|
297
348
|
runChildModule
|
|
298
349
|
},
|
|
299
350
|
actions: {
|
|
300
|
-
setLoadingResult: assign(({ event }) => {
|
|
351
|
+
setLoadingResult: assign(({ context, event }) => {
|
|
301
352
|
const result = event.output;
|
|
302
353
|
return {
|
|
303
354
|
workflowConfig: result.workflowConfig,
|
|
304
355
|
currentNode: result.currentNode,
|
|
305
356
|
firstNode: result.firstNode,
|
|
306
|
-
isInjectedNode: result.isInjectedNode
|
|
357
|
+
isInjectedNode: result.isInjectedNode,
|
|
358
|
+
sawAuthentication: context.sawAuthentication || result.currentNode?.moduleKey === "AUTHENTICATION"
|
|
307
359
|
};
|
|
308
360
|
}),
|
|
309
|
-
setNextNode: assign(({ event }) => {
|
|
361
|
+
setNextNode: assign(({ context, event }) => {
|
|
310
362
|
const result = event.output;
|
|
311
363
|
return {
|
|
312
364
|
currentNode: result.nextNode,
|
|
313
|
-
isInjectedNode: result.isInjectedNode
|
|
365
|
+
isInjectedNode: result.isInjectedNode,
|
|
366
|
+
sawAuthentication: context.sawAuthentication || result.nextNode?.moduleKey === "AUTHENTICATION"
|
|
314
367
|
};
|
|
315
368
|
}),
|
|
316
|
-
setCustomModuleResult: assign(({ event }) => {
|
|
369
|
+
setCustomModuleResult: assign(({ context, event }) => {
|
|
370
|
+
const nextNode = event.output;
|
|
317
371
|
return {
|
|
318
|
-
currentNode:
|
|
319
|
-
isInjectedNode: false
|
|
372
|
+
currentNode: nextNode,
|
|
373
|
+
isInjectedNode: false,
|
|
374
|
+
sawAuthentication: context.sawAuthentication || nextNode?.moduleKey === "AUTHENTICATION"
|
|
320
375
|
};
|
|
321
376
|
}),
|
|
322
377
|
setResolvedMachine: assign(({ event }) => ({ resolvedMachine: event.output })),
|
|
@@ -329,6 +384,17 @@ const workflowMachine = setup({
|
|
|
329
384
|
};
|
|
330
385
|
}),
|
|
331
386
|
setModuleError: assign(({ event }) => ({ error: String(event.error) })),
|
|
387
|
+
setModuleErrorCode: assign(({ event }) => ({ moduleErrorCode: event.moduleErrorCode })),
|
|
388
|
+
trackAdvanceableModuleError: ({ context, event }) => {
|
|
389
|
+
addEvent({
|
|
390
|
+
code: "errorTriggered",
|
|
391
|
+
module: context.currentNode?.moduleKey,
|
|
392
|
+
payload: {
|
|
393
|
+
errorCode: event.moduleErrorCode,
|
|
394
|
+
advanced: true
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
},
|
|
332
398
|
setHomeContinueLoading: assign({ isHomeContinueLoading: true }),
|
|
333
399
|
clearHomeContinueLoading: assign({ isHomeContinueLoading: false })
|
|
334
400
|
},
|
|
@@ -348,6 +414,7 @@ const workflowMachine = setup({
|
|
|
348
414
|
isCustomModule: ({ context }) => {
|
|
349
415
|
return context.currentNode?.moduleKey === "CUSTOM_MODULE";
|
|
350
416
|
},
|
|
417
|
+
isAdvanceableModuleError: ({ event }) => isAdvanceableError(event.moduleErrorCode),
|
|
351
418
|
shouldEnterHome: ({ event }) => {
|
|
352
419
|
const result = event.output;
|
|
353
420
|
if (!result || result.currentNode.nodeType !== "MODULE") return false;
|
|
@@ -366,6 +433,7 @@ const workflowMachine = setup({
|
|
|
366
433
|
resolvedMachine: void 0,
|
|
367
434
|
error: void 0,
|
|
368
435
|
errorCode: void 0,
|
|
436
|
+
moduleErrorCode: void 0,
|
|
369
437
|
registeredModules: input.modules,
|
|
370
438
|
configMappers: input.configMappers ?? {},
|
|
371
439
|
finishStatus: void 0,
|
|
@@ -374,6 +442,7 @@ const workflowMachine = setup({
|
|
|
374
442
|
isDesktop: input.isDesktop ?? true,
|
|
375
443
|
isInjectedNode: false,
|
|
376
444
|
isHomeContinueLoading: false,
|
|
445
|
+
sawAuthentication: false,
|
|
377
446
|
getFinishStatus: input.getFinishStatus ?? getFinishStatus
|
|
378
447
|
}),
|
|
379
448
|
states: {
|
|
@@ -441,10 +510,10 @@ const workflowMachine = setup({
|
|
|
441
510
|
id: "currentModule",
|
|
442
511
|
src: "runChildModule",
|
|
443
512
|
input: ({ context }) => {
|
|
444
|
-
const config = applyConfigMapper(context.currentNode?.moduleKey, {
|
|
513
|
+
const config = applyConfigMapper(context.currentNode?.moduleKey, withFaceMatchProcessFlag(context.currentNode?.moduleKey, {
|
|
445
514
|
...context.currentNode?.moduleConfiguration,
|
|
446
515
|
ds: context.workflowConfig?.ds
|
|
447
|
-
}, context.configMappers);
|
|
516
|
+
}, context.sawAuthentication), context.configMappers);
|
|
448
517
|
return {
|
|
449
518
|
machine: context.resolvedMachine,
|
|
450
519
|
config
|
|
@@ -453,10 +522,14 @@ const workflowMachine = setup({
|
|
|
453
522
|
},
|
|
454
523
|
on: {
|
|
455
524
|
MODULE_COMPLETE: "processingNode",
|
|
456
|
-
MODULE_ERROR: {
|
|
525
|
+
MODULE_ERROR: [{
|
|
526
|
+
guard: "isAdvanceableModuleError",
|
|
527
|
+
target: "processingNode",
|
|
528
|
+
actions: ["setModuleErrorCode", "trackAdvanceableModuleError"]
|
|
529
|
+
}, {
|
|
457
530
|
target: "error",
|
|
458
531
|
actions: "setModuleError"
|
|
459
|
-
},
|
|
532
|
+
}],
|
|
460
533
|
COMPLETE_FLOW: "completing"
|
|
461
534
|
}
|
|
462
535
|
},
|
|
@@ -596,11 +669,11 @@ function deriveHomeScreen(snapshot) {
|
|
|
596
669
|
* is invoked at the child-actor boundary in `workflowStateMachine` so all
|
|
597
670
|
* surfaces agree.
|
|
598
671
|
*/
|
|
599
|
-
function resolveCurrentModuleConfig(moduleKey, moduleConfiguration, ds, mappers) {
|
|
600
|
-
return applyConfigMapper(moduleKey, {
|
|
672
|
+
function resolveCurrentModuleConfig(moduleKey, moduleConfiguration, ds, mappers, sawAuthentication) {
|
|
673
|
+
return applyConfigMapper(moduleKey, withFaceMatchProcessFlag(moduleKey, {
|
|
601
674
|
...moduleConfiguration ?? {},
|
|
602
675
|
ds
|
|
603
|
-
}, mappers);
|
|
676
|
+
}, sawAuthentication), mappers);
|
|
604
677
|
}
|
|
605
678
|
function mapState(snapshot) {
|
|
606
679
|
const { context } = snapshot;
|
|
@@ -615,7 +688,7 @@ function mapState(snapshot) {
|
|
|
615
688
|
status: "ready",
|
|
616
689
|
workflowConfig: context.workflowConfig,
|
|
617
690
|
currentNode: context.currentNode,
|
|
618
|
-
config: resolveCurrentModuleConfig(context.currentNode?.moduleKey, context.currentNode?.moduleConfiguration, context.workflowConfig?.ds, context.configMappers),
|
|
691
|
+
config: resolveCurrentModuleConfig(context.currentNode?.moduleKey, context.currentNode?.moduleConfiguration, context.workflowConfig?.ds, context.configMappers, context.sawAuthentication),
|
|
619
692
|
moduleState: childSnapshot ?? null,
|
|
620
693
|
homeScreen
|
|
621
694
|
};
|
|
@@ -626,7 +699,9 @@ function mapState(snapshot) {
|
|
|
626
699
|
finishStatus: context.finishStatus ?? {
|
|
627
700
|
redirectionUrl: "",
|
|
628
701
|
action: "none",
|
|
629
|
-
scoreStatus: "UNKNOWN"
|
|
702
|
+
scoreStatus: "UNKNOWN",
|
|
703
|
+
endScreenTitle: null,
|
|
704
|
+
endScreenText: null
|
|
630
705
|
}
|
|
631
706
|
};
|
|
632
707
|
if (snapshot.matches("asyncResolution")) return {
|
|
@@ -658,10 +733,11 @@ function createApi({ actor, getSnapshot, trackElementClicked }) {
|
|
|
658
733
|
trackElementClicked?.("completeFlow");
|
|
659
734
|
actor.send({ type: "COMPLETE_FLOW" });
|
|
660
735
|
},
|
|
661
|
-
errorModule(error) {
|
|
736
|
+
errorModule(error, moduleErrorCode) {
|
|
662
737
|
actor.send({
|
|
663
738
|
type: "MODULE_ERROR",
|
|
664
|
-
error
|
|
739
|
+
error,
|
|
740
|
+
moduleErrorCode
|
|
665
741
|
});
|
|
666
742
|
},
|
|
667
743
|
continueFromHome() {
|
|
@@ -671,7 +747,7 @@ function createApi({ actor, getSnapshot, trackElementClicked }) {
|
|
|
671
747
|
getModuleConfig() {
|
|
672
748
|
const snapshot = getSnapshot();
|
|
673
749
|
if (snapshot.value !== "runningModule") return void 0;
|
|
674
|
-
return resolveCurrentModuleConfig(snapshot.context.currentNode?.moduleKey, snapshot.context.currentNode?.moduleConfiguration, snapshot.context.workflowConfig?.ds, snapshot.context.configMappers);
|
|
750
|
+
return resolveCurrentModuleConfig(snapshot.context.currentNode?.moduleKey, snapshot.context.currentNode?.moduleConfiguration, snapshot.context.workflowConfig?.ds, snapshot.context.configMappers, snapshot.context.sawAuthentication);
|
|
675
751
|
}
|
|
676
752
|
};
|
|
677
753
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.1.0-rc.0",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
|
|
7
|
+
},
|
|
4
8
|
"type": "module",
|
|
5
9
|
"main": "./dist/index.esm.js",
|
|
6
10
|
"types": "./dist/index.d.ts",
|
|
@@ -224,11 +228,24 @@
|
|
|
224
228
|
"source": "./src/modules/dynamic-forms/index.ts",
|
|
225
229
|
"types": "./dist/dynamic-forms.d.ts",
|
|
226
230
|
"import": "./dist/dynamic-forms.esm.js"
|
|
231
|
+
},
|
|
232
|
+
"./field-comparison": {
|
|
233
|
+
"source": "./src/modules/field-comparison/index.ts",
|
|
234
|
+
"types": "./dist/field-comparison.d.ts",
|
|
235
|
+
"import": "./dist/field-comparison.esm.js"
|
|
236
|
+
},
|
|
237
|
+
"./fiscal-qr": {
|
|
238
|
+
"source": "./src/modules/fiscal-qr/index.ts",
|
|
239
|
+
"types": "./dist/fiscal-qr.d.ts",
|
|
240
|
+
"import": "./dist/fiscal-qr.esm.js"
|
|
227
241
|
}
|
|
228
242
|
},
|
|
229
243
|
"files": [
|
|
230
244
|
"dist"
|
|
231
245
|
],
|
|
246
|
+
"dependencies": {
|
|
247
|
+
"@zxing/browser": "0.1.5"
|
|
248
|
+
},
|
|
232
249
|
"devDependencies": {
|
|
233
250
|
"@vitest/coverage-v8": "^4.0.13",
|
|
234
251
|
"tsdown": "^0.16.6",
|
|
@@ -239,6 +256,7 @@
|
|
|
239
256
|
},
|
|
240
257
|
"scripts": {
|
|
241
258
|
"build": "tsdown -c tsdown.config.ts",
|
|
259
|
+
"build:cdn": "tsdown -c tsdown.config.ts --minify",
|
|
242
260
|
"build:dev": "tsdown -c tsdown.config.ts",
|
|
243
261
|
"test": "vitest run",
|
|
244
262
|
"coverage": "vitest run --coverage",
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-C_DLEI40.esm.js";
|
|
2
|
-
|
|
3
|
-
//#region ../infra/src/providers/wasm/WasmUtilProvider.ts
|
|
4
|
-
var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
|
|
5
|
-
static async getInstance() {
|
|
6
|
-
if (WasmUtilProvider.instance) return WasmUtilProvider.instance;
|
|
7
|
-
if (WasmUtilProvider.initPromise) return WasmUtilProvider.initPromise;
|
|
8
|
-
WasmUtilProvider.initPromise = (async () => {
|
|
9
|
-
const instance = new WasmUtilProvider();
|
|
10
|
-
await instance.initializeBase({}, "selfie");
|
|
11
|
-
WasmUtilProvider.instance = instance;
|
|
12
|
-
return instance;
|
|
13
|
-
})();
|
|
14
|
-
return WasmUtilProvider.initPromise;
|
|
15
|
-
}
|
|
16
|
-
static resetInstance() {
|
|
17
|
-
WasmUtilProvider.instance = void 0;
|
|
18
|
-
WasmUtilProvider.initPromise = void 0;
|
|
19
|
-
}
|
|
20
|
-
constructor() {
|
|
21
|
-
super(void 0);
|
|
22
|
-
}
|
|
23
|
-
async initialize(config) {
|
|
24
|
-
if (this.initialized) return;
|
|
25
|
-
const pipeline = config.pipelines?.[0] ?? "selfie";
|
|
26
|
-
await this.initializeBase(config, pipeline);
|
|
27
|
-
}
|
|
28
|
-
async processFrame(_image) {
|
|
29
|
-
throw new Error("WasmUtilProvider does not support frame processing. Use encryptImage() instead.");
|
|
30
|
-
}
|
|
31
|
-
encryptImage(image) {
|
|
32
|
-
this.ensureInitialized();
|
|
33
|
-
return mlWasmJSApi_default.ens(image);
|
|
34
|
-
}
|
|
35
|
-
setSdkVersion(version) {
|
|
36
|
-
this.ensureInitialized();
|
|
37
|
-
mlWasmJSApi_default.setSdkVersion(version);
|
|
38
|
-
}
|
|
39
|
-
setSdkPlatform(platform) {
|
|
40
|
-
this.ensureInitialized();
|
|
41
|
-
mlWasmJSApi_default.setSdkPlatform(platform);
|
|
42
|
-
}
|
|
43
|
-
setDeviceInfo(deviceInfo, overrideExisting = true) {
|
|
44
|
-
this.ensureInitialized();
|
|
45
|
-
mlWasmJSApi_default.setDeviceInfo(deviceInfo, overrideExisting);
|
|
46
|
-
}
|
|
47
|
-
setBrowserInfo(browserInfo, overrideExisting = true) {
|
|
48
|
-
this.ensureInitialized();
|
|
49
|
-
mlWasmJSApi_default.setBrowserInfo(browserInfo, overrideExisting);
|
|
50
|
-
}
|
|
51
|
-
setCameraInfo(cameraInfo, overrideExisting = true) {
|
|
52
|
-
this.ensureInitialized();
|
|
53
|
-
mlWasmJSApi_default.setCameraInfo(cameraInfo, overrideExisting);
|
|
54
|
-
}
|
|
55
|
-
setMotionStatus(status) {
|
|
56
|
-
this.ensureInitialized();
|
|
57
|
-
mlWasmJSApi_default.setMotionStatus(status);
|
|
58
|
-
}
|
|
59
|
-
setBackgroundMode(backgroundMode) {
|
|
60
|
-
this.ensureInitialized();
|
|
61
|
-
mlWasmJSApi_default.setBackgroundMode(backgroundMode);
|
|
62
|
-
}
|
|
63
|
-
setZc(zc) {
|
|
64
|
-
this.ensureInitialized();
|
|
65
|
-
mlWasmJSApi_default.setZc(zc);
|
|
66
|
-
}
|
|
67
|
-
setInspectorOpened(opened) {
|
|
68
|
-
this.ensureInitialized();
|
|
69
|
-
mlWasmJSApi_default.setInspectorOpened(opened);
|
|
70
|
-
}
|
|
71
|
-
getMetadata() {
|
|
72
|
-
this.ensureInitialized();
|
|
73
|
-
return mlWasmJSApi_default.getMetadata();
|
|
74
|
-
}
|
|
75
|
-
async analyzeFrame(image) {
|
|
76
|
-
this.ensureInitialized();
|
|
77
|
-
await mlWasmJSApi_default.analyzeFrame(image);
|
|
78
|
-
}
|
|
79
|
-
getCheck() {
|
|
80
|
-
this.ensureInitialized();
|
|
81
|
-
return mlWasmJSApi_default.getCheck();
|
|
82
|
-
}
|
|
83
|
-
getPipelineState() {
|
|
84
|
-
this.ensureInitialized();
|
|
85
|
-
return mlWasmJSApi_default.getPipelineState();
|
|
86
|
-
}
|
|
87
|
-
estimatePerformance() {
|
|
88
|
-
this.ensureInitialized();
|
|
89
|
-
return mlWasmJSApi_default.estimatePerformance();
|
|
90
|
-
}
|
|
91
|
-
isVirtualCamera(label) {
|
|
92
|
-
this.ensureInitialized();
|
|
93
|
-
return mlWasmJSApi_default.isVirtualCamera(label);
|
|
94
|
-
}
|
|
95
|
-
async prc() {
|
|
96
|
-
this.ensureInitialized();
|
|
97
|
-
await mlWasmJSApi_default.prc();
|
|
98
|
-
}
|
|
99
|
-
async poc(output) {
|
|
100
|
-
this.ensureInitialized();
|
|
101
|
-
await mlWasmJSApi_default.poc(output);
|
|
102
|
-
}
|
|
103
|
-
ckvcks(data) {
|
|
104
|
-
this.ensureInitialized();
|
|
105
|
-
mlWasmJSApi_default.ckvcks(data);
|
|
106
|
-
}
|
|
107
|
-
async getVersions() {
|
|
108
|
-
this.ensureInitialized();
|
|
109
|
-
return mlWasmJSApi_default.getVersions();
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
//#endregion
|
|
114
|
-
export { WasmUtilProvider as t };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
//#region src/internal/device/browserSimulation.ts
|
|
2
|
-
const AUTOMATION_MARKERS = {
|
|
3
|
-
window: [
|
|
4
|
-
"callPhantom",
|
|
5
|
-
"_phantom",
|
|
6
|
-
"phantom",
|
|
7
|
-
"__nightmare",
|
|
8
|
-
"domAutomation",
|
|
9
|
-
"domAutomationController"
|
|
10
|
-
],
|
|
11
|
-
navigator: ["webdriver"]
|
|
12
|
-
};
|
|
13
|
-
function isBrowserSimulation(browserEnv) {
|
|
14
|
-
for (const prop of AUTOMATION_MARKERS.window) if (browserEnv.getWindowProperty(prop)) return true;
|
|
15
|
-
for (const prop of AUTOMATION_MARKERS.navigator) if (browserEnv.getNavigatorProperty(prop)) return true;
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { isBrowserSimulation as t };
|