@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
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { t as
|
|
4
|
-
import
|
|
5
|
-
import { t as
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { a as
|
|
10
|
-
import { n as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as DeepsightService } from "./deepsightService-mkIAy_Eq.js";
|
|
13
|
-
|
|
1
|
+
import { A as StateMachine, i as ActorRefFrom, l as AnyStateMachine } from "./spawn-D9jgw9pW.js";
|
|
2
|
+
import "./StateMachine-EDpYWy0i.js";
|
|
3
|
+
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
4
|
+
import "./Actor-iTq7YY48.js";
|
|
5
|
+
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
6
|
+
import "./index-B8weJxmL.js";
|
|
7
|
+
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
8
|
+
import { n as StreamCanvasCapture, r as IncodeCanvas, t as DeepsightService } from "./deepsightService-CR-CYdka.js";
|
|
9
|
+
import { a as MLProviderConfig, i as IMLProviderCapability, n as IRecordingCapability, r as RecordingConnection, t as IStorageCapability } from "./IStorageCapability-B8IGxCwe.js";
|
|
10
|
+
import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-BnEHzP1K.js";
|
|
11
|
+
import { n as PermissionStatus, t as PermissionResult } from "./types-BT-aiBYV.js";
|
|
14
12
|
//#region ../infra/src/capabilities/IIdCaptureCapability.d.ts
|
|
15
13
|
/**
|
|
16
14
|
* Configuration for ID capture provider.
|
|
@@ -680,105 +678,6 @@ type CreateIdCaptureOnlyActorOptions = {
|
|
|
680
678
|
type IdCaptureOnlyActor = ActorRefFrom<IdCaptureOnlyMachine>;
|
|
681
679
|
declare function createIdCaptureOnlyActor(options: CreateIdCaptureOnlyActorOptions): IdCaptureOnlyActor;
|
|
682
680
|
//#endregion
|
|
683
|
-
//#region src/modules/id/idCaptureServices.d.ts
|
|
684
|
-
type IdCaptureInitResult = {
|
|
685
|
-
stream: CameraStream;
|
|
686
|
-
provider: IIdCaptureCapability;
|
|
687
|
-
captureResolution?: string;
|
|
688
|
-
cameraFallbackLevel?: number;
|
|
689
|
-
};
|
|
690
|
-
type InitializeIdCaptureParams = {
|
|
691
|
-
config: IdCaptureConfig;
|
|
692
|
-
deepsightService?: DeepsightService;
|
|
693
|
-
};
|
|
694
|
-
declare function initializeIdCapture(params: InitializeIdCaptureParams): Promise<IdCaptureInitResult>;
|
|
695
|
-
declare function stopStream(stream: CameraStream): void;
|
|
696
|
-
type UploadIdImageParams = {
|
|
697
|
-
image: string;
|
|
698
|
-
type: 'front' | 'back';
|
|
699
|
-
sendBase64?: boolean;
|
|
700
|
-
isSecondId?: boolean;
|
|
701
|
-
onlyFront?: boolean;
|
|
702
|
-
glare?: number;
|
|
703
|
-
sharpness?: number;
|
|
704
|
-
shouldSkipGlareBack?: boolean;
|
|
705
|
-
shouldSkipGlareFront?: boolean;
|
|
706
|
-
captureType?: string;
|
|
707
|
-
ageAssurance?: boolean;
|
|
708
|
-
onProgress?: (progress: number) => void;
|
|
709
|
-
metadata?: string;
|
|
710
|
-
signal?: AbortSignal;
|
|
711
|
-
analyticsProvider?: IAnalyticsCapability;
|
|
712
|
-
imageData?: ImageData;
|
|
713
|
-
/**
|
|
714
|
-
* [ENG-44176] When `false`, attaches `extractIdFace=false` as a query param
|
|
715
|
-
* to `POST /omni/add/front-id/v2` so the backend skips biometric face
|
|
716
|
-
* extraction. Forwarded only for `type === 'front'`. Omitted / `true` is a
|
|
717
|
-
* no-op on the wire (backend default is extraction on).
|
|
718
|
-
*/
|
|
719
|
-
extractIdFace?: boolean;
|
|
720
|
-
};
|
|
721
|
-
type ValidationError = {
|
|
722
|
-
error: boolean;
|
|
723
|
-
message: string;
|
|
724
|
-
messageDescription?: string;
|
|
725
|
-
errorKey: IdErrorCode;
|
|
726
|
-
};
|
|
727
|
-
declare function validateUploadResponse(response: UploadIdResponse & {
|
|
728
|
-
failReason?: string;
|
|
729
|
-
side?: 'front' | 'back';
|
|
730
|
-
}, sessionState?: {
|
|
731
|
-
skipGlareFront?: boolean;
|
|
732
|
-
skipGlareBack?: boolean;
|
|
733
|
-
}): ValidationError | undefined;
|
|
734
|
-
declare function uploadIdImage(params: UploadIdImageParams): Promise<CaptureIdResponse>;
|
|
735
|
-
type StartRecordingParams = {
|
|
736
|
-
config: IdCaptureConfig;
|
|
737
|
-
stream: CameraStream;
|
|
738
|
-
existing?: RecordingSession;
|
|
739
|
-
type: 'frontId' | 'backId';
|
|
740
|
-
};
|
|
741
|
-
declare function preloadIdRecordingProvider(config: IdCaptureConfig): void;
|
|
742
|
-
declare function startRecordingSession(params: StartRecordingParams): Promise<RecordingSession | undefined>;
|
|
743
|
-
declare function stopRecording(session: RecordingSession): void;
|
|
744
|
-
declare function processId(isSecondId?: boolean, queueName?: string, signal?: AbortSignal): Promise<{
|
|
745
|
-
isDocumentExpired: boolean;
|
|
746
|
-
}>;
|
|
747
|
-
type UploadManualIdFileParams = {
|
|
748
|
-
side: 'front' | 'back' | 'passport';
|
|
749
|
-
/**
|
|
750
|
-
* Raw base64 payload (no `data:<mime>;base64,` prefix). Callers must strip
|
|
751
|
-
* the data-URL prefix — the v2 backend rejects data URLs with
|
|
752
|
-
* `IllegalArgumentException: Illegal base64 character 3a`.
|
|
753
|
-
*/
|
|
754
|
-
base64Image: string;
|
|
755
|
-
retry?: boolean;
|
|
756
|
-
onlyFront?: boolean;
|
|
757
|
-
signal?: AbortSignal;
|
|
758
|
-
isSecondId?: boolean;
|
|
759
|
-
/**
|
|
760
|
-
* [ENG-44176] When `false`, attaches `extractIdFace=false` to the upload
|
|
761
|
-
* so the backend skips biometric face extraction. Forwarded only for the
|
|
762
|
-
* `front` and `passport` sides; back uploads ignore it. Omitted / `true`
|
|
763
|
-
* is a no-op on the wire.
|
|
764
|
-
*/
|
|
765
|
-
extractIdFace?: boolean;
|
|
766
|
-
};
|
|
767
|
-
/**
|
|
768
|
-
* Upload a user-selected image as front / back / passport ID.
|
|
769
|
-
*
|
|
770
|
-
* Uses the same request shape as the live-camera path (`uploadIdImage`):
|
|
771
|
-
* JSON body `{ base64Image }` with default application/json Content-Type,
|
|
772
|
-
* `captureType=UPLOAD` query param, `retry=true` when retrying.
|
|
773
|
-
* Back is POSTed to `/omni/add/back-id/v2` (or `/omni/add/back-second-id/v2`
|
|
774
|
-
* when `isSecondId`); front and passport go to `/omni/add/front-id/v2` (or
|
|
775
|
-
* `/omni/add/front-second-id/v2` when `isSecondId`).
|
|
776
|
-
*
|
|
777
|
-
* The v2 endpoints reject raw `image/jpeg` bodies with 415, so the caller
|
|
778
|
-
* must convert the File to base64 before calling this service.
|
|
779
|
-
*/
|
|
780
|
-
declare function uploadManualIdFile(params: UploadManualIdFileParams): Promise<UploadIdResponse>;
|
|
781
|
-
//#endregion
|
|
782
681
|
//#region src/modules/id/digitalUpload/types.d.ts
|
|
783
682
|
type DigitalUploadFailReason = 'DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED' | 'ID_TYPE_UNACCEPTABLE' | 'FILE_CHANGED_ERROR' | 'INVALID_FILE_TYPE' | 'NETWORK_ERROR' | 'GENERIC';
|
|
784
683
|
//#endregion
|
|
@@ -1010,4 +909,4 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
|
|
|
1010
909
|
digitalUploadChooseAnother(): void;
|
|
1011
910
|
};
|
|
1012
911
|
//#endregion
|
|
1013
|
-
export {
|
|
912
|
+
export { IdCapturedImageData as A, MANUAL_UPLOAD_MAX_RETRIES as B, IdCaptureDependencies as C, IdCaptureMode as D, IdCaptureInput as E, RecordingSession as F, IIdCaptureCapability as G, ManualUploadSide as H, UploadIdResponse as I, IdCaptureSettings as K, IAnalyticsCapability as L, IdError as M, IdErrorCode as N, IdCaptureOnlyConfig as O, IdFlowStep as P, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS as R, IdCaptureContext as S, IdCaptureGeometry as T, ManualUploadTab as U, ManualUploadContext as V, DetectionOrientation as W, CapturedImage as _, CreateIdCaptureOnlyActorOptions as a, ID_ERROR_CODES as b, IdCaptureOnlyMachine as c, IdCaptureActor as d, createIdCaptureActor as f, CaptureOnlyResponse as g, CaptureIdResponse as h, createIdCaptureManagerFromActor as i, IdDocumentType as j, IdCaptureThresholds as k, idCaptureOnlyMachine as l, idCaptureMachine as m, IdCaptureManager as n, IdCaptureOnlyActor as o, IdCaptureMachine as p, IdCaptureState as r, createIdCaptureOnlyActor as s, createIdCaptureManager as t, CreateIdCaptureActorOptions as u, DetectionArea as v, IdCaptureEvent as w, IdCaptureConfig as x, DetectionStatus as y, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES as z };
|
package/dist/{idCaptureStateMachine-CpjwdaYN.esm.js → idCaptureStateMachine-DYgckwCg.esm.js}
RENAMED
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-
|
|
2
|
-
import { r as getToken, t as api } from "./api-
|
|
3
|
-
import {
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
5
|
-
import { t as addDeviceStats } from "./stats-
|
|
6
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
7
|
-
import { n as isDesktop } from "./platform-
|
|
8
|
-
import { a as
|
|
9
|
-
import { n as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { n as
|
|
14
|
-
import {
|
|
15
|
-
import { t as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { i as
|
|
19
|
-
|
|
1
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
|
+
import { r as getToken, t as api } from "./api-BDTZNnca.esm.js";
|
|
3
|
+
import { x as revokeObjectURL } from "./events-Dy8PyVO5.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
5
|
+
import { t as addDeviceStats } from "./stats-Bu6bL_CX.esm.js";
|
|
6
|
+
import { t as getDisableIpify } from "./sessionInitializer-Cjpnacyg.esm.js";
|
|
7
|
+
import { n as isDesktop } from "./platform-wmV7oTAJ.esm.js";
|
|
8
|
+
import { a as and, n as sendTo, r as assign, s as not, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
9
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
10
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
|
|
11
|
+
import { _ as StreamCanvasProcessingSession, h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-LRTvBL7m.esm.js";
|
|
12
|
+
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
13
|
+
import { n as getBackCameraStream } from "./backCameraStream-Heg6vA1j.esm.js";
|
|
14
|
+
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
15
|
+
import { t as getDeviceClass } from "./getDeviceClass-CkgnSJel.esm.js";
|
|
16
|
+
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
17
|
+
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DguX5vFY.esm.js";
|
|
18
|
+
import { i as flagIdManualReview, n as preloadOpenViduProvider } from "./recordingService-TuBlOjvH.esm.js";
|
|
19
|
+
import "./session-CQ2x2aLl.esm.js";
|
|
20
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS$1, r as IdCaptureProvider } from "./idCaptureDefaults-Dzfws4i0.esm.js";
|
|
20
21
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
21
|
-
const TERMINAL_FAIL_REASONS = new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
22
|
+
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
22
23
|
function isKnownFailReason(reason) {
|
|
23
24
|
return reason === "DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED" || reason === "ID_TYPE_UNACCEPTABLE" || reason === "FILE_CHANGED_ERROR" || reason === "NETWORK_ERROR" || reason === "GENERIC";
|
|
24
25
|
}
|
|
@@ -48,7 +49,6 @@ function classifyNetworkError(err) {
|
|
|
48
49
|
if (message.includes("ERR_UPLOAD_FILE_CHANGED") || message.includes("file changed") || message.includes("FILE_CHANGED")) return "FILE_CHANGED_ERROR";
|
|
49
50
|
return "NETWORK_ERROR";
|
|
50
51
|
}
|
|
51
|
-
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/modules/id/digitalUpload/digitalUploadServices.ts
|
|
54
54
|
const DIGITAL_ID_UPLOAD_PATH = "/omni/add/front-id";
|
|
@@ -68,13 +68,8 @@ async function uploadDigitalIdFile(params) {
|
|
|
68
68
|
uploadDurationMs: 0
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
|
|
72
|
-
//#endregion
|
|
73
|
-
//#region src/modules/id/digitalUpload/types.ts
|
|
74
|
-
const DIGITAL_UPLOAD_MAX_FILE_SIZE_BYTES = 5 * 1024 * 1024;
|
|
75
71
|
const DIGITAL_UPLOAD_HOLDING_TIMEOUT_MS = 8e3;
|
|
76
72
|
const DIGITAL_UPLOAD_ALLOWED_MIME_TYPES = ["application/pdf"];
|
|
77
|
-
|
|
78
73
|
//#endregion
|
|
79
74
|
//#region src/modules/id/digitalUpload/digitalUploadStateMachine.ts
|
|
80
75
|
const uploadDigitalIdActor = fromPromise(async ({ input, signal }) => {
|
|
@@ -89,7 +84,7 @@ const getUploadResponseFromEvent$1 = (event) => {
|
|
|
89
84
|
if (!("output" in event)) return;
|
|
90
85
|
return event.output;
|
|
91
86
|
};
|
|
92
|
-
const
|
|
87
|
+
const digitalUploadMachine = setup({
|
|
93
88
|
types: {
|
|
94
89
|
context: {},
|
|
95
90
|
events: {},
|
|
@@ -146,7 +141,7 @@ const _digitalUploadMachine = setup({
|
|
|
146
141
|
decrementAttemptOnFailure: assign(({ context }) => ({ attemptsRemaining: Math.max(0, context.attemptsRemaining - 1) }))
|
|
147
142
|
},
|
|
148
143
|
guards: {
|
|
149
|
-
isSelectedFileTooLarge: ({ event }) => event.type === "FILE_PICKED" && event.file.size >
|
|
144
|
+
isSelectedFileTooLarge: ({ event }) => event.type === "FILE_PICKED" && event.file.size > 5242880,
|
|
150
145
|
isSelectedFileMimeInvalid: ({ event }) => event.type === "FILE_PICKED" && !DIGITAL_UPLOAD_ALLOWED_MIME_TYPES.includes(event.file.type),
|
|
151
146
|
hasSelectedFile: ({ context }) => context.file !== null,
|
|
152
147
|
responseHasFailReason: ({ event }) => mapDigitalIdFailReason(getUploadResponseFromEvent$1(event)) !== null,
|
|
@@ -155,7 +150,7 @@ const _digitalUploadMachine = setup({
|
|
|
155
150
|
return isTerminalDigitalIdFailReason(getUploadResponseFromEvent$1(event));
|
|
156
151
|
},
|
|
157
152
|
isCurrentFailReasonTerminal: ({ context }) => {
|
|
158
|
-
const terminalReasons = new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
153
|
+
const terminalReasons = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
159
154
|
return context.failReason !== null && terminalReasons.has(context.failReason);
|
|
160
155
|
}
|
|
161
156
|
}
|
|
@@ -308,43 +303,6 @@ const _digitalUploadMachine = setup({
|
|
|
308
303
|
}
|
|
309
304
|
}
|
|
310
305
|
});
|
|
311
|
-
const digitalUploadMachine = _digitalUploadMachine;
|
|
312
|
-
|
|
313
|
-
//#endregion
|
|
314
|
-
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
315
|
-
const TERMINAL_REASONS = new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
316
|
-
function isHoldingState(value) {
|
|
317
|
-
if (value === "holding") return true;
|
|
318
|
-
if (typeof value !== "object" || value === null) return false;
|
|
319
|
-
const uploadingState = value.uploading;
|
|
320
|
-
if (uploadingState === "holding") return true;
|
|
321
|
-
if (typeof uploadingState === "object" && uploadingState !== null) return Object.prototype.hasOwnProperty.call(uploadingState, "holding");
|
|
322
|
-
return false;
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
* Maps a Digital ID Upload child-machine snapshot to the exact Figma
|
|
326
|
-
* "Tracked Events" screen name. Source: Upload Digital ID Figma file
|
|
327
|
-
* (`https://www.figma.com/design/wxFsHRvllern4VnjRqM4JO/Upload-Digital-ID---Latest-Design?node-id=25911-4095`).
|
|
328
|
-
*
|
|
329
|
-
* Family is `uploadDigitalid.*` — emitted cross-family under the parent
|
|
330
|
-
* `idCapture` module token. Returns Figma-verbatim strings which the
|
|
331
|
-
* adapter emits as-is on `event.screen` (e.g.
|
|
332
|
-
* `uploadDigitalid.<section>.<state>`). See
|
|
333
|
-
* `docs/patterns/INSTRUMENTATION.md`.
|
|
334
|
-
*/
|
|
335
|
-
function mapDigitalIdScreenName(value, failReason) {
|
|
336
|
-
if (value === "tutorial") return "uploadDigitalid.tutorial.default";
|
|
337
|
-
if (value === "selecting" || value === "reviewing") return "uploadDigitalid.review.default";
|
|
338
|
-
if (value === "uploading" || isHoldingState(value)) return "uploadDigitalid.analyzing.default";
|
|
339
|
-
if (value === "success") return "uploadDigitalid.success.default";
|
|
340
|
-
if (value === "fileTooLarge") return "uploadDigitalid.error.filetoolarge";
|
|
341
|
-
if (value === "error") {
|
|
342
|
-
if (failReason !== null && TERMINAL_REASONS.has(failReason)) return "uploadDigitalid.error.notaccepted";
|
|
343
|
-
return "uploadDigitalid.error.default";
|
|
344
|
-
}
|
|
345
|
-
return "uploadDigitalid.review.default";
|
|
346
|
-
}
|
|
347
|
-
|
|
348
306
|
//#endregion
|
|
349
307
|
//#region src/modules/id/manualUpload/manualUploadErrors.ts
|
|
350
308
|
/**
|
|
@@ -389,7 +347,6 @@ function mapFailReasonToErrorKey(response, expectedTab) {
|
|
|
389
347
|
if (response.readability === false) return MANUAL_UPLOAD_ERROR_KEYS.readabilityIssue;
|
|
390
348
|
return null;
|
|
391
349
|
}
|
|
392
|
-
|
|
393
350
|
//#endregion
|
|
394
351
|
//#region ../infra/src/media/imageFile.ts
|
|
395
352
|
const DEFAULT_IMAGE_MIME_TYPE = "image/jpeg";
|
|
@@ -444,19 +401,16 @@ const imageFileToDataUrl = async (file, options = {}) => {
|
|
|
444
401
|
return readFileAsDataUrl(file);
|
|
445
402
|
}
|
|
446
403
|
};
|
|
447
|
-
|
|
448
404
|
//#endregion
|
|
449
405
|
//#region src/modules/id/idCameraStream.ts
|
|
450
406
|
async function getIdCameraStream(deviceId) {
|
|
451
407
|
return getBackCameraStream(deviceId);
|
|
452
408
|
}
|
|
453
|
-
|
|
454
409
|
//#endregion
|
|
455
410
|
//#region src/modules/id/manualUpload/types.ts
|
|
456
411
|
const MANUAL_UPLOAD_MAX_RETRIES = 3;
|
|
457
412
|
const MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES = 5 * 1024 * 1024;
|
|
458
413
|
const MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS = 5e3;
|
|
459
|
-
|
|
460
414
|
//#endregion
|
|
461
415
|
//#region src/modules/id/types.ts
|
|
462
416
|
const ID_ERROR_CODES = {
|
|
@@ -476,7 +430,6 @@ const ID_ERROR_CODES = {
|
|
|
476
430
|
USER_CANCELLED: "USER_CANCELLED",
|
|
477
431
|
SERVER: "SERVER_ERROR"
|
|
478
432
|
};
|
|
479
|
-
|
|
480
433
|
//#endregion
|
|
481
434
|
//#region src/modules/id/idCaptureServices.ts
|
|
482
435
|
/**
|
|
@@ -501,7 +454,7 @@ function getUploadEndpoint(type, isSecondId) {
|
|
|
501
454
|
}
|
|
502
455
|
const SHARPNESS_THRESHOLD = 10;
|
|
503
456
|
const GLARE_THRESHOLD = 10;
|
|
504
|
-
const DEFAULT_ID_CAPTURE_THRESHOLDS
|
|
457
|
+
const DEFAULT_ID_CAPTURE_THRESHOLDS = {
|
|
505
458
|
blurThreshold: .2,
|
|
506
459
|
blurChangeThreshold: .2,
|
|
507
460
|
glareThreshold: .3,
|
|
@@ -525,7 +478,7 @@ async function initializeIdCapture(params) {
|
|
|
525
478
|
const provider = new IdCaptureProvider();
|
|
526
479
|
await provider.initialize({});
|
|
527
480
|
provider.setThresholds({
|
|
528
|
-
...DEFAULT_ID_CAPTURE_THRESHOLDS
|
|
481
|
+
...DEFAULT_ID_CAPTURE_THRESHOLDS,
|
|
529
482
|
...config.thresholds,
|
|
530
483
|
idDetectedTimeout: config.thresholds?.idDetectedTimeout ?? config.deviceIdleTimeout * 1e3,
|
|
531
484
|
autocaptureTimeout: config.thresholds?.autocaptureTimeout ?? config.autoCaptureTimeout * 1e3
|
|
@@ -680,7 +633,7 @@ function preloadIdRecordingProvider(config) {
|
|
|
680
633
|
preloadOpenViduProvider();
|
|
681
634
|
}
|
|
682
635
|
async function createOpenViduRecordingProvider() {
|
|
683
|
-
const { OpenViduRecordingProvider } = await import("./OpenViduRecordingProvider-
|
|
636
|
+
const { OpenViduRecordingProvider } = await import("./OpenViduRecordingProvider-Du98qevC.esm.js");
|
|
684
637
|
return new OpenViduRecordingProvider();
|
|
685
638
|
}
|
|
686
639
|
async function startRecordingSession(params) {
|
|
@@ -752,7 +705,6 @@ async function uploadManualIdFile(params) {
|
|
|
752
705
|
if (!res.ok) throw new Error(`POST ${endpoint} failed: ${res.status} ${res.statusText}`);
|
|
753
706
|
return res.data;
|
|
754
707
|
}
|
|
755
|
-
|
|
756
708
|
//#endregion
|
|
757
709
|
//#region src/modules/id/manualUpload/manualUploadServices.ts
|
|
758
710
|
const stripDataUrlPrefix = (dataUrl) => {
|
|
@@ -768,14 +720,14 @@ const getBase64PayloadByteLength = (payload) => {
|
|
|
768
720
|
};
|
|
769
721
|
const isBase64PayloadWithinSize = (payload, maxBytes) => getBase64PayloadByteLength(payload) <= maxBytes;
|
|
770
722
|
const fileToBase64Payload = async (file) => {
|
|
771
|
-
|
|
723
|
+
const dataUrl = await imageFileToDataUrl(file);
|
|
724
|
+
return stripDataUrlPrefix(dataUrl);
|
|
772
725
|
};
|
|
773
|
-
|
|
774
726
|
//#endregion
|
|
775
727
|
//#region src/modules/id/manualUpload/manualUploadStateMachine.ts
|
|
776
728
|
const uploadManualFileActor = fromPromise(async ({ input, signal }) => {
|
|
777
729
|
const base64Image = await fileToBase64Payload(input.file);
|
|
778
|
-
if (!isBase64PayloadWithinSize(base64Image,
|
|
730
|
+
if (!isBase64PayloadWithinSize(base64Image, 5242880)) return { type: "fileTooLarge" };
|
|
779
731
|
return {
|
|
780
732
|
type: "uploaded",
|
|
781
733
|
response: await uploadManualIdFile({
|
|
@@ -796,7 +748,7 @@ const getUploadResponseFromEvent = (event) => {
|
|
|
796
748
|
const output = getUploadOutputFromEvent(event);
|
|
797
749
|
return output?.type === "uploaded" ? output.response : void 0;
|
|
798
750
|
};
|
|
799
|
-
const
|
|
751
|
+
const manualUploadMachine = setup({
|
|
800
752
|
types: {
|
|
801
753
|
context: {},
|
|
802
754
|
events: {},
|
|
@@ -1102,70 +1054,6 @@ const _manualUploadMachine = setup({
|
|
|
1102
1054
|
}
|
|
1103
1055
|
}
|
|
1104
1056
|
});
|
|
1105
|
-
const manualUploadMachine = _manualUploadMachine;
|
|
1106
|
-
|
|
1107
|
-
//#endregion
|
|
1108
|
-
//#region src/modules/id/manualUpload/instrumentation.ts
|
|
1109
|
-
/**
|
|
1110
|
-
* Maps an ID Manual Upload child-machine snapshot to the exact Figma
|
|
1111
|
-
* "Tracked Events" screen name. Source: ID Manual Upload Figma file
|
|
1112
|
-
* (`https://www.figma.com/design/WCx6d4zXG5nu946mu0KZNO/ID-Manual-Upload---Latest-Design?node-id=2462-18986`).
|
|
1113
|
-
*
|
|
1114
|
-
* Family is `IDmanual.*` — emitted cross-family under the parent
|
|
1115
|
-
* `idCapture` module token (same precedent as `uploadDigitalid.*` from
|
|
1116
|
-
* the digital-upload sub-flow). Manual upload has no standalone manager
|
|
1117
|
-
* or module token of its own.
|
|
1118
|
-
*
|
|
1119
|
-
* The mapper returns Figma-verbatim strings (e.g.
|
|
1120
|
-
* `'IDmanual.upload.uploadedFrontandBack'`) which the adapter emits as-is
|
|
1121
|
-
* on `event.screen`. See `docs/patterns/INSTRUMENTATION.md`.
|
|
1122
|
-
*
|
|
1123
|
-
* In-scope Figma screens (driven from child SM state + context):
|
|
1124
|
-
*
|
|
1125
|
-
* - `IDmanual.upload.default` — selecting, ID tab, no front file yet
|
|
1126
|
-
* - `IDmanual.upload.uploadedFront` — selecting, ID tab, front uploaded,
|
|
1127
|
-
* back still needed
|
|
1128
|
-
* - `IDmanual.upload.uploadedFrontandBack` — selecting, ID tab, both
|
|
1129
|
-
* sides uploaded (or `onlyFront`/`skipBackFromServer` short-circuit)
|
|
1130
|
-
* - `IDmanual.upload.passport` — selecting, passport tab, no file
|
|
1131
|
-
* - `IDmanual.upload.uploadedPassport` — selecting, passport tab,
|
|
1132
|
-
* passport uploaded
|
|
1133
|
-
* - `IDmanual.error.document` — selecting, with a populated
|
|
1134
|
-
* `errorMessage`
|
|
1135
|
-
*
|
|
1136
|
-
* Figma screens intentionally NOT mapped here (parent-level surfaces or
|
|
1137
|
-
* shared with other families):
|
|
1138
|
-
*
|
|
1139
|
-
* - `IDmanual.documentchooser.default` / `IDmanual.howtoverify` —
|
|
1140
|
-
* the chooser and the "how to verify" tutorial are PARENT-LEVEL
|
|
1141
|
-
* `idCapture` surfaces (one shared React component, fired BEFORE the
|
|
1142
|
-
* user picks manual-vs-digital). The Upload Digital ID canvas
|
|
1143
|
-
* describes the same physical pixels under its own family name.
|
|
1144
|
-
* Decision (Option A, recorded in `.cursor/commands/sync-events.md`):
|
|
1145
|
-
* keep emitting the neutral parent names `idCapture.documentchooser`
|
|
1146
|
-
* and `idCapture.tutorial.{front,back,passport}` and treat the
|
|
1147
|
-
* per-canvas Figma names as design-side aliases. Per-flow attribution
|
|
1148
|
-
* would require a `selectedDocumentType`-aware override at the parent
|
|
1149
|
-
* dispatcher — explicitly NOT shipped here.
|
|
1150
|
-
* - `digitalID.success.default` — appears on the canvas for reference,
|
|
1151
|
-
* but the actual success surface is emitted by `mapDigitalIdScreenName`
|
|
1152
|
-
* as `uploadDigitalid.success.default`. Manual upload has no dedicated
|
|
1153
|
-
* success screen; `finished` returns control to the parent SM.
|
|
1154
|
-
*
|
|
1155
|
-
* Returns `undefined` for transient (`uploadingFront`/`uploadingBack`/
|
|
1156
|
-
* `uploadingPassport`/`checkRetries`) and terminal (`retriesExhausted`/
|
|
1157
|
-
* `exhausted`/`finished`) states — the parent dispatcher falls back to
|
|
1158
|
-
* its existing default (`idCapture.manualIdUpload`) for those beats.
|
|
1159
|
-
*/
|
|
1160
|
-
function mapIdManualUploadScreenName(value, context) {
|
|
1161
|
-
if (value !== "selecting" || context === void 0) return;
|
|
1162
|
-
if (context.errorMessage !== null) return "IDmanual.error.document";
|
|
1163
|
-
if (context.activeTab === "passport") return context.passportUploaded ? "IDmanual.upload.uploadedPassport" : "IDmanual.upload.passport";
|
|
1164
|
-
if (!context.frontUploaded) return "IDmanual.upload.default";
|
|
1165
|
-
if (context.backUploaded || context.skipBackFromServer || context.onlyFront) return "IDmanual.upload.uploadedFrontandBack";
|
|
1166
|
-
return "IDmanual.upload.uploadedFront";
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
1057
|
//#endregion
|
|
1170
1058
|
//#region src/modules/id/idCaptureGuards.ts
|
|
1171
1059
|
const hasShowTutorialGuard = ({ context }) => context.config.showTutorial;
|
|
@@ -1230,30 +1118,6 @@ const isManualIdUploadSelectedGuard = ({ event }) => event.type === "SELECT_DOCU
|
|
|
1230
1118
|
const isDigitalIdUploadSelectedGuard = ({ event }) => event.type === "SELECT_DOCUMENT" && event.documentType === "digitalIdUpload";
|
|
1231
1119
|
const isUploadExpiredGuard = ({ context }) => context.uploadResponse?.isDocumentExpired === true;
|
|
1232
1120
|
/**
|
|
1233
|
-
* Fixed cap on same-side expired retries, intentionally decoupled from the
|
|
1234
|
-
* dashboard-configurable `captureAttempts`.
|
|
1235
|
-
*
|
|
1236
|
-
* Business decision: the expired-ID retry policy is a fixed UX limit ("let the
|
|
1237
|
-
* user try a different ID a bounded number of times"), separate from the
|
|
1238
|
-
* generic capture-quality retry budget. The value `3` and this separation are
|
|
1239
|
-
* prescribed by the ENG-41643 spec — "[WEB] Document FE - Handle Expired ID
|
|
1240
|
-
* Errors on Front and Back ID Capture"
|
|
1241
|
-
* (https://app.notion.com/p/3264c3caef498080a44adf5ab62fcb77): *"Add
|
|
1242
|
-
* `MAX_EXPIRED_FIRST_SIDE_ATTEMPTS = 3` constant"* / *"Allow up to 3 attempts
|
|
1243
|
-
* when expired ID is detected on first side capture"*. SDK V1 implements it as
|
|
1244
|
-
* exactly this hardcoded constant (incode-welcome `Capture.tsx`), independent
|
|
1245
|
-
* of the configured capture-attempts; this restores that parity for ENG-46592
|
|
1246
|
-
* (https://app.notion.com/p/36b4c3caef4980f58f3ee3b1b4e234f2).
|
|
1247
|
-
*
|
|
1248
|
-
* NOTE: ENG-45666's acceptance text says the cap should follow "a specified
|
|
1249
|
-
* number of times if differently set on dashboard/SDK level". That wording
|
|
1250
|
-
* conflicts with the ENG-41643 spec + V1 for the *expired* path specifically;
|
|
1251
|
-
* V1 parity was chosen as source of truth here (see changeset
|
|
1252
|
-
* `eng-46592-r2-expired-id-v1-parity`). The configurable `captureAttempts`
|
|
1253
|
-
* still governs generic (non-expired) capture retries.
|
|
1254
|
-
*/
|
|
1255
|
-
const MAX_EXPIRED_FIRST_SIDE_ATTEMPTS = 3;
|
|
1256
|
-
/**
|
|
1257
1121
|
* True when *this* expired upload will exhaust the same-side expired budget.
|
|
1258
1122
|
* Compares the post-increment count, so the exhaustion branch can be picked in
|
|
1259
1123
|
* the same tick that runs `incrementExpiredAttempts`:
|
|
@@ -1261,7 +1125,7 @@ const MAX_EXPIRED_FIRST_SIDE_ATTEMPTS = 3;
|
|
|
1261
1125
|
* - attempt 2 → 1+1=2 (not exhausted)
|
|
1262
1126
|
* - attempt 3 → 2+1=3 (exhausted, force-back / finish)
|
|
1263
1127
|
*/
|
|
1264
|
-
const isExpiredAttemptsExhaustedGuard = ({ context }) => context.expiredAttempts + 1 >=
|
|
1128
|
+
const isExpiredAttemptsExhaustedGuard = ({ context }) => context.expiredAttempts + 1 >= 3;
|
|
1265
1129
|
const isNotPassportModeGuard = ({ context }) => context.currentMode !== "passport";
|
|
1266
1130
|
/**
|
|
1267
1131
|
* V1 parity for `shouldApplyAlwaysCaptureBackOverride` — force-redirects to
|
|
@@ -1316,7 +1180,6 @@ const isBackModeInMultiSideFlowGuard = ({ context }) => context.currentMode ===
|
|
|
1316
1180
|
* max-attempts/OCR cap (ENG-46592 / re-respects ENG-45666).
|
|
1317
1181
|
*/
|
|
1318
1182
|
const wasExpiredRedirectedGuard = ({ context }) => context.expiredRedirected === true;
|
|
1319
|
-
|
|
1320
1183
|
//#endregion
|
|
1321
1184
|
//#region src/modules/id/idCaptureHelpers.ts
|
|
1322
1185
|
/**
|
|
@@ -1357,7 +1220,6 @@ function getManualUploadTabs(config) {
|
|
|
1357
1220
|
showPassportTab
|
|
1358
1221
|
};
|
|
1359
1222
|
}
|
|
1360
|
-
|
|
1361
1223
|
//#endregion
|
|
1362
1224
|
//#region src/modules/id/idCaptureActors.ts
|
|
1363
1225
|
const checkPermissionActor = fromPromise(async () => {
|
|
@@ -1458,13 +1320,13 @@ const runDetectionActor = fromCallback(({ input, sendBack }) => {
|
|
|
1458
1320
|
fpsLimitEnabled: input.config.settings?.fpsLimitEnabled ?? false
|
|
1459
1321
|
});
|
|
1460
1322
|
const thresholds = {
|
|
1461
|
-
...DEFAULT_ID_CAPTURE_THRESHOLDS,
|
|
1323
|
+
...DEFAULT_ID_CAPTURE_THRESHOLDS$1,
|
|
1462
1324
|
...input.config.thresholds,
|
|
1463
1325
|
idDetectedTimeout: (input.config.deviceIdleTimeout ?? 10) * 1e3,
|
|
1464
1326
|
autocaptureTimeout: (input.config.autoCaptureTimeout ?? 5) * 1e3
|
|
1465
1327
|
};
|
|
1466
1328
|
provider.setThresholds(thresholds);
|
|
1467
|
-
const modelType = input.config.modelVersion ??
|
|
1329
|
+
const modelType = input.config.modelVersion ?? "v2";
|
|
1468
1330
|
provider.setModelType(modelType);
|
|
1469
1331
|
provider.setCallbacks({
|
|
1470
1332
|
onFarAway: () => {
|
|
@@ -1528,10 +1390,10 @@ const runDetectionActor = fromCallback(({ input, sendBack }) => {
|
|
|
1528
1390
|
qualityElements: {}
|
|
1529
1391
|
});
|
|
1530
1392
|
},
|
|
1531
|
-
onIdTypeChange: (idType
|
|
1393
|
+
onIdTypeChange: (idType) => {
|
|
1532
1394
|
sendBack({
|
|
1533
1395
|
type: "ID_TYPE_CHANGE",
|
|
1534
|
-
idType
|
|
1396
|
+
idType
|
|
1535
1397
|
});
|
|
1536
1398
|
},
|
|
1537
1399
|
onIdSideChange: (side) => {
|
|
@@ -1603,8 +1465,8 @@ const uploadIdImageActor = fromPromise(async ({ input, signal }) => {
|
|
|
1603
1465
|
const sessionToken = getToken();
|
|
1604
1466
|
const frameSource = input.type === "back" ? "BACK_ID" : "FRONT_ID";
|
|
1605
1467
|
await input.deepsightService.performVirtualCameraCheck(sessionToken, frameSource);
|
|
1606
|
-
const imageData
|
|
1607
|
-
if (imageData
|
|
1468
|
+
const imageData = input.canvas.getImageData();
|
|
1469
|
+
if (imageData) await input.deepsightService.analyzeFrame(imageData);
|
|
1608
1470
|
const analysisStatus = input.deepsightService.getAnalysisStatus();
|
|
1609
1471
|
const motionStatus = input.deepsightService.getMotionStatus();
|
|
1610
1472
|
if (input.type === "front") await addDeviceStats({
|
|
@@ -1660,7 +1522,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
|
|
|
1660
1522
|
});
|
|
1661
1523
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
1662
1524
|
if (!input.dependencies) return;
|
|
1663
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1525
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-CQWGVLP0.esm.js");
|
|
1664
1526
|
return loadDeepsightSession({
|
|
1665
1527
|
ds: input.ds,
|
|
1666
1528
|
storage: input.dependencies.storage,
|
|
@@ -1673,7 +1535,6 @@ const checkVirtualCameraActor = fromPromise(async ({ input }) => {
|
|
|
1673
1535
|
if (!videoTrack) return false;
|
|
1674
1536
|
return input.deepsightService.checkVirtualCamera(videoTrack);
|
|
1675
1537
|
});
|
|
1676
|
-
|
|
1677
1538
|
//#endregion
|
|
1678
1539
|
//#region src/modules/id/idCaptureActions.ts
|
|
1679
1540
|
function performStopMediaStream(context) {
|
|
@@ -1699,9 +1560,6 @@ function performResetForFrontCapture(context) {
|
|
|
1699
1560
|
function performResetDetection(context) {
|
|
1700
1561
|
context.resetDetection?.();
|
|
1701
1562
|
}
|
|
1702
|
-
function performTrackTutorialId() {}
|
|
1703
|
-
function performTrackContinue() {}
|
|
1704
|
-
function performTrackCameraId(context) {}
|
|
1705
1563
|
function performStopMediaRecording(context) {
|
|
1706
1564
|
if (context.recordingSession) stopRecording(context.recordingSession);
|
|
1707
1565
|
}
|
|
@@ -1916,7 +1774,6 @@ function getCurrentModeFromEvent(context, event) {
|
|
|
1916
1774
|
if (event.type === "FRONT_COMPLETE") return "back";
|
|
1917
1775
|
return context.currentMode;
|
|
1918
1776
|
}
|
|
1919
|
-
|
|
1920
1777
|
//#endregion
|
|
1921
1778
|
//#region src/modules/id/idCaptureStateMachine.ts
|
|
1922
1779
|
/**
|
|
@@ -1930,7 +1787,7 @@ function getIdErrorCodeFromUnknown(error) {
|
|
|
1930
1787
|
return Object.values(ID_ERROR_CODES).find((value) => message.includes(value));
|
|
1931
1788
|
}
|
|
1932
1789
|
}
|
|
1933
|
-
const
|
|
1790
|
+
const idCaptureMachine = setup({
|
|
1934
1791
|
types: {
|
|
1935
1792
|
context: {},
|
|
1936
1793
|
events: {},
|
|
@@ -2040,15 +1897,9 @@ const _idCaptureMachine = setup({
|
|
|
2040
1897
|
captureResolution: ({ event }) => getCaptureResolutionFromEvent(event),
|
|
2041
1898
|
cameraFallbackLevel: ({ event }) => getCameraFallbackLevelFromEvent(event)
|
|
2042
1899
|
}),
|
|
2043
|
-
trackTutorialId: () => {
|
|
2044
|
-
|
|
2045
|
-
},
|
|
2046
|
-
trackContinue: () => {
|
|
2047
|
-
/* @__PURE__ */ performTrackContinue();
|
|
2048
|
-
},
|
|
2049
|
-
trackCameraId: ({ context }) => {
|
|
2050
|
-
/* @__PURE__ */ performTrackCameraId(context);
|
|
2051
|
-
},
|
|
1900
|
+
trackTutorialId: () => {},
|
|
1901
|
+
trackContinue: () => {},
|
|
1902
|
+
trackCameraId: ({ context }) => {},
|
|
2052
1903
|
preloadRecordingProvider: ({ context }) => {
|
|
2053
1904
|
preloadIdRecordingProvider(context.config);
|
|
2054
1905
|
},
|
|
@@ -2106,6 +1957,18 @@ const _idCaptureMachine = setup({
|
|
|
2106
1957
|
if ("detectionArea" in event) return event.detectionArea;
|
|
2107
1958
|
} }),
|
|
2108
1959
|
incrementExpiredAttempts: assign(({ context }) => ({ expiredAttempts: context.expiredAttempts + 1 })),
|
|
1960
|
+
/**
|
|
1961
|
+
* Mirrors the child's successful upload response onto parent context so
|
|
1962
|
+
* the manager mapper (and the workflow orchestrator) can read fields
|
|
1963
|
+
* like `skipBackIdCapture` and `typeOfId`. Also marks the session as a
|
|
1964
|
+
* digital upload so back capture is suppressed regardless of
|
|
1965
|
+
* `alwaysCaptureBackOfId` (digital IDs are single-side, like passports).
|
|
1966
|
+
*
|
|
1967
|
+
* The child machine's `output` is intentionally narrow (`{ result }`);
|
|
1968
|
+
* to avoid breaking the established invoke→onDone contract, we read the
|
|
1969
|
+
* upload response from the child snapshot's context instead of widening
|
|
1970
|
+
* the output shape.
|
|
1971
|
+
*/
|
|
2109
1972
|
storeDigitalUploadResponse: assign(({ self }) => {
|
|
2110
1973
|
const response = ((self.getSnapshot().children?.["digitalIdUpload"]?.getSnapshot())?.context)?.response;
|
|
2111
1974
|
if (!response) return { isDigitalUpload: true };
|
|
@@ -3092,7 +2955,5 @@ const _idCaptureMachine = setup({
|
|
|
3092
2955
|
}
|
|
3093
2956
|
}
|
|
3094
2957
|
});
|
|
3095
|
-
const idCaptureMachine = _idCaptureMachine;
|
|
3096
|
-
|
|
3097
2958
|
//#endregion
|
|
3098
|
-
export {
|
|
2959
|
+
export { processId as a, stopStream as c, validateUploadResponse as d, ID_ERROR_CODES as f, MANUAL_UPLOAD_MAX_RETRIES as h, preloadIdRecordingProvider as i, uploadIdImage as l, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES as m, getManualUploadTabs as n, startRecordingSession as o, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS as p, initializeIdCapture as r, stopRecording as s, idCaptureMachine as t, uploadManualIdFile as u };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { n as eventModuleNames,
|
|
2
|
-
import {
|
|
3
|
-
import { t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
4
|
-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
2
|
+
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-CpZZL411.esm.js";
|
|
5
4
|
//#region src/modules/id-ocr/idOcrActor.ts
|
|
6
5
|
function createIdOcrActor(options) {
|
|
7
6
|
return createActor(idOcrStateMachine, { input: { config: options.config } }).start();
|
|
8
7
|
}
|
|
9
|
-
|
|
10
8
|
//#endregion
|
|
11
9
|
//#region src/modules/id-ocr/idOcrManager.ts
|
|
12
10
|
function mapState(snapshot) {
|
|
@@ -86,6 +84,5 @@ function createIdOcrManagerFromActor(actor) {
|
|
|
86
84
|
instrumentation: createManagerInstrumentation(eventModuleNames.idOcr)
|
|
87
85
|
});
|
|
88
86
|
}
|
|
89
|
-
|
|
90
87
|
//#endregion
|
|
91
|
-
export { createIdOcrManagerFromActor as n, createIdOcrManager as t };
|
|
88
|
+
export { createIdOcrManagerFromActor as n, createIdOcrManager as t };
|