@incodetech/core 2.4.0 → 2.4.1-agentic.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
- package/dist/{multipartRecordingService-CLwrF5wD.esm.js → CameraCompositor-DN7NkJzV.esm.js} +7 -744
- package/dist/{FaceDetectionProvider-DcPOC2gS.esm.js → FaceDetectionProvider-CAY43vSI.esm.js} +28 -64
- package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
- package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
- package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-Cqiaxydi.d.ts} +31 -4
- package/dist/MultipartRecordingProvider-D9mauUdS.esm.js +146 -0
- package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
- package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-C3xNfOsv.d.ts} +12 -3
- package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
- package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-Dp2V-Uct.esm.js} +75 -22
- package/dist/WorkerEncoderRecordingProvider-B1ODYtgN.esm.js +80 -0
- package/dist/addressSearch-DzbE9Ogt.esm.js +254 -0
- package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-k-U-cL5m.esm.js} +1 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-BObuHBjn.esm.js} +2 -2
- package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-Dfrd2-26.esm.js} +1 -1
- package/dist/{api-Cz90EHyu.esm.js → api-CpP4PS4S.esm.js} +8 -5
- package/dist/{apiError-DPwFas2f.esm.js → apiError-DH-CH4Nz.esm.js} +1 -1
- package/dist/attemptCarry-WOkfvFMw.esm.js +45 -0
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-CWmh7aSY.d.ts} +1 -1
- package/dist/{authenticationManager-2Lr5V_7p.esm.js → authenticationManager-DjX0XDyH.esm.js} +5 -5
- package/dist/{authenticationStateMachine-C99B0GFP.esm.js → authenticationStateMachine-BMbZL8wm.esm.js} +3 -3
- package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
- package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-DS1oDiUq.esm.js} +12 -107
- package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-DtkAf6sn.esm.js} +161 -150
- package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
- package/dist/camera.d.ts +2 -2
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-C1nETQos.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-DThXMDqr.esm.js} +2 -2
- package/dist/cnpj-Co1ottYN.esm.js +77 -0
- package/dist/connectivity-BCuEoQ-n.esm.js +114 -0
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-DMlSL6Ax.esm.js} +4 -3
- package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-bjfVXO7p.d.ts} +9 -2
- package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-DIYSMxKQ.esm.js} +20 -7
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-BFTdiEDB.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-DNpC3wyf.esm.js} +3 -2
- package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-z8428oCM.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-B3iVsDyt.esm.js} +28 -20
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-CvI-pDT3.esm.js} +2 -2
- package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-BuHtUb0y.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-CiVD9wyF.esm.js} +1 -1
- package/dist/{deepsightService-CKTYDIXD.esm.js → deepsightLoader-B7DEYoyY.esm.js} +40 -74
- package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-BGMtYwk3.esm.js} +177 -40
- package/dist/device.esm.js +2 -2
- package/dist/document-capture.d.ts +3 -3
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-CD5iQiUI.d.ts} +37 -4
- package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-DLPqruXJ.esm.js} +27 -19
- package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-DCvWQhFG.esm.js} +105 -56
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-9kwY8Bf5.d.ts} +1 -1
- package/dist/{dynamicFormsManager-DiKYjcF3.esm.js → dynamicFormsManager-DfqCEPg9.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-DEI45xYW.esm.js → dynamicFormsStateMachine-USQMB-uV.esm.js} +2 -2
- package/dist/ekyb.d.ts +4 -4
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-BLOkwmWO.d.ts} +2 -2
- package/dist/{ekybManager-8WLkNcqg.esm.js → ekybManager-CR8YSYux.esm.js} +2 -2
- package/dist/{ekybStateMachine-BLRT45Ex.esm.js → ekybStateMachine-kHwdz6hm.esm.js} +28 -44
- package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
- package/dist/ekyc.d.ts +4 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-DlGIn9wA.d.ts} +2 -1
- package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-DymCvmVB.esm.js} +2 -2
- package/dist/ekycStateMachine-CoFCUJ2z.esm.js +7578 -0
- package/dist/ekycUtils-GRuMELYr.esm.js +1472 -0
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-CcIMOb_Y.esm.js → electronicSignatureManager-BCE3uA3z.esm.js} +4 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-ButFktRm.esm.js → emailManager-CGoE3CUe.esm.js} +2 -2
- package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-KgHfDNvM.esm.js} +32 -20
- package/dist/{events-Du2A4-Qr.esm.js → events-ggpBBaZ8.esm.js} +2 -2
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +37 -22
- package/dist/extensibility.esm.js +36 -35
- package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-DV2ULUYS.d.ts} +71 -66
- package/dist/{faceCaptureManagerFactory-BlGvXzXA.esm.js → faceCaptureManagerFactory-Dp90bedH.esm.js} +4 -4
- package/dist/{faceCaptureSetup-TY8RXc2N.esm.js → faceCaptureSetup-ZfiWg0fo.esm.js} +84 -457
- package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-D2xKPjjQ.esm.js} +2 -2
- package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-Z4UDLwAv.d.ts} +16 -7
- package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-CUvwiQi9.esm.js} +40 -27
- package/dist/{feature-management-B5rR10uS.esm.js → feature-management-BbCIA4og.esm.js} +35 -21
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-DgDbEeFZ.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-BZeklojR.esm.js} +4 -4
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +10 -10
- package/dist/flow.esm.js +10 -9
- package/dist/{flowCompletionService-BDI5QpfR.esm.js → flowCompletionService-CcCnPs_T.esm.js} +2 -2
- package/dist/{flowServices-roD0oIQL.esm.js → flowServices-Dmnc8Rye.esm.js} +69 -185
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-6e1i9UIR.d.ts} +15 -17
- package/dist/{geolocationManager-DnONzWL5.esm.js → geolocationManager-BJJ3m_I8.esm.js} +6 -8
- package/dist/{geolocationStateMachine-eWy_G4Os.esm.js → geolocationStateMachine-CTI3m4Ie.esm.js} +12 -8
- package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-CjChjZ3C.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-AEbn3Afi.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +10 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -16
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-Dszuq9ng.esm.js} +3 -3
- package/dist/{idCaptureManager-BrfYjCm_.esm.js → idCaptureManager-B3oR4RnA.esm.js} +64 -17
- package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-CCA2D1Ah.d.ts} +68 -5
- package/dist/{idCaptureServices-BSj6EH2l.esm.js → idCaptureServices-DK0QboqT.esm.js} +29 -198
- package/dist/{idCaptureStateMachine-dXKBYHQp.esm.js → idCaptureStateMachine-zzar9MPy.esm.js} +914 -536
- package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-BTdHlJ9D.d.ts} +1 -1
- package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-xyEZNOBa.esm.js} +2 -2
- package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-DNKXh4Rn.esm.js} +2 -2
- package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-DdnvYfgN.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DtIBCa32.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-CcpovlfD.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-DxZFWy47.esm.js} +1 -1
- package/dist/{index-CKQ9QBZP.d.ts → index-DC0P2Vzw.d.ts} +1 -1
- package/dist/{index-BKOWUhxG.d.ts → index-DEfwds5y.d.ts} +55 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-BJ0GVHGr.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +3 -0
- package/dist/kyb-checks.esm.js +3 -0
- package/dist/kybChecksManager-CblEL97E.d.ts +95 -0
- package/dist/kybChecksManager-DpGOp4Su.esm.js +89 -0
- package/dist/kybChecksStateMachine-B43NAnv7.esm.js +718 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-B4vCYslr.esm.js} +4 -3
- package/dist/{mandatoryConsentManager-BQ43yndC.d.ts → mandatoryConsentManager-B88Sm5nd.d.ts} +10 -3
- package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-DWslYPA3.esm.js} +20 -7
- package/dist/mediaRecorderOptions-B9-IEVtV.esm.js +70 -0
- package/dist/multipartRecordingService-BTqkHGG9.esm.js +407 -0
- package/dist/nationalIds-B91f_RuB.esm.js +99 -0
- package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-DFV-Ws0a.esm.js} +1 -1
- package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-D190ATGD.esm.js} +11 -9
- package/dist/phone-number.d.ts +7 -1
- package/dist/phone-number.esm.js +15 -2
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/phoneFormat-JJNaWthV.esm.js +75 -0
- package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
- package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-Dy5tODCU.esm.js} +3 -3
- package/dist/phoneServices-DJgyOzU2.esm.js +77 -0
- package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-DnlPhnw7.esm.js} +54 -82
- package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
- package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
- package/dist/processFaceMatch-Bst83HaS.esm.js +21 -0
- package/dist/qe-signature.esm.js +1 -1
- package/dist/recordingService-CTko6Cjn.esm.js +397 -0
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-CgGaT2NP.esm.js} +5 -4
- package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Dm9ctRCC.d.ts} +3 -1
- package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-CbhN8uVN.esm.js} +65 -26
- package/dist/resolveForm-O7-r79VA.esm.js +351 -0
- package/dist/{runChildModule-BF_atgNx.esm.js → runChildModule-BffFArwl.esm.js} +3 -3
- package/dist/{sdkVersion-CsIbltJF.esm.js → sdkVersion-CDd_gaR7.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-BY0-YbPW.esm.js → selfieErrorUtils-f4MgAG2A.esm.js} +1 -1
- package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-DmZFzs1-.d.ts} +1 -1
- package/dist/{selfieManager-vAAwzsHk.esm.js → selfieManager-hopelYEk.esm.js} +5 -5
- package/dist/{selfieStateMachine-BFVp3ElQ.esm.js → selfieStateMachine-DaZIVv3Q.esm.js} +3 -3
- package/dist/{session-CpwfoVdH.esm.js → session-CdSX4wsZ.esm.js} +77 -9
- package/dist/session.d.ts +96 -10
- package/dist/session.esm.js +7 -6
- package/dist/{sessionInitializer-BTjYgE-V.esm.js → sessionInitializer-DsL7X2j9.esm.js} +465 -206
- package/dist/{setup-YPKTUCY5.d.ts → setup-D9qt8YVU.d.ts} +2 -2
- package/dist/{setup-BInNAvQw.esm.js → setup-DDahygZs.esm.js} +44 -30
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-CwqjcxPg.esm.js} +2 -2
- package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-DBVDd1Eu.esm.js} +1 -1
- package/dist/{stats-BEvexnKC.esm.js → stats-CatA2dea.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/textRules-D4NRinKY.d.ts +41 -0
- package/dist/{tri-xzRLIIMN.esm.js → tri-DG6priFa.esm.js} +142 -8
- package/dist/tri.d.ts +1 -1
- package/dist/tri.esm-CzTNi5Q_.esm.js +3826 -0
- package/dist/tri.esm.js +1 -1
- package/dist/{trueSightService-BMT-TubT.esm.js → trueSightService-GuLthUVK.esm.js} +19 -10
- package/dist/trust-graph.esm.js +1 -1
- package/dist/types-B9C8W01q.d.ts +34 -0
- package/dist/{types-yPH8lAH-.d.ts → types-BEVHQbbC.d.ts} +2 -2
- package/dist/{types-BAxn7MpY.d.ts → types-BPm1JSu7.d.ts} +123 -48
- package/dist/{types-0L-eFDmr.d.ts → types-BgRHw-dR.d.ts} +1 -1
- package/dist/{types-B6HsSzpk.d.ts → types-CRaFu6wS.d.ts} +6 -3
- package/dist/types-CTaL0XJz.d.ts +80 -0
- package/dist/{types-Ckir_BEs.d.ts → types-Cd0J0F9D.d.ts} +1 -1
- package/dist/{types-CK8Jbjkp.d.ts → types-Csh8vzPo.d.ts} +1 -1
- package/dist/types-CuMJ2M7D.d.ts +210 -0
- package/dist/{types-DUnFZ08M.d.ts → types-CyNndVAT.d.ts} +16 -8
- package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
- package/dist/types-J6g6iKe_.d.ts +6 -0
- package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
- package/dist/video-selfie.d.ts +8 -8
- package/dist/video-selfie.esm.js +97 -22
- package/dist/{videoSelfieCameraWarmer-D1xA0u8y.esm.js → videoSelfieCameraWarmer-e3irGfcO.esm.js} +18 -21
- package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-Dv3Mgws-.d.ts} +9 -4
- package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
- package/dist/{warmup-BElYWRh7.esm.js → warmup-DtB0DJpl.esm.js} +198 -27
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-BtiR5pig.esm.js} +1 -1
- package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
- package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-BDrax6Eu.esm.js} +55 -26
- package/dist/watchlist-for-business.d.ts +2 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts} +54 -18
- package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-DqUpAEj_.esm.js} +37 -7
- package/dist/watchlistForBusinessStateMachine-DdaPl2PS.esm.js +166 -0
- package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-CdpXzT4B.esm.js} +2 -2
- package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-ofHW_lPk.esm.js} +1 -1
- package/dist/workflow.d.ts +5 -2
- package/dist/workflow.esm.js +60 -50
- package/package.json +12 -5
- package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
- package/dist/addressSearch-DPjIKJrX.esm.js +0 -563
- package/dist/deepsightLoader-DeNvGU3c.esm.js +0 -55
- package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
- package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
- package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
- package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
- package/dist/types-BvLo3U4u.d.ts +0 -134
- package/dist/types-zOgZqMni.d.ts +0 -6
- package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
- /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
package/dist/id.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
2
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
3
|
-
import { A as
|
|
3
|
+
import { A as ValidationError, B as processId, C as AddBarcodeParams, D as InitializeIdCaptureParams, E as IdCaptureInitResult, F as getRealQualityValue, G as uploadIdImage, H as startRecordingSession, I as initializeIdCapture, K as validateUploadResponse, L as isSuspendableRecordingSession, M as barcodeToBase64, N as disposeRecordingSession, O as StartRecordingParams, P as finalizeRecordingSession, R as pauseRecordingForAttempt, S as idCaptureMachine, T as ID_QUALITY_BACKEND_VALIDATION_GATE, U as stopRecording, V as resumeRecordingAfterPause, W as stopStream, _ as idCaptureOnlyMachine, a as RenderWalletError, b as createIdCaptureActor, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as resolveWalletPlatform, g as IdCaptureOnlyMachine, h as createIdCaptureOnlyActor, j as addBarcode, k as UploadIdImageParams, l as DeviceWalletState, m as IdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as CreateIdCaptureOnlyActorOptions, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as CreateIdCaptureActorOptions, w as FinalizedIdRecording, x as IdCaptureMachine, y as IdCaptureActor, z as prepareRecordingForCameraRetry } from "./idCaptureManager-CCA2D1Ah.js";
|
|
4
4
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
5
5
|
import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-CGcEt2Cw.js";
|
|
6
|
-
import { A as
|
|
6
|
+
import { A as DigitalIdCountryDetectionDependencies, B as DeviceWalletDecryptResponse, C as IdCapturedImageData, D as IdFlowStep, E as IdErrorCode, F as DigitalIdPlatformSupport, H as DeviceWalletOutput, I as ResolvedDigitalIdRoute, J as RedirectReturnParams, K as DigitalIdProviderId, L as isRedirectFlowType, M as DIGITAL_ID_REGISTRY, N as DigitalIdDocumentType, O as UploadIdResponse, P as DigitalIdFunnelEntry, R as resolveDigitalIdImplementation, S as IdCaptureThresholds, T as IdError, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, _ as IdCaptureGeometry, a as CaptureOnlyResponse, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DIGITAL_ID_DOCUMENT_TYPES, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-BPm1JSu7.js";
|
|
7
7
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* Fail reason → i18n key for the device-wallet error screen (same shape as
|
|
@@ -15,19 +15,6 @@ declare const DEVICE_WALLET_ERROR_KEYS: {
|
|
|
15
15
|
readonly WALLET_ERROR: "idv2.deviceWallet.errorDescription";
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
|
-
//#region src/modules/id/deviceWallet/deviceWalletPlatform.d.ts
|
|
19
|
-
/**
|
|
20
|
-
* Maps an explicit provider override or the current user agent to the wallet
|
|
21
|
-
* platform (ported from V1 `resolveWalletPlatform`, minus the Credentials API
|
|
22
|
-
* capability check — that lives on `IDigitalCredentialsCapability.isAvailable()`
|
|
23
|
-
* and is consulted by the digital-ID funnel before this module is invoked).
|
|
24
|
-
*
|
|
25
|
-
* Auto-detection: iOS/iPadOS and macOS Safari → Apple Wallet (web); Android
|
|
26
|
-
* and every other desktop/unknown browser (incl. macOS Chrome) → Google
|
|
27
|
-
* Wallet, which is the only wallet reachable there.
|
|
28
|
-
*/
|
|
29
|
-
declare function resolveWalletPlatform(provider?: DeviceWalletProvider): DeviceWalletPlatform;
|
|
30
|
-
//#endregion
|
|
31
18
|
//#region src/modules/id/idCaptureOnlyManager.d.ts
|
|
32
19
|
type IdCaptureOnlyManager = IdCaptureManager;
|
|
33
20
|
/**
|
|
@@ -47,4 +34,4 @@ declare function createIdCaptureOnlyManagerFromActor(actor: IdCaptureOnlyActor,
|
|
|
47
34
|
*/
|
|
48
35
|
declare function createIdCaptureOnlyManager(options: CreateIdCaptureOnlyActorOptions): IdCaptureOnlyManager;
|
|
49
36
|
//#endregion
|
|
50
|
-
export { AcceptedDocument, AcceptedDocumentType, AddBarcodeParams, AddBarcodeV3Response, type CameraStream, CaptureIdResponse, CaptureOnlyResponse, CapturedImage, type CreateDeviceWalletActorOptions, type CreateIdCaptureActorOptions, type CreateIdCaptureOnlyActorOptions, DEVICE_WALLET_ERROR_KEYS, DIGITAL_ID_DOCUMENT_TYPES, DIGITAL_ID_REGISTRY, DetectionArea, type DetectionOrientation, DetectionStatus, type DeviceWalletDecision, type DeviceWalletDecryptResponse, type DeviceWalletFailReason, type DeviceWalletManager, type DeviceWalletOutput, type DeviceWalletPlatform, type DeviceWalletProvider, type DeviceWalletState, type DigitalIdDocumentType, type DigitalIdFunnelEntry, type DigitalIdPlatformSupport, type DigitalIdProviderId, FinalizedIdRecording, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureDigitalIdFlowType, IdCaptureDigitalIdMethod, IdCaptureDigitalIdRedirectOption, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, type IdCaptureMachine, type IdCaptureManager, IdCaptureMode, type IdCaptureOnlyActor, IdCaptureOnlyConfig, type IdCaptureOnlyMachine, type IdCaptureOnlyManager, IdCaptureOutput, type IdCaptureSettings, type IdCaptureState, IdCaptureThresholds, IdCapturedImageData, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, type PermissionResult, type PermissionStatus, type RedirectReturnParams, type RenderWalletError, type RenderWalletParams, type ResolvedDigitalIdRoute, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, addBarcode, barcodeToBase64, createDeviceWalletManager, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, disposeRecordingSession, finalizeRecordingSession, getRealQualityValue, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, isRedirectFlowType, isSuspendableRecordingSession, pauseRecordingForAttempt, prepareRecordingForCameraRetry, processId, renderWallet, resolveDigitalIdImplementation, resolveWalletPlatform, resumeRecordingAfterPause, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
|
37
|
+
export { AcceptedDocument, AcceptedDocumentType, AddBarcodeParams, AddBarcodeV3Response, type CameraStream, CaptureIdResponse, CaptureOnlyResponse, CapturedImage, type CreateDeviceWalletActorOptions, type CreateIdCaptureActorOptions, type CreateIdCaptureOnlyActorOptions, DEVICE_WALLET_ERROR_KEYS, DIGITAL_ID_DOCUMENT_TYPES, DIGITAL_ID_REGISTRY, DetectionArea, type DetectionOrientation, DetectionStatus, type DeviceWalletDecision, type DeviceWalletDecryptResponse, type DeviceWalletFailReason, type DeviceWalletManager, type DeviceWalletOutput, type DeviceWalletPlatform, type DeviceWalletProvider, type DeviceWalletState, type DigitalIdCountryDetectionDependencies, type DigitalIdDocumentType, type DigitalIdFunnelEntry, type DigitalIdPlatformSupport, type DigitalIdProviderId, FinalizedIdRecording, ID_ERROR_CODES, ID_QUALITY_BACKEND_VALIDATION_GATE, type IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureDigitalIdFlowType, IdCaptureDigitalIdMethod, IdCaptureDigitalIdRedirectOption, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, type IdCaptureMachine, type IdCaptureManager, IdCaptureMode, type IdCaptureOnlyActor, IdCaptureOnlyConfig, type IdCaptureOnlyMachine, type IdCaptureOnlyManager, IdCaptureOutput, type IdCaptureSettings, type IdCaptureState, IdCaptureThresholds, IdCapturedImageData, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, type PermissionResult, type PermissionStatus, type RedirectReturnParams, type RenderWalletError, type RenderWalletParams, type ResolvedDigitalIdRoute, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, addBarcode, barcodeToBase64, createDeviceWalletManager, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, disposeRecordingSession, finalizeRecordingSession, getRealQualityValue, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, isRedirectFlowType, isSuspendableRecordingSession, pauseRecordingForAttempt, prepareRecordingForCameraRetry, processId, renderWallet, resolveDigitalIdImplementation, resolveWalletPlatform, resumeRecordingAfterPause, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
package/dist/id.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
3
|
-
import { _ as
|
|
1
|
+
import { d as DIGITAL_ID_REGISTRY, f as isRedirectFlowType, h as createDeviceWalletManager, m as renderWallet, p as resolveDigitalIdImplementation, t as idCaptureMachine, u as DIGITAL_ID_DOCUMENT_TYPES, v as resolveWalletPlatform } from "./idCaptureStateMachine-zzar9MPy.esm.js";
|
|
2
|
+
import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-B3oR4RnA.esm.js";
|
|
3
|
+
import { _ as validateUploadResponse, a as finalizeRecordingSession, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, r as barcodeToBase64, s as initializeIdCapture, t as ID_QUALITY_BACKEND_VALIDATION_GATE, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES } from "./idCaptureServices-DK0QboqT.esm.js";
|
|
4
4
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.ts
|
|
5
5
|
/**
|
|
6
6
|
* Fail reason → i18n key for the device-wallet error screen (same shape as
|
|
@@ -12,4 +12,4 @@ const DEVICE_WALLET_ERROR_KEYS = {
|
|
|
12
12
|
WALLET_ERROR: "idv2.deviceWallet.errorDescription"
|
|
13
13
|
};
|
|
14
14
|
//#endregion
|
|
15
|
-
export { DEVICE_WALLET_ERROR_KEYS, DIGITAL_ID_DOCUMENT_TYPES, DIGITAL_ID_REGISTRY, ID_ERROR_CODES, addBarcode, barcodeToBase64, createDeviceWalletManager, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, disposeRecordingSession, finalizeRecordingSession, getRealQualityValue, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, isRedirectFlowType, isSuspendableRecordingSession, pauseRecordingForAttempt, prepareRecordingForCameraRetry, processId, renderWallet, resolveDigitalIdImplementation, resolveWalletPlatform, resumeRecordingAfterPause, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
|
15
|
+
export { DEVICE_WALLET_ERROR_KEYS, DIGITAL_ID_DOCUMENT_TYPES, DIGITAL_ID_REGISTRY, ID_ERROR_CODES, ID_QUALITY_BACKEND_VALIDATION_GATE, addBarcode, barcodeToBase64, createDeviceWalletManager, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, disposeRecordingSession, finalizeRecordingSession, getRealQualityValue, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, isRedirectFlowType, isSuspendableRecordingSession, pauseRecordingForAttempt, prepareRecordingForCameraRetry, processId, renderWallet, resolveDigitalIdImplementation, resolveWalletPlatform, resumeRecordingAfterPause, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { r as BaseWasmProvider } from "./WasmUtilProvider-
|
|
1
|
+
import { C as getBarcodeEnhanceModelUrl, E as WASM_MODEL_FILES, N as resolveWasmSource } from "./wasmWebClient-BDrax6Eu.esm.js";
|
|
2
|
+
import { l as wasmRuntime, t as getResolvedModelSource } from "./warmup-DtB0DJpl.esm.js";
|
|
3
|
+
import { r as BaseWasmProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
|
|
4
4
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
5
5
|
//#region ../infra/src/wasm/idCaptureWasmApi.ts
|
|
6
6
|
var IdCaptureWasmApi = class {
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-DDahygZs.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
|
|
3
|
+
import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
3
4
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
5
|
import { i as assign, s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
6
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
7
|
import { t as splitTrackedName } from "./splitTrackedName-3zJRd2RD.esm.js";
|
|
7
|
-
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-
|
|
8
|
+
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BtiR5pig.esm.js";
|
|
8
9
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
9
|
-
import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-
|
|
10
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
11
|
-
import { _ as mapDeviceWalletScreenName,
|
|
12
|
-
import {
|
|
13
|
-
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-
|
|
10
|
+
import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-D190ATGD.esm.js";
|
|
11
|
+
import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
|
|
12
|
+
import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine-zzar9MPy.esm.js";
|
|
13
|
+
import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-DK0QboqT.esm.js";
|
|
14
|
+
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BJ0GVHGr.esm.js";
|
|
14
15
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
15
16
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
16
17
|
function isHoldingState(value) {
|
|
@@ -343,13 +344,16 @@ function mapDeviceWalletState(snapshot) {
|
|
|
343
344
|
}
|
|
344
345
|
function mapState(snapshot, presentationStream) {
|
|
345
346
|
const { context } = snapshot;
|
|
346
|
-
if (snapshot.matches("idle")) return { status: "idle" };
|
|
347
|
+
if (snapshot.matches("idle") || snapshot.matches("detectingCountry")) return { status: "idle" };
|
|
347
348
|
const loadingPhase = getLoadingPhase(snapshot);
|
|
348
349
|
if (loadingPhase) return mapLoadingState(snapshot, loadingPhase);
|
|
349
350
|
if (snapshot.matches("chooser")) return {
|
|
350
351
|
status: "chooser",
|
|
351
352
|
availableDocumentTypes: context.availableDocumentTypes,
|
|
352
|
-
digitalIdRedirectOptions: context.digitalIdRedirectOptions
|
|
353
|
+
digitalIdRedirectOptions: context.digitalIdRedirectOptions,
|
|
354
|
+
country: context.detectedCountries?.[0],
|
|
355
|
+
countryRanked: context.detectedCountries !== void 0,
|
|
356
|
+
walletDevice: context.walletDevice
|
|
353
357
|
};
|
|
354
358
|
if (snapshot.matches("loading")) return mapLoadingState(snapshot, "bootstrapping");
|
|
355
359
|
if (snapshot.matches("tutorial")) return mapTutorialState(snapshot, context);
|
|
@@ -421,6 +425,19 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
421
425
|
providerId: options?.providerId
|
|
422
426
|
});
|
|
423
427
|
},
|
|
428
|
+
/**
|
|
429
|
+
* On the chooser: re-ranks `digitalIdRedirectOptions` for the given ISO
|
|
430
|
+
* alpha-2 country (the "Viewing options for" picker). Only reorders —
|
|
431
|
+
* every option stays available. Ignored outside the chooser and for an
|
|
432
|
+
* invalid code.
|
|
433
|
+
*/
|
|
434
|
+
setChooserCountry(country) {
|
|
435
|
+
trackElementClicked?.("setChooserCountry");
|
|
436
|
+
actor.send({
|
|
437
|
+
type: "SET_CHOOSER_COUNTRY",
|
|
438
|
+
country
|
|
439
|
+
});
|
|
440
|
+
},
|
|
424
441
|
async nextStep() {
|
|
425
442
|
trackElementClicked?.("nextStep");
|
|
426
443
|
const snapshot = actor.getSnapshot();
|
|
@@ -625,7 +642,6 @@ function getCaptureLiveCueScreen(screens, detectionStatus) {
|
|
|
625
642
|
case "blur": return `${screens.capturePrefix}.livecue-blur`;
|
|
626
643
|
case "farAway": return `${screens.capturePrefix}.livecue-align`;
|
|
627
644
|
case "glare": return `${screens.capturePrefix}.livecue-glare`;
|
|
628
|
-
case "offline": return `${screens.capturePrefix}.livecue-dark`;
|
|
629
645
|
case "manualCapture": return `${screens.capturePrefix}.manual`;
|
|
630
646
|
case "capturing": return `${screens.capturePrefix}.takingphoto`;
|
|
631
647
|
default: return `${screens.capturePrefix}.default`;
|
|
@@ -690,10 +706,10 @@ function getCaptureSubstateScreen(snapshot, screens) {
|
|
|
690
706
|
function getPermissionScreen(value) {
|
|
691
707
|
if (typeof value !== "object" || value === null) return "idCapture.permissions.default";
|
|
692
708
|
switch (value.permissions) {
|
|
693
|
-
case "
|
|
694
|
-
case "
|
|
695
|
-
case "
|
|
696
|
-
case "
|
|
709
|
+
case "idle":
|
|
710
|
+
case "requesting": return "idCapture.permissions";
|
|
711
|
+
case "denied": return "idCapture.permissions.requiredWeb";
|
|
712
|
+
case "learnMore": return "idCapture.permissions.required";
|
|
697
713
|
default: return "idCapture.permissions.default";
|
|
698
714
|
}
|
|
699
715
|
}
|
|
@@ -705,7 +721,8 @@ function getIdCaptureTrackedName(snapshot) {
|
|
|
705
721
|
const side = context.currentMode;
|
|
706
722
|
const screens = getSideScreens(side);
|
|
707
723
|
switch (topLevel) {
|
|
708
|
-
case "idle":
|
|
724
|
+
case "idle":
|
|
725
|
+
case "detectingCountry": return "idCapture.loader.default";
|
|
709
726
|
case "chooser": return "idCapture.documentchooser";
|
|
710
727
|
case "loading": return "idCapture.loader.default";
|
|
711
728
|
case "tutorial": return screens.tutorial;
|
|
@@ -862,12 +879,41 @@ function createIdCaptureManagerFromActor(actor, visibilityObserver = new Browser
|
|
|
862
879
|
});
|
|
863
880
|
}
|
|
864
881
|
//#endregion
|
|
882
|
+
//#region ../infra/src/providers/browser/BrowserLocaleProvider.ts
|
|
883
|
+
var BrowserLocaleProvider = class {
|
|
884
|
+
getPreferredLanguages() {
|
|
885
|
+
if (typeof navigator === "undefined") return [];
|
|
886
|
+
if (Array.isArray(navigator.languages) && navigator.languages.length > 0) return navigator.languages;
|
|
887
|
+
return navigator.language ? [navigator.language] : [];
|
|
888
|
+
}
|
|
889
|
+
};
|
|
890
|
+
//#endregion
|
|
891
|
+
//#region src/modules/id/digitalIdCountryServices.ts
|
|
892
|
+
/**
|
|
893
|
+
* The country of the session's IP, as the backend resolves it (MaxMind) on
|
|
894
|
+
* `GET /omni/start-info`. First-party: the lookup runs server-side on the
|
|
895
|
+
* request IP, so no IP leaves the device and `setup({ ipLookup: false })`
|
|
896
|
+
* (which gates the third-party ipify call) does not apply. `undefined` when
|
|
897
|
+
* the backend cannot place the IP.
|
|
898
|
+
*/
|
|
899
|
+
async function fetchIpCountry(signal) {
|
|
900
|
+
const res = await api.get(endpoints.startInfo, { signal });
|
|
901
|
+
if (!res.ok) throw new Error(`GET ${endpoints.startInfo} failed: ${res.status} ${res.statusText}`);
|
|
902
|
+
return res.data?.ipIsoCode ?? void 0;
|
|
903
|
+
}
|
|
904
|
+
//#endregion
|
|
865
905
|
//#region src/modules/id/idCaptureActor.ts
|
|
866
906
|
function createIdCaptureActor(options) {
|
|
907
|
+
const countryDetection = options.dependencies?.countryDetection;
|
|
867
908
|
const dependencies = {
|
|
868
909
|
...options.dependencies,
|
|
869
910
|
storage: options.dependencies?.storage ?? new BrowserStorageProvider(),
|
|
870
|
-
credentials: options.dependencies?.credentials ?? new BrowserDigitalCredentialsProvider()
|
|
911
|
+
credentials: options.dependencies?.credentials ?? new BrowserDigitalCredentialsProvider(),
|
|
912
|
+
countryDetection: {
|
|
913
|
+
...countryDetection,
|
|
914
|
+
ipCountry: countryDetection?.ipCountry ?? fetchIpCountry,
|
|
915
|
+
locale: countryDetection?.locale ?? new BrowserLocaleProvider()
|
|
916
|
+
}
|
|
871
917
|
};
|
|
872
918
|
const treatment = resolveCaptureOptimizingTreatment(options.config);
|
|
873
919
|
const config = {
|
|
@@ -1085,6 +1131,7 @@ function createIdCaptureOnlyManager(options) {
|
|
|
1085
1131
|
* (see `createIdCaptureOnlyManager`): no backend, images go to `onCapture`.
|
|
1086
1132
|
*/
|
|
1087
1133
|
function createIdCaptureManager(options) {
|
|
1134
|
+
import("./backCameraStream-DS1oDiUq.esm.js").then((n) => n.t).catch(() => void 0);
|
|
1088
1135
|
if (hasOnCaptureCallback(options.config)) return createIdCaptureOnlyManager({
|
|
1089
1136
|
config: pickIdCaptureOnlyConfig(options.config),
|
|
1090
1137
|
dependencies: options.dependencies
|
|
@@ -4,14 +4,14 @@ import "./Actor-DpTj5PFb.js";
|
|
|
4
4
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
5
5
|
import "./index-DpTj5PFb.js";
|
|
6
6
|
import "./createFaceAvatar-lYX0VTYs.js";
|
|
7
|
-
import { a as RegulationTypes } from "./types-
|
|
8
|
-
import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, t as FingerprintSignalType } from "./IWasmUtilCapability-
|
|
7
|
+
import { a as RegulationTypes } from "./types-CRaFu6wS.js";
|
|
8
|
+
import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, t as FingerprintSignalType } from "./IWasmUtilCapability-Cqiaxydi.js";
|
|
9
9
|
import { n as PermissionStatus } from "./types-BEwVKkLJ.js";
|
|
10
10
|
import { t as BaseWasmProvider } from "./BaseWasmProvider-Bq3OHo7P.js";
|
|
11
|
-
import { n as DeepsightService } from "./StreamCanvasCapture-
|
|
11
|
+
import { n as DeepsightService } from "./StreamCanvasCapture-C3xNfOsv.js";
|
|
12
12
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
13
13
|
import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-CGcEt2Cw.js";
|
|
14
|
-
import {
|
|
14
|
+
import { B as DeviceWalletDecryptResponse, E as IdErrorCode, G as DeviceWalletServices, K as DigitalIdProviderId, O as UploadIdResponse, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, Y as IDigitalCredentialsCapability, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, k as IAnalyticsCapability, q as FailureReason, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-BPm1JSu7.js";
|
|
15
15
|
//#region src/internal/http/endpoints.d.ts
|
|
16
16
|
/**
|
|
17
17
|
* Backend `CaptureType` for the `captureType` query param on `add/front-id`,
|
|
@@ -37,8 +37,16 @@ declare class WasmUtilProvider extends BaseWasmProvider implements IWasmUtilCapa
|
|
|
37
37
|
setBrowserInfo(browserInfo: object, overrideExisting?: boolean): void;
|
|
38
38
|
setCameraInfo(cameraInfo: object, overrideExisting?: boolean): void;
|
|
39
39
|
setMotionStatus(status: string): void;
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Native-free no-op since ml-wasm-kit v2.14.54; scheduled for
|
|
42
|
+
* removal in 3.0.0. Like the other shims it never requires initialization.
|
|
43
|
+
*/
|
|
40
44
|
setBackgroundMode(backgroundMode: boolean): void;
|
|
41
45
|
setOnDeviceMode(enabled: boolean): void;
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated Native-free no-op since ml-wasm-kit v2.14.54; scheduled for
|
|
48
|
+
* removal in 3.0.0. Like the other shims it never requires initialization.
|
|
49
|
+
*/
|
|
42
50
|
setZc(zc: string): void;
|
|
43
51
|
setInspectorOpened(opened: boolean): void;
|
|
44
52
|
getInspectorOpened(): boolean;
|
|
@@ -58,6 +66,12 @@ declare class WasmUtilProvider extends BaseWasmProvider implements IWasmUtilCapa
|
|
|
58
66
|
getPipelineState(): string;
|
|
59
67
|
estimatePerformance(): string;
|
|
60
68
|
isVirtualCamera(label: string | null): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated Resolves without doing anything since ml-wasm-kit v2.14.52:
|
|
71
|
+
* the pre-capture check runs inside the protected camera step, so existing
|
|
72
|
+
* `prc()` then `poc()` call sites keep working. Scheduled for removal in
|
|
73
|
+
* 3.0.0.
|
|
74
|
+
*/
|
|
61
75
|
prc(): Promise<void>;
|
|
62
76
|
poc(output: VirtualCameraCheckOutput): Promise<void>;
|
|
63
77
|
rsp(): Promise<void>;
|
|
@@ -117,6 +131,8 @@ type ValidationError = {
|
|
|
117
131
|
messageDescription?: string;
|
|
118
132
|
errorKey: IdErrorCode;
|
|
119
133
|
};
|
|
134
|
+
/** Statsig gate that lets the backend's `idQualityAttemptApproved` decide readability. */
|
|
135
|
+
declare const ID_QUALITY_BACKEND_VALIDATION_GATE = "id_quality_backend_validation";
|
|
120
136
|
declare function validateUploadResponse(response: UploadIdResponse & {
|
|
121
137
|
failReason?: string;
|
|
122
138
|
side?: 'front' | 'back';
|
|
@@ -228,6 +244,19 @@ declare function createIdCaptureOnlyActor(options: CreateIdCaptureOnlyActorOptio
|
|
|
228
244
|
//#region src/modules/id/digitalUpload/types.d.ts
|
|
229
245
|
type DigitalUploadFailReason = 'DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED' | 'ID_TYPE_UNACCEPTABLE' | 'FILE_CHANGED_ERROR' | 'INVALID_FILE_TYPE' | 'NETWORK_ERROR' | 'GENERIC';
|
|
230
246
|
//#endregion
|
|
247
|
+
//#region src/modules/id/deviceWallet/deviceWalletPlatform.d.ts
|
|
248
|
+
/**
|
|
249
|
+
* Maps an explicit provider override or the current user agent to the wallet
|
|
250
|
+
* platform (ported from V1 `resolveWalletPlatform`, minus the Credentials API
|
|
251
|
+
* capability check — that lives on `IDigitalCredentialsCapability.isAvailable()`
|
|
252
|
+
* and is consulted by the digital-ID funnel before this module is invoked).
|
|
253
|
+
*
|
|
254
|
+
* Auto-detection: iOS/iPadOS and macOS Safari → Apple Wallet (web); Android
|
|
255
|
+
* and every other desktop/unknown browser (incl. macOS Chrome) → Google
|
|
256
|
+
* Wallet, which is the only wallet reachable there.
|
|
257
|
+
*/
|
|
258
|
+
declare function resolveWalletPlatform(provider?: DeviceWalletProvider): DeviceWalletPlatform;
|
|
259
|
+
//#endregion
|
|
231
260
|
//#region src/modules/id/deviceWallet/deviceWalletActor.d.ts
|
|
232
261
|
type CreateDeviceWalletActorOptions = {
|
|
233
262
|
/**
|
|
@@ -401,6 +430,32 @@ type IdCaptureChooserState = {
|
|
|
401
430
|
* `selectDocument('digitalIdRedirect', { providerId })`.
|
|
402
431
|
*/
|
|
403
432
|
digitalIdRedirectOptions: IdCaptureDigitalIdRedirectOption[];
|
|
433
|
+
/**
|
|
434
|
+
* ISO alpha-2 country `digitalIdRedirectOptions` are ranked for: the
|
|
435
|
+
* detected one, or the one picked with `setChooserCountry`. `undefined`
|
|
436
|
+
* when no country is known.
|
|
437
|
+
*/
|
|
438
|
+
country: string | undefined;
|
|
439
|
+
/**
|
|
440
|
+
* Whether the options are country-ranked: the list can be ranked (two or
|
|
441
|
+
* more redirect providers serving different countries) and country
|
|
442
|
+
* detection ran for it. Detection runs whenever a country source is wired
|
|
443
|
+
* (by default always: IP lookup and browser locale), so in practice this
|
|
444
|
+
* is "the list is rankable". A detection that found no country is still
|
|
445
|
+
* `true`, with `country` `undefined`. Offer a country picker only when
|
|
446
|
+
* `true`; `setChooserCountry` has no visible effect otherwise.
|
|
447
|
+
*/
|
|
448
|
+
countryRanked: boolean;
|
|
449
|
+
/**
|
|
450
|
+
* The wallet family this device certainly reaches, for naming it on the
|
|
451
|
+
* Digital ID card: `apple` (iOS / iPadOS / macOS Safari), `samsung` (a
|
|
452
|
+
* detectable Samsung Android device), `android` (any other Android).
|
|
453
|
+
* `undefined` when the OS gives no certain answer (desktop Chrome, Windows,
|
|
454
|
+
* Linux) — show no wallet name then. It describes the device only, not the
|
|
455
|
+
* wallet methods enabled for the flow: those decide whether `digitalId` is
|
|
456
|
+
* in `availableDocumentTypes` at all.
|
|
457
|
+
*/
|
|
458
|
+
walletDevice: 'apple' | 'samsung' | 'android' | undefined;
|
|
404
459
|
};
|
|
405
460
|
/**
|
|
406
461
|
* Which UI-less machine phase the collapsed `loading` status stands for. The
|
|
@@ -664,6 +719,13 @@ declare function createIdCaptureManagerFromActor(actor: AnyIdCaptureActor, visib
|
|
|
664
719
|
selectDocument(documentType: IdDocumentType, options?: {
|
|
665
720
|
providerId?: DigitalIdProviderId;
|
|
666
721
|
}): void;
|
|
722
|
+
/**
|
|
723
|
+
* On the chooser: re-ranks `digitalIdRedirectOptions` for the given ISO
|
|
724
|
+
* alpha-2 country (the "Viewing options for" picker). Only reorders —
|
|
725
|
+
* every option stays available. Ignored outside the chooser and for an
|
|
726
|
+
* invalid code.
|
|
727
|
+
*/
|
|
728
|
+
setChooserCountry(country: string): void;
|
|
667
729
|
nextStep(): Promise<void>;
|
|
668
730
|
/**
|
|
669
731
|
* Continues from Tutorial into permission orchestration. When iOS requires
|
|
@@ -747,6 +809,7 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
|
|
|
747
809
|
selectDocument(documentType: IdDocumentType, options?: {
|
|
748
810
|
providerId?: DigitalIdProviderId;
|
|
749
811
|
}): void;
|
|
812
|
+
setChooserCountry(country: string): void;
|
|
750
813
|
nextStep(): Promise<void>;
|
|
751
814
|
continueToPermission(): void;
|
|
752
815
|
requestPermission(options?: {
|
|
@@ -785,4 +848,4 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
|
|
|
785
848
|
deviceWalletUseAnotherMethod(): void;
|
|
786
849
|
};
|
|
787
850
|
//#endregion
|
|
788
|
-
export {
|
|
851
|
+
export { ValidationError as A, processId as B, AddBarcodeParams as C, InitializeIdCaptureParams as D, IdCaptureInitResult as E, getRealQualityValue as F, uploadIdImage as G, startRecordingSession as H, initializeIdCapture as I, validateUploadResponse as K, isSuspendableRecordingSession as L, barcodeToBase64 as M, disposeRecordingSession as N, StartRecordingParams as O, finalizeRecordingSession as P, pauseRecordingForAttempt as R, idCaptureMachine as S, ID_QUALITY_BACKEND_VALIDATION_GATE as T, stopRecording as U, resumeRecordingAfterPause as V, stopStream as W, idCaptureOnlyMachine as _, RenderWalletError as a, createIdCaptureActor as b, DeviceWalletManager as c, CreateDeviceWalletActorOptions as d, resolveWalletPlatform as f, IdCaptureOnlyMachine as g, createIdCaptureOnlyActor as h, createIdCaptureManagerFromActor as i, addBarcode as j, UploadIdImageParams as k, DeviceWalletState as l, IdCaptureOnlyActor as m, IdCaptureManager as n, RenderWalletParams as o, CreateIdCaptureOnlyActorOptions as p, WasmUtilProvider as q, IdCaptureState as r, renderWallet as s, createIdCaptureManager as t, createDeviceWalletManager as u, CreateIdCaptureActorOptions as v, FinalizedIdRecording as w, IdCaptureMachine as x, IdCaptureActor as y, prepareRecordingForCameraRetry as z };
|
|
@@ -1,194 +1,13 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
3
|
-
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-
|
|
4
|
-
import { i as isDesktop } from "./platform-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-CLwrF5wD.esm.js";
|
|
9
|
-
import { n as getBackCameraStream, o as isBackFacingTrack } from "./backCameraStream-CMvXj4X4.esm.js";
|
|
10
|
-
import { t as getDeviceClass } from "./getDeviceClass-bsWdEDxP.esm.js";
|
|
11
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-BGsG2OAs.esm.js";
|
|
12
|
-
//#region src/internal/camera/cameraServices.ts
|
|
13
|
-
function createCameraServices(camera) {
|
|
14
|
-
return {
|
|
15
|
-
async checkPermission() {
|
|
16
|
-
return queryCameraPermission();
|
|
17
|
-
},
|
|
18
|
-
async requestStream(config) {
|
|
19
|
-
return camera.requestStream({
|
|
20
|
-
facingMode: config.facingMode,
|
|
21
|
-
deviceId: config.deviceId
|
|
22
|
-
});
|
|
23
|
-
},
|
|
24
|
-
stopStream(stream) {
|
|
25
|
-
camera.stopStream(stream);
|
|
26
|
-
},
|
|
27
|
-
captureFrame(video) {
|
|
28
|
-
return camera.captureFrame(video);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
setup({
|
|
33
|
-
types: {
|
|
34
|
-
context: {},
|
|
35
|
-
events: {},
|
|
36
|
-
input: {}
|
|
37
|
-
},
|
|
38
|
-
actors: {
|
|
39
|
-
checkPermission: fromPromise(async ({ input }) => {
|
|
40
|
-
return createCameraServices(input.camera).checkPermission();
|
|
41
|
-
}),
|
|
42
|
-
requestStream: fromPromise(async ({ input }) => {
|
|
43
|
-
return createCameraServices(input.camera).requestStream(input.config);
|
|
44
|
-
})
|
|
45
|
-
},
|
|
46
|
-
actions: {
|
|
47
|
-
setPermissionResult: assign({ permissionResult: ({ event }) => {
|
|
48
|
-
if ("output" in event) return event.output;
|
|
49
|
-
if (event.type === "PERMISSION_RESULT") return event.result;
|
|
50
|
-
} }),
|
|
51
|
-
setStream: assign({ stream: ({ event }) => {
|
|
52
|
-
if ("output" in event) return event.output;
|
|
53
|
-
if (event.type === "STREAM_READY") return event.stream;
|
|
54
|
-
} }),
|
|
55
|
-
setError: assign({
|
|
56
|
-
error: ({ event }) => {
|
|
57
|
-
if ("error" in event && event.type?.startsWith?.("xstate.error")) {
|
|
58
|
-
const err = event.error;
|
|
59
|
-
return err.message || String(err);
|
|
60
|
-
}
|
|
61
|
-
if (event.type === "STREAM_ERROR") return event.error;
|
|
62
|
-
},
|
|
63
|
-
errorType: ({ event }) => {
|
|
64
|
-
if ("error" in event && event.type?.startsWith?.("xstate.error")) {
|
|
65
|
-
const err = event.error;
|
|
66
|
-
if (err.name === "NotAllowedError") return "permission_denied";
|
|
67
|
-
if (err.name === "NotFoundError") return "not_found";
|
|
68
|
-
if (err.name === "NotReadableError") return "not_readable";
|
|
69
|
-
if (err.name === "OverconstrainedError") return "overconstrained";
|
|
70
|
-
if (err.name === "SecurityError") return "security";
|
|
71
|
-
if (err.name === "AbortError") return "abort";
|
|
72
|
-
return "unknown";
|
|
73
|
-
}
|
|
74
|
-
if (event.type === "STREAM_ERROR") return event.errorType;
|
|
75
|
-
}
|
|
76
|
-
}),
|
|
77
|
-
stopStream: ({ context }) => {
|
|
78
|
-
if (context.stream) createCameraServices(context.camera).stopStream(context.stream);
|
|
79
|
-
},
|
|
80
|
-
resetContext: assign(({ context }) => ({
|
|
81
|
-
camera: context.camera,
|
|
82
|
-
config: context.config,
|
|
83
|
-
stream: void 0,
|
|
84
|
-
permissionResult: void 0,
|
|
85
|
-
error: void 0,
|
|
86
|
-
errorType: void 0
|
|
87
|
-
}))
|
|
88
|
-
},
|
|
89
|
-
guards: {
|
|
90
|
-
permissionGranted: ({ context }) => context.permissionResult === "granted",
|
|
91
|
-
permissionDenied: ({ context }) => context.permissionResult === "denied",
|
|
92
|
-
hasStream: ({ context }) => context.stream !== void 0
|
|
93
|
-
}
|
|
94
|
-
}).createMachine({
|
|
95
|
-
id: "camera",
|
|
96
|
-
initial: "idle",
|
|
97
|
-
context: ({ input }) => ({
|
|
98
|
-
camera: input.camera,
|
|
99
|
-
config: input.config ?? {},
|
|
100
|
-
stream: void 0,
|
|
101
|
-
permissionResult: void 0,
|
|
102
|
-
error: void 0,
|
|
103
|
-
errorType: void 0
|
|
104
|
-
}),
|
|
105
|
-
states: {
|
|
106
|
-
idle: { on: { START: "checkingPermission" } },
|
|
107
|
-
checkingPermission: {
|
|
108
|
-
invoke: {
|
|
109
|
-
id: "checkPermission",
|
|
110
|
-
src: "checkPermission",
|
|
111
|
-
input: ({ context }) => ({ camera: context.camera }),
|
|
112
|
-
onDone: {
|
|
113
|
-
target: "routing",
|
|
114
|
-
actions: "setPermissionResult"
|
|
115
|
-
},
|
|
116
|
-
onError: {
|
|
117
|
-
target: "routing",
|
|
118
|
-
actions: assign({ permissionResult: () => "prompt" })
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
on: { STOP: {
|
|
122
|
-
target: "idle",
|
|
123
|
-
actions: "resetContext"
|
|
124
|
-
} }
|
|
125
|
-
},
|
|
126
|
-
routing: { always: [
|
|
127
|
-
{
|
|
128
|
-
target: "requesting",
|
|
129
|
-
guard: "permissionGranted"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
target: "error",
|
|
133
|
-
guard: "permissionDenied",
|
|
134
|
-
actions: assign({
|
|
135
|
-
error: () => "Camera permission denied",
|
|
136
|
-
errorType: () => "permission_denied"
|
|
137
|
-
})
|
|
138
|
-
},
|
|
139
|
-
{ target: "requesting" }
|
|
140
|
-
] },
|
|
141
|
-
requesting: {
|
|
142
|
-
invoke: {
|
|
143
|
-
id: "requestStream",
|
|
144
|
-
src: "requestStream",
|
|
145
|
-
input: ({ context }) => ({
|
|
146
|
-
camera: context.camera,
|
|
147
|
-
config: context.config
|
|
148
|
-
}),
|
|
149
|
-
onDone: {
|
|
150
|
-
target: "streaming",
|
|
151
|
-
actions: "setStream"
|
|
152
|
-
},
|
|
153
|
-
onError: {
|
|
154
|
-
target: "error",
|
|
155
|
-
actions: "setError"
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
on: { STOP: {
|
|
159
|
-
target: "idle",
|
|
160
|
-
actions: "resetContext"
|
|
161
|
-
} }
|
|
162
|
-
},
|
|
163
|
-
streaming: {
|
|
164
|
-
exit: "stopStream",
|
|
165
|
-
on: {
|
|
166
|
-
STOP: {
|
|
167
|
-
target: "idle",
|
|
168
|
-
actions: "resetContext"
|
|
169
|
-
},
|
|
170
|
-
RESET: {
|
|
171
|
-
target: "idle",
|
|
172
|
-
actions: "resetContext"
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
error: { on: {
|
|
177
|
-
RESET: {
|
|
178
|
-
target: "idle",
|
|
179
|
-
actions: "resetContext"
|
|
180
|
-
},
|
|
181
|
-
STOP: {
|
|
182
|
-
target: "idle",
|
|
183
|
-
actions: "resetContext"
|
|
184
|
-
}
|
|
185
|
-
} }
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
//#endregion
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-DDahygZs.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
3
|
+
import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-BbCIA4og.esm.js";
|
|
4
|
+
import { i as isDesktop } from "./platform-aPh7gTWh.esm.js";
|
|
5
|
+
import { n as isBackFacingTrack } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
6
|
+
import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
|
|
7
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-Dszuq9ng.esm.js";
|
|
189
8
|
//#region src/modules/id/idCameraStream.ts
|
|
190
9
|
async function getIdCameraStream(deviceId) {
|
|
191
|
-
return getBackCameraStream(deviceId);
|
|
10
|
+
return (await import("./backCameraStream-DS1oDiUq.esm.js").then((n) => n.t)).getBackCameraStream(deviceId);
|
|
192
11
|
}
|
|
193
12
|
//#endregion
|
|
194
13
|
//#region src/modules/id/idCaptureExperiments.ts
|
|
@@ -470,6 +289,14 @@ async function initializeIdCapture(params) {
|
|
|
470
289
|
function stopStream(stream) {
|
|
471
290
|
for (const track of stream.getTracks()) track.stop();
|
|
472
291
|
}
|
|
292
|
+
/** Statsig gate that lets the backend's `idQualityAttemptApproved` decide readability. */
|
|
293
|
+
const ID_QUALITY_BACKEND_VALIDATION_GATE = "id_quality_backend_validation";
|
|
294
|
+
const readabilityIssue = {
|
|
295
|
+
error: true,
|
|
296
|
+
message: "Info is not readable",
|
|
297
|
+
messageDescription: "Minimize camera shake by holding your phone steady",
|
|
298
|
+
errorKey: ID_ERROR_CODES.READABILITY_ISSUE
|
|
299
|
+
};
|
|
473
300
|
function validateUploadResponse(response, sessionState) {
|
|
474
301
|
if (response.failReason === "ID_TYPE_UNACCEPTABLE") return {
|
|
475
302
|
error: true,
|
|
@@ -483,17 +310,16 @@ function validateUploadResponse(response, sessionState) {
|
|
|
483
310
|
messageDescription: response.side === "back" ? "Please show the back side of your ID" : "Please show the front side of your ID",
|
|
484
311
|
errorKey: ID_ERROR_CODES.WRONG_DOCUMENT_SIDE
|
|
485
312
|
};
|
|
486
|
-
if (response.failReason === "DOCUMENT_NOT_READABLE") return
|
|
487
|
-
error: true,
|
|
488
|
-
message: "Info is not readable",
|
|
489
|
-
messageDescription: "Minimize camera shake by holding your phone steady",
|
|
490
|
-
errorKey: ID_ERROR_CODES.READABILITY_ISSUE
|
|
491
|
-
};
|
|
313
|
+
if (response.failReason === "DOCUMENT_NOT_READABLE") return readabilityIssue;
|
|
492
314
|
if (!response.classification) return {
|
|
493
315
|
error: true,
|
|
494
316
|
message: "ID classification failed",
|
|
495
317
|
errorKey: ID_ERROR_CODES.CLASSIFICATION_FAILED
|
|
496
318
|
};
|
|
319
|
+
if (getFeatureGate("id_quality_backend_validation").enabled && response.idQualityAttemptApproved !== void 0 && response.idQualityAttemptApproved !== null) {
|
|
320
|
+
if (response.idQualityAttemptApproved === false) return readabilityIssue;
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
497
323
|
const sharpnessThreshold = getDeviceClass() === "desktop" ? -1 : SHARPNESS_THRESHOLD;
|
|
498
324
|
if (response.sharpness !== void 0 && sharpnessThreshold >= 0 && response.sharpness < sharpnessThreshold) return {
|
|
499
325
|
error: true,
|
|
@@ -607,12 +433,17 @@ async function startRecordingSession(params) {
|
|
|
607
433
|
if (multipartSession) multipartSession.recorderPaused = false;
|
|
608
434
|
return params.existing;
|
|
609
435
|
}
|
|
436
|
+
const [compositorModule, recorderModule, serviceModule] = await Promise.all([
|
|
437
|
+
import("./CameraCompositor-DN7NkJzV.esm.js").then((n) => n.n),
|
|
438
|
+
import("./WorkerEncoderRecordingProvider-B1ODYtgN.esm.js").then((n) => n.n),
|
|
439
|
+
import("./multipartRecordingService-BTqkHGG9.esm.js").then((n) => n.n)
|
|
440
|
+
]);
|
|
610
441
|
const recordingSource = params.stream.clone();
|
|
611
|
-
const compositor = createRecordingCompositor();
|
|
442
|
+
const compositor = compositorModule.createRecordingCompositor();
|
|
612
443
|
let service;
|
|
613
444
|
try {
|
|
614
445
|
const recordingStream = compositor.start(recordingSource);
|
|
615
|
-
service = new MultipartRecordingService(params.type, new WorkerEncoderRecordingProvider(compositor));
|
|
446
|
+
service = new serviceModule.MultipartRecordingService(params.type, new recorderModule.WorkerEncoderRecordingProvider(compositor));
|
|
616
447
|
await service.start(recordingStream);
|
|
617
448
|
} catch (error) {
|
|
618
449
|
compositor.stop();
|
|
@@ -761,4 +592,4 @@ async function addBarcode(params) {
|
|
|
761
592
|
return res.data;
|
|
762
593
|
}
|
|
763
594
|
//#endregion
|
|
764
|
-
export {
|
|
595
|
+
export { OPTIMIZING_WATCHDOG_MARGIN_MS as C, CAPTURE_OPTIMIZING as S, validateUploadResponse as _, finalizeRecordingSession as a, resolveCountdownStepMs as b, isSuspendableRecordingSession as c, processId as d, resumeRecordingAfterPause as f, uploadIdImage as g, stopStream as h, disposeRecordingSession as i, pauseRecordingForAttempt as l, stopRecording as m, addBarcode as n, getRealQualityValue as o, startRecordingSession as p, barcodeToBase64 as r, initializeIdCapture as s, ID_QUALITY_BACKEND_VALIDATION_GATE as t, prepareRecordingForCameraRetry as u, ID_ERROR_CODES as v, getIdCameraStream as w, resolveIdCaptureThresholds as x, resolveCaptureOptimizingTreatment as y };
|