@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,18 +1,26 @@
|
|
|
1
1
|
import { A as StateMachine, i as ActorRefFrom, l as AnyStateMachine } 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 { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./createFaceAvatar-
|
|
8
|
-
import { a as RegulationTypes } from "./types-
|
|
9
|
-
import { n as
|
|
5
|
+
import "./index-DpTj5PFb.js";
|
|
6
|
+
import "./createFaceAvatar-DXgmQmQy.js";
|
|
7
|
+
import { a as RegulationTypes } from "./types-BGXxRwQM.js";
|
|
8
|
+
import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, t as FingerprintSignalType } from "./IWasmUtilCapability-CPX0RGdQ.js";
|
|
10
9
|
import { n as PermissionStatus } from "./types-BEwVKkLJ.js";
|
|
11
|
-
import { t as BaseWasmProvider } from "./BaseWasmProvider-
|
|
12
|
-
import { n as DeepsightService } from "./StreamCanvasCapture-
|
|
10
|
+
import { t as BaseWasmProvider } from "./BaseWasmProvider-BL9wIRnN.js";
|
|
11
|
+
import { n as DeepsightService } from "./StreamCanvasCapture-DVmzJux5.js";
|
|
13
12
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
14
|
-
import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-
|
|
15
|
-
import {
|
|
13
|
+
import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-DBsv9-7M.js";
|
|
14
|
+
import { A as DeviceWalletDecision, E as IdErrorCode, F as DeviceWalletProvider, G as DigitalIdProviderId, I as DeviceWalletServices, J as IDigitalCredentialsCapability, K as FailureReason, M as DeviceWalletFailReason, O as UploadIdResponse, P as DeviceWalletPlatform, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DeviceWalletDecryptResponse, k as IAnalyticsCapability, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode } from "./types-CyPUIpzf.js";
|
|
15
|
+
//#region src/internal/http/endpoints.d.ts
|
|
16
|
+
/**
|
|
17
|
+
* Backend `CaptureType` for the `captureType` query param on `add/front-id`,
|
|
18
|
+
* `add/back-id` (incl. second-id and protected) and `add/face`. It is the only
|
|
19
|
+
* source of the session's front/back/selfie capture type. Case-sensitive Java
|
|
20
|
+
* enum: an unknown value returns 400. `NATIVE` is for the mobile SDKs.
|
|
21
|
+
*/
|
|
22
|
+
type CaptureType = 'AUTO' | 'MANUAL' | 'UPLOAD';
|
|
23
|
+
//#endregion
|
|
16
24
|
//#region ../infra/src/providers/wasm/WasmUtilProvider.d.ts
|
|
17
25
|
declare class WasmUtilProvider extends BaseWasmProvider implements IWasmUtilCapability {
|
|
18
26
|
private static instance;
|
|
@@ -35,15 +43,16 @@ declare class WasmUtilProvider extends BaseWasmProvider implements IWasmUtilCapa
|
|
|
35
43
|
setInspectorOpened(opened: boolean): void;
|
|
36
44
|
getInspectorOpened(): boolean;
|
|
37
45
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* logs are emitted. The SDK forces this to `true` by default and only flips
|
|
41
|
-
* it off when the caller opts in via `setup({ wasm: { showLogs: true } })`.
|
|
46
|
+
* Retained for callers that manually control the native log level. Console
|
|
47
|
+
* output still requires `wasm.showLogs: true` at the first module load.
|
|
42
48
|
*
|
|
43
|
-
* @param productionMode - `true`
|
|
49
|
+
* @param productionMode - `true` for native errors only, `false` for debug logs.
|
|
44
50
|
*/
|
|
45
51
|
setProductionMode(productionMode: boolean): Promise<void>;
|
|
46
52
|
getMetadata(): string;
|
|
53
|
+
setBehaviourSignalsCollection(enabled: boolean): void;
|
|
54
|
+
getFingerprintSignals(type: FingerprintSignalType): Promise<string>;
|
|
55
|
+
prefetchFingerprintSignals(): Promise<void>;
|
|
47
56
|
analyzeFrame(image: ImageData): Promise<void>;
|
|
48
57
|
getCheck(): string;
|
|
49
58
|
getPipelineState(): string;
|
|
@@ -86,7 +95,8 @@ type UploadIdImageParams = {
|
|
|
86
95
|
sharpness?: number;
|
|
87
96
|
shouldSkipGlareBack?: boolean;
|
|
88
97
|
shouldSkipGlareFront?: boolean;
|
|
89
|
-
captureType
|
|
98
|
+
/** Sent as the `captureType` query param when set. */
|
|
99
|
+
captureType?: CaptureType;
|
|
90
100
|
ageAssurance?: boolean;
|
|
91
101
|
onProgress?: (progress: number) => void;
|
|
92
102
|
metadata?: string;
|
|
@@ -158,40 +168,6 @@ declare function stopRecording(session: object): void;
|
|
|
158
168
|
declare function processId(isSecondId?: boolean, queueName?: string, signal?: AbortSignal): Promise<{
|
|
159
169
|
isDocumentExpired: boolean;
|
|
160
170
|
}>;
|
|
161
|
-
type UploadManualIdFileParams = {
|
|
162
|
-
side: 'front' | 'back' | 'passport';
|
|
163
|
-
/**
|
|
164
|
-
* Raw base64 payload (no `data:<mime>;base64,` prefix). Callers must strip
|
|
165
|
-
* the data-URL prefix — the v2 backend rejects data URLs with
|
|
166
|
-
* `IllegalArgumentException: Illegal base64 character 3a`.
|
|
167
|
-
*/
|
|
168
|
-
base64Image: string;
|
|
169
|
-
retry?: boolean;
|
|
170
|
-
onlyFront?: boolean;
|
|
171
|
-
signal?: AbortSignal;
|
|
172
|
-
isSecondId?: boolean;
|
|
173
|
-
/**
|
|
174
|
-
* [ENG-44176] When `false`, attaches `extractIdFace=false` to the upload
|
|
175
|
-
* so the backend skips biometric face extraction. Forwarded only for the
|
|
176
|
-
* `front` and `passport` sides; back uploads ignore it. Omitted / `true`
|
|
177
|
-
* is a no-op on the wire.
|
|
178
|
-
*/
|
|
179
|
-
extractIdFace?: boolean;
|
|
180
|
-
};
|
|
181
|
-
/**
|
|
182
|
-
* Upload a user-selected image as front / back / passport ID.
|
|
183
|
-
*
|
|
184
|
-
* Uses the same request shape as the live-camera path (`uploadIdImage`):
|
|
185
|
-
* JSON body `{ base64Image }` with default application/json Content-Type,
|
|
186
|
-
* `captureType=UPLOAD` query param, `retry=true` when retrying.
|
|
187
|
-
* Back is POSTed to `/omni/add/back-id/v2` (or `/omni/add/back-second-id/v2`
|
|
188
|
-
* when `isSecondId`); front and passport go to `/omni/add/front-id/v2` (or
|
|
189
|
-
* `/omni/add/front-second-id/v2` when `isSecondId`).
|
|
190
|
-
*
|
|
191
|
-
* The v2 endpoints reject raw `image/jpeg` bodies with 415, so the caller
|
|
192
|
-
* must convert the File to base64 before calling this service.
|
|
193
|
-
*/
|
|
194
|
-
declare function uploadManualIdFile(params: UploadManualIdFileParams): Promise<UploadIdResponse>;
|
|
195
171
|
/**
|
|
196
172
|
* UTF-8-safe base64 encoding of a decoded barcode payload. Uses the browser
|
|
197
173
|
* `TextEncoder` + `btoa` (always available in the SDK's target environment) so
|
|
@@ -252,6 +228,164 @@ declare function createIdCaptureOnlyActor(options: CreateIdCaptureOnlyActorOptio
|
|
|
252
228
|
//#region src/modules/id/digitalUpload/types.d.ts
|
|
253
229
|
type DigitalUploadFailReason = 'DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED' | 'ID_TYPE_UNACCEPTABLE' | 'FILE_CHANGED_ERROR' | 'INVALID_FILE_TYPE' | 'NETWORK_ERROR' | 'GENERIC';
|
|
254
230
|
//#endregion
|
|
231
|
+
//#region src/modules/id/deviceWallet/deviceWalletActor.d.ts
|
|
232
|
+
type CreateDeviceWalletActorOptions = {
|
|
233
|
+
/**
|
|
234
|
+
* Force a wallet backend. Omit to auto-detect from the device
|
|
235
|
+
* (`apple_web` on iOS/iPadOS and macOS Safari, `google` elsewhere).
|
|
236
|
+
*/
|
|
237
|
+
provider?: DeviceWalletProvider;
|
|
238
|
+
/** Override the Digital Credentials capability (tests, custom hosts). */
|
|
239
|
+
credentials?: IDigitalCredentialsCapability;
|
|
240
|
+
/** Override the request/decrypt services (tests, custom backends). */
|
|
241
|
+
services?: DeviceWalletServices;
|
|
242
|
+
};
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region src/modules/id/deviceWallet/deviceWalletManager.d.ts
|
|
245
|
+
/** The backend wallet-request payload is being fetched. */
|
|
246
|
+
type DeviceWalletRequestingState = {
|
|
247
|
+
status: 'requesting';
|
|
248
|
+
platform: DeviceWalletPlatform;
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* The OS wallet sheet is open. Reached only from a user gesture — iOS Safari
|
|
252
|
+
* requires transient user activation for `navigator.credentials.get()`.
|
|
253
|
+
*/
|
|
254
|
+
type DeviceWalletPresentingState = {
|
|
255
|
+
status: 'presenting';
|
|
256
|
+
platform: DeviceWalletPlatform;
|
|
257
|
+
};
|
|
258
|
+
/** The opaque wallet response is being decrypted server-side. */
|
|
259
|
+
type DeviceWalletDecryptingState = {
|
|
260
|
+
status: 'decrypting';
|
|
261
|
+
platform: DeviceWalletPlatform;
|
|
262
|
+
};
|
|
263
|
+
/**
|
|
264
|
+
* The handshake completed. A `REJECTED` decision is still a completed
|
|
265
|
+
* handshake — the decision is data, not a failure.
|
|
266
|
+
*
|
|
267
|
+
* The verified ID attributes are NOT here: they land in the session and are
|
|
268
|
+
* read back through the standard OCR / score APIs.
|
|
269
|
+
*/
|
|
270
|
+
type DeviceWalletFinishedState = {
|
|
271
|
+
status: 'finished';
|
|
272
|
+
platform: DeviceWalletPlatform;
|
|
273
|
+
decision: DeviceWalletDecision | undefined;
|
|
274
|
+
response: DeviceWalletDecryptResponse;
|
|
275
|
+
};
|
|
276
|
+
/** Recoverable failure — call `retry()` or `useAnotherMethod()`. */
|
|
277
|
+
type DeviceWalletFailedState = {
|
|
278
|
+
status: 'failed';
|
|
279
|
+
platform: DeviceWalletPlatform;
|
|
280
|
+
reason: DeviceWalletFailReason;
|
|
281
|
+
};
|
|
282
|
+
/** The consumer gave up on the wallet (`useAnotherMethod()`). */
|
|
283
|
+
type DeviceWalletClosedState = {
|
|
284
|
+
status: 'closed';
|
|
285
|
+
platform: DeviceWalletPlatform;
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* Union of every public device-wallet state.
|
|
289
|
+
*
|
|
290
|
+
* @example
|
|
291
|
+
* ```typescript
|
|
292
|
+
* const state = manager.getState();
|
|
293
|
+
* if (state.status === 'finished') console.log(state.decision);
|
|
294
|
+
* if (state.status === 'failed') console.log(state.reason);
|
|
295
|
+
* ```
|
|
296
|
+
*/
|
|
297
|
+
type DeviceWalletState = DeviceWalletRequestingState | DeviceWalletPresentingState | DeviceWalletDecryptingState | DeviceWalletFinishedState | DeviceWalletFailedState | DeviceWalletClosedState;
|
|
298
|
+
/**
|
|
299
|
+
* Creates a headless device-wallet (mDL) manager — the V2 equivalent of V1's
|
|
300
|
+
* `renderWallet`, with the intermediate states observable.
|
|
301
|
+
*
|
|
302
|
+
* Runs the Apple Wallet (web) / Google Wallet handshake with zero Incode UI,
|
|
303
|
+
* so integrators trigger it from their own button and render their own UX.
|
|
304
|
+
* Call it from a user gesture: iOS Safari requires transient user activation
|
|
305
|
+
* for `navigator.credentials.get()`.
|
|
306
|
+
*
|
|
307
|
+
* Requires an initialized session (`setup({ apiURL, token })`) — the request
|
|
308
|
+
* and decrypt calls are session-scoped.
|
|
309
|
+
*
|
|
310
|
+
* @example
|
|
311
|
+
* ```typescript
|
|
312
|
+
* import { setup } from '@incodetech/core';
|
|
313
|
+
* import { createDeviceWalletManager } from '@incodetech/core/id';
|
|
314
|
+
*
|
|
315
|
+
* setup({ apiURL, token });
|
|
316
|
+
*
|
|
317
|
+
* button.addEventListener('click', () => {
|
|
318
|
+
* const manager = createDeviceWalletManager();
|
|
319
|
+
* manager.subscribe((state) => {
|
|
320
|
+
* if (state.status === 'finished') manager.stop();
|
|
321
|
+
* if (state.status === 'failed') console.error(state.reason);
|
|
322
|
+
* });
|
|
323
|
+
* });
|
|
324
|
+
* ```
|
|
325
|
+
*/
|
|
326
|
+
declare function createDeviceWalletManager(options?: CreateDeviceWalletActorOptions): Manager<DeviceWalletState> & {
|
|
327
|
+
/** Restarts the handshake after a failure. Needs a fresh user gesture. */
|
|
328
|
+
retry(): void;
|
|
329
|
+
/**
|
|
330
|
+
* Abandons the wallet path from a failure and moves the manager to
|
|
331
|
+
* `closed`, so the consumer can fall back to a camera ID capture.
|
|
332
|
+
*/
|
|
333
|
+
useAnotherMethod(): void;
|
|
334
|
+
};
|
|
335
|
+
type DeviceWalletManager = ReturnType<typeof createDeviceWalletManager>;
|
|
336
|
+
//#endregion
|
|
337
|
+
//#region src/modules/id/deviceWallet/renderWallet.d.ts
|
|
338
|
+
/**
|
|
339
|
+
* Failure handed to `onError`. Mirrors V1's `DigitalIdWalletError` — `code`
|
|
340
|
+
* carries the same three values V1 used (`UNSUPPORTED_PLATFORM`,
|
|
341
|
+
* `NO_CREDENTIAL`, `WALLET_ERROR`).
|
|
342
|
+
*/
|
|
343
|
+
type RenderWalletError = {
|
|
344
|
+
code: DeviceWalletFailReason;
|
|
345
|
+
message: string;
|
|
346
|
+
};
|
|
347
|
+
type RenderWalletParams = CreateDeviceWalletActorOptions & {
|
|
348
|
+
/**
|
|
349
|
+
* The handshake completed. Carries the decrypt response (with its
|
|
350
|
+
* `decision`), never `null` — an empty wallet is reported through
|
|
351
|
+
* `onError(NO_CREDENTIAL)`.
|
|
352
|
+
*/
|
|
353
|
+
onSuccess: (result: DeviceWalletDecryptResponse) => void;
|
|
354
|
+
onError: (error: RenderWalletError) => void;
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* Headless device-wallet (mDL) API — the V1 `renderWallet` shape, ported.
|
|
358
|
+
*
|
|
359
|
+
* Runs the Apple Wallet (web) / Google Wallet handshake with zero Incode UI,
|
|
360
|
+
* so integrators trigger it from their own button and render their own UX.
|
|
361
|
+
* Resolves once the handshake settles; the outcome arrives through
|
|
362
|
+
* `onSuccess` / `onError` exactly as in V1.
|
|
363
|
+
*
|
|
364
|
+
* MUST be called from a user gesture (e.g. a click handler) — iOS/Safari
|
|
365
|
+
* requires transient user activation for `navigator.credentials.get()` to
|
|
366
|
+
* present the wallet sheet.
|
|
367
|
+
*
|
|
368
|
+
* Requires an initialized session (`setup({ apiURL, token })`). The verified
|
|
369
|
+
* attributes are NOT returned here: they land in the session and are read back
|
|
370
|
+
* through the standard OCR / score APIs. `onSuccess` receives the submission
|
|
371
|
+
* decision/status.
|
|
372
|
+
*
|
|
373
|
+
* Prefer {@link createDeviceWalletManager} for new integrations — it exposes
|
|
374
|
+
* the intermediate `requesting` / `presenting` / `decrypting` states (and a
|
|
375
|
+
* `retry()`), which this one-shot wrapper collapses.
|
|
376
|
+
*
|
|
377
|
+
* @example
|
|
378
|
+
* ```typescript
|
|
379
|
+
* button.addEventListener('click', () => {
|
|
380
|
+
* void renderWallet({
|
|
381
|
+
* onSuccess: (result) => console.log(result.decision),
|
|
382
|
+
* onError: (error) => console.error(error.code, error.message),
|
|
383
|
+
* });
|
|
384
|
+
* });
|
|
385
|
+
* ```
|
|
386
|
+
*/
|
|
387
|
+
declare function renderWallet({ onSuccess, onError, ...actorOptions }: RenderWalletParams): Promise<void>;
|
|
388
|
+
//#endregion
|
|
255
389
|
//#region src/internal/idCapture/idCaptureManagerFactory.d.ts
|
|
256
390
|
type CaptureStatus = 'initializing' | 'detecting' | 'capturing' | 'holdOn' | 'optimizing' | 'uploading' | 'uploadError' | 'success';
|
|
257
391
|
type IdCaptureIdleState = {
|
|
@@ -260,6 +394,13 @@ type IdCaptureIdleState = {
|
|
|
260
394
|
type IdCaptureChooserState = {
|
|
261
395
|
status: 'chooser';
|
|
262
396
|
availableDocumentTypes: IdDocumentType[];
|
|
397
|
+
/**
|
|
398
|
+
* One entry per enabled digital-ID web-redirect provider (iDIN, FTN, …).
|
|
399
|
+
* Non-empty whenever `availableDocumentTypes` contains `digitalIdRedirect`
|
|
400
|
+
* for a standalone provider; render one card per entry and select it with
|
|
401
|
+
* `selectDocument('digitalIdRedirect', { providerId })`.
|
|
402
|
+
*/
|
|
403
|
+
digitalIdRedirectOptions: IdCaptureDigitalIdRedirectOption[];
|
|
263
404
|
};
|
|
264
405
|
/**
|
|
265
406
|
* Which UI-less machine phase the collapsed `loading` status stands for. The
|
|
@@ -291,6 +432,7 @@ type IdCaptureLoadingState = {
|
|
|
291
432
|
*/
|
|
292
433
|
selectedDocumentType: IdDocumentType | undefined;
|
|
293
434
|
currentMode: IdCaptureMode;
|
|
435
|
+
requiresMotionPermissionUserGesture: boolean;
|
|
294
436
|
};
|
|
295
437
|
/**
|
|
296
438
|
* Which `tutorial` substate the collapsed `status: 'tutorial'` stands for.
|
|
@@ -315,6 +457,7 @@ type IdCaptureTutorialState = {
|
|
|
315
457
|
phase: IdCaptureTutorialPhase;
|
|
316
458
|
selectedDocumentType: IdDocumentType | undefined;
|
|
317
459
|
currentMode: IdCaptureMode;
|
|
460
|
+
requiresMotionPermissionUserGesture: boolean;
|
|
318
461
|
};
|
|
319
462
|
type IdCaptureAgeVerificationState = {
|
|
320
463
|
status: 'ageVerification';
|
|
@@ -326,6 +469,7 @@ type IdCapturePermissionsState = {
|
|
|
326
469
|
currentMode: IdCaptureMode;
|
|
327
470
|
/** `config.showTutorial` — whether a tutorial screen precedes this one. */
|
|
328
471
|
tutorialEnabled: boolean;
|
|
472
|
+
requiresMotionPermissionUserGesture: boolean;
|
|
329
473
|
};
|
|
330
474
|
type IdCaptureCaptureState = {
|
|
331
475
|
status: 'capture';
|
|
@@ -342,6 +486,12 @@ type IdCaptureCaptureState = {
|
|
|
342
486
|
/** `config.showTutorial` — whether this camera path was configured with a tutorial. */
|
|
343
487
|
tutorialEnabled: boolean;
|
|
344
488
|
counterValue: number;
|
|
489
|
+
/**
|
|
490
|
+
* Milliseconds between `counterValue` steps (3 → 2 → 1 → 0) in the
|
|
491
|
+
* auto-capture countdown. Lets a renderer run the whole countdown from its
|
|
492
|
+
* first value, without waiting for each `counterValue` update.
|
|
493
|
+
*/
|
|
494
|
+
countdownStepMs: number;
|
|
345
495
|
orientation: DetectionOrientation | undefined;
|
|
346
496
|
idType: string | undefined;
|
|
347
497
|
previewImageUrl?: string;
|
|
@@ -441,31 +591,6 @@ type IdCaptureErrorState = {
|
|
|
441
591
|
status: 'error';
|
|
442
592
|
error: string;
|
|
443
593
|
};
|
|
444
|
-
type ManualUploadUploadingSide = ManualUploadSide;
|
|
445
|
-
type IdCaptureManualUploadState = {
|
|
446
|
-
status: 'manualUpload';
|
|
447
|
-
phase: 'selecting' | 'uploading' | 'exhausted';
|
|
448
|
-
/** Which side is currently uploading (undefined in `selecting`/`exhausted`). */
|
|
449
|
-
uploadingSide: ManualUploadUploadingSide | undefined;
|
|
450
|
-
activeTab: ManualUploadTab;
|
|
451
|
-
showIdTab: boolean;
|
|
452
|
-
showPassportTab: boolean;
|
|
453
|
-
/** Whether the ID tab should render a front-of-ID slot. Defaults to true. */
|
|
454
|
-
showFrontSlot?: boolean;
|
|
455
|
-
/** Whether the ID tab should render a back-of-ID slot. */
|
|
456
|
-
showBackSlot: boolean;
|
|
457
|
-
frontFileName: string | undefined;
|
|
458
|
-
backFileName: string | undefined;
|
|
459
|
-
passportFileName: string | undefined;
|
|
460
|
-
frontUploaded: boolean;
|
|
461
|
-
backUploaded: boolean;
|
|
462
|
-
passportUploaded: boolean;
|
|
463
|
-
canContinue: boolean;
|
|
464
|
-
retriesLeft: number;
|
|
465
|
-
/** i18n key for the current error message, if any. */
|
|
466
|
-
errorKey: string | null;
|
|
467
|
-
errorSide: ManualUploadSide | null;
|
|
468
|
-
};
|
|
469
594
|
type IdCaptureDigitalUploadState = {
|
|
470
595
|
status: 'digitalIdUpload';
|
|
471
596
|
phase: 'tutorial' | 'selecting' | 'reviewing' | 'uploading' | 'holding' | 'success' | 'error' | 'fileTooLarge' | 'exhausted';
|
|
@@ -506,7 +631,7 @@ type IdCaptureDeviceWalletState = {
|
|
|
506
631
|
failReason: DeviceWalletFailReason | null;
|
|
507
632
|
platform: DeviceWalletPlatform | undefined;
|
|
508
633
|
};
|
|
509
|
-
type IdCaptureState = IdCaptureIdleState | IdCaptureChooserState | IdCaptureLoadingState | IdCaptureTutorialState | IdCaptureAgeVerificationState | IdCapturePermissionsState | IdCaptureCaptureState | IdCaptureMandatoryConsentState | IdCaptureFrontFinishedState | IdCaptureBackFinishedState | IdCaptureProcessingState | IdCaptureExpiredState | IdCaptureExpiredExhaustedState | IdCaptureFinishedState | IdCaptureClosedState | IdCaptureErrorState |
|
|
634
|
+
type IdCaptureState = IdCaptureIdleState | IdCaptureChooserState | IdCaptureLoadingState | IdCaptureTutorialState | IdCaptureAgeVerificationState | IdCapturePermissionsState | IdCaptureCaptureState | IdCaptureMandatoryConsentState | IdCaptureFrontFinishedState | IdCaptureBackFinishedState | IdCaptureProcessingState | IdCaptureExpiredState | IdCaptureExpiredExhaustedState | IdCaptureFinishedState | IdCaptureClosedState | IdCaptureErrorState | IdCaptureDigitalUploadState | IdCaptureDigitalIdRedirectState | IdCaptureDeviceWalletState;
|
|
510
635
|
/**
|
|
511
636
|
* Union of all `idCaptureMachine` variants' actor types. Variants share the
|
|
512
637
|
* same state tree and context shape, so the manager helpers
|
|
@@ -530,8 +655,22 @@ type AnyIdCaptureActor = IdCaptureActor | IdCaptureOnlyActor;
|
|
|
530
655
|
*/
|
|
531
656
|
declare function createIdCaptureManagerFromActor(actor: AnyIdCaptureActor, visibilityObserver?: IVisibilityObserverCapability): Manager<IdCaptureState> & {
|
|
532
657
|
load(): void;
|
|
533
|
-
|
|
658
|
+
/**
|
|
659
|
+
* Picks a chooser option. For `'digitalIdRedirect'`, pass the provider of
|
|
660
|
+
* the card the user tapped (`digitalIdRedirectOptions[].providerId`) so the
|
|
661
|
+
* verification is created for that provider; without it the first
|
|
662
|
+
* configured redirect method is launched (backwards compatible).
|
|
663
|
+
*/
|
|
664
|
+
selectDocument(documentType: IdDocumentType, options?: {
|
|
665
|
+
providerId?: DigitalIdProviderId;
|
|
666
|
+
}): void;
|
|
534
667
|
nextStep(): Promise<void>;
|
|
668
|
+
/**
|
|
669
|
+
* Continues from Tutorial into permission orchestration. When iOS requires
|
|
670
|
+
* a user gesture for Deepsight motion, the motion-only request starts from
|
|
671
|
+
* this event; otherwise Core proceeds to its existing permission state.
|
|
672
|
+
*/
|
|
673
|
+
continueToPermission(): void;
|
|
535
674
|
/**
|
|
536
675
|
* Requests camera (and, when deepsight is enabled, motion) permission.
|
|
537
676
|
* Effective in `permissions.idle`, `permissions.waitingForUser`,
|
|
@@ -540,7 +679,14 @@ declare function createIdCaptureManagerFromActor(actor: AnyIdCaptureActor, visib
|
|
|
540
679
|
* the camera pre-warms it records the user's intent to continue, so the
|
|
541
680
|
* tutorial advances to capture as soon as the warm-up finishes).
|
|
542
681
|
*/
|
|
543
|
-
requestPermission(
|
|
682
|
+
requestPermission(options?: {
|
|
683
|
+
/**
|
|
684
|
+
* Use `automatic` when code, rather than a permission CTA, initiates the
|
|
685
|
+
* request. This is the supported way to avoid reporting a programmatic
|
|
686
|
+
* permission request as an `elementClicked.requestPermission` event.
|
|
687
|
+
*/
|
|
688
|
+
trigger?: "user" | "automatic";
|
|
689
|
+
}): void;
|
|
544
690
|
goToLearnMore(): void;
|
|
545
691
|
back(): void;
|
|
546
692
|
close(): void;
|
|
@@ -550,6 +696,10 @@ declare function createIdCaptureManagerFromActor(actor: AnyIdCaptureActor, visib
|
|
|
550
696
|
continueFromError(): void;
|
|
551
697
|
capture(): void;
|
|
552
698
|
switchToManualCapture(): void;
|
|
699
|
+
switchToAutoCapture(): void;
|
|
700
|
+
/** Pauses live detection; returns false when capture can no longer enter Help. */
|
|
701
|
+
openHelp(): boolean;
|
|
702
|
+
closeHelp(): void;
|
|
553
703
|
continueToBack(): void;
|
|
554
704
|
continueToFront(): void;
|
|
555
705
|
skipBack(): void;
|
|
@@ -560,16 +710,6 @@ declare function createIdCaptureManagerFromActor(actor: AnyIdCaptureActor, visib
|
|
|
560
710
|
* Call this when the UI detection area dimensions change (e.g., on resize or orientation change).
|
|
561
711
|
*/
|
|
562
712
|
updateDetectionArea(detectionArea: DetectionArea): void;
|
|
563
|
-
/**
|
|
564
|
-
* Manual upload: tab change (ID / Passport). Resets per-tab file selections.
|
|
565
|
-
* Note: there is intentionally no `switchToManualUpload` method — entry to
|
|
566
|
-
* the manual-upload flow is gated by config + Chooser to prevent a
|
|
567
|
-
* dev-console bypass of live camera capture.
|
|
568
|
-
*/
|
|
569
|
-
manualUploadChangeTab(tab: ManualUploadTab): void;
|
|
570
|
-
manualUploadSelectFile(side: ManualUploadSide, file: File): void;
|
|
571
|
-
manualUploadContinue(): void;
|
|
572
|
-
manualUploadReset(): void;
|
|
573
713
|
digitalUploadNextStep(): void;
|
|
574
714
|
digitalUploadPickFile(file: File): void;
|
|
575
715
|
digitalUploadConfirm(): void;
|
|
@@ -599,14 +739,19 @@ type IdCaptureManager = ReturnType<typeof createIdCaptureManagerFromActor>;
|
|
|
599
739
|
* `internal/idCapture/idCaptureManagerFactory.ts`; this file is a thin
|
|
600
740
|
* wrapper that creates the actor and delegates to the factory.
|
|
601
741
|
*
|
|
602
|
-
*
|
|
603
|
-
*
|
|
742
|
+
* A config with an `onCapture` callback runs the captureOnly flow instead
|
|
743
|
+
* (see `createIdCaptureOnlyManager`): no backend, images go to `onCapture`.
|
|
604
744
|
*/
|
|
605
745
|
declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): Manager<IdCaptureState> & {
|
|
606
746
|
load(): void;
|
|
607
|
-
selectDocument(documentType: IdDocumentType
|
|
747
|
+
selectDocument(documentType: IdDocumentType, options?: {
|
|
748
|
+
providerId?: DigitalIdProviderId;
|
|
749
|
+
}): void;
|
|
608
750
|
nextStep(): Promise<void>;
|
|
609
|
-
|
|
751
|
+
continueToPermission(): void;
|
|
752
|
+
requestPermission(options?: {
|
|
753
|
+
trigger?: "user" | "automatic";
|
|
754
|
+
}): void;
|
|
610
755
|
goToLearnMore(): void;
|
|
611
756
|
back(): void;
|
|
612
757
|
close(): void;
|
|
@@ -616,16 +761,15 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
|
|
|
616
761
|
continueFromError(): void;
|
|
617
762
|
capture(): void;
|
|
618
763
|
switchToManualCapture(): void;
|
|
764
|
+
switchToAutoCapture(): void;
|
|
765
|
+
openHelp(): boolean;
|
|
766
|
+
closeHelp(): void;
|
|
619
767
|
continueToBack(): void;
|
|
620
768
|
continueToFront(): void;
|
|
621
769
|
skipBack(): void;
|
|
622
770
|
acceptMandatoryConsent(): void;
|
|
623
771
|
cancelMandatoryConsent(): void;
|
|
624
772
|
updateDetectionArea(detectionArea: DetectionArea): void;
|
|
625
|
-
manualUploadChangeTab(tab: ManualUploadTab): void;
|
|
626
|
-
manualUploadSelectFile(side: ManualUploadSide, file: File): void;
|
|
627
|
-
manualUploadContinue(): void;
|
|
628
|
-
manualUploadReset(): void;
|
|
629
773
|
digitalUploadNextStep(): void;
|
|
630
774
|
digitalUploadPickFile(file: File): void;
|
|
631
775
|
digitalUploadConfirm(): void;
|
|
@@ -641,4 +785,4 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
|
|
|
641
785
|
deviceWalletUseAnotherMethod(): void;
|
|
642
786
|
};
|
|
643
787
|
//#endregion
|
|
644
|
-
export {
|
|
788
|
+
export { barcodeToBase64 as A, startRecordingSession as B, FinalizedIdRecording as C, UploadIdImageParams as D, StartRecordingParams as E, isSuspendableRecordingSession as F, WasmUtilProvider as G, stopStream as H, pauseRecordingForAttempt as I, prepareRecordingForCameraRetry as L, finalizeRecordingSession as M, getRealQualityValue as N, ValidationError as O, initializeIdCapture as P, processId as R, AddBarcodeParams as S, InitializeIdCaptureParams as T, uploadIdImage as U, stopRecording as V, validateUploadResponse as W, CreateIdCaptureActorOptions as _, RenderWalletError as a, IdCaptureMachine as b, DeviceWalletManager as c, CreateDeviceWalletActorOptions as d, CreateIdCaptureOnlyActorOptions as f, idCaptureOnlyMachine as g, IdCaptureOnlyMachine as h, createIdCaptureManagerFromActor as i, disposeRecordingSession as j, addBarcode as k, DeviceWalletState as l, createIdCaptureOnlyActor as m, IdCaptureManager as n, RenderWalletParams as o, IdCaptureOnlyActor as p, IdCaptureState as r, renderWallet as s, createIdCaptureManager as t, createDeviceWalletManager as u, IdCaptureActor as v, IdCaptureInitResult as w, idCaptureMachine as x, createIdCaptureActor as y, resumeRecordingAfterPause as z };
|