@incodetech/core 2.2.0-rc.8 → 2.3.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/THIRD_PARTY_NOTICES.txt +281 -0
- package/dist/BaseWasmProvider-Dyi6dKp1.d.ts +65 -0
- package/dist/{BrowserDiagnosticsCryptoProvider-DslcXorZ.esm.js → BrowserDiagnosticsCryptoProvider-C_9o3L2L.esm.js} +1 -1
- package/dist/{BrowserVisibilityObserverProvider-BX1BiLDK.esm.js → BrowserVisibilityObserverProvider-BrJN1B8A.esm.js} +2 -0
- package/dist/FaceDetectionProvider-DTetAE8H.esm.js +476 -0
- package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +36 -0
- package/dist/{IIdCaptureCapability-DHTT3FC2.d.ts → IIdCaptureCapability-RNiFhvXR.d.ts} +7 -33
- package/dist/IWasmUtilCapability-CXXDA5l1.d.ts +159 -0
- package/dist/{MotionSensorProvider-DGiV77J_.esm.js → MotionSensorProvider-BgTYwg9L.esm.js} +1 -1
- package/dist/{deepsightService-DLVQS_RH.d.ts → StreamCanvasCapture-B3YT2Bt6.d.ts} +54 -41
- package/dist/{StreamCanvasCapture-D2XcXCZ4.esm.js → StreamCanvasCapture-C9jtgBdT.esm.js} +2 -2
- package/dist/{addressSearch-D1XpBdUS.esm.js → addressSearch-BRSu_aGA.esm.js} +1 -1
- package/dist/advanceableErrors-CpF2cBy6.esm.js +21 -0
- package/dist/ae-signature.d.ts +4 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CQFNgSPt.esm.js → antifraudManager-Bg9ynGum.esm.js} +2 -2
- package/dist/{antifraudStateMachine-Bf_JVNwn.esm.js → antifraudStateMachine-BHxehiJZ.esm.js} +1 -1
- package/dist/{apiError-D4rZe9BR.esm.js → apiError-D0v5hFyN.esm.js} +14 -2
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-EfCuQy_Y.esm.js → authenticationManager-C4B4-29g.esm.js} +5 -5
- package/dist/{authenticationManager-BBMGTcwW.d.ts → authenticationManager-DXTIUcma.d.ts} +7 -1
- package/dist/{authenticationStateMachine-B9l3sHEg.esm.js → authenticationStateMachine-DJ0zUm-A.esm.js} +6 -62
- package/dist/avatar.d.ts +1 -2
- package/dist/avatar.esm.js +1 -1
- package/dist/{backCameraStream-CUeYm5eu.esm.js → backCameraStream-BOtyQowf.esm.js} +83 -22
- package/dist/{camera-_2sXMXiF.esm.js → camera-sIa9ceW2.esm.js} +19 -1
- package/dist/camera.esm.js +1 -1
- package/dist/{canvas-E1zGkel4.esm.js → canvas-BxFzWTt-.esm.js} +19 -0
- package/dist/certificate-issuance.d.ts +2 -302
- package/dist/certificate-issuance.esm.js +3 -66
- package/dist/certificateIssuanceManager-Bfvkq7Cy.esm.js +69 -0
- package/dist/certificateIssuanceManager-DCgEidHz.d.ts +312 -0
- package/dist/{certificateIssuanceStateMachine-D_R92TYu.esm.js → certificateIssuanceStateMachine-BBD5h8c4.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-BxjpLZAG.esm.js → consentManager-B5Vqdez-.esm.js} +2 -2
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
- package/dist/{consentStateMachine-D9D4ON8Z.esm.js → consentStateMachine-DbUmqWgV.esm.js} +1 -1
- package/dist/createCameraCycleOwnership-DQ5-F2oW.esm.js +826 -0
- package/dist/{createFaceAvatar-DQKaRise.esm.js → createFaceAvatar-BNHdeFj8.esm.js} +2 -2
- package/dist/createFaceAvatar-BlcTYgJv.d.ts +497 -0
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-CGT0V6RV.esm.js → crossDocumentDataMatchManager-QMOGwHXR.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-6Nmkn5u1.esm.js → curpValidationManager-D1ppROcF.esm.js} +2 -2
- package/dist/{curpValidationManager-DVGr7Fq7.d.ts → curpValidationManager-SSKNrm5Z.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-Ds7KMacK.esm.js → curpValidationStateMachine-DvUPC_8S.esm.js} +1 -1
- package/dist/custom-fields.d.ts +2 -114
- package/dist/custom-fields.esm.js +2 -232
- package/dist/custom-watchlist.d.ts +2 -51
- package/dist/custom-watchlist.esm.js +3 -70
- package/dist/customFieldsManager-2j_PBq4U.esm.js +264 -0
- package/dist/customFieldsManager-8-W2KY4n.d.ts +141 -0
- package/dist/customWatchlistManager-DUVrEdw9.esm.js +73 -0
- package/dist/customWatchlistManager-PBWHr_oM.d.ts +64 -0
- package/dist/{customWatchlistStateMachine-YWSgKLbF.esm.js → customWatchlistStateMachine-qZVgkKgP.esm.js} +1 -1
- package/dist/{deepsightLoader-DEcRUKfT.esm.js → deepsightLoader-Dm7ejW4v.esm.js} +27 -71
- package/dist/device.d.ts +25 -2
- package/dist/device.esm.js +69 -7
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DsQQhWry.esm.js → documentCaptureManager-DR_Wv-3H.esm.js} +2 -2
- package/dist/{documentCaptureManager-B3t0ydtg.d.ts → documentCaptureManager-DensIj5F.d.ts} +83 -83
- package/dist/{documentCaptureStateMachine-BM4Ex_5x.esm.js → documentCaptureStateMachine-CWOATHfE.esm.js} +5 -5
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-D5R_uxLQ.d.ts} +25 -3
- package/dist/{dynamicFormsManager-CmvBSrzC.esm.js → dynamicFormsManager-Dt98SDfV.esm.js} +16 -5
- package/dist/{dynamicFormsStateMachine-C37Rtz1G.esm.js → dynamicFormsStateMachine-obKr4IIp.esm.js} +35 -3
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-Bx6dG89U.esm.js → ekybManager-DNZKrKF3.esm.js} +2 -2
- package/dist/{ekybStateMachine-uscz9zIj.esm.js → ekybStateMachine-DjhHQXZ8.esm.js} +3 -3
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-DgT48ky6.esm.js → ekycManager-CmQBpeiI.esm.js} +2 -2
- package/dist/{ekycStateMachine-CQwqiR-R.esm.js → ekycStateMachine-CmdW2gVm.esm.js} +2 -2
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +2 -2
- package/dist/electronicSignatureManager-Ds-KEVTq.d.ts +2786 -0
- package/dist/{electronicSignatureManager-_QiHi1U5.esm.js → electronicSignatureManager-DzulxM4_.esm.js} +357 -51
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-BY0jeYwR.esm.js → emailManager-B5ek_UfM.esm.js} +2 -2
- package/dist/{emailStateMachine-Crw8QVmc.esm.js → emailStateMachine-CyPFZ7dW.esm.js} +1 -1
- package/dist/{endpoints-CCzL3XD_.esm.js → endpoints-D3B9mUHh.esm.js} +24 -7
- package/dist/{events-DYiyoSlx.esm.js → events-ijlbX_Wx.esm.js} +2 -2
- package/dist/events.d.ts +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +24 -64
- package/dist/extensibility.esm.js +35 -29
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-BxWPpxyd.d.ts → faceCaptureManagerFactory-CvtqcLxs.d.ts} +87 -54
- package/dist/{faceCaptureManagerFactory-Bkueb8mk.esm.js → faceCaptureManagerFactory-pCmG4MeF.esm.js} +68 -7
- package/dist/faceCaptureSetup-BSextack.esm.js +2106 -0
- package/dist/{faceMatchManager-Ri4UbNz0.esm.js → faceMatchManager-Caal2zyV.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-20DdZ3jg.esm.js → faceMatchStateMachine-BUc5FXYy.esm.js} +1 -1
- package/dist/{feature-management-B3Uygq6K.esm.js → feature-management-B0sGlozZ.esm.js} +32 -7
- package/dist/feature-management.d.ts +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-Cg6kPQQx.esm.js → fieldComparisonManager-BIs6HPJG.esm.js} +2 -2
- package/dist/fiscal-qr.d.ts +2 -56
- package/dist/fiscal-qr.esm.js +2 -308
- package/dist/fiscalQrManager-Bp_-3LJr.esm.js +34131 -0
- package/dist/fiscalQrManager-CHcBJwUM.d.ts +68 -0
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +212 -185
- package/dist/flow.esm.js +119 -30
- package/dist/{flowCompletionService-UakxNaeg.esm.js → flowCompletionService-CLtbWhSK.esm.js} +2 -2
- package/dist/{flowServices-CD5m8HqZ.esm.js → flowServices-B5FwukTQ.esm.js} +91 -26
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Bz6wJrfI.esm.js → geolocationManager-DIw-xq9a.esm.js} +2 -2
- package/dist/{geolocationStateMachine-psEJIVjN.esm.js → geolocationStateMachine-DpG0TFOU.esm.js} +3 -3
- package/dist/getBrowser-CBiibsL-.esm.js +19 -0
- package/dist/{getBrowser-DNrQeL4T.esm.js → getBrowser-Cbe1C4Tn.esm.js} +2 -1
- package/dist/{getDeviceClass-9y-kbVDw.esm.js → getDeviceClass-5NYZg9s6.esm.js} +2 -2
- package/dist/getParsedUserAgent-B2iFDql1.esm.js +1278 -0
- package/dist/government-validation.d.ts +2 -85
- package/dist/government-validation.esm.js +3 -120
- package/dist/governmentValidationManager-D02vT4yY.d.ts +63 -0
- package/dist/governmentValidationManager-TjC9iVjH.esm.js +79 -0
- package/dist/governmentValidationStateMachine-D1ZnEqdd.esm.js +54 -0
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/id-ocr.d.ts +2 -2
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +3 -2
- package/dist/id-selfie-flow.esm.js +11 -10
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +29 -5
- package/dist/id.esm.js +48 -46
- package/dist/idCaptureDefaults-BcxjQDI3.esm.js +484 -0
- package/dist/{idCaptureManager-CqrqSjJV.d.ts → idCaptureManager-CvmHOWWd.d.ts} +227 -39
- package/dist/{idCaptureManager-BJAquKfp.esm.js → idCaptureManager-Vby8oYqh.esm.js} +259 -46
- package/dist/{idCaptureServices-CM6ki4IH.esm.js → idCaptureServices-CJIxD9ep.esm.js} +342 -31
- package/dist/idCaptureStateMachine-CmqihkUy.esm.js +5343 -0
- package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-BF_cXZq8.d.ts} +1 -1
- package/dist/{idOcrManager-BIQYQXXj.esm.js → idOcrManager-DHU22hVn.esm.js} +2 -2
- package/dist/{idOcrStateMachine-cSxzHpHt.esm.js → idOcrStateMachine-33UvRAHE.esm.js} +1 -1
- package/dist/{idVerificationManager-JpV_SAsl.esm.js → idVerificationManager-CyaixD0D.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-nPeUNyFq.esm.js → idVerificationStateMachine-BPGrQZEm.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-kNCg9AbD.esm.js → identityReuseManager-CWaNHBO3.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-DyulxDjP.esm.js → identityReuseStateMachine-CQgnATo5.esm.js} +1 -1
- package/dist/{index-CLMF0QLQ.d.ts → index-DLcJT5YP.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-GpvMuz9o.esm.js → invokeOnCaptureCallback-BjzPjJ_p.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-DyPzUmsZ.d.ts → mandatoryConsentManager-CJSyhTpi.d.ts} +5 -5
- package/dist/{mandatoryConsentManager-B4Niyg_u.esm.js → mandatoryConsentManager-Du-m-tZ_.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-B4-1u-L8.esm.js → mandatoryConsentStateMachine-DSDAk7WZ.esm.js} +1 -1
- package/dist/multipartRecordingService-B3C_zlev.esm.js +594 -0
- package/dist/{permissionGuards-KINpmKtI.esm.js → permissionGuards-uYZYFu4J.esm.js} +1 -1
- package/dist/{permissionServices-UvUcOSRb.esm.js → permissionServices-Bj_fyWtv.esm.js} +5 -5
- package/dist/personhood.d.ts +6 -5
- package/dist/personhood.esm.js +10 -10
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-FsJ0W2Ei.esm.js → phoneManager-N1-sbrY4.esm.js} +2 -2
- package/dist/{phoneStateMachine-Ba0wKHyX.esm.js → phoneStateMachine-jl8LJKCo.esm.js} +1 -1
- package/dist/{platform-BJrm5nzZ.esm.js → platform-DkcRc9JV.esm.js} +29 -1
- package/dist/qe-signature.d.ts +5 -3
- package/dist/qe-signature.esm.js +2 -2
- package/dist/recordingsRepository-CCWy13M-.esm.js +72 -0
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-y4VQB11M.esm.js → redirectToMobileManager-DsFzdTwA.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine-Cyv2x0PP.esm.js → redirectToMobileStateMachine-v3otpT-L.esm.js} +1 -1
- package/dist/{rolldown-runtime-FZ4Itg2g.esm.js → rolldown-runtime-FDOR9p9I.esm.js} +1 -19
- package/dist/{runChildModule-BR2RIfRg.esm.js → runChildModule-TuyGE00X.esm.js} +3 -21
- package/dist/safeStorage-B-trhxg6.esm.js +423 -0
- package/dist/{sdkVersion-BWOdgLZ1.esm.js → sdkVersion-CLxKvdyz.esm.js} +1 -1
- package/dist/selfie.d.ts +5 -5
- package/dist/selfie.esm.js +14 -76
- package/dist/{selfieErrorUtils-C2PYBVsp.esm.js → selfieErrorUtils-C77GXJH6.esm.js} +30 -4
- package/dist/{selfieManager-BlImAV-k.esm.js → selfieManager-CihVnODO.esm.js} +5 -5
- package/dist/{selfieManager-DwlCppg0.d.ts → selfieManager-D1KRJ39M.d.ts} +8 -11
- package/dist/selfieStateMachine-fwMmNtOi.esm.js +69 -0
- package/dist/{session-Bp17qJsu.esm.js → session-BHIeAamR.esm.js} +4 -5
- package/dist/session.d.ts +21 -11
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-CcqQD9Q4.esm.js → sessionInitializer-BLoK7SP9.esm.js} +187 -68
- package/dist/{setup-BgoWtvIS.d.ts → setup-Cv-JM9QC.d.ts} +63 -69
- package/dist/{setup-CXj5ozZN.esm.js → setup-msLybMbC.esm.js} +226 -100
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-Ca43yhwk.esm.js → signatureManager-ChsB-nMD.esm.js} +2 -2
- package/dist/{signatureStateMachine-K1LMRrxG.esm.js → signatureStateMachine-BHPwkJZS.esm.js} +1 -1
- package/dist/{src-0Jurt29N.esm.js → src-35ekGRzK.esm.js} +1 -1
- package/dist/{stats-B0nFKawG.esm.js → stats-DkK-f8JT.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{trueSightService-D05SY_Ij.esm.js → trueSightService-CKrrfV0Q.esm.js} +7 -7
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types-BX_XkMsQ2.d.ts → types-9_esGTPj.d.ts} +1 -1
- package/dist/types-BT_Oalip.d.ts +1 -0
- package/dist/{types-DelMqZLe.d.ts → types-BjSly8cp.d.ts} +1 -1
- package/dist/{types-Hmd7U0JA.d.ts → types-CM-jtjJ2.d.ts} +6 -81
- package/dist/{types-Bdf8_LYB2.d.ts → types-CjKBS37a2.d.ts} +303 -13
- package/dist/{types-DVmXIdzW.d.ts → types-D0gekt4U.d.ts} +38 -5
- package/dist/types-DgDvvzg0.d.ts +10 -0
- package/dist/{types-KPvmag_B.d.ts → types-Do5rEXij.d.ts} +7 -4
- package/dist/types-ZT1XFIJ8.d.ts +6 -0
- package/dist/video-selfie.d.ts +59 -35
- package/dist/video-selfie.esm.js +510 -601
- package/dist/{videoSelfieCameraWarmer-BhTWYfGn.esm.js → videoSelfieCameraWarmer-CB1IzZkt.esm.js} +14 -153
- package/dist/videoSelfieFlowModuleMachine-BUe2uACW.esm.js +32 -0
- package/dist/{videoSelfieStepDetector-D3oo2ofo.d.ts → videoSelfieStepDetector-5YHFe0Mq.d.ts} +21 -5
- package/dist/virtualCameraCheck-WOloJ-do.esm.js +48 -0
- package/dist/warmup-CUUnwYxe.esm.js +714 -0
- package/dist/warmup-Cis2p6O0.d.ts +128 -0
- package/dist/wasm.d.ts +30 -6
- package/dist/wasm.esm.js +36 -4
- package/dist/{wasmDsFlagSync-BqUCwLY8.esm.js → wasmDsFlagSync-B2e8p268.esm.js} +2 -2
- package/dist/{wasmWebClient-DM8lkb0z.esm.js → wasmWebClient-B7baE-Wf.esm.js} +358 -28
- package/dist/watchlist-for-business.d.ts +2 -78
- package/dist/watchlist-for-business.esm.js +3 -102
- package/dist/watchlist.esm.js +2 -2
- package/dist/watchlistForBusinessManager-CpuuB1J2.esm.js +107 -0
- package/dist/watchlistForBusinessManager-CsnJnG-C.d.ts +99 -0
- package/dist/{watchlistForBusinessStateMachine-CxFnlshm.esm.js → watchlistForBusinessStateMachine-DEzgjz7C.esm.js} +13 -6
- package/dist/{watchlistManager-LoNZH9qm.esm.js → watchlistManager-CI8BHFob.esm.js} +2 -2
- package/dist/{watchlistStateMachine-DIKQDoUT.esm.js → watchlistStateMachine-DvOby3a-.esm.js} +1 -1
- package/dist/workflow.d.ts +12 -8
- package/dist/workflow.esm.js +48 -39
- package/package.json +4 -10
- package/dist/BrowserStorageProvider-k-FDkC4W.esm.js +0 -67
- package/dist/FaceDetectionProvider-Mh6q3EbA.d.ts +0 -349
- package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +0 -23
- package/dist/IStorageCapability-ORkQfK3F.d.ts +0 -242
- package/dist/OpenViduRecordingProvider-Du98qevC.esm.js +0 -85
- package/dist/createFaceAvatar-BEj18KXi.d.ts +0 -50
- package/dist/document-upload.d.ts +0 -325
- package/dist/document-upload.esm.js +0 -197
- package/dist/electronicSignatureManager-CcUXQZS7.d.ts +0 -1300
- package/dist/faceCaptureSetup-BECAis8R.esm.js +0 -863
- package/dist/getBrowser-Cb8Zgrgp.esm.js +0 -7
- package/dist/getParsedUserAgent-pJjATANs.esm.js +0 -1622
- package/dist/governmentValidationStateMachine-CK9DrZXX.esm.js +0 -226
- package/dist/idCaptureDefaults-WeHbQM7W.esm.js +0 -225
- package/dist/idCaptureStateMachine-fi-Gq1AH.esm.js +0 -3342
- package/dist/lib-DAyUtOTj.esm.js +0 -12420
- package/dist/manualReviewService-D4IkipnN.esm.js +0 -15
- package/dist/mediaRecorderOptions-dALSV8af.esm.js +0 -40
- package/dist/onDeviceFaceResults-CB62pUQf.esm.js +0 -646
- package/dist/openviduLazy-CCDpFWg1.esm.js +0 -10
- package/dist/recordingService-BRgmVnUT.esm.js +0 -329
- package/dist/safeStorage-Ep56I-f_.esm.js +0 -982
- package/dist/selfieStateMachine-CPXEC4wV.esm.js +0 -55
- package/dist/trueSight-CY0Ibfm9.esm.js +0 -1
- package/dist/types-EELWyWpd.d.ts +0 -6
- package/dist/types-Vb4P9ovf.d.ts +0 -22
- package/dist/warmup-Dv2alr2-.d.ts +0 -82
- package/dist/wasmDefaults-DTUrftxR.esm.js +0 -125
- package/dist/{Face2DProvider-UUQt_vRC.esm.js → Face2DProvider-BF48sz5c.esm.js} +1 -1
- package/dist/{PrivacyLensProvider-D8PS7AJa.esm.js → PrivacyLensProvider-EwnC_C5n.esm.js} +1 -1
- /package/dist/{types-BfgmV7s72.d.ts → types-BfgmV7s7.d.ts} +0 -0
- /package/dist/{types-CJ7Yl9K-2.d.ts → types-CJ7Yl9K-.d.ts} +0 -0
|
@@ -230,7 +230,7 @@ function experimentAssigned(module, payload, screen) {
|
|
|
230
230
|
screenEvent({
|
|
231
231
|
module,
|
|
232
232
|
screen,
|
|
233
|
-
code: "
|
|
233
|
+
code: "experimentAssigned",
|
|
234
234
|
payload: {
|
|
235
235
|
...payload,
|
|
236
236
|
module
|
|
@@ -241,7 +241,7 @@ function experimentAssigned(module, payload, screen) {
|
|
|
241
241
|
//#region src/internal/events/experimentAssignment.ts
|
|
242
242
|
const assignedExperiments = /* @__PURE__ */ new Set();
|
|
243
243
|
/**
|
|
244
|
-
* Records an `
|
|
244
|
+
* Records an `experimentAssigned` interview-event, but only the first time
|
|
245
245
|
* for a given `dedupeKey` (pass the experiment's `storeParam`) since the
|
|
246
246
|
* last `resetExperimentAssignments()` call.
|
|
247
247
|
*/
|
package/dist/events.d.ts
CHANGED
|
@@ -285,7 +285,7 @@ declare function experimentAssigned(module: EventModule | string, payload: Exper
|
|
|
285
285
|
//#endregion
|
|
286
286
|
//#region src/internal/events/experimentAssignment.d.ts
|
|
287
287
|
/**
|
|
288
|
-
* Records an `
|
|
288
|
+
* Records an `experimentAssigned` interview-event, but only the first time
|
|
289
289
|
* for a given `dedupeKey` (pass the experiment's `storeParam`) since the
|
|
290
290
|
* last `resetExperimentAssignments()` call.
|
|
291
291
|
*/
|
package/dist/events.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as subscribeEvent, _ as stateChanged, a as videoSelfieEvents, d as experimentAssigned, f as moduleClosed, g as screenOpened, h as screenEvent, i as tutorialScreenNamesMapper, l as captureAttemptFinished, m as screenClosed, n as eventModuleNames, p as moduleOpened, r as eventScreenNames, s as recordExperimentAssignmentOnce, t as cameraScreenNamesMapper, u as elementClicked, v as addEvent } from "./events-
|
|
1
|
+
import { S as subscribeEvent, _ as stateChanged, a as videoSelfieEvents, d as experimentAssigned, f as moduleClosed, g as screenOpened, h as screenEvent, i as tutorialScreenNamesMapper, l as captureAttemptFinished, m as screenClosed, n as eventModuleNames, p as moduleOpened, r as eventScreenNames, s as recordExperimentAssignmentOnce, t as cameraScreenNamesMapper, u as elementClicked, v as addEvent } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
export { addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, experimentAssigned, moduleClosed, moduleOpened, recordExperimentAssignmentOnce, screenClosed, screenEvent, screenOpened, stateChanged, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -2,36 +2,43 @@ import { E as createActor, O as fromPromise } from "./spawn-D9jgw9pW.js";
|
|
|
2
2
|
import { n as fromCallback } from "./callback-645_omgz.js";
|
|
3
3
|
import "./StateMachine-EDpYWy0i.js";
|
|
4
4
|
import "./Actor-iTq7YY48.js";
|
|
5
|
-
import { c as ElectronicSignatureFileDataHolder } from "./types-
|
|
6
|
-
import { a as ElectronicSignatureActor, i as createElectronicSignatureManagerFromActor, n as ElectronicSignatureState, t as ElectronicSignatureManager } from "./electronicSignatureManager-
|
|
5
|
+
import { c as ElectronicSignatureFileDataHolder } from "./types-D0gekt4U.js";
|
|
6
|
+
import { a as ElectronicSignatureActor, i as createElectronicSignatureManagerFromActor, n as ElectronicSignatureState, t as ElectronicSignatureManager } from "./electronicSignatureManager-Ds-KEVTq.js";
|
|
7
7
|
import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-BY36bS12.js";
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import { i as
|
|
14
|
-
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-
|
|
8
|
+
import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-CvtqcLxs.js";
|
|
9
|
+
import "./createFaceAvatar-BlcTYgJv.js";
|
|
10
|
+
import { i as IStorageCapability } from "./IWasmUtilCapability-CXXDA5l1.js";
|
|
11
|
+
import "./StreamCanvasCapture-B3YT2Bt6.js";
|
|
12
|
+
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-DXTIUcma.js";
|
|
13
|
+
import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-DCgEidHz.js";
|
|
14
|
+
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-uhDPdU6i.js";
|
|
15
15
|
import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
|
|
16
|
-
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-
|
|
17
|
-
import { a as
|
|
18
|
-
import { a as
|
|
16
|
+
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-SSKNrm5Z.js";
|
|
17
|
+
import { a as createCustomFieldsManagerFromActor, n as CustomFieldsState, o as CustomFieldsActor, t as CustomFieldsManager } from "./customFieldsManager-8-W2KY4n.js";
|
|
18
|
+
import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor, n as CustomWatchlistState, t as CustomWatchlistManager } from "./customWatchlistManager-PBWHr_oM.js";
|
|
19
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-DensIj5F.js";
|
|
20
|
+
import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-D5R_uxLQ.js";
|
|
19
21
|
import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-Dzswb_b8.js";
|
|
20
22
|
import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
|
|
21
23
|
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CADXW_9X.js";
|
|
22
|
-
import { n as
|
|
23
|
-
import { i as
|
|
24
|
+
import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-D1KRJ39M.js";
|
|
25
|
+
import { i as CaptureIdResponse } from "./types-CjKBS37a2.js";
|
|
26
|
+
import { d as IdCaptureActor, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState, z as WasmUtilProvider } from "./idCaptureManager-CvmHOWWd.js";
|
|
24
27
|
import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BBU8Lq0O.js";
|
|
25
28
|
import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DLXef90v.js";
|
|
29
|
+
import { i as WatchlistForBusinessState, l as WatchlistForBusinessActor, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager } from "./watchlistForBusinessManager-CsnJnG-C.js";
|
|
26
30
|
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-v2TH5g7e.js";
|
|
27
31
|
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
|
|
28
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
29
|
-
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-
|
|
32
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-CJSyhTpi.js";
|
|
33
|
+
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-BF_cXZq8.js";
|
|
30
34
|
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-BD2PvT5B.js";
|
|
31
35
|
import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-DGBSWz2_.js";
|
|
32
36
|
import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-Cz744E5S.js";
|
|
37
|
+
import { a as GovernmentValidationActor, i as createGovernmentValidationManagerFromActor, n as GovernmentValidationState, t as GovernmentValidationManager } from "./governmentValidationManager-D02vT4yY.js";
|
|
33
38
|
import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n as IdVerificationState, t as IdVerificationManager } from "./idVerificationManager-BB4Pj_N6.js";
|
|
34
39
|
import { a as FaceMatchActor, i as createFaceMatchManagerFromActor, n as FaceMatchState, t as FaceMatchManager } from "./faceMatchManager-BnvrZM2F.js";
|
|
40
|
+
import { a as FiscalQrActor, i as createFiscalQrManagerFromActor, n as FiscalQrState, t as FiscalQrManager } from "./fiscalQrManager-CHcBJwUM.js";
|
|
41
|
+
import "./types-DgDvvzg0.js";
|
|
35
42
|
//#region src/modules/authentication/authenticationUploadService.d.ts
|
|
36
43
|
type AuthenticationUploadResponse = {
|
|
37
44
|
overallStatus: 'PASS' | 'FAIL';
|
|
@@ -84,53 +91,6 @@ declare class BrowserStorageProvider implements IStorageCapability {
|
|
|
84
91
|
clear(): Promise<void>;
|
|
85
92
|
}
|
|
86
93
|
//#endregion
|
|
87
|
-
//#region ../infra/src/providers/wasm/WasmUtilProvider.d.ts
|
|
88
|
-
declare class WasmUtilProvider extends BaseWasmProvider implements IWasmUtilCapability {
|
|
89
|
-
private static instance;
|
|
90
|
-
private static initPromise;
|
|
91
|
-
static getInstance(): Promise<WasmUtilProvider>;
|
|
92
|
-
static resetInstance(): void;
|
|
93
|
-
constructor();
|
|
94
|
-
initialize(config: WasmUtilConfig): Promise<void>;
|
|
95
|
-
processFrame(_image: ImageData): Promise<void>;
|
|
96
|
-
encryptImage(image: string): string;
|
|
97
|
-
setSdkVersion(version: string): void;
|
|
98
|
-
setSdkPlatform(platform: string): void;
|
|
99
|
-
setDeviceInfo(deviceInfo: object, overrideExisting?: boolean): void;
|
|
100
|
-
setBrowserInfo(browserInfo: object, overrideExisting?: boolean): void;
|
|
101
|
-
setCameraInfo(cameraInfo: object, overrideExisting?: boolean): void;
|
|
102
|
-
setMotionStatus(status: string): void;
|
|
103
|
-
setBackgroundMode(backgroundMode: boolean): void;
|
|
104
|
-
setOnDeviceMode(enabled: boolean): void;
|
|
105
|
-
setZc(zc: string): void;
|
|
106
|
-
setInspectorOpened(opened: boolean): void;
|
|
107
|
-
getInspectorOpened(): boolean;
|
|
108
|
-
/**
|
|
109
|
-
* Toggles the WASM module's production mode. When `true`, the native module
|
|
110
|
-
* suppresses its verbose debug logging/console output; when `false`, those
|
|
111
|
-
* logs are emitted. The SDK forces this to `true` by default and only flips
|
|
112
|
-
* it off when the caller opts in via `setup({ wasm: { showLogs: true } })`.
|
|
113
|
-
*
|
|
114
|
-
* @param productionMode - `true` to silence WASM logs, `false` to emit them.
|
|
115
|
-
*/
|
|
116
|
-
setProductionMode(productionMode: boolean): Promise<void>;
|
|
117
|
-
getMetadata(): string;
|
|
118
|
-
analyzeFrame(image: ImageData): Promise<void>;
|
|
119
|
-
getCheck(): string;
|
|
120
|
-
getPipelineState(): string;
|
|
121
|
-
estimatePerformance(): string;
|
|
122
|
-
isVirtualCamera(label: string | null): boolean;
|
|
123
|
-
prc(): Promise<void>;
|
|
124
|
-
poc(output: VirtualCameraCheckOutput): Promise<void>;
|
|
125
|
-
rsp(): Promise<void>;
|
|
126
|
-
ssl(): void;
|
|
127
|
-
stl(): void;
|
|
128
|
-
osv(): void;
|
|
129
|
-
oev(): void;
|
|
130
|
-
ckvcks(data: ArrayBuffer): void;
|
|
131
|
-
getVersions(): Promise<unknown>;
|
|
132
|
-
}
|
|
133
|
-
//#endregion
|
|
134
94
|
//#region ../infra/src/capabilities/IFingerprintCapability.d.ts
|
|
135
95
|
type DeviceFingerprintInfo = {
|
|
136
96
|
device: {
|
|
@@ -159,4 +119,4 @@ declare function getDeviceFingerprintInfo(): Promise<DeviceFingerprintInfo>;
|
|
|
159
119
|
//#region src/internal/fingerprint/fingerprintApi.d.ts
|
|
160
120
|
declare function getFingerprint(disableIpify?: boolean): Promise<FingerprintResult>;
|
|
161
121
|
//#endregion
|
|
162
|
-
export { type AntifraudActor, type AntifraudManager, type AntifraudState, type AuthenticationActor, type AuthenticationManager, type AuthenticationState, type AuthenticationUploadResponse, BrowserStorageProvider, type CaptureIdResponse, type ConsentActor, type ConsentManager, type ConsentState, type CrossDocumentDataMatchActor, type CrossDocumentDataMatchManager, type CrossDocumentDataMatchState, type CurpValidationActor, type CurpValidationManager, type CurpValidationState, type DeviceFingerprintInfo, type DocumentCaptureActor, type DocumentCaptureManager, type DocumentCaptureState, type DynamicFormsActor, type DynamicFormsManager, type DynamicFormsState, type EkybActor, type EkybManager, type EkybState, type EkycActor, type EkycManager, type EkycState, type ElectronicSignatureActor, type ElectronicSignatureFileDataHolder, type ElectronicSignatureManager, type ElectronicSignatureState, type EmailActor, type EmailManager, type EmailState, type FaceCaptureContext, type FaceCaptureEvent, type FaceCaptureInput, type FaceCaptureManager, type FaceCaptureManagerState, type FaceMatchActor, type FaceMatchManager, type FaceMatchState, type FieldComparisonActor, type FieldComparisonManager, type FieldComparisonState, type FingerprintResult, type GeolocationActor, type GeolocationManager, type GeolocationState, type IdCaptureActor, type IdCaptureManager, type IdCaptureState, type IdOcrActor, type IdOcrManager, type IdOcrState, type IdVerificationActor, type IdVerificationManager, type IdVerificationState, 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 SelfieActor, type SelfieManager, type SelfieState, type SendFaceImageResponse, type SignatureActor, type SignatureManager, type SignatureState, WasmUtilProvider, type WatchlistActor, type WatchlistManager, type WatchlistState, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createElectronicSignatureManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createGeolocationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, createSignatureManagerFromActor, createWatchlistManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
|
|
122
|
+
export { type AntifraudActor, type AntifraudManager, type AntifraudState, type AuthenticationActor, type AuthenticationManager, type AuthenticationState, type AuthenticationUploadResponse, BrowserStorageProvider, type CaptureIdResponse, type CertificateIssuanceActor, type CertificateIssuanceManager, type CertificateIssuanceState, type ConsentActor, type ConsentManager, type ConsentState, type CrossDocumentDataMatchActor, type CrossDocumentDataMatchManager, type CrossDocumentDataMatchState, type CurpValidationActor, type CurpValidationManager, type CurpValidationState, type CustomFieldsActor, type CustomFieldsManager, type CustomFieldsState, type CustomWatchlistActor, type CustomWatchlistManager, type CustomWatchlistState, type DeviceFingerprintInfo, type DocumentCaptureActor, type DocumentCaptureManager, type DocumentCaptureState, type DynamicFormsActor, type DynamicFormsManager, type DynamicFormsState, type EkybActor, type EkybManager, type EkybState, type EkycActor, type EkycManager, type EkycState, type ElectronicSignatureActor, type ElectronicSignatureFileDataHolder, type ElectronicSignatureManager, type ElectronicSignatureState, type EmailActor, type EmailManager, type EmailState, type FaceCaptureContext, type FaceCaptureEvent, type FaceCaptureInput, type FaceCaptureManager, type FaceCaptureManagerState, type FaceMatchActor, type FaceMatchManager, type FaceMatchState, type FieldComparisonActor, type FieldComparisonManager, type FieldComparisonState, type FingerprintResult, type FiscalQrActor, type FiscalQrManager, type FiscalQrState, type GeolocationActor, type GeolocationManager, type GeolocationState, type GovernmentValidationActor, type GovernmentValidationManager, type GovernmentValidationState, type IdCaptureActor, type IdCaptureManager, type IdCaptureState, type IdOcrActor, type IdOcrManager, type IdOcrState, type IdVerificationActor, type IdVerificationManager, type IdVerificationState, 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 SelfieActor, type SelfieManager, type SelfieState, type SendFaceImageResponse, type SignatureActor, type SignatureManager, type SignatureState, WasmUtilProvider, type WatchlistActor, type WatchlistForBusinessActor, type WatchlistForBusinessManager, type WatchlistForBusinessState, type WatchlistManager, type WatchlistState, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createCertificateIssuanceManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createCustomFieldsManagerFromActor, createCustomWatchlistManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createElectronicSignatureManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createFiscalQrManagerFromActor, createGeolocationManagerFromActor, createGovernmentValidationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, createSignatureManagerFromActor, createWatchlistForBusinessManagerFromActor, createWatchlistManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
|
|
@@ -1,31 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-msLybMbC.esm.js";
|
|
2
|
+
import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
|
|
3
|
+
import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-BLoK7SP9.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
6
|
-
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-
|
|
7
|
-
import { n as createAntifraudManagerFromActor } from "./antifraudManager-
|
|
8
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
9
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
10
|
-
import { n as
|
|
11
|
-
import { n as
|
|
12
|
-
import { n as
|
|
13
|
-
import { n as
|
|
14
|
-
import { n as
|
|
15
|
-
import { n as
|
|
16
|
-
import { n as
|
|
17
|
-
import { n as
|
|
18
|
-
import { n as
|
|
19
|
-
import {
|
|
20
|
-
import { n as
|
|
21
|
-
import { n as
|
|
22
|
-
import {
|
|
23
|
-
import { n as
|
|
24
|
-
import { n as
|
|
25
|
-
import { n as
|
|
26
|
-
import { n as
|
|
27
|
-
import { n as
|
|
28
|
-
import { n as
|
|
29
|
-
import { n as
|
|
30
|
-
import { n as
|
|
31
|
-
|
|
6
|
+
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-DzulxM4_.esm.js";
|
|
7
|
+
import { n as createAntifraudManagerFromActor } from "./antifraudManager-Bg9ynGum.esm.js";
|
|
8
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-BSextack.esm.js";
|
|
9
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-C4B4-29g.esm.js";
|
|
10
|
+
import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-Bfvkq7Cy.esm.js";
|
|
11
|
+
import { n as createConsentManagerFromActor } from "./consentManager-B5Vqdez-.esm.js";
|
|
12
|
+
import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-QMOGwHXR.esm.js";
|
|
13
|
+
import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-D1ppROcF.esm.js";
|
|
14
|
+
import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-2j_PBq4U.esm.js";
|
|
15
|
+
import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-DUVrEdw9.esm.js";
|
|
16
|
+
import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-DR_Wv-3H.esm.js";
|
|
17
|
+
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-Dt98SDfV.esm.js";
|
|
18
|
+
import { n as createEkybManagerFromActor } from "./ekybManager-DNZKrKF3.esm.js";
|
|
19
|
+
import { n as createEkycManagerFromActor } from "./ekycManager-CmQBpeiI.esm.js";
|
|
20
|
+
import { n as createEmailManagerFromActor } from "./emailManager-B5ek_UfM.esm.js";
|
|
21
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-CihVnODO.esm.js";
|
|
22
|
+
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-Vby8oYqh.esm.js";
|
|
23
|
+
import { n as createPhoneManagerFromActor } from "./phoneManager-N1-sbrY4.esm.js";
|
|
24
|
+
import { n as createWatchlistManagerFromActor } from "./watchlistManager-CI8BHFob.esm.js";
|
|
25
|
+
import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-CpuuB1J2.esm.js";
|
|
26
|
+
import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-CWaNHBO3.esm.js";
|
|
27
|
+
import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-BIs6HPJG.esm.js";
|
|
28
|
+
import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentManager-Du-m-tZ_.esm.js";
|
|
29
|
+
import { n as createIdOcrManagerFromActor } from "./idOcrManager-DHU22hVn.esm.js";
|
|
30
|
+
import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-DsFzdTwA.esm.js";
|
|
31
|
+
import { n as createSignatureManagerFromActor } from "./signatureManager-ChsB-nMD.esm.js";
|
|
32
|
+
import { n as createGeolocationManagerFromActor } from "./geolocationManager-DIw-xq9a.esm.js";
|
|
33
|
+
import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-TjC9iVjH.esm.js";
|
|
34
|
+
import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-CyaixD0D.esm.js";
|
|
35
|
+
import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-Caal2zyV.esm.js";
|
|
36
|
+
import { n as createFiscalQrManagerFromActor } from "./fiscalQrManager-Bp_-3LJr.esm.js";
|
|
37
|
+
export { BrowserStorageProvider, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createCertificateIssuanceManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createCustomFieldsManagerFromActor, createCustomWatchlistManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createElectronicSignatureManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createFiscalQrManagerFromActor, createGeolocationManagerFromActor, createGovernmentValidationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, createSignatureManagerFromActor, createWatchlistForBusinessManagerFromActor, createWatchlistManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
|
package/dist/face-match.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as ID_FACE_EXTRACTION_SKIPPED_CODE, r as isFaceExtractionSkippedError, t as faceMatchMachine } from "./faceMatchStateMachine-
|
|
2
|
-
import { n as createFaceMatchManagerFromActor, t as createFaceMatchManager } from "./faceMatchManager-
|
|
1
|
+
import { n as ID_FACE_EXTRACTION_SKIPPED_CODE, r as isFaceExtractionSkippedError, t as faceMatchMachine } from "./faceMatchStateMachine-BUc5FXYy.esm.js";
|
|
2
|
+
import { n as createFaceMatchManagerFromActor, t as createFaceMatchManager } from "./faceMatchManager-Caal2zyV.esm.js";
|
|
3
3
|
export { ID_FACE_EXTRACTION_SKIPPED_CODE, createFaceMatchManager, createFaceMatchManagerFromActor, faceMatchMachine, isFaceExtractionSkippedError };
|
package/dist/{faceCaptureManagerFactory-BxWPpxyd.d.ts → faceCaptureManagerFactory-CvtqcLxs.d.ts}
RENAMED
|
@@ -4,57 +4,21 @@ import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
|
4
4
|
import "./Actor-iTq7YY48.js";
|
|
5
5
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
6
6
|
import "./index-B8weJxmL.js";
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import { t as AvatarId } from "./createFaceAvatar-BEj18KXi.js";
|
|
11
|
-
import { i as FlowModuleConfig } from "./types-KPvmag_B.js";
|
|
12
|
-
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode, r as FaceCaptureDependencies, t as BaseFaceCaptureConfig } from "./types-Hmd7U0JA.js";
|
|
7
|
+
import { s as FaceFeed, t as AvatarId, u as FaceCoordinates, y as IncodeCanvas } from "./createFaceAvatar-BlcTYgJv.js";
|
|
8
|
+
import { i as FlowModuleConfig } from "./types-Do5rEXij.js";
|
|
9
|
+
import "./IWasmUtilCapability-CXXDA5l1.js";
|
|
13
10
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
11
|
+
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode, r as FaceCaptureDependencies, t as BaseFaceCaptureConfig } from "./types-CM-jtjJ2.js";
|
|
12
|
+
import { t as AuthenticationConfig } from "./types-ZT1XFIJ8.js";
|
|
13
|
+
import "./types-BT_Oalip.js";
|
|
14
|
+
import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-B3YT2Bt6.js";
|
|
15
|
+
import { t as FaceDetectionProvider } from "./FaceDetectionProvider-LdZ47bWy.js";
|
|
16
|
+
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
16
17
|
//#region src/modules/authentication/authenticationStateMachine.d.ts
|
|
17
18
|
declare const _authenticationMachine: AnyStateMachine;
|
|
18
19
|
type AuthenticationMachine = typeof _authenticationMachine;
|
|
19
20
|
declare const authenticationMachine: AnyStateMachine;
|
|
20
21
|
//#endregion
|
|
21
|
-
//#region ../infra/src/avatar/faceFeed.d.ts
|
|
22
|
-
/**
|
|
23
|
-
* A tiny per-frame pub/sub channel for the Incode WASM pipeline's `FaceData`.
|
|
24
|
-
*
|
|
25
|
-
* The parked `incode-2d` avatar drives the cosmetic avatar from the **existing** Incode face-detection
|
|
26
|
-
* pipeline (no second MediaPipe model). The detection pipeline lives in core's
|
|
27
|
-
* detection actor, while the avatar lives in the avatar actor — so the avatar is
|
|
28
|
-
* *fed* `FaceData` through this channel rather than running its own model.
|
|
29
|
-
*
|
|
30
|
-
* Deliberately NOT routed through XState events/context: the pipeline emits
|
|
31
|
-
* ~10×/s, and assigning that into context would re-run `mapState` and notify all
|
|
32
|
-
* manager subscribers 10×/s — needless churn that could itself regress UI perf.
|
|
33
|
-
* The feed is a plain emitter passed as input to both actors (detection
|
|
34
|
-
* publishes, the avatar source subscribes); nothing else observes it.
|
|
35
|
-
*
|
|
36
|
-
* Strictly read-only w.r.t. the authoritative pipeline — the feed only forwards
|
|
37
|
-
* data the pipeline already computed; it never influences detection/autocapture.
|
|
38
|
-
*/
|
|
39
|
-
interface FaceFeedReader {
|
|
40
|
-
/** Subscribe to per-frame faces. Returns an unsubscribe function. */
|
|
41
|
-
subscribe(listener: (face: FaceData) => void): () => void;
|
|
42
|
-
/** The most recently published face, or null if none yet. */
|
|
43
|
-
getLatest(): FaceData | null;
|
|
44
|
-
/**
|
|
45
|
-
* Subscribe to the coarse "eyes closed" pulse — the only real eye signal the
|
|
46
|
-
* Incode pipeline exposes (a threshold event, both eyes, fired only when the
|
|
47
|
-
* closed-eyes check is enabled via `validateClosedEyes`). The avatar uses it
|
|
48
|
-
* to drive a real blink. Returns an unsubscribe function.
|
|
49
|
-
*/
|
|
50
|
-
onEyesClosed(listener: () => void): () => void;
|
|
51
|
-
}
|
|
52
|
-
interface FaceFeed extends FaceFeedReader {
|
|
53
|
-
publish(face: FaceData): void;
|
|
54
|
-
/** Fire the eyes-closed pulse (from the detection pipeline's threshold event). */
|
|
55
|
-
signalEyesClosed(): void;
|
|
56
|
-
}
|
|
57
|
-
//#endregion
|
|
58
22
|
//#region src/modules/authentication/authenticationActor.d.ts
|
|
59
23
|
type CreateAuthenticationActorOptions = {
|
|
60
24
|
config: AuthenticationConfig;
|
|
@@ -106,12 +70,36 @@ type SendFaceImageResponse = {
|
|
|
106
70
|
sessionStatus: string;
|
|
107
71
|
};
|
|
108
72
|
//#endregion
|
|
73
|
+
//#region src/modules/selfie/selfieUploadService.d.ts
|
|
74
|
+
type ProcessFaceImageType = 'selfie' | 'videoSelfie';
|
|
75
|
+
type ProcessFaceResponse = {
|
|
76
|
+
faceMatch: boolean;
|
|
77
|
+
confidence: number;
|
|
78
|
+
existingUser: boolean;
|
|
79
|
+
};
|
|
80
|
+
declare function processFace(imageType?: ProcessFaceImageType, signal?: AbortSignal): Promise<ProcessFaceResponse>;
|
|
81
|
+
//#endregion
|
|
109
82
|
//#region src/internal/faceCapture/recordingService.d.ts
|
|
110
83
|
type RecordingService = {
|
|
111
84
|
start(stream: MediaStream): Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* Prepares the recording metadata needed by the face-image upload.
|
|
87
|
+
*
|
|
88
|
+
* Local video-liveness recordings must stop here because their upload id is
|
|
89
|
+
* sent with the image. Scoped face recordings return no legacy id, pause at
|
|
90
|
+
* the end of each attempt, and resume the same upload after a rejection; the
|
|
91
|
+
* state machine finalizes them only after the backend accepts the capture.
|
|
92
|
+
*/
|
|
93
|
+
prepareUpload(): Promise<{
|
|
94
|
+
recordingId: string | null;
|
|
95
|
+
}>;
|
|
112
96
|
stop(): Promise<{
|
|
113
97
|
recordingId: string | null;
|
|
114
98
|
}>;
|
|
99
|
+
/** Best-effort page-background handling for protected camera cycles. */
|
|
100
|
+
pauseForBackground?(): void;
|
|
101
|
+
/** Resumes the same recorder after its protected presentation track recovers. */
|
|
102
|
+
resumeFromBackground?(stream: MediaStream): Promise<void>;
|
|
115
103
|
/**
|
|
116
104
|
* Stops the recorder and returns the raw (un-encrypted, not uploaded)
|
|
117
105
|
* video as base64. Used by the captureOnly flow, which hands video bytes
|
|
@@ -120,8 +108,7 @@ type RecordingService = {
|
|
|
120
108
|
* Returns `{ videoBase64: undefined }` when video is not available for
|
|
121
109
|
* any reason, including:
|
|
122
110
|
* - the recorder was never started or is already stopped,
|
|
123
|
-
* -
|
|
124
|
-
* holds the bytes,
|
|
111
|
+
* - an injected provider is server-side and the client never holds the bytes,
|
|
125
112
|
* - video assembly fails.
|
|
126
113
|
*/
|
|
127
114
|
stopAndGetVideo(): Promise<{
|
|
@@ -153,8 +140,10 @@ type FaceCaptureContext = {
|
|
|
153
140
|
dependencies: FaceCaptureDependencies;
|
|
154
141
|
authHint: string | undefined;
|
|
155
142
|
stream: CameraStream | undefined;
|
|
156
|
-
|
|
157
|
-
|
|
143
|
+
/** @deprecated Protected capture authority is private and this is always absent. */
|
|
144
|
+
provider?: FaceDetectionProvider | undefined;
|
|
145
|
+
/** @deprecated Protected capture authority is private and this is always absent. */
|
|
146
|
+
frameCapturer?: StreamCanvasCapture | undefined;
|
|
158
147
|
usingBackCamera: boolean;
|
|
159
148
|
error: string | FaceErrorObject | undefined;
|
|
160
149
|
detectionStatus: DetectionStatus;
|
|
@@ -162,12 +151,17 @@ type FaceCaptureContext = {
|
|
|
162
151
|
faceCoordinates: FaceCoordinates | undefined;
|
|
163
152
|
uploadResponse: Record<string, unknown> | undefined;
|
|
164
153
|
processResponse: Record<string, unknown> | undefined;
|
|
165
|
-
|
|
154
|
+
/** @deprecated Recorder ownership is private and this is always absent. */
|
|
155
|
+
recordingService?: RecordingService | undefined;
|
|
166
156
|
attemptsRemaining: number;
|
|
167
157
|
uploadError: FaceErrorCode | undefined;
|
|
168
158
|
permissionResult: PermissionResult | 'refresh' | undefined;
|
|
169
|
-
|
|
170
|
-
|
|
159
|
+
/** @deprecated Detection callback ownership is private and this is always absent. */
|
|
160
|
+
resetDetection?: (() => void) | undefined;
|
|
161
|
+
/** @deprecated Deepsight ownership is private and this is always absent. */
|
|
162
|
+
deepsightService?: DeepsightService | undefined;
|
|
163
|
+
/** Internal semantic readiness marker; no service instance is exposed. */
|
|
164
|
+
deepsightReady?: boolean;
|
|
171
165
|
encryptedBase64Image: string | undefined;
|
|
172
166
|
uploadRecordingId: string | null | undefined;
|
|
173
167
|
manualCaptureTriggered: boolean;
|
|
@@ -229,6 +223,15 @@ type FaceCaptureEvent = {
|
|
|
229
223
|
canvas: HTMLCanvasElement;
|
|
230
224
|
} | {
|
|
231
225
|
type: 'RETRY_CAPTURE';
|
|
226
|
+
} | {
|
|
227
|
+
type: 'GO_TO_MANUAL_UPLOAD';
|
|
228
|
+
} | {
|
|
229
|
+
type: 'MANUAL_UPLOAD_FILE_SELECTED';
|
|
230
|
+
file: File;
|
|
231
|
+
} | {
|
|
232
|
+
type: 'MANUAL_UPLOAD_CONTINUE';
|
|
233
|
+
} | {
|
|
234
|
+
type: 'MANUAL_UPLOAD_RESET';
|
|
232
235
|
};
|
|
233
236
|
declare const faceCaptureMachine: AnyStateMachine;
|
|
234
237
|
//#endregion
|
|
@@ -291,6 +294,20 @@ type FaceCaptureLoadingState = {
|
|
|
291
294
|
type FaceCaptureTutorialState = {
|
|
292
295
|
status: 'tutorial';
|
|
293
296
|
ageAssurance?: boolean;
|
|
297
|
+
/** Whether to offer the manual file-upload alternative to live capture. */
|
|
298
|
+
showManualUploadLink: boolean;
|
|
299
|
+
};
|
|
300
|
+
/** Picking a photo from device storage instead of using the camera */
|
|
301
|
+
type FaceCaptureManualUploadState = {
|
|
302
|
+
status: 'manualUpload';
|
|
303
|
+
/** `uploading` covers both the file conversion and the network call. */
|
|
304
|
+
phase: 'selecting' | 'uploading';
|
|
305
|
+
/** Whether a file has been accepted by the backend. */
|
|
306
|
+
uploaded: boolean;
|
|
307
|
+
canContinue: boolean;
|
|
308
|
+
/** i18n key for the current rejection, or `null`. */
|
|
309
|
+
errorKey: string | null;
|
|
310
|
+
attemptsRemaining: number;
|
|
294
311
|
};
|
|
295
312
|
/** Handling camera permissions */
|
|
296
313
|
type FaceCapturePermissionsState = {
|
|
@@ -373,7 +390,7 @@ type FaceCaptureErrorState = {
|
|
|
373
390
|
moduleErrorCode?: string;
|
|
374
391
|
};
|
|
375
392
|
/** Union of all possible face capture states */
|
|
376
|
-
type FaceCaptureManagerState = FaceCaptureIdleState | FaceCaptureLoadingState | FaceCaptureTutorialState | FaceCapturePermissionsState | FaceCaptureCaptureState | FaceCaptureProcessingState | FaceCaptureFinishedState | FaceCaptureClosedState | FaceCaptureErrorState;
|
|
393
|
+
type FaceCaptureManagerState = FaceCaptureIdleState | FaceCaptureLoadingState | FaceCaptureTutorialState | FaceCapturePermissionsState | FaceCaptureCaptureState | FaceCaptureManualUploadState | FaceCaptureProcessingState | FaceCaptureFinishedState | FaceCaptureClosedState | FaceCaptureErrorState;
|
|
377
394
|
/**
|
|
378
395
|
* Builds a face capture manager (selfie / authentication / captureOnly) from an
|
|
379
396
|
* already-created actor.
|
|
@@ -433,7 +450,23 @@ declare function createFaceCaptureManagerFromActor(actor: FaceCaptureActor, modu
|
|
|
433
450
|
* Only effective when in `capture.detecting` state and `detectionStatus === 'manualCapture'`.
|
|
434
451
|
*/
|
|
435
452
|
capture(): void;
|
|
453
|
+
/**
|
|
454
|
+
* Leaves the tutorial for the manual file-upload screen.
|
|
455
|
+
* Only effective from `tutorial` and only when the module enables it, so a
|
|
456
|
+
* call from anywhere else — including the console — is a no-op.
|
|
457
|
+
*/
|
|
458
|
+
goToManualUpload(): void;
|
|
459
|
+
/**
|
|
460
|
+
* Submits a file the user picked from device storage.
|
|
461
|
+
* Only effective when in `manualUpload`.
|
|
462
|
+
*/
|
|
463
|
+
manualUploadSelectFile(file: File): void;
|
|
464
|
+
/**
|
|
465
|
+
* Accepts the uploaded photo and moves on to processing.
|
|
466
|
+
* Only effective when in `manualUpload` and an upload has succeeded.
|
|
467
|
+
*/
|
|
468
|
+
manualUploadContinue(): void;
|
|
436
469
|
};
|
|
437
470
|
type FaceCaptureManager = ReturnType<typeof createFaceCaptureManagerFromActor>;
|
|
438
471
|
//#endregion
|
|
439
|
-
export {
|
|
472
|
+
export { authenticationMachine as C, createAuthenticationActor as S, SelfieCaptureOnlyConfig as _, SelfieCaptureOnlyMachine as a, AuthenticationActor as b, SelfieActor as c, FaceCaptureContext as d, FaceCaptureEvent as f, processFace as g, ProcessFaceResponse as h, SelfieCaptureOnlyActor as i, SelfieMachine as l, faceCaptureMachine as m, FaceCaptureManagerState as n, selfieCaptureOnlyMachine as o, FaceCaptureInput as p, CreateSelfieCaptureOnlyActorOptions as r, CreateSelfieActorOptions as s, FaceCaptureManager as t, selfieMachine as u, SelfieConfig as v, CreateAuthenticationActorOptions as x, SendFaceImageResponse as y };
|
package/dist/{faceCaptureManagerFactory-Bkueb8mk.esm.js → faceCaptureManagerFactory-pCmG4MeF.esm.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-
|
|
6
|
-
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-
|
|
7
|
-
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-
|
|
4
|
+
import { i as concealmentToAvatar } from "./faceCaptureSetup-BSextack.esm.js";
|
|
5
|
+
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-B2e8p268.esm.js";
|
|
6
|
+
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
7
|
+
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-Bj_fyWtv.esm.js";
|
|
8
8
|
//#region src/internal/faceCapture/faceCaptureManagerFactory.ts
|
|
9
9
|
function getPermissionStatus(snapshot) {
|
|
10
10
|
if (!snapshot.matches("permissions")) return;
|
|
@@ -26,14 +26,30 @@ function getCaptureStatus(snapshot) {
|
|
|
26
26
|
if (snapshot.matches({ capture: "uploadError" })) return "uploadError";
|
|
27
27
|
if (snapshot.matches({ capture: "success" })) return "success";
|
|
28
28
|
}
|
|
29
|
+
function mapManualUploadState(snapshot) {
|
|
30
|
+
const childSnapshot = snapshot.children["manualUpload"]?.getSnapshot();
|
|
31
|
+
const childContext = childSnapshot?.context;
|
|
32
|
+
const childValue = childSnapshot?.value;
|
|
33
|
+
const uploaded = childContext?.uploaded ?? false;
|
|
34
|
+
return {
|
|
35
|
+
status: "manualUpload",
|
|
36
|
+
phase: childValue === "preparing" || childValue === "uploading" ? "uploading" : "selecting",
|
|
37
|
+
uploaded,
|
|
38
|
+
canContinue: uploaded,
|
|
39
|
+
errorKey: childContext?.errorKey ?? null,
|
|
40
|
+
attemptsRemaining: childContext?.retriesLeft ?? 0
|
|
41
|
+
};
|
|
42
|
+
}
|
|
29
43
|
function mapState(snapshot) {
|
|
30
44
|
const { context } = snapshot;
|
|
31
45
|
if (snapshot.matches("idle")) return { status: "idle" };
|
|
32
46
|
if (snapshot.matches("loading")) return { status: "loading" };
|
|
33
47
|
if (snapshot.matches("tutorial")) return {
|
|
34
48
|
status: "tutorial",
|
|
35
|
-
ageAssurance: context.config?.ageAssurance === true
|
|
49
|
+
ageAssurance: context.config?.ageAssurance === true,
|
|
50
|
+
showManualUploadLink: context.config?.manualUploadSelfieCapture === true
|
|
36
51
|
};
|
|
52
|
+
if (snapshot.matches("manualUpload")) return mapManualUploadState(snapshot);
|
|
37
53
|
if (snapshot.matches("closed")) return { status: "closed" };
|
|
38
54
|
if (snapshot.matches("permissions")) {
|
|
39
55
|
const permissionStatus = getPermissionStatus(snapshot);
|
|
@@ -221,7 +237,9 @@ function getFaceCaptureScreenName(snapshot, moduleName) {
|
|
|
221
237
|
case "tutorial": return getFaceCaptureTutorialScreen(snapshot);
|
|
222
238
|
case "permissions": return "faceCapture.tutorial.default";
|
|
223
239
|
case "capture": return getCaptureSubstateScreen(snapshot);
|
|
240
|
+
case "manualUpload": return "faceCapture.manualUpload.default";
|
|
224
241
|
case "processing": return "faceCapture.loading.processing";
|
|
242
|
+
case "terminalProcessing": return "faceCapture.loading.processing";
|
|
225
243
|
case "finished": return "faceCapture.resultSuccess.default";
|
|
226
244
|
case "closed": return "faceCapture.closed";
|
|
227
245
|
case "error": return "faceCapture.resultError.processingFailed";
|
|
@@ -314,6 +332,34 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
314
332
|
capture() {
|
|
315
333
|
trackElementClicked?.("capture");
|
|
316
334
|
actor.send({ type: "MANUAL_CAPTURE" });
|
|
335
|
+
},
|
|
336
|
+
/**
|
|
337
|
+
* Leaves the tutorial for the manual file-upload screen.
|
|
338
|
+
* Only effective from `tutorial` and only when the module enables it, so a
|
|
339
|
+
* call from anywhere else — including the console — is a no-op.
|
|
340
|
+
*/
|
|
341
|
+
goToManualUpload() {
|
|
342
|
+
trackElementClicked?.("goToManualUpload");
|
|
343
|
+
actor.send({ type: "GO_TO_MANUAL_UPLOAD" });
|
|
344
|
+
},
|
|
345
|
+
/**
|
|
346
|
+
* Submits a file the user picked from device storage.
|
|
347
|
+
* Only effective when in `manualUpload`.
|
|
348
|
+
*/
|
|
349
|
+
manualUploadSelectFile(file) {
|
|
350
|
+
trackElementClicked?.("manualUploadSelectFile");
|
|
351
|
+
actor.send({
|
|
352
|
+
type: "MANUAL_UPLOAD_FILE_SELECTED",
|
|
353
|
+
file
|
|
354
|
+
});
|
|
355
|
+
},
|
|
356
|
+
/**
|
|
357
|
+
* Accepts the uploaded photo and moves on to processing.
|
|
358
|
+
* Only effective when in `manualUpload` and an upload has succeeded.
|
|
359
|
+
*/
|
|
360
|
+
manualUploadContinue() {
|
|
361
|
+
trackElementClicked?.("manualUploadContinue");
|
|
362
|
+
actor.send({ type: "MANUAL_UPLOAD_CONTINUE" });
|
|
317
363
|
}
|
|
318
364
|
};
|
|
319
365
|
}
|
|
@@ -401,6 +447,12 @@ function getFaceCaptureErrorPayload(snapshot) {
|
|
|
401
447
|
* `docs/patterns/CAPABILITY.md`). Pass a fake/no-op to override (tests do).
|
|
402
448
|
*/
|
|
403
449
|
function createFaceCaptureManagerFromActor(actor, moduleName, visibilityObserver = new BrowserVisibilityObserverProvider()) {
|
|
450
|
+
const protectedVisibilityActor = actor;
|
|
451
|
+
const initialVisible = visibilityObserver.isVisible();
|
|
452
|
+
protectedVisibilityActor.send({
|
|
453
|
+
type: "PROTECTED_VISIBILITY",
|
|
454
|
+
visible: initialVisible
|
|
455
|
+
});
|
|
404
456
|
return createManager({
|
|
405
457
|
actor,
|
|
406
458
|
mapState,
|
|
@@ -409,7 +461,16 @@ function createFaceCaptureManagerFromActor(actor, moduleName, visibilityObserver
|
|
|
409
461
|
getEventScreenName: (snapshot) => getFaceCaptureScreenName(snapshot, moduleName),
|
|
410
462
|
getErrorName: getFaceCaptureErrorName,
|
|
411
463
|
getErrorPayload: getFaceCaptureErrorPayload,
|
|
412
|
-
visibilityObserver
|
|
464
|
+
visibilityObserver: {
|
|
465
|
+
isVisible: () => visibilityObserver.isVisible(),
|
|
466
|
+
onVisibilityChange: (listener) => visibilityObserver.onVisibilityChange((visible) => {
|
|
467
|
+
protectedVisibilityActor.send({
|
|
468
|
+
type: "PROTECTED_VISIBILITY",
|
|
469
|
+
visible
|
|
470
|
+
});
|
|
471
|
+
listener(visible);
|
|
472
|
+
})
|
|
473
|
+
}
|
|
413
474
|
})
|
|
414
475
|
});
|
|
415
476
|
}
|