@incodetech/core 2.3.2 → 2.4.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.txt +1243 -3
- package/dist/Actor-DpTj5PFb.d.ts +1 -0
- package/dist/{BaseWasmProvider-Dyi6dKp1.d.ts → BaseWasmProvider-BL9wIRnN.d.ts} +2 -2
- package/dist/{FaceDetectionProvider-DtmtCKa9.esm.js → FaceDetectionProvider-BjTer9h3.esm.js} +126 -10
- package/dist/HttpRequestError-Bh0pNGSC.esm.js +35 -0
- package/dist/{IIdCaptureCapability-RNiFhvXR.d.ts → IIdCaptureCapability-DBsv9-7M.d.ts} +2 -2
- package/dist/{IWasmUtilCapability-CNWRl7jr.d.ts → IWasmUtilCapability-CPX0RGdQ.d.ts} +28 -5
- package/dist/{Manager-CQQ99QOI.d.ts → Manager-C9T5amUN.d.ts} +7 -1
- package/dist/{MotionSensorProvider-DyhbM4Si.esm.js → MotionSensorProvider-DYxh8TjR.esm.js} +1 -1
- package/dist/{ekycStateMachine-UeJRO8_p.esm.js → PhoneValidationProvider-SZiOS0jB.esm.js} +232 -827
- package/dist/{StreamCanvasCapture-_8gdW5Lk.d.ts → StreamCanvasCapture-DVmzJux5.d.ts} +2 -2
- package/dist/{safeStorage-BdU9_m2E.esm.js → WasmUtilProvider-CIdnE7Fx.esm.js} +95 -46
- package/dist/{addressSearch-DyHGgeX8.esm.js → addressSearch-BiYZjvp3.esm.js} +143 -4
- package/dist/{advanceableErrors-CpF2cBy6.esm.js → advanceableErrors-q_pfU3Cn.esm.js} +5 -4
- package/dist/ae-signature.d.ts +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-BY36bS12.d.ts → antifraudManager-DbGCvlJs.d.ts} +2 -2
- package/dist/{antifraudManager-DNkw66oW.esm.js → antifraudManager-HL08jeDX.esm.js} +3 -3
- package/dist/{antifraudStateMachine-DBeq47D2.esm.js → antifraudStateMachine-DoJVzblM.esm.js} +3 -3
- package/dist/{apiError-CmGEmaGU.esm.js → apiError-DcSWedC6.esm.js} +2 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CboRCl_N.d.ts → authenticationManager-CANv5-W5.d.ts} +2 -8
- package/dist/{authenticationManager-BFjSjtQ_.esm.js → authenticationManager-SaiAxqvS.esm.js} +6 -6
- package/dist/{authenticationStateMachine-Dfo34ZiI.esm.js → authenticationStateMachine-CHSxmV7z.esm.js} +5 -6
- package/dist/avatar.d.ts +1 -1
- package/dist/{backCameraStream-B0-YgP_y.esm.js → backCameraStream-CMvXj4X4.esm.js} +1 -1
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.d.ts +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-C3-CI0_s.esm.js → certificateIssuanceManager-CMg4SgL4.esm.js} +3 -3
- package/dist/{certificateIssuanceManager-DCgEidHz.d.ts → certificateIssuanceManager-Dr8A4Lgr.d.ts} +2 -3
- package/dist/{certificateIssuanceStateMachine-CxqS_nD-.esm.js → certificateIssuanceStateMachine-Cs64QmYH.esm.js} +4 -4
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-B6E1XJDw.esm.js → consentManager-CjrxY737.esm.js} +3 -3
- package/dist/{consentManager-2h_w6wFc.d.ts → consentManager-DgzWQpAR.d.ts} +6 -7
- package/dist/{consentStateMachine-DTSfdGiW.esm.js → consentStateMachine-BCj5Jb3g.esm.js} +3 -3
- package/dist/{createCameraCycleOwnership-DnwTl1ad.esm.js → createCameraCycleOwnership-kdlhkmmY.esm.js} +71 -65
- package/dist/{createFaceAvatar-BlcTYgJv.d.ts → createFaceAvatar-DXgmQmQy.d.ts} +1 -1
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-9XhFVZ5S.esm.js → crossDocumentDataMatchManager-BHnGRsto.esm.js} +4 -4
- package/dist/{crossDocumentDataMatchManager-Dq8Z3SOg.d.ts → crossDocumentDataMatchManager-yCWCOzcU.d.ts} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-DNuZn9fn.d.ts → curpValidationManager-B-1EZbP_.d.ts} +3 -3
- package/dist/{curpValidationManager-DbIMYFcJ.esm.js → curpValidationManager-DBNIn8BF.esm.js} +15 -22
- package/dist/{curpValidationStateMachine-g5kMfuLj.esm.js → curpValidationStateMachine-DAxImy8p.esm.js} +4 -4
- package/dist/custom-fields.d.ts +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-CzWZTkW-.esm.js → customFieldsManager-BV6UyLFV.esm.js} +4 -4
- package/dist/{customFieldsManager-8-W2KY4n.d.ts → customFieldsManager-CF-cO8ap.d.ts} +2 -2
- package/dist/{customWatchlistManager-DWTED5Ur.esm.js → customWatchlistManager-DML0UPzf.esm.js} +3 -3
- package/dist/{customWatchlistManager-PBWHr_oM.d.ts → customWatchlistManager-DolUswyR.d.ts} +2 -2
- package/dist/{customWatchlistStateMachine-DOQou6TW.esm.js → customWatchlistStateMachine-D9gI5uu7.esm.js} +3 -3
- package/dist/deepsightLoader-DvfAYnzg.esm.js +55 -0
- package/dist/{deepsightLoader-v-dLejS-.esm.js → deepsightService-DLGO9yv1.esm.js} +51 -56
- package/dist/device.esm.js +1 -1
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-BRPxqYD2.esm.js → documentCaptureManager-C9XUnYU6.esm.js} +17 -18
- package/dist/{documentCaptureManager-lEtCM320.d.ts → documentCaptureManager-DkyDtm3Y.d.ts} +11 -34
- package/dist/{documentCaptureStateMachine-D312sSIu.esm.js → documentCaptureStateMachine-BHDsCfhL.esm.js} +55 -58
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-C-9Jhnd3.esm.js → dynamicFormsManager-5uIXobxi.esm.js} +3 -3
- package/dist/{dynamicFormsManager-D5R_uxLQ.d.ts → dynamicFormsManager-C0dHs1ty.d.ts} +3 -3
- package/dist/{dynamicFormsStateMachine-DGI_F2PP.esm.js → dynamicFormsStateMachine-DQmok084.esm.js} +4 -4
- package/dist/ekyb.d.ts +5 -5
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BwRuGAwt.d.ts → ekybManager-BaZ_7CEu.d.ts} +4 -4
- package/dist/{ekybManager-DeoMcZEz.esm.js → ekybManager-CazShiQz.esm.js} +23 -27
- package/dist/{ekybStateMachine-D1IJ1Z72.esm.js → ekybStateMachine-hstiCNmW.esm.js} +338 -13
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-BX2d46FY.esm.js → ekycManager-BdJRUsz0.esm.js} +29 -36
- package/dist/{ekycManager-DLzDuBzI.d.ts → ekycManager-DW-ynodd.d.ts} +3 -3
- package/dist/ekycStateMachine-x6Klot8g.esm.js +1444 -0
- package/dist/{ekycUtils-D6wfSpPN.esm.js → ekycUtils-zY8CdKJL.esm.js} +53 -3
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-yYUc30na.esm.js → electronicSignatureManager-Bc8spG8p.esm.js} +10 -10
- package/dist/{electronicSignatureManager-Ds-KEVTq.d.ts → electronicSignatureManager-DTSLOvKR.d.ts} +2 -3
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-bR1N5rV_.esm.js → emailManager-CtlKRRaR.esm.js} +20 -26
- package/dist/{emailManager-CADXW_9X.d.ts → emailManager-Dy6omJVp.d.ts} +2 -2
- package/dist/{emailStateMachine-Bc_6oIYw.esm.js → emailStateMachine-5Neq3rE5.esm.js} +4 -4
- package/dist/{endpoints-B-3Q-LUw.esm.js → endpoints-DHzlkQNe.esm.js} +2 -0
- package/dist/{events-ijlbX_Wx.esm.js → events-CAgFE-k3.esm.js} +19 -7
- package/dist/events.d.ts +3 -2
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +38 -38
- package/dist/extensibility.esm.js +36 -36
- package/dist/{externalFetch-BKBThAUC.esm.js → externalFetch-DrR9xshk.esm.js} +3 -2
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-m-7ae67q.d.ts → faceCaptureManagerFactory-jKQ2QtY-.d.ts} +11 -51
- package/dist/{faceCaptureManagerFactory-B6i9QcAk.esm.js → faceCaptureManagerFactory-uFm1AcaY.esm.js} +19 -54
- package/dist/{faceCaptureSetup-DU1mjRr6.esm.js → faceCaptureSetup-Cu2wabzo.esm.js} +99 -395
- package/dist/{faceMatchManager-Bmv0HzuY.esm.js → faceMatchManager-9Nj9aPci.esm.js} +3 -3
- package/dist/{faceMatchManager-BnvrZM2F.d.ts → faceMatchManager-DIgG-UFS.d.ts} +1 -2
- package/dist/{faceMatchStateMachine-mRIHQ3dA.esm.js → faceMatchStateMachine-B9ZUnlyU.esm.js} +6 -4
- package/dist/{feature-management-C8CuN0os.esm.js → feature-management-BTbYruNe.esm.js} +3 -3
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.d.ts +2 -2
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-CBvEGxFx.d.ts → fieldComparisonManager-CUX4gza2.d.ts} +6 -3
- package/dist/{fieldComparisonManager-CC-klG0h.esm.js → fieldComparisonManager-Dk38hXZP.esm.js} +35 -17
- package/dist/fiscal-qr.d.ts +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-B1STmT6z.d.ts → fiscalQrManager-D0Iy7EKR.d.ts} +2 -2
- package/dist/fiscalQrManager-DmBkQfs0.esm.js +6798 -0
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +14 -13
- package/dist/flow.esm.js +14 -14
- package/dist/{flowCompletionService-DccgtDnm.esm.js → flowCompletionService-xnn_SlJU.esm.js} +2 -2
- package/dist/{flowServices-CdsWsppG.esm.js → flowServices-DA64AEZC.esm.js} +11 -7
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CGHBxtMb.esm.js → geolocationManager-CqNLY45e.esm.js} +6 -7
- package/dist/{geolocationManager-Cz744E5S.d.ts → geolocationManager-Dn24g1fl.d.ts} +2 -3
- package/dist/{geolocationStateMachine-CdEb1Gn0.esm.js → geolocationStateMachine-D-cQi7ar.esm.js} +4 -4
- package/dist/{getDeviceClass-5NYZg9s6.esm.js → getDeviceClass-bsWdEDxP.esm.js} +1 -1
- package/dist/{getParsedUserAgent-B2iFDql1.esm.js → getParsedUserAgent-DhQPeKqw.esm.js} +1 -1
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-D02vT4yY.d.ts → governmentValidationManager-B82zOut8.d.ts} +3 -3
- package/dist/{governmentValidationManager-CacFOtKO.esm.js → governmentValidationManager-CP0SiOOe.esm.js} +3 -3
- package/dist/{governmentValidationStateMachine-CoaZOSTP.esm.js → governmentValidationStateMachine-C3YQ8yCZ.esm.js} +3 -3
- package/dist/home.d.ts +3 -26
- package/dist/home.esm.js +2 -2
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +6 -9
- package/dist/id-selfie-flow.esm.js +23 -28
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +4 -4
- package/dist/id.esm.js +4 -205
- package/dist/{idCaptureDefaults-Dl64Trv5.esm.js → idCaptureDefaults-CBg73RnV.esm.js} +8 -5
- package/dist/{idCaptureManager-BHwL2Z0V.d.ts → idCaptureManager-BY97SRCV.d.ts} +242 -98
- package/dist/{idCaptureManager-BNmVJQkd.esm.js → idCaptureManager-D4V8vXtY.esm.js} +276 -210
- package/dist/{idCaptureServices-dtDG2HXS.esm.js → idCaptureServices-DJ33k3-p.esm.js} +21 -39
- package/dist/{idCaptureStateMachine-BbiZD3uf.esm.js → idCaptureStateMachine-PJt0yzom.esm.js} +989 -872
- package/dist/{idOcrManager-CFlDwUvN.d.ts → idOcrManager-BTdHlJ9D.d.ts} +2 -3
- package/dist/{idOcrManager-ByWuQ4ej.esm.js → idOcrManager-DxoCesYP.esm.js} +3 -3
- package/dist/{idOcrStateMachine-Bt_abXQQ.esm.js → idOcrStateMachine-kPn7DB2I.esm.js} +3 -3
- package/dist/{idVerificationManager-BB4Pj_N6.d.ts → idVerificationManager-BJapZfpy.d.ts} +2 -3
- package/dist/{idVerificationManager-DT42c77H.esm.js → idVerificationManager-CDhRUU5n.esm.js} +3 -3
- package/dist/{idVerificationStateMachine-DbDVIh9t.esm.js → idVerificationStateMachine-0HTVVxse.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +2 -2
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-yG3acUrQ.esm.js → identityReuseManager-BleUi6TK.esm.js} +26 -13
- package/dist/{identityReuseManager-BXEBBI3N.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +164 -46
- package/dist/{identityReuseStateMachine-BhAkuIra.esm.js → identityReuseStateMachine-BrBUpfn5.esm.js} +89 -23
- package/dist/{index-CeaC32qI.d.ts → index-DfEuu-Ew.d.ts} +2 -2
- package/dist/index-DpTj5PFb.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-BjzPjJ_p.esm.js → invokeOnCaptureCallback-BW7V3vub.esm.js} +1 -1
- package/dist/lamejs-B6TzhU5q.esm.js +10 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-7dI0D08q.esm.js → mandatoryConsentManager-CX_Dyht7.esm.js} +3 -3
- package/dist/{mandatoryConsentManager-DFVm_i2B.d.ts → mandatoryConsentManager-TkX57U6f.d.ts} +3 -4
- package/dist/{mandatoryConsentStateMachine-DC5Mo6M1.esm.js → mandatoryConsentStateMachine-CoaSB7P7.esm.js} +3 -3
- package/dist/{multipartRecordingService-mwKFTlhR.esm.js → multipartRecordingService-DbeQpXdU.esm.js} +2 -2
- package/dist/{permissionGuards-D6TfVop2.esm.js → permissionGuards-Bf4LbHjC.esm.js} +1 -1
- package/dist/{permissionServices-EY3_Vx6c.esm.js → permissionServices-d2UW0r_L.esm.js} +34 -3
- package/dist/phone-number.d.ts +24 -0
- package/dist/phone-number.esm.js +1922 -0
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-IjhSv5XS.esm.js → phoneManager-BGBcpqsk.esm.js} +31 -22
- package/dist/{phoneManager-BBU8Lq0O.d.ts → phoneManager-BO-LTih5.d.ts} +16 -3
- package/dist/{phoneStateMachine-CXdXufKg.esm.js → phoneStateMachine-CEm2y7yG.esm.js} +39 -20
- package/dist/phoneValidation-DnBcNUNh.esm.js +48 -0
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-FLEWJtv8.esm.js → redirectToMobileManager-B1yQHFLu.esm.js} +4 -4
- package/dist/{redirectToMobileManager-BD2PvT5B.d.ts → redirectToMobileManager-CVsvpVbQ.d.ts} +2 -2
- package/dist/{redirectToMobileStateMachine-CSWWgUTO.esm.js → redirectToMobileStateMachine--Sr9NEVT.esm.js} +5 -5
- package/dist/{rolldown-runtime-FDOR9p9I.esm.js → rolldown-runtime-B-1-B7_t.esm.js} +10 -1
- package/dist/{runChildModule-B2Y_hlix.esm.js → runChildModule-vdxQMCmO.esm.js} +13 -12
- package/dist/safeStorage-UxDrnjwa.esm.js +35 -0
- package/dist/{sdkVersion-N1UiyFiY.esm.js → sdkVersion-F5YZbjip.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +12 -12
- package/dist/selfieErrorUtils-D-tsgEuX.esm.js +21 -0
- package/dist/{selfieManager-BSZG891S.d.ts → selfieManager-1J0IEyFq.d.ts} +2 -8
- package/dist/{selfieManager-AS6wfUvZ.esm.js → selfieManager-26pENXxw.esm.js} +6 -6
- package/dist/selfieStateMachine-BhfKsl3I.esm.js +41 -0
- package/dist/{session-BESZc05k.esm.js → session-Bu7djCsj.esm.js} +5 -5
- package/dist/session.d.ts +15 -3
- package/dist/session.esm.js +30 -5
- package/dist/sessionInitializer-jxbfCnE-.esm.js +974 -0
- package/dist/{setup-BuPbxpwF.esm.js → setup-C38QkrSP.esm.js} +232 -112
- package/dist/{setup-Cyko6cAn.d.ts → setup-lgkQ8dJW.d.ts} +20 -11
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-DGBSWz2_.d.ts → signatureManager-BpVt_Jv7.d.ts} +2 -2
- package/dist/{signatureManager-B72np4ZO.esm.js → signatureManager-qqXyH93e.esm.js} +7 -11
- package/dist/{signatureStateMachine-ce_XMA3l.esm.js → signatureStateMachine-BkRSrkKp.esm.js} +3 -3
- package/dist/splitTrackedName-3zJRd2RD.esm.js +19 -0
- package/dist/{src-35ekGRzK.esm.js → src-DJAJjRYQ.esm.js} +1 -1
- package/dist/{stats-CZcy2J53.esm.js → stats-DmG_tkGk.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{sessionInitializer-CnhAkMUN.esm.js → thumbmark.esm-CRc0cYvz.esm.js} +33 -776
- package/dist/{trueSightService-M5VpCo96.esm.js → trueSightService-BWgRVGIT.esm.js} +893 -900
- package/dist/trust-graph.d.ts +1 -2
- package/dist/trust-graph.esm.js +2 -2
- package/dist/{types-C0oWGUzg.d.ts → types-0L-eFDmr.d.ts} +1 -1
- package/dist/{types-C1g9itHE.d.ts → types-BGXxRwQM.d.ts} +6 -7
- package/dist/{types-BfgmV7s7.d.ts → types-BQA7lRDV.d.ts} +1 -1
- package/dist/{types-CxGdmzxa.d.ts → types-BvFmYX5c.d.ts} +1 -1
- package/dist/{types-Cx-1zo-i.d.ts → types-BvLo3U4u.d.ts} +1 -1
- package/dist/types-C71Zo6vl.d.ts +6 -0
- package/dist/{types-DEGVXwsk2.d.ts → types-CyPUIpzf.d.ts} +110 -62
- package/dist/{types-Bx-BWveD.d.ts → types-DTYr9pCB.d.ts} +1 -1
- package/dist/{types-BjSly8cp.d.ts → types-DUnFZ08M.d.ts} +1 -1
- package/dist/{types-ESdtnHtg.d.ts → types-zpO4fU6a.d.ts} +3 -4
- package/dist/{urlUtils-D6phjq1-.esm.js → urlUtils-6jsE6rKp.esm.js} +9 -1
- package/dist/video-selfie.d.ts +6 -9
- package/dist/video-selfie.esm.js +1386 -1344
- package/dist/{videoSelfieCameraWarmer-q9ZjvXu9.esm.js → videoSelfieCameraWarmer-C366RKqu.esm.js} +11 -11
- package/dist/{videoSelfieFlowModuleMachine-BUe2uACW.esm.js → videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-ChYgFM15.d.ts → videoSelfieStepDetector-C5QHOvWb.d.ts} +4 -4
- package/dist/videoTrimByCopy-BFfAiNpv.esm.js +15901 -0
- package/dist/{warmup-Cis2p6O0.d.ts → warmup-BUPPRAA1.d.ts} +7 -0
- package/dist/{warmup-ChDwHSel.esm.js → warmup-DMtbyb2l.esm.js} +27 -9
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +4 -4
- package/dist/{wasmDsFlagSync-DYrLUEII.esm.js → wasmDsFlagSync-BXCGqP48.esm.js} +1 -1
- package/dist/{wasmWebClient-B7baE-Wf.esm.js → wasmWebClient-kbYZ2sxw.esm.js} +259 -20
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CsnJnG-C.d.ts → watchlistForBusinessManager-B3GDPZrr.d.ts} +2 -2
- package/dist/{watchlistForBusinessManager-CIMkpEhu.esm.js → watchlistForBusinessManager-BvF4jK3S.esm.js} +7 -5
- package/dist/{watchlistForBusinessStateMachine-CJ-MvUre.esm.js → watchlistForBusinessStateMachine-121XK-Et.esm.js} +3 -3
- package/dist/{watchlistManager-CixcLNDT.esm.js → watchlistManager-CNWEOYSq.esm.js} +3 -3
- package/dist/{watchlistManager-DLXef90v.d.ts → watchlistManager-DJQOd8Pw.d.ts} +2 -2
- package/dist/{watchlistStateMachine-CBqk2w-h.esm.js → watchlistStateMachine-Dgfm42w2.esm.js} +3 -3
- package/dist/workflow.d.ts +34 -5
- package/dist/workflow.esm.js +64 -46
- package/dist/{xstate-actors.esm-BXeQ-Ucz.esm.js → xstate-actors.esm-8Gzepa_A.esm.js} +1 -1
- package/dist/{xstate.esm-BuFLFuzz.esm.js → xstate.esm-DSajW7CJ.esm.js} +24 -10
- package/package.json +13 -5
- package/dist/Actor-iTq7YY48.d.ts +0 -1
- package/dist/StateMachine-EDpYWy0i.d.ts +0 -6
- package/dist/fiscalQrManager-DbCVMIBx.esm.js +0 -34143
- package/dist/index-B8weJxmL.d.ts +0 -1
- package/dist/selfieErrorUtils-UiQ46EBa.esm.js +0 -116
- package/dist/selfieStateMachine-DY7vJVNY.esm.js +0 -71
- package/dist/types-BN5RPPIZ.esm.js +0 -34
- package/dist/types-Bt9RuRqt.d.ts +0 -6
- package/dist/virtualCameraCheck-Cjab7FTI.esm.js +0 -48
- /package/dist/{types-BSBzhHRH.d.ts → types-BSBzhHRH2.d.ts} +0 -0
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as getParsedUserAgent } from "./getParsedUserAgent-B2iFDql1.esm.js";
|
|
1
|
+
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
+
import { h as isBrowserSimulation, v as getThumbmarkId, x as fingerprintSignalsReporter } from "./sessionInitializer-jxbfCnE-.esm.js";
|
|
3
|
+
import { t as addDeviceStats } from "./stats-DmG_tkGk.esm.js";
|
|
4
|
+
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
6
5
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
7
|
-
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DYrLUEII.esm.js";
|
|
8
|
-
import { t as MotionSensorProvider } from "./MotionSensorProvider-DyhbM4Si.esm.js";
|
|
9
6
|
import { i as requestCameraAccess, o as stopCameraStream } from "./camera-sIa9ceW2.esm.js";
|
|
7
|
+
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
10
8
|
import { t as createHiddenVideoElement } from "./video-BtSWtHy1.esm.js";
|
|
11
9
|
import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
12
|
-
import { n as runVirtualCameraCheck } from "./virtualCameraCheck-Cjab7FTI.esm.js";
|
|
13
10
|
//#region src/internal/deepsight/metadataService.ts
|
|
14
11
|
function createMetadataService(wasmUtil, visibility, browserEnv, ipLookup) {
|
|
15
12
|
return {
|
|
@@ -67,6 +64,7 @@ function createMetadataService(wasmUtil, visibility, browserEnv, ipLookup) {
|
|
|
67
64
|
labels
|
|
68
65
|
};
|
|
69
66
|
wasmUtil.setCameraInfo(cameraInfo);
|
|
67
|
+
fingerprintSignalsReporter.onCameraInfoUpdated();
|
|
70
68
|
},
|
|
71
69
|
async checkForVirtualCameraByLabel(videoTrack = null) {
|
|
72
70
|
try {
|
|
@@ -132,6 +130,50 @@ function createMotionStatusService(motionSensor) {
|
|
|
132
130
|
};
|
|
133
131
|
}
|
|
134
132
|
//#endregion
|
|
133
|
+
//#region src/internal/virtualCameraCheck.ts
|
|
134
|
+
const frameSources = {
|
|
135
|
+
front: "FRONT_ID",
|
|
136
|
+
back: "BACK_ID",
|
|
137
|
+
selfie: "SELFIE"
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Sends the analyzed frame image to the backend for logging.
|
|
141
|
+
*/
|
|
142
|
+
async function logFrame({ source, base64Image, token }) {
|
|
143
|
+
try {
|
|
144
|
+
return (await api.post("/omni/log/frame/v2", { base64Image }, {
|
|
145
|
+
query: { source },
|
|
146
|
+
headers: { "X-Incode-Hardware-Id": token }
|
|
147
|
+
})).data;
|
|
148
|
+
} catch {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Runs the WASM virtual camera check and handles logging and stats.
|
|
154
|
+
*/
|
|
155
|
+
async function runVirtualCameraCheck({ wasmUtil, source, token }) {
|
|
156
|
+
const output = {
|
|
157
|
+
canvas: null,
|
|
158
|
+
itr: null,
|
|
159
|
+
skipped: null
|
|
160
|
+
};
|
|
161
|
+
await wasmUtil.poc(output);
|
|
162
|
+
if (output.skipped !== false) return;
|
|
163
|
+
if (output.canvas && token) {
|
|
164
|
+
const base64Image = new IncodeCanvas(output.canvas).getBase64Image();
|
|
165
|
+
if (base64Image) logFrame({
|
|
166
|
+
source,
|
|
167
|
+
base64Image,
|
|
168
|
+
token
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
if (output.itr === true) {
|
|
172
|
+
addDeviceStats({ virtualCameraDetected: true });
|
|
173
|
+
wasmUtil.setZc("FAIL");
|
|
174
|
+
} else if (output.itr === false) wasmUtil.setZc("PASS");
|
|
175
|
+
}
|
|
176
|
+
//#endregion
|
|
135
177
|
//#region src/internal/deepsight/deepsightService.ts
|
|
136
178
|
function createDeepsightService(config) {
|
|
137
179
|
const metadata = createMetadataService(config.wasmUtil, config.visibility, config.browserEnv, config.ipLookup);
|
|
@@ -207,51 +249,4 @@ function createDeepsightService(config) {
|
|
|
207
249
|
};
|
|
208
250
|
}
|
|
209
251
|
//#endregion
|
|
210
|
-
|
|
211
|
-
var VisibilityProvider = class {
|
|
212
|
-
constructor() {
|
|
213
|
-
this._wasBackgrounded = false;
|
|
214
|
-
this.visibilityChangeHandler = this.onVisibilityChange.bind(this);
|
|
215
|
-
document.addEventListener("visibilitychange", this.visibilityChangeHandler);
|
|
216
|
-
}
|
|
217
|
-
get wasBackgrounded() {
|
|
218
|
-
return this._wasBackgrounded;
|
|
219
|
-
}
|
|
220
|
-
reset() {
|
|
221
|
-
this._wasBackgrounded = false;
|
|
222
|
-
}
|
|
223
|
-
cleanup() {
|
|
224
|
-
document.removeEventListener("visibilitychange", this.visibilityChangeHandler);
|
|
225
|
-
}
|
|
226
|
-
onVisibilityChange() {
|
|
227
|
-
if (document.hidden) this._wasBackgrounded = true;
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
//#endregion
|
|
231
|
-
//#region src/internal/deepsight/deepsightLoader.ts
|
|
232
|
-
async function loadDeepsightSession(options) {
|
|
233
|
-
try {
|
|
234
|
-
return await loadDeepsightSessionInternal(options);
|
|
235
|
-
} catch (error) {
|
|
236
|
-
trueSightLog("warning", "deepsight", "other", `deepsight load failed error=${String(error)}`);
|
|
237
|
-
throw error;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
async function loadDeepsightSessionInternal(options) {
|
|
241
|
-
setWasmDsFlagSync(options.ds === true);
|
|
242
|
-
const service = createDeepsightService({
|
|
243
|
-
sdkVersion: SDK_VERSION,
|
|
244
|
-
wasmUtil: await WasmUtilProvider.getInstance(),
|
|
245
|
-
visibility: new VisibilityProvider(),
|
|
246
|
-
browserEnv: new BrowserEnvironmentProvider(),
|
|
247
|
-
motionSensor: new MotionSensorProvider(),
|
|
248
|
-
ipLookup: new IpifyProvider()
|
|
249
|
-
});
|
|
250
|
-
const disableIpify = options.disableIpify ?? getDisableIpify();
|
|
251
|
-
const disableFingerprint = options.disableFingerprint ?? !getFingerprintEnabled();
|
|
252
|
-
await service.initialize(disableIpify, disableFingerprint);
|
|
253
|
-
await service.startMotionSensors();
|
|
254
|
-
return service;
|
|
255
|
-
}
|
|
256
|
-
//#endregion
|
|
257
|
-
export { loadDeepsightSession };
|
|
252
|
+
export { frameSources as n, runVirtualCameraCheck as r, createDeepsightService as t };
|
package/dist/device.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import { a as isIOS, f as isTabletWithoutAndroid, l as isIslandBrowser, n as isA
|
|
|
2
2
|
import { n as getUserAgentBrands, t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
3
3
|
import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
4
4
|
import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
5
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
5
|
+
import { t as getDeviceClass } from "./getDeviceClass-bsWdEDxP.esm.js";
|
|
6
6
|
//#region src/internal/device/browserSupportClassification.ts
|
|
7
7
|
/**
|
|
8
8
|
* Third-party in-app browsers. These are real WebViews — `isAndroidWebView` and
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType } from "./types-
|
|
2
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
1
|
+
import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType } from "./types-DUnFZ08M.js";
|
|
2
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-DkyDtm3Y.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-
|
|
1
|
+
import { r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-BHDsCfhL.esm.js";
|
|
2
|
+
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-C9XUnYU6.esm.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
package/dist/{documentCaptureManager-BRPxqYD2.esm.js → documentCaptureManager-C9XUnYU6.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import { s as createActor, u as createManager } from "./xstate.esm-
|
|
4
|
-
import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
3
|
+
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { n as DEFAULT_MAX_FILE_SIZE, r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-BHDsCfhL.esm.js";
|
|
5
5
|
//#region src/modules/document-capture/documentCaptureActor.ts
|
|
6
6
|
function createDocumentCaptureActor(options) {
|
|
7
7
|
return createActor(documentCaptureMachine, { input: { config: options.config } }).start();
|
|
@@ -71,8 +71,8 @@ function getDocumentCaptureScreenName(snapshot) {
|
|
|
71
71
|
return "documentCapture.capture.default";
|
|
72
72
|
case "preview": return isFileMethod ? "documentCapture.confirmUpload.reviewFile" : "documentCapture.confirmImage.reviewPhoto";
|
|
73
73
|
case "uploading": return isFileMethod ? "documentCapture.confirmUpload.analyzing" : "documentCapture.confirmImage.analyzing";
|
|
74
|
-
case "success":
|
|
75
|
-
case "finished": return
|
|
74
|
+
case "success": return isFileMethod ? "documentCapture.confirmUpload.success" : "documentCapture.confirmImage.success";
|
|
75
|
+
case "finished": return "";
|
|
76
76
|
case "failure": return (context.attemptsRemaining ?? 0) > 0 ? "documentCapture.errors.genericError" : "documentCapture.errors.genericErrorExhausted";
|
|
77
77
|
case "nextPage": {
|
|
78
78
|
const nextPageType = context.nextPageType;
|
|
@@ -105,7 +105,8 @@ function mapState(snapshot) {
|
|
|
105
105
|
methodSelectionOpen: context.methodSelectionOpen,
|
|
106
106
|
onlyPdf: context.config.onlyPdf,
|
|
107
107
|
error: context.error,
|
|
108
|
-
pageNumber: context.pageNumber
|
|
108
|
+
pageNumber: context.pageNumber,
|
|
109
|
+
maxFileSize: context.config.maxFileSize
|
|
109
110
|
};
|
|
110
111
|
}
|
|
111
112
|
if (typedSnapshot.matches("permissions")) return {
|
|
@@ -122,7 +123,8 @@ function mapState(snapshot) {
|
|
|
122
123
|
helpOpen: context.helpOpen,
|
|
123
124
|
onlyPdf: context.config.onlyPdf,
|
|
124
125
|
error: context.error,
|
|
125
|
-
pageNumber: context.pageNumber
|
|
126
|
+
pageNumber: context.pageNumber,
|
|
127
|
+
maxFileSize: context.config.maxFileSize
|
|
126
128
|
};
|
|
127
129
|
if (typedSnapshot.matches("preview")) return {
|
|
128
130
|
status: "preview",
|
|
@@ -173,7 +175,8 @@ function mapState(snapshot) {
|
|
|
173
175
|
methodSelectionOpen: false,
|
|
174
176
|
onlyPdf: false,
|
|
175
177
|
error: void 0,
|
|
176
|
-
pageNumber: 1
|
|
178
|
+
pageNumber: 1,
|
|
179
|
+
maxFileSize: DEFAULT_MAX_FILE_SIZE
|
|
177
180
|
};
|
|
178
181
|
}
|
|
179
182
|
function createApi({ actor, trackElementClicked }) {
|
|
@@ -269,15 +272,7 @@ function getDocumentCaptureErrorPayload(snapshot) {
|
|
|
269
272
|
return { errorCode };
|
|
270
273
|
}
|
|
271
274
|
function createDocumentCaptureManager(options) {
|
|
272
|
-
return
|
|
273
|
-
actor: createDocumentCaptureActor(options),
|
|
274
|
-
mapState,
|
|
275
|
-
createApi,
|
|
276
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.document, {
|
|
277
|
-
getEventScreenName: getDocumentCaptureScreenName,
|
|
278
|
-
getErrorPayload: getDocumentCaptureErrorPayload
|
|
279
|
-
})
|
|
280
|
-
});
|
|
275
|
+
return createDocumentCaptureManagerFromActor(createDocumentCaptureActor(options));
|
|
281
276
|
}
|
|
282
277
|
/**
|
|
283
278
|
* Creates a document-capture manager from a pre-built actor.
|
|
@@ -289,7 +284,11 @@ function createDocumentCaptureManagerFromActor(actor) {
|
|
|
289
284
|
actor,
|
|
290
285
|
mapState,
|
|
291
286
|
createApi,
|
|
292
|
-
|
|
287
|
+
beforeStop: () => actor.send({ type: "CLOSE" }),
|
|
288
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.document, {
|
|
289
|
+
getEventScreenName: getDocumentCaptureScreenName,
|
|
290
|
+
getErrorPayload: getDocumentCaptureErrorPayload
|
|
291
|
+
})
|
|
293
292
|
});
|
|
294
293
|
}
|
|
295
294
|
//#endregion
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, d as DoneActorEvent, f as ErrorActorEvent, 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, t as ActionFunction, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
import "./Actor-iTq7YY48.js";
|
|
2
|
+
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
|
+
import "./Actor-DpTj5PFb.js";
|
|
5
4
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
6
|
-
import { a as DocumentCaptureErrorCode, c as DocumentType, i as DocumentCaptureContext, l as DocumentUploadResponse, o as DocumentCaptureInput, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType, t as CapturedDocument, u as FinalizeDocumentResponse } from "./types-
|
|
5
|
+
import { a as DocumentCaptureErrorCode, c as DocumentType, i as DocumentCaptureContext, l as DocumentUploadResponse, o as DocumentCaptureInput, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType, t as CapturedDocument, u as FinalizeDocumentResponse } from "./types-DUnFZ08M.js";
|
|
7
6
|
//#region src/modules/document-capture/documentCaptureStateMachine.d.ts
|
|
8
7
|
declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
9
8
|
type: "CAPTURE";
|
|
@@ -258,6 +257,9 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
258
257
|
}, string, DocumentCaptureInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
259
258
|
readonly id: "documentCapture";
|
|
260
259
|
readonly initial: "tutorial";
|
|
260
|
+
readonly on: {
|
|
261
|
+
readonly CLOSE: ".closed";
|
|
262
|
+
};
|
|
261
263
|
readonly context: ({ input }: {
|
|
262
264
|
spawn: {
|
|
263
265
|
<TSrc extends "uploadDocument" | "requestPermission" | "checkPermission" | "initCamera" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
|
|
@@ -555,9 +557,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
555
557
|
readonly target: "finished";
|
|
556
558
|
readonly guard: "allowSkip";
|
|
557
559
|
};
|
|
558
|
-
readonly CLOSE: {
|
|
559
|
-
readonly target: "closed";
|
|
560
|
-
};
|
|
561
560
|
};
|
|
562
561
|
};
|
|
563
562
|
readonly permissions: {
|
|
@@ -1474,11 +1473,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
1474
1473
|
}>, never, never, never, never>;
|
|
1475
1474
|
};
|
|
1476
1475
|
};
|
|
1477
|
-
readonly on: {
|
|
1478
|
-
readonly CLOSE: {
|
|
1479
|
-
readonly target: "closed";
|
|
1480
|
-
};
|
|
1481
|
-
};
|
|
1482
1476
|
};
|
|
1483
1477
|
readonly initCamera: {
|
|
1484
1478
|
readonly invoke: {
|
|
@@ -1494,11 +1488,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
1494
1488
|
readonly actions: "setUploadError";
|
|
1495
1489
|
};
|
|
1496
1490
|
};
|
|
1497
|
-
readonly on: {
|
|
1498
|
-
readonly CLOSE: {
|
|
1499
|
-
readonly target: "closed";
|
|
1500
|
-
};
|
|
1501
|
-
};
|
|
1502
1491
|
};
|
|
1503
1492
|
readonly capturing: {
|
|
1504
1493
|
readonly on: {
|
|
@@ -1520,10 +1509,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
1520
1509
|
readonly target: "capturing";
|
|
1521
1510
|
readonly actions: "setFileTooLargeError";
|
|
1522
1511
|
}];
|
|
1523
|
-
readonly CLOSE: {
|
|
1524
|
-
readonly target: "closed";
|
|
1525
|
-
readonly actions: "stopStream";
|
|
1526
|
-
};
|
|
1527
1512
|
};
|
|
1528
1513
|
};
|
|
1529
1514
|
readonly preview: {
|
|
@@ -1544,10 +1529,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
1544
1529
|
readonly target: "capturing";
|
|
1545
1530
|
readonly actions: "clearCapturedDocument";
|
|
1546
1531
|
}];
|
|
1547
|
-
readonly CLOSE: {
|
|
1548
|
-
readonly target: "closed";
|
|
1549
|
-
readonly actions: "stopStream";
|
|
1550
|
-
};
|
|
1551
1532
|
};
|
|
1552
1533
|
};
|
|
1553
1534
|
readonly uploading: {
|
|
@@ -1728,9 +1709,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
1728
1709
|
}, {
|
|
1729
1710
|
readonly target: "finished";
|
|
1730
1711
|
}];
|
|
1731
|
-
readonly CLOSE: {
|
|
1732
|
-
readonly target: "closed";
|
|
1733
|
-
};
|
|
1734
1712
|
};
|
|
1735
1713
|
};
|
|
1736
1714
|
readonly nextPage: {
|
|
@@ -1749,9 +1727,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
1749
1727
|
}, {
|
|
1750
1728
|
readonly target: "finished";
|
|
1751
1729
|
}];
|
|
1752
|
-
readonly CLOSE: {
|
|
1753
|
-
readonly target: "closed";
|
|
1754
|
-
};
|
|
1755
1730
|
};
|
|
1756
1731
|
};
|
|
1757
1732
|
readonly finalizing: {
|
|
@@ -1923,9 +1898,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
1923
1898
|
readonly target: "finished";
|
|
1924
1899
|
readonly guard: "attemptsExhausted";
|
|
1925
1900
|
};
|
|
1926
|
-
readonly CLOSE: {
|
|
1927
|
-
readonly target: "closed";
|
|
1928
|
-
};
|
|
1929
1901
|
};
|
|
1930
1902
|
};
|
|
1931
1903
|
readonly finished: {
|
|
@@ -1933,6 +1905,7 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
1933
1905
|
};
|
|
1934
1906
|
readonly closed: {
|
|
1935
1907
|
readonly type: "final";
|
|
1908
|
+
readonly entry: "stopStream";
|
|
1936
1909
|
};
|
|
1937
1910
|
};
|
|
1938
1911
|
}>;
|
|
@@ -1956,6 +1929,8 @@ type DocumentCaptureTutorialState = {
|
|
|
1956
1929
|
onlyPdf: boolean;
|
|
1957
1930
|
error: DocumentCaptureErrorCode | undefined;
|
|
1958
1931
|
pageNumber: number;
|
|
1932
|
+
/** Resolved max upload size in bytes (defaults to 10MB when unconfigured). */
|
|
1933
|
+
maxFileSize: number;
|
|
1959
1934
|
};
|
|
1960
1935
|
type DocumentCapturePermissionsState = {
|
|
1961
1936
|
status: 'permissions';
|
|
@@ -1974,6 +1949,8 @@ type DocumentCaptureCapturingState = {
|
|
|
1974
1949
|
onlyPdf: boolean;
|
|
1975
1950
|
error: DocumentCaptureErrorCode | undefined;
|
|
1976
1951
|
pageNumber: number;
|
|
1952
|
+
/** Resolved max upload size in bytes (defaults to 10MB when unconfigured). */
|
|
1953
|
+
maxFileSize: number;
|
|
1977
1954
|
};
|
|
1978
1955
|
type DocumentCapturePreviewState = {
|
|
1979
1956
|
status: 'preview';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
2
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
5
|
import { o as stopCameraStream } from "./camera-sIa9ceW2.esm.js";
|
|
6
|
-
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-
|
|
7
|
-
import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
8
|
-
import { n as getBackCameraStream } from "./backCameraStream-
|
|
6
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-d2UW0r_L.esm.js";
|
|
7
|
+
import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-Bf4LbHjC.esm.js";
|
|
8
|
+
import { n as getBackCameraStream } from "./backCameraStream-CMvXj4X4.esm.js";
|
|
9
9
|
//#region src/modules/document-capture/types.ts
|
|
10
10
|
const PROCESSING_TYPE_MAP = {
|
|
11
11
|
processV5CLogbook: "v5cMultiPageLogbook",
|
|
@@ -38,6 +38,15 @@ const DOCUMENT_CAPTURE_ERROR_CODES = {
|
|
|
38
38
|
const DOCUMENT_CAPTURE_FINALIZE_ERROR_CODES = { UNEXPECTED_ERROR: "UNEXPECTED_ERROR" };
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region src/modules/document-capture/documentCaptureUploadService.ts
|
|
41
|
+
const ADDRESS_STATEMENT_PROCESSING_TYPES = /* @__PURE__ */ new Set([
|
|
42
|
+
"processPoaOcr",
|
|
43
|
+
"processLoaOcr",
|
|
44
|
+
"processAsylumSeekerVisaZaf",
|
|
45
|
+
"processBankStatementOCR",
|
|
46
|
+
"processBankCheck",
|
|
47
|
+
"processIneMex",
|
|
48
|
+
"processColombiaRutForm"
|
|
49
|
+
]);
|
|
41
50
|
function isMultiPageDocumentType(processingType) {
|
|
42
51
|
return MULTI_PAGE_TYPES.includes(processingType);
|
|
43
52
|
}
|
|
@@ -53,16 +62,18 @@ function resolveUploadUrl(processingType, fileFormat, sendBase64 = false) {
|
|
|
53
62
|
if (isMultiPageDocumentType(resolvedType)) return buildUrl(endpoints.documentV3, resolvedType, format);
|
|
54
63
|
if (V3_SINGLE_PAGE_TYPES.has(resolvedType)) return buildUrl(endpoints.documentV3, resolvedType, format);
|
|
55
64
|
if (resolvedType === "carInvoice") return buildUrl(endpoints.cfdi, resolvedType, format);
|
|
56
|
-
if (
|
|
65
|
+
if (ADDRESS_STATEMENT_PROCESSING_TYPES.has(resolvedType)) return buildUrl(endpoints.addressStatement, resolvedType, format);
|
|
66
|
+
if (!sendBase64) return buildUrl(endpoints.documentLegacy, OTHER_DOCUMENT_TYPES.has(resolvedType) ? resolvedType : "addressStatement", format);
|
|
57
67
|
if (OTHER_DOCUMENT_TYPES.has(resolvedType)) return buildUrl(endpoints.addDocument, resolvedType, format);
|
|
58
68
|
if (resolvedType === "addressStatement" || !resolvedType) return buildUrl(endpoints.addressStatement, resolvedType || "addressStatement", format);
|
|
59
69
|
return buildUrl(endpoints.addressStatement, processingType, format);
|
|
60
70
|
}
|
|
61
71
|
async function uploadDocumentCapture({ file, base64Image, sendBase64 = false, processingType, fileFormat, onProgress, signal }) {
|
|
62
72
|
const url = resolveUploadUrl(processingType, fileFormat, sendBase64);
|
|
63
|
-
const
|
|
73
|
+
const useBase64 = !url.startsWith(`${endpoints.documentLegacy}?`);
|
|
74
|
+
const body = useBase64 ? { base64Image: base64Image.includes(",") ? base64Image.split(",")[1] : base64Image } : file;
|
|
64
75
|
const response = await api.post(url, body, {
|
|
65
|
-
headers: { "Content-Type":
|
|
76
|
+
headers: { "Content-Type": useBase64 ? "application/json" : file.type },
|
|
66
77
|
signal,
|
|
67
78
|
onUploadProgress: onProgress
|
|
68
79
|
});
|
|
@@ -211,6 +222,7 @@ const documentCaptureMachine = setup({
|
|
|
211
222
|
}).createMachine({
|
|
212
223
|
id: "documentCapture",
|
|
213
224
|
initial: "tutorial",
|
|
225
|
+
on: { CLOSE: ".closed" },
|
|
214
226
|
context: ({ input }) => {
|
|
215
227
|
const { processingType = "addressStatement", captureMode, allowSkipDocumentCapture, disableSkipPoa, captureAttempts = 3, sendBase64 = false, maxFileSize = DEFAULT_MAX_FILE_SIZE, onlyPdf = false, title, text, step2Title, step2Text } = input.config;
|
|
216
228
|
return {
|
|
@@ -270,8 +282,7 @@ const documentCaptureMachine = setup({
|
|
|
270
282
|
SKIP: {
|
|
271
283
|
target: "finished",
|
|
272
284
|
guard: "allowSkip"
|
|
273
|
-
}
|
|
274
|
-
CLOSE: { target: "closed" }
|
|
285
|
+
}
|
|
275
286
|
} },
|
|
276
287
|
permissions: {
|
|
277
288
|
initial: "idle",
|
|
@@ -340,25 +351,21 @@ const documentCaptureMachine = setup({
|
|
|
340
351
|
onError: { target: "denied" }
|
|
341
352
|
} },
|
|
342
353
|
denied: { entry: assign({ permissionResult: () => "refresh" }) }
|
|
343
|
-
}
|
|
344
|
-
on: { CLOSE: { target: "closed" } }
|
|
354
|
+
}
|
|
345
355
|
},
|
|
346
|
-
initCamera: {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
actions: "setStream"
|
|
354
|
-
},
|
|
355
|
-
onError: {
|
|
356
|
-
target: "failure",
|
|
357
|
-
actions: "setUploadError"
|
|
358
|
-
}
|
|
356
|
+
initCamera: { invoke: {
|
|
357
|
+
id: "initCamera",
|
|
358
|
+
src: "initCamera",
|
|
359
|
+
input: void 0,
|
|
360
|
+
onDone: {
|
|
361
|
+
target: "capturing",
|
|
362
|
+
actions: "setStream"
|
|
359
363
|
},
|
|
360
|
-
|
|
361
|
-
|
|
364
|
+
onError: {
|
|
365
|
+
target: "failure",
|
|
366
|
+
actions: "setUploadError"
|
|
367
|
+
}
|
|
368
|
+
} },
|
|
362
369
|
capturing: { on: {
|
|
363
370
|
OPEN_HELP: { actions: "openHelp" },
|
|
364
371
|
CLOSE_HELP: { actions: "closeHelp" },
|
|
@@ -381,11 +388,7 @@ const documentCaptureMachine = setup({
|
|
|
381
388
|
target: "capturing",
|
|
382
389
|
actions: "setFileTooLargeError"
|
|
383
390
|
}
|
|
384
|
-
]
|
|
385
|
-
CLOSE: {
|
|
386
|
-
target: "closed",
|
|
387
|
-
actions: "stopStream"
|
|
388
|
-
}
|
|
391
|
+
]
|
|
389
392
|
} },
|
|
390
393
|
preview: { on: {
|
|
391
394
|
ACCEPT: {
|
|
@@ -407,11 +410,7 @@ const documentCaptureMachine = setup({
|
|
|
407
410
|
target: "capturing",
|
|
408
411
|
actions: "clearCapturedDocument"
|
|
409
412
|
}
|
|
410
|
-
]
|
|
411
|
-
CLOSE: {
|
|
412
|
-
target: "closed",
|
|
413
|
-
actions: "stopStream"
|
|
414
|
-
}
|
|
413
|
+
]
|
|
415
414
|
} },
|
|
416
415
|
uploading: {
|
|
417
416
|
invoke: {
|
|
@@ -446,20 +445,17 @@ const documentCaptureMachine = setup({
|
|
|
446
445
|
},
|
|
447
446
|
on: { UPLOAD_PROGRESS: { actions: "setProgress" } }
|
|
448
447
|
},
|
|
449
|
-
success: { on: {
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
],
|
|
461
|
-
CLOSE: { target: "closed" }
|
|
462
|
-
} },
|
|
448
|
+
success: { on: { CONTINUE: [
|
|
449
|
+
{
|
|
450
|
+
target: "nextPage",
|
|
451
|
+
guard: "isNextPageOptional"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
target: "nextPage",
|
|
455
|
+
guard: "isNextPageRequired"
|
|
456
|
+
},
|
|
457
|
+
{ target: "finished" }
|
|
458
|
+
] } },
|
|
463
459
|
nextPage: { on: {
|
|
464
460
|
NEXT_PAGE_CAMERA: {
|
|
465
461
|
target: "permissions",
|
|
@@ -472,8 +468,7 @@ const documentCaptureMachine = setup({
|
|
|
472
468
|
ALL_PAGES_CAPTURED: [{
|
|
473
469
|
target: "finalizing",
|
|
474
470
|
guard: "canFinalizeOptionalPages"
|
|
475
|
-
}, { target: "finished" }]
|
|
476
|
-
CLOSE: { target: "closed" }
|
|
471
|
+
}, { target: "finished" }]
|
|
477
472
|
} },
|
|
478
473
|
finalizing: { invoke: {
|
|
479
474
|
id: "finalizeDocument",
|
|
@@ -498,12 +493,14 @@ const documentCaptureMachine = setup({
|
|
|
498
493
|
CONTINUE: {
|
|
499
494
|
target: "finished",
|
|
500
495
|
guard: "attemptsExhausted"
|
|
501
|
-
}
|
|
502
|
-
CLOSE: { target: "closed" }
|
|
496
|
+
}
|
|
503
497
|
} },
|
|
504
498
|
finished: { type: "final" },
|
|
505
|
-
closed: {
|
|
499
|
+
closed: {
|
|
500
|
+
type: "final",
|
|
501
|
+
entry: "stopStream"
|
|
502
|
+
}
|
|
506
503
|
}
|
|
507
504
|
});
|
|
508
505
|
//#endregion
|
|
509
|
-
export {
|
|
506
|
+
export { DEFAULT_MAX_FILE_SIZE as n, DOCUMENT_CAPTURE_ERROR_CODES as r, documentCaptureMachine as t };
|
package/dist/dynamic-forms.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as Screen, n as InputType, r as Question, t as DynamicFormsConfig } from "./types-
|
|
2
|
-
import { c as DynamicFormsValidationErrors, n as DynamicFormsState, o as DynamicFormsResult, r as createDynamicFormsManager, s as dynamicFormsMachine, t as DynamicFormsManager } from "./dynamicFormsManager-
|
|
1
|
+
import { i as Screen, n as InputType, r as Question, t as DynamicFormsConfig } from "./types-BSBzhHRH2.js";
|
|
2
|
+
import { c as DynamicFormsValidationErrors, n as DynamicFormsState, o as DynamicFormsResult, r as createDynamicFormsManager, s as dynamicFormsMachine, t as DynamicFormsManager } from "./dynamicFormsManager-C0dHs1ty.js";
|
|
3
3
|
export { type DynamicFormsConfig, type DynamicFormsManager, type DynamicFormsResult, type DynamicFormsState, type DynamicFormsValidationErrors, type InputType, type Question, type Screen, createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
2
|
-
import { t as createDynamicFormsManager } from "./dynamicFormsManager-
|
|
1
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DQmok084.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-5uIXobxi.esm.js";
|
|
3
3
|
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import { s as createActor, u as createManager } from "./xstate.esm-
|
|
4
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
3
|
+
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DQmok084.esm.js";
|
|
5
5
|
//#region src/modules/dynamic-forms/dynamicFormsActor.ts
|
|
6
6
|
function createDynamicFormsActor(options) {
|
|
7
7
|
return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./Actor-
|
|
4
|
-
import { i as Screen, t as DynamicFormsConfig } from "./types-
|
|
2
|
+
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
|
+
import "./Actor-DpTj5PFb.js";
|
|
4
|
+
import { i as Screen, t as DynamicFormsConfig } from "./types-BSBzhHRH2.js";
|
|
5
5
|
//#region src/modules/dynamic-forms/dynamicFormsFields.d.ts
|
|
6
6
|
/** Map of `questionId` → currently-displayed i18n error key. */
|
|
7
7
|
type DynamicFormsValidationErrors = Partial<Record<string, string>>;
|
package/dist/{dynamicFormsStateMachine-DGI_F2PP.esm.js → dynamicFormsStateMachine-DQmok084.esm.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-
|
|
4
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
5
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
2
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
|
+
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-DcSWedC6.esm.js";
|
|
4
|
+
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
6
|
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
|
7
7
|
//#region src/modules/dynamic-forms/dynamicFormsFields.ts
|
|
8
8
|
function getEffectiveType(question) {
|
package/dist/ekyb.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { c as AddressSuggestion } from "./types-
|
|
3
|
-
import { i as FlowModuleConfig } from "./types-
|
|
4
|
-
import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-
|
|
5
|
-
import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-
|
|
1
|
+
import "./Manager-C9T5amUN.js";
|
|
2
|
+
import { c as AddressSuggestion } from "./types-BvLo3U4u.js";
|
|
3
|
+
import { i as FlowModuleConfig } from "./types-BGXxRwQM.js";
|
|
4
|
+
import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-0L-eFDmr.js";
|
|
5
|
+
import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-BaZ_7CEu.js";
|
|
6
6
|
//#region src/modules/ekyb/ekybServices.d.ts
|
|
7
7
|
type EkybFlowConfig = FlowModuleConfig['EKYB'];
|
|
8
8
|
//#endregion
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-
|
|
2
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
3
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
1
|
+
import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-DA64AEZC.esm.js";
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-hstiCNmW.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-CazShiQz.esm.js";
|
|
4
4
|
export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
|