@incodetech/core 0.0.0-dev-20260715-b208c5e1 → 0.0.0-dev-20260715-dcc78bcd
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-BYxFCuIv.esm.js → 3dAvatarProvider-D9H4rR6_.esm.js} +811 -880
- package/dist/Actor-iTq7YY48.d.ts +1 -0
- package/dist/{BrowserStorageProvider-CBXGCHnK.esm.js → BrowserStorageProvider-P6aUarE9.esm.js} +1 -2
- package/dist/{BrowserTimerProvider-CHloo0eQ.esm.js → BrowserTimerProvider-BXhgNxLt.esm.js} +1 -2
- package/dist/{BrowserVisibilityObserverProvider-B04zvOXW.esm.js → BrowserVisibilityObserverProvider-sJclps4C.esm.js} +1 -3
- package/dist/{Face2DProvider-TeN1Xqr0.esm.js → Face2DProvider-xWUeSJZI.esm.js} +10 -22
- package/dist/{createFaceAvatar-BjBu2CrU.d.ts → FaceDetectionProvider-BHweGBEM.d.ts} +108 -159
- package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +23 -0
- package/dist/IStorageCapability-B8IGxCwe.d.ts +131 -0
- package/dist/{ITimerCapability-G7lQg-be.esm.js → ITimerCapability-DgdDzp8G.esm.js} +1 -2
- package/dist/{Manager-DE5DydXZ.d.ts → Manager-CQQ99QOI.d.ts} +1 -0
- package/dist/{MotionSensorProvider-BkHKMCPE.esm.js → MotionSensorProvider-DYvM90IX.esm.js} +1 -2
- package/dist/{OpenViduRecordingProvider-xR5osKzW.esm.js → OpenViduRecordingProvider-Du98qevC.esm.js} +2 -4
- package/dist/{PrivacyLensProvider-CqlsCaJv.esm.js → PrivacyLensProvider-BrYSd1dr.esm.js} +2 -5
- package/dist/StateMachine-EDpYWy0i.d.ts +6 -0
- package/dist/{StreamCanvasCapture-CRk7c7u7.esm.js → StreamCanvasCapture-D2XcXCZ4.esm.js} +2 -4
- package/dist/{WasmUtilProvider-BNQ2PBjG.esm.js → WasmUtilProvider-DAshwHhX.esm.js} +38 -71
- package/dist/{addressSearch-B2NxSpHl.esm.js → addressSearch-DH-IPF-w.esm.js} +10 -21
- package/dist/ae-signature.d.ts +2 -6
- package/dist/ae-signature.esm.js +10 -11
- package/dist/antifraud.d.ts +1 -6
- package/dist/antifraud.esm.js +3 -8
- package/dist/{antifraudManager-C490m0p4.d.ts → antifraudManager-BY36bS12.d.ts} +3 -3
- package/dist/{antifraudManager-C1xnhF2Q.esm.js → antifraudManager-CL2YhiVX.esm.js} +11 -8
- package/dist/{antifraudStateMachine-BQVw46N5.esm.js → antifraudStateMachine-Bf-IiCq7.esm.js} +5 -7
- package/dist/{api-DsbUi7TO.esm.js → api-BDTZNnca.esm.js} +1 -2
- package/dist/{apiError-DkOXfFBu.esm.js → apiError-COvIGYWe.esm.js} +1 -2
- package/dist/authentication.d.ts +2 -19
- package/dist/authentication.esm.js +3 -34
- package/dist/{authenticationManager-DZXQpCjQ.esm.js → authenticationManager-DM7ttL5V.esm.js} +7 -10
- package/dist/{authenticationManager-BD81fnrn.d.ts → authenticationManager-G-k-13Fe.d.ts} +3 -4
- package/dist/{authenticationStateMachine-CJrTbLWU.esm.js → authenticationStateMachine-DiI8jfmO.esm.js} +11 -15
- package/dist/avatar.d.ts +2 -2
- package/dist/avatar.esm.js +2 -3
- package/dist/{backCameraStream-DYnfq7Hr.esm.js → backCameraStream-Heg6vA1j.esm.js} +4 -7
- package/dist/browser-DlFgHpoC-DnyrCR8r.esm.js +1513 -0
- package/dist/callback-645_omgz.d.ts +133 -0
- package/dist/{camera-B0yWS33x.esm.js → camera-BmFEyPP_.esm.js} +1 -2
- package/dist/camera.d.ts +1 -2
- package/dist/camera.esm.js +2 -6
- package/dist/{canvas-DsJa51yU.esm.js → canvas-E1zGkel4.esm.js} +1 -2
- package/dist/certificate-issuance.d.ts +34 -39
- package/dist/certificate-issuance.esm.js +4 -11
- package/dist/{certificateIssuanceStateMachine-CpewPqas.esm.js → certificateIssuanceStateMachine-Ce568YfR.esm.js} +7 -11
- package/dist/{clientLifecycle-CCJMDjFe.esm.js → clientLifecycle-DzT65Fvf.esm.js} +23 -29
- package/dist/consent.d.ts +1 -4
- package/dist/consent.esm.js +3 -8
- package/dist/{consentManager-r4MTIoV3.esm.js → consentManager-D3GyyH5u.esm.js} +5 -7
- package/dist/{consentManager-QGuw4zmH.d.ts → consentManager-DLOyIZzt.d.ts} +58 -64
- package/dist/{consentStateMachine-DnqwsZ7o.esm.js → consentStateMachine-Pc3Ez3mV.esm.js} +5 -7
- package/dist/{cpf-B9htWzDt.esm.js → cpf-BIADjddF.esm.js} +1 -2
- package/dist/cpf-ocr.d.ts +1 -5
- package/dist/cpf-ocr.esm.js +2 -8
- package/dist/{cpfOcrManager-RkeZCqSz.d.ts → cpfOcrManager-CQkUAeWO.d.ts} +21 -23
- package/dist/{cpfOcrManager-D6ZQ9kkv.esm.js → cpfOcrManager-Cwm0MesJ.esm.js} +7 -12
- package/dist/createFaceAvatar-BEj18KXi.d.ts +50 -0
- package/dist/{createFaceAvatar-B_v2At2h.esm.js → createFaceAvatar-CwVapQiu.esm.js} +5 -9
- package/dist/cross-document-data-match.d.ts +1 -5
- package/dist/cross-document-data-match.esm.js +2 -8
- package/dist/{crossDocumentDataMatchManager-DoFG_S91.esm.js → crossDocumentDataMatchManager-9rdIO8Qk.esm.js} +12 -12
- package/dist/{crossDocumentDataMatchManager-CdiqxhJm.d.ts → crossDocumentDataMatchManager-Dq8Z3SOg.d.ts} +3 -3
- package/dist/curp-validation.d.ts +1 -11
- package/dist/curp-validation.esm.js +3 -8
- package/dist/{curpValidationManager-07oV78Bn.d.ts → curpValidationManager--HSBTwOy.d.ts} +4 -6
- package/dist/{curpValidationManager-D6jt1Gs9.esm.js → curpValidationManager-C2i9Lzx9.esm.js} +11 -7
- package/dist/{curpValidationStateMachine-Dlw4qfFb.esm.js → curpValidationStateMachine-7i3TD8J2.esm.js} +22 -14
- package/dist/custom-fields.d.ts +2 -5
- package/dist/custom-fields.esm.js +24 -11
- package/dist/custom-watchlist.d.ts +1 -3
- package/dist/custom-watchlist.esm.js +11 -10
- package/dist/{customWatchlistStateMachine-D8w0mNxm.esm.js → customWatchlistStateMachine-D23XTxl2.esm.js} +5 -7
- package/dist/{dateUtils-BW6mBV6p.esm.js → dateUtils-CvG0FvK8.esm.js} +1 -2
- package/dist/{deepsightService-CV1NAkg9.esm.js → deepsightLoader-CQWGVLP0.esm.js} +62 -14
- package/dist/deepsightService-CR-CYdka.d.ts +218 -0
- package/dist/device.d.ts +0 -1
- package/dist/device.esm.js +5 -10
- package/dist/document-capture.d.ts +1 -6
- package/dist/document-capture.esm.js +3 -16
- package/dist/document-upload.d.ts +48 -55
- package/dist/document-upload.esm.js +8 -14
- package/dist/{documentCaptureManager-HNu28khr.d.ts → documentCaptureManager-Biz_PFqs.d.ts} +190 -199
- package/dist/{documentCaptureManager-pufyUaQz.esm.js → documentCaptureManager-DijbJFun.esm.js} +5 -7
- package/dist/{documentCaptureStateMachine-CaJgb_Vn.esm.js → documentCaptureStateMachine-qgsrlcVh.esm.js} +11 -15
- package/dist/dynamic-forms.d.ts +1 -4
- package/dist/dynamic-forms.esm.js +3 -10
- package/dist/{dynamicFormsManager-C3jlNlWK.esm.js → dynamicFormsManager-COik5bJ7.esm.js} +41 -7
- package/dist/{dynamicFormsManager-HQhUJCLg.d.ts → dynamicFormsManager-Dposae2l.d.ts} +3 -4
- package/dist/{dynamicFormsStateMachine-DdpJI6ne.esm.js → dynamicFormsStateMachine-BV-Fn13x.esm.js} +7 -11
- package/dist/ekyb.d.ts +4 -11
- package/dist/ekyb.esm.js +3 -20
- package/dist/{ekybManager-l67BnqxH.esm.js → ekybManager-BTcW4poN.esm.js} +17 -7
- package/dist/{ekybManager-CZUVEWMw.d.ts → ekybManager-CBX0tM04.d.ts} +4 -5
- package/dist/{ekybStateMachine-BmfNaHRF.esm.js → ekybStateMachine-DmZLm35R.esm.js} +16 -25
- package/dist/ekyc.d.ts +2 -7
- package/dist/ekyc.esm.js +3 -11
- package/dist/{ekycManager-ClRqj2rg.d.ts → ekycManager-BFpHbBoT.d.ts} +4 -5
- package/dist/{ekycManager-B_uUa1iN.esm.js → ekycManager-BSMlIpGA.esm.js} +14 -7
- package/dist/{ekycStateMachine-BD8GjdL5.esm.js → ekycStateMachine-a7oP-XWo.esm.js} +140 -201
- package/dist/electronic-signature.d.ts +2 -5
- package/dist/electronic-signature.esm.js +2 -10
- package/dist/{electronicSignatureManager-CzMj-Tjm.esm.js → electronicSignatureManager-DSZu9OHT.esm.js} +9 -14
- package/dist/email.d.ts +1 -5
- package/dist/email.esm.js +3 -10
- package/dist/{emailManager-Lv9BHgel.d.ts → emailManager-CADXW_9X.d.ts} +4 -7
- package/dist/{emailManager-BsynjdWX.esm.js → emailManager-c-mDLieD.esm.js} +76 -12
- package/dist/{emailStateMachine-Z-Jf4qOc.esm.js → emailStateMachine-ChNwY22u.esm.js} +7 -9
- package/dist/{endpoints-CwrFQfW7.esm.js → endpoints-DLQ0g4-R.esm.js} +33 -2
- package/dist/{events-aeCkGlnn.esm.js → events-Dy8PyVO5.esm.js} +4 -168
- package/dist/events.d.ts +1 -9
- package/dist/events.esm.js +2 -4
- package/dist/extensibility.d.ts +30 -42
- package/dist/extensibility.esm.js +29 -87
- package/dist/{externalFetch-hvmz_npP.esm.js → externalFetch-BKBThAUC.esm.js} +2 -4
- package/dist/face-match.d.ts +1 -5
- package/dist/face-match.esm.js +3 -8
- package/dist/{faceCaptureManagerFactory-CGFQg1kl.d.ts → faceCaptureManagerFactory-BWD3O4Eg.d.ts} +50 -14
- package/dist/{faceCaptureManagerFactory-BIH53wvb.esm.js → faceCaptureManagerFactory-CZLSziU3.esm.js} +49 -28
- package/dist/{faceCaptureSetup-shrwrZaK.esm.js → faceCaptureSetup-__lVldUG.esm.js} +12 -15
- package/dist/{faceMatchManager-BrNYVk-p.esm.js → faceMatchManager-B7jlv77Q.esm.js} +24 -7
- package/dist/{faceMatchManager-X2eQo0o-.d.ts → faceMatchManager-CJQG1W1u.d.ts} +4 -4
- package/dist/{faceMatchStateMachine-CbeacEqd.esm.js → faceMatchStateMachine-DD7FxtUj.esm.js} +6 -9
- package/dist/field-comparison.d.ts +1 -4
- package/dist/field-comparison.esm.js +2 -7
- package/dist/{fieldComparisonManager-BxhleGNI.esm.js → fieldComparisonManager-5LlxYad-.esm.js} +6 -11
- package/dist/{fieldComparisonManager-Dg03uIX1.d.ts → fieldComparisonManager-CBvEGxFx.d.ts} +3 -5
- package/dist/fiscal-qr.d.ts +1 -6
- package/dist/fiscal-qr.esm.js +14 -29
- package/dist/flow-events.d.ts +2 -9
- package/dist/flow.d.ts +13 -19
- package/dist/flow.esm.js +109 -34
- package/dist/{flowCompletionService-qf-s8Uxl.esm.js → flowCompletionService-DQSC7Kso.esm.js} +4 -6
- package/dist/{flowServices-CJXaWFlZ.esm.js → flowServices-BQEUaMg6.esm.js} +10 -11
- package/dist/geolocation.d.ts +1 -4
- package/dist/geolocation.esm.js +3 -9
- package/dist/{geolocationManager-CAtyY00b.d.ts → geolocationManager-BWhRzBjk.d.ts} +3 -4
- package/dist/{geolocationManager-4j_DV3jW.esm.js → geolocationManager-D58ehBHU.esm.js} +19 -8
- package/dist/{geolocationStateMachine-BE72KBAX.esm.js → geolocationStateMachine-BorcBNZ6.esm.js} +6 -8
- package/dist/getBrowser-Cb8Zgrgp.esm.js +7 -0
- package/dist/{getDeviceClass-BdgmyOOu.esm.js → getDeviceClass-CeBiEayS.esm.js} +1 -2
- package/dist/{getDeviceClass-DsNb6nEl.esm.js → getDeviceClass-CkgnSJel.esm.js} +3 -5
- package/dist/{getBrowser-CZ66VtC7.esm.js → getParsedUserAgent-pJjATANs.esm.js} +109 -30
- package/dist/government-validation.d.ts +3 -6
- package/dist/government-validation.esm.js +7 -13
- package/dist/{governmentValidationStateMachine-BfZ_WQC0.esm.js → governmentValidationStateMachine-DkakcwTj.esm.js} +8 -11
- package/dist/home.d.ts +14 -22
- package/dist/home.esm.js +3 -8
- package/dist/http.d.ts +0 -1
- package/dist/http.esm.js +2 -4
- package/dist/id-ocr.d.ts +1 -5
- package/dist/id-ocr.esm.js +3 -9
- package/dist/id-verification.d.ts +1 -4
- package/dist/id-verification.esm.js +3 -8
- package/dist/id.d.ts +105 -18
- package/dist/id.esm.js +40 -50
- package/dist/{idCaptureDefaults-Df8XKQ0o.esm.js → idCaptureDefaults-Dzfws4i0.esm.js} +9 -16
- package/dist/{idCaptureManager-Fr9c67Rx.esm.js → idCaptureManager-BGAdNNVq.esm.js} +117 -23
- package/dist/{idCaptureManager-BXG8kVMW.d.ts → idCaptureManager-CSGbGORT.d.ts} +12 -113
- package/dist/{idCaptureStateMachine-CpjwdaYN.esm.js → idCaptureStateMachine-DYgckwCg.esm.js} +56 -195
- package/dist/{idOcrManager-DLF3J2cx.esm.js → idOcrManager-niAg-BE0.esm.js} +4 -7
- package/dist/{idOcrManager-DnhdGuVX.d.ts → idOcrManager-vXa7GdRh.d.ts} +60 -66
- package/dist/{idOcrStateMachine-BPXTUjNY.esm.js → idOcrStateMachine-CpZZL411.esm.js} +13 -18
- package/dist/{idVerificationManager-BD2FO09A.d.ts → idVerificationManager-BB4Pj_N6.d.ts} +31 -35
- package/dist/{idVerificationManager-23kPMn7T.esm.js → idVerificationManager-CujJqsiX.esm.js} +4 -7
- package/dist/{idVerificationStateMachine-C1eMEu_Y.esm.js → idVerificationStateMachine-D-1GlgC5.esm.js} +5 -7
- package/dist/identity-reuse.d.ts +1 -4
- package/dist/identity-reuse.esm.js +3 -8
- package/dist/{identityReuseManager-Ct-9qYpC.esm.js → identityReuseManager-DHfJZTVo.esm.js} +24 -7
- package/dist/{identityReuseManager-DOufEjLa.d.ts → identityReuseManager-aTyLyYrr.d.ts} +38 -43
- package/dist/{identityReuseStateMachine-Cqc-NwEQ.esm.js → identityReuseStateMachine-CM45EBrb.esm.js} +6 -8
- package/dist/index-B8weJxmL.d.ts +1 -0
- package/dist/index-BKOWUhxG.d.ts +258 -0
- package/dist/{index-WMHgnbC1.d.ts → index-CKbmDFNq.d.ts} +160 -165
- package/dist/{index-Bk5nhSg2.d.ts → index-DQ2fdqoI.d.ts} +3 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.esm.js +2 -15
- package/dist/{invokeOnCaptureCallback-Bs09kdY_.esm.js → invokeOnCaptureCallback-B-QfsCQY.esm.js} +2 -4
- package/dist/{lib-DvZ6nVvW.esm.js → lib-DAyUtOTj.esm.js} +1510 -1589
- package/dist/mandatory-consent.d.ts +1 -10
- package/dist/mandatory-consent.esm.js +3 -8
- package/dist/{mandatoryConsentManager-D0qQHcl2.d.ts → mandatoryConsentManager-BlB4bX6_.d.ts} +59 -65
- package/dist/{mandatoryConsentManager-Bh_n0uEP.esm.js → mandatoryConsentManager-CQC-zA4P.esm.js} +4 -7
- package/dist/{mandatoryConsentStateMachine-DYeKH1L7.esm.js → mandatoryConsentStateMachine-BN4Obfl7.esm.js} +5 -7
- package/dist/{mediaRecorderOptions-BIn657lu.esm.js → mediaRecorderOptions-BhSZDDNb.esm.js} +2 -4
- package/dist/{mediapipeShared-B-RiRyLN.esm.js → mediapipeShared-B0iQQ5k7.esm.js} +2 -6
- package/dist/{onDeviceFaceResults-CJuDp67S.esm.js → onDeviceFaceResults-LRTvBL7m.esm.js} +18 -84
- package/dist/openviduLazy-CCDpFWg1.esm.js +10 -0
- package/dist/{otp-D_9QPNbs.d.ts → otp-CEWfTj9v.d.ts} +0 -1
- package/dist/{otp-Bbe_izFJ.esm.js → otp-D2k3PeSL.esm.js} +3 -14
- package/dist/{permissionGuards-CayfS8OY.esm.js → permissionGuards-DguX5vFY.esm.js} +2 -4
- package/dist/{permissionServices-B7lD6fiG.esm.js → permissionServices-DwNCUB2I.esm.js} +4 -9
- package/dist/personhood.d.ts +13 -20
- package/dist/personhood.esm.js +153 -72
- package/dist/phone.d.ts +1 -5
- package/dist/phone.esm.js +3 -10
- package/dist/{phoneManager-85eRUhJD.d.ts → phoneManager-BBU8Lq0O.d.ts} +4 -7
- package/dist/{phoneManager-Byive8Xl.esm.js → phoneManager-KbcmjEeH.esm.js} +82 -12
- package/dist/{phoneStateMachine-BlYF4nKx.esm.js → phoneStateMachine-wDQtaT38.esm.js} +7 -9
- package/dist/{platform-BoeUeUrV.esm.js → platform-wmV7oTAJ.esm.js} +1 -9
- package/dist/qe-signature.d.ts +2 -6
- package/dist/qe-signature.esm.js +10 -11
- package/dist/{recordingService-BzQUrf40.esm.js → recordingService-TuBlOjvH.esm.js} +15 -19
- package/dist/redirect-to-mobile.d.ts +1 -6
- package/dist/redirect-to-mobile.esm.js +3 -10
- package/dist/{redirectToMobileManager-DrxIfZr8.esm.js → redirectToMobileManager-EGXGKftv.esm.js} +25 -8
- package/dist/{redirectToMobileManager-2TtzpSOw.d.ts → redirectToMobileManager-NVQM3o5P.d.ts} +3 -4
- package/dist/{redirectToMobileStateMachine-BetR6r8p.esm.js → redirectToMobileStateMachine-D-8ipBq2.esm.js} +7 -9
- package/dist/rolldown-runtime-FZ4Itg2g.esm.js +42 -0
- package/dist/{runChildModule-FH_tixbR.esm.js → runChildModule-Crz1nHwJ.esm.js} +5 -9
- package/dist/selfie.d.ts +7 -20
- package/dist/selfie.esm.js +40 -46
- package/dist/{selfieManager-CdUnYjmt.esm.js → selfieManager-C4_2DgTF.esm.js} +7 -10
- package/dist/{selfieManager-d7nkO-UP.d.ts → selfieManager-CN8wJ14s.d.ts} +3 -4
- package/dist/{selfieStateMachine-zz4WqziP.esm.js → selfieStateMachine-ODRceav2.esm.js} +15 -20
- package/dist/selfieUploadService-B4LnSIf6.esm.js +62 -0
- package/dist/session-CQ2x2aLl.esm.js +1 -0
- package/dist/session.d.ts +2 -9
- package/dist/session.esm.js +153 -15
- package/dist/sessionInitializer-Cjpnacyg.esm.js +1801 -0
- package/dist/{setup-BxB6QUto.d.ts → setup-CgBvqGWw.d.ts} +2 -4
- package/dist/{setup-DCyhfufM.esm.js → setup-Hyb_Yiuu.esm.js} +126 -18
- package/dist/signature.d.ts +2 -6
- package/dist/signature.esm.js +6 -9
- package/dist/{signatureStateMachine-U8ewxW1t.esm.js → signatureStateMachine-BmKPC5A9.esm.js} +5 -7
- package/dist/spawn-D9jgw9pW.d.ts +1441 -0
- package/dist/{stats-BVy52wLy.esm.js → stats-Bu6bL_CX.esm.js} +3 -5
- package/dist/stats.esm.js +2 -5
- package/dist/topLevelStateName-B5i2avbh.esm.js +41 -0
- package/dist/{tri-Calc36Ny.esm.js → tri-N-xlKhZK.esm.js} +3 -7
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-BIjHhBJ2.esm.js +2620 -0
- package/dist/tri.esm.js +2 -4
- package/dist/trust-graph.d.ts +4 -5
- package/dist/trust-graph.esm.js +13 -9
- package/dist/{types-Db2ooXIu.esm.js → types-BN5RPPIZ.esm.js} +1 -2
- package/dist/{types-ZezaAAbn.d.ts → types-BfgmV7s7.d.ts} +2 -2
- package/dist/{types-NizIIgLD.d.ts → types-BnEHzP1K.d.ts} +3 -5
- package/dist/{types-DCOl8zy6.d.ts → types-Vb4P9ovf.d.ts} +1 -3
- package/dist/{types-C0D4Brd6.d.ts → types-ctqh-iS4.d.ts} +80 -6
- package/dist/{urlUtils-CpiYwn7w.esm.js → urlUtils-D6phjq1-.esm.js} +1 -2
- package/dist/{video-DXf5H9rY.esm.js → video-BtSWtHy1.esm.js} +1 -2
- package/dist/video-selfie.d.ts +10 -15
- package/dist/video-selfie.esm.js +114 -106
- package/dist/{videoSelfieSteps-DAky5sq5.esm.js → videoSelfieSteps-DHcibfYH.esm.js} +1 -2
- package/dist/wasm.d.ts +2 -4
- package/dist/wasm.esm.js +3 -15
- package/dist/watchlist-for-business.d.ts +1 -3
- package/dist/watchlist-for-business.esm.js +9 -9
- package/dist/watchlist.d.ts +1 -3
- package/dist/watchlist.esm.js +11 -10
- package/dist/{watchlistForBusinessStateMachine-Bbn_dcVT.esm.js → watchlistForBusinessStateMachine-BC_-3fJs.esm.js} +5 -7
- package/dist/{watchlistStateMachine-SZ-1xpe4.esm.js → watchlistStateMachine-CL2j3aRl.esm.js} +5 -7
- package/dist/workflow.d.ts +124 -146
- package/dist/workflow.esm.js +75 -80
- package/dist/xstate-actors.esm-CtI5S0f4.esm.js +310 -0
- package/dist/{xstate.esm-nY3M5UYm.esm.js → xstate.esm-Cf4e0Cfd.esm.js} +136 -610
- package/package.json +2 -2
- package/dist/Actor-CdjYVucI.d.ts +0 -2
- package/dist/FaceDetectionProvider-D-zCGbS9.d.ts +0 -119
- package/dist/IWasmUtilCapability-CuiW_6d1.d.ts +0 -150
- package/dist/StateMachine-BTkXO3Na.d.ts +0 -2
- package/dist/StreamCanvasCapture-D9u4hwul.d.ts +0 -42
- package/dist/ae-signature-eQWjmzE8.esm.js +0 -12
- package/dist/browser-DlFgHpoC-BTB6a7n-.esm.js +0 -1425
- package/dist/browserSimulation-CQjwFn0Z.esm.js +0 -1256
- package/dist/canvas-COIxuirO.d.ts +0 -112
- package/dist/chunk-CIKcdghV.esm.js +0 -49
- package/dist/deepsightLoader-BppeThau.esm.js +0 -67
- package/dist/deepsightService-mkIAy_Eq.d.ts +0 -69
- package/dist/http-C3Pq6njG.esm.js +0 -0
- package/dist/index-BD6ZVw2f.d.ts +0 -93
- package/dist/openviduLazy-CuGqb-8Q.esm.js +0 -12
- package/dist/openviduLazy-DNb0xHJp.esm.js +0 -3
- package/dist/qe-signature-D9XM2d-F.esm.js +0 -12
- package/dist/session--C2lbjK5.esm.js +0 -152
- package/dist/sessionInitializer-Dx_oPfHP.esm.js +0 -548
- package/dist/tri.esm-BDhptA8x.esm.js +0 -2593
- /package/dist/{IVisibilityObserverCapability-C3tAkSfF.d.ts → IVisibilityObserverCapability-D4tvIB5v.d.ts} +0 -0
- /package/dist/{camera-DRH7co71.d.ts → camera-9wWD-pwg.d.ts} +0 -0
- /package/dist/{flowCompletionService-DGcE_OvO.d.ts → flowCompletionService-BlAHsKyv.d.ts} +0 -0
- /package/dist/{types-DawqnFVn.d.ts → types-BT-aiBYV.d.ts} +0 -0
- /package/dist/{types-B6KIOo6S.d.ts → types-Bk_6dmDa.d.ts} +0 -0
- /package/dist/{warmup-CE9Fhs6N.d.ts → warmup-Dv2alr2-.d.ts} +0 -0
package/dist/video-selfie.esm.js
CHANGED
|
@@ -1,34 +1,20 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
3
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-
|
|
4
|
-
import { t as api } from "./api-
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import { t as
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
13
|
-
import "./
|
|
14
|
-
import {
|
|
15
|
-
import "./
|
|
16
|
-
import { t as
|
|
17
|
-
import {
|
|
18
|
-
import { a as encryptSelfieImage, b as FaceDetectionProvider, l as startDetection, m as uploadSelfie, p as processFace, y as StreamCanvasProcessingSession } from "./onDeviceFaceResults-CJuDp67S.esm.js";
|
|
19
|
-
import "./ITimerCapability-G7lQg-be.esm.js";
|
|
20
|
-
import "./canvas-DsJa51yU.esm.js";
|
|
21
|
-
import { n as getBackCameraStream } from "./backCameraStream-DYnfq7Hr.esm.js";
|
|
22
|
-
import "./video-DXf5H9rY.esm.js";
|
|
23
|
-
import { n as getWindowDimensions } from "./getDeviceClass-BdgmyOOu.esm.js";
|
|
24
|
-
import "./deepsightService-CV1NAkg9.esm.js";
|
|
25
|
-
import "./getDeviceClass-DsNb6nEl.esm.js";
|
|
26
|
-
import "./types-Db2ooXIu.esm.js";
|
|
27
|
-
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CRk7c7u7.esm.js";
|
|
28
|
-
import { n as getSupportedMediaRecorderMimeType } from "./mediaRecorderOptions-BIn657lu.esm.js";
|
|
29
|
-
import { n as resolveVideoSelfieSteps, r as videoSelfieWasmPipelines, t as facingModeForStep } from "./videoSelfieSteps-DAky5sq5.esm.js";
|
|
30
|
-
import { i as IdCaptureProvider, n as DEFAULT_ID_CAPTURE_MODEL_VERSION, r as DEFAULT_ID_CAPTURE_THRESHOLDS, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-Df8XKQ0o.esm.js";
|
|
31
|
-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-Hyb_Yiuu.esm.js";
|
|
3
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
+
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
5
|
+
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
6
|
+
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
7
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
8
|
+
import { t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
|
|
9
|
+
import { i as requestCameraWithFallback, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
|
|
10
|
+
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-LRTvBL7m.esm.js";
|
|
11
|
+
import { n as getBackCameraStream } from "./backCameraStream-Heg6vA1j.esm.js";
|
|
12
|
+
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
13
|
+
import { n as uploadSelfie, t as processFace } from "./selfieUploadService-B4LnSIf6.esm.js";
|
|
14
|
+
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
15
|
+
import { n as getSupportedMediaRecorderMimeType } from "./mediaRecorderOptions-BhSZDDNb.esm.js";
|
|
16
|
+
import { n as resolveVideoSelfieSteps, r as videoSelfieWasmPipelines, t as facingModeForStep } from "./videoSelfieSteps-DHcibfYH.esm.js";
|
|
17
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-Dzfws4i0.esm.js";
|
|
32
18
|
//#region src/modules/video-selfie/videoSelfieCompareService.ts
|
|
33
19
|
async function postVideoSelfieCompare(endpoint, base64Image) {
|
|
34
20
|
return (await api.post(endpoint, { base64Image })).data;
|
|
@@ -41,7 +27,6 @@ const compareVideoSelfieOcr = (base64Image) => postVideoSelfieCompare(endpoints.
|
|
|
41
27
|
const compareVideoSelfieBackId = (base64Image) => postVideoSelfieCompare(endpoints.videoSelfieCompareBackId, base64Image);
|
|
42
28
|
/** Compare OCR from a back-ID frame against the captured ID's OCR. */
|
|
43
29
|
const compareVideoSelfieBackOcr = (base64Image) => postVideoSelfieCompare(endpoints.videoSelfieCompareBackOcr, base64Image);
|
|
44
|
-
|
|
45
30
|
//#endregion
|
|
46
31
|
//#region src/modules/video-selfie/videoSelfieStepDetector.ts
|
|
47
32
|
/** Default autocapture window for the selfie step when the config omits one. */
|
|
@@ -168,8 +153,8 @@ async function detectSelfie(params) {
|
|
|
168
153
|
});
|
|
169
154
|
await processFace(imageType);
|
|
170
155
|
settle(resolve);
|
|
171
|
-
} catch (error
|
|
172
|
-
settle(() => reject(error
|
|
156
|
+
} catch (error) {
|
|
157
|
+
settle(() => reject(error instanceof Error ? error : new Error(String(error))));
|
|
173
158
|
}
|
|
174
159
|
})();
|
|
175
160
|
}
|
|
@@ -179,8 +164,8 @@ async function detectSelfie(params) {
|
|
|
179
164
|
for (let attempt = 1; attempt <= MAX_SELFIE_ATTEMPTS; attempt++) try {
|
|
180
165
|
await runAttempt();
|
|
181
166
|
return;
|
|
182
|
-
} catch (error
|
|
183
|
-
if (signal.aborted || attempt >= MAX_SELFIE_ATTEMPTS) throw error
|
|
167
|
+
} catch (error) {
|
|
168
|
+
if (signal.aborted || attempt >= MAX_SELFIE_ATTEMPTS) throw error;
|
|
184
169
|
onStatus?.("error");
|
|
185
170
|
provider.reset();
|
|
186
171
|
await delay(1500, signal);
|
|
@@ -213,7 +198,7 @@ async function detectId(params) {
|
|
|
213
198
|
fpsLimitEnabled: false
|
|
214
199
|
});
|
|
215
200
|
provider.setThresholds(DEFAULT_ID_CAPTURE_THRESHOLDS);
|
|
216
|
-
provider.setModelType(
|
|
201
|
+
provider.setModelType("v2");
|
|
217
202
|
const capturer = new StreamCanvasCapture(stream);
|
|
218
203
|
return new Promise((resolve, reject) => {
|
|
219
204
|
let validating = false;
|
|
@@ -241,9 +226,9 @@ async function detectId(params) {
|
|
|
241
226
|
return;
|
|
242
227
|
}
|
|
243
228
|
validating = false;
|
|
244
|
-
} catch (error
|
|
229
|
+
} catch (error) {
|
|
245
230
|
teardown();
|
|
246
|
-
reject(error
|
|
231
|
+
reject(error instanceof Error ? error : new Error(String(error)));
|
|
247
232
|
}
|
|
248
233
|
})();
|
|
249
234
|
}
|
|
@@ -293,7 +278,6 @@ async function validateIdFrame(step, config, base64Image) {
|
|
|
293
278
|
}
|
|
294
279
|
return true;
|
|
295
280
|
}
|
|
296
|
-
|
|
297
281
|
//#endregion
|
|
298
282
|
//#region ../infra/src/media/CameraCompositor.ts
|
|
299
283
|
/**
|
|
@@ -393,7 +377,6 @@ var CameraCompositor = class {
|
|
|
393
377
|
this.rafId = requestAnimationFrame(draw);
|
|
394
378
|
}
|
|
395
379
|
};
|
|
396
|
-
|
|
397
380
|
//#endregion
|
|
398
381
|
//#region ../infra/src/providers/browser/MultipartRecordingProvider.ts
|
|
399
382
|
/**
|
|
@@ -464,7 +447,8 @@ var MultipartRecordingProvider = class {
|
|
|
464
447
|
}
|
|
465
448
|
};
|
|
466
449
|
recorder.onerror = (event) => {
|
|
467
|
-
|
|
450
|
+
const detail = event instanceof ErrorEvent && event.error instanceof Error ? event.error.message : event.type;
|
|
451
|
+
this._error = `Recording error: ${detail}`;
|
|
468
452
|
this._isRecording = false;
|
|
469
453
|
this._hasError = true;
|
|
470
454
|
};
|
|
@@ -474,7 +458,8 @@ var MultipartRecordingProvider = class {
|
|
|
474
458
|
this._error = null;
|
|
475
459
|
this._hasError = false;
|
|
476
460
|
} catch (err) {
|
|
477
|
-
|
|
461
|
+
const detail = err instanceof Error ? err.message : String(err);
|
|
462
|
+
this._error = `Failed to start recording: ${detail}`;
|
|
478
463
|
this._hasError = true;
|
|
479
464
|
}
|
|
480
465
|
}
|
|
@@ -521,7 +506,6 @@ var MultipartRecordingProvider = class {
|
|
|
521
506
|
this.bufferedBytes = 0;
|
|
522
507
|
}
|
|
523
508
|
};
|
|
524
|
-
|
|
525
509
|
//#endregion
|
|
526
510
|
//#region src/internal/recordings/videoSelfieUploadService.ts
|
|
527
511
|
/**
|
|
@@ -559,7 +543,6 @@ async function completeVideoSelfieUpload(uploadId, parts) {
|
|
|
559
543
|
parts
|
|
560
544
|
})).data.status;
|
|
561
545
|
}
|
|
562
|
-
|
|
563
546
|
//#endregion
|
|
564
547
|
//#region src/internal/recordings/multipartRecordingService.ts
|
|
565
548
|
/**
|
|
@@ -623,7 +606,6 @@ var MultipartRecordingService = class {
|
|
|
623
606
|
this.recorder.reset();
|
|
624
607
|
}
|
|
625
608
|
};
|
|
626
|
-
|
|
627
609
|
//#endregion
|
|
628
610
|
//#region src/modules/video-selfie/videoSelfieCameraWarmer.ts
|
|
629
611
|
/**
|
|
@@ -646,9 +628,9 @@ async function defaultAcquireCamera(facingMode, withAudio) {
|
|
|
646
628
|
if (withAudio) try {
|
|
647
629
|
const audioStream = await requestCameraAccess({ audio: true });
|
|
648
630
|
for (const audioTrack of audioStream.getAudioTracks()) stream.addTrack(audioTrack);
|
|
649
|
-
} catch (error
|
|
631
|
+
} catch (error) {
|
|
650
632
|
stream.getTracks().forEach((track) => track.stop());
|
|
651
|
-
throw error
|
|
633
|
+
throw error;
|
|
652
634
|
}
|
|
653
635
|
return stream;
|
|
654
636
|
}
|
|
@@ -698,7 +680,6 @@ function createVideoSelfieCameraWarmer(config) {
|
|
|
698
680
|
}
|
|
699
681
|
};
|
|
700
682
|
}
|
|
701
|
-
|
|
702
683
|
//#endregion
|
|
703
684
|
//#region src/modules/video-selfie/videoSelfieRecordingMachine.ts
|
|
704
685
|
/** A detector that never settles — used when a step has no auto-capture yet. */
|
|
@@ -718,6 +699,22 @@ function detectionStatusFromEvent(event) {
|
|
|
718
699
|
function detectionErrorFromEvent(event) {
|
|
719
700
|
return event.error;
|
|
720
701
|
}
|
|
702
|
+
const SWITCHING_CAMERA_MIN_DWELL_MS = 3e3;
|
|
703
|
+
function waitForDwell(ms, signal) {
|
|
704
|
+
const timerProvider = BrowserTimerProvider.getInstance();
|
|
705
|
+
return new Promise((resolve) => {
|
|
706
|
+
const onAbort = () => {
|
|
707
|
+
timerProvider.clearTimeout(timer);
|
|
708
|
+
resolve(false);
|
|
709
|
+
};
|
|
710
|
+
const timer = timerProvider.setTimeout(() => {
|
|
711
|
+
signal.removeEventListener("abort", onAbort);
|
|
712
|
+
resolve(true);
|
|
713
|
+
}, ms);
|
|
714
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
715
|
+
if (signal.aborted) onAbort();
|
|
716
|
+
});
|
|
717
|
+
}
|
|
721
718
|
/**
|
|
722
719
|
* Orchestrates a multi-step Video Selfie session as ONE continuous recording
|
|
723
720
|
* that follows the camera between steps AND auto-advances per step:
|
|
@@ -752,6 +749,23 @@ const videoSelfieRecordingSetup = setup({
|
|
|
752
749
|
}
|
|
753
750
|
return stream;
|
|
754
751
|
}),
|
|
752
|
+
switchCamera: fromPromise(async ({ input, signal }) => {
|
|
753
|
+
const dwellCompleted = waitForDwell(input.minDwellMs, signal);
|
|
754
|
+
const stream = await input.acquire(input.facingMode, false);
|
|
755
|
+
if (signal.aborted) {
|
|
756
|
+
stream.getTracks().forEach((track) => track.stop());
|
|
757
|
+
throw new Error("Camera switch cancelled");
|
|
758
|
+
}
|
|
759
|
+
if (!await dwellCompleted) {
|
|
760
|
+
stream.getTracks().forEach((track) => track.stop());
|
|
761
|
+
throw new Error("Camera switch cancelled");
|
|
762
|
+
}
|
|
763
|
+
if (signal.aborted) {
|
|
764
|
+
stream.getTracks().forEach((track) => track.stop());
|
|
765
|
+
throw new Error("Camera switch cancelled");
|
|
766
|
+
}
|
|
767
|
+
return stream;
|
|
768
|
+
}),
|
|
755
769
|
startRecording: fromPromise(async ({ input }) => {
|
|
756
770
|
await input.service.start(input.stream);
|
|
757
771
|
}),
|
|
@@ -776,7 +790,7 @@ const videoSelfieRecordingSetup = setup({
|
|
|
776
790
|
})
|
|
777
791
|
},
|
|
778
792
|
actions: {
|
|
779
|
-
advanceStep: assign({ stepIndex: ({ context
|
|
793
|
+
advanceStep: assign({ stepIndex: ({ context }) => context.stepIndex + 1 }),
|
|
780
794
|
setDetectionStatus: assign({ detectionStatus: ({ event }) => detectionStatusFromEvent(event) }),
|
|
781
795
|
setDetectionError: assign({ detectionError: ({ event }) => detectionErrorFromEvent(event) }),
|
|
782
796
|
setErrorFromDetection: assign({ error: ({ event }) => detectionErrorFromEvent(event) }),
|
|
@@ -785,15 +799,15 @@ const videoSelfieRecordingSetup = setup({
|
|
|
785
799
|
detectionError: () => void 0
|
|
786
800
|
}),
|
|
787
801
|
setUploadFailedError: assign({ error: () => "Video upload failed" }),
|
|
788
|
-
cleanup: ({ context
|
|
789
|
-
context
|
|
790
|
-
context
|
|
791
|
-
context
|
|
802
|
+
cleanup: ({ context }) => {
|
|
803
|
+
context.service.cleanup();
|
|
804
|
+
context.compositor.stop();
|
|
805
|
+
context.stream?.getTracks().forEach((track) => track.stop());
|
|
792
806
|
}
|
|
793
807
|
},
|
|
794
808
|
guards: {
|
|
795
|
-
isLastStep: ({ context
|
|
796
|
-
nextStepFlipsCamera: ({ context
|
|
809
|
+
isLastStep: ({ context }) => context.stepIndex >= context.steps.length - 1,
|
|
810
|
+
nextStepFlipsCamera: ({ context }) => facingModeForStep(context.steps[context.stepIndex]) !== facingModeForStep(context.steps[context.stepIndex + 1]),
|
|
797
811
|
uploadReturnedNoRecordingId: ({ event }) => recordingIdFromEvent(event) === null
|
|
798
812
|
}
|
|
799
813
|
});
|
|
@@ -813,7 +827,7 @@ const ADVANCE_TRANSITIONS = [
|
|
|
813
827
|
actions: "advanceStep"
|
|
814
828
|
}
|
|
815
829
|
];
|
|
816
|
-
const
|
|
830
|
+
const videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
|
|
817
831
|
id: "videoSelfieRecording",
|
|
818
832
|
initial: "idle",
|
|
819
833
|
context: ({ input }) => ({
|
|
@@ -828,25 +842,26 @@ const _videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
|
|
|
828
842
|
detectionStatus: void 0,
|
|
829
843
|
detectionError: void 0,
|
|
830
844
|
recordingId: null,
|
|
831
|
-
error: void 0
|
|
845
|
+
error: void 0,
|
|
846
|
+
switchingCameraMinDwellMs: input.dependencies?.switchingCameraMinDwellMs ?? SWITCHING_CAMERA_MIN_DWELL_MS
|
|
832
847
|
}),
|
|
833
848
|
on: { ABORT: { target: ".aborted" } },
|
|
834
849
|
states: {
|
|
835
850
|
idle: { on: { START: { target: "acquiringCamera" } } },
|
|
836
851
|
acquiringCamera: { invoke: {
|
|
837
852
|
src: "acquireCamera",
|
|
838
|
-
input: ({ context
|
|
839
|
-
acquire: context
|
|
840
|
-
facingMode: facingModeForStep(context
|
|
853
|
+
input: ({ context }) => ({
|
|
854
|
+
acquire: context.acquireCamera,
|
|
855
|
+
facingMode: facingModeForStep(context.steps[context.stepIndex]),
|
|
841
856
|
withAudio: true
|
|
842
857
|
}),
|
|
843
858
|
onDone: {
|
|
844
859
|
target: "starting",
|
|
845
|
-
actions: [({ context
|
|
846
|
-
context
|
|
860
|
+
actions: [({ context, event }) => {
|
|
861
|
+
context.compositor.start(eventOutputStream(event));
|
|
847
862
|
}, assign({
|
|
848
863
|
stream: ({ event }) => eventOutputStream(event),
|
|
849
|
-
composite: ({ context
|
|
864
|
+
composite: ({ context }) => context.compositor.stream
|
|
850
865
|
})]
|
|
851
866
|
},
|
|
852
867
|
onError: {
|
|
@@ -856,9 +871,9 @@ const _videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
|
|
|
856
871
|
} },
|
|
857
872
|
starting: { invoke: {
|
|
858
873
|
src: "startRecording",
|
|
859
|
-
input: ({ context
|
|
860
|
-
service: context
|
|
861
|
-
stream: context
|
|
874
|
+
input: ({ context }) => ({
|
|
875
|
+
service: context.service,
|
|
876
|
+
stream: context.composite
|
|
862
877
|
}),
|
|
863
878
|
onDone: { target: "recording" },
|
|
864
879
|
onError: {
|
|
@@ -870,10 +885,10 @@ const _videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
|
|
|
870
885
|
entry: "clearDetectionFeedback",
|
|
871
886
|
invoke: {
|
|
872
887
|
src: "detectStep",
|
|
873
|
-
input: ({ context
|
|
874
|
-
detect: context
|
|
875
|
-
step: context
|
|
876
|
-
stream: context
|
|
888
|
+
input: ({ context }) => ({
|
|
889
|
+
detect: context.detect,
|
|
890
|
+
step: context.steps[context.stepIndex],
|
|
891
|
+
stream: context.stream
|
|
877
892
|
})
|
|
878
893
|
},
|
|
879
894
|
on: {
|
|
@@ -887,16 +902,16 @@ const _videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
|
|
|
887
902
|
}
|
|
888
903
|
},
|
|
889
904
|
switchingCamera: { invoke: {
|
|
890
|
-
src: "
|
|
891
|
-
input: ({ context
|
|
892
|
-
acquire: context
|
|
893
|
-
facingMode: facingModeForStep(context
|
|
894
|
-
|
|
905
|
+
src: "switchCamera",
|
|
906
|
+
input: ({ context }) => ({
|
|
907
|
+
acquire: context.acquireCamera,
|
|
908
|
+
facingMode: facingModeForStep(context.steps[context.stepIndex]),
|
|
909
|
+
minDwellMs: context.switchingCameraMinDwellMs
|
|
895
910
|
}),
|
|
896
911
|
onDone: {
|
|
897
912
|
target: "recording",
|
|
898
|
-
actions: [({ context
|
|
899
|
-
context
|
|
913
|
+
actions: [({ context, event }) => {
|
|
914
|
+
context.compositor.switchVideo(eventOutputStream(event));
|
|
900
915
|
}, assign({ stream: ({ event }) => eventOutputStream(event) })]
|
|
901
916
|
},
|
|
902
917
|
onError: {
|
|
@@ -906,7 +921,7 @@ const _videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
|
|
|
906
921
|
} },
|
|
907
922
|
finalizing: { invoke: {
|
|
908
923
|
src: "finalizeRecording",
|
|
909
|
-
input: ({ context
|
|
924
|
+
input: ({ context }) => ({ service: context.service }),
|
|
910
925
|
onDone: [{
|
|
911
926
|
target: "error",
|
|
912
927
|
guard: "uploadReturnedNoRecordingId",
|
|
@@ -934,8 +949,6 @@ const _videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
|
|
|
934
949
|
}
|
|
935
950
|
}
|
|
936
951
|
});
|
|
937
|
-
const videoSelfieRecordingMachine = _videoSelfieRecordingMachine;
|
|
938
|
-
|
|
939
952
|
//#endregion
|
|
940
953
|
//#region src/modules/video-selfie/videoSelfieRecordingActor.ts
|
|
941
954
|
function createVideoSelfieRecordingActor(options = {}) {
|
|
@@ -949,35 +962,40 @@ function createVideoSelfieRecordingActor(options = {}) {
|
|
|
949
962
|
}
|
|
950
963
|
} }).start();
|
|
951
964
|
}
|
|
952
|
-
|
|
953
965
|
//#endregion
|
|
954
966
|
//#region src/modules/video-selfie/videoSelfieRecordingManager.ts
|
|
955
967
|
function mapState(snapshot) {
|
|
956
968
|
const value = typeof snapshot.value === "string" ? snapshot.value : "idle";
|
|
957
|
-
const { context
|
|
969
|
+
const { context } = snapshot;
|
|
958
970
|
const status = value === "acquiringCamera" ? "starting" : value;
|
|
959
|
-
const steps = context
|
|
960
|
-
const stepIndex = context
|
|
971
|
+
const steps = context.steps;
|
|
972
|
+
const stepIndex = context.stepIndex;
|
|
961
973
|
return {
|
|
962
974
|
status,
|
|
963
975
|
step: steps[stepIndex],
|
|
964
976
|
stepIndex,
|
|
965
977
|
isLastStep: stepIndex >= steps.length - 1,
|
|
966
|
-
stream: context
|
|
967
|
-
composite: context
|
|
968
|
-
detectionStatus: context
|
|
969
|
-
recordingId: context
|
|
970
|
-
error: context
|
|
978
|
+
stream: context.stream,
|
|
979
|
+
composite: context.composite,
|
|
980
|
+
detectionStatus: context.detectionStatus,
|
|
981
|
+
recordingId: context.recordingId,
|
|
982
|
+
error: context.error
|
|
971
983
|
};
|
|
972
984
|
}
|
|
973
985
|
function createApi({ actor }) {
|
|
974
986
|
return {
|
|
987
|
+
/** Acquire the first camera, open the upload, and begin recording. */
|
|
975
988
|
start() {
|
|
976
989
|
actor.send({ type: "START" });
|
|
977
990
|
},
|
|
991
|
+
/**
|
|
992
|
+
* Advance to the next step. Switches the camera when the next step's
|
|
993
|
+
* facing mode differs; finalizes the upload on the last step.
|
|
994
|
+
*/
|
|
978
995
|
nextStep() {
|
|
979
996
|
actor.send({ type: "NEXT_STEP" });
|
|
980
997
|
},
|
|
998
|
+
/** Abandon the session without finalizing the upload. */
|
|
981
999
|
abort() {
|
|
982
1000
|
actor.send({ type: "ABORT" });
|
|
983
1001
|
}
|
|
@@ -1006,7 +1024,6 @@ function createVideoSelfieRecordingManager(options = {}) {
|
|
|
1006
1024
|
}
|
|
1007
1025
|
};
|
|
1008
1026
|
}
|
|
1009
|
-
|
|
1010
1027
|
//#endregion
|
|
1011
1028
|
//#region src/modules/video-selfie/videoSelfieWasm.ts
|
|
1012
1029
|
/**
|
|
@@ -1022,7 +1039,6 @@ function createVideoSelfieRecordingManager(options = {}) {
|
|
|
1022
1039
|
function warmupVideoSelfieWasm(config) {
|
|
1023
1040
|
return ensureWasmPipelines(videoSelfieWasmPipelines(config));
|
|
1024
1041
|
}
|
|
1025
|
-
|
|
1026
1042
|
//#endregion
|
|
1027
1043
|
//#region src/modules/video-selfie/videoSelfieSpeechService.ts
|
|
1028
1044
|
/**
|
|
@@ -1062,7 +1078,6 @@ async function addSpeech(base64Mp3) {
|
|
|
1062
1078
|
return { success: false };
|
|
1063
1079
|
}
|
|
1064
1080
|
}
|
|
1065
|
-
|
|
1066
1081
|
//#endregion
|
|
1067
1082
|
//#region ../../node_modules/.pnpm/audio-recorder-polyfill@0.4.1/node_modules/audio-recorder-polyfill/wave-encoder/index.js
|
|
1068
1083
|
var wave_encoder_default = () => {
|
|
@@ -1109,7 +1124,6 @@ var wave_encoder_default = () => {
|
|
|
1109
1124
|
else if (e.data[0] === "dump") dump(e.data[1]);
|
|
1110
1125
|
};
|
|
1111
1126
|
};
|
|
1112
|
-
|
|
1113
1127
|
//#endregion
|
|
1114
1128
|
//#region ../../node_modules/.pnpm/audio-recorder-polyfill@0.4.1/node_modules/audio-recorder-polyfill/index.js
|
|
1115
1129
|
let AudioContext = window.AudioContext || window.webkitAudioContext;
|
|
@@ -1333,8 +1347,6 @@ MediaRecorder$1.notSupported = !navigator.mediaDevices || !AudioContext;
|
|
|
1333
1347
|
* MediaRecorder.encoder = oggEncoder
|
|
1334
1348
|
*/
|
|
1335
1349
|
MediaRecorder$1.encoder = wave_encoder_default;
|
|
1336
|
-
var audio_recorder_polyfill_default = MediaRecorder$1;
|
|
1337
|
-
|
|
1338
1350
|
//#endregion
|
|
1339
1351
|
//#region ../../node_modules/.pnpm/audio-recorder-polyfill@0.4.1/node_modules/audio-recorder-polyfill/mpeg-encoder/index.js
|
|
1340
1352
|
var mpeg_encoder_default = () => {
|
|
@@ -1343,7 +1355,7 @@ var mpeg_encoder_default = () => {
|
|
|
1343
1355
|
let KBPS = 128;
|
|
1344
1356
|
let DEFAULT_SAMPLE_RATE = 44100;
|
|
1345
1357
|
let encoder;
|
|
1346
|
-
let recorded = new Int8Array();
|
|
1358
|
+
let recorded = /* @__PURE__ */ new Int8Array();
|
|
1347
1359
|
function concat(a, b) {
|
|
1348
1360
|
if (b.length === 0) return a;
|
|
1349
1361
|
let c = new Int8Array(a.length + b.length);
|
|
@@ -1363,7 +1375,7 @@ var mpeg_encoder_default = () => {
|
|
|
1363
1375
|
let buf = encoder.flush();
|
|
1364
1376
|
recorded = concat(recorded, buf);
|
|
1365
1377
|
let buffer = recorded.buffer;
|
|
1366
|
-
recorded = new Int8Array();
|
|
1378
|
+
recorded = /* @__PURE__ */ new Int8Array();
|
|
1367
1379
|
postMessage(buffer, [buffer]);
|
|
1368
1380
|
}
|
|
1369
1381
|
onmessage = (e) => {
|
|
@@ -1372,7 +1384,6 @@ var mpeg_encoder_default = () => {
|
|
|
1372
1384
|
else dump(e.data[1]);
|
|
1373
1385
|
};
|
|
1374
1386
|
};
|
|
1375
|
-
|
|
1376
1387
|
//#endregion
|
|
1377
1388
|
//#region ../infra/src/media/blobEncoding.ts
|
|
1378
1389
|
/** Encodes a blob as raw base64 bytes (no `data:...;base64,` prefix). */
|
|
@@ -1394,10 +1405,9 @@ function blobToRawBase64(blob) {
|
|
|
1394
1405
|
reader.readAsDataURL(blob);
|
|
1395
1406
|
});
|
|
1396
1407
|
}
|
|
1397
|
-
|
|
1398
1408
|
//#endregion
|
|
1399
1409
|
//#region ../infra/src/providers/browser/VoiceRecordingProvider.ts
|
|
1400
|
-
const AudioRecorderPolyfill =
|
|
1410
|
+
const AudioRecorderPolyfill = MediaRecorder$1;
|
|
1401
1411
|
AudioRecorderPolyfill.encoder = mpeg_encoder_default;
|
|
1402
1412
|
AudioRecorderPolyfill.prototype.mimeType = "audio/mpeg";
|
|
1403
1413
|
const MIME_TYPE = "audio/mpeg";
|
|
@@ -1422,7 +1432,8 @@ var VoiceRecordingProvider = class {
|
|
|
1422
1432
|
start(stream) {
|
|
1423
1433
|
this.reset();
|
|
1424
1434
|
this.chunks = [];
|
|
1425
|
-
const
|
|
1435
|
+
const audioOnly = new MediaStream(stream.getAudioTracks());
|
|
1436
|
+
const recorder = new AudioRecorderPolyfill(audioOnly.clone());
|
|
1426
1437
|
recorder.mimeType = MIME_TYPE;
|
|
1427
1438
|
recorder.addEventListener("dataavailable", (event) => {
|
|
1428
1439
|
if (event.data.size > 0) this.chunks.push(event.data);
|
|
@@ -1464,7 +1475,6 @@ var VoiceRecordingProvider = class {
|
|
|
1464
1475
|
this._isRecording = false;
|
|
1465
1476
|
}
|
|
1466
1477
|
};
|
|
1467
|
-
|
|
1468
1478
|
//#endregion
|
|
1469
1479
|
//#region src/modules/video-selfie/videoSelfieConsentRecorder.ts
|
|
1470
1480
|
function createConsentRecorder() {
|
|
@@ -1483,7 +1493,6 @@ function createConsentRecorder() {
|
|
|
1483
1493
|
}
|
|
1484
1494
|
};
|
|
1485
1495
|
}
|
|
1486
|
-
|
|
1487
1496
|
//#endregion
|
|
1488
1497
|
//#region src/modules/video-selfie/videoSelfieFlowModuleMachine.ts
|
|
1489
1498
|
/**
|
|
@@ -1515,6 +1524,5 @@ const videoSelfieFlowModuleMachine = setup({}).createMachine({
|
|
|
1515
1524
|
initial: "running",
|
|
1516
1525
|
states: { running: {} }
|
|
1517
1526
|
});
|
|
1518
|
-
|
|
1519
1527
|
//#endregion
|
|
1520
|
-
export { createConsentRecorder, createVideoSelfieCameraWarmer, createVideoSelfieRecordingManager, facingModeForStep, getVideoSelfieQuestions, getVoiceConsentPhrase, resolveVideoSelfieSteps, videoSelfieFlowModuleMachine, videoSelfieWasmPipelines, warmupVideoSelfieWasm };
|
|
1528
|
+
export { createConsentRecorder, createVideoSelfieCameraWarmer, createVideoSelfieRecordingManager, facingModeForStep, getVideoSelfieQuestions, getVoiceConsentPhrase, resolveVideoSelfieSteps, videoSelfieFlowModuleMachine, videoSelfieWasmPipelines, warmupVideoSelfieWasm };
|
|
@@ -53,6 +53,5 @@ function videoSelfieWasmPipelines(config) {
|
|
|
53
53
|
if (config.checkIdScan) pipelines.push("videoSelfieId");
|
|
54
54
|
return pipelines;
|
|
55
55
|
}
|
|
56
|
-
|
|
57
56
|
//#endregion
|
|
58
|
-
export { resolveVideoSelfieSteps as n, videoSelfieWasmPipelines as r, facingModeForStep as t };
|
|
57
|
+
export { resolveVideoSelfieSteps as n, videoSelfieWasmPipelines as r, facingModeForStep as t };
|
package/dist/wasm.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { n as WasmPipeline, r as warmupWasm, t as WarmupConfig } from "./warmup-
|
|
2
|
-
import "./
|
|
3
|
-
import { i as initializeWasmUtil, l as upgradeToWasmHttpClient, n as WasmConfig, r as ensureWasmPipelines, s as setWasmConfig } from "./setup-BxB6QUto.js";
|
|
4
|
-
|
|
1
|
+
import { n as WasmPipeline, r as warmupWasm, t as WarmupConfig } from "./warmup-Dv2alr2-.js";
|
|
2
|
+
import { i as initializeWasmUtil, l as upgradeToWasmHttpClient, n as WasmConfig, r as ensureWasmPipelines, s as setWasmConfig } from "./setup-CgBvqGWw.js";
|
|
5
3
|
//#region ../infra/src/wasm/wasmDefaults.d.ts
|
|
6
4
|
/** The WASM version bundled and tested with this SDK release. */
|
|
7
5
|
declare const DEFAULT_WASM_VERSION = "v2.14.07-post7-post1";
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
import { i as warmupWasm } from "./WasmUtilProvider-
|
|
2
|
-
import { a as setWasmConfig, c as DEFAULT_WASM_VERSION, d as resolveWasmConfig, l as buildDefaultWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines, u as buildWasmConfigFromBasePath } from "./setup-
|
|
3
|
-
|
|
4
|
-
import "./api-DsbUi7TO.esm.js";
|
|
5
|
-
import "./clientLifecycle-CCJMDjFe.esm.js";
|
|
6
|
-
import "./events-aeCkGlnn.esm.js";
|
|
7
|
-
import "./endpoints-CwrFQfW7.esm.js";
|
|
8
|
-
import "./stats-BVy52wLy.esm.js";
|
|
9
|
-
import "./sessionInitializer-Dx_oPfHP.esm.js";
|
|
10
|
-
import "./getBrowser-CZ66VtC7.esm.js";
|
|
11
|
-
import "./browserSimulation-CQjwFn0Z.esm.js";
|
|
12
|
-
import "./platform-BoeUeUrV.esm.js";
|
|
13
|
-
import "./tri-Calc36Ny.esm.js";
|
|
14
|
-
|
|
15
|
-
export { DEFAULT_WASM_VERSION, buildDefaultWasmConfig, buildWasmConfigFromBasePath, ensureWasmPipelines, initializeWasmUtil, resolveWasmConfig, setWasmConfig, upgradeToWasmHttpClient, warmupWasm };
|
|
1
|
+
import { i as warmupWasm } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
2
|
+
import { a as setWasmConfig, c as DEFAULT_WASM_VERSION, d as resolveWasmConfig, l as buildDefaultWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines, u as buildWasmConfigFromBasePath } from "./setup-Hyb_Yiuu.esm.js";
|
|
3
|
+
export { DEFAULT_WASM_VERSION, buildDefaultWasmConfig, buildWasmConfigFromBasePath, ensureWasmPipelines, initializeWasmUtil, resolveWasmConfig, setWasmConfig, upgradeToWasmHttpClient, warmupWasm };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { t as Manager } from "./Manager-DE5DydXZ.js";
|
|
3
|
-
|
|
1
|
+
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
4
2
|
//#region src/modules/watchlist-for-business/watchlistForBusinessManager.d.ts
|
|
5
3
|
/** Waiting for `load()` to be called. */
|
|
6
4
|
type WatchlistForBusinessIdleState = {
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-Bbn_dcVT.esm.js";
|
|
6
|
-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
2
|
+
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
+
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
+
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-BC_-3fJs.esm.js";
|
|
7
5
|
//#region src/modules/watchlist-for-business/watchlistForBusinessActor.ts
|
|
8
6
|
function createWatchlistForBusinessActor() {
|
|
9
7
|
return createActor(watchlistForBusinessMachine).start();
|
|
10
8
|
}
|
|
11
|
-
|
|
12
9
|
//#endregion
|
|
13
10
|
//#region src/modules/watchlist-for-business/watchlistForBusinessManager.ts
|
|
14
11
|
/**
|
|
@@ -48,21 +45,25 @@ function mapState(snapshot) {
|
|
|
48
45
|
}
|
|
49
46
|
function createApi({ actor, trackElementClicked }) {
|
|
50
47
|
return {
|
|
48
|
+
/** Transitions from `idle` to the form. Must be called before any other method. */
|
|
51
49
|
load() {
|
|
52
50
|
actor.send({ type: "LOAD" });
|
|
53
51
|
},
|
|
52
|
+
/** Updates the selected country code (ISO 3166-1 alpha-2). */
|
|
54
53
|
setCountry(country) {
|
|
55
54
|
actor.send({
|
|
56
55
|
type: "SET_COUNTRY",
|
|
57
56
|
country
|
|
58
57
|
});
|
|
59
58
|
},
|
|
59
|
+
/** Updates the business name field and recomputes validity. */
|
|
60
60
|
setBusinessName(value) {
|
|
61
61
|
actor.send({
|
|
62
62
|
type: "SET_BUSINESS_NAME",
|
|
63
63
|
value
|
|
64
64
|
});
|
|
65
65
|
},
|
|
66
|
+
/** Submits the form. Only transitions when `isValid` is true. */
|
|
66
67
|
submit() {
|
|
67
68
|
trackElementClicked?.("submit");
|
|
68
69
|
actor.send({ type: "SUBMIT" });
|
|
@@ -97,6 +98,5 @@ function createWatchlistForBusinessManager() {
|
|
|
97
98
|
instrumentation: createManagerInstrumentation(eventModuleNames.watchlistForBusiness, { getEventScreenName: getWatchlistForBusinessScreenName })
|
|
98
99
|
});
|
|
99
100
|
}
|
|
100
|
-
|
|
101
101
|
//#endregion
|
|
102
|
-
export { createWatchlistForBusinessManager, watchlistForBusinessMachine };
|
|
102
|
+
export { createWatchlistForBusinessManager, watchlistForBusinessMachine };
|
package/dist/watchlist.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { t as Manager } from "./Manager-DE5DydXZ.js";
|
|
3
|
-
|
|
1
|
+
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
4
2
|
//#region src/modules/watchlist/watchlistStateMachine.d.ts
|
|
5
3
|
type WatchlistResult = 'success' | 'skipped';
|
|
6
4
|
declare const watchlistMachine: any;
|