@incodetech/core 2.1.0-rc.1 → 2.1.0-rc.3
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/3dAvatarProvider-ChciZmjE.esm.js +28214 -0
- package/dist/{BrowserStorageProvider-BpJM-gIl.esm.js → BrowserStorageProvider-CrrN540a.esm.js} +1 -8
- package/dist/BrowserVisibilityObserverProvider-rim9Jrz-.esm.js +25 -0
- package/dist/Face2DProvider-BeLlYBbB.esm.js +824 -0
- package/dist/FaceDetectionProvider-B78455D4.d.ts +119 -0
- package/dist/IVisibilityObserverCapability-BbWjgpiF.d.ts +12 -0
- package/dist/IWasmUtilCapability-d2XvzaCk.d.ts +145 -0
- package/dist/IpifyProvider-BRW14_uo.esm.js +51 -0
- package/dist/{OpenViduRecordingProvider-O4GjBseO.esm.js → OpenViduRecordingProvider-B_0GKkzc.esm.js} +1 -1
- package/dist/PrivacyLensProvider-hDzaDzZ6.esm.js +339 -0
- package/dist/{StreamCanvasCapture-ImiDQdVA.esm.js → StreamCanvasCapture-Bz17q4FP.esm.js} +1 -1
- package/dist/StreamCanvasCapture-DS1TOoiH.d.ts +42 -0
- package/dist/{WasmUtilProvider-BKWm8rSA.esm.js → WasmUtilProvider-ADG54T6M.esm.js} +26 -2
- package/dist/{addressSearch-DvmWXKZg.esm.js → addressSearch-DJyNTg5S.esm.js} +4 -4
- package/dist/{ae-signature-BFZta3TZ.esm.js → ae-signature-DlElqFrZ.esm.js} +1 -1
- package/dist/ae-signature.d.ts +4 -3
- package/dist/ae-signature.esm.js +10 -7
- package/dist/antifraud.d.ts +4 -3
- package/dist/antifraud.esm.js +7 -6
- package/dist/antifraudManager-BKdQoMFf.esm.js +84 -0
- package/dist/{antifraudManager-CznnhyvD.d.ts → antifraudManager-DpIvbrZP.d.ts} +2 -2
- package/dist/{antifraudStateMachine-Ccrb-Jxc.esm.js → antifraudStateMachine-C0NGnP9W.esm.js} +3 -3
- package/dist/{api-CESGtpbH.esm.js → api-DsbUi7TO.esm.js} +21 -2
- package/dist/authentication.d.ts +19 -13
- package/dist/authentication.esm.js +33 -27
- package/dist/{authenticationManager-CaiQbp-q.d.ts → authenticationManager-CdPbNS2H.d.ts} +13 -3
- package/dist/{authenticationManager-BlR6mSaG.esm.js → authenticationManager-Dtl1vcET.esm.js} +17 -8
- package/dist/{authenticationStateMachine-DkcGUMw5.esm.js → authenticationStateMachine-D-hOlg8p.esm.js} +20 -23
- package/dist/avatar.d.ts +3 -0
- package/dist/avatar.esm.js +3 -0
- package/dist/{backCameraStream-D7Wo4Nbx.esm.js → backCameraStream-ZyqrFyjO.esm.js} +3 -3
- package/dist/browser-DlFgHpoC-qLKs75Qp.esm.js +1425 -0
- package/dist/{browserSimulation-B1dWiXp7.esm.js → browserSimulation-TsSoavQv.esm.js} +153 -1216
- package/dist/camera-DUkgmYMo.esm.js +79 -0
- package/dist/camera.d.ts +7 -1
- package/dist/camera.esm.js +4 -4
- package/dist/{StreamCanvasCapture-yyl20qd9.d.ts → canvas-CJUmoXSD.d.ts} +1 -41
- package/dist/certificate-issuance.d.ts +312 -0
- package/dist/certificate-issuance.esm.js +74 -0
- package/dist/certificateIssuanceStateMachine-C07m7qtP.esm.js +127 -0
- package/dist/clientLifecycle-Ct7h9uxx.esm.js +534 -0
- package/dist/consent.d.ts +4 -3
- package/dist/consent.esm.js +7 -6
- package/dist/{consentManager-BYo9Nu1r.esm.js → consentManager-BtnPZUW4.esm.js} +30 -5
- package/dist/{consentManager-Cg5Sk2tv.d.ts → consentManager-DufVo9D9.d.ts} +55 -55
- package/dist/{consentStateMachine-BG3yL8aC.esm.js → consentStateMachine-DO2JqoZW.esm.js} +3 -3
- package/dist/cpf-ocr.d.ts +4 -3
- package/dist/cpf-ocr.esm.js +7 -6
- package/dist/{cpfOcrManager-sSKegxox.esm.js → cpfOcrManager-C4rLgKsu.esm.js} +6 -5
- package/dist/{cpfOcrManager-Dg1s_TY5.d.ts → cpfOcrManager-DqZZ94Gt.d.ts} +19 -19
- package/dist/createFaceAvatar-B8pFpy6o.d.ts +401 -0
- package/dist/createFaceAvatar-BOHDKQRq.esm.js +46 -0
- package/dist/cross-document-data-match.d.ts +2 -1
- package/dist/cross-document-data-match.esm.js +6 -5
- package/dist/curp-validation.d.ts +10 -7
- package/dist/curp-validation.esm.js +7 -6
- package/dist/{curpValidationManager-CFem6zP9.esm.js → curpValidationManager-BafobPXC.esm.js} +52 -5
- package/dist/{curpValidationManager-RttixpIc.d.ts → curpValidationManager-Co6LZAHT.d.ts} +4 -3
- package/dist/{curpValidationStateMachine-B7V_qp66.esm.js → curpValidationStateMachine-DXTPK6vI.esm.js} +3 -3
- package/dist/custom-fields.d.ts +4 -2
- package/dist/custom-fields.esm.js +49 -6
- package/dist/custom-watchlist.d.ts +2 -1
- package/dist/custom-watchlist.esm.js +27 -6
- package/dist/{customWatchlistStateMachine-HmFybXLX.esm.js → customWatchlistStateMachine-B4G3Chkx.esm.js} +3 -3
- package/dist/{deepsightLoader-8tnddNx-.esm.js → deepsightLoader-DHSVD776.esm.js} +14 -13
- package/dist/{deepsightService-CrHmvx8X.esm.js → deepsightService-CDahSjGP.esm.js} +9 -38
- package/dist/deepsightService-CMB9XjES.d.ts +69 -0
- package/dist/device.d.ts +9 -1
- package/dist/device.esm.js +5 -5
- package/dist/document-capture.d.ts +178 -177
- package/dist/document-capture.esm.js +78 -14
- package/dist/document-upload.d.ts +51 -50
- package/dist/document-upload.esm.js +10 -9
- package/dist/{documentCaptureStateMachine-CUTUzUw_.esm.js → documentCaptureStateMachine-DSOX2epf.esm.js} +7 -7
- package/dist/dynamic-forms.d.ts +4 -192
- package/dist/dynamic-forms.esm.js +8 -410
- package/dist/dynamicFormsManager-BOefZbyF.esm.js +168 -0
- package/dist/dynamicFormsManager-CUYLOj9g.d.ts +239 -0
- package/dist/dynamicFormsStateMachine-BXHcaocI.esm.js +284 -0
- package/dist/ekyb.d.ts +10 -6
- package/dist/ekyb.esm.js +62 -17
- package/dist/{ekybStateMachine-klc-AImJ.esm.js → ekybStateMachine-CCSeqjCt.esm.js} +5 -5
- package/dist/ekyc.d.ts +5 -3
- package/dist/ekyc.esm.js +55 -9
- package/dist/{ekycStateMachine-CXbpaJJn.esm.js → ekycStateMachine-DkLVTOyA.esm.js} +5 -5
- package/dist/electronic-signature.d.ts +4 -3
- package/dist/electronic-signature.esm.js +9 -6
- package/dist/{electronicSignatureManager-BaECdJ1u.esm.js → electronicSignatureManager-DjzUzqZj.esm.js} +135 -92
- package/dist/email.d.ts +5 -4
- package/dist/email.esm.js +9 -8
- package/dist/{emailManager--D5G3ChB.esm.js → emailManager-B_XzEsXH.esm.js} +47 -6
- package/dist/{emailManager-lAzDoQOs.d.ts → emailManager-fHASH6uo.d.ts} +4 -3
- package/dist/{emailStateMachine-CxTOMAjC.esm.js → emailStateMachine-fqJ42b19.esm.js} +5 -5
- package/dist/{endpoints-BeTK0Mlt.esm.js → endpoints-BzMJFAPV.esm.js} +15 -0
- package/dist/{events-Dvvriq9l.esm.js → events-CqGY1yMq.esm.js} +87 -206
- package/dist/events.d.ts +23 -16
- package/dist/events.esm.js +3 -2
- package/dist/extensibility.d.ts +37 -27
- package/dist/extensibility.esm.js +74 -57
- package/dist/externalFetch-CyhBfD-n.esm.js +22 -0
- package/dist/face-match.d.ts +2 -2
- package/dist/face-match.esm.js +6 -5
- package/dist/{faceCaptureManagerFactory-ej2j1LMr.esm.js → faceCaptureManagerFactory-2brKTzMb.esm.js} +115 -25
- package/dist/faceCaptureManagerFactory-CGKbf7zt.d.ts +400 -0
- package/dist/{faceCaptureSetup-B9t6bYze.esm.js → faceCaptureSetup-CDUVU1nl.esm.js} +97 -13
- package/dist/{faceMatchStateMachine-DeXXzSuz.esm.js → faceMatchStateMachine-DUeUjEPx.esm.js} +3 -3
- package/dist/field-comparison.d.ts +4 -3
- package/dist/field-comparison.esm.js +6 -5
- package/dist/{fieldComparisonManager-COGI2ARD.esm.js → fieldComparisonManager-B9W0a9A5.esm.js} +5 -4
- package/dist/{fieldComparisonManager-Bu5TaSr3.d.ts → fieldComparisonManager-DdLqDeB2.d.ts} +2 -2
- package/dist/fiscal-qr.d.ts +5 -3
- package/dist/fiscal-qr.esm.js +13 -12
- package/dist/flow-events.d.ts +8 -6
- package/dist/flow.d.ts +34 -16
- package/dist/flow.esm.js +53 -30
- package/dist/flowCompletionService-BIqSTZcd.d.ts +28 -0
- package/dist/flowCompletionService-qEqh_g14.esm.js +42 -0
- package/dist/{flowServices-ChgTNggJ.esm.js → flowServices-C4piblgx.esm.js} +24 -9
- package/dist/geolocation.d.ts +4 -126
- package/dist/geolocation.esm.js +8 -87
- package/dist/geolocationManager-BP2Do9O-.esm.js +123 -0
- package/dist/geolocationManager-Cs50eRlC.d.ts +156 -0
- package/dist/{geolocationStateMachine-Dvh7X0wF.esm.js → geolocationStateMachine-BYfOOOG0.esm.js} +4 -4
- package/dist/{getDeviceClass-C8Do2qYu.esm.js → getDeviceClass-DGGzzfqm.esm.js} +1 -1
- package/dist/getDeviceData-TrKM8NPh.esm.js +101 -0
- package/dist/government-validation.d.ts +4 -3
- package/dist/government-validation.esm.js +43 -8
- package/dist/{governmentValidationStateMachine-DcJ-BfsC.esm.js → governmentValidationStateMachine-CwoPPO8b.esm.js} +5 -5
- package/dist/home.d.ts +18 -15
- package/dist/home.esm.js +5 -4
- package/dist/http.d.ts +1 -0
- package/dist/http.esm.js +2 -2
- package/dist/id-ocr.d.ts +4 -625
- package/dist/id-ocr.esm.js +8 -84
- package/dist/id-verification.d.ts +28 -27
- package/dist/id-verification.esm.js +6 -5
- package/dist/id.d.ts +24 -13
- package/dist/id.esm.js +48 -33
- package/dist/idCaptureDefaults-DNJON8Xo.esm.js +188 -0
- package/dist/{idCaptureManager-ChCNmgBj.d.ts → idCaptureManager-BVdvfJys.d.ts} +47 -12
- package/dist/{idCaptureManager-D3pwWutw.esm.js → idCaptureManager-Bo9DCQSU.esm.js} +100 -15
- package/dist/{idCaptureStateMachine-B3AiDIsT.esm.js → idCaptureStateMachine-BeDidMLU.esm.js} +525 -439
- package/dist/idOcrManager-BkRDrpZu.esm.js +92 -0
- package/dist/idOcrManager-CJzrmM91.d.ts +641 -0
- package/dist/{idOcrStateMachine-CDQ5d_VM.esm.js → idOcrStateMachine-DRZc4FBl.esm.js} +5 -5
- package/dist/{idVerificationStateMachine-kRxwImzO.esm.js → idVerificationStateMachine-oqiERKpg.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +4 -3
- package/dist/identity-reuse.esm.js +7 -6
- package/dist/{identityReuseManager-C6n_97dw.esm.js → identityReuseManager-Bu62LToE.esm.js} +4 -3
- package/dist/{identityReuseManager-Cww-NDtd.d.ts → identityReuseManager-TWKbXuvY.d.ts} +33 -33
- package/dist/{identityReuseStateMachine-BfE5YiEr.esm.js → identityReuseStateMachine-BmONeF6B.esm.js} +3 -3
- package/dist/{index-B5hPA0Bg.d.ts → index-DtUlD-bz.d.ts} +2 -2
- package/dist/{index-B9NysVDB.d.ts → index-Icld-cKW.d.ts} +175 -295
- package/dist/index-XTtxaahe.d.ts +93 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.esm.js +16 -12
- package/dist/{invokeOnCaptureCallback-ygByVdnn.esm.js → invokeOnCaptureCallback-v_PV_IJz.esm.js} +1 -1
- package/dist/{lib-BY67lgbq.esm.js → lib-B050WTth.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +10 -7
- package/dist/mandatory-consent.esm.js +7 -6
- package/dist/{mandatoryConsentManager-Dq6WiOZh.d.ts → mandatoryConsentManager-Bmdjo14S.d.ts} +50 -50
- package/dist/{mandatoryConsentManager-H6D18cZB.esm.js → mandatoryConsentManager-CQ3jirlZ.esm.js} +4 -3
- package/dist/{mandatoryConsentStateMachine-DtQNW1ji.esm.js → mandatoryConsentStateMachine-DkJJLHqC.esm.js} +3 -3
- package/dist/mediaRecorderOptions-C3NAkVgK.esm.js +42 -0
- package/dist/mediapipeShared-CRAKVElv.esm.js +67 -0
- package/dist/{recordingService-yRw7hfzU.esm.js → onDeviceFaceResults-DVBggeq8.esm.js} +71 -389
- package/dist/{openviduLazy-Dh14JNJc.esm.js → openviduLazy-BTOIauGP.esm.js} +2 -2
- package/dist/openviduLazy-Dov8oKfL.esm.js +3 -0
- package/dist/{permissionGuards-D0wGddy7.esm.js → permissionGuards-BR2oN573.esm.js} +1 -1
- package/dist/{permissionServices-Doec4X5L.esm.js → permissionServices-BJhGL13R.esm.js} +7 -4
- package/dist/personhood.d.ts +534 -0
- package/dist/personhood.esm.js +1494 -0
- package/dist/phone.d.ts +5 -4
- package/dist/phone.esm.js +9 -8
- package/dist/{phoneManager-fPmIBYQK.d.ts → phoneManager-BOTcjXgs.d.ts} +4 -3
- package/dist/{phoneManager-BmF-0Ez4.esm.js → phoneManager-BWlxqbyD.esm.js} +48 -6
- package/dist/{phoneStateMachine-BiV0yoEx.esm.js → phoneStateMachine-B_V9nODs.esm.js} +5 -5
- package/dist/{qe-signature-CUYPcHVo.esm.js → qe-signature-BhFnI9pT.esm.js} +1 -1
- package/dist/qe-signature.d.ts +4 -3
- package/dist/qe-signature.esm.js +10 -7
- package/dist/recordingService-m_1xCthr.esm.js +347 -0
- package/dist/redirect-to-mobile.d.ts +4 -3
- package/dist/redirect-to-mobile.esm.js +9 -7
- package/dist/{redirectToMobileManager-Dy3t7o0C.esm.js → redirectToMobileManager-BaAo9rgi.esm.js} +5 -4
- package/dist/{redirectToMobileManager-BNe3IzC_.d.ts → redirectToMobileManager-Br0KZK1G.d.ts} +2 -2
- package/dist/{redirectToMobileStateMachine-DyAdRxfP.esm.js → redirectToMobileStateMachine-DoAnf2ql.esm.js} +16 -28
- package/dist/{runChildModule-CuoHZ1cx.esm.js → runChildModule-0nQfjVVo.esm.js} +14 -24
- package/dist/selfie.d.ts +27 -14
- package/dist/selfie.esm.js +43 -30
- package/dist/{selfieManager-BNuTIGAz.esm.js → selfieManager-D_ZFERsE.esm.js} +17 -8
- package/dist/{selfieManager-C2y_t6DG.d.ts → selfieManager-R0Jw5sjb.d.ts} +13 -3
- package/dist/{selfieStateMachine-Bv99bZJE.esm.js → selfieStateMachine-CIgeeiN9.esm.js} +4 -4
- package/dist/{session-DoVb-OcB.esm.js → session-9jIfKFCc.esm.js} +3 -3
- package/dist/session.d.ts +11 -8
- package/dist/session.esm.js +16 -12
- package/dist/{sessionInitializer-DRB-hgbV.esm.js → sessionInitializer-C_TYIgyk.esm.js} +16 -109
- package/dist/{setup-BwCluiw3.d.ts → setup-CpRnXxn8.d.ts} +61 -2
- package/dist/setup-DHc6OaHm.esm.js +562 -0
- package/dist/signature.d.ts +4 -2
- package/dist/signature.esm.js +49 -6
- package/dist/{signatureStateMachine-C5qqYLRz.esm.js → signatureStateMachine-DtoiPzys.esm.js} +21 -39
- package/dist/{stats-BMNUG1AU.esm.js → stats-CYcScXcO.esm.js} +2 -2
- package/dist/stats.esm.js +3 -3
- package/dist/thumbmarkAdapter-fHBUDlAP.esm.js +1194 -0
- package/dist/tri-BG1iJsr4.esm.js +399 -0
- package/dist/tri.d.ts +2 -0
- package/dist/tri.esm-DUC01NgO.esm.js +2593 -0
- package/dist/tri.esm.js +4 -0
- package/dist/trust-graph.d.ts +4 -3
- package/dist/trust-graph.esm.js +4 -3
- package/dist/{types-NuT8ftBV.d.ts → types-BklZ_Wne.d.ts} +2 -1
- package/dist/{types-DOUhndhT.d.ts → types-BsYXnC5s.d.ts} +39 -3
- package/dist/{types-DsnEVMhr.esm.js → types-CMcxlSmH.esm.js} +2 -1
- package/dist/types-CxW2e0Ar.d.ts +132 -0
- package/dist/{types-Bj9hdFjU.d.ts → types-DgGlgyZT.d.ts} +1 -1
- package/dist/types-ElOJAGaM.esm.js +189 -0
- package/dist/urlUtils-BZqFU9rR.esm.js +16 -0
- package/dist/video-C2WIj6TS.esm.js +36 -0
- package/dist/video-selfie.d.ts +351 -0
- package/dist/video-selfie.esm.js +1509 -0
- package/dist/videoSelfieSteps-7M5vxKn-.esm.js +58 -0
- package/dist/{warmup-Dg8Lh-50.d.ts → warmup-BJZPQIiX.d.ts} +5 -1
- package/dist/wasm.d.ts +4 -3
- package/dist/wasm.esm.js +17 -13
- package/dist/watchlist-for-business.d.ts +2 -1
- package/dist/watchlist-for-business.esm.js +30 -7
- package/dist/watchlist.d.ts +2 -1
- package/dist/watchlist.esm.js +28 -6
- package/dist/{watchlistForBusinessStateMachine-DMl8j2Ov.esm.js → watchlistForBusinessStateMachine-DvEunDxs.esm.js} +3 -3
- package/dist/{watchlistStateMachine-DmQlqI6L.esm.js → watchlistStateMachine-AHXVf-TB.esm.js} +3 -3
- package/dist/workflow.d.ts +296 -103
- package/dist/workflow.esm.js +137 -74
- package/dist/{xstate.esm-C9wncMQa.esm.js → xstate.esm-Bomq1a0z.esm.js} +54 -5
- package/package.json +26 -1
- package/dist/IpifyProvider-D4LWD15E.esm.js +0 -167
- package/dist/antifraudManager-CkV4u-LE.esm.js +0 -55
- package/dist/camera-DJWm3V4g.esm.js +0 -22
- package/dist/deepsightService-Dh5P-hLf.d.ts +0 -265
- package/dist/faceCaptureManagerFactory-CjdBUS6s.d.ts +0 -721
- package/dist/flowCompletionService-BdR2cGgB.d.ts +0 -19
- package/dist/flowCompletionService-DdGojV9K.esm.js +0 -20
- package/dist/getBrowser-C8DP7oTB.esm.js +0 -8
- package/dist/openviduLazy-B8L--0oe.esm.js +0 -3
- package/dist/setup-CUO4mErT.esm.js +0 -1037
- /package/dist/{Actor-Y0_Fj-KL.d.ts → Actor-CGEelYtQ.d.ts} +0 -0
- /package/dist/{BrowserTimerProvider-DhNc_x02.esm.js → BrowserTimerProvider-CHloo0eQ.esm.js} +0 -0
- /package/dist/{ITimerCapability-CB0I1Uf2.esm.js → ITimerCapability-pltuG1E8.esm.js} +0 -0
- /package/dist/{Manager-BHn8wH8K.d.ts → Manager-CJ3G2zqi.d.ts} +0 -0
- /package/dist/{MotionSensorProvider-Bx7Mpzt0.esm.js → MotionSensorProvider-DCbId4De.esm.js} +0 -0
- /package/dist/{StateMachine-BC_nGvrc.d.ts → StateMachine-C_AY4cs7.d.ts} +0 -0
- /package/dist/{apiError-B-j-gyDx.esm.js → apiError-DNS2OCEX.esm.js} +0 -0
- /package/dist/{camera-SRBpPq2X.d.ts → camera-CNVUo-bC.d.ts} +0 -0
- /package/dist/{canvas-SKcRBxsk.esm.js → canvas-_I95hkPg.esm.js} +0 -0
- /package/dist/{chunk-CMUKZ2uL.esm.js → chunk-CIKcdghV.esm.js} +0 -0
- /package/dist/{cpf-BRzggV8G.esm.js → cpf-BKaho0j_.esm.js} +0 -0
- /package/dist/{dateUtils-AksLQmgV.esm.js → dateUtils-7-tQYRNN.esm.js} +0 -0
- /package/dist/{getDeviceClass-C0olyNFS.esm.js → getDeviceClass-DavNdcxh.esm.js} +0 -0
- /package/dist/{http-Cai3IoLS.esm.js → http-BkiUT7EB.esm.js} +0 -0
- /package/dist/{otp-CGMdUzBC.esm.js → otp-Bfnzf7I3.esm.js} +0 -0
- /package/dist/{otp-DF5A0sFx.d.ts → otp-M4iy57XY.d.ts} +0 -0
- /package/dist/{platform-SKvEfCBh.esm.js → platform-uIVQUnJP.esm.js} +0 -0
- /package/dist/{types-DvGZI7BF.d.ts → types-D_IceWxT.d.ts} +0 -0
- /package/dist/{types-ya0LN_MX.d.ts → types-Duy2rDxF.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
1
|
+
import { t as api } from "./api-DsbUi7TO.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/capabilities/IBrowserEnvironmentCapability.ts
|
|
4
4
|
function getTimestamp() {
|
|
@@ -289,6 +289,22 @@ function moduleClosed(module, screen, payload) {
|
|
|
289
289
|
payload
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
|
+
function background(module, screen, payload) {
|
|
293
|
+
screenEvent({
|
|
294
|
+
module,
|
|
295
|
+
screen,
|
|
296
|
+
code: "background",
|
|
297
|
+
payload
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
function foreground(module, screen, payload) {
|
|
301
|
+
screenEvent({
|
|
302
|
+
module,
|
|
303
|
+
screen,
|
|
304
|
+
code: "foreground",
|
|
305
|
+
payload
|
|
306
|
+
});
|
|
307
|
+
}
|
|
292
308
|
function screenOpened(module, screen, payload) {
|
|
293
309
|
screenEvent({
|
|
294
310
|
module,
|
|
@@ -332,16 +348,9 @@ function captureAttemptFinished(module, screen, payload) {
|
|
|
332
348
|
|
|
333
349
|
//#endregion
|
|
334
350
|
//#region src/internal/events/managerInstrumentation.ts
|
|
335
|
-
function normalizeSegment(segment) {
|
|
336
|
-
if (typeof segment !== "string") return "";
|
|
337
|
-
return segment.trim().replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
338
|
-
}
|
|
339
|
-
function normalizeDottedPath(path) {
|
|
340
|
-
return path.split("+").map((branch) => branch.split(".").map((segment) => normalizeSegment(segment)).filter((segment) => segment.length > 0).join(".")).filter((branch) => branch.length > 0).join("+");
|
|
341
|
-
}
|
|
342
351
|
function stateValueToScreenSegment(value) {
|
|
343
352
|
if (typeof value === "string" || typeof value === "number") {
|
|
344
|
-
const segment =
|
|
353
|
+
const segment = String(value).trim();
|
|
345
354
|
return segment.length > 0 ? segment : void 0;
|
|
346
355
|
}
|
|
347
356
|
if (typeof value !== "object" || value === null) return;
|
|
@@ -352,52 +361,64 @@ function stateValueToScreenSegment(value) {
|
|
|
352
361
|
});
|
|
353
362
|
if (entries.length === 0) return;
|
|
354
363
|
const branches = entries.map(([key, nestedValue]) => {
|
|
355
|
-
const
|
|
364
|
+
const trimmedKey = key.trim();
|
|
356
365
|
const nestedSegment = stateValueToScreenSegment(nestedValue);
|
|
357
|
-
if (
|
|
358
|
-
if (nestedSegment === void 0) return
|
|
359
|
-
return `${
|
|
366
|
+
if (trimmedKey.length === 0) return nestedSegment;
|
|
367
|
+
if (nestedSegment === void 0) return trimmedKey;
|
|
368
|
+
return `${trimmedKey}.${nestedSegment}`;
|
|
360
369
|
}).filter((branch) => branch !== void 0 && branch.length > 0);
|
|
361
370
|
if (branches.length === 0) return;
|
|
362
371
|
return branches.join("+");
|
|
363
372
|
}
|
|
364
373
|
function buildScreenName(moduleName, screenName) {
|
|
365
|
-
const
|
|
366
|
-
const
|
|
367
|
-
if (
|
|
368
|
-
if (
|
|
369
|
-
return `${
|
|
374
|
+
const trimmedModuleName = typeof moduleName === "string" ? moduleName.trim() : "";
|
|
375
|
+
const trimmedScreen = screenName.trim();
|
|
376
|
+
if (trimmedModuleName.length === 0) return trimmedScreen;
|
|
377
|
+
if (trimmedScreen.length === 0) return trimmedModuleName;
|
|
378
|
+
return `${trimmedModuleName}.${trimmedScreen}`;
|
|
370
379
|
}
|
|
371
380
|
function getDefaultManagerScreenName(snapshot) {
|
|
372
381
|
return stateValueToScreenSegment(snapshot.value);
|
|
373
382
|
}
|
|
374
383
|
function getManagerScreenName(moduleName, snapshot, options) {
|
|
375
384
|
const eventScreen = options?.getEventScreenName?.(snapshot);
|
|
376
|
-
if (eventScreen !== void 0)
|
|
385
|
+
if (eventScreen !== void 0) {
|
|
386
|
+
const trimmed = eventScreen.trim();
|
|
387
|
+
return trimmed.length > 0 ? trimmed : void 0;
|
|
388
|
+
}
|
|
377
389
|
const mappedScreen = options?.getScreenName?.(snapshot) ?? getDefaultManagerScreenName(snapshot);
|
|
378
390
|
if (mappedScreen === void 0) return;
|
|
379
391
|
return buildScreenName(moduleName, mappedScreen);
|
|
380
392
|
}
|
|
381
393
|
function isErrorLikeSegment(segment) {
|
|
382
|
-
|
|
394
|
+
const lower = segment.toLowerCase();
|
|
395
|
+
return lower === "error" || lower.includes("error") || lower.includes("failed") || lower.includes("failure");
|
|
383
396
|
}
|
|
384
397
|
function getDefaultManagerErrorName(snapshot) {
|
|
385
398
|
const screenSegment = stateValueToScreenSegment(snapshot.value);
|
|
386
399
|
if (screenSegment === void 0) return;
|
|
387
|
-
const
|
|
388
|
-
if (
|
|
389
|
-
if (
|
|
390
|
-
if (!isErrorLikeSegment(
|
|
391
|
-
return `error.${
|
|
400
|
+
const trimmedSegment = screenSegment.trim();
|
|
401
|
+
if (trimmedSegment.length === 0) return;
|
|
402
|
+
if (trimmedSegment.toLowerCase() === "error") return "error.unknown";
|
|
403
|
+
if (!isErrorLikeSegment(trimmedSegment)) return;
|
|
404
|
+
return `error.${trimmedSegment}`;
|
|
392
405
|
}
|
|
393
406
|
function createManagerInstrumentation(moduleName, options) {
|
|
407
|
+
const visibilityObserver = options?.visibilityObserver;
|
|
394
408
|
return {
|
|
395
409
|
moduleName,
|
|
396
410
|
onModuleOpened: moduleOpened,
|
|
397
411
|
onModuleClosed: moduleClosed,
|
|
398
412
|
onScreenOpened: screenOpened,
|
|
399
413
|
onScreenClosed: screenClosed,
|
|
400
|
-
onErrorTriggered: errorTriggered,
|
|
414
|
+
onErrorTriggered: (moduleName$1, errorName, screenName, payload) => errorTriggered(moduleName$1, screenName, {
|
|
415
|
+
errorName,
|
|
416
|
+
...payload
|
|
417
|
+
}),
|
|
418
|
+
subscribeVisibility: visibilityObserver ? (onChange) => visibilityObserver.onVisibilityChange(onChange) : void 0,
|
|
419
|
+
getInitialVisibility: visibilityObserver ? () => visibilityObserver.isVisible() : void 0,
|
|
420
|
+
onBackground: visibilityObserver ? background : void 0,
|
|
421
|
+
onForeground: visibilityObserver ? foreground : void 0,
|
|
401
422
|
onElementClicked: (moduleName$1, screenName, payload) => elementClicked(moduleName$1, screenName, payload),
|
|
402
423
|
onCaptureAttemptFinished: (moduleName$1, screenName, payload) => captureAttemptFinished(moduleName$1, screenName, payload),
|
|
403
424
|
getScreenName: (snapshot) => getManagerScreenName(moduleName, snapshot, {
|
|
@@ -414,185 +435,45 @@ function createManagerInstrumentation(moduleName, options) {
|
|
|
414
435
|
}
|
|
415
436
|
|
|
416
437
|
//#endregion
|
|
417
|
-
//#region src/internal/events/
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
qeSignature: "QE_SIGNATURE",
|
|
457
|
-
crossDocumentDataMatch: "CROSS_DOCUMENT_DATA_MATCH",
|
|
458
|
-
customFields: "CUSTOM_FIELDS",
|
|
459
|
-
fieldComparison: "FIELD_COMPARISON",
|
|
460
|
-
watchlistForBusiness: "WATCHLIST_FOR_BUSINESS",
|
|
461
|
-
trustGraph: "TRUST_GRAPH",
|
|
462
|
-
fiscalQr: "FISCAL_QR"
|
|
463
|
-
};
|
|
464
|
-
const eventScreenNames = {
|
|
465
|
-
faceMatch: "FACE_MATCH",
|
|
466
|
-
faceCaptureTutorial: "SELFIE_CAPTURE_TUTORIAL",
|
|
467
|
-
faceCaptureCamera: "SELFIE_CAMERA_CAPTURE",
|
|
468
|
-
faceCaptureError: "SELFIE_ATTEMPT_FAILED",
|
|
469
|
-
faceCaptureSuccess: "SELFIE_UPLOAD_SUCCEEDED",
|
|
470
|
-
faceCaptureUpload: "SELFIE_UPLOAD_PROGRESS",
|
|
471
|
-
mlConsent: "MACHINE_LEARNING_CONSENT",
|
|
472
|
-
combinedConsent: "COMBINED_CONSENT",
|
|
473
|
-
curpEnter: "ENTER_CURP",
|
|
474
|
-
curpValidate: "VALIDATE_CURP",
|
|
475
|
-
curpGenerate: "GENERATE_CURP",
|
|
476
|
-
curpValidation: "CURP_VALIDATION_PROGRESS",
|
|
477
|
-
curpValidationFailed: "CURP_VALIDATION_FAILED",
|
|
478
|
-
curpValidationSuccess: "CURP_VALIDATION_SUCCEEDED",
|
|
479
|
-
qrTutorial: "QR_TUTORIAL",
|
|
480
|
-
qrScan: "QR_SCAN",
|
|
481
|
-
smsOtp: "OTP",
|
|
482
|
-
simpleOTP: "OTP",
|
|
483
|
-
signatureInput: "SIGNATURE_INPUT",
|
|
484
|
-
frontTutorial: "FRONT_ID_CAPTURE_TUTORIAL",
|
|
485
|
-
frontCameraCapture: "FRONT_ID_CAMERA_CAPTURE",
|
|
486
|
-
frontHelp: "FRONT_ID_HELP",
|
|
487
|
-
frontReviewPhoto: "FRONT_ID_REVIEW_PHOTO",
|
|
488
|
-
frontUploadProgress: "FRONT_ID_UPLOAD_PROGRESS",
|
|
489
|
-
frontAttemptFailed: "FRONT_ID_ATTEMPT_FAILED",
|
|
490
|
-
frontUploadSuccess: "FRONT_ID_UPLOAD_SUCCEEDED",
|
|
491
|
-
backTutorial: "BACK_ID_CAPTURE_TUTORIAL",
|
|
492
|
-
backCameraCapture: "BACK_ID_CAMERA_CAPTURE",
|
|
493
|
-
backReviewPhoto: "BACK_ID_REVIEW_PHOTO",
|
|
494
|
-
backUploadProgress: "BACK_ID_UPLOAD_PROGRESS",
|
|
495
|
-
backAttemptFailed: "BACK_ID_ATTEMPT_FAILED",
|
|
496
|
-
backUploadSuccess: "BACK_ID_UPLOAD_SUCCEEDED",
|
|
497
|
-
backHelp: "BACK_ID_HELP",
|
|
498
|
-
passportTutorial: "TUTORIAL_PASSPORT",
|
|
499
|
-
documentTutorial: "DOCUMENT_CAPTURE_TUTORIAL",
|
|
500
|
-
documentCameraCapture: "DOCUMENT_CAMERA_CAPTURE",
|
|
501
|
-
documentHelp: "DOCUMENT_HELP",
|
|
502
|
-
documentReviewPhoto: "DOCUMENT_REVIEW_PHOTO",
|
|
503
|
-
documentUploadProgress: "DOCUMENT_UPLOAD_IN_PROGRESS",
|
|
504
|
-
documentAttemptFailed: "DOCUMENT_ATTEMPT_FAILED",
|
|
505
|
-
documentUploadSuccess: "DOCUMENT_UPLOAD_SUCCEEDED",
|
|
506
|
-
conferenceWait: "CONFERENCE_WAIT",
|
|
507
|
-
conferenceVideoChat: "CONFERENCE_VIDEO_CHAT",
|
|
508
|
-
conferenceMessageChat: "CONFERENCE_MESSAGE_CHAT",
|
|
509
|
-
videoSelfieTutorial: "VIDEO_SELFIE_TUTORIAL",
|
|
510
|
-
videoSelfie: "VIDEO_SELFIE",
|
|
511
|
-
videoSelfieFaceCapture: "VIDEO_SELFIE_FACE_CAPTURE",
|
|
512
|
-
videoSelfieFaceUploadProgress: "VIDEO_SELFIE_FACE_UPLOAD_PROGRESS",
|
|
513
|
-
videoSelfieFaceAttemptFailed: "VIDEO_SELFIE_FACE_ATTEMPT_FAILED",
|
|
514
|
-
videoSelfieFaceUploadSucceeded: "VIDEO_SELFIE_FACE_UPLOAD_SUCCEEDED",
|
|
515
|
-
videoSelfieFrontIdCapture: "VIDEO_SELFIE_FRONT_ID_CAPTURE",
|
|
516
|
-
videoSelfieFrontIdUploadProgress: "VIDEO_SELFIE_FRONT_ID_UPLOAD_PROGRESS",
|
|
517
|
-
videoSelfieFrontIdAttemptFailed: "VIDEO_SELFIE_FRONT_ID_ATTEMPT_FAILED",
|
|
518
|
-
videoSelfieFrontIdUploadSucceeded: "VIDEO_SELFIE_FRONT_ID_UPLOAD_SUCCEEDED",
|
|
519
|
-
videoSelfieBackIdCapture: "VIDEO_SELFIE_BACK_ID_CAPTURE",
|
|
520
|
-
videoSelfieBackIdUploadProgress: "VIDEO_SELFIE_BACK_ID_UPLOAD_PROGRESS",
|
|
521
|
-
videoSelfieBackIdAttemptFailed: "VIDEO_SELFIE_BACK_ID_ATTEMPT_FAILED",
|
|
522
|
-
videoSelfieBackIdUploadSucceeded: "VIDEO_SELFIE_BACK_ID_UPLOAD_SUCCEEDED",
|
|
523
|
-
videoSelfieDocumentCapture: "VIDEO_SELFIE_DOCUMENT_CAPTURE",
|
|
524
|
-
videoSelfieVoiceQuestion: "VIDEO_SELFIE_VOICE_QUESTION",
|
|
525
|
-
videoSelfieVoiceFinalQuestion: "VIDEO_SELFIE_VOICE_FINAL_QUESTION",
|
|
526
|
-
videoSelfieVideoUpload: "VIDEO SELFIE VIDEO UPLOAD",
|
|
527
|
-
ekycInput: "EKYC_INPUT",
|
|
528
|
-
ekycProgress: "EKYC_PROGRESS",
|
|
529
|
-
ekycSucceeded: "EKYC_SUCCEEDED",
|
|
530
|
-
ekycFailed: "EKYC_FAILED",
|
|
531
|
-
forms: "FORMS",
|
|
532
|
-
globalWatchListInput: "GLOBAL_WATCHLIST_INPUT",
|
|
533
|
-
globalWatchListProgress: "GLOBAL_WATCHLIST_PROGRESS",
|
|
534
|
-
globalWatchListSuccess: "GLOBAL_WATCHLIST_SUCCEEDED",
|
|
535
|
-
globalWatchListFailed: "GLOBAL_WATCHLIST_FAILED",
|
|
536
|
-
customWatchListInput: "CUSTOM_WATCHLIST_INPUT",
|
|
537
|
-
customWatchListProgress: "CUSTOM_WATCHLIST_PROGRESS",
|
|
538
|
-
customWatchListSuccess: "CUSTOM_WATCHLIST_SUCCEEDED",
|
|
539
|
-
customWatchListFailed: "CUSTOM_WATCHLIST_FAILED",
|
|
540
|
-
emailInput: "EMAIL_INPUT",
|
|
541
|
-
phoneInput: "PHONE_INPUT",
|
|
542
|
-
instantVerify: "INSTANT_VERIFY",
|
|
543
|
-
authFace: "AUTH_FACE",
|
|
544
|
-
authFaceError: "AUTH_FACE_ATTEMPT_FAILED",
|
|
545
|
-
authFaceUpload: "AUTH_FACE_UPLOAD_PROGRESS",
|
|
546
|
-
authFaceUploadSuccess: "AUTH_FACE_UPLOAD_SUCCEEDED",
|
|
547
|
-
authFaceUploadFailed: "AUTH_FACE_UPLOAD_FAILED",
|
|
548
|
-
authFaceTutorial: "AUTH_FACE_TUTORIAL",
|
|
549
|
-
customModuleCallback: "CUSTOM_MODULE_CALLBACK",
|
|
550
|
-
customModuleProcessing: "CUSTOM_MODULE_PROCESSING",
|
|
551
|
-
digitalIdFileSelection: "DIGITAL_ID_FILE_SELECTION",
|
|
552
|
-
digitalIdFileReview: "DIGITAL_ID_FILE_REVIEW",
|
|
553
|
-
digitalIdUploadProgress: "DIGITAL_ID_UPLOAD_PROGRESS",
|
|
554
|
-
digitalIdUploadSuccess: "DIGITAL_ID_UPLOAD_SUCCEEDED",
|
|
555
|
-
digitalIdUploadFailed: "DIGITAL_ID_UPLOAD_FAILED",
|
|
556
|
-
digitalIdAnalysisProgress: "DIGITAL_ID_ANALYSIS_PROGRESS",
|
|
557
|
-
digitalIdVerificationSuccess: "DIGITAL_ID_VERIFICATION_SUCCESS",
|
|
558
|
-
digitalIdVerificationFailed: "DIGITAL_ID_VERIFICATION_FAILED",
|
|
559
|
-
ekybForm: "EKYB_FORM"
|
|
560
|
-
};
|
|
561
|
-
const videoSelfieEvents = {
|
|
562
|
-
imageTooBlurry: "imageTooBlurry",
|
|
563
|
-
fillFrame: "fillFrame",
|
|
564
|
-
checkCameraOrLighting: "checkCameraOrLighting",
|
|
565
|
-
frontIdCaptureStarted: "frontIdCaptureStarted",
|
|
566
|
-
lookAtCamera: "lookAtCamera",
|
|
567
|
-
moveCloser: "moveCloser",
|
|
568
|
-
lookingForFrontId: "lookingForFrontId",
|
|
569
|
-
lookingForBackId: "lookingForBackId",
|
|
570
|
-
cameraSwitchToBack: "cameraSwitchToBack",
|
|
571
|
-
cameraSwitchToFront: "cameraSwitchToFront",
|
|
572
|
-
audioStreamOpened: "audioStreamOpened",
|
|
573
|
-
audioStreamClosed: "audioStreamClosed",
|
|
574
|
-
videoSelfieVideoUploadInProgress: "videoSelfieVideoUploadInProgress",
|
|
575
|
-
videoSelfieTosNotAccepted: "videoSelfieTosNotAccepted",
|
|
576
|
-
videoSelfieTosAccepted: "videoSelfieTosAccepted",
|
|
577
|
-
videoSelfieStreamCreated: "videoSelfieStreamCreated",
|
|
578
|
-
videoSelfieStreamDestroyed: "videoSelfieStreamDestroyed",
|
|
579
|
-
videoSelfieReconnecting: "videoSelfieReconnecting",
|
|
580
|
-
videoSelfieReconnected: "videoSelfieReconnected"
|
|
581
|
-
};
|
|
582
|
-
const tutorialScreenNamesMapper = {
|
|
583
|
-
passport: eventScreenNames.passportTutorial,
|
|
584
|
-
front: eventScreenNames.frontTutorial,
|
|
585
|
-
back: eventScreenNames.backTutorial,
|
|
586
|
-
selfie: eventScreenNames.faceCaptureTutorial
|
|
587
|
-
};
|
|
588
|
-
const cameraScreenNamesMapper = {
|
|
589
|
-
front: "front",
|
|
590
|
-
back: "back",
|
|
591
|
-
passport: "passport",
|
|
592
|
-
creditCard: "front",
|
|
593
|
-
creditCardBack: "back",
|
|
594
|
-
document: "document"
|
|
595
|
-
};
|
|
438
|
+
//#region src/internal/events/topLevelStateName.ts
|
|
439
|
+
/**
|
|
440
|
+
* Returns the top-level state name from an XState `snapshot.value`.
|
|
441
|
+
*
|
|
442
|
+
* XState 5 represents the current state in one of two shapes:
|
|
443
|
+
*
|
|
444
|
+
* - Leaf state on the root: a plain string (`'idle'`, `'processing'`).
|
|
445
|
+
* - Compound state: an object with exactly one key naming the active
|
|
446
|
+
* top-level state, e.g. `{ uploading: 'holding' }`. Nested compounds
|
|
447
|
+
* may recurse, but the top-level key is always at index 0.
|
|
448
|
+
*
|
|
449
|
+
* Used by Figma-aligned `get*ScreenName` mappers to dispatch on the
|
|
450
|
+
* top-level state without coupling to deeper substate shapes. The
|
|
451
|
+
* `keys.length === 1` guard is defensive — XState invariants make a
|
|
452
|
+
* compound `snapshot.value` always single-keyed, but we return
|
|
453
|
+
* `undefined` for malformed/unknown shapes rather than risk an arbitrary
|
|
454
|
+
* key from a parallel-state-like object.
|
|
455
|
+
*
|
|
456
|
+
* Intentionally typed as `value: unknown` so callers can pass
|
|
457
|
+
* `snapshot.value` from any machine without prior narrowing.
|
|
458
|
+
*
|
|
459
|
+
* @example
|
|
460
|
+
* ```ts
|
|
461
|
+
* topLevelStateName('idle'); // 'idle'
|
|
462
|
+
* topLevelStateName({ uploading: 'holding' }); // 'uploading'
|
|
463
|
+
* topLevelStateName({ a: 1, b: 2 }); // undefined (not single-keyed)
|
|
464
|
+
* topLevelStateName(undefined); // undefined
|
|
465
|
+
* ```
|
|
466
|
+
*/
|
|
467
|
+
function topLevelStateName(value) {
|
|
468
|
+
if (typeof value === "string") return value;
|
|
469
|
+
if (typeof value === "object" && value !== null) {
|
|
470
|
+
const keys = Object.keys(value);
|
|
471
|
+
if (keys.length === 1) {
|
|
472
|
+
const key = keys[0];
|
|
473
|
+
return typeof key === "string" ? key : void 0;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
596
477
|
|
|
597
478
|
//#endregion
|
|
598
|
-
export {
|
|
479
|
+
export { getTimestamp as _, moduleClosed as a, screenEvent as c, addEvent as d, getAnalyticsBatcher as f, createEventBus as g, subscribeEvent as h, elementClicked as i, screenOpened as l, setAnalyticsBatcher as m, createManagerInstrumentation as n, moduleOpened as o, resetAnalyticsBatcher as p, captureAttemptFinished as r, screenClosed as s, topLevelStateName as t, createAnalyticsBatchingService as u, revokeObjectURL as v };
|
package/dist/events.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ declare const eventModuleNames: {
|
|
|
19
19
|
readonly authentication: "AUTHENTICATION";
|
|
20
20
|
readonly authFace: "authFace";
|
|
21
21
|
readonly mlConsent: "ML_CONSENT";
|
|
22
|
-
readonly combinedConsent: "
|
|
23
|
-
readonly curpValidation: "
|
|
22
|
+
readonly combinedConsent: "datasharingconsent";
|
|
23
|
+
readonly curpValidation: "CURP";
|
|
24
24
|
readonly faceMatch: "FACE_MATCH";
|
|
25
25
|
readonly qr: "QR";
|
|
26
26
|
readonly videoSelfie: "VIDEO_ONBOARDING";
|
|
@@ -30,33 +30,39 @@ declare const eventModuleNames: {
|
|
|
30
30
|
readonly id: "ID";
|
|
31
31
|
readonly idCapture: "idCapture";
|
|
32
32
|
readonly idOcr: "ID_OCR";
|
|
33
|
-
readonly document: "
|
|
33
|
+
readonly document: "documentCapture";
|
|
34
34
|
readonly creditCard: "CREDIT_CARD_FRONT";
|
|
35
35
|
readonly creditCardBack: "CREDIT_CARD_BACK";
|
|
36
36
|
readonly conference: "CONFERENCE";
|
|
37
37
|
readonly otp: "OTP";
|
|
38
|
-
readonly signature: "
|
|
39
|
-
readonly ekyc: "
|
|
40
|
-
readonly watchlist: "
|
|
38
|
+
readonly signature: "eSign";
|
|
39
|
+
readonly ekyc: "eKYC";
|
|
40
|
+
readonly watchlist: "watchlist";
|
|
41
41
|
readonly globalWatchList: "GLOBAL_WATCHLIST";
|
|
42
|
-
readonly customWatchList: "
|
|
43
|
-
readonly email: "
|
|
44
|
-
readonly phone: "
|
|
42
|
+
readonly customWatchList: "customWatchlist";
|
|
43
|
+
readonly email: "email";
|
|
44
|
+
readonly phone: "phoneNumber";
|
|
45
45
|
readonly instantVerifyEmail: "INSTANT_VERIFY_EMAIL";
|
|
46
46
|
readonly instantVerifyConsent: "INSTANT_VERIFY_CONSENT";
|
|
47
|
-
readonly forms: "
|
|
47
|
+
readonly forms: "forms";
|
|
48
48
|
readonly customModule: "CUSTOM_MODULE";
|
|
49
|
-
readonly geolocation: "
|
|
50
|
-
readonly ekyb: "
|
|
49
|
+
readonly geolocation: "Geolocation";
|
|
50
|
+
readonly ekyb: "eKYB";
|
|
51
51
|
readonly identityReuse: "IDENTITY_REUSE";
|
|
52
|
-
readonly antifraud: "
|
|
53
|
-
readonly aeSignature: "
|
|
54
|
-
readonly qeSignature: "
|
|
52
|
+
readonly antifraud: "antifraud";
|
|
53
|
+
readonly aeSignature: "AdSign";
|
|
54
|
+
readonly qeSignature: "QSign";
|
|
55
55
|
readonly crossDocumentDataMatch: "CROSS_DOCUMENT_DATA_MATCH";
|
|
56
56
|
readonly customFields: "CUSTOM_FIELDS";
|
|
57
57
|
readonly fieldComparison: "FIELD_COMPARISON";
|
|
58
|
-
readonly
|
|
58
|
+
readonly personhood: "PERSONHOOD";
|
|
59
|
+
readonly watchlistForBusiness: "watchlistForBusiness";
|
|
59
60
|
readonly trustGraph: "TRUST_GRAPH";
|
|
61
|
+
readonly certificateIssuance: "CERTIFICATE_ISSUANCE";
|
|
62
|
+
readonly governmentValidation: "GovernmentRecordValidation";
|
|
63
|
+
readonly documentUpload: "document-upload";
|
|
64
|
+
readonly home: "home";
|
|
65
|
+
readonly workflow: "workflow";
|
|
60
66
|
readonly fiscalQr: "FISCAL_QR";
|
|
61
67
|
};
|
|
62
68
|
declare const eventScreenNames: {
|
|
@@ -169,6 +175,7 @@ declare const videoSelfieEvents: {
|
|
|
169
175
|
readonly cameraSwitchToFront: "cameraSwitchToFront";
|
|
170
176
|
readonly audioStreamOpened: "audioStreamOpened";
|
|
171
177
|
readonly audioStreamClosed: "audioStreamClosed";
|
|
178
|
+
readonly videoSelfieQuestionAnswered: "videoSelfieQuestionAnswered";
|
|
172
179
|
readonly videoSelfieVideoUploadInProgress: "videoSelfieVideoUploadInProgress";
|
|
173
180
|
readonly videoSelfieTosNotAccepted: "videoSelfieTosNotAccepted";
|
|
174
181
|
readonly videoSelfieTosAccepted: "videoSelfieTosAccepted";
|
package/dist/events.esm.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import { a as
|
|
1
|
+
import "./api-DsbUi7TO.esm.js";
|
|
2
|
+
import { a as moduleClosed, c as screenEvent, d as addEvent, h as subscribeEvent, i as elementClicked, l as screenOpened, o as moduleOpened, r as captureAttemptFinished, s as screenClosed } from "./events-CqGY1yMq.esm.js";
|
|
3
|
+
import { a as videoSelfieEvents, i as tutorialScreenNamesMapper, n as eventModuleNames, r as eventScreenNames, t as cameraScreenNamesMapper } from "./types-ElOJAGaM.esm.js";
|
|
3
4
|
|
|
4
5
|
export { addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, moduleClosed, moduleOpened, screenClosed, screenEvent, screenOpened, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -1,29 +1,38 @@
|
|
|
1
|
-
import "./warmup-
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { i as
|
|
6
|
-
import
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./types-
|
|
10
|
-
import "./types-
|
|
11
|
-
import
|
|
12
|
-
import "./
|
|
13
|
-
import "./
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import "./
|
|
21
|
-
import {
|
|
22
|
-
import { a as
|
|
23
|
-
import { a as
|
|
24
|
-
import { a as
|
|
25
|
-
import { a as
|
|
26
|
-
import { a as
|
|
1
|
+
import "./warmup-BJZPQIiX.js";
|
|
2
|
+
import { i as fromPromise, r as fromCallback } from "./StateMachine-C_AY4cs7.js";
|
|
3
|
+
import "./Manager-CJ3G2zqi.js";
|
|
4
|
+
import { n as createActor } from "./Actor-CGEelYtQ.js";
|
|
5
|
+
import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-DpIvbrZP.js";
|
|
6
|
+
import "./IVisibilityObserverCapability-BbWjgpiF.js";
|
|
7
|
+
import { _ as SendFaceImageResponse, d as FaceCaptureContext, f as FaceCaptureEvent, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager } from "./faceCaptureManagerFactory-CGKbf7zt.js";
|
|
8
|
+
import "./camera-CNVUo-bC.js";
|
|
9
|
+
import "./types-DgGlgyZT.js";
|
|
10
|
+
import "./types-D_IceWxT.js";
|
|
11
|
+
import "./canvas-CJUmoXSD.js";
|
|
12
|
+
import "./createFaceAvatar-B8pFpy6o.js";
|
|
13
|
+
import "./types-BsYXnC5s.js";
|
|
14
|
+
import { i as IStorageCapability, n as VirtualCameraCheckOutput, r as WasmUtilConfig, t as IWasmUtilCapability } from "./IWasmUtilCapability-d2XvzaCk.js";
|
|
15
|
+
import "./types-Duy2rDxF.js";
|
|
16
|
+
import "./types-CxW2e0Ar.js";
|
|
17
|
+
import { n as BaseWasmProvider } from "./FaceDetectionProvider-B78455D4.js";
|
|
18
|
+
import "./StreamCanvasCapture-DS1TOoiH.js";
|
|
19
|
+
import "./deepsightService-CMB9XjES.js";
|
|
20
|
+
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-R0Jw5sjb.js";
|
|
21
|
+
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-CdPbNS2H.js";
|
|
22
|
+
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-DufVo9D9.js";
|
|
23
|
+
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-DqZZ94Gt.js";
|
|
24
|
+
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-Co6LZAHT.js";
|
|
25
|
+
import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-CUYLOj9g.js";
|
|
26
|
+
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-fHASH6uo.js";
|
|
27
|
+
import "./otp-M4iy57XY.js";
|
|
28
|
+
import { A as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-BVdvfJys.js";
|
|
29
|
+
import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BOTcjXgs.js";
|
|
30
|
+
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-TWKbXuvY.js";
|
|
31
|
+
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-DdLqDeB2.js";
|
|
32
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-Bmdjo14S.js";
|
|
33
|
+
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-CJzrmM91.js";
|
|
34
|
+
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-Br0KZK1G.js";
|
|
35
|
+
import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-Cs50eRlC.js";
|
|
27
36
|
|
|
28
37
|
//#region src/modules/authentication/authenticationUploadService.d.ts
|
|
29
38
|
type AuthenticationUploadResponse = {
|
|
@@ -92,6 +101,7 @@ declare class WasmUtilProvider extends BaseWasmProvider implements IWasmUtilCapa
|
|
|
92
101
|
setBackgroundMode(backgroundMode: boolean): void;
|
|
93
102
|
setZc(zc: string): void;
|
|
94
103
|
setInspectorOpened(opened: boolean): void;
|
|
104
|
+
getInspectorOpened(): boolean;
|
|
95
105
|
/**
|
|
96
106
|
* Toggles the WASM module's production mode. When `true`, the native module
|
|
97
107
|
* suppresses its verbose debug logging/console output; when `false`, those
|
|
@@ -144,4 +154,4 @@ declare function getDeviceFingerprintInfo(): Promise<DeviceFingerprintInfo>;
|
|
|
144
154
|
//#region src/internal/fingerprint/fingerprintApi.d.ts
|
|
145
155
|
declare function getFingerprint(disableIpify?: boolean): Promise<FingerprintResult>;
|
|
146
156
|
//#endregion
|
|
147
|
-
export { type AntifraudActor, type AntifraudManager, type AntifraudState, type AuthenticationManager, type AuthenticationState, type AuthenticationUploadResponse, BrowserStorageProvider, type CaptureIdResponse, type ConsentActor, type ConsentManager, type ConsentState, type CpfOcrActor, type CpfOcrManager, type CpfOcrState, type CurpValidationActor, type CurpValidationManager, type CurpValidationState, type DeviceFingerprintInfo, type EmailActor, type EmailManager, type EmailState, type FaceCaptureContext, type FaceCaptureEvent, type FaceCaptureInput, type FaceCaptureManager, type FaceCaptureManagerState, type FieldComparisonActor, type FieldComparisonManager, type FieldComparisonState, type FingerprintResult, type IdCaptureManager, type IdCaptureState, type IdentityReuseActor, type IdentityReuseManager, type IdentityReuseState, type MandatoryConsentActor, type MandatoryConsentManager, type MandatoryConsentState, type PhoneActor, type PhoneManager, type PhoneState, type ProcessFaceResponse, type RedirectToMobileActor, type RedirectToMobileManager, type RedirectToMobileState, type SelfieManager, type SelfieState, type SendFaceImageResponse, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createConsentManagerFromActor, createCpfOcrManagerFromActor, createCurpValidationManagerFromActor, createEmailManagerFromActor, createFieldComparisonManagerFromActor, createIdCaptureManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
|
|
157
|
+
export { type AntifraudActor, type AntifraudManager, type AntifraudState, type AuthenticationManager, type AuthenticationState, type AuthenticationUploadResponse, BrowserStorageProvider, type CaptureIdResponse, type ConsentActor, type ConsentManager, type ConsentState, type CpfOcrActor, type CpfOcrManager, type CpfOcrState, type CurpValidationActor, type CurpValidationManager, type CurpValidationState, type DeviceFingerprintInfo, type DynamicFormsActor, type DynamicFormsManager, type DynamicFormsState, type EmailActor, type EmailManager, type EmailState, type FaceCaptureContext, type FaceCaptureEvent, type FaceCaptureInput, type FaceCaptureManager, type FaceCaptureManagerState, type FieldComparisonActor, type FieldComparisonManager, type FieldComparisonState, type FingerprintResult, type GeolocationActor, type GeolocationManager, type GeolocationState, type IdCaptureManager, type IdCaptureState, type IdOcrActor, type IdOcrManager, type IdOcrState, type IdentityReuseActor, type IdentityReuseManager, type IdentityReuseState, type MandatoryConsentActor, type MandatoryConsentManager, type MandatoryConsentState, type PhoneActor, type PhoneManager, type PhoneState, type ProcessFaceResponse, type RedirectToMobileActor, type RedirectToMobileManager, type RedirectToMobileState, type SelfieManager, type SelfieState, type SendFaceImageResponse, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createConsentManagerFromActor, createCpfOcrManagerFromActor, createCurpValidationManagerFromActor, createDynamicFormsManagerFromActor, createEmailManagerFromActor, createFieldComparisonManagerFromActor, createGeolocationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
|