@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
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { a as __toESM } from "./rolldown-runtime-FZ4Itg2g.esm.js";
|
|
2
|
-
//#region ../infra/src/providers/browser/openviduLazy.ts
|
|
3
|
-
let openViduImport;
|
|
4
|
-
async function loadOpenVidu() {
|
|
5
|
-
if (openViduImport) return openViduImport;
|
|
6
|
-
openViduImport = import("./lib-DAyUtOTj.esm.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
|
|
7
|
-
return openViduImport;
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
export { loadOpenVidu };
|
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
import { t as isAndroid } from "./platform-BJrm5nzZ.esm.js";
|
|
2
|
-
import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-CB62pUQf.esm.js";
|
|
3
|
-
import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-dALSV8af.esm.js";
|
|
4
|
-
//#region ../infra/src/media/VideoTrimmer.ts
|
|
5
|
-
async function getDurationBySeek(videoBlob) {
|
|
6
|
-
const video = document.createElement("video");
|
|
7
|
-
video.preload = "metadata";
|
|
8
|
-
video.src = URL.createObjectURL(videoBlob);
|
|
9
|
-
try {
|
|
10
|
-
if (!Number.isFinite(video.duration)) {
|
|
11
|
-
video.currentTime = Number.MAX_SAFE_INTEGER;
|
|
12
|
-
await new Promise((resolve) => {
|
|
13
|
-
const onDurationChange = () => {
|
|
14
|
-
if (Number.isFinite(video.duration)) {
|
|
15
|
-
video.removeEventListener("durationchange", onDurationChange);
|
|
16
|
-
video.removeEventListener("timeupdate", onTimeUpdate);
|
|
17
|
-
resolve(video.duration);
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
const onTimeUpdate = () => {
|
|
21
|
-
if (Number.isFinite(video.duration)) {
|
|
22
|
-
video.removeEventListener("timeupdate", onTimeUpdate);
|
|
23
|
-
video.removeEventListener("durationchange", onDurationChange);
|
|
24
|
-
resolve(video.duration);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
video.addEventListener("durationchange", onDurationChange);
|
|
28
|
-
video.addEventListener("timeupdate", onTimeUpdate);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
const duration = video.duration;
|
|
32
|
-
return Number.isFinite(duration) ? duration : null;
|
|
33
|
-
} finally {
|
|
34
|
-
URL.revokeObjectURL(video.src);
|
|
35
|
-
video.src = "";
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
async function trimLastNSecondsUsingPlayback(videoBlob, seconds) {
|
|
39
|
-
const video = document.createElement("video");
|
|
40
|
-
video.preload = "metadata";
|
|
41
|
-
video.playsInline = true;
|
|
42
|
-
video.muted = true;
|
|
43
|
-
const videoURL = URL.createObjectURL(videoBlob);
|
|
44
|
-
video.src = videoURL;
|
|
45
|
-
const duration = await getDurationBySeek(videoBlob);
|
|
46
|
-
if (!duration || duration < seconds) {
|
|
47
|
-
URL.revokeObjectURL(videoURL);
|
|
48
|
-
return videoBlob;
|
|
49
|
-
}
|
|
50
|
-
const startTime = Math.max(0, Math.floor(duration) - seconds);
|
|
51
|
-
await new Promise((resolve) => {
|
|
52
|
-
if (video.readyState >= 2) resolve();
|
|
53
|
-
else video.addEventListener("loadedmetadata", () => resolve(), { once: true });
|
|
54
|
-
});
|
|
55
|
-
const canvas = document.createElement("canvas");
|
|
56
|
-
canvas.width = 230;
|
|
57
|
-
canvas.height = 320;
|
|
58
|
-
const captureFps = isAndroid() ? 15 : 24;
|
|
59
|
-
const stream = canvas.captureStream(captureFps);
|
|
60
|
-
const ctx = canvas.getContext("2d");
|
|
61
|
-
video.currentTime = startTime;
|
|
62
|
-
await new Promise((resolve) => {
|
|
63
|
-
video.addEventListener("seeked", () => resolve(), { once: true });
|
|
64
|
-
});
|
|
65
|
-
ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
|
|
66
|
-
const mimeType = videoBlob.type || (MediaRecorder.isTypeSupported("video/webm") ? "video/webm" : "video/mp4");
|
|
67
|
-
const mediaRecorder = new MediaRecorder(stream.clone(), {
|
|
68
|
-
mimeType,
|
|
69
|
-
videoBitsPerSecond: 5e5,
|
|
70
|
-
bitsPerSecond: 5e5
|
|
71
|
-
});
|
|
72
|
-
const chunks = [];
|
|
73
|
-
mediaRecorder.ondataavailable = (event) => {
|
|
74
|
-
if (event.data.size > 0) chunks.push(event.data);
|
|
75
|
-
};
|
|
76
|
-
const recordingPromise = new Promise((resolve) => {
|
|
77
|
-
mediaRecorder.onstop = () => {
|
|
78
|
-
const trimmedBlob = new Blob(chunks, { type: mimeType });
|
|
79
|
-
URL.revokeObjectURL(videoURL);
|
|
80
|
-
mediaRecorder.stream?.getTracks().forEach((track) => track.stop());
|
|
81
|
-
stream.getTracks().forEach((track) => track.stop());
|
|
82
|
-
video.src = "";
|
|
83
|
-
resolve(trimmedBlob);
|
|
84
|
-
};
|
|
85
|
-
});
|
|
86
|
-
video.addEventListener("play", () => {
|
|
87
|
-
function drawVideo() {
|
|
88
|
-
if (video.currentTime >= duration) {
|
|
89
|
-
mediaRecorder.stop();
|
|
90
|
-
video.pause();
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
|
|
94
|
-
requestAnimationFrame(drawVideo);
|
|
95
|
-
}
|
|
96
|
-
drawVideo();
|
|
97
|
-
setTimeout(() => {
|
|
98
|
-
mediaRecorder.start(100);
|
|
99
|
-
}, 500);
|
|
100
|
-
});
|
|
101
|
-
video.play().catch(() => {
|
|
102
|
-
URL.revokeObjectURL(videoURL);
|
|
103
|
-
});
|
|
104
|
-
const trimmedBlob = await recordingPromise;
|
|
105
|
-
console.timeEnd("trimLastNSecondsUsingPlayback");
|
|
106
|
-
return trimmedBlob;
|
|
107
|
-
}
|
|
108
|
-
async function trimLastNSeconds(videoBlob, seconds) {
|
|
109
|
-
return await trimLastNSecondsUsingPlayback(videoBlob, seconds);
|
|
110
|
-
}
|
|
111
|
-
//#endregion
|
|
112
|
-
//#region ../infra/src/providers/browser/LocalRecordingProvider.ts
|
|
113
|
-
function toBase64(videoBlob) {
|
|
114
|
-
return new Promise((resolve, reject) => {
|
|
115
|
-
const reader = new FileReader();
|
|
116
|
-
reader.onloadend = () => {
|
|
117
|
-
const base64 = reader.result.split(",")[1];
|
|
118
|
-
resolve(base64);
|
|
119
|
-
};
|
|
120
|
-
reader.onerror = () => reject(reader.error ?? /* @__PURE__ */ new Error("FileReader error"));
|
|
121
|
-
reader.readAsDataURL(videoBlob);
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
var LocalRecordingProvider = class {
|
|
125
|
-
constructor() {
|
|
126
|
-
this.mediaRecorder = null;
|
|
127
|
-
this._isRecording = false;
|
|
128
|
-
this._hasError = false;
|
|
129
|
-
this._error = null;
|
|
130
|
-
this.mimeType = "";
|
|
131
|
-
this.stream = null;
|
|
132
|
-
this.pauseRecordingBound = this.pauseRecording.bind(this);
|
|
133
|
-
}
|
|
134
|
-
get isRecording() {
|
|
135
|
-
return this._isRecording;
|
|
136
|
-
}
|
|
137
|
-
get hasError() {
|
|
138
|
-
return this._hasError;
|
|
139
|
-
}
|
|
140
|
-
get error() {
|
|
141
|
-
return this._error;
|
|
142
|
-
}
|
|
143
|
-
startRecording(stream) {
|
|
144
|
-
this.reset();
|
|
145
|
-
this.registerEventListeners();
|
|
146
|
-
this.stream = stream;
|
|
147
|
-
try {
|
|
148
|
-
const options = getAdaptiveMediaRecorderOptions();
|
|
149
|
-
this.mimeType = options.mimeType;
|
|
150
|
-
const recorder = new MediaRecorder(stream.clone(), options);
|
|
151
|
-
recorder.onerror = (event) => {
|
|
152
|
-
this._error = `Recording error: ${event}`;
|
|
153
|
-
this._isRecording = false;
|
|
154
|
-
this._hasError = true;
|
|
155
|
-
};
|
|
156
|
-
recorder.start();
|
|
157
|
-
this.mediaRecorder = recorder;
|
|
158
|
-
this._isRecording = true;
|
|
159
|
-
this._error = null;
|
|
160
|
-
this._hasError = false;
|
|
161
|
-
} catch (err) {
|
|
162
|
-
this._error = `Failed to start recording: ${err}`;
|
|
163
|
-
this._hasError = true;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
async stopRecording(trimSeconds, encrypt, generateChecksum) {
|
|
167
|
-
const recorder = this.mediaRecorder;
|
|
168
|
-
return new Promise((resolve, reject) => {
|
|
169
|
-
this.removeEventListeners();
|
|
170
|
-
if (recorder && this._isRecording) {
|
|
171
|
-
const chunks = [];
|
|
172
|
-
recorder.ondataavailable = (event) => {
|
|
173
|
-
if (event.data.size > 0) chunks.push(event.data);
|
|
174
|
-
};
|
|
175
|
-
recorder.onstop = async () => {
|
|
176
|
-
try {
|
|
177
|
-
const trimmedVideo = await trimLastNSeconds(new Blob(chunks, { type: this.mimeType }), trimSeconds);
|
|
178
|
-
const encryptedVideoBase64 = encrypt(await toBase64(trimmedVideo));
|
|
179
|
-
generateChecksum(await trimmedVideo.arrayBuffer());
|
|
180
|
-
this._isRecording = false;
|
|
181
|
-
resolve({
|
|
182
|
-
trimmedBlob: trimmedVideo,
|
|
183
|
-
encryptedVideo: encryptedVideoBase64
|
|
184
|
-
});
|
|
185
|
-
} catch (error) {
|
|
186
|
-
this._isRecording = false;
|
|
187
|
-
this._error = `Recording stop failed: ${error}`;
|
|
188
|
-
this._hasError = true;
|
|
189
|
-
reject(error);
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
recorder.stop();
|
|
193
|
-
this._isRecording = false;
|
|
194
|
-
} else resolve({
|
|
195
|
-
trimmedBlob: new Blob([], { type: this.mimeType }),
|
|
196
|
-
encryptedVideo: ""
|
|
197
|
-
});
|
|
198
|
-
recorder?.stream?.getTracks().forEach((track) => track.stop());
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
reset() {
|
|
202
|
-
this._isRecording = false;
|
|
203
|
-
this._error = null;
|
|
204
|
-
this._hasError = false;
|
|
205
|
-
}
|
|
206
|
-
pauseRecording() {
|
|
207
|
-
if (!this._isRecording) return;
|
|
208
|
-
if (this.mediaRecorder?.state === "recording") try {
|
|
209
|
-
this.mediaRecorder.pause();
|
|
210
|
-
} catch {}
|
|
211
|
-
}
|
|
212
|
-
registerEventListeners() {
|
|
213
|
-
document.addEventListener("visibilitychange", this.pauseRecordingBound);
|
|
214
|
-
}
|
|
215
|
-
removeEventListeners() {
|
|
216
|
-
document.removeEventListener("visibilitychange", this.pauseRecordingBound);
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
//#endregion
|
|
220
|
-
//#region src/internal/faceCapture/recordingService.ts
|
|
221
|
-
let openViduProviderImportPromise;
|
|
222
|
-
let openViduBrowserImportPromise;
|
|
223
|
-
function loadOpenViduProviderModule() {
|
|
224
|
-
if (!openViduProviderImportPromise) openViduProviderImportPromise = import("./OpenViduRecordingProvider-Du98qevC.esm.js");
|
|
225
|
-
return openViduProviderImportPromise;
|
|
226
|
-
}
|
|
227
|
-
function loadOpenViduBrowserModule() {
|
|
228
|
-
if (!openViduBrowserImportPromise) openViduBrowserImportPromise = (async () => {
|
|
229
|
-
return (await import("./openviduLazy-CCDpFWg1.esm.js")).loadOpenVidu();
|
|
230
|
-
})();
|
|
231
|
-
return openViduBrowserImportPromise;
|
|
232
|
-
}
|
|
233
|
-
function preloadOpenViduProvider() {
|
|
234
|
-
loadOpenViduProviderModule();
|
|
235
|
-
loadOpenViduBrowserModule();
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* Records on-device and uploads encrypted video for liveness.
|
|
239
|
-
*/
|
|
240
|
-
var LocalRecordingService = class {
|
|
241
|
-
constructor(wasmUtil, sessionToken) {
|
|
242
|
-
this.recorder = new LocalRecordingProvider();
|
|
243
|
-
this.sessionToken = sessionToken;
|
|
244
|
-
this.wasmUtil = wasmUtil;
|
|
245
|
-
}
|
|
246
|
-
async start(stream) {
|
|
247
|
-
this.recorder.startRecording(stream);
|
|
248
|
-
this.wasmUtil.osv();
|
|
249
|
-
}
|
|
250
|
-
async stop() {
|
|
251
|
-
if (!this.recorder.isRecording) return { recordingId: null };
|
|
252
|
-
this.wasmUtil.oev();
|
|
253
|
-
const result = await this.recorder.stopRecording(10, (base64) => this.wasmUtil.encryptImage(base64), (buffer) => this.wasmUtil.ckvcks(buffer));
|
|
254
|
-
if (!this.sessionToken) return { recordingId: null };
|
|
255
|
-
return { recordingId: await uploadDeepsightVideo(result.encryptedVideo, this.sessionToken) };
|
|
256
|
-
}
|
|
257
|
-
async stopAndGetVideo() {
|
|
258
|
-
if (!this.recorder.isRecording) return { videoBase64: void 0 };
|
|
259
|
-
try {
|
|
260
|
-
this.wasmUtil.oev();
|
|
261
|
-
const videoBase64 = (await this.recorder.stopRecording(10, (base64) => base64, () => {})).encryptedVideo;
|
|
262
|
-
return { videoBase64: videoBase64 ? videoBase64 : void 0 };
|
|
263
|
-
} catch {
|
|
264
|
-
return { videoBase64: void 0 };
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
cleanup() {
|
|
268
|
-
this.recorder.reset();
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
/**
|
|
272
|
-
* Records through OpenVidu and manages the session lifecycle.
|
|
273
|
-
*/
|
|
274
|
-
var OpenViduRecordingService = class {
|
|
275
|
-
constructor(config) {
|
|
276
|
-
this.config = config;
|
|
277
|
-
}
|
|
278
|
-
async start(stream) {
|
|
279
|
-
if (!this.provider) {
|
|
280
|
-
const { OpenViduRecordingProvider } = await loadOpenViduProviderModule();
|
|
281
|
-
this.provider = new OpenViduRecordingProvider();
|
|
282
|
-
}
|
|
283
|
-
const sessionConfig = {
|
|
284
|
-
...this.config,
|
|
285
|
-
recording: { capability: this.provider }
|
|
286
|
-
};
|
|
287
|
-
this.session = await startRecordingSession({
|
|
288
|
-
config: sessionConfig,
|
|
289
|
-
clonedStream: stream.clone(),
|
|
290
|
-
existing: this.session
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
async stop() {
|
|
294
|
-
if (this.session) {
|
|
295
|
-
stopRecording(this.session);
|
|
296
|
-
this.session = void 0;
|
|
297
|
-
}
|
|
298
|
-
return { recordingId: null };
|
|
299
|
-
}
|
|
300
|
-
async stopAndGetVideo() {
|
|
301
|
-
if (this.session) {
|
|
302
|
-
stopRecording(this.session);
|
|
303
|
-
this.session = void 0;
|
|
304
|
-
}
|
|
305
|
-
return { videoBase64: void 0 };
|
|
306
|
-
}
|
|
307
|
-
cleanup() {
|
|
308
|
-
if (this.session) stopRecording(this.session);
|
|
309
|
-
}
|
|
310
|
-
};
|
|
311
|
-
/**
|
|
312
|
-
* Creates the recording service for the current configuration.
|
|
313
|
-
*
|
|
314
|
-
* Order of precedence:
|
|
315
|
-
* 1. `onDeviceFaceResultsSubmissionEnabled === true` → no recording. The
|
|
316
|
-
* on-device workflow never uploads media, only the staged face-results
|
|
317
|
-
* JSON via `WebApi.postFaceResults`. Mirrors V1's
|
|
318
|
-
* `FaceFlowManager.setRecorders()` early return.
|
|
319
|
-
* 2. `deepsightLiveness === 'VIDEOLIVENESS'` → local Deepsight recorder.
|
|
320
|
-
* 3. `enableFaceRecording === true` → server-side OpenVidu recorder.
|
|
321
|
-
* 4. otherwise → no recording.
|
|
322
|
-
*/
|
|
323
|
-
function createRecordingService(params) {
|
|
324
|
-
if (params.config.onDeviceFaceResultsSubmissionEnabled === true) return;
|
|
325
|
-
if (params.config.deepsightLiveness === "VIDEOLIVENESS") return new LocalRecordingService(params.wasmUtil, params.sessionToken);
|
|
326
|
-
if (params.config.enableFaceRecording === true) return new OpenViduRecordingService(params.config);
|
|
327
|
-
}
|
|
328
|
-
//#endregion
|
|
329
|
-
export { preloadOpenViduProvider as n, createRecordingService as t };
|