@incodetech/core 2.4.1-agentic → 2.4.1-agentic.10
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/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-bBNquvYn.d.ts} +2 -2
- package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
- package/dist/{multipartRecordingService-DMBxHKS2.esm.js → CameraCompositor-DN7NkJzV.esm.js} +7 -734
- package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
- package/dist/{FaceDetectionProvider-B83VmClw.esm.js → FaceDetectionProvider-BSLpXAGx.esm.js} +11 -12
- package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-C-5M8pP1.d.ts} +2 -2
- package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-BRn0wz8v.d.ts} +2 -2
- package/dist/MultipartRecordingProvider-BfQPSgSO.esm.js +151 -0
- package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-ixfy84ys.d.ts} +2 -2
- package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
- package/dist/{WasmUtilProvider-GTkoJyFY.esm.js → WasmUtilProvider-C_puwvVn.esm.js} +2 -2
- package/dist/WorkerEncoderRecordingProvider-CyCrQnZR.esm.js +80 -0
- package/dist/addressSearch-B_4JYKa-.esm.js +72 -0
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CQ08atTC.esm.js → antifraudManager-BWCVkSu2.esm.js} +2 -2
- package/dist/{antifraudStateMachine-BcsUTTIr.esm.js → antifraudStateMachine-CX9I2f3s.esm.js} +1 -1
- package/dist/{api-BO8JA7Pf.esm.js → api-BSnbg4HO.esm.js} +4 -0
- package/dist/{apiError-CfuIvnUy.esm.js → apiError-Bmwy1Fa7.esm.js} +1 -1
- package/dist/{attemptCarry-BjTJ6bMQ.esm.js → attemptCarry-zQH85Elh.esm.js} +2 -2
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-DvmklBTE.esm.js → authenticationManager-BoiOaB0m.esm.js} +5 -5
- package/dist/{authenticationManager-C-cOki0Y.d.ts → authenticationManager-CISxaY6N.d.ts} +1 -1
- package/dist/{authenticationStateMachine-BL2ptOA0.esm.js → authenticationStateMachine-BMD1JLwr.esm.js} +3 -3
- package/dist/avatar.d.ts +1 -1
- package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
- package/dist/{backCameraStream-C5_NNfUN.esm.js → backCameraStream-DS1oDiUq.esm.js} +10 -65
- package/dist/{browser-pQZA35G2-DtkAf6sn.esm.js → browser-pQZA35G2-PIj2uGBm.esm.js} +1 -1
- 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-CM0fuqDC.esm.js → certificateIssuanceManager-DzDuQTsK.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-kksIUOPD.esm.js → certificateIssuanceStateMachine-BAOYLACb.esm.js} +2 -2
- package/dist/{connectivity-HSl0diCx.esm.js → connectivity-BCuEoQ-n.esm.js} +2 -21
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-_q9yJUku.d.ts → consentManager-7aHaehwF.d.ts} +5 -5
- package/dist/{consentManager-CBwFozhv.esm.js → consentManager-DFSKQTcR.esm.js} +2 -2
- package/dist/{consentStateMachine-CpmRAcr2.esm.js → consentStateMachine-4nZIH2O8.esm.js} +1 -1
- package/dist/{cpf-uAZTPUBy.esm.js → cpf-BIADjddF.esm.js} +1 -25
- package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-BimBTONm.d.ts} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-64O8t10a.esm.js → crossDocumentDataMatchManager-D7ka2qOC.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-CLgJQcx0.esm.js → curpValidationManager-BVTt7IgC.esm.js} +2 -2
- package/dist/{curpValidationManager-CXpFE-Mv.d.ts → curpValidationManager-DEqTUWdu.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-Bx9YhVkJ.esm.js → curpValidationStateMachine-FB_MRbZQ.esm.js} +2 -2
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-DWt_0YtJ.esm.js → customFieldsManager-gbsq53p6.esm.js} +2 -2
- package/dist/{customWatchlistManager-D8o-2Nej.esm.js → customWatchlistManager-50APwk4Z.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-Sbi6DIcK.esm.js → customWatchlistStateMachine-CpEVPzuT.esm.js} +1 -1
- package/dist/{deepsightService-twg3bXqY.esm.js → deepsightLoader-BKCT8UT1.esm.js} +34 -29
- package/dist/definitionSource-BHNxbuiv.esm.js +184 -0
- package/dist/{desktopCameraElection-kHY2IDJi.esm.js → desktopCameraElection-Dvvw7PRY.esm.js} +5 -5
- package/dist/document-capture.d.ts +3 -3
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-CMSC_Mhd.esm.js → documentCaptureManager-BG5TuqJz.esm.js} +3 -2
- package/dist/{documentCaptureManager-6tnnDkMX.d.ts → documentCaptureManager-DDfviFg0.d.ts} +25 -4
- package/dist/{documentCaptureStateMachine-BCwD5Rto.esm.js → documentCaptureStateMachine-C7PW_Ah9.esm.js} +67 -26
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DU6W1e20.esm.js → dynamicFormsManager-B0bpHhhJ.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-C8Z7k3vo.esm.js → dynamicFormsStateMachine-2ZHyejBc.esm.js} +2 -2
- package/dist/ekyb.d.ts +4 -4
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-TB6ZG5lX.d.ts → ekybManager-BLOkwmWO.d.ts} +2 -2
- package/dist/{ekybManager-TGfqyjuu.esm.js → ekybManager-P9mC7W9J.esm.js} +2 -2
- package/dist/{ekybStateMachine-DBgFuEPK.esm.js → ekybStateMachine-C7HKaeVr.esm.js} +7 -3
- package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
- package/dist/ekyc-prefill.d.ts +17 -0
- package/dist/ekyc-prefill.esm.js +3 -0
- package/dist/ekyc.d.ts +3 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-C2cgG2Pl.esm.js → ekycManager-CeeJoRFY.esm.js} +2 -2
- package/dist/{ekycManager-BSQteIfC.d.ts → ekycManager-q1fos6IY.d.ts} +2 -1
- package/dist/ekycPrefillManager-C6BFFKxc.esm.js +102 -0
- package/dist/ekycPrefillManager-PPGVZbWk.d.ts +565 -0
- package/dist/ekycPrefillStateMachine-Dku90kZL.esm.js +686 -0
- package/dist/ekycRules-BLX7Elcb.esm.js +319 -0
- package/dist/{ekycStateMachine-CuNF7z4O.esm.js → ekycStateMachine-DBTczgGE.esm.js} +719 -596
- package/dist/{ekycUtils-BFncpC4F.esm.js → ekycUtils-Dcff8BOD.esm.js} +103 -14
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-C7pqXsRm.esm.js → electronicSignatureManager-BKQuhJm_.esm.js} +4 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-FH_CP0cT.esm.js → emailManager-CGmKbsBL.esm.js} +2 -2
- package/dist/{emailStateMachine-Cx-uTaBV.esm.js → emailStateMachine-CGY1UGs2.esm.js} +2 -2
- package/dist/{events-CQteqXfy.esm.js → events-C7h7oaTE.esm.js} +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +20 -18
- package/dist/extensibility.esm.js +37 -35
- package/dist/{externalFetch-CQY41QT1.esm.js → externalFetch-cUjJYyXj.esm.js} +1 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-C-xKdj-d.d.ts → faceCaptureManagerFactory-BVwVGa3z.d.ts} +7 -7
- package/dist/{faceCaptureManagerFactory-CBm05KnT.esm.js → faceCaptureManagerFactory-ClFsByZc.esm.js} +4 -4
- package/dist/{faceCaptureSetup-BQjCbL51.esm.js → faceCaptureSetup-9hv5GC_H.esm.js} +12 -403
- package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-BZtEw6bB.d.ts} +9 -3
- package/dist/{faceMatchManager-B2zp7yP4.esm.js → faceMatchManager-CRe7Nvm6.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-ByTMQCUC.esm.js → faceMatchStateMachine-EX9QhxFE.esm.js} +28 -14
- package/dist/{feature-management-DjAG5lsJ.esm.js → feature-management-CmKTG_T5.esm.js} +35 -21
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-CC0vKmpf.esm.js → fieldComparisonManager-DuosZJso.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Be-r4oZj.esm.js → fiscalQrManager-ji0qDaTW.esm.js} +3 -3
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +33 -18
- package/dist/flow.esm.js +82 -17
- package/dist/{flowCompletionService-ChMU2v79.esm.js → flowCompletionService-DvcH16XO.esm.js} +24 -3
- package/dist/{flowServices-g2tVWsJl.esm.js → flowServices-Ca2vKNt2.esm.js} +84 -139
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DLbvZwUB.esm.js → geolocationManager-CiG32lIm.esm.js} +2 -2
- package/dist/{geolocationStateMachine-CAJVongM.esm.js → geolocationStateMachine-5rnTEOuw.esm.js} +3 -3
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-CkX9TEkh.esm.js → governmentValidationManager-BivVZNVe.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-PTPCP26N.esm.js → governmentValidationStateMachine-CeSDNgha.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 +2 -2
- package/dist/id-ocr.esm.js +3 -19
- package/dist/id-selfie-flow.d.ts +3 -3
- package/dist/id-selfie-flow.esm.js +10 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +4 -4
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-MSQoqScU.esm.js → idCaptureDefaults-DBnOC28H.esm.js} +3 -3
- package/dist/{idCaptureManager-zZdTcpG1.esm.js → idCaptureManager-B5xqok0L.esm.js} +9 -8
- package/dist/{idCaptureManager-DzTfQ1Am.d.ts → idCaptureManager-CG8zbAp0.d.ts} +10 -8
- package/dist/{idCaptureServices-8OHinO0N.esm.js → idCaptureServices-BIF_7rub.esm.js} +27 -196
- package/dist/{idCaptureStateMachine-B3G6XoDG.esm.js → idCaptureStateMachine-B5cfgKvn.esm.js} +50 -22
- package/dist/idOcrCpfUtils-Nfln1Psb.esm.js +18 -0
- package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-B5xeI2lg.d.ts} +3 -3
- package/dist/{idOcrManager-B64-fjWg.esm.js → idOcrManager-DNbVTMIu.esm.js} +2 -2
- package/dist/{idOcrStateMachine-B1aZnobs.esm.js → idOcrStateMachine-MAGnpWkb.esm.js} +8 -7
- package/dist/{idVerificationManager-_Kebv-Ue.esm.js → idVerificationManager-BEAkamNm.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-DQn6c84z.esm.js → idVerificationStateMachine-D5mBN2Ye.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-DDXkNVZi.esm.js → identityReuseManager-M8-BTjar.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-Bcnkbjf8.esm.js → identityReuseStateMachine-D5bXgw9h.esm.js} +1 -1
- package/dist/{index-DEfwds5y.d.ts → index-Btj1EhiM.d.ts} +43 -19
- package/dist/{index-DMDAk85K.d.ts → index-CSPOoqah.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-CXIBwBeE.esm.js → invokeOnCaptureCallback-C1-j4fsq.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-CnqwgKoV.esm.js +89 -0
- package/dist/kybChecksStateMachine-Be41K_NS.esm.js +719 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-xx3mY-xw.d.ts → mandatoryConsentManager-CYOJd_IZ.d.ts} +20 -11
- package/dist/{mandatoryConsentManager-43W5d_8G.esm.js → mandatoryConsentManager-LFhUlLvO.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-CVlgdlnt.esm.js → mandatoryConsentStateMachine-DTSyDqQs.esm.js} +11 -5
- package/dist/mediaRecorderOptions-B9-IEVtV.esm.js +70 -0
- package/dist/multipartRecordingService-CCiRpByl.esm.js +407 -0
- package/dist/{permissionGuards-B3OPL8Si.esm.js → permissionGuards-DjQUR1du.esm.js} +1 -1
- package/dist/{permissionServices-DnBAN_hW.esm.js → permissionServices-CZpORUWY.esm.js} +8 -6
- package/dist/phone.esm.js +2 -2
- package/dist/phoneFormat-DEpESpz2.esm.js +87 -0
- package/dist/{phoneManager-C6jut_pz.esm.js → phoneManager-C-qD3p3N.esm.js} +3 -3
- package/dist/phoneServices-BdR1nmSO.esm.js +77 -0
- package/dist/{phoneStateMachine-T1-drWfG.esm.js → phoneStateMachine-2FMTdjtJ.esm.js} +20 -60
- package/dist/{processFaceMatch-BWme3kVV.esm.js → processFaceMatch-B1YnoBer.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/recordingService-BVSCo0ac.esm.js +397 -0
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-BJXC6Kx9.esm.js → redirectToMobileManager-CqyDfDxs.esm.js} +3 -3
- package/dist/{redirectToMobileStateMachine-BBMAc2Gb.esm.js → redirectToMobileStateMachine-CXqfo2Gd.esm.js} +40 -22
- package/dist/resolveForm-f9PhUo9j.esm.js +143 -0
- package/dist/{runChildModule-DPHTqSdF.esm.js → runChildModule-BmteMhR7.esm.js} +2 -2
- package/dist/{sdkVersion-C3_P-Qbq.esm.js → sdkVersion-KZROt6l3.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-BL0BLMnp.esm.js → selfieErrorUtils-fqxp645p.esm.js} +1 -1
- package/dist/{selfieManager-Cbliomv7.esm.js → selfieManager-A-n3k9Tu.esm.js} +5 -5
- package/dist/{selfieManager-BMmpUii2.d.ts → selfieManager-DREuBhXZ.d.ts} +1 -1
- package/dist/{selfieStateMachine-B5m_Kn0O.esm.js → selfieStateMachine-48PKdKrw.esm.js} +3 -3
- package/dist/{session-DAaAewMX.esm.js → session-D0DWDKp9.esm.js} +4 -4
- package/dist/session.d.ts +2 -2
- package/dist/session.esm.js +6 -6
- package/dist/{sessionInitializer-CWFT4dfw.esm.js → sessionInitializer-I92b2dmL.esm.js} +94 -24
- package/dist/{setup-CDAKwTr7.esm.js → setup-BpjzWqR1.esm.js} +25 -27
- package/dist/{setup-D9qt8YVU.d.ts → setup-CG6oLkAa.d.ts} +2 -2
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-BeEVCcsC.esm.js → signatureManager-M9vQBj19.esm.js} +2 -2
- package/dist/{signatureStateMachine-_1c1vSid.esm.js → signatureStateMachine-0_frzAN5.esm.js} +1 -1
- package/dist/{stats-BpMz-hTP.esm.js → stats-C2sigf9p.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/step-up.d.ts +378 -0
- package/dist/step-up.esm.js +639 -0
- package/dist/textRules-D4NRinKY.d.ts +41 -0
- package/dist/{tri-BajQnjbf.esm.js → tri-DaUNvo-o.esm.js} +29 -34
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-Df5eKLsY.esm.js +2165 -0
- package/dist/tri.esm.js +2 -2
- package/dist/{trueSightService-BujtUIW6.esm.js → trueSightService-DHYTBCIn.esm.js} +4 -4
- package/dist/trust-graph.esm.js +1 -1
- package/dist/types-B-PIc0en.d.ts +115 -0
- package/dist/{types-C397LhmN.d.ts → types-BgRHw-dR.d.ts} +1 -1
- package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
- package/dist/{types-xEEWCx1j.d.ts → types-BqlZSoZ-.d.ts} +5 -5
- package/dist/types-CTaL0XJz.d.ts +80 -0
- package/dist/{types-e8fCsvvk.d.ts → types-Cbm9J2yF.d.ts} +1 -1
- package/dist/{types--3HDl2SF.d.ts → types-CgihAhT_.d.ts} +3 -3
- package/dist/{types-ZTZelfbM.d.ts → types-CyNndVAT.d.ts} +14 -6
- package/dist/{types-B2FK_wYb.d.ts → types-DEa3taWc.d.ts} +9 -41
- package/dist/{types-PTZHRhGX.d.ts → types-P9LzsfRo.d.ts} +3 -2
- package/dist/{types-DuD8TRJU.d.ts → types-TisHEbBg.d.ts} +12 -4
- package/dist/types-kLsU6Jkt.d.ts +6 -0
- package/dist/{urlUtils-eYiyWjh0.esm.js → urlUtils-B2wagB5v.esm.js} +14 -1
- package/dist/usStates-CwOQ2kAx.esm.js +209 -0
- package/dist/video-selfie.d.ts +5 -4
- package/dist/video-selfie.esm.js +9 -7
- package/dist/{videoSelfieCameraWarmer-DjkPpoj_.esm.js → videoSelfieCameraWarmer-CTOpqhov.esm.js} +16 -14
- package/dist/{videoSelfieStepDetector-RfSmlFFW.d.ts → videoSelfieStepDetector-4XE2QI5q.d.ts} +4 -4
- package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
- package/dist/{warmup-BkfxQZsC.esm.js → warmup-9iKKNNuW.esm.js} +69 -20
- package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
- package/dist/wasm.d.ts +9 -3
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-BhU5H2oR.esm.js → wasmDsFlagSync-lRIgn5Ic.esm.js} +1 -1
- package/dist/{wasmWebClient-DTj9auyA.esm.js → wasmWebClient-C3v3s_4H.esm.js} +34 -19
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CVay6-9A.esm.js → watchlistForBusinessManager-C1S5y5yj.esm.js} +2 -2
- package/dist/{watchlistForBusinessStateMachine-DA6K5na4.esm.js → watchlistForBusinessStateMachine-Bj_hnoK5.esm.js} +1 -1
- package/dist/{watchlistManager-B8gQ_rw3.esm.js → watchlistManager-BpegtZbc.esm.js} +2 -2
- package/dist/{watchlistStateMachine-CSi_ZhtT.esm.js → watchlistStateMachine-Bgkh1gra.esm.js} +1 -1
- package/dist/workflow.d.ts +226 -41
- package/dist/workflow.esm.js +163 -67
- package/package.json +21 -5
- package/dist/addressSearch-41sMcnJk.esm.js +0 -604
- package/dist/deepsightLoader-DMxtowCm.esm.js +0 -33
- package/dist/tri.esm-CzTNi5Q_.esm.js +0 -3826
- package/dist/types-D9r3zRfY.d.ts +0 -6
|
@@ -3,15 +3,15 @@ import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
|
3
3
|
import "./Actor-DpTj5PFb.js";
|
|
4
4
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
5
5
|
import "./index-DpTj5PFb.js";
|
|
6
|
-
import "./createFaceAvatar-
|
|
7
|
-
import { a as RegulationTypes } from "./types-
|
|
8
|
-
import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, t as FingerprintSignalType } from "./IWasmUtilCapability-
|
|
6
|
+
import "./createFaceAvatar-BimBTONm.js";
|
|
7
|
+
import { a as RegulationTypes } from "./types-TisHEbBg.js";
|
|
8
|
+
import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, t as FingerprintSignalType } from "./IWasmUtilCapability-BRn0wz8v.js";
|
|
9
9
|
import { n as PermissionStatus } from "./types-BEwVKkLJ.js";
|
|
10
|
-
import { t as BaseWasmProvider } from "./BaseWasmProvider-
|
|
11
|
-
import { n as DeepsightService } from "./StreamCanvasCapture-
|
|
10
|
+
import { t as BaseWasmProvider } from "./BaseWasmProvider-bBNquvYn.js";
|
|
11
|
+
import { n as DeepsightService } from "./StreamCanvasCapture-ixfy84ys.js";
|
|
12
12
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
13
|
-
import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-
|
|
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-
|
|
13
|
+
import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-C-5M8pP1.js";
|
|
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-BqlZSoZ-.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`,
|
|
@@ -131,6 +131,8 @@ type ValidationError = {
|
|
|
131
131
|
messageDescription?: string;
|
|
132
132
|
errorKey: IdErrorCode;
|
|
133
133
|
};
|
|
134
|
+
/** Statsig gate that lets the backend's `idQualityAttemptApproved` decide readability. */
|
|
135
|
+
declare const ID_QUALITY_BACKEND_VALIDATION_GATE = "id_quality_backend_validation";
|
|
134
136
|
declare function validateUploadResponse(response: UploadIdResponse & {
|
|
135
137
|
failReason?: string;
|
|
136
138
|
side?: 'front' | 'back';
|
|
@@ -846,4 +848,4 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
|
|
|
846
848
|
deviceWalletUseAnotherMethod(): void;
|
|
847
849
|
};
|
|
848
850
|
//#endregion
|
|
849
|
-
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-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-BpjzWqR1.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
|
|
3
|
+
import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-CmKTG_T5.esm.js";
|
|
4
4
|
import { i as isDesktop } from "./platform-aPh7gTWh.esm.js";
|
|
5
|
-
import {
|
|
6
|
-
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
7
|
-
import { l as queryCameraPermission } from "./permissionServices-DnBAN_hW.esm.js";
|
|
8
|
-
import { i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-DMBxHKS2.esm.js";
|
|
9
|
-
import { i as isBackFacingTrack, t as getBackCameraStream } from "./backCameraStream-C5_NNfUN.esm.js";
|
|
5
|
+
import { n as isBackFacingTrack } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
10
6
|
import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
|
|
11
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-
|
|
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
|
|
7
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-DBnOC28H.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-CyCrQnZR.esm.js").then((n) => n.n),
|
|
439
|
+
import("./multipartRecordingService-CCiRpByl.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 };
|
package/dist/{idCaptureStateMachine-B3G6XoDG.esm.js → idCaptureStateMachine-B5cfgKvn.esm.js}
RENAMED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { n as getTimestamp, r as revokeObjectURL } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
-
import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-
|
|
3
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
4
|
-
import { n as eventModuleNames, o as createManagerInstrumentation, s as recordExperimentAssignmentOnce, y as addEvent } from "./events-
|
|
5
|
-
import { r as getToken, t as api, u as endpoints } from "./api-
|
|
6
|
-
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-
|
|
7
|
-
import {
|
|
2
|
+
import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-BpjzWqR1.esm.js";
|
|
3
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-C_puwvVn.esm.js";
|
|
4
|
+
import { n as eventModuleNames, o as createManagerInstrumentation, s as recordExperimentAssignmentOnce, y as addEvent } from "./events-C7h7oaTE.esm.js";
|
|
5
|
+
import { r as getToken, t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
|
|
6
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-DHYTBCIn.esm.js";
|
|
7
|
+
import { n as getDisableIpify } from "./sessionInitializer-I92b2dmL.esm.js";
|
|
8
8
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
9
|
-
import { s as exposeExperimentOnce } from "./feature-management-
|
|
10
|
-
import { t as addDeviceStats } from "./stats-
|
|
9
|
+
import { s as exposeExperimentOnce } from "./feature-management-CmKTG_T5.esm.js";
|
|
10
|
+
import { t as addDeviceStats } from "./stats-C2sigf9p.esm.js";
|
|
11
11
|
import { a as isIOS, c as isIPhone14OrHigher, f as isSamsungDevice, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-aPh7gTWh.esm.js";
|
|
12
|
-
import "./session-
|
|
12
|
+
import "./session-D0DWDKp9.esm.js";
|
|
13
13
|
import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
14
14
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
15
|
-
import {
|
|
15
|
+
import { r as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-B2wagB5v.esm.js";
|
|
16
16
|
import { s as isCameraDenialErrorName } from "./camera-E_Kcre4O.esm.js";
|
|
17
|
-
import { i as requestMotionPermission, n as invokeRequestPermissionActor, o as requiresMotionPermissionUserGesture, t as checkPermission, u as queryPermission } from "./permissionServices-
|
|
18
|
-
import { i as cameraCycleProvider, n as createCameraCycleOwnership, o as flagIdManualReview, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-
|
|
17
|
+
import { i as requestMotionPermission, n as invokeRequestPermissionActor, o as requiresMotionPermissionUserGesture, t as checkPermission, u as queryPermission } from "./permissionServices-CZpORUWY.esm.js";
|
|
18
|
+
import { i as cameraCycleProvider, n as createCameraCycleOwnership, o as flagIdManualReview, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-Dvvw7PRY.esm.js";
|
|
19
19
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
20
|
-
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
21
|
-
import { t as carryAttempts } from "./attemptCarry-
|
|
22
|
-
import {
|
|
20
|
+
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DjQUR1du.esm.js";
|
|
21
|
+
import { t as carryAttempts } from "./attemptCarry-zQH85Elh.esm.js";
|
|
22
|
+
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
23
23
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
24
24
|
import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
25
|
-
import {
|
|
25
|
+
import { t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
26
26
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
27
|
-
import { n as frameSources, r as runVirtualCameraCheck } from "./deepsightService-twg3bXqY.esm.js";
|
|
28
27
|
import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
|
|
29
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-
|
|
30
|
-
import { C as
|
|
28
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-DBnOC28H.esm.js";
|
|
29
|
+
import { C as OPTIMIZING_WATCHDOG_MARGIN_MS, S as CAPTURE_OPTIMIZING, _ as validateUploadResponse, a as finalizeRecordingSession, b as resolveCountdownStepMs, 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, s as initializeIdCapture, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES, w as getIdCameraStream, x as resolveIdCaptureThresholds } from "./idCaptureServices-BIF_7rub.esm.js";
|
|
31
30
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
31
|
+
import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-eFOm2C9q.esm.js";
|
|
32
32
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
33
33
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
34
34
|
function isKnownFailReason(reason) {
|
|
@@ -1382,7 +1382,20 @@ function getPermissionOutput(event) {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
const hasShowTutorialGuard = ({ context }) => context.config.showTutorial;
|
|
1384
1384
|
const hasAgeAssuranceGuard = ({ context }) => context.config.ageAssurance === true;
|
|
1385
|
-
|
|
1385
|
+
/** Camera capture has something to capture: an ID or a passport is accepted. */
|
|
1386
|
+
const hasPhysicalDocumentType = (context) => context.availableDocumentTypes.some((type) => type === "id" || type === "passport");
|
|
1387
|
+
/**
|
|
1388
|
+
* The chooser shows when configured, and also when only digital-ID options
|
|
1389
|
+
* are available: hiding it would otherwise fall through to camera capture of
|
|
1390
|
+
* a document the module does not accept (PRI-6436).
|
|
1391
|
+
*/
|
|
1392
|
+
const hasShowDocumentChooserGuard = ({ context }) => context.availableDocumentTypes.length > 0 && !hasPhysicalDocumentType(context) || !context.config.onlyBack && (context.config.showDocumentChooserScreen ?? false);
|
|
1393
|
+
/**
|
|
1394
|
+
* Chooser hidden and a single web-redirect provider (e.g. FTN) is the only
|
|
1395
|
+
* option: enter it directly. Unlike the device wallet, the redirect needs no
|
|
1396
|
+
* user activation, so no chooser click is required (PRI-6436).
|
|
1397
|
+
*/
|
|
1398
|
+
const isSoleDigitalIdRedirectWithoutChooserGuard = ({ context }) => !(context.config.showDocumentChooserScreen ?? false) && context.availableDocumentTypes.length === 1 && context.availableDocumentTypes[0] === "digitalIdRedirect" && context.digitalIdRedirectOptions.length === 1;
|
|
1386
1399
|
const isPermissionGrantedGuard = ({ event }) => {
|
|
1387
1400
|
return getPermissionOutput(event) === "granted";
|
|
1388
1401
|
};
|
|
@@ -2031,7 +2044,7 @@ fromPromise(async ({ input }) => {
|
|
|
2031
2044
|
});
|
|
2032
2045
|
fromPromise(async ({ input }) => {
|
|
2033
2046
|
if (!input.dependencies) return;
|
|
2034
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
2047
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-BKCT8UT1.esm.js");
|
|
2035
2048
|
return loadDeepsightSession({
|
|
2036
2049
|
ds: input.ds,
|
|
2037
2050
|
storage: input.dependencies.storage,
|
|
@@ -2474,7 +2487,7 @@ function cleanup(service) {
|
|
|
2474
2487
|
service.cleanup();
|
|
2475
2488
|
} catch {}
|
|
2476
2489
|
}
|
|
2477
|
-
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-
|
|
2490
|
+
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-BKCT8UT1.esm.js")).loadDeepsightSession(input)) {
|
|
2478
2491
|
let disposed = false;
|
|
2479
2492
|
let preparation;
|
|
2480
2493
|
let service;
|
|
@@ -4380,6 +4393,10 @@ const idCaptureMachine = setup({
|
|
|
4380
4393
|
performStopMediaRecording(context);
|
|
4381
4394
|
},
|
|
4382
4395
|
clearRecordingSession: assign({ recordingSession: () => void 0 }),
|
|
4396
|
+
selectSoleDigitalIdRedirect: assign({
|
|
4397
|
+
selectedDocumentType: () => "digitalIdRedirect",
|
|
4398
|
+
selectedDigitalIdProviderId: ({ context }) => context.digitalIdRedirectOptions[0]?.providerId
|
|
4399
|
+
}),
|
|
4383
4400
|
setSelectedDocument: assign({
|
|
4384
4401
|
selectedDocumentType: ({ event }) => {
|
|
4385
4402
|
if ("documentType" in event) return event.documentType;
|
|
@@ -4624,6 +4641,7 @@ const idCaptureMachine = setup({
|
|
|
4624
4641
|
isDeepsightReady: isDeepsightReadyGuard,
|
|
4625
4642
|
needsDeepsightInit: needsDeepsightInitGuard,
|
|
4626
4643
|
hasNoDocumentTypesAvailable: hasNoDocumentTypesAvailableGuard,
|
|
4644
|
+
isSoleDigitalIdRedirectWithoutChooser: isSoleDigitalIdRedirectWithoutChooserGuard,
|
|
4627
4645
|
isDigitalIdUploadSelected: ({ event }) => isDigitalIdUploadSelectedGuard({ event: asPublicIdEvent(event) }),
|
|
4628
4646
|
isDigitalIdRedirectSelected: ({ event }) => isDigitalIdRedirectSelectedGuard({ event: asPublicIdEvent(event) }),
|
|
4629
4647
|
isDigitalIdSelected: ({ event }) => isDigitalIdSelectedGuard({ event: asPublicIdEvent(event) }),
|
|
@@ -4796,6 +4814,11 @@ const idCaptureMachine = setup({
|
|
|
4796
4814
|
guard: "hasNoDocumentTypesAvailable",
|
|
4797
4815
|
actions: [() => console.error(ID_CAPTURE_NO_DOCUMENT_TYPES_ERROR), assign({ error: () => ID_CAPTURE_NO_DOCUMENT_TYPES_ERROR })]
|
|
4798
4816
|
},
|
|
4817
|
+
{
|
|
4818
|
+
target: "digitalIdRedirect",
|
|
4819
|
+
guard: "isSoleDigitalIdRedirectWithoutChooser",
|
|
4820
|
+
actions: ["selectSoleDigitalIdRedirect"]
|
|
4821
|
+
},
|
|
4799
4822
|
{
|
|
4800
4823
|
target: "detectingCountry",
|
|
4801
4824
|
guard: and(["hasShowDocumentChooser", "needsCountryDetection"])
|
|
@@ -5896,6 +5919,11 @@ const idCaptureMachine = setup({
|
|
|
5896
5919
|
target: "#idCapture.finished",
|
|
5897
5920
|
actions: ["storeDigitalIdRedirectResult", "clearPendingDigitalIdRedirect"]
|
|
5898
5921
|
},
|
|
5922
|
+
{
|
|
5923
|
+
target: "closed",
|
|
5924
|
+
guard: "isSoleDigitalIdRedirectWithoutChooser",
|
|
5925
|
+
actions: ["clearPendingDigitalIdRedirect"]
|
|
5926
|
+
},
|
|
5899
5927
|
{
|
|
5900
5928
|
target: "detectingCountry",
|
|
5901
5929
|
guard: and(["hasShowDocumentChooser", "needsCountryDetection"]),
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
|
|
2
|
+
//#region src/modules/id-ocr/idOcrCpfUtils.ts
|
|
3
|
+
function formatCPF(value) {
|
|
4
|
+
const digits = value.replace(/\D/g, "").slice(0, 11);
|
|
5
|
+
const first = digits.slice(0, 3);
|
|
6
|
+
const second = digits.slice(3, 6);
|
|
7
|
+
const third = digits.slice(6, 9);
|
|
8
|
+
const verifier = digits.slice(9, 11);
|
|
9
|
+
if (digits.length > 9) return `${first}.${second}.${third}-${verifier}`;
|
|
10
|
+
if (digits.length > 6) return `${first}.${second}.${third}`;
|
|
11
|
+
if (digits.length > 3) return `${first}.${second}`;
|
|
12
|
+
return first;
|
|
13
|
+
}
|
|
14
|
+
function isValidCPF(value) {
|
|
15
|
+
return validateCPF(value);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { isValidCPF as n, formatCPF as t };
|
|
@@ -1,7 +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
|
-
import { a as UpdateOcrResponse, i as UpdateOcrDataParams, n as OcrData, t as IdOcrConfig } from "./types-
|
|
4
|
+
import { a as UpdateOcrResponse, i as UpdateOcrDataParams, n as OcrData, t as IdOcrConfig } from "./types-Bpo97EOh.js";
|
|
5
5
|
//#region src/modules/id-ocr/idOcrStateMachine.d.ts
|
|
6
6
|
type IdOcrOcrDocument = 'first' | 'second';
|
|
7
7
|
type IdOcrContext = {
|
|
@@ -109,7 +109,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
|
|
|
109
109
|
type: "shouldProceedWithoutSubmitToSecondId";
|
|
110
110
|
params: unknown;
|
|
111
111
|
};
|
|
112
|
-
}>, never, "error" | "idle" | "success" | "finished" | "
|
|
112
|
+
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
113
113
|
readonly id: "idOcr";
|
|
114
114
|
readonly initial: "idle";
|
|
115
115
|
readonly context: ({ input }: {
|
|
@@ -210,7 +210,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
|
|
|
210
210
|
config: IdOcrConfig;
|
|
211
211
|
formData: UpdateOcrDataParams;
|
|
212
212
|
editedFields: {};
|
|
213
|
-
activeOcrDocument:
|
|
213
|
+
activeOcrDocument: "second" | "first";
|
|
214
214
|
};
|
|
215
215
|
readonly states: {
|
|
216
216
|
readonly idle: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
|
-
import { t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
3
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-MAGnpWkb.esm.js";
|
|
4
4
|
//#region src/modules/id-ocr/idOcrActor.ts
|
|
5
5
|
function createIdOcrActor(options) {
|
|
6
6
|
return createActor(idOcrStateMachine, { input: { config: options.config } }).start();
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
+
import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
|
-
import {
|
|
5
|
+
import { t as DateFormattingProvider } from "./DateFormattingProvider-DPq9zco-.esm.js";
|
|
6
|
+
import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
|
|
6
7
|
//#region src/modules/id-ocr/idOcrUtils.ts
|
|
7
8
|
const dateFormattingInstance$1 = new DateFormattingProvider();
|
|
8
9
|
const resolveFullName = (data) => {
|
|
@@ -255,8 +256,8 @@ const idOcrStateMachine = setup({
|
|
|
255
256
|
editedFields: {},
|
|
256
257
|
validationErrors: void 0
|
|
257
258
|
})),
|
|
258
|
-
resetForRetry: assign(() => ({
|
|
259
|
-
activeOcrDocument: "first",
|
|
259
|
+
resetForRetry: assign(({ context }) => ({
|
|
260
|
+
activeOcrDocument: context.config.ocrDocument ?? "first",
|
|
260
261
|
formData: emptyOcrData(),
|
|
261
262
|
editedFields: {},
|
|
262
263
|
error: void 0,
|
|
@@ -266,10 +267,10 @@ const idOcrStateMachine = setup({
|
|
|
266
267
|
},
|
|
267
268
|
guards: {
|
|
268
269
|
isOcrEditable: ({ context }) => context.config.editableOcr === true,
|
|
269
|
-
shouldLoadSecondOcrAfterFirst: ({ context }) => context.config.secondId === true && context.activeOcrDocument === "first",
|
|
270
|
+
shouldLoadSecondOcrAfterFirst: ({ context }) => context.config.ocrDocument === void 0 && context.config.secondId === true && context.activeOcrDocument === "first",
|
|
270
271
|
isOcrFormValid: ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0,
|
|
271
272
|
shouldSubmit: ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0 && Object.keys(context.editedFields).length > 0,
|
|
272
|
-
shouldProceedWithoutSubmitToSecondId: ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0 && Object.keys(context.editedFields).length === 0 && context.config.secondId === true && context.activeOcrDocument === "first"
|
|
273
|
+
shouldProceedWithoutSubmitToSecondId: ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0 && Object.keys(context.editedFields).length === 0 && context.config.ocrDocument === void 0 && context.config.secondId === true && context.activeOcrDocument === "first"
|
|
273
274
|
}
|
|
274
275
|
}).createMachine({
|
|
275
276
|
id: "idOcr",
|
|
@@ -280,7 +281,7 @@ const idOcrStateMachine = setup({
|
|
|
280
281
|
config: input.config,
|
|
281
282
|
formData: data,
|
|
282
283
|
editedFields: {},
|
|
283
|
-
activeOcrDocument: "first"
|
|
284
|
+
activeOcrDocument: input.config.ocrDocument ?? "first"
|
|
284
285
|
};
|
|
285
286
|
},
|
|
286
287
|
states: {
|
package/dist/{idVerificationManager-_Kebv-Ue.esm.js → idVerificationManager-BEAkamNm.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-
|
|
3
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-D5mBN2Ye.esm.js";
|
|
4
4
|
//#region src/modules/id-verification/idVerificationActor.ts
|
|
5
5
|
function createIdVerificationActor(options) {
|
|
6
6
|
return createActor(idVerificationMachine, { 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-BSnbg4HO.esm.js";
|
|
2
2
|
import { 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/id-verification/idVerificationServices.ts
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-
|
|
2
|
-
import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-
|
|
1
|
+
import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-D5bXgw9h.esm.js";
|
|
2
|
+
import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-M8-BTjar.esm.js";
|
|
3
3
|
export { SCAN_NEW_DOCUMENT, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
|
-
import { n as identityReuseMachine } from "./identityReuseStateMachine-
|
|
3
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-D5bXgw9h.esm.js";
|
|
4
4
|
//#region src/modules/identity-reuse/identityReuseActor.ts
|
|
5
5
|
/**
|
|
6
6
|
* Creates and starts an IdentityReuse actor.
|
package/dist/{identityReuseStateMachine-Bcnkbjf8.esm.js → identityReuseStateMachine-D5bXgw9h.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BSnbg4HO.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/identity-reuse/identityReuseServices.ts
|