@incodetech/core 2.1.0-rc.2 → 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-D5xc7Lqo.esm.js → BrowserStorageProvider-CrrN540a.esm.js} +1 -25
- 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/{Manager-B2OEDYqf.d.ts → Manager-CJ3G2zqi.d.ts} +1 -4
- package/dist/{OpenViduRecordingProvider-DF7A4ZNJ.esm.js → OpenViduRecordingProvider-B_0GKkzc.esm.js} +1 -1
- package/dist/PrivacyLensProvider-hDzaDzZ6.esm.js +339 -0
- package/dist/StateMachine-C_AY4cs7.d.ts +2 -0
- package/dist/{StreamCanvasCapture-Dr5n_iK1.esm.js → StreamCanvasCapture-Bz17q4FP.esm.js} +1 -1
- package/dist/StreamCanvasCapture-DS1TOoiH.d.ts +42 -0
- package/dist/{WasmUtilProvider-CIu373BZ.esm.js → WasmUtilProvider-ADG54T6M.esm.js} +16 -1
- package/dist/{addressSearch-BH96a3fq.esm.js → addressSearch-DJyNTg5S.esm.js} +4 -4
- package/dist/{ae-signature-CDEN8y-w.esm.js → ae-signature-DlElqFrZ.esm.js} +1 -1
- package/dist/ae-signature.d.ts +4 -3
- package/dist/ae-signature.esm.js +10 -9
- package/dist/antifraud.d.ts +4 -3
- package/dist/antifraud.esm.js +7 -6
- package/dist/{antifraudManager-DZifA5zX.esm.js → antifraudManager-BKdQoMFf.esm.js} +4 -3
- package/dist/{antifraudManager-B7WQTIdu.d.ts → antifraudManager-DpIvbrZP.d.ts} +2 -2
- package/dist/{antifraudStateMachine-DlKrK2hL.esm.js → antifraudStateMachine-C0NGnP9W.esm.js} +3 -3
- package/dist/{api-DUZwyz0o.esm.js → api-DsbUi7TO.esm.js} +21 -2
- package/dist/authentication.d.ts +19 -12
- package/dist/authentication.esm.js +33 -27
- package/dist/{authenticationManager-Dve7mGLe.d.ts → authenticationManager-CdPbNS2H.d.ts} +3 -3
- package/dist/{authenticationManager-BM4LzyV7.esm.js → authenticationManager-Dtl1vcET.esm.js} +6 -6
- package/dist/{authenticationStateMachine-Chx3ySdT.esm.js → authenticationStateMachine-D-hOlg8p.esm.js} +8 -8
- package/dist/avatar.d.ts +3 -0
- package/dist/avatar.esm.js +3 -0
- package/dist/{backCameraStream-iftkf3rd.esm.js → backCameraStream-ZyqrFyjO.esm.js} +3 -3
- package/dist/{browser-DlFgHpoC-7tbRR1aR.esm.js → browser-DlFgHpoC-qLKs75Qp.esm.js} +1 -1
- package/dist/{browserSimulation-CGjpdNA1.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-Ctgyx-oD.d.ts → canvas-CJUmoXSD.d.ts} +1 -41
- package/dist/certificate-issuance.d.ts +31 -30
- package/dist/certificate-issuance.esm.js +8 -7
- package/dist/{certificateIssuanceStateMachine-CLNXtXaC.esm.js → certificateIssuanceStateMachine-C07m7qtP.esm.js} +4 -4
- 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-psDCeJ0E.esm.js → consentManager-BtnPZUW4.esm.js} +4 -3
- package/dist/{consentManager-BqUGU_YD.d.ts → consentManager-DufVo9D9.d.ts} +52 -52
- package/dist/{consentStateMachine-DRsFFSHE.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-BxcgxvgO.esm.js → cpfOcrManager-C4rLgKsu.esm.js} +6 -5
- package/dist/{cpfOcrManager-B2u9hMzd.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-BgLDw0Ub.esm.js → curpValidationManager-BafobPXC.esm.js} +4 -3
- package/dist/{curpValidationManager-Bt6CVD8b.d.ts → curpValidationManager-Co6LZAHT.d.ts} +3 -3
- package/dist/{curpValidationStateMachine-BK_wJ48C.esm.js → curpValidationStateMachine-DXTPK6vI.esm.js} +3 -3
- package/dist/custom-fields.d.ts +3 -2
- package/dist/custom-fields.esm.js +6 -5
- package/dist/custom-watchlist.d.ts +2 -1
- package/dist/custom-watchlist.esm.js +6 -5
- package/dist/{customWatchlistStateMachine-Bi4P59HM.esm.js → customWatchlistStateMachine-B4G3Chkx.esm.js} +3 -3
- package/dist/{deepsightLoader-BMmvk0X6.esm.js → deepsightLoader-DHSVD776.esm.js} +14 -13
- package/dist/{deepsightService-CEZrdiW0.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 +175 -174
- package/dist/document-capture.esm.js +14 -13
- package/dist/document-upload.d.ts +48 -47
- package/dist/document-upload.esm.js +9 -8
- package/dist/{documentCaptureStateMachine-MpwpJO7t.esm.js → documentCaptureStateMachine-DSOX2epf.esm.js} +7 -7
- package/dist/dynamic-forms.d.ts +4 -192
- package/dist/dynamic-forms.esm.js +8 -160
- package/dist/dynamicFormsManager-BOefZbyF.esm.js +168 -0
- package/dist/dynamicFormsManager-CUYLOj9g.d.ts +239 -0
- package/dist/{dynamicFormsStateMachine-Do84A4uU.esm.js → dynamicFormsStateMachine-BXHcaocI.esm.js} +4 -4
- package/dist/ekyb.d.ts +9 -6
- package/dist/ekyb.esm.js +20 -17
- package/dist/{ekybStateMachine-nsuPOw3f.esm.js → ekybStateMachine-CCSeqjCt.esm.js} +5 -5
- package/dist/ekyc.d.ts +4 -3
- package/dist/ekyc.esm.js +9 -8
- package/dist/{ekycStateMachine-DcynX0rj.esm.js → ekycStateMachine-DkLVTOyA.esm.js} +5 -5
- package/dist/electronic-signature.d.ts +4 -3
- package/dist/electronic-signature.esm.js +9 -8
- package/dist/{electronicSignatureManager-B63aAuI5.esm.js → electronicSignatureManager-DjzUzqZj.esm.js} +50 -87
- package/dist/email.d.ts +5 -4
- package/dist/email.esm.js +9 -8
- package/dist/{emailManager-DxHjAe5u.esm.js → emailManager-B_XzEsXH.esm.js} +5 -4
- package/dist/{emailManager-C6D2u4mQ.d.ts → emailManager-fHASH6uo.d.ts} +3 -3
- package/dist/{emailStateMachine-758f34gg.esm.js → emailStateMachine-fqJ42b19.esm.js} +5 -5
- package/dist/{endpoints-BM2_j_IE.esm.js → endpoints-BzMJFAPV.esm.js} +13 -0
- package/dist/{events-DN-u67gb.esm.js → events-CqGY1yMq.esm.js} +2 -188
- package/dist/events.d.ts +2 -0
- package/dist/events.esm.js +3 -2
- package/dist/extensibility.d.ts +37 -26
- package/dist/extensibility.esm.js +74 -59
- package/dist/{externalFetch-crimxkN9.esm.js → externalFetch-CyhBfD-n.esm.js} +1 -1
- package/dist/face-match.d.ts +2 -2
- package/dist/face-match.esm.js +6 -5
- package/dist/{faceCaptureManagerFactory-BNXZchWX.esm.js → faceCaptureManagerFactory-2brKTzMb.esm.js} +25 -16
- package/dist/faceCaptureManagerFactory-CGKbf7zt.d.ts +400 -0
- package/dist/{faceCaptureSetup-Dqb09D24.esm.js → faceCaptureSetup-CDUVU1nl.esm.js} +97 -13
- package/dist/{faceMatchStateMachine-FikRaUZH.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-Dic0DVgl.esm.js → fieldComparisonManager-B9W0a9A5.esm.js} +5 -4
- package/dist/{fieldComparisonManager-BXc6-DJv.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 +21 -13
- package/dist/flow.esm.js +28 -19
- package/dist/{flowCompletionService-CdGDKv0z.d.ts → flowCompletionService-BIqSTZcd.d.ts} +2 -1
- package/dist/{flowCompletionService-D_CsiDZM.esm.js → flowCompletionService-qEqh_g14.esm.js} +3 -3
- package/dist/{flowServices-ar5DXv71.esm.js → flowServices-C4piblgx.esm.js} +24 -9
- package/dist/geolocation.d.ts +4 -127
- package/dist/geolocation.esm.js +8 -115
- package/dist/geolocationManager-BP2Do9O-.esm.js +123 -0
- package/dist/geolocationManager-Cs50eRlC.d.ts +156 -0
- package/dist/{geolocationStateMachine-BWjrMGS_.esm.js → geolocationStateMachine-BYfOOOG0.esm.js} +4 -4
- package/dist/{getDeviceClass-rXKlXywy.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 +8 -7
- package/dist/{governmentValidationStateMachine-BoF7U1of.esm.js → governmentValidationStateMachine-CwoPPO8b.esm.js} +5 -5
- package/dist/home.d.ts +18 -15
- package/dist/home.esm.js +4 -3
- 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 +16 -11
- package/dist/id.esm.js +39 -32
- package/dist/idCaptureDefaults-DNJON8Xo.esm.js +188 -0
- package/dist/{idCaptureManager-BvGUSN2e.d.ts → idCaptureManager-BVdvfJys.d.ts} +40 -10
- package/dist/{idCaptureManager-Bm6Wm6Qv.esm.js → idCaptureManager-Bo9DCQSU.esm.js} +14 -11
- package/dist/{idCaptureStateMachine-D1YhOj6n.esm.js → idCaptureStateMachine-BeDidMLU.esm.js} +395 -382
- package/dist/idOcrManager-BkRDrpZu.esm.js +92 -0
- package/dist/idOcrManager-CJzrmM91.d.ts +641 -0
- package/dist/{idOcrStateMachine-YMCDGplq.esm.js → idOcrStateMachine-DRZc4FBl.esm.js} +5 -5
- package/dist/{idVerificationStateMachine-Bo1IYuZH.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-D0knIrOy.esm.js → identityReuseManager-Bu62LToE.esm.js} +4 -3
- package/dist/{identityReuseManager-DcWSvC-A.d.ts → identityReuseManager-TWKbXuvY.d.ts} +33 -33
- package/dist/{identityReuseStateMachine-CSQfZOqD.esm.js → identityReuseStateMachine-BmONeF6B.esm.js} +3 -3
- package/dist/{index-BgxYUYuD.d.ts → index-DtUlD-bz.d.ts} +2 -2
- package/dist/{index-DV134v62.d.ts → index-Icld-cKW.d.ts} +175 -295
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +16 -13
- package/dist/{invokeOnCaptureCallback-Dzemudhk.esm.js → invokeOnCaptureCallback-v_PV_IJz.esm.js} +1 -1
- package/dist/{lib-7ZQ9BdKH.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-Tzl5Qd35.d.ts → mandatoryConsentManager-Bmdjo14S.d.ts} +50 -50
- package/dist/{mandatoryConsentManager-Lon46nPQ.esm.js → mandatoryConsentManager-CQ3jirlZ.esm.js} +4 -3
- package/dist/{mandatoryConsentStateMachine-D_dZ7IF6.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-CxMJP4tQ.esm.js → onDeviceFaceResults-DVBggeq8.esm.js} +71 -389
- package/dist/{openviduLazy-oAXXI9w_.esm.js → openviduLazy-BTOIauGP.esm.js} +2 -2
- package/dist/openviduLazy-Dov8oKfL.esm.js +3 -0
- package/dist/{permissionGuards-D-Z-lgNj.esm.js → permissionGuards-BR2oN573.esm.js} +1 -1
- package/dist/{permissionServices-CPDboRoE.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-TSq1Ief6.d.ts → phoneManager-BOTcjXgs.d.ts} +3 -3
- package/dist/{phoneManager-Blt4Oc2P.esm.js → phoneManager-BWlxqbyD.esm.js} +5 -4
- package/dist/{phoneStateMachine-W3c6Z8sj.esm.js → phoneStateMachine-B_V9nODs.esm.js} +5 -5
- package/dist/{qe-signature-CQLK6LKE.esm.js → qe-signature-BhFnI9pT.esm.js} +1 -1
- package/dist/qe-signature.d.ts +4 -3
- package/dist/qe-signature.esm.js +10 -9
- 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 -8
- package/dist/{redirectToMobileManager-DCvpKdkD.esm.js → redirectToMobileManager-BaAo9rgi.esm.js} +5 -4
- package/dist/{redirectToMobileManager-yOHAmwg-.d.ts → redirectToMobileManager-Br0KZK1G.d.ts} +2 -2
- package/dist/{redirectToMobileStateMachine-DC9z4Vfu.esm.js → redirectToMobileStateMachine-DoAnf2ql.esm.js} +10 -12
- package/dist/{runChildModule-C9G0wfVC.esm.js → runChildModule-0nQfjVVo.esm.js} +3 -3
- package/dist/selfie.d.ts +19 -12
- package/dist/selfie.esm.js +34 -28
- package/dist/{selfieManager-BRL6c_Oc.esm.js → selfieManager-D_ZFERsE.esm.js} +6 -6
- package/dist/{selfieManager-imY2dAcH.d.ts → selfieManager-R0Jw5sjb.d.ts} +3 -3
- package/dist/{selfieStateMachine-D2Q0uwDK.esm.js → selfieStateMachine-CIgeeiN9.esm.js} +4 -4
- package/dist/{session-Be_IA1e0.esm.js → session-9jIfKFCc.esm.js} +3 -3
- package/dist/session.d.ts +7 -5
- package/dist/session.esm.js +16 -14
- package/dist/{sessionInitializer-CaiGA8GP.esm.js → sessionInitializer-C_TYIgyk.esm.js} +11 -107
- package/dist/{setup-BJZAkajt.d.ts → setup-CpRnXxn8.d.ts} +16 -3
- package/dist/setup-DHc6OaHm.esm.js +562 -0
- package/dist/signature.d.ts +3 -2
- package/dist/signature.esm.js +6 -5
- package/dist/{signatureStateMachine-DAxXmMrk.esm.js → signatureStateMachine-DtoiPzys.esm.js} +3 -3
- package/dist/{stats-DntyIiGr.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-CtxWthxz.esm.js → tri-BG1iJsr4.esm.js} +12 -2
- package/dist/tri.d.ts +1 -1
- package/dist/{tri.esm-CrWAulDi.esm.js → tri.esm-DUC01NgO.esm.js} +27 -23
- package/dist/tri.esm.js +2 -2
- package/dist/trust-graph.d.ts +4 -3
- package/dist/trust-graph.esm.js +4 -3
- package/dist/{types-DpTWgfKY.d.ts → types-BklZ_Wne.d.ts} +1 -1
- package/dist/{types-Dv-9WPJX.d.ts → types-BsYXnC5s.d.ts} +39 -3
- package/dist/types-CxW2e0Ar.d.ts +132 -0
- package/dist/{types-Z9wv19v2.d.ts → types-DgGlgyZT.d.ts} +1 -1
- package/dist/types-ElOJAGaM.esm.js +189 -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--6HA3yUR.d.ts → warmup-BJZPQIiX.d.ts} +5 -1
- package/dist/wasm.d.ts +4 -4
- package/dist/wasm.esm.js +17 -14
- package/dist/watchlist-for-business.d.ts +2 -1
- package/dist/watchlist-for-business.esm.js +6 -5
- package/dist/watchlist.d.ts +2 -1
- package/dist/watchlist.esm.js +6 -5
- package/dist/{watchlistForBusinessStateMachine-DtefJb-D.esm.js → watchlistForBusinessStateMachine-DvEunDxs.esm.js} +3 -3
- package/dist/{watchlistStateMachine-B0aIS2_n.esm.js → watchlistStateMachine-AHXVf-TB.esm.js} +3 -3
- package/dist/workflow.d.ts +230 -98
- package/dist/workflow.esm.js +123 -79
- package/dist/{xstate.esm-Dkm1jy5u.esm.js → xstate.esm-Bomq1a0z.esm.js} +41 -1
- package/package.json +16 -1
- package/dist/IpifyProvider-oZf7Ke1O.esm.js +0 -167
- package/dist/camera-x4LjGTjZ.esm.js +0 -22
- package/dist/deepsightService-ByNKY5Jv.d.ts +0 -276
- package/dist/faceCaptureManagerFactory-CL-7T_vH.d.ts +0 -731
- package/dist/getBrowser-Dv8LZyHE.esm.js +0 -8
- package/dist/openviduLazy-B_s6jnEk.esm.js +0 -3
- package/dist/setup-C7tintPc.esm.js +0 -1064
- /package/dist/{Actor-fIPLXfoi.d.ts → Actor-CGEelYtQ.d.ts} +0 -0
- /package/dist/{BrowserTimerProvider-BVgutW_b.esm.js → BrowserTimerProvider-CHloo0eQ.esm.js} +0 -0
- /package/dist/{ITimerCapability-BvH0pDwp.esm.js → ITimerCapability-pltuG1E8.esm.js} +0 -0
- /package/dist/{MotionSensorProvider-C9fPAJdS.esm.js → MotionSensorProvider-DCbId4De.esm.js} +0 -0
- /package/dist/{apiError-D-GTvFrH.esm.js → apiError-DNS2OCEX.esm.js} +0 -0
- /package/dist/{camera-biGPWlmx.d.ts → camera-CNVUo-bC.d.ts} +0 -0
- /package/dist/{canvas-7uX2izHb.esm.js → canvas-_I95hkPg.esm.js} +0 -0
- /package/dist/{chunk-BK1xu56N.esm.js → chunk-CIKcdghV.esm.js} +0 -0
- /package/dist/{cpf-xBg-DFNn.esm.js → cpf-BKaho0j_.esm.js} +0 -0
- /package/dist/{dateUtils-8dCcuArE.esm.js → dateUtils-7-tQYRNN.esm.js} +0 -0
- /package/dist/{getDeviceClass-C0zrM97a.esm.js → getDeviceClass-DavNdcxh.esm.js} +0 -0
- /package/dist/{http-CfVTgMfU.esm.js → http-BkiUT7EB.esm.js} +0 -0
- /package/dist/{index-52_qi4bd.d.ts → index-XTtxaahe.d.ts} +0 -0
- /package/dist/{otp-D87RTwrx.esm.js → otp-Bfnzf7I3.esm.js} +0 -0
- /package/dist/{otp-BHJnjEEc.d.ts → otp-M4iy57XY.d.ts} +0 -0
- /package/dist/{platform-BfoqeM61.esm.js → platform-uIVQUnJP.esm.js} +0 -0
- /package/dist/{types-BdVOWGGW.esm.js → types-CMcxlSmH.esm.js} +0 -0
- /package/dist/{types-DYZja-k9.d.ts → types-D_IceWxT.d.ts} +0 -0
- /package/dist/{types-F0IXbaCB.d.ts → types-Duy2rDxF.d.ts} +0 -0
- /package/dist/{urlUtils-8RNHyW3x.esm.js → urlUtils-BZqFU9rR.esm.js} +0 -0
package/dist/phone.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
1
|
+
import "./StateMachine-C_AY4cs7.js";
|
|
2
|
+
import "./Manager-CJ3G2zqi.js";
|
|
3
|
+
import "./Actor-CGEelYtQ.js";
|
|
4
|
+
import "./otp-M4iy57XY.js";
|
|
5
|
+
import { n as PhoneState, o as phoneMachine, r as createPhoneManager, s as PhoneConfig, t as PhoneManager } from "./phoneManager-BOTcjXgs.js";
|
|
5
6
|
export { type PhoneConfig, type PhoneManager, type PhoneState, createPhoneManager, phoneMachine };
|
package/dist/phone.esm.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import "./BrowserTimerProvider-
|
|
2
|
-
import "./api-
|
|
3
|
-
import "./events-
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
8
|
-
import { t as
|
|
1
|
+
import "./BrowserTimerProvider-CHloo0eQ.esm.js";
|
|
2
|
+
import "./api-DsbUi7TO.esm.js";
|
|
3
|
+
import "./events-CqGY1yMq.esm.js";
|
|
4
|
+
import "./types-ElOJAGaM.esm.js";
|
|
5
|
+
import "./endpoints-BzMJFAPV.esm.js";
|
|
6
|
+
import "./xstate.esm-Bomq1a0z.esm.js";
|
|
7
|
+
import "./otp-Bfnzf7I3.esm.js";
|
|
8
|
+
import { t as phoneMachine } from "./phoneStateMachine-B_V9nODs.esm.js";
|
|
9
|
+
import { t as createPhoneManager } from "./phoneManager-BWlxqbyD.esm.js";
|
|
9
10
|
|
|
10
11
|
export { createPhoneManager, phoneMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
3
|
-
import { t as OtpValidationErrors } from "./otp-
|
|
1
|
+
import { t as Manager } from "./Manager-CJ3G2zqi.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-CGEelYtQ.js";
|
|
3
|
+
import { t as OtpValidationErrors } from "./otp-M4iy57XY.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/phone/types.d.ts
|
|
6
6
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
1
|
+
import { n as createManagerInstrumentation } from "./events-CqGY1yMq.esm.js";
|
|
2
|
+
import { n as eventModuleNames } from "./types-ElOJAGaM.esm.js";
|
|
3
|
+
import { l as createManager, s as createActor } from "./xstate.esm-Bomq1a0z.esm.js";
|
|
4
|
+
import { t as OTP_CODE_LENGTH } from "./otp-Bfnzf7I3.esm.js";
|
|
5
|
+
import { t as phoneMachine } from "./phoneStateMachine-B_V9nODs.esm.js";
|
|
5
6
|
|
|
6
7
|
//#region src/modules/phone/phoneActor.ts
|
|
7
8
|
function createPhoneActor(options) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-
|
|
2
|
-
import { t as api } from "./api-
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
-
import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-
|
|
5
|
-
import { n as computeOtpValidationErrors, r as isOtpComplete } from "./otp-
|
|
1
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CHloo0eQ.esm.js";
|
|
2
|
+
import { t as api } from "./api-DsbUi7TO.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-BzMJFAPV.esm.js";
|
|
4
|
+
import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-Bomq1a0z.esm.js";
|
|
5
|
+
import { n as computeOtpValidationErrors, r as isOtpComplete } from "./otp-Bfnzf7I3.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/phone/phoneServices.ts
|
|
8
8
|
function getPhoneServerFailureReason(error, invalidStatus) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createElectronicSignatureManager } from "./electronicSignatureManager-
|
|
1
|
+
import { t as createElectronicSignatureManager } from "./electronicSignatureManager-DjzUzqZj.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region src/modules/qe-signature/index.ts
|
|
4
4
|
function createQeSignatureManager(options) {
|
package/dist/qe-signature.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
1
|
+
import "./StateMachine-C_AY4cs7.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CJ3G2zqi.js";
|
|
3
|
+
import "./Actor-CGEelYtQ.js";
|
|
4
|
+
import { c as ConsentKey, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-Icld-cKW.js";
|
|
4
5
|
|
|
5
6
|
//#region src/modules/qe-signature/index.d.ts
|
|
6
7
|
|
package/dist/qe-signature.esm.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./events-
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./urlUtils-
|
|
7
|
-
import "./externalFetch-
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
1
|
+
import "./api-DsbUi7TO.esm.js";
|
|
2
|
+
import "./events-CqGY1yMq.esm.js";
|
|
3
|
+
import "./types-ElOJAGaM.esm.js";
|
|
4
|
+
import "./endpoints-BzMJFAPV.esm.js";
|
|
5
|
+
import "./xstate.esm-Bomq1a0z.esm.js";
|
|
6
|
+
import "./urlUtils-BZqFU9rR.esm.js";
|
|
7
|
+
import "./externalFetch-CyhBfD-n.esm.js";
|
|
8
|
+
import "./apiError-DNS2OCEX.esm.js";
|
|
9
|
+
import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, s as getDefaultConsentChecks } from "./electronicSignatureManager-DjzUzqZj.esm.js";
|
|
10
|
+
import { t as createQeSignatureManager } from "./qe-signature-BhFnI9pT.esm.js";
|
|
10
11
|
|
|
11
12
|
export { QE_CONSENT_KEYS, areAllConsented, createQeSignatureManager, getDefaultConsentChecks, electronicSignatureMachine as qeSignatureMachine };
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { t as api } from "./api-DsbUi7TO.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-BzMJFAPV.esm.js";
|
|
3
|
+
import { t as isAndroid } from "./platform-uIVQUnJP.esm.js";
|
|
4
|
+
import { d as stopRecording, u as startRecordingSession, v as uploadDeepsightVideo } from "./onDeviceFaceResults-DVBggeq8.esm.js";
|
|
5
|
+
import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-C3NAkVgK.esm.js";
|
|
6
|
+
|
|
7
|
+
//#region src/internal/manualReview/manualReviewService.ts
|
|
8
|
+
async function flagFaceManualReview() {
|
|
9
|
+
try {
|
|
10
|
+
await api.put(endpoints.updateSession, { manualSelfieCheckNeeded: true });
|
|
11
|
+
} catch {}
|
|
12
|
+
}
|
|
13
|
+
async function flagIdManualReview() {
|
|
14
|
+
try {
|
|
15
|
+
await api.put(endpoints.updateSession, { manualIdCheckNeeded: true });
|
|
16
|
+
} catch {}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region ../infra/src/media/VideoTrimmer.ts
|
|
21
|
+
async function getDurationBySeek(videoBlob) {
|
|
22
|
+
const video = document.createElement("video");
|
|
23
|
+
video.preload = "metadata";
|
|
24
|
+
video.src = URL.createObjectURL(videoBlob);
|
|
25
|
+
try {
|
|
26
|
+
if (!Number.isFinite(video.duration)) {
|
|
27
|
+
video.currentTime = Number.MAX_SAFE_INTEGER;
|
|
28
|
+
await new Promise((resolve) => {
|
|
29
|
+
const onDurationChange = () => {
|
|
30
|
+
if (Number.isFinite(video.duration)) {
|
|
31
|
+
video.removeEventListener("durationchange", onDurationChange);
|
|
32
|
+
video.removeEventListener("timeupdate", onTimeUpdate);
|
|
33
|
+
resolve(video.duration);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
const onTimeUpdate = () => {
|
|
37
|
+
if (Number.isFinite(video.duration)) {
|
|
38
|
+
video.removeEventListener("timeupdate", onTimeUpdate);
|
|
39
|
+
video.removeEventListener("durationchange", onDurationChange);
|
|
40
|
+
resolve(video.duration);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
video.addEventListener("durationchange", onDurationChange);
|
|
44
|
+
video.addEventListener("timeupdate", onTimeUpdate);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
const duration = video.duration;
|
|
48
|
+
return Number.isFinite(duration) ? duration : null;
|
|
49
|
+
} finally {
|
|
50
|
+
URL.revokeObjectURL(video.src);
|
|
51
|
+
video.src = "";
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
async function trimLastNSecondsUsingPlayback(videoBlob, seconds) {
|
|
55
|
+
const video = document.createElement("video");
|
|
56
|
+
video.preload = "metadata";
|
|
57
|
+
video.playsInline = true;
|
|
58
|
+
video.muted = true;
|
|
59
|
+
const videoURL = URL.createObjectURL(videoBlob);
|
|
60
|
+
video.src = videoURL;
|
|
61
|
+
const duration = await getDurationBySeek(videoBlob);
|
|
62
|
+
if (!duration || duration < seconds) {
|
|
63
|
+
URL.revokeObjectURL(videoURL);
|
|
64
|
+
return videoBlob;
|
|
65
|
+
}
|
|
66
|
+
const startTime = Math.max(0, Math.floor(duration) - seconds);
|
|
67
|
+
await new Promise((resolve) => {
|
|
68
|
+
if (video.readyState >= 2) resolve();
|
|
69
|
+
else video.addEventListener("loadedmetadata", () => resolve(), { once: true });
|
|
70
|
+
});
|
|
71
|
+
const canvas = document.createElement("canvas");
|
|
72
|
+
canvas.width = 230;
|
|
73
|
+
canvas.height = 320;
|
|
74
|
+
const captureFps = isAndroid() ? 15 : 24;
|
|
75
|
+
const stream = canvas.captureStream(captureFps);
|
|
76
|
+
const ctx = canvas.getContext("2d");
|
|
77
|
+
video.currentTime = startTime;
|
|
78
|
+
await new Promise((resolve) => {
|
|
79
|
+
video.addEventListener("seeked", () => resolve(), { once: true });
|
|
80
|
+
});
|
|
81
|
+
ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
|
|
82
|
+
const mimeType = videoBlob.type || (MediaRecorder.isTypeSupported("video/webm") ? "video/webm" : "video/mp4");
|
|
83
|
+
const mediaRecorder = new MediaRecorder(stream.clone(), {
|
|
84
|
+
mimeType,
|
|
85
|
+
videoBitsPerSecond: 5e5,
|
|
86
|
+
bitsPerSecond: 5e5
|
|
87
|
+
});
|
|
88
|
+
const chunks = [];
|
|
89
|
+
mediaRecorder.ondataavailable = (event) => {
|
|
90
|
+
if (event.data.size > 0) chunks.push(event.data);
|
|
91
|
+
};
|
|
92
|
+
const recordingPromise = new Promise((resolve) => {
|
|
93
|
+
mediaRecorder.onstop = () => {
|
|
94
|
+
const trimmedBlob$1 = new Blob(chunks, { type: mimeType });
|
|
95
|
+
URL.revokeObjectURL(videoURL);
|
|
96
|
+
mediaRecorder.stream?.getTracks().forEach((track) => track.stop());
|
|
97
|
+
stream.getTracks().forEach((track) => track.stop());
|
|
98
|
+
video.src = "";
|
|
99
|
+
resolve(trimmedBlob$1);
|
|
100
|
+
};
|
|
101
|
+
});
|
|
102
|
+
video.addEventListener("play", () => {
|
|
103
|
+
function drawVideo() {
|
|
104
|
+
if (video.currentTime >= duration) {
|
|
105
|
+
mediaRecorder.stop();
|
|
106
|
+
video.pause();
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
|
|
110
|
+
requestAnimationFrame(drawVideo);
|
|
111
|
+
}
|
|
112
|
+
drawVideo();
|
|
113
|
+
setTimeout(() => {
|
|
114
|
+
mediaRecorder.start(100);
|
|
115
|
+
}, 500);
|
|
116
|
+
});
|
|
117
|
+
video.play().catch(() => {
|
|
118
|
+
URL.revokeObjectURL(videoURL);
|
|
119
|
+
});
|
|
120
|
+
const trimmedBlob = await recordingPromise;
|
|
121
|
+
console.timeEnd("trimLastNSecondsUsingPlayback");
|
|
122
|
+
return trimmedBlob;
|
|
123
|
+
}
|
|
124
|
+
async function trimLastNSeconds(videoBlob, seconds) {
|
|
125
|
+
return await trimLastNSecondsUsingPlayback(videoBlob, seconds);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region ../infra/src/providers/browser/LocalRecordingProvider.ts
|
|
130
|
+
function toBase64(videoBlob) {
|
|
131
|
+
return new Promise((resolve, reject) => {
|
|
132
|
+
const reader = new FileReader();
|
|
133
|
+
reader.onloadend = () => {
|
|
134
|
+
const base64 = reader.result.split(",")[1];
|
|
135
|
+
resolve(base64);
|
|
136
|
+
};
|
|
137
|
+
reader.onerror = () => reject(reader.error ?? /* @__PURE__ */ new Error("FileReader error"));
|
|
138
|
+
reader.readAsDataURL(videoBlob);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
var LocalRecordingProvider = class {
|
|
142
|
+
constructor() {
|
|
143
|
+
this.mediaRecorder = null;
|
|
144
|
+
this._isRecording = false;
|
|
145
|
+
this._hasError = false;
|
|
146
|
+
this._error = null;
|
|
147
|
+
this.mimeType = "";
|
|
148
|
+
this.stream = null;
|
|
149
|
+
this.pauseRecordingBound = this.pauseRecording.bind(this);
|
|
150
|
+
}
|
|
151
|
+
get isRecording() {
|
|
152
|
+
return this._isRecording;
|
|
153
|
+
}
|
|
154
|
+
get hasError() {
|
|
155
|
+
return this._hasError;
|
|
156
|
+
}
|
|
157
|
+
get error() {
|
|
158
|
+
return this._error;
|
|
159
|
+
}
|
|
160
|
+
startRecording(stream) {
|
|
161
|
+
this.reset();
|
|
162
|
+
this.registerEventListeners();
|
|
163
|
+
this.stream = stream;
|
|
164
|
+
try {
|
|
165
|
+
const options = getAdaptiveMediaRecorderOptions();
|
|
166
|
+
this.mimeType = options.mimeType;
|
|
167
|
+
const recorder = new MediaRecorder(stream.clone(), options);
|
|
168
|
+
recorder.onerror = (event) => {
|
|
169
|
+
this._error = `Recording error: ${event}`;
|
|
170
|
+
this._isRecording = false;
|
|
171
|
+
this._hasError = true;
|
|
172
|
+
};
|
|
173
|
+
recorder.start();
|
|
174
|
+
this.mediaRecorder = recorder;
|
|
175
|
+
this._isRecording = true;
|
|
176
|
+
this._error = null;
|
|
177
|
+
this._hasError = false;
|
|
178
|
+
} catch (err) {
|
|
179
|
+
this._error = `Failed to start recording: ${err}`;
|
|
180
|
+
this._hasError = true;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
async stopRecording(trimSeconds, encrypt, generateChecksum) {
|
|
184
|
+
const recorder = this.mediaRecorder;
|
|
185
|
+
return new Promise((resolve, reject) => {
|
|
186
|
+
this.removeEventListeners();
|
|
187
|
+
if (recorder && this._isRecording) {
|
|
188
|
+
const chunks = [];
|
|
189
|
+
recorder.ondataavailable = (event) => {
|
|
190
|
+
if (event.data.size > 0) chunks.push(event.data);
|
|
191
|
+
};
|
|
192
|
+
recorder.onstop = async () => {
|
|
193
|
+
try {
|
|
194
|
+
const trimmedVideo = await trimLastNSeconds(new Blob(chunks, { type: this.mimeType }), trimSeconds);
|
|
195
|
+
const encryptedVideoBase64 = encrypt(await toBase64(trimmedVideo));
|
|
196
|
+
generateChecksum(await trimmedVideo.arrayBuffer());
|
|
197
|
+
this._isRecording = false;
|
|
198
|
+
resolve({
|
|
199
|
+
trimmedBlob: trimmedVideo,
|
|
200
|
+
encryptedVideo: encryptedVideoBase64
|
|
201
|
+
});
|
|
202
|
+
} catch (error) {
|
|
203
|
+
this._isRecording = false;
|
|
204
|
+
this._error = `Recording stop failed: ${error}`;
|
|
205
|
+
this._hasError = true;
|
|
206
|
+
reject(error);
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
recorder.stop();
|
|
210
|
+
this._isRecording = false;
|
|
211
|
+
} else resolve({
|
|
212
|
+
trimmedBlob: new Blob([], { type: this.mimeType }),
|
|
213
|
+
encryptedVideo: ""
|
|
214
|
+
});
|
|
215
|
+
recorder?.stream?.getTracks().forEach((track) => track.stop());
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
reset() {
|
|
219
|
+
this._isRecording = false;
|
|
220
|
+
this._error = null;
|
|
221
|
+
this._hasError = false;
|
|
222
|
+
}
|
|
223
|
+
pauseRecording() {
|
|
224
|
+
if (!this._isRecording) return;
|
|
225
|
+
if (this.mediaRecorder?.state === "recording") try {
|
|
226
|
+
this.mediaRecorder.pause();
|
|
227
|
+
} catch {}
|
|
228
|
+
}
|
|
229
|
+
registerEventListeners() {
|
|
230
|
+
document.addEventListener("visibilitychange", this.pauseRecordingBound);
|
|
231
|
+
}
|
|
232
|
+
removeEventListeners() {
|
|
233
|
+
document.removeEventListener("visibilitychange", this.pauseRecordingBound);
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region src/internal/faceCapture/recordingService.ts
|
|
239
|
+
let openViduProviderImportPromise;
|
|
240
|
+
let openViduBrowserImportPromise;
|
|
241
|
+
function loadOpenViduProviderModule() {
|
|
242
|
+
if (!openViduProviderImportPromise) openViduProviderImportPromise = import("./OpenViduRecordingProvider-B_0GKkzc.esm.js");
|
|
243
|
+
return openViduProviderImportPromise;
|
|
244
|
+
}
|
|
245
|
+
function loadOpenViduBrowserModule() {
|
|
246
|
+
if (!openViduBrowserImportPromise) openViduBrowserImportPromise = (async () => {
|
|
247
|
+
return (await import("./openviduLazy-Dov8oKfL.esm.js")).loadOpenVidu();
|
|
248
|
+
})();
|
|
249
|
+
return openViduBrowserImportPromise;
|
|
250
|
+
}
|
|
251
|
+
function preloadOpenViduProvider() {
|
|
252
|
+
loadOpenViduProviderModule();
|
|
253
|
+
loadOpenViduBrowserModule();
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Records on-device and uploads encrypted video for liveness.
|
|
257
|
+
*/
|
|
258
|
+
var LocalRecordingService = class {
|
|
259
|
+
constructor(wasmUtil, sessionToken) {
|
|
260
|
+
this.recorder = new LocalRecordingProvider();
|
|
261
|
+
this.sessionToken = sessionToken;
|
|
262
|
+
this.wasmUtil = wasmUtil;
|
|
263
|
+
}
|
|
264
|
+
async start(stream) {
|
|
265
|
+
this.recorder.startRecording(stream);
|
|
266
|
+
this.wasmUtil.osv();
|
|
267
|
+
}
|
|
268
|
+
async stop() {
|
|
269
|
+
if (!this.recorder.isRecording) return { recordingId: null };
|
|
270
|
+
this.wasmUtil.oev();
|
|
271
|
+
const result = await this.recorder.stopRecording(10, (base64) => this.wasmUtil.encryptImage(base64), (buffer) => this.wasmUtil.ckvcks(buffer));
|
|
272
|
+
if (!this.sessionToken) return { recordingId: null };
|
|
273
|
+
return { recordingId: await uploadDeepsightVideo(result.encryptedVideo, this.sessionToken) };
|
|
274
|
+
}
|
|
275
|
+
async stopAndGetVideo() {
|
|
276
|
+
if (!this.recorder.isRecording) return { videoBase64: void 0 };
|
|
277
|
+
try {
|
|
278
|
+
this.wasmUtil.oev();
|
|
279
|
+
const videoBase64 = (await this.recorder.stopRecording(10, (base64) => base64, () => {})).encryptedVideo;
|
|
280
|
+
return { videoBase64: videoBase64 ? videoBase64 : void 0 };
|
|
281
|
+
} catch {
|
|
282
|
+
return { videoBase64: void 0 };
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
cleanup() {
|
|
286
|
+
this.recorder.reset();
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* Records through OpenVidu and manages the session lifecycle.
|
|
291
|
+
*/
|
|
292
|
+
var OpenViduRecordingService = class {
|
|
293
|
+
constructor(config) {
|
|
294
|
+
this.config = config;
|
|
295
|
+
}
|
|
296
|
+
async start(stream) {
|
|
297
|
+
if (!this.provider) {
|
|
298
|
+
const { OpenViduRecordingProvider } = await loadOpenViduProviderModule();
|
|
299
|
+
this.provider = new OpenViduRecordingProvider();
|
|
300
|
+
}
|
|
301
|
+
this.session = await startRecordingSession({
|
|
302
|
+
config: {
|
|
303
|
+
...this.config,
|
|
304
|
+
recording: { capability: this.provider }
|
|
305
|
+
},
|
|
306
|
+
clonedStream: stream.clone(),
|
|
307
|
+
existing: this.session
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
async stop() {
|
|
311
|
+
if (this.session) {
|
|
312
|
+
stopRecording(this.session);
|
|
313
|
+
this.session = void 0;
|
|
314
|
+
}
|
|
315
|
+
return { recordingId: null };
|
|
316
|
+
}
|
|
317
|
+
async stopAndGetVideo() {
|
|
318
|
+
if (this.session) {
|
|
319
|
+
stopRecording(this.session);
|
|
320
|
+
this.session = void 0;
|
|
321
|
+
}
|
|
322
|
+
return { videoBase64: void 0 };
|
|
323
|
+
}
|
|
324
|
+
cleanup() {
|
|
325
|
+
if (this.session) stopRecording(this.session);
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* Creates the recording service for the current configuration.
|
|
330
|
+
*
|
|
331
|
+
* Order of precedence:
|
|
332
|
+
* 1. `onDeviceFaceResultsSubmissionEnabled === true` → no recording. The
|
|
333
|
+
* on-device workflow never uploads media, only the staged face-results
|
|
334
|
+
* JSON via `WebApi.postFaceResults`. Mirrors V1's
|
|
335
|
+
* `FaceFlowManager.setRecorders()` early return.
|
|
336
|
+
* 2. `deepsightLiveness === 'VIDEOLIVENESS'` → local Deepsight recorder.
|
|
337
|
+
* 3. `enableFaceRecording === true` → server-side OpenVidu recorder.
|
|
338
|
+
* 4. otherwise → no recording.
|
|
339
|
+
*/
|
|
340
|
+
function createRecordingService(params) {
|
|
341
|
+
if (params.config.onDeviceFaceResultsSubmissionEnabled === true) return;
|
|
342
|
+
if (params.config.deepsightLiveness === "VIDEOLIVENESS") return new LocalRecordingService(params.wasmUtil, params.sessionToken);
|
|
343
|
+
if (params.config.enableFaceRecording === true) return new OpenViduRecordingService(params.config);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
//#endregion
|
|
347
|
+
export { flagIdManualReview as i, preloadOpenViduProvider as n, flagFaceManualReview as r, createRecordingService as t };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
1
|
+
import "./StateMachine-C_AY4cs7.js";
|
|
2
|
+
import "./Manager-CJ3G2zqi.js";
|
|
3
|
+
import "./Actor-CGEelYtQ.js";
|
|
4
|
+
import { a as RedirectToMobileActor, c as RedirectToMobileServices, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, o as redirectToMobileMachine, r as createRedirectToMobileManager, s as RedirectToMobileConfig, t as RedirectToMobileManager } from "./redirectToMobileManager-Br0KZK1G.js";
|
|
4
5
|
|
|
5
6
|
//#region src/modules/redirect-to-mobile/redirectToMobileServices.d.ts
|
|
6
7
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import "./BrowserTimerProvider-
|
|
2
|
-
import "./api-
|
|
3
|
-
import "./events-
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
8
|
-
import { n as
|
|
1
|
+
import "./BrowserTimerProvider-CHloo0eQ.esm.js";
|
|
2
|
+
import "./api-DsbUi7TO.esm.js";
|
|
3
|
+
import "./events-CqGY1yMq.esm.js";
|
|
4
|
+
import "./types-ElOJAGaM.esm.js";
|
|
5
|
+
import "./endpoints-BzMJFAPV.esm.js";
|
|
6
|
+
import "./xstate.esm-Bomq1a0z.esm.js";
|
|
7
|
+
import "./urlUtils-BZqFU9rR.esm.js";
|
|
8
|
+
import { n as defaultRedirectToMobileServices, t as redirectToMobileMachine } from "./redirectToMobileStateMachine-DoAnf2ql.esm.js";
|
|
9
|
+
import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-BaAo9rgi.esm.js";
|
|
9
10
|
|
|
10
11
|
export { createRedirectToMobileManager, createRedirectToMobileManagerFromActor, defaultRedirectToMobileServices, redirectToMobileMachine };
|
package/dist/{redirectToMobileManager-DCvpKdkD.esm.js → redirectToMobileManager-BaAo9rgi.esm.js}
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-
|
|
2
|
-
import { n as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CHloo0eQ.esm.js";
|
|
2
|
+
import { n as createManagerInstrumentation } from "./events-CqGY1yMq.esm.js";
|
|
3
|
+
import { n as eventModuleNames } from "./types-ElOJAGaM.esm.js";
|
|
4
|
+
import { a as fromPromise, i as fromCallback, l as createManager, s as createActor } from "./xstate.esm-Bomq1a0z.esm.js";
|
|
5
|
+
import { n as defaultRedirectToMobileServices, t as redirectToMobileMachine } from "./redirectToMobileStateMachine-DoAnf2ql.esm.js";
|
|
5
6
|
|
|
6
7
|
//#region src/modules/redirect-to-mobile/redirectToMobileActor.ts
|
|
7
8
|
const POLL_INTERVAL_MS = 5e3;
|
package/dist/{redirectToMobileManager-yOHAmwg-.d.ts → redirectToMobileManager-Br0KZK1G.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
1
|
+
import { t as Manager } from "./Manager-CJ3G2zqi.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-CGEelYtQ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/redirect-to-mobile/types.d.ts
|
|
5
5
|
type RedirectToMobileConfig = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-
|
|
2
|
-
import { t as api } from "./api-
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
-
import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-
|
|
5
|
-
import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-
|
|
1
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CHloo0eQ.esm.js";
|
|
2
|
+
import { t as api } from "./api-DsbUi7TO.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-BzMJFAPV.esm.js";
|
|
4
|
+
import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-Bomq1a0z.esm.js";
|
|
5
|
+
import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-BZqFU9rR.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/redirect-to-mobile/redirectToMobileServices.ts
|
|
8
8
|
async function fetchRedirectUrl(signal) {
|
|
@@ -200,6 +200,10 @@ const redirectToMobileMachine = setup({
|
|
|
200
200
|
},
|
|
201
201
|
sms: {
|
|
202
202
|
initial: "idle",
|
|
203
|
+
on: { RESET_SMS: {
|
|
204
|
+
target: ".idle",
|
|
205
|
+
actions: "resetSmsSent"
|
|
206
|
+
} },
|
|
203
207
|
states: {
|
|
204
208
|
idle: { on: { SEND_SMS: "sending" } },
|
|
205
209
|
sending: { invoke: {
|
|
@@ -219,13 +223,7 @@ const redirectToMobileMachine = setup({
|
|
|
219
223
|
actions: "setSmsError"
|
|
220
224
|
}
|
|
221
225
|
} },
|
|
222
|
-
sent: { on: {
|
|
223
|
-
SEND_SMS: "sending",
|
|
224
|
-
RESET_SMS: {
|
|
225
|
-
target: "idle",
|
|
226
|
-
actions: "resetSmsSent"
|
|
227
|
-
}
|
|
228
|
-
} }
|
|
226
|
+
sent: { on: { SEND_SMS: "sending" } }
|
|
229
227
|
}
|
|
230
228
|
}
|
|
231
229
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as fromCallback, s as createActor } from "./xstate.esm-
|
|
3
|
-
import { t as FACE_ERROR_CODES } from "./types-
|
|
1
|
+
import { _ as getTimestamp, g as createEventBus } from "./events-CqGY1yMq.esm.js";
|
|
2
|
+
import { i as fromCallback, s as createActor } from "./xstate.esm-Bomq1a0z.esm.js";
|
|
3
|
+
import { t as FACE_ERROR_CODES } from "./types-CMcxlSmH.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/internal/flow-events/flowEvents.ts
|
|
6
6
|
function createFlowEventBus() {
|
package/dist/selfie.d.ts
CHANGED
|
@@ -1,15 +1,22 @@
|
|
|
1
|
-
import "./warmup
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import "./
|
|
8
|
-
import "./types-
|
|
9
|
-
import "./types-
|
|
10
|
-
import
|
|
11
|
-
import "./
|
|
12
|
-
import
|
|
1
|
+
import "./warmup-BJZPQIiX.js";
|
|
2
|
+
import "./StateMachine-C_AY4cs7.js";
|
|
3
|
+
import "./Manager-CJ3G2zqi.js";
|
|
4
|
+
import "./Actor-CGEelYtQ.js";
|
|
5
|
+
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-BbWjgpiF.js";
|
|
6
|
+
import { a as SelfieCaptureOnlyMachine, g as SelfieConfig, h as SelfieCaptureOnlyConfig, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine } from "./faceCaptureManagerFactory-CGKbf7zt.js";
|
|
7
|
+
import { t as CameraStream } from "./camera-CNVUo-bC.js";
|
|
8
|
+
import "./types-DgGlgyZT.js";
|
|
9
|
+
import "./types-D_IceWxT.js";
|
|
10
|
+
import "./canvas-CJUmoXSD.js";
|
|
11
|
+
import "./createFaceAvatar-B8pFpy6o.js";
|
|
12
|
+
import "./types-BsYXnC5s.js";
|
|
13
|
+
import "./IWasmUtilCapability-d2XvzaCk.js";
|
|
14
|
+
import { n as PermissionStatus, t as PermissionResult } from "./types-Duy2rDxF.js";
|
|
15
|
+
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-CxW2e0Ar.js";
|
|
16
|
+
import "./FaceDetectionProvider-B78455D4.js";
|
|
17
|
+
import "./StreamCanvasCapture-DS1TOoiH.js";
|
|
18
|
+
import { t as DeepsightService } from "./deepsightService-CMB9XjES.js";
|
|
19
|
+
import { a as ProcessFaceResponse, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-R0Jw5sjb.js";
|
|
13
20
|
|
|
14
21
|
//#region src/modules/selfie/selfieCaptureOnlyManager.d.ts
|
|
15
22
|
type SelfieCaptureOnlyState = FaceCaptureManagerState;
|