@incodetech/core 2.4.0-rc.4 → 2.4.1-agentic
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/{FaceDetectionProvider-CzQEFzP8.esm.js → FaceDetectionProvider-B83VmClw.esm.js} +29 -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/{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/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-GTkoJyFY.esm.js} +75 -22
- package/dist/{addressSearch-DPjIKJrX.esm.js → addressSearch-41sMcnJk.esm.js} +72 -31
- 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-CQ08atTC.esm.js} +2 -2
- package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-BcsUTTIr.esm.js} +1 -1
- package/dist/{api-Cz90EHyu.esm.js → api-BO8JA7Pf.esm.js} +6 -5
- package/dist/{apiError-B_uY7RO6.esm.js → apiError-CfuIvnUy.esm.js} +1 -1
- package/dist/attemptCarry-BjTJ6bMQ.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-C-cOki0Y.d.ts} +1 -1
- package/dist/{authenticationManager-CSHZQTlb.esm.js → authenticationManager-DvmklBTE.esm.js} +5 -5
- package/dist/{authenticationStateMachine-DrO14KyC.esm.js → authenticationStateMachine-BL2ptOA0.esm.js} +3 -3
- package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-C5_NNfUN.esm.js} +3 -43
- 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.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-CM0fuqDC.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-kksIUOPD.esm.js} +2 -2
- package/dist/cnpj-Co1ottYN.esm.js +77 -0
- package/dist/connectivity-HSl0diCx.esm.js +133 -0
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-CBwFozhv.esm.js} +4 -3
- package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-_q9yJUku.d.ts} +14 -7
- package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-CpmRAcr2.esm.js} +20 -7
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-64O8t10a.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-CLgJQcx0.esm.js} +3 -2
- package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-CXpFE-Mv.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-Bx9YhVkJ.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-DWt_0YtJ.esm.js} +2 -2
- package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-D8o-2Nej.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-Sbi6DIcK.esm.js} +1 -1
- package/dist/{deepsightLoader-DkrG5zbN.esm.js → deepsightLoader-DMxtowCm.esm.js} +6 -28
- package/dist/{deepsightService-BrltL1DF.esm.js → deepsightService-twg3bXqY.esm.js} +20 -59
- package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-kHY2IDJi.esm.js} +177 -40
- package/dist/device.esm.js +2 -2
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-6tnnDkMX.d.ts} +14 -2
- package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-CMSC_Mhd.esm.js} +26 -19
- package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-BCwD5Rto.esm.js} +43 -35
- 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-D7Xnjm7B.esm.js → dynamicFormsManager-DU6W1e20.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-Cgk0VPP4.esm.js → dynamicFormsStateMachine-C8Z7k3vo.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-TB6ZG5lX.d.ts} +2 -2
- package/dist/{ekybManager-yj_Y36jM.esm.js → ekybManager-TGfqyjuu.esm.js} +2 -2
- package/dist/{ekybStateMachine-DIRBMkaD.esm.js → ekybStateMachine-DBgFuEPK.esm.js} +26 -44
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-BSQteIfC.d.ts} +1 -1
- package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-C2cgG2Pl.esm.js} +2 -2
- package/dist/ekycStateMachine-CuNF7z4O.esm.js +7505 -0
- package/dist/ekycUtils-BFncpC4F.esm.js +1401 -0
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-Btsa7Prh.esm.js → electronicSignatureManager-C7pqXsRm.esm.js} +4 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-ButFktRm.esm.js → emailManager-FH_CP0cT.esm.js} +2 -2
- package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-Cx-uTaBV.esm.js} +32 -20
- package/dist/{events-Du2A4-Qr.esm.js → events-CQteqXfy.esm.js} +2 -2
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +35 -21
- package/dist/extensibility.esm.js +34 -34
- 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-C-xKdj-d.d.ts} +71 -66
- package/dist/{faceCaptureManagerFactory-CdDfnyyb.esm.js → faceCaptureManagerFactory-CBm05KnT.esm.js} +4 -4
- package/dist/{faceCaptureSetup-CCucWLdy.esm.js → faceCaptureSetup-BQjCbL51.esm.js} +82 -64
- package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-B2zp7yP4.esm.js} +2 -2
- package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-Z4UDLwAv.d.ts} +16 -7
- package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-ByTMQCUC.esm.js} +40 -27
- package/dist/{feature-management-DCD0I_XZ.esm.js → feature-management-DjAG5lsJ.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-CC0vKmpf.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-Be-r4oZj.esm.js} +4 -4
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +10 -10
- package/dist/flow.esm.js +8 -11
- package/dist/{flowCompletionService-xFODSJEq.esm.js → flowCompletionService-ChMU2v79.esm.js} +2 -2
- package/dist/{flowServices-COMEf-WP.esm.js → flowServices-g2tVWsJl.esm.js} +8 -50
- 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-B2C2yfrn.esm.js → geolocationManager-DLbvZwUB.esm.js} +6 -8
- package/dist/{geolocationStateMachine-Dbg9jw62.esm.js → geolocationStateMachine-CAJVongM.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-CkX9TEkh.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-PTPCP26N.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.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +9 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -16
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-MSQoqScU.esm.js} +3 -3
- package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-DzTfQ1Am.d.ts} +66 -5
- package/dist/{idCaptureManager-DZtgScdd.esm.js → idCaptureManager-zZdTcpG1.esm.js} +63 -17
- package/dist/{idCaptureServices-mpibFz4U.esm.js → idCaptureServices-8OHinO0N.esm.js} +9 -9
- package/dist/{idCaptureStateMachine-DWJOHeGn.esm.js → idCaptureStateMachine-B3G6XoDG.esm.js} +914 -536
- package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-B64-fjWg.esm.js} +2 -2
- package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-B1aZnobs.esm.js} +2 -2
- package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-_Kebv-Ue.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DQn6c84z.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-DDXkNVZi.esm.js} +2 -2
- package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +4 -4
- package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-Bcnkbjf8.esm.js} +1 -1
- package/dist/{index-BKOWUhxG.d.ts → index-DEfwds5y.d.ts} +55 -8
- package/dist/{index-CKQ9QBZP.d.ts → index-DMDAk85K.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-CXIBwBeE.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-43W5d_8G.esm.js} +4 -3
- package/dist/{mandatoryConsentManager-okPILEru.d.ts → mandatoryConsentManager-xx3mY-xw.d.ts} +13 -6
- package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-CVlgdlnt.esm.js} +20 -7
- package/dist/{multipartRecordingService-CLwrF5wD.esm.js → multipartRecordingService-DMBxHKS2.esm.js} +3 -13
- package/dist/nationalIds-B91f_RuB.esm.js +99 -0
- package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-B3OPL8Si.esm.js} +1 -1
- package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-DnBAN_hW.esm.js} +4 -4
- 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/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
- package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-C6jut_pz.esm.js} +3 -3
- package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-T1-drWfG.esm.js} +37 -25
- 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-BWme3kVV.esm.js +21 -0
- package/dist/qe-signature.esm.js +1 -1
- 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-BJXC6Kx9.esm.js} +4 -3
- package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Dm9ctRCC.d.ts} +3 -1
- package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-BBMAc2Gb.esm.js} +27 -6
- package/dist/{runChildModule-C09a9ACV.esm.js → runChildModule-DPHTqSdF.esm.js} +3 -3
- package/dist/{sdkVersion-xE2xE2_9.esm.js → sdkVersion-C3_P-Qbq.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-CoXIxVCy.esm.js → selfieErrorUtils-BL0BLMnp.esm.js} +1 -1
- package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-BMmpUii2.d.ts} +1 -1
- package/dist/{selfieManager-RcVUu1KJ.esm.js → selfieManager-Cbliomv7.esm.js} +5 -5
- package/dist/{selfieStateMachine-nWbIRIBD.esm.js → selfieStateMachine-B5m_Kn0O.esm.js} +3 -3
- package/dist/{session-Cr4IVgYu.esm.js → session-DAaAewMX.esm.js} +77 -9
- package/dist/session.d.ts +96 -10
- package/dist/session.esm.js +7 -6
- package/dist/{sessionInitializer-c3CChZts.esm.js → sessionInitializer-CWFT4dfw.esm.js} +402 -202
- package/dist/{setup-BvKrAlOo.esm.js → setup-CDAKwTr7.esm.js} +32 -19
- package/dist/{setup-YPKTUCY5.d.ts → setup-D9qt8YVU.d.ts} +2 -2
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-BeEVCcsC.esm.js} +2 -2
- package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-_1c1vSid.esm.js} +1 -1
- package/dist/{stats-BEvexnKC.esm.js → stats-BpMz-hTP.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{tri-xzRLIIMN.esm.js → tri-BajQnjbf.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-BAvhAU7T.esm.js → trueSightService-BujtUIW6.esm.js} +19 -10
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types-yPH8lAH-.d.ts → types--3HDl2SF.d.ts} +2 -2
- package/dist/types-B2FK_wYb.d.ts +249 -0
- package/dist/types-B9C8W01q.d.ts +34 -0
- package/dist/{types-0L-eFDmr.d.ts → types-C397LhmN.d.ts} +1 -1
- package/dist/types-D9r3zRfY.d.ts +6 -0
- package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
- package/dist/{types-B6HsSzpk.d.ts → types-DuD8TRJU.d.ts} +3 -2
- package/dist/{types-Ckir_BEs.d.ts → types-PTZHRhGX.d.ts} +1 -1
- package/dist/{types-DUnFZ08M.d.ts → types-ZTZelfbM.d.ts} +2 -2
- package/dist/{types-CK8Jbjkp.d.ts → types-e8fCsvvk.d.ts} +1 -1
- package/dist/{types-BAxn7MpY.d.ts → types-xEEWCx1j.d.ts} +123 -48
- 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 +95 -22
- package/dist/{videoSelfieCameraWarmer-LeE2vbAW.esm.js → videoSelfieCameraWarmer-DjkPpoj_.esm.js} +18 -21
- package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-RfSmlFFW.d.ts} +9 -4
- package/dist/{warmup-BElYWRh7.esm.js → warmup-BkfxQZsC.esm.js} +175 -11
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-BhU5H2oR.esm.js} +1 -1
- package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
- package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-DTj9auyA.esm.js} +43 -17
- 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-CZZOFkGl.esm.js → watchlistForBusinessManager-CVay6-9A.esm.js} +37 -7
- package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts} +54 -18
- package/dist/watchlistForBusinessStateMachine-DA6K5na4.esm.js +166 -0
- package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-B8gQ_rw3.esm.js} +2 -2
- package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-CSi_ZhtT.esm.js} +1 -1
- package/dist/workflow.d.ts +5 -2
- package/dist/workflow.esm.js +57 -47
- package/package.json +3 -2
- package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
- 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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as getWasmStatus } from "./warmup-
|
|
2
|
-
import { r as getToken, t as api, u as endpoints } from "./api-
|
|
3
|
-
import {
|
|
4
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
5
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
6
|
-
import "./session-
|
|
7
|
-
import {
|
|
1
|
+
import { r as getWasmStatus } from "./warmup-BkfxQZsC.esm.js";
|
|
2
|
+
import { r as getToken, t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
3
|
+
import { d as whenSessionFingerprintSettled, f as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CWFT4dfw.esm.js";
|
|
4
|
+
import { E as updateFeatureManagementUser } from "./feature-management-DjAG5lsJ.esm.js";
|
|
5
|
+
import { i as toIncodeApiError } from "./apiError-CfuIvnUy.esm.js";
|
|
6
|
+
import "./session-DAaAewMX.esm.js";
|
|
7
|
+
import { c as toEkycConfig } from "./ekycUtils-BFncpC4F.esm.js";
|
|
8
8
|
//#region src/modules/flow/dashboardConfig.ts
|
|
9
9
|
function isPlainObject(value) {
|
|
10
10
|
if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
|
|
@@ -75,7 +75,6 @@ const FIELD_NAME_MAPPING = {
|
|
|
75
75
|
"postalCode-user_input": "postalCode",
|
|
76
76
|
"taxId-user_input": "taxId"
|
|
77
77
|
};
|
|
78
|
-
const COUNTRIES_WITH_CNPJ_VALIDATION = ["BR"];
|
|
79
78
|
const BUSINESS_NAME_OPTIONAL_COUNTRIES = [];
|
|
80
79
|
const ADDRESS_FULLY_OPTIONAL_COUNTRIES = [
|
|
81
80
|
"BR",
|
|
@@ -95,47 +94,6 @@ const UBO_FIELD_LABELS = {
|
|
|
95
94
|
name: "ekyb.uboName",
|
|
96
95
|
surname: "ekyb.uboSurname"
|
|
97
96
|
};
|
|
98
|
-
const INVALID_CNPJ_PATTERNS = [
|
|
99
|
-
"00000000000000",
|
|
100
|
-
"11111111111111",
|
|
101
|
-
"22222222222222",
|
|
102
|
-
"33333333333333",
|
|
103
|
-
"44444444444444",
|
|
104
|
-
"55555555555555",
|
|
105
|
-
"66666666666666",
|
|
106
|
-
"77777777777777",
|
|
107
|
-
"88888888888888",
|
|
108
|
-
"99999999999999"
|
|
109
|
-
];
|
|
110
|
-
const CNPJ_FIRST_DIGIT_FACTORS = [
|
|
111
|
-
5,
|
|
112
|
-
4,
|
|
113
|
-
3,
|
|
114
|
-
2,
|
|
115
|
-
9,
|
|
116
|
-
8,
|
|
117
|
-
7,
|
|
118
|
-
6,
|
|
119
|
-
5,
|
|
120
|
-
4,
|
|
121
|
-
3,
|
|
122
|
-
2
|
|
123
|
-
];
|
|
124
|
-
const CNPJ_SECOND_DIGIT_FACTORS = [
|
|
125
|
-
6,
|
|
126
|
-
5,
|
|
127
|
-
4,
|
|
128
|
-
3,
|
|
129
|
-
2,
|
|
130
|
-
9,
|
|
131
|
-
8,
|
|
132
|
-
7,
|
|
133
|
-
6,
|
|
134
|
-
5,
|
|
135
|
-
4,
|
|
136
|
-
3,
|
|
137
|
-
2
|
|
138
|
-
];
|
|
139
97
|
//#endregion
|
|
140
98
|
//#region src/modules/ekyb/ekybUtils.ts
|
|
141
99
|
/**
|
|
@@ -685,4 +643,4 @@ async function resolveDashboardModuleConfig(options) {
|
|
|
685
643
|
return flowConfig;
|
|
686
644
|
}
|
|
687
645
|
//#endregion
|
|
688
|
-
export {
|
|
646
|
+
export { FIELD_ORDER as C, mergeDashboardConfig as D, isSupportedCountry as E, FIELD_NAME_MAPPING as S, UBO_FIELD_LABELS as T, sortModulesByOrder as _, resolveDashboardModuleConfig as a, ALL_COUNTRIES as b, getRequiredWasmPipelines as c, facingModeForStep as d, resolveVideoSelfieSteps as f, requiresAddressValidation as g, isFieldOptional as h, resetDashboardFlowCache as i, normalizeFlowModules as l, hasAtLeastOneAddressField as m, getFlow as n, enrichFlowModuleConfig as o, videoSelfieWasmPipelines as p, preloadDashboardFlow as r, getNextRequiredWasmPipelines as s, completeDeferredActivation as t, resolveFlowModuleConfig as u, toEkybConfig as v, SUPPORTED_COUNTRIES as w, DEV_ONLY_COUNTRIES as x, ADDRESS_FIELDS as y };
|
package/dist/geolocation.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as GeolocationState, o as geolocationMachine, r as createGeolocationManager, s as GeolocationConfig, t as GeolocationManager } from "./geolocationManager-
|
|
1
|
+
import { n as GeolocationState, o as geolocationMachine, r as createGeolocationManager, s as GeolocationConfig, t as GeolocationManager } from "./geolocationManager-6e1i9UIR.js";
|
|
2
2
|
export { type GeolocationConfig, type GeolocationManager, type GeolocationState, createGeolocationManager, geolocationMachine };
|
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createGeolocationManager } from "./geolocationManager-
|
|
2
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
1
|
+
import { t as createGeolocationManager } from "./geolocationManager-DLbvZwUB.esm.js";
|
|
2
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-CAJVongM.esm.js";
|
|
3
3
|
export { createGeolocationManager, geolocationMachine };
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
|
|
2
2
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
3
|
import "./Actor-DpTj5PFb.js";
|
|
4
|
-
|
|
5
|
-
type GeolocationCoords = {
|
|
6
|
-
latitude: number;
|
|
7
|
-
longitude: number;
|
|
8
|
-
};
|
|
9
|
-
type IGeolocationCapability = {
|
|
10
|
-
getCurrentPosition(): Promise<GeolocationCoords>;
|
|
11
|
-
};
|
|
12
|
-
//#endregion
|
|
4
|
+
import { n as IGeolocationCapability } from "./IGeolocationCapability-r49Qo7rR.js";
|
|
13
5
|
//#region src/modules/geolocation/types.d.ts
|
|
14
6
|
/**
|
|
15
7
|
* Configuration options for the Geolocation module.
|
|
@@ -104,6 +96,10 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
|
|
|
104
96
|
params: NonReducibleUnknown;
|
|
105
97
|
};
|
|
106
98
|
}>, Values<{
|
|
99
|
+
isOutOfAttempts: {
|
|
100
|
+
type: "isOutOfAttempts";
|
|
101
|
+
params: unknown;
|
|
102
|
+
};
|
|
107
103
|
canSkip: {
|
|
108
104
|
type: "canSkip";
|
|
109
105
|
params: unknown;
|
|
@@ -120,10 +116,10 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
|
|
|
120
116
|
type: "isPermissionDenied";
|
|
121
117
|
params: unknown;
|
|
122
118
|
};
|
|
123
|
-
}>, never, "error" | "idle" | "closed" | "finished" | "requestingLocation" | "submitting" | "permissionDenied" | "locationAcquired"
|
|
119
|
+
}>, never, "error" | "idle" | "closed" | "finished" | "requestingLocation" | "submitting" | "permissionDenied" | "locationAcquired", string, GeolocationInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
124
120
|
readonly id: "geolocation";
|
|
125
121
|
readonly initial: "idle";
|
|
126
|
-
readonly context: ({ input }: {
|
|
122
|
+
readonly context: ({ input, self }: {
|
|
127
123
|
spawn: {
|
|
128
124
|
<TSrc extends "requestPosition" | "submitPosition">(logic: TSrc, ...[options]: ({
|
|
129
125
|
src: "requestPosition";
|
|
@@ -219,9 +215,12 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
|
|
|
219
215
|
readonly states: {
|
|
220
216
|
readonly idle: {
|
|
221
217
|
readonly on: {
|
|
222
|
-
readonly REQUEST: {
|
|
218
|
+
readonly REQUEST: readonly [{
|
|
219
|
+
readonly target: "error";
|
|
220
|
+
readonly guard: "isOutOfAttempts";
|
|
221
|
+
}, {
|
|
223
222
|
readonly target: "requestingLocation";
|
|
224
|
-
};
|
|
223
|
+
}];
|
|
225
224
|
};
|
|
226
225
|
};
|
|
227
226
|
readonly requestingLocation: {
|
|
@@ -326,7 +325,7 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
|
|
|
326
325
|
readonly actions: "setLocation";
|
|
327
326
|
};
|
|
328
327
|
readonly onError: readonly [{
|
|
329
|
-
readonly target: "
|
|
328
|
+
readonly target: "error";
|
|
330
329
|
readonly guard: "isNetworkError";
|
|
331
330
|
}, {
|
|
332
331
|
readonly target: "error";
|
|
@@ -334,7 +333,6 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
|
|
|
334
333
|
}];
|
|
335
334
|
};
|
|
336
335
|
};
|
|
337
|
-
readonly noNetwork: {};
|
|
338
336
|
readonly error: {
|
|
339
337
|
readonly on: {
|
|
340
338
|
readonly RETRY: {
|
|
@@ -409,8 +407,8 @@ type GeolocationErrorState = {
|
|
|
409
407
|
canSkip: boolean;
|
|
410
408
|
};
|
|
411
409
|
/**
|
|
412
|
-
*
|
|
413
|
-
*
|
|
410
|
+
* @deprecated Never emitted. A connectivity failure now goes to `error`
|
|
411
|
+
* without using an attempt, and the session boundary shows the offline screen.
|
|
414
412
|
*/
|
|
415
413
|
type GeolocationNoNetworkState = {
|
|
416
414
|
status: 'noNetwork';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
3
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-CAJVongM.esm.js";
|
|
4
4
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
5
5
|
var BrowserGeolocationProvider = class {
|
|
6
6
|
getCurrentPosition() {
|
|
@@ -38,10 +38,10 @@ function createGeolocationActor(options) {
|
|
|
38
38
|
* a transient failure (position unavailable / timeout, e.g. the browser's
|
|
39
39
|
* `kCLErrorLocationUnknown`) routes to the attempt-limited `error` state so the
|
|
40
40
|
* user can retry. A backend submit failure (`submitPosition` `onError`) splits
|
|
41
|
-
* by cause: a
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* surfaces have their own Figma screen names.
|
|
41
|
+
* by cause: a server-side rejection routes to the same attempt-limited
|
|
42
|
+
* location-unavailable screen, while a connectivity error routes there without
|
|
43
|
+
* using an attempt (the session boundary shows the offline screen). Both
|
|
44
|
+
* rendered error surfaces have their own Figma screen names.
|
|
45
45
|
*/
|
|
46
46
|
function getGeolocationScreenName(snapshot) {
|
|
47
47
|
const { value } = snapshot;
|
|
@@ -54,7 +54,6 @@ function getGeolocationScreenName(snapshot) {
|
|
|
54
54
|
case "finished": return "Geolocation.continue";
|
|
55
55
|
case "permissionDenied": return "Geolocation.allowLocation";
|
|
56
56
|
case "error": return "Geolocation.error.locationUnavailable";
|
|
57
|
-
case "noNetwork": return "Geolocation.error.noNetwork";
|
|
58
57
|
default: return;
|
|
59
58
|
}
|
|
60
59
|
}
|
|
@@ -78,7 +77,6 @@ function mapState(snapshot) {
|
|
|
78
77
|
attemptsRemaining: context.attemptsRemaining,
|
|
79
78
|
canSkip: context.config.allowUserToSkipGeolocation === true
|
|
80
79
|
};
|
|
81
|
-
if (typedSnapshot.matches("noNetwork")) return { status: "noNetwork" };
|
|
82
80
|
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
83
81
|
if (typedSnapshot.matches("closed")) return { status: "closed" };
|
|
84
82
|
return { status: "idle" };
|
package/dist/{geolocationStateMachine-Dbg9jw62.esm.js → geolocationStateMachine-CAJVongM.esm.js}
RENAMED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
-
import { a as isIOS, t as isAndroid } from "./platform-
|
|
3
|
-
import { n as isConnectivityError } from "./apiError-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
2
|
+
import { a as isIOS, t as isAndroid } from "./platform-aPh7gTWh.esm.js";
|
|
3
|
+
import { n as isConnectivityError } from "./apiError-CfuIvnUy.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
|
+
import { t as carryAttempts } from "./attemptCarry-BjTJ6bMQ.esm.js";
|
|
6
7
|
//#region src/modules/geolocation/geolocationServices.ts
|
|
7
8
|
async function addGeolocation(params, signal) {
|
|
8
9
|
const res = await api.post(endpoints.addGeolocation, {
|
|
@@ -50,6 +51,7 @@ const geolocationMachine = setup({
|
|
|
50
51
|
decrementAttemptsRemaining: assign(({ context }) => ({ attemptsRemaining: context.attemptsRemaining - 1 }))
|
|
51
52
|
},
|
|
52
53
|
guards: {
|
|
54
|
+
isOutOfAttempts: ({ context }) => context.attemptsRemaining <= 0 && context.attemptsRemaining < resolveMaxAttempts(context.config),
|
|
53
55
|
canSkip: ({ context }) => context.config.allowUserToSkipGeolocation === true,
|
|
54
56
|
hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 0,
|
|
55
57
|
isNetworkError: ({ event }) => isConnectivityError(event.error),
|
|
@@ -58,16 +60,19 @@ const geolocationMachine = setup({
|
|
|
58
60
|
}).createMachine({
|
|
59
61
|
id: "geolocation",
|
|
60
62
|
initial: "idle",
|
|
61
|
-
context: ({ input }) => ({
|
|
63
|
+
context: ({ input, self }) => ({
|
|
62
64
|
config: input.config,
|
|
63
65
|
geolocation: input.geolocation,
|
|
64
66
|
coords: void 0,
|
|
65
67
|
location: void 0,
|
|
66
68
|
deviceType: detectDeviceType(),
|
|
67
|
-
attemptsRemaining: resolveMaxAttempts(input.config)
|
|
69
|
+
attemptsRemaining: carryAttempts("geolocation", self, (s) => ({ attemptsRemaining: s.context.attemptsRemaining })).attemptsRemaining ?? resolveMaxAttempts(input.config)
|
|
68
70
|
}),
|
|
69
71
|
states: {
|
|
70
|
-
idle: { on: { REQUEST: {
|
|
72
|
+
idle: { on: { REQUEST: [{
|
|
73
|
+
target: "error",
|
|
74
|
+
guard: "isOutOfAttempts"
|
|
75
|
+
}, { target: "requestingLocation" }] } },
|
|
71
76
|
requestingLocation: { invoke: {
|
|
72
77
|
id: "requestPosition",
|
|
73
78
|
src: "requestPosition",
|
|
@@ -97,14 +102,13 @@ const geolocationMachine = setup({
|
|
|
97
102
|
actions: "setLocation"
|
|
98
103
|
},
|
|
99
104
|
onError: [{
|
|
100
|
-
target: "
|
|
105
|
+
target: "error",
|
|
101
106
|
guard: "isNetworkError"
|
|
102
107
|
}, {
|
|
103
108
|
target: "error",
|
|
104
109
|
actions: "decrementAttemptsRemaining"
|
|
105
110
|
}]
|
|
106
111
|
} },
|
|
107
|
-
noNetwork: {},
|
|
108
112
|
error: { on: {
|
|
109
113
|
RETRY: {
|
|
110
114
|
target: "idle",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { p as isTabletWithoutAndroid } from "./platform-aPh7gTWh.esm.js";
|
|
3
3
|
import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
4
4
|
//#region src/internal/device/getDeviceClass.ts
|
|
5
5
|
function getDeviceClass() {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-
|
|
2
|
-
import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-
|
|
1
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-PTPCP26N.esm.js";
|
|
2
|
+
import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-CkX9TEkh.esm.js";
|
|
3
3
|
export { createGovernmentValidationManager, createGovernmentValidationManagerFromActor, governmentValidationMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-
|
|
4
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-PTPCP26N.esm.js";
|
|
5
5
|
//#region src/modules/government-validation/governmentValidationActor.ts
|
|
6
6
|
function createGovernmentValidationActor(options) {
|
|
7
7
|
return createActor(governmentValidationMachine, { input: { config: options.config } }).start();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
4
4
|
//#region src/modules/government-validation/governmentValidationServices.ts
|
package/dist/home.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as StateMachine, p as EventObject, v as MetaObject, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
|
|
2
2
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
|
-
import { t as EmptyConfig } from "./types-
|
|
3
|
+
import { t as EmptyConfig } from "./types-DuD8TRJU.js";
|
|
4
4
|
//#region src/modules/home/types.d.ts
|
|
5
5
|
type HomeConfig = EmptyConfig;
|
|
6
6
|
//#endregion
|
package/dist/home.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
|
|
2
2
|
import { s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
3
|
//#region src/modules/home/homeStateMachine.ts
|
|
4
4
|
const homeMachine = setup({ types: {
|
package/dist/http.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getApi, t as api } from "./api-
|
|
1
|
+
import { n as getApi, t as api } from "./api-BO8JA7Pf.esm.js";
|
|
2
2
|
export { api, getApi };
|
package/dist/id-ocr.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as validateCPF } from "./cpf-uAZTPUBy.esm.js";
|
|
2
|
-
import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
3
|
-
import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-
|
|
2
|
+
import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-B1aZnobs.esm.js";
|
|
3
|
+
import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-B64-fjWg.esm.js";
|
|
4
4
|
//#region src/modules/id-ocr/idOcrCpfUtils.ts
|
|
5
5
|
function formatCPF(value) {
|
|
6
6
|
const digits = value.replace(/\D/g, "").slice(0, 11);
|
package/dist/id-selfie-flow.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import "./Actor-DpTj5PFb.js";
|
|
|
4
4
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
5
5
|
import { t as DetectionOrientation } from "./IIdCaptureCapability-CGcEt2Cw.js";
|
|
6
6
|
import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
|
|
7
|
-
import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure,
|
|
7
|
+
import { a as FacingMode, c as VideoSelfieStep, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, t as StepDetector } from "./videoSelfieStepDetector-RfSmlFFW.js";
|
|
8
8
|
//#region src/modules/id-selfie-flow/types.d.ts
|
|
9
9
|
/**
|
|
10
10
|
* The capture steps an ID + Selfie flow session can run, in flow order. A
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-CDAKwTr7.esm.js";
|
|
2
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-GTkoJyFY.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-
|
|
4
|
+
import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-g2tVWsJl.esm.js";
|
|
5
5
|
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
6
6
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
7
|
-
import { c as
|
|
8
|
-
import { o as StreamCanvasProcessingSession, r as CameraCompositor } from "./multipartRecordingService-
|
|
7
|
+
import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-B83VmClw.esm.js";
|
|
8
|
+
import { o as StreamCanvasProcessingSession, r as CameraCompositor } from "./multipartRecordingService-DMBxHKS2.esm.js";
|
|
9
9
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
10
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-
|
|
11
|
-
import { _ as ID_ERROR_CODES, g as validateUploadResponse, h as uploadIdImage, u as processId } from "./idCaptureServices-
|
|
10
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-MSQoqScU.esm.js";
|
|
11
|
+
import { _ as ID_ERROR_CODES, g as validateUploadResponse, h as uploadIdImage, u as processId } from "./idCaptureServices-8OHinO0N.esm.js";
|
|
12
12
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
13
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
14
|
-
import { i as delay, n as defaultAcquireCamera, o as
|
|
13
|
+
import { n as getFinishStatus } from "./flowCompletionService-ChMU2v79.esm.js";
|
|
14
|
+
import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-DjkPpoj_.esm.js";
|
|
15
15
|
//#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
|
|
16
16
|
/** Default autocapture window for the selfie step. */
|
|
17
17
|
const SELFIE_AUTOCAPTURE_MS = 1e4;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-
|
|
2
|
-
import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-
|
|
1
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-DQn6c84z.esm.js";
|
|
2
|
+
import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-_Kebv-Ue.esm.js";
|
|
3
3
|
export { createIdVerificationManager, createIdVerificationManagerFromActor, idVerificationMachine };
|
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 addBarcode, B as resumeRecordingAfterPause, C as AddBarcodeParams, D as StartRecordingParams, E as InitializeIdCaptureParams, F as initializeIdCapture, G as validateUploadResponse, H as stopRecording, I as isSuspendableRecordingSession, L as pauseRecordingForAttempt, M as disposeRecordingSession, N as finalizeRecordingSession, O as UploadIdImageParams, P as getRealQualityValue, R as prepareRecordingForCameraRetry, S as idCaptureMachine, T as IdCaptureInitResult, U as stopStream, V as startRecordingSession, W as uploadIdImage, _ 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 barcodeToBase64, k as ValidationError, 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 processId } from "./idCaptureManager-DzTfQ1Am.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-xEEWCx1j.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, 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 ID_ERROR_CODES, a as getRealQualityValue, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId } from "./idCaptureServices-
|
|
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-B3G6XoDG.esm.js";
|
|
2
|
+
import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-zZdTcpG1.esm.js";
|
|
3
|
+
import { _ as ID_ERROR_CODES, a as getRealQualityValue, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId } from "./idCaptureServices-8OHinO0N.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
|
|
@@ -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-DTj9auyA.esm.js";
|
|
2
|
+
import { l as wasmRuntime, t as getResolvedModelSource } from "./warmup-BkfxQZsC.esm.js";
|
|
3
|
+
import { r as BaseWasmProvider } from "./WasmUtilProvider-GTkoJyFY.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 {
|
|
@@ -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-DuD8TRJU.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-xEEWCx1j.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>;
|
|
@@ -228,6 +242,19 @@ declare function createIdCaptureOnlyActor(options: CreateIdCaptureOnlyActorOptio
|
|
|
228
242
|
//#region src/modules/id/digitalUpload/types.d.ts
|
|
229
243
|
type DigitalUploadFailReason = 'DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED' | 'ID_TYPE_UNACCEPTABLE' | 'FILE_CHANGED_ERROR' | 'INVALID_FILE_TYPE' | 'NETWORK_ERROR' | 'GENERIC';
|
|
230
244
|
//#endregion
|
|
245
|
+
//#region src/modules/id/deviceWallet/deviceWalletPlatform.d.ts
|
|
246
|
+
/**
|
|
247
|
+
* Maps an explicit provider override or the current user agent to the wallet
|
|
248
|
+
* platform (ported from V1 `resolveWalletPlatform`, minus the Credentials API
|
|
249
|
+
* capability check — that lives on `IDigitalCredentialsCapability.isAvailable()`
|
|
250
|
+
* and is consulted by the digital-ID funnel before this module is invoked).
|
|
251
|
+
*
|
|
252
|
+
* Auto-detection: iOS/iPadOS and macOS Safari → Apple Wallet (web); Android
|
|
253
|
+
* and every other desktop/unknown browser (incl. macOS Chrome) → Google
|
|
254
|
+
* Wallet, which is the only wallet reachable there.
|
|
255
|
+
*/
|
|
256
|
+
declare function resolveWalletPlatform(provider?: DeviceWalletProvider): DeviceWalletPlatform;
|
|
257
|
+
//#endregion
|
|
231
258
|
//#region src/modules/id/deviceWallet/deviceWalletActor.d.ts
|
|
232
259
|
type CreateDeviceWalletActorOptions = {
|
|
233
260
|
/**
|
|
@@ -401,6 +428,32 @@ type IdCaptureChooserState = {
|
|
|
401
428
|
* `selectDocument('digitalIdRedirect', { providerId })`.
|
|
402
429
|
*/
|
|
403
430
|
digitalIdRedirectOptions: IdCaptureDigitalIdRedirectOption[];
|
|
431
|
+
/**
|
|
432
|
+
* ISO alpha-2 country `digitalIdRedirectOptions` are ranked for: the
|
|
433
|
+
* detected one, or the one picked with `setChooserCountry`. `undefined`
|
|
434
|
+
* when no country is known.
|
|
435
|
+
*/
|
|
436
|
+
country: string | undefined;
|
|
437
|
+
/**
|
|
438
|
+
* Whether the options are country-ranked: the list can be ranked (two or
|
|
439
|
+
* more redirect providers serving different countries) and country
|
|
440
|
+
* detection ran for it. Detection runs whenever a country source is wired
|
|
441
|
+
* (by default always: IP lookup and browser locale), so in practice this
|
|
442
|
+
* is "the list is rankable". A detection that found no country is still
|
|
443
|
+
* `true`, with `country` `undefined`. Offer a country picker only when
|
|
444
|
+
* `true`; `setChooserCountry` has no visible effect otherwise.
|
|
445
|
+
*/
|
|
446
|
+
countryRanked: boolean;
|
|
447
|
+
/**
|
|
448
|
+
* The wallet family this device certainly reaches, for naming it on the
|
|
449
|
+
* Digital ID card: `apple` (iOS / iPadOS / macOS Safari), `samsung` (a
|
|
450
|
+
* detectable Samsung Android device), `android` (any other Android).
|
|
451
|
+
* `undefined` when the OS gives no certain answer (desktop Chrome, Windows,
|
|
452
|
+
* Linux) — show no wallet name then. It describes the device only, not the
|
|
453
|
+
* wallet methods enabled for the flow: those decide whether `digitalId` is
|
|
454
|
+
* in `availableDocumentTypes` at all.
|
|
455
|
+
*/
|
|
456
|
+
walletDevice: 'apple' | 'samsung' | 'android' | undefined;
|
|
404
457
|
};
|
|
405
458
|
/**
|
|
406
459
|
* Which UI-less machine phase the collapsed `loading` status stands for. The
|
|
@@ -664,6 +717,13 @@ declare function createIdCaptureManagerFromActor(actor: AnyIdCaptureActor, visib
|
|
|
664
717
|
selectDocument(documentType: IdDocumentType, options?: {
|
|
665
718
|
providerId?: DigitalIdProviderId;
|
|
666
719
|
}): void;
|
|
720
|
+
/**
|
|
721
|
+
* On the chooser: re-ranks `digitalIdRedirectOptions` for the given ISO
|
|
722
|
+
* alpha-2 country (the "Viewing options for" picker). Only reorders —
|
|
723
|
+
* every option stays available. Ignored outside the chooser and for an
|
|
724
|
+
* invalid code.
|
|
725
|
+
*/
|
|
726
|
+
setChooserCountry(country: string): void;
|
|
667
727
|
nextStep(): Promise<void>;
|
|
668
728
|
/**
|
|
669
729
|
* Continues from Tutorial into permission orchestration. When iOS requires
|
|
@@ -747,6 +807,7 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
|
|
|
747
807
|
selectDocument(documentType: IdDocumentType, options?: {
|
|
748
808
|
providerId?: DigitalIdProviderId;
|
|
749
809
|
}): void;
|
|
810
|
+
setChooserCountry(country: string): void;
|
|
750
811
|
nextStep(): Promise<void>;
|
|
751
812
|
continueToPermission(): void;
|
|
752
813
|
requestPermission(options?: {
|
|
@@ -785,4 +846,4 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
|
|
|
785
846
|
deviceWalletUseAnotherMethod(): void;
|
|
786
847
|
};
|
|
787
848
|
//#endregion
|
|
788
|
-
export {
|
|
849
|
+
export { addBarcode as A, resumeRecordingAfterPause as B, AddBarcodeParams as C, StartRecordingParams as D, InitializeIdCaptureParams as E, initializeIdCapture as F, validateUploadResponse as G, stopRecording as H, isSuspendableRecordingSession as I, WasmUtilProvider as K, pauseRecordingForAttempt as L, disposeRecordingSession as M, finalizeRecordingSession as N, UploadIdImageParams as O, getRealQualityValue as P, prepareRecordingForCameraRetry as R, idCaptureMachine as S, IdCaptureInitResult as T, stopStream as U, startRecordingSession as V, uploadIdImage 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, barcodeToBase64 as j, ValidationError as k, DeviceWalletState as l, IdCaptureOnlyActor as m, IdCaptureManager as n, RenderWalletParams as o, CreateIdCaptureOnlyActorOptions as p, IdCaptureState as r, renderWallet as s, createIdCaptureManager as t, createDeviceWalletManager as u, CreateIdCaptureActorOptions as v, FinalizedIdRecording as w, IdCaptureMachine as x, IdCaptureActor as y, processId as z };
|