@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
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
2
|
+
//#region ../infra/src/media/canvas.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Class representing a canvas element for image capture and manipulation.
|
|
5
|
+
*/
|
|
6
|
+
declare class IncodeCanvas {
|
|
7
|
+
canvas: HTMLCanvasElement;
|
|
8
|
+
private base64Image;
|
|
9
|
+
private blobData;
|
|
10
|
+
/**
|
|
11
|
+
* Creates an {@link IncodeCanvas} from a raw {@link ImageData} frame.
|
|
12
|
+
* @param imageData - Frame pixels in RGBA format
|
|
13
|
+
* @returns An {@link IncodeCanvas} containing the provided pixels
|
|
14
|
+
*/
|
|
15
|
+
static fromImageData(imageData: ImageData): IncodeCanvas;
|
|
16
|
+
/**
|
|
17
|
+
* Create a new canvas element.
|
|
18
|
+
* @param canvas_ - The canvas element to clone.
|
|
19
|
+
*/
|
|
20
|
+
constructor(canvas_: HTMLCanvasElement);
|
|
21
|
+
/**
|
|
22
|
+
* Check if the current canvas is valid.
|
|
23
|
+
*/
|
|
24
|
+
private checkCanvas;
|
|
25
|
+
/**
|
|
26
|
+
* Disposes of resources, including revoking object URLs to prevent memory leaks.
|
|
27
|
+
*/
|
|
28
|
+
dispose(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Release the data stored by IncodeCanvas.
|
|
31
|
+
*/
|
|
32
|
+
release(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Revokes the object URL if one exists, preventing memory leaks.
|
|
35
|
+
* Use this when you no longer need the preview image URL.
|
|
36
|
+
*/
|
|
37
|
+
revokeObjectURL(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Get the width of the canvas.
|
|
40
|
+
*/
|
|
41
|
+
width(): number | null;
|
|
42
|
+
/**
|
|
43
|
+
* Get the height of the canvas.
|
|
44
|
+
*/
|
|
45
|
+
height(): number | null;
|
|
46
|
+
/**
|
|
47
|
+
* Set the width of the canvas.
|
|
48
|
+
*/
|
|
49
|
+
setWidth(width: number): void;
|
|
50
|
+
/**
|
|
51
|
+
* Set the height of the canvas.
|
|
52
|
+
*/
|
|
53
|
+
setHeight(height: number): void;
|
|
54
|
+
/**
|
|
55
|
+
* Clone the current canvas.
|
|
56
|
+
*/
|
|
57
|
+
clone(): IncodeCanvas | null;
|
|
58
|
+
/**
|
|
59
|
+
* Deep clone the current IncodeCanvas including blob data.
|
|
60
|
+
*/
|
|
61
|
+
deepClone(): Promise<IncodeCanvas | null>;
|
|
62
|
+
/**
|
|
63
|
+
* Returns the drawing context on the canvas.
|
|
64
|
+
*/
|
|
65
|
+
getContext(contextId: '2d', contextAttributes?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
|
|
66
|
+
/**
|
|
67
|
+
* Retrieves the image data from the canvas.
|
|
68
|
+
*/
|
|
69
|
+
getImageData(): ImageData | null;
|
|
70
|
+
/**
|
|
71
|
+
* Updates the base64 representation of the current canvas image.
|
|
72
|
+
*/
|
|
73
|
+
updateBase64Image(jpegQuality?: number): void;
|
|
74
|
+
/**
|
|
75
|
+
* Converts the current canvas element to a base64 string.
|
|
76
|
+
*/
|
|
77
|
+
getBase64Image(jpegQuality?: number, includeDataURLPrefix?: boolean): string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Sets the base64 representation of the current canvas image.
|
|
80
|
+
*/
|
|
81
|
+
setBase64Image(base64Image: string | null): void;
|
|
82
|
+
/**
|
|
83
|
+
* Updates the Blob representation of the current canvas image.
|
|
84
|
+
*/
|
|
85
|
+
updateBlob(jpegQuality?: number, includeDataURLPrefix?: boolean): void;
|
|
86
|
+
/**
|
|
87
|
+
* Converts a base64 string to a Blob and creates a URL for it.
|
|
88
|
+
*/
|
|
89
|
+
static base64ToBlob(base64: string): {
|
|
90
|
+
blob: Blob;
|
|
91
|
+
url: string;
|
|
92
|
+
} | null;
|
|
93
|
+
/**
|
|
94
|
+
* Retrieves the Blob data and its URL from the current canvas.
|
|
95
|
+
*/
|
|
96
|
+
getBlobData(jpegQuality?: number, includeDataURLPrefix?: boolean): {
|
|
97
|
+
blob: Blob;
|
|
98
|
+
url: string;
|
|
99
|
+
} | null;
|
|
100
|
+
/**
|
|
101
|
+
* Sets the Blob data of the current canvas image.
|
|
102
|
+
*/
|
|
103
|
+
setBlobData(blobData: {
|
|
104
|
+
blob: Blob;
|
|
105
|
+
url: string;
|
|
106
|
+
}): Promise<void>;
|
|
107
|
+
/**
|
|
108
|
+
* Returns a resized canvas according to video element size.
|
|
109
|
+
*/
|
|
110
|
+
getResizedCanvas(videoElementWidth: number, videoElementHeight: number): IncodeCanvas | null;
|
|
111
|
+
}
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region ../infra/src/media/StreamCanvasCapture.d.ts
|
|
114
|
+
type StreamCanvasCaptureOptions = {
|
|
115
|
+
fps?: number;
|
|
116
|
+
width?: number;
|
|
117
|
+
height?: number;
|
|
118
|
+
};
|
|
119
|
+
type StreamCanvasCaptureEventMap = {
|
|
120
|
+
frame: Event;
|
|
121
|
+
};
|
|
122
|
+
declare class StreamCanvasCapture {
|
|
123
|
+
private video;
|
|
124
|
+
private canvas;
|
|
125
|
+
private ctx;
|
|
126
|
+
private rafId;
|
|
127
|
+
private lastFrameTimeSeconds;
|
|
128
|
+
private lastTickTimeMs;
|
|
129
|
+
private hasFrame;
|
|
130
|
+
private disposed;
|
|
131
|
+
private eventTarget;
|
|
132
|
+
constructor(stream: CameraStream, options?: StreamCanvasCaptureOptions);
|
|
133
|
+
addEventListener(type: keyof StreamCanvasCaptureEventMap, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
|
|
134
|
+
removeEventListener(type: keyof StreamCanvasCaptureEventMap, listener: EventListenerOrEventListenerObject | null, options?: boolean | EventListenerOptions): void;
|
|
135
|
+
/**
|
|
136
|
+
* Returns the latest cached frame as an {@link IncodeCanvas}.
|
|
137
|
+
*/
|
|
138
|
+
getLatestCanvas(): IncodeCanvas | null;
|
|
139
|
+
/**
|
|
140
|
+
* Returns the latest cached frame as raw {@link ImageData}.
|
|
141
|
+
*/
|
|
142
|
+
getLatestFrame(): ImageData | null;
|
|
143
|
+
/**
|
|
144
|
+
* Disposes internal resources and stops the capture loop.
|
|
145
|
+
*/
|
|
146
|
+
dispose(): void;
|
|
147
|
+
private rafLoop;
|
|
148
|
+
private tick;
|
|
149
|
+
}
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region ../infra/src/capabilities/IMotionSensorCapability.d.ts
|
|
152
|
+
type MotionStatus = 'PASS' | 'FAIL' | 'UNCLEAR';
|
|
153
|
+
type MotionPermissionState = 'granted' | 'denied' | 'not-required';
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region src/internal/deepsight/metadataService.d.ts
|
|
156
|
+
type MetadataService = {
|
|
157
|
+
initialize(sdkVersion: string, disableIpify?: boolean, disableFingerprint?: boolean): Promise<void>;
|
|
158
|
+
updateCameraInfo(videoTrack: MediaStreamTrack): void;
|
|
159
|
+
checkForVirtualCameraByLabel(videoTrack: MediaStreamTrack | null): Promise<boolean>;
|
|
160
|
+
analyzeFrame(imageData: ImageData): Promise<void>;
|
|
161
|
+
setMotionStatus(status: string): void;
|
|
162
|
+
setBackgroundMode(backgroundMode: boolean): void;
|
|
163
|
+
estimatePerformance(): string;
|
|
164
|
+
getMetadata(): string;
|
|
165
|
+
getCheck(): string;
|
|
166
|
+
getPipelineState(): string;
|
|
167
|
+
/**
|
|
168
|
+
* Prepares pipeline state for metadata collection.
|
|
169
|
+
* Must be called before setMotionStatus, getCheck, setBackgroundMode, and getMetadata.
|
|
170
|
+
*/
|
|
171
|
+
preparePipelineState(): void;
|
|
172
|
+
};
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region src/internal/deepsight/motionStatusService.d.ts
|
|
175
|
+
type MotionStatusService = {
|
|
176
|
+
requestPermission(): Promise<MotionPermissionState>;
|
|
177
|
+
start(): Promise<void>;
|
|
178
|
+
stop(): void;
|
|
179
|
+
check(): MotionStatus;
|
|
180
|
+
readonly isRunning: boolean;
|
|
181
|
+
readonly hasPermission: boolean;
|
|
182
|
+
};
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/internal/virtualCameraCheck.d.ts
|
|
185
|
+
declare const frameSources: {
|
|
186
|
+
readonly front: "FRONT_ID";
|
|
187
|
+
readonly back: "BACK_ID";
|
|
188
|
+
readonly selfie: "SELFIE";
|
|
189
|
+
};
|
|
190
|
+
type FrameSource = (typeof frameSources)[keyof typeof frameSources];
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region src/internal/deepsight/deepsightService.d.ts
|
|
193
|
+
type DeepsightService = {
|
|
194
|
+
readonly metadata: MetadataService;
|
|
195
|
+
readonly motion: MotionStatusService;
|
|
196
|
+
initialize(disableIpify?: boolean, disableFingerprint?: boolean): Promise<void>;
|
|
197
|
+
requestMotionPermission(): Promise<'granted' | 'denied' | 'not-required'>;
|
|
198
|
+
startMotionSensors(): Promise<void>;
|
|
199
|
+
primeWasmMotionSensor(): Promise<void>;
|
|
200
|
+
stopMotionSensors(): void;
|
|
201
|
+
checkVirtualCamera(videoTrack: MediaStreamTrack): Promise<boolean>;
|
|
202
|
+
performVirtualCameraCheck(sessionToken: string | null, source: FrameSource): Promise<void>;
|
|
203
|
+
/**
|
|
204
|
+
* Runs PRC warmup and stores DS flag using infrastructure providers.
|
|
205
|
+
*/
|
|
206
|
+
performPrcCheck(params: DeepsightPrcCheckParams): Promise<void>;
|
|
207
|
+
analyzeFrame(imageData: ImageData): Promise<void>;
|
|
208
|
+
getMetadata(): string;
|
|
209
|
+
getMotionStatus(): string;
|
|
210
|
+
getAnalysisStatus(): string;
|
|
211
|
+
getPipelineState(): string;
|
|
212
|
+
cleanup(): void;
|
|
213
|
+
};
|
|
214
|
+
type DeepsightPrcCheckParams = {
|
|
215
|
+
constraints: MediaStreamConstraints;
|
|
216
|
+
};
|
|
217
|
+
//#endregion
|
|
218
|
+
export { StreamCanvasCapture as n, IncodeCanvas as r, DeepsightService as t };
|
package/dist/device.d.ts
CHANGED
package/dist/device.esm.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as getDeviceInfo } from "./getDeviceClass-
|
|
4
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
5
|
-
|
|
1
|
+
import { i as isIPad } from "./platform-wmV7oTAJ.esm.js";
|
|
2
|
+
import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
|
|
3
|
+
import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
4
|
+
import { t as getDeviceClass } from "./getDeviceClass-CkgnSJel.esm.js";
|
|
6
5
|
//#region src/internal/device/getBrowser.ts
|
|
7
6
|
function getBrowser() {
|
|
8
7
|
const userAgent = getUserAgent();
|
|
@@ -16,7 +15,6 @@ function getBrowser() {
|
|
|
16
15
|
if (ua.includes("safari")) return "safari";
|
|
17
16
|
return "other";
|
|
18
17
|
}
|
|
19
|
-
|
|
20
18
|
//#endregion
|
|
21
19
|
//#region src/internal/device/redirectDeviceClassification.ts
|
|
22
20
|
/**
|
|
@@ -34,7 +32,6 @@ function isDesktopOrEmulated() {
|
|
|
34
32
|
const deviceClass = getDeviceClass();
|
|
35
33
|
return deviceClass === "desktop" || isDesktopDeviceEmulation(deviceClass);
|
|
36
34
|
}
|
|
37
|
-
|
|
38
35
|
//#endregion
|
|
39
36
|
//#region src/internal/device/screenOrientation.ts
|
|
40
37
|
function createScreenOrientationObserver(provider, deviceClass) {
|
|
@@ -51,7 +48,6 @@ function createScreenOrientationObserver(provider, deviceClass) {
|
|
|
51
48
|
cleanup: () => provider.cleanup()
|
|
52
49
|
};
|
|
53
50
|
}
|
|
54
|
-
|
|
55
51
|
//#endregion
|
|
56
52
|
//#region ../infra/src/providers/browser/ScreenOrientationProvider.ts
|
|
57
53
|
function isPortrait() {
|
|
@@ -120,6 +116,5 @@ var ScreenOrientationProvider = class {
|
|
|
120
116
|
}
|
|
121
117
|
}
|
|
122
118
|
};
|
|
123
|
-
|
|
124
119
|
//#endregion
|
|
125
|
-
export { ScreenOrientationProvider, createScreenOrientationObserver, getBrowser, getDeviceClass, isDesktopDeviceEmulation, isDesktopOrEmulated, isIPad };
|
|
120
|
+
export { ScreenOrientationProvider, createScreenOrientationObserver, getBrowser, getDeviceClass, isDesktopDeviceEmulation, isDesktopOrEmulated, isIPad };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./Manager-DE5DydXZ.js";
|
|
3
|
-
import "./Actor-CdjYVucI.js";
|
|
4
|
-
import "./camera-DRH7co71.js";
|
|
5
|
-
import "./types-DawqnFVn.js";
|
|
6
|
-
import { a as DocumentCaptureActor, c as DocumentCaptureConfig, d as DocumentType, i as createDocumentCaptureManagerFromActor, l as DocumentCaptureErrorCode, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, s as DOCUMENT_CAPTURE_ERROR_CODES, t as DocumentCaptureManager, u as DocumentCaptureNextPageType } from "./documentCaptureManager-HNu28khr.js";
|
|
1
|
+
import { a as DocumentCaptureActor, c as DocumentCaptureConfig, d as DocumentType, i as createDocumentCaptureManagerFromActor, l as DocumentCaptureErrorCode, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, s as DOCUMENT_CAPTURE_ERROR_CODES, t as DocumentCaptureManager, u as DocumentCaptureNextPageType } from "./documentCaptureManager-Biz_PFqs.js";
|
|
7
2
|
export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
|
|
4
|
-
import "./endpoints-CwrFQfW7.esm.js";
|
|
5
|
-
import "./platform-BoeUeUrV.esm.js";
|
|
6
|
-
import "./xstate.esm-nY3M5UYm.esm.js";
|
|
7
|
-
import "./MotionSensorProvider-BkHKMCPE.esm.js";
|
|
8
|
-
import "./permissionServices-B7lD6fiG.esm.js";
|
|
9
|
-
import "./camera-B0yWS33x.esm.js";
|
|
10
|
-
import "./ITimerCapability-G7lQg-be.esm.js";
|
|
11
|
-
import "./backCameraStream-DYnfq7Hr.esm.js";
|
|
12
|
-
import "./permissionGuards-CayfS8OY.esm.js";
|
|
13
|
-
import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-CaJgb_Vn.esm.js";
|
|
14
|
-
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-pufyUaQz.esm.js";
|
|
15
|
-
|
|
16
|
-
export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
1
|
+
import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-qgsrlcVh.esm.js";
|
|
2
|
+
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-DijbJFun.esm.js";
|
|
3
|
+
export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-
|
|
6
|
-
import * as xstate223 from "xstate";
|
|
7
|
-
|
|
1
|
+
import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } 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 { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-Vb4P9ovf.js";
|
|
8
6
|
//#region src/modules/document-upload/documentUploadStateMachine.d.ts
|
|
9
|
-
declare const documentUploadMachine:
|
|
7
|
+
declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
|
|
10
8
|
type: "START";
|
|
11
9
|
} | {
|
|
12
10
|
type: "CAPTURE";
|
|
@@ -19,121 +17,119 @@ declare const documentUploadMachine: xstate223.StateMachine<DocumentUploadContex
|
|
|
19
17
|
} | {
|
|
20
18
|
type: "CLOSE";
|
|
21
19
|
}, {
|
|
22
|
-
[x: string]:
|
|
20
|
+
[x: string]: ActorRefFromLogic<PromiseActorLogic<void, {
|
|
23
21
|
imageBase64: string;
|
|
24
22
|
documentType: string;
|
|
25
23
|
onProgress: (progress: number) => void;
|
|
26
|
-
},
|
|
27
|
-
},
|
|
24
|
+
}, EventObject>> | ActorRefFromLogic<PromiseActorLogic<MediaStream, void, EventObject>> | undefined;
|
|
25
|
+
}, Values<{
|
|
28
26
|
uploadDocument: {
|
|
29
27
|
src: "uploadDocument";
|
|
30
|
-
logic:
|
|
28
|
+
logic: PromiseActorLogic<void, {
|
|
31
29
|
imageBase64: string;
|
|
32
30
|
documentType: string;
|
|
33
31
|
onProgress: (progress: number) => void;
|
|
34
|
-
},
|
|
32
|
+
}, EventObject>;
|
|
35
33
|
id: string | undefined;
|
|
36
34
|
};
|
|
37
35
|
initCamera: {
|
|
38
36
|
src: "initCamera";
|
|
39
|
-
logic:
|
|
37
|
+
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
40
38
|
id: string | undefined;
|
|
41
39
|
};
|
|
42
|
-
}>,
|
|
40
|
+
}>, Values<{
|
|
43
41
|
setError: {
|
|
44
42
|
type: "setError";
|
|
45
|
-
params:
|
|
43
|
+
params: NonReducibleUnknown;
|
|
46
44
|
};
|
|
47
45
|
setStream: {
|
|
48
46
|
type: "setStream";
|
|
49
|
-
params:
|
|
47
|
+
params: NonReducibleUnknown;
|
|
50
48
|
};
|
|
51
49
|
setImageAndClearError: {
|
|
52
50
|
type: "setImageAndClearError";
|
|
53
|
-
params:
|
|
51
|
+
params: NonReducibleUnknown;
|
|
54
52
|
};
|
|
55
53
|
setProgress: {
|
|
56
54
|
type: "setProgress";
|
|
57
|
-
params:
|
|
55
|
+
params: NonReducibleUnknown;
|
|
58
56
|
};
|
|
59
57
|
clearError: {
|
|
60
58
|
type: "clearError";
|
|
61
|
-
params:
|
|
59
|
+
params: NonReducibleUnknown;
|
|
62
60
|
};
|
|
63
61
|
stopStream: {
|
|
64
62
|
type: "stopStream";
|
|
65
|
-
params:
|
|
63
|
+
params: NonReducibleUnknown;
|
|
66
64
|
};
|
|
67
|
-
}>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput,
|
|
65
|
+
}>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
68
66
|
readonly id: "documentUpload";
|
|
69
67
|
readonly initial: "idle";
|
|
70
|
-
readonly context: ({
|
|
71
|
-
input
|
|
72
|
-
}: {
|
|
68
|
+
readonly context: ({ input }: {
|
|
73
69
|
spawn: {
|
|
74
70
|
<TSrc extends "uploadDocument" | "initCamera">(logic: TSrc, ...[options]: ({
|
|
75
71
|
src: "uploadDocument";
|
|
76
|
-
logic:
|
|
72
|
+
logic: PromiseActorLogic<void, {
|
|
77
73
|
imageBase64: string;
|
|
78
74
|
documentType: string;
|
|
79
75
|
onProgress: (progress: number) => void;
|
|
80
|
-
},
|
|
76
|
+
}, EventObject>;
|
|
81
77
|
id: string | undefined;
|
|
82
|
-
} extends infer T ? T extends {
|
|
78
|
+
} extends (infer T) ? T extends {
|
|
83
79
|
src: "uploadDocument";
|
|
84
|
-
logic:
|
|
80
|
+
logic: PromiseActorLogic<void, {
|
|
85
81
|
imageBase64: string;
|
|
86
82
|
documentType: string;
|
|
87
83
|
onProgress: (progress: number) => void;
|
|
88
|
-
},
|
|
84
|
+
}, EventObject>;
|
|
89
85
|
id: string | undefined;
|
|
90
86
|
} ? T extends {
|
|
91
87
|
src: TSrc;
|
|
92
|
-
} ?
|
|
88
|
+
} ? ConditionalRequired<[options?: ({
|
|
93
89
|
id?: T["id"] | undefined;
|
|
94
90
|
systemId?: string;
|
|
95
|
-
input?:
|
|
91
|
+
input?: InputFrom<T["logic"]> | undefined;
|
|
96
92
|
syncSnapshot?: boolean;
|
|
97
|
-
} & { [K in
|
|
93
|
+
} & { [K in RequiredActorOptions<T>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T>>> : never : never : never) | ({
|
|
98
94
|
src: "initCamera";
|
|
99
|
-
logic:
|
|
95
|
+
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
100
96
|
id: string | undefined;
|
|
101
|
-
} extends infer T_1 ? T_1 extends {
|
|
97
|
+
} extends (infer T_1) ? T_1 extends {
|
|
102
98
|
src: "initCamera";
|
|
103
|
-
logic:
|
|
99
|
+
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
104
100
|
id: string | undefined;
|
|
105
101
|
} ? T_1 extends {
|
|
106
102
|
src: TSrc;
|
|
107
|
-
} ?
|
|
103
|
+
} ? ConditionalRequired<[options?: ({
|
|
108
104
|
id?: T_1["id"] | undefined;
|
|
109
105
|
systemId?: string;
|
|
110
|
-
input?:
|
|
106
|
+
input?: InputFrom<T_1["logic"]> | undefined;
|
|
111
107
|
syncSnapshot?: boolean;
|
|
112
|
-
} & { [K_1 in
|
|
108
|
+
} & { [K_1 in RequiredActorOptions<T_1>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T_1>>> : never : never : never)): ActorRefFromLogic<GetConcreteByKey<Values<{
|
|
113
109
|
uploadDocument: {
|
|
114
110
|
src: "uploadDocument";
|
|
115
|
-
logic:
|
|
111
|
+
logic: PromiseActorLogic<void, {
|
|
116
112
|
imageBase64: string;
|
|
117
113
|
documentType: string;
|
|
118
114
|
onProgress: (progress: number) => void;
|
|
119
|
-
},
|
|
115
|
+
}, EventObject>;
|
|
120
116
|
id: string | undefined;
|
|
121
117
|
};
|
|
122
118
|
initCamera: {
|
|
123
119
|
src: "initCamera";
|
|
124
|
-
logic:
|
|
120
|
+
logic: PromiseActorLogic<MediaStream, void, EventObject>;
|
|
125
121
|
id: string | undefined;
|
|
126
122
|
};
|
|
127
123
|
}>, "src", TSrc>["logic"]>;
|
|
128
|
-
<TLogic extends
|
|
124
|
+
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: ({
|
|
129
125
|
id?: never;
|
|
130
126
|
systemId?: string;
|
|
131
|
-
input?:
|
|
127
|
+
input?: InputFrom<TLogic> | undefined;
|
|
132
128
|
syncSnapshot?: boolean;
|
|
133
|
-
} & { [K in
|
|
129
|
+
} & { [K in RequiredLogicInput<TLogic>]: unknown; }) | undefined], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
134
130
|
};
|
|
135
131
|
input: DocumentUploadInput;
|
|
136
|
-
self:
|
|
132
|
+
self: ActorRef<MachineSnapshot<DocumentUploadContext, {
|
|
137
133
|
type: "START";
|
|
138
134
|
} | {
|
|
139
135
|
type: "CAPTURE";
|
|
@@ -145,7 +141,7 @@ declare const documentUploadMachine: xstate223.StateMachine<DocumentUploadContex
|
|
|
145
141
|
type: "RETRY";
|
|
146
142
|
} | {
|
|
147
143
|
type: "CLOSE";
|
|
148
|
-
}, Record<string,
|
|
144
|
+
}, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, {
|
|
149
145
|
type: "START";
|
|
150
146
|
} | {
|
|
151
147
|
type: "CAPTURE";
|
|
@@ -157,7 +153,7 @@ declare const documentUploadMachine: xstate223.StateMachine<DocumentUploadContex
|
|
|
157
153
|
type: "RETRY";
|
|
158
154
|
} | {
|
|
159
155
|
type: "CLOSE";
|
|
160
|
-
},
|
|
156
|
+
}, AnyEventObject>;
|
|
161
157
|
}) => {
|
|
162
158
|
config: DocumentUploadConfig;
|
|
163
159
|
stream: undefined;
|
|
@@ -209,10 +205,7 @@ declare const documentUploadMachine: xstate223.StateMachine<DocumentUploadContex
|
|
|
209
205
|
readonly invoke: {
|
|
210
206
|
readonly id: "uploadDocument";
|
|
211
207
|
readonly src: "uploadDocument";
|
|
212
|
-
readonly input: ({
|
|
213
|
-
context,
|
|
214
|
-
self
|
|
215
|
-
}: {
|
|
208
|
+
readonly input: ({ context, self }: {
|
|
216
209
|
context: DocumentUploadContext;
|
|
217
210
|
event: {
|
|
218
211
|
type: "START";
|
|
@@ -227,7 +220,7 @@ declare const documentUploadMachine: xstate223.StateMachine<DocumentUploadContex
|
|
|
227
220
|
} | {
|
|
228
221
|
type: "CLOSE";
|
|
229
222
|
};
|
|
230
|
-
self:
|
|
223
|
+
self: ActorRef<MachineSnapshot<DocumentUploadContext, {
|
|
231
224
|
type: "START";
|
|
232
225
|
} | {
|
|
233
226
|
type: "CAPTURE";
|
|
@@ -239,7 +232,7 @@ declare const documentUploadMachine: xstate223.StateMachine<DocumentUploadContex
|
|
|
239
232
|
type: "RETRY";
|
|
240
233
|
} | {
|
|
241
234
|
type: "CLOSE";
|
|
242
|
-
}, Record<string,
|
|
235
|
+
}, Record<string, AnyActorRef>, StateValue, string, unknown, any, any>, {
|
|
243
236
|
type: "START";
|
|
244
237
|
} | {
|
|
245
238
|
type: "CAPTURE";
|
|
@@ -251,7 +244,7 @@ declare const documentUploadMachine: xstate223.StateMachine<DocumentUploadContex
|
|
|
251
244
|
type: "RETRY";
|
|
252
245
|
} | {
|
|
253
246
|
type: "CLOSE";
|
|
254
|
-
},
|
|
247
|
+
}, AnyEventObject>;
|
|
255
248
|
}) => {
|
|
256
249
|
imageBase64: string;
|
|
257
250
|
documentType: string;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { n as eventModuleNames,
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
-
import "./
|
|
5
|
-
import {
|
|
6
|
-
import { a as stopCameraStream } from "./camera-
|
|
7
|
-
import "./
|
|
8
|
-
import { n as getBackCameraStream } from "./backCameraStream-DYnfq7Hr.esm.js";
|
|
9
|
-
|
|
1
|
+
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
4
|
+
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
|
+
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
|
+
import { a as stopCameraStream } from "./camera-BmFEyPP_.esm.js";
|
|
7
|
+
import { n as getBackCameraStream } from "./backCameraStream-Heg6vA1j.esm.js";
|
|
10
8
|
//#region src/modules/document-upload/documentUploadServices.ts
|
|
11
9
|
async function uploadDocument({ imageBase64, documentType, onProgress, signal }) {
|
|
12
10
|
const url = `${endpoints.addDocument}?type=${encodeURIComponent(documentType)}`;
|
|
@@ -16,7 +14,6 @@ async function uploadDocument({ imageBase64, documentType, onProgress, signal })
|
|
|
16
14
|
});
|
|
17
15
|
if (!response.ok) throw new Error(`Document upload failed: ${response.status} ${response.statusText}`);
|
|
18
16
|
}
|
|
19
|
-
|
|
20
17
|
//#endregion
|
|
21
18
|
//#region src/modules/document-upload/documentUploadStateMachine.ts
|
|
22
19
|
const documentUploadMachine = setup({
|
|
@@ -136,13 +133,11 @@ const documentUploadMachine = setup({
|
|
|
136
133
|
closed: { type: "final" }
|
|
137
134
|
}
|
|
138
135
|
});
|
|
139
|
-
|
|
140
136
|
//#endregion
|
|
141
137
|
//#region src/modules/document-upload/documentUploadActor.ts
|
|
142
138
|
function createDocumentUploadActor(options) {
|
|
143
139
|
return createActor(documentUploadMachine, { input: { config: options.config } }).start();
|
|
144
140
|
}
|
|
145
|
-
|
|
146
141
|
//#endregion
|
|
147
142
|
//#region src/modules/document-upload/documentUploadManager.ts
|
|
148
143
|
function mapState(snapshot) {
|
|
@@ -198,6 +193,5 @@ function createDocumentUploadManager(options) {
|
|
|
198
193
|
instrumentation: createManagerInstrumentation(eventModuleNames.documentUpload)
|
|
199
194
|
});
|
|
200
195
|
}
|
|
201
|
-
|
|
202
196
|
//#endregion
|
|
203
|
-
export { createDocumentUploadManager, documentUploadMachine };
|
|
197
|
+
export { createDocumentUploadManager, documentUploadMachine };
|