@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,12 +1,193 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-msLybMbC.esm.js";
|
|
2
|
+
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-B0sGlozZ.esm.js";
|
|
2
3
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
7
|
-
import {
|
|
8
|
-
import { n as
|
|
9
|
-
import {
|
|
4
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
5
|
+
import { i as isDesktop } from "./platform-DkcRc9JV.esm.js";
|
|
6
|
+
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
7
|
+
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
8
|
+
import { s as queryCameraPermission } from "./permissionServices-Bj_fyWtv.esm.js";
|
|
9
|
+
import { n as startRecording, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-CCWy13M-.esm.js";
|
|
10
|
+
import { a as isBackFacingTrack, n as getBackCameraStream } from "./backCameraStream-BOtyQowf.esm.js";
|
|
11
|
+
import { t as getDeviceClass } from "./getDeviceClass-5NYZg9s6.esm.js";
|
|
12
|
+
import { t as MultipartRecordingService } from "./multipartRecordingService-B3C_zlev.esm.js";
|
|
13
|
+
import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-BcxjQDI3.esm.js";
|
|
14
|
+
//#region src/internal/camera/cameraServices.ts
|
|
15
|
+
function createCameraServices(camera) {
|
|
16
|
+
return {
|
|
17
|
+
async checkPermission() {
|
|
18
|
+
return queryCameraPermission();
|
|
19
|
+
},
|
|
20
|
+
async requestStream(config) {
|
|
21
|
+
return camera.requestStream({
|
|
22
|
+
facingMode: config.facingMode,
|
|
23
|
+
deviceId: config.deviceId
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
stopStream(stream) {
|
|
27
|
+
camera.stopStream(stream);
|
|
28
|
+
},
|
|
29
|
+
captureFrame(video) {
|
|
30
|
+
return camera.captureFrame(video);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
setup({
|
|
35
|
+
types: {
|
|
36
|
+
context: {},
|
|
37
|
+
events: {},
|
|
38
|
+
input: {}
|
|
39
|
+
},
|
|
40
|
+
actors: {
|
|
41
|
+
checkPermission: fromPromise(async ({ input }) => {
|
|
42
|
+
return createCameraServices(input.camera).checkPermission();
|
|
43
|
+
}),
|
|
44
|
+
requestStream: fromPromise(async ({ input }) => {
|
|
45
|
+
return createCameraServices(input.camera).requestStream(input.config);
|
|
46
|
+
})
|
|
47
|
+
},
|
|
48
|
+
actions: {
|
|
49
|
+
setPermissionResult: assign({ permissionResult: ({ event }) => {
|
|
50
|
+
if ("output" in event) return event.output;
|
|
51
|
+
if (event.type === "PERMISSION_RESULT") return event.result;
|
|
52
|
+
} }),
|
|
53
|
+
setStream: assign({ stream: ({ event }) => {
|
|
54
|
+
if ("output" in event) return event.output;
|
|
55
|
+
if (event.type === "STREAM_READY") return event.stream;
|
|
56
|
+
} }),
|
|
57
|
+
setError: assign({
|
|
58
|
+
error: ({ event }) => {
|
|
59
|
+
if ("error" in event && event.type?.startsWith?.("xstate.error")) {
|
|
60
|
+
const err = event.error;
|
|
61
|
+
return err.message || String(err);
|
|
62
|
+
}
|
|
63
|
+
if (event.type === "STREAM_ERROR") return event.error;
|
|
64
|
+
},
|
|
65
|
+
errorType: ({ event }) => {
|
|
66
|
+
if ("error" in event && event.type?.startsWith?.("xstate.error")) {
|
|
67
|
+
const err = event.error;
|
|
68
|
+
if (err.name === "NotAllowedError") return "permission_denied";
|
|
69
|
+
if (err.name === "NotFoundError") return "not_found";
|
|
70
|
+
if (err.name === "NotReadableError") return "not_readable";
|
|
71
|
+
if (err.name === "OverconstrainedError") return "overconstrained";
|
|
72
|
+
if (err.name === "SecurityError") return "security";
|
|
73
|
+
if (err.name === "AbortError") return "abort";
|
|
74
|
+
return "unknown";
|
|
75
|
+
}
|
|
76
|
+
if (event.type === "STREAM_ERROR") return event.errorType;
|
|
77
|
+
}
|
|
78
|
+
}),
|
|
79
|
+
stopStream: ({ context }) => {
|
|
80
|
+
if (context.stream) createCameraServices(context.camera).stopStream(context.stream);
|
|
81
|
+
},
|
|
82
|
+
resetContext: assign(({ context }) => ({
|
|
83
|
+
camera: context.camera,
|
|
84
|
+
config: context.config,
|
|
85
|
+
stream: void 0,
|
|
86
|
+
permissionResult: void 0,
|
|
87
|
+
error: void 0,
|
|
88
|
+
errorType: void 0
|
|
89
|
+
}))
|
|
90
|
+
},
|
|
91
|
+
guards: {
|
|
92
|
+
permissionGranted: ({ context }) => context.permissionResult === "granted",
|
|
93
|
+
permissionDenied: ({ context }) => context.permissionResult === "denied",
|
|
94
|
+
hasStream: ({ context }) => context.stream !== void 0
|
|
95
|
+
}
|
|
96
|
+
}).createMachine({
|
|
97
|
+
id: "camera",
|
|
98
|
+
initial: "idle",
|
|
99
|
+
context: ({ input }) => ({
|
|
100
|
+
camera: input.camera,
|
|
101
|
+
config: input.config ?? {},
|
|
102
|
+
stream: void 0,
|
|
103
|
+
permissionResult: void 0,
|
|
104
|
+
error: void 0,
|
|
105
|
+
errorType: void 0
|
|
106
|
+
}),
|
|
107
|
+
states: {
|
|
108
|
+
idle: { on: { START: "checkingPermission" } },
|
|
109
|
+
checkingPermission: {
|
|
110
|
+
invoke: {
|
|
111
|
+
id: "checkPermission",
|
|
112
|
+
src: "checkPermission",
|
|
113
|
+
input: ({ context }) => ({ camera: context.camera }),
|
|
114
|
+
onDone: {
|
|
115
|
+
target: "routing",
|
|
116
|
+
actions: "setPermissionResult"
|
|
117
|
+
},
|
|
118
|
+
onError: {
|
|
119
|
+
target: "routing",
|
|
120
|
+
actions: assign({ permissionResult: () => "prompt" })
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
on: { STOP: {
|
|
124
|
+
target: "idle",
|
|
125
|
+
actions: "resetContext"
|
|
126
|
+
} }
|
|
127
|
+
},
|
|
128
|
+
routing: { always: [
|
|
129
|
+
{
|
|
130
|
+
target: "requesting",
|
|
131
|
+
guard: "permissionGranted"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
target: "error",
|
|
135
|
+
guard: "permissionDenied",
|
|
136
|
+
actions: assign({
|
|
137
|
+
error: () => "Camera permission denied",
|
|
138
|
+
errorType: () => "permission_denied"
|
|
139
|
+
})
|
|
140
|
+
},
|
|
141
|
+
{ target: "requesting" }
|
|
142
|
+
] },
|
|
143
|
+
requesting: {
|
|
144
|
+
invoke: {
|
|
145
|
+
id: "requestStream",
|
|
146
|
+
src: "requestStream",
|
|
147
|
+
input: ({ context }) => ({
|
|
148
|
+
camera: context.camera,
|
|
149
|
+
config: context.config
|
|
150
|
+
}),
|
|
151
|
+
onDone: {
|
|
152
|
+
target: "streaming",
|
|
153
|
+
actions: "setStream"
|
|
154
|
+
},
|
|
155
|
+
onError: {
|
|
156
|
+
target: "error",
|
|
157
|
+
actions: "setError"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
on: { STOP: {
|
|
161
|
+
target: "idle",
|
|
162
|
+
actions: "resetContext"
|
|
163
|
+
} }
|
|
164
|
+
},
|
|
165
|
+
streaming: {
|
|
166
|
+
exit: "stopStream",
|
|
167
|
+
on: {
|
|
168
|
+
STOP: {
|
|
169
|
+
target: "idle",
|
|
170
|
+
actions: "resetContext"
|
|
171
|
+
},
|
|
172
|
+
RESET: {
|
|
173
|
+
target: "idle",
|
|
174
|
+
actions: "resetContext"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
error: { on: {
|
|
179
|
+
RESET: {
|
|
180
|
+
target: "idle",
|
|
181
|
+
actions: "resetContext"
|
|
182
|
+
},
|
|
183
|
+
STOP: {
|
|
184
|
+
target: "idle",
|
|
185
|
+
actions: "resetContext"
|
|
186
|
+
}
|
|
187
|
+
} }
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
//#endregion
|
|
10
191
|
//#region src/modules/id/idCameraStream.ts
|
|
11
192
|
async function getIdCameraStream(deviceId) {
|
|
12
193
|
return getBackCameraStream(deviceId);
|
|
@@ -33,9 +214,9 @@ async function getIdCameraStream(deviceId) {
|
|
|
33
214
|
* payload whose halves exceed it is halved to fit rather than rejected, and a
|
|
34
215
|
* session whose budget cannot fit a meaningful split runs the countdown arm.
|
|
35
216
|
* Note this means the console payload decides total capture duration — a
|
|
36
|
-
* treatment payload that leaves `framesAggregationIntervalMs` at its
|
|
37
|
-
* default produces a
|
|
38
|
-
* than the countdown arm's
|
|
217
|
+
* treatment payload that leaves `framesAggregationIntervalMs` at its 1700
|
|
218
|
+
* default produces a 3200ms window against the 5s default budget, i.e. longer
|
|
219
|
+
* than the countdown arm's 1700ms. Set both halves explicitly.
|
|
39
220
|
*/
|
|
40
221
|
const MAX_OPTIMIZING_DWELL_MS = 2500;
|
|
41
222
|
const DEFAULT_OPTIMIZING_DWELL_MS = 1500;
|
|
@@ -66,7 +247,8 @@ const OPTIMIZING_WATCHDOG_MARGIN_MS = 1e3;
|
|
|
66
247
|
* the countdown arm, only the pre-boundary half in the treatment arm. Bounding it
|
|
67
248
|
* for one would break the other, so the arm-aware handling lives in
|
|
68
249
|
* `resolveCaptureOptimizingTreatment`. Its code default stays at the
|
|
69
|
-
* canonical
|
|
250
|
+
* canonical SDK 1-compatible 1700 so an unallocated session keeps production
|
|
251
|
+
* parity.
|
|
70
252
|
*/
|
|
71
253
|
const CAPTURE_OPTIMIZING = {
|
|
72
254
|
storeParam: "idcExp05ShowResult",
|
|
@@ -161,8 +343,8 @@ function resolveCaptureOptimizingTreatment(config) {
|
|
|
161
343
|
/**
|
|
162
344
|
* Single source of truth for the WASM ID-capture thresholds passed to
|
|
163
345
|
* `IIdCaptureCapability.setThresholds`. Resolves `framesAggregationInterval`
|
|
164
|
-
* — the countdown / best-frame aggregation window (canonical
|
|
165
|
-
*
|
|
346
|
+
* — the countdown / best-frame aggregation window (SDK 1-compatible canonical
|
|
347
|
+
* default 1700ms) — with precedence:
|
|
166
348
|
*
|
|
167
349
|
* 1. An explicit `config.thresholds.framesAggregationInterval` (host/headless
|
|
168
350
|
* override) always wins. Such a session never runs the IDC-05 treatment
|
|
@@ -248,6 +430,7 @@ const DEFAULT_ID_CAPTURE_SETTINGS = {
|
|
|
248
430
|
};
|
|
249
431
|
async function initializeIdCapture(params) {
|
|
250
432
|
const { config, deepsightService } = params;
|
|
433
|
+
await ensureWasmPipelines(["idCapture"]);
|
|
251
434
|
const provider = new IdCaptureProvider();
|
|
252
435
|
await provider.initialize({});
|
|
253
436
|
provider.setThresholds(resolveIdCaptureThresholds(config));
|
|
@@ -269,11 +452,13 @@ async function initializeIdCapture(params) {
|
|
|
269
452
|
if (typeof settings.width === "number" && typeof settings.height === "number") captureResolution = `${settings.width}x${settings.height}`;
|
|
270
453
|
}
|
|
271
454
|
if (deepsightService && videoTrack) deepsightService.metadata.updateCameraInfo(videoTrack);
|
|
455
|
+
const usingBackCamera = videoTrack ? isBackFacingTrack(videoTrack) : true;
|
|
272
456
|
return {
|
|
273
457
|
stream,
|
|
274
458
|
provider,
|
|
275
459
|
captureResolution,
|
|
276
|
-
cameraFallbackLevel: fallbackLevel
|
|
460
|
+
cameraFallbackLevel: fallbackLevel,
|
|
461
|
+
usingBackCamera
|
|
277
462
|
};
|
|
278
463
|
}
|
|
279
464
|
function stopStream(stream) {
|
|
@@ -292,6 +477,12 @@ function validateUploadResponse(response, sessionState) {
|
|
|
292
477
|
messageDescription: response.side === "back" ? "Please show the back side of your ID" : "Please show the front side of your ID",
|
|
293
478
|
errorKey: ID_ERROR_CODES.WRONG_DOCUMENT_SIDE
|
|
294
479
|
};
|
|
480
|
+
if (response.failReason === "DOCUMENT_NOT_READABLE") return {
|
|
481
|
+
error: true,
|
|
482
|
+
message: "Info is not readable",
|
|
483
|
+
messageDescription: "Minimize camera shake by holding your phone steady",
|
|
484
|
+
errorKey: ID_ERROR_CODES.READABILITY_ISSUE
|
|
485
|
+
};
|
|
295
486
|
if (!response.classification) return {
|
|
296
487
|
error: true,
|
|
297
488
|
message: "ID classification failed",
|
|
@@ -399,21 +590,73 @@ function buildResolutionFromStream(stream) {
|
|
|
399
590
|
}
|
|
400
591
|
return "1080x1920";
|
|
401
592
|
}
|
|
402
|
-
function preloadIdRecordingProvider(config) {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
593
|
+
function preloadIdRecordingProvider(config) {}
|
|
594
|
+
const multipartIdSessions = /* @__PURE__ */ new WeakMap();
|
|
595
|
+
const legacyIdRecordingStreams = /* @__PURE__ */ new WeakMap();
|
|
596
|
+
const idRecordingFinalizations = /* @__PURE__ */ new WeakMap();
|
|
597
|
+
const releasedLegacyIdRecordings = /* @__PURE__ */ new WeakSet();
|
|
598
|
+
const legacyIdDisconnects = /* @__PURE__ */ new WeakMap();
|
|
599
|
+
function createMultipartSessionHandle(service, compositor, recordingSource, resolution, hasAudio) {
|
|
600
|
+
const session = {
|
|
601
|
+
token: "",
|
|
602
|
+
sessionId: "",
|
|
603
|
+
videoRecordingId: "",
|
|
604
|
+
connection: {
|
|
605
|
+
sessionId: void 0,
|
|
606
|
+
publisher: {
|
|
607
|
+
getStreamId: () => void 0,
|
|
608
|
+
replaceVideoTrack: async () => {},
|
|
609
|
+
destroy: () => {}
|
|
610
|
+
},
|
|
611
|
+
disconnect: async () => {}
|
|
612
|
+
},
|
|
613
|
+
resolution,
|
|
614
|
+
hasAudio
|
|
615
|
+
};
|
|
616
|
+
multipartIdSessions.set(session, {
|
|
617
|
+
compositor,
|
|
618
|
+
needsVideoSourceReplacement: false,
|
|
619
|
+
recorderPaused: false,
|
|
620
|
+
recordingSource,
|
|
621
|
+
service
|
|
622
|
+
});
|
|
623
|
+
return session;
|
|
409
624
|
}
|
|
410
625
|
async function startRecordingSession(params) {
|
|
411
626
|
if (params.config.enableIdRecording !== true) return;
|
|
412
|
-
if (params.existing)
|
|
413
|
-
|
|
627
|
+
if (params.existing) {
|
|
628
|
+
const multipartSession = multipartIdSessions.get(params.existing);
|
|
629
|
+
if (multipartSession?.needsVideoSourceReplacement) {
|
|
630
|
+
const recordingSource = params.stream.clone();
|
|
631
|
+
recordingSource.getAudioTracks().forEach((track) => track.stop());
|
|
632
|
+
multipartSession.compositor.switchVideo(recordingSource);
|
|
633
|
+
multipartSession.needsVideoSourceReplacement = false;
|
|
634
|
+
multipartSession.recordingSource = recordingSource;
|
|
635
|
+
const resumeResult = await multipartSession.compositor.resume();
|
|
636
|
+
if (resumeResult !== "resumed") throw new Error(`ID recording camera did not resume: ${resumeResult}`);
|
|
637
|
+
}
|
|
638
|
+
if (multipartSession?.recorderPaused && !multipartSession.service.resume()) throw new Error("ID recording did not resume");
|
|
639
|
+
if (multipartSession) multipartSession.recorderPaused = false;
|
|
640
|
+
return params.existing;
|
|
641
|
+
}
|
|
642
|
+
const hasAudio = params.stream.getAudioTracks().length > 0;
|
|
643
|
+
const resolution = buildResolutionFromStream(params.stream);
|
|
644
|
+
if (!params.config.recording?.capability) {
|
|
645
|
+
const service = new MultipartRecordingService(params.type);
|
|
646
|
+
const recordingSource = params.stream.clone();
|
|
647
|
+
const compositor = new CameraCompositor({ fps: 30 });
|
|
648
|
+
try {
|
|
649
|
+
const recordingStream = compositor.start(recordingSource);
|
|
650
|
+
await service.start(recordingStream);
|
|
651
|
+
} catch (error) {
|
|
652
|
+
compositor.stop();
|
|
653
|
+
service.cleanup();
|
|
654
|
+
throw error;
|
|
655
|
+
}
|
|
656
|
+
return createMultipartSessionHandle(service, compositor, recordingSource, resolution, hasAudio);
|
|
657
|
+
}
|
|
658
|
+
const provider = params.config.recording.capability;
|
|
414
659
|
const clonedStream = params.stream.clone();
|
|
415
|
-
const hasAudio = clonedStream.getAudioTracks().length > 0;
|
|
416
|
-
const resolution = buildResolutionFromStream(clonedStream);
|
|
417
660
|
const session = await createRecordingSession(params.type);
|
|
418
661
|
const connection = await provider.connect({
|
|
419
662
|
sessionToken: session.token,
|
|
@@ -426,7 +669,7 @@ async function startRecordingSession(params) {
|
|
|
426
669
|
resolution,
|
|
427
670
|
hasAudio
|
|
428
671
|
});
|
|
429
|
-
|
|
672
|
+
const recordingSession = {
|
|
430
673
|
token: session.token,
|
|
431
674
|
sessionId: session.sessionId,
|
|
432
675
|
videoRecordingId: session.videoRecordingId,
|
|
@@ -434,15 +677,83 @@ async function startRecordingSession(params) {
|
|
|
434
677
|
resolution,
|
|
435
678
|
hasAudio
|
|
436
679
|
};
|
|
680
|
+
legacyIdRecordingStreams.set(recordingSession, clonedStream);
|
|
681
|
+
return recordingSession;
|
|
437
682
|
}
|
|
438
|
-
function
|
|
439
|
-
|
|
683
|
+
function pauseRecordingForAttempt(session) {
|
|
684
|
+
const multipartSession = multipartIdSessions.get(session);
|
|
685
|
+
if (!multipartSession) return;
|
|
686
|
+
multipartSession.recorderPaused = multipartSession.service.pause();
|
|
687
|
+
}
|
|
688
|
+
function prepareRecordingForCameraRetry(session) {
|
|
689
|
+
const multipartSession = multipartIdSessions.get(session);
|
|
690
|
+
if (!multipartSession) return;
|
|
691
|
+
if (!multipartSession.recorderPaused) multipartSession.recorderPaused = multipartSession.service.pause();
|
|
692
|
+
multipartSession.compositor.pause();
|
|
693
|
+
multipartSession.recordingSource.getVideoTracks().forEach((track) => track.stop());
|
|
694
|
+
multipartSession.needsVideoSourceReplacement = true;
|
|
695
|
+
}
|
|
696
|
+
function releaseLegacyRecordingResources(session) {
|
|
697
|
+
if (releasedLegacyIdRecordings.has(session)) return;
|
|
698
|
+
releasedLegacyIdRecordings.add(session);
|
|
699
|
+
try {
|
|
700
|
+
session.connection.publisher.destroy();
|
|
701
|
+
} catch {}
|
|
702
|
+
const clonedStream = legacyIdRecordingStreams.get(session);
|
|
703
|
+
legacyIdRecordingStreams.delete(session);
|
|
704
|
+
for (const track of clonedStream?.getTracks() ?? []) try {
|
|
705
|
+
track.stop();
|
|
706
|
+
} catch {}
|
|
707
|
+
}
|
|
708
|
+
function disconnectLegacyRecording(session) {
|
|
709
|
+
const existing = legacyIdDisconnects.get(session);
|
|
710
|
+
if (existing) return existing;
|
|
711
|
+
const disconnect = session.connection.disconnect();
|
|
712
|
+
legacyIdDisconnects.set(session, disconnect);
|
|
713
|
+
return disconnect;
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* Fully drains an ID recording before the protected camera cycle runs POC.
|
|
717
|
+
* Every recorder clone is stopped before this promise settles.
|
|
718
|
+
*/
|
|
719
|
+
async function finalizeRecordingSession(session) {
|
|
720
|
+
const existing = idRecordingFinalizations.get(session);
|
|
721
|
+
if (existing) return existing;
|
|
722
|
+
const multipartSession = multipartIdSessions.get(session);
|
|
723
|
+
const finalization = multipartSession ? (async () => {
|
|
724
|
+
multipartIdSessions.delete(session);
|
|
725
|
+
try {
|
|
726
|
+
return await multipartSession.service.stop();
|
|
727
|
+
} finally {
|
|
728
|
+
multipartSession.compositor.stop();
|
|
729
|
+
}
|
|
730
|
+
})() : (async () => {
|
|
440
731
|
try {
|
|
441
732
|
await stopRecording$1(session.videoRecordingId);
|
|
733
|
+
return { recordingId: session.videoRecordingId || null };
|
|
442
734
|
} finally {
|
|
443
|
-
|
|
735
|
+
releaseLegacyRecordingResources(session);
|
|
736
|
+
await disconnectLegacyRecording(session);
|
|
444
737
|
}
|
|
445
738
|
})();
|
|
739
|
+
idRecordingFinalizations.set(session, finalization);
|
|
740
|
+
return finalization;
|
|
741
|
+
}
|
|
742
|
+
/** Synchronous teardown used when an attempt is cancelled before finalization. */
|
|
743
|
+
function disposeRecordingSession(session) {
|
|
744
|
+
const multipartSession = multipartIdSessions.get(session);
|
|
745
|
+
if (multipartSession) {
|
|
746
|
+
multipartIdSessions.delete(session);
|
|
747
|
+
const finalization = multipartSession.service.stop().finally(() => multipartSession.compositor.stop());
|
|
748
|
+
idRecordingFinalizations.set(session, finalization);
|
|
749
|
+
finalization.catch(() => {});
|
|
750
|
+
return;
|
|
751
|
+
}
|
|
752
|
+
releaseLegacyRecordingResources(session);
|
|
753
|
+
disconnectLegacyRecording(session).catch(() => {});
|
|
754
|
+
}
|
|
755
|
+
function stopRecording(session) {
|
|
756
|
+
finalizeRecordingSession(session).catch(() => {});
|
|
446
757
|
}
|
|
447
758
|
async function processId(isSecondId = false, queueName = "", signal) {
|
|
448
759
|
const endpoint = isSecondId ? endpoints.processSecondId : endpoints.processId;
|
|
@@ -519,4 +830,4 @@ async function addBarcode(params) {
|
|
|
519
830
|
return res.data;
|
|
520
831
|
}
|
|
521
832
|
//#endregion
|
|
522
|
-
export { getIdCameraStream as _,
|
|
833
|
+
export { getIdCameraStream as S, ID_ERROR_CODES as _, getRealQualityValue as a, CAPTURE_OPTIMIZING as b, preloadIdRecordingProvider as c, startRecordingSession as d, stopRecording as f, validateUploadResponse as g, uploadManualIdFile as h, finalizeRecordingSession as i, prepareRecordingForCameraRetry as l, uploadIdImage as m, barcodeToBase64 as n, initializeIdCapture as o, stopStream as p, disposeRecordingSession as r, pauseRecordingForAttempt as s, addBarcode as t, processId as u, resolveCaptureOptimizingTreatment as v, OPTIMIZING_WATCHDOG_MARGIN_MS as x, resolveIdCaptureThresholds as y };
|