@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,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
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, i as ActorRefFrom, 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
5
|
//#region src/modules/id-ocr/types.d.ts
|
|
6
6
|
type IdOcrConfig = {
|
|
7
7
|
/** Allows user to edit OCR information @default false */
|
|
@@ -177,7 +177,7 @@ type IdOcrContext = {
|
|
|
177
177
|
type IdOcrInput = {
|
|
178
178
|
config: IdOcrConfig;
|
|
179
179
|
};
|
|
180
|
-
declare const idOcrStateMachine:
|
|
180
|
+
declare const idOcrStateMachine: StateMachine<IdOcrContext, {
|
|
181
181
|
type: "LOAD";
|
|
182
182
|
} | {
|
|
183
183
|
type: "DATA_CHANGED";
|
|
@@ -191,66 +191,66 @@ declare const idOcrStateMachine: xstate836.StateMachine<IdOcrContext, {
|
|
|
191
191
|
} | {
|
|
192
192
|
type: "RETRY";
|
|
193
193
|
}, {
|
|
194
|
-
[x: string]:
|
|
194
|
+
[x: string]: ActorRefFromLogic<PromiseActorLogic<OcrData, {
|
|
195
195
|
isSecondId: boolean;
|
|
196
|
-
},
|
|
196
|
+
}, EventObject>> | ActorRefFromLogic<PromiseActorLogic<UpdateOcrResponse, {
|
|
197
197
|
params: UpdateOcrDataParams;
|
|
198
198
|
isSecondId: boolean;
|
|
199
|
-
},
|
|
200
|
-
},
|
|
199
|
+
}, EventObject>> | undefined;
|
|
200
|
+
}, Values<{
|
|
201
201
|
getOcrData: {
|
|
202
202
|
src: "getOcrData";
|
|
203
|
-
logic:
|
|
203
|
+
logic: PromiseActorLogic<OcrData, {
|
|
204
204
|
isSecondId: boolean;
|
|
205
|
-
},
|
|
205
|
+
}, EventObject>;
|
|
206
206
|
id: string | undefined;
|
|
207
207
|
};
|
|
208
208
|
updateOcrData: {
|
|
209
209
|
src: "updateOcrData";
|
|
210
|
-
logic:
|
|
210
|
+
logic: PromiseActorLogic<UpdateOcrResponse, {
|
|
211
211
|
params: UpdateOcrDataParams;
|
|
212
212
|
isSecondId: boolean;
|
|
213
|
-
},
|
|
213
|
+
}, EventObject>;
|
|
214
214
|
id: string | undefined;
|
|
215
215
|
};
|
|
216
|
-
}>,
|
|
216
|
+
}>, Values<{
|
|
217
217
|
setError: {
|
|
218
218
|
type: "setError";
|
|
219
|
-
params:
|
|
219
|
+
params: NonReducibleUnknown;
|
|
220
220
|
};
|
|
221
221
|
setInitialData: {
|
|
222
222
|
type: "setInitialData";
|
|
223
|
-
params:
|
|
223
|
+
params: NonReducibleUnknown;
|
|
224
224
|
};
|
|
225
225
|
updateField: {
|
|
226
226
|
type: "updateField";
|
|
227
|
-
params:
|
|
227
|
+
params: NonReducibleUnknown;
|
|
228
228
|
};
|
|
229
229
|
clearFieldValidationError: {
|
|
230
230
|
type: "clearFieldValidationError";
|
|
231
|
-
params:
|
|
231
|
+
params: NonReducibleUnknown;
|
|
232
232
|
};
|
|
233
233
|
setOcrValidationErrors: {
|
|
234
234
|
type: "setOcrValidationErrors";
|
|
235
|
-
params:
|
|
235
|
+
params: NonReducibleUnknown;
|
|
236
236
|
};
|
|
237
237
|
validateFormField: {
|
|
238
238
|
type: "validateFormField";
|
|
239
|
-
params:
|
|
239
|
+
params: NonReducibleUnknown;
|
|
240
240
|
};
|
|
241
241
|
beginSecondIdOcrPhase: {
|
|
242
242
|
type: "beginSecondIdOcrPhase";
|
|
243
|
-
params:
|
|
243
|
+
params: NonReducibleUnknown;
|
|
244
244
|
};
|
|
245
245
|
resetForRetry: {
|
|
246
246
|
type: "resetForRetry";
|
|
247
|
-
params:
|
|
247
|
+
params: NonReducibleUnknown;
|
|
248
248
|
};
|
|
249
249
|
computeValidationResult: {
|
|
250
250
|
type: "computeValidationResult";
|
|
251
|
-
params:
|
|
251
|
+
params: NonReducibleUnknown;
|
|
252
252
|
};
|
|
253
|
-
}>,
|
|
253
|
+
}>, Values<{
|
|
254
254
|
isOcrEditable: {
|
|
255
255
|
type: "isOcrEditable";
|
|
256
256
|
params: unknown;
|
|
@@ -271,79 +271,77 @@ declare const idOcrStateMachine: xstate836.StateMachine<IdOcrContext, {
|
|
|
271
271
|
type: "shouldProceedWithoutSubmitToSecondId";
|
|
272
272
|
params: unknown;
|
|
273
273
|
};
|
|
274
|
-
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput,
|
|
274
|
+
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
275
275
|
readonly id: "idOcr";
|
|
276
276
|
readonly initial: "idle";
|
|
277
|
-
readonly context: ({
|
|
278
|
-
input
|
|
279
|
-
}: {
|
|
277
|
+
readonly context: ({ input }: {
|
|
280
278
|
spawn: {
|
|
281
279
|
<TSrc extends "getOcrData" | "updateOcrData">(logic: TSrc, ...[options]: ({
|
|
282
280
|
src: "getOcrData";
|
|
283
|
-
logic:
|
|
281
|
+
logic: PromiseActorLogic<OcrData, {
|
|
284
282
|
isSecondId: boolean;
|
|
285
|
-
},
|
|
283
|
+
}, EventObject>;
|
|
286
284
|
id: string | undefined;
|
|
287
|
-
} extends infer T ? T extends {
|
|
285
|
+
} extends (infer T) ? T extends {
|
|
288
286
|
src: "getOcrData";
|
|
289
|
-
logic:
|
|
287
|
+
logic: PromiseActorLogic<OcrData, {
|
|
290
288
|
isSecondId: boolean;
|
|
291
|
-
},
|
|
289
|
+
}, EventObject>;
|
|
292
290
|
id: string | undefined;
|
|
293
291
|
} ? T extends {
|
|
294
292
|
src: TSrc;
|
|
295
|
-
} ?
|
|
293
|
+
} ? ConditionalRequired<[options?: ({
|
|
296
294
|
id?: T["id"] | undefined;
|
|
297
295
|
systemId?: string;
|
|
298
|
-
input?:
|
|
296
|
+
input?: InputFrom<T["logic"]> | undefined;
|
|
299
297
|
syncSnapshot?: boolean;
|
|
300
|
-
} & { [K in
|
|
298
|
+
} & { [K in RequiredActorOptions<T>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T>>> : never : never : never) | ({
|
|
301
299
|
src: "updateOcrData";
|
|
302
|
-
logic:
|
|
300
|
+
logic: PromiseActorLogic<UpdateOcrResponse, {
|
|
303
301
|
params: UpdateOcrDataParams;
|
|
304
302
|
isSecondId: boolean;
|
|
305
|
-
},
|
|
303
|
+
}, EventObject>;
|
|
306
304
|
id: string | undefined;
|
|
307
|
-
} extends infer T_1 ? T_1 extends {
|
|
305
|
+
} extends (infer T_1) ? T_1 extends {
|
|
308
306
|
src: "updateOcrData";
|
|
309
|
-
logic:
|
|
307
|
+
logic: PromiseActorLogic<UpdateOcrResponse, {
|
|
310
308
|
params: UpdateOcrDataParams;
|
|
311
309
|
isSecondId: boolean;
|
|
312
|
-
},
|
|
310
|
+
}, EventObject>;
|
|
313
311
|
id: string | undefined;
|
|
314
312
|
} ? T_1 extends {
|
|
315
313
|
src: TSrc;
|
|
316
|
-
} ?
|
|
314
|
+
} ? ConditionalRequired<[options?: ({
|
|
317
315
|
id?: T_1["id"] | undefined;
|
|
318
316
|
systemId?: string;
|
|
319
|
-
input?:
|
|
317
|
+
input?: InputFrom<T_1["logic"]> | undefined;
|
|
320
318
|
syncSnapshot?: boolean;
|
|
321
|
-
} & { [K_1 in
|
|
319
|
+
} & { [K_1 in RequiredActorOptions<T_1>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T_1>>> : never : never : never)): ActorRefFromLogic<GetConcreteByKey<Values<{
|
|
322
320
|
getOcrData: {
|
|
323
321
|
src: "getOcrData";
|
|
324
|
-
logic:
|
|
322
|
+
logic: PromiseActorLogic<OcrData, {
|
|
325
323
|
isSecondId: boolean;
|
|
326
|
-
},
|
|
324
|
+
}, EventObject>;
|
|
327
325
|
id: string | undefined;
|
|
328
326
|
};
|
|
329
327
|
updateOcrData: {
|
|
330
328
|
src: "updateOcrData";
|
|
331
|
-
logic:
|
|
329
|
+
logic: PromiseActorLogic<UpdateOcrResponse, {
|
|
332
330
|
params: UpdateOcrDataParams;
|
|
333
331
|
isSecondId: boolean;
|
|
334
|
-
},
|
|
332
|
+
}, EventObject>;
|
|
335
333
|
id: string | undefined;
|
|
336
334
|
};
|
|
337
335
|
}>, "src", TSrc>["logic"]>;
|
|
338
|
-
<TLogic extends
|
|
336
|
+
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: ({
|
|
339
337
|
id?: never;
|
|
340
338
|
systemId?: string;
|
|
341
|
-
input?:
|
|
339
|
+
input?: InputFrom<TLogic> | undefined;
|
|
342
340
|
syncSnapshot?: boolean;
|
|
343
|
-
} & { [K in
|
|
341
|
+
} & { [K in RequiredLogicInput<TLogic>]: unknown; }) | undefined], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
344
342
|
};
|
|
345
343
|
input: IdOcrInput;
|
|
346
|
-
self:
|
|
344
|
+
self: ActorRef<MachineSnapshot<IdOcrContext, {
|
|
347
345
|
type: "LOAD";
|
|
348
346
|
} | {
|
|
349
347
|
type: "DATA_CHANGED";
|
|
@@ -356,7 +354,7 @@ declare const idOcrStateMachine: xstate836.StateMachine<IdOcrContext, {
|
|
|
356
354
|
type: "CONTINUE";
|
|
357
355
|
} | {
|
|
358
356
|
type: "RETRY";
|
|
359
|
-
}, Record<string,
|
|
357
|
+
}, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, {
|
|
360
358
|
type: "LOAD";
|
|
361
359
|
} | {
|
|
362
360
|
type: "DATA_CHANGED";
|
|
@@ -369,7 +367,7 @@ declare const idOcrStateMachine: xstate836.StateMachine<IdOcrContext, {
|
|
|
369
367
|
type: "CONTINUE";
|
|
370
368
|
} | {
|
|
371
369
|
type: "RETRY";
|
|
372
|
-
},
|
|
370
|
+
}, AnyEventObject>;
|
|
373
371
|
}) => {
|
|
374
372
|
config: IdOcrConfig;
|
|
375
373
|
formData: UpdateOcrDataParams;
|
|
@@ -387,9 +385,7 @@ declare const idOcrStateMachine: xstate836.StateMachine<IdOcrContext, {
|
|
|
387
385
|
readonly loading: {
|
|
388
386
|
readonly invoke: {
|
|
389
387
|
readonly src: "getOcrData";
|
|
390
|
-
readonly input: ({
|
|
391
|
-
context
|
|
392
|
-
}: {
|
|
388
|
+
readonly input: ({ context }: {
|
|
393
389
|
context: IdOcrContext;
|
|
394
390
|
event: {
|
|
395
391
|
type: "LOAD";
|
|
@@ -405,7 +401,7 @@ declare const idOcrStateMachine: xstate836.StateMachine<IdOcrContext, {
|
|
|
405
401
|
} | {
|
|
406
402
|
type: "RETRY";
|
|
407
403
|
};
|
|
408
|
-
self:
|
|
404
|
+
self: ActorRef<MachineSnapshot<IdOcrContext, {
|
|
409
405
|
type: "LOAD";
|
|
410
406
|
} | {
|
|
411
407
|
type: "DATA_CHANGED";
|
|
@@ -418,7 +414,7 @@ declare const idOcrStateMachine: xstate836.StateMachine<IdOcrContext, {
|
|
|
418
414
|
type: "CONTINUE";
|
|
419
415
|
} | {
|
|
420
416
|
type: "RETRY";
|
|
421
|
-
}, Record<string,
|
|
417
|
+
}, Record<string, AnyActorRef>, StateValue, string, unknown, any, any>, {
|
|
422
418
|
type: "LOAD";
|
|
423
419
|
} | {
|
|
424
420
|
type: "DATA_CHANGED";
|
|
@@ -431,7 +427,7 @@ declare const idOcrStateMachine: xstate836.StateMachine<IdOcrContext, {
|
|
|
431
427
|
type: "CONTINUE";
|
|
432
428
|
} | {
|
|
433
429
|
type: "RETRY";
|
|
434
|
-
},
|
|
430
|
+
}, AnyEventObject>;
|
|
435
431
|
}) => {
|
|
436
432
|
isSecondId: boolean;
|
|
437
433
|
};
|
|
@@ -492,9 +488,7 @@ declare const idOcrStateMachine: xstate836.StateMachine<IdOcrContext, {
|
|
|
492
488
|
readonly submitting: {
|
|
493
489
|
readonly invoke: {
|
|
494
490
|
readonly src: "updateOcrData";
|
|
495
|
-
readonly input: ({
|
|
496
|
-
context
|
|
497
|
-
}: {
|
|
491
|
+
readonly input: ({ context }: {
|
|
498
492
|
context: IdOcrContext;
|
|
499
493
|
event: {
|
|
500
494
|
type: "LOAD";
|
|
@@ -510,7 +504,7 @@ declare const idOcrStateMachine: xstate836.StateMachine<IdOcrContext, {
|
|
|
510
504
|
} | {
|
|
511
505
|
type: "RETRY";
|
|
512
506
|
};
|
|
513
|
-
self:
|
|
507
|
+
self: ActorRef<MachineSnapshot<IdOcrContext, {
|
|
514
508
|
type: "LOAD";
|
|
515
509
|
} | {
|
|
516
510
|
type: "DATA_CHANGED";
|
|
@@ -523,7 +517,7 @@ declare const idOcrStateMachine: xstate836.StateMachine<IdOcrContext, {
|
|
|
523
517
|
type: "CONTINUE";
|
|
524
518
|
} | {
|
|
525
519
|
type: "RETRY";
|
|
526
|
-
}, Record<string,
|
|
520
|
+
}, Record<string, AnyActorRef>, StateValue, string, unknown, any, any>, {
|
|
527
521
|
type: "LOAD";
|
|
528
522
|
} | {
|
|
529
523
|
type: "DATA_CHANGED";
|
|
@@ -536,7 +530,7 @@ declare const idOcrStateMachine: xstate836.StateMachine<IdOcrContext, {
|
|
|
536
530
|
type: "CONTINUE";
|
|
537
531
|
} | {
|
|
538
532
|
type: "RETRY";
|
|
539
|
-
},
|
|
533
|
+
}, AnyEventObject>;
|
|
540
534
|
}) => {
|
|
541
535
|
params: UpdateOcrDataParams;
|
|
542
536
|
isSecondId: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import {
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
|
+
import { b as getTimestamp } from "./events-Dy8PyVO5.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
4
|
+
import { 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 { t as validateCPF } from "./cpf-BIADjddF.esm.js";
|
|
7
7
|
//#region ../infra/src/providers/browser/DateFormattingProvider.ts
|
|
8
8
|
var DateFormattingProvider = class {
|
|
9
9
|
utcToIsoDateString(value) {
|
|
@@ -27,7 +27,6 @@ var DateFormattingProvider = class {
|
|
|
27
27
|
return age;
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
|
|
31
30
|
//#endregion
|
|
32
31
|
//#region src/modules/id-ocr/idOcrUtils.ts
|
|
33
32
|
const dateFormattingInstance$1 = new DateFormattingProvider();
|
|
@@ -81,7 +80,6 @@ const mapUpdateOcrDataForApi = (params) => {
|
|
|
81
80
|
}
|
|
82
81
|
return body;
|
|
83
82
|
};
|
|
84
|
-
|
|
85
83
|
//#endregion
|
|
86
84
|
//#region src/modules/id-ocr/idOcrServices.ts
|
|
87
85
|
/** Fetch ID OCR data. Throws on failure. */
|
|
@@ -98,7 +96,6 @@ async function updateOcrData(params, signal, isSecondId) {
|
|
|
98
96
|
if (!res.ok) throw new Error(`PUT failed: ${url} failed: ${res.status} ${res.statusText}`);
|
|
99
97
|
return res.data;
|
|
100
98
|
}
|
|
101
|
-
|
|
102
99
|
//#endregion
|
|
103
100
|
//#region src/modules/id-ocr/idOcrConsts.ts
|
|
104
101
|
const MIN_AGE = 18;
|
|
@@ -115,7 +112,6 @@ const CPFFlowIds = [
|
|
|
115
112
|
"68e531531a6892418eecd21f",
|
|
116
113
|
"68e5314706c77c2b6993eb99"
|
|
117
114
|
];
|
|
118
|
-
|
|
119
115
|
//#endregion
|
|
120
116
|
//#region src/modules/id-ocr/idOcrFields.ts
|
|
121
117
|
const CPF_ONLY_OCR_FIELDS = [{
|
|
@@ -139,7 +135,7 @@ const OCR_FIELDS = [
|
|
|
139
135
|
type: "date",
|
|
140
136
|
validation: [{ type: "required" }, {
|
|
141
137
|
type: "minAge",
|
|
142
|
-
years:
|
|
138
|
+
years: 18
|
|
143
139
|
}],
|
|
144
140
|
required: true
|
|
145
141
|
},
|
|
@@ -183,7 +179,6 @@ const getOcrFields = (config) => {
|
|
|
183
179
|
if (flowId && CPFFlowIds.includes(flowId)) return CPF_ONLY_OCR_FIELDS;
|
|
184
180
|
return OCR_FIELDS;
|
|
185
181
|
};
|
|
186
|
-
|
|
187
182
|
//#endregion
|
|
188
183
|
//#region src/modules/id-ocr/idOcrValidators.ts
|
|
189
184
|
const dateFormattingInstance = new DateFormattingProvider();
|
|
@@ -211,18 +206,19 @@ const validateFieldValue = (value, field, validators) => {
|
|
|
211
206
|
const validateOcrForm = (data, fields) => {
|
|
212
207
|
const validators = createValidators();
|
|
213
208
|
return fields.reduce((errors, field) => {
|
|
214
|
-
const
|
|
209
|
+
const value = normalizeFieldValue(data[field.key]);
|
|
210
|
+
const error = validateFieldValue(value, field, validators);
|
|
215
211
|
if (error) errors[field.key] = error;
|
|
216
212
|
return errors;
|
|
217
213
|
}, {});
|
|
218
214
|
};
|
|
219
215
|
const validateOcrField = (data, fieldKey, fields) => {
|
|
220
|
-
const field = fields.find((field
|
|
216
|
+
const field = fields.find((field) => field.key === fieldKey);
|
|
221
217
|
if (!field) return void 0;
|
|
222
218
|
const validators = createValidators();
|
|
223
|
-
|
|
219
|
+
const value = normalizeFieldValue(data[field.key]);
|
|
220
|
+
return validateFieldValue(value, field, validators);
|
|
224
221
|
};
|
|
225
|
-
|
|
226
222
|
//#endregion
|
|
227
223
|
//#region src/modules/id-ocr/idOcrStateMachine.ts
|
|
228
224
|
const emptyOcrData = () => ({});
|
|
@@ -383,6 +379,5 @@ const idOcrStateMachine = setup({
|
|
|
383
379
|
finished: { type: "final" }
|
|
384
380
|
}
|
|
385
381
|
});
|
|
386
|
-
|
|
387
382
|
//#endregion
|
|
388
|
-
export { MIN_AGE as a, CPFFlowIds as i, OCR_FIELDS as n, getOcrFields as r, idOcrStateMachine as t };
|
|
383
|
+
export { MIN_AGE as a, CPFFlowIds as i, OCR_FIELDS as n, getOcrFields as r, idOcrStateMachine as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
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, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, 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
5
|
//#region src/modules/id-verification/types.d.ts
|
|
6
6
|
type IdVerificationConfig = {
|
|
7
7
|
/** When true, verify the second captured ID via `/omni/process/second-id`. */
|
|
@@ -32,78 +32,76 @@ type IdVerificationContext = {
|
|
|
32
32
|
type IdVerificationInput = {
|
|
33
33
|
config: IdVerificationConfig;
|
|
34
34
|
};
|
|
35
|
-
declare const idVerificationMachine:
|
|
35
|
+
declare const idVerificationMachine: StateMachine<IdVerificationContext, {
|
|
36
36
|
type: "LOAD";
|
|
37
37
|
} | {
|
|
38
38
|
type: "CONTINUE";
|
|
39
39
|
}, {
|
|
40
|
-
[x: string]:
|
|
40
|
+
[x: string]: ActorRefFromLogic<PromiseActorLogic<ProcessIdResponse, {
|
|
41
41
|
isSecondId: boolean;
|
|
42
42
|
queueName: string;
|
|
43
|
-
},
|
|
43
|
+
}, EventObject>> | undefined;
|
|
44
44
|
}, {
|
|
45
45
|
src: "processId";
|
|
46
|
-
logic:
|
|
46
|
+
logic: PromiseActorLogic<ProcessIdResponse, {
|
|
47
47
|
isSecondId: boolean;
|
|
48
48
|
queueName: string;
|
|
49
|
-
},
|
|
49
|
+
}, EventObject>;
|
|
50
50
|
id: string | undefined;
|
|
51
51
|
}, never, {
|
|
52
52
|
type: "isDocumentExpired";
|
|
53
53
|
params: unknown;
|
|
54
|
-
}, never, "idle" | "processing" | "finished" | "expired", string, IdVerificationInput,
|
|
54
|
+
}, never, "idle" | "processing" | "finished" | "expired", string, IdVerificationInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
55
55
|
readonly id: "idVerification";
|
|
56
56
|
readonly initial: "idle";
|
|
57
|
-
readonly context: ({
|
|
58
|
-
input
|
|
59
|
-
}: {
|
|
57
|
+
readonly context: ({ input }: {
|
|
60
58
|
spawn: {
|
|
61
59
|
<TSrc extends "processId">(logic: TSrc, ...[options]: {
|
|
62
60
|
src: "processId";
|
|
63
|
-
logic:
|
|
61
|
+
logic: PromiseActorLogic<ProcessIdResponse, {
|
|
64
62
|
isSecondId: boolean;
|
|
65
63
|
queueName: string;
|
|
66
|
-
},
|
|
64
|
+
}, EventObject>;
|
|
67
65
|
id: string | undefined;
|
|
68
|
-
} extends infer T ? T extends {
|
|
66
|
+
} extends (infer T) ? T extends {
|
|
69
67
|
src: "processId";
|
|
70
|
-
logic:
|
|
68
|
+
logic: PromiseActorLogic<ProcessIdResponse, {
|
|
71
69
|
isSecondId: boolean;
|
|
72
70
|
queueName: string;
|
|
73
|
-
},
|
|
71
|
+
}, EventObject>;
|
|
74
72
|
id: string | undefined;
|
|
75
73
|
} ? T extends {
|
|
76
74
|
src: TSrc;
|
|
77
|
-
} ?
|
|
75
|
+
} ? ConditionalRequired<[options?: ({
|
|
78
76
|
id?: T["id"] | undefined;
|
|
79
77
|
systemId?: string;
|
|
80
|
-
input?:
|
|
78
|
+
input?: InputFrom<T["logic"]> | undefined;
|
|
81
79
|
syncSnapshot?: boolean;
|
|
82
|
-
} & { [K in
|
|
80
|
+
} & { [K in RequiredActorOptions<T>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T>>> : never : never : never): ActorRefFromLogic<GetConcreteByKey<{
|
|
83
81
|
src: "processId";
|
|
84
|
-
logic:
|
|
82
|
+
logic: PromiseActorLogic<ProcessIdResponse, {
|
|
85
83
|
isSecondId: boolean;
|
|
86
84
|
queueName: string;
|
|
87
|
-
},
|
|
85
|
+
}, EventObject>;
|
|
88
86
|
id: string | undefined;
|
|
89
87
|
}, "src", TSrc>["logic"]>;
|
|
90
|
-
<TLogic extends
|
|
88
|
+
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: ({
|
|
91
89
|
id?: never;
|
|
92
90
|
systemId?: string;
|
|
93
|
-
input?:
|
|
91
|
+
input?: InputFrom<TLogic> | undefined;
|
|
94
92
|
syncSnapshot?: boolean;
|
|
95
|
-
} & { [K in
|
|
93
|
+
} & { [K in RequiredLogicInput<TLogic>]: unknown; }) | undefined], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
96
94
|
};
|
|
97
95
|
input: IdVerificationInput;
|
|
98
|
-
self:
|
|
96
|
+
self: ActorRef<MachineSnapshot<IdVerificationContext, {
|
|
99
97
|
type: "LOAD";
|
|
100
98
|
} | {
|
|
101
99
|
type: "CONTINUE";
|
|
102
|
-
}, Record<string,
|
|
100
|
+
}, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, {
|
|
103
101
|
type: "LOAD";
|
|
104
102
|
} | {
|
|
105
103
|
type: "CONTINUE";
|
|
106
|
-
},
|
|
104
|
+
}, AnyEventObject>;
|
|
107
105
|
}) => {
|
|
108
106
|
config: IdVerificationConfig;
|
|
109
107
|
isSecondId: boolean;
|
|
@@ -118,24 +116,22 @@ declare const idVerificationMachine: xstate909.StateMachine<IdVerificationContex
|
|
|
118
116
|
readonly invoke: {
|
|
119
117
|
readonly id: "processId";
|
|
120
118
|
readonly src: "processId";
|
|
121
|
-
readonly input: ({
|
|
122
|
-
context
|
|
123
|
-
}: {
|
|
119
|
+
readonly input: ({ context }: {
|
|
124
120
|
context: IdVerificationContext;
|
|
125
121
|
event: {
|
|
126
122
|
type: "LOAD";
|
|
127
123
|
} | {
|
|
128
124
|
type: "CONTINUE";
|
|
129
125
|
};
|
|
130
|
-
self:
|
|
126
|
+
self: ActorRef<MachineSnapshot<IdVerificationContext, {
|
|
131
127
|
type: "LOAD";
|
|
132
128
|
} | {
|
|
133
129
|
type: "CONTINUE";
|
|
134
|
-
}, Record<string,
|
|
130
|
+
}, Record<string, AnyActorRef>, StateValue, string, unknown, any, any>, {
|
|
135
131
|
type: "LOAD";
|
|
136
132
|
} | {
|
|
137
133
|
type: "CONTINUE";
|
|
138
|
-
},
|
|
134
|
+
}, AnyEventObject>;
|
|
139
135
|
}) => {
|
|
140
136
|
isSecondId: boolean;
|
|
141
137
|
queueName: string;
|
package/dist/{idVerificationManager-23kPMn7T.esm.js → idVerificationManager-CujJqsiX.esm.js}
RENAMED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { n as eventModuleNames,
|
|
2
|
-
import {
|
|
3
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-
|
|
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 idVerificationMachine } from "./idVerificationStateMachine-D-1GlgC5.esm.js";
|
|
5
4
|
//#region src/modules/id-verification/idVerificationActor.ts
|
|
6
5
|
function createIdVerificationActor(options) {
|
|
7
6
|
return createActor(idVerificationMachine, { input: { config: options.config } }).start();
|
|
8
7
|
}
|
|
9
|
-
|
|
10
8
|
//#endregion
|
|
11
9
|
//#region src/modules/id-verification/idVerificationManager.ts
|
|
12
10
|
function mapState(snapshot) {
|
|
@@ -49,6 +47,5 @@ function createIdVerificationManagerFromActor(actor) {
|
|
|
49
47
|
instrumentation: createManagerInstrumentation(eventModuleNames.idVerification)
|
|
50
48
|
});
|
|
51
49
|
}
|
|
52
|
-
|
|
53
50
|
//#endregion
|
|
54
|
-
export { createIdVerificationManagerFromActor as n, createIdVerificationManager as t };
|
|
51
|
+
export { createIdVerificationManagerFromActor as n, createIdVerificationManager as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
3
|
+
import { t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
5
|
//#region src/modules/id-verification/idVerificationServices.ts
|
|
6
6
|
/**
|
|
7
7
|
* Submits the captured ID for backend verification. Wraps `POST /omni/process/id`
|
|
@@ -19,7 +19,6 @@ async function processId(input = {}, signal) {
|
|
|
19
19
|
if (!res.ok) throw new Error(`POST ${endpoint} failed: ${res.status} ${res.statusText}`);
|
|
20
20
|
return { isDocumentExpired: res.data?.isDocumentExpired ?? false };
|
|
21
21
|
}
|
|
22
|
-
|
|
23
22
|
//#endregion
|
|
24
23
|
//#region src/modules/id-verification/idVerificationStateMachine.ts
|
|
25
24
|
function deriveIsSecondId(config) {
|
|
@@ -66,6 +65,5 @@ const idVerificationMachine = setup({
|
|
|
66
65
|
finished: { type: "final" }
|
|
67
66
|
}
|
|
68
67
|
});
|
|
69
|
-
|
|
70
68
|
//#endregion
|
|
71
|
-
export { idVerificationMachine as t };
|
|
69
|
+
export { idVerificationMachine as t };
|
package/dist/identity-reuse.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./Manager-DE5DydXZ.js";
|
|
3
|
-
import "./Actor-CdjYVucI.js";
|
|
4
|
-
import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-DOufEjLa.js";
|
|
1
|
+
import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-aTyLyYrr.js";
|
|
5
2
|
export { type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
|
|
4
|
-
import "./xstate.esm-nY3M5UYm.esm.js";
|
|
5
|
-
import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-Cqc-NwEQ.esm.js";
|
|
6
|
-
import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-Ct-9qYpC.esm.js";
|
|
7
|
-
|
|
8
|
-
export { SCAN_NEW_DOCUMENT, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
1
|
+
import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-CM45EBrb.esm.js";
|
|
2
|
+
import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-DHfJZTVo.esm.js";
|
|
3
|
+
export { SCAN_NEW_DOCUMENT, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|