@incodetech/core 2.4.1-agentic.10 → 2.4.1-agentic.12
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/Actor-DqjOqDfU.d.ts +1 -0
- package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-C7N1N61V.esm.js} +55 -1
- package/dist/{FaceDetectionProvider-BSLpXAGx.esm.js → FaceDetectionProvider-WtuJ6QBK.esm.js} +16 -11
- package/dist/{IWasmUtilCapability-BRn0wz8v.d.ts → IWasmUtilCapability-XcOtT1TP.d.ts} +5 -4
- package/dist/Manager-BvXAwDv9.esm.js +125 -0
- package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
- package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-BtMQZEbg.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-ixfy84ys.d.ts → StreamCanvasCapture-BnBfA6fb.d.ts} +24 -2
- package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
- package/dist/{WasmUtilProvider-C_puwvVn.esm.js → WasmUtilProvider-D5RMElzw.esm.js} +47 -4
- package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-BO7urYwT.esm.js} +1 -1
- package/dist/{addressSearch-B_4JYKa-.esm.js → addressSearch-BzAy6lhp.esm.js} +6 -7
- package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
- package/dist/ae-signature.d.ts +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-BWCVkSu2.esm.js → antifraudManager-Bw5nw5fh.esm.js} +5 -3
- package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
- package/dist/{antifraudStateMachine-CX9I2f3s.esm.js → antifraudStateMachine-kOfsaAuT.esm.js} +4 -6
- package/dist/{api-BSnbg4HO.esm.js → api-DSZSaaWr.esm.js} +3 -1
- package/dist/{apiError-Bmwy1Fa7.esm.js → apiError-BDuL1wTs.esm.js} +1 -1
- package/dist/{attemptCarry-zQH85Elh.esm.js → attemptCarry-QFQkA3na.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BoiOaB0m.esm.js → authenticationManager-B0SioAdd.esm.js} +7 -6
- package/dist/{authenticationManager-CISxaY6N.d.ts → authenticationManager-eYcurNiS.d.ts} +2 -2
- package/dist/{authenticationStateMachine-BMD1JLwr.esm.js → authenticationStateMachine-n1OrhPTv.esm.js} +50 -18
- package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-6qVHvj76.esm.js} +2 -2
- package/dist/{browser-pQZA35G2-PIj2uGBm.esm.js → browser-pQZA35G2-CG3C-xGt.esm.js} +1 -1
- package/dist/calendarDate-DcqGuEht.esm.js +35 -0
- package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
- package/dist/camera-9yYDUOsO.d.ts +5 -0
- package/dist/{camera-E_Kcre4O.esm.js → camera-CJKApt0x.esm.js} +10 -3
- package/dist/camera.d.ts +2 -2
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.d.ts +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
- package/dist/{certificateIssuanceManager-DzDuQTsK.esm.js → certificateIssuanceManager-DPT8E9zV.esm.js} +5 -3
- package/dist/{certificateIssuanceStateMachine-BAOYLACb.esm.js → certificateIssuanceStateMachine-BwDb3ezx.esm.js} +3 -3
- package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-7aHaehwF.d.ts → consentManager-B0YKqYtZ.d.ts} +9 -8
- package/dist/{consentManager-DFSKQTcR.esm.js → consentManager-DRMJ3O4r.esm.js} +5 -3
- package/dist/{consentStateMachine-4nZIH2O8.esm.js → consentStateMachine-Br0JbW7k.esm.js} +6 -9
- package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-D7ka2qOC.esm.js → crossDocumentDataMatchManager-BIQ-SYcR.esm.js} +6 -5
- package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
- package/dist/curp-DZGvefg3.esm.js +14 -0
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-BVTt7IgC.esm.js → curpValidationManager-BKUDQ55W.esm.js} +6 -4
- package/dist/{curpValidationManager-DEqTUWdu.d.ts → curpValidationManager-DgUZySoq.d.ts} +4 -4
- package/dist/{curpValidationStateMachine-FB_MRbZQ.esm.js → curpValidationStateMachine-BwUBkyyi.esm.js} +16 -17
- package/dist/custom-fields.d.ts +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-gbsq53p6.esm.js → customFieldsManager-CPhONu5i.esm.js} +15 -17
- package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
- package/dist/{customWatchlistManager-50APwk4Z.esm.js → customWatchlistManager-cN57usIW.esm.js} +5 -3
- package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
- package/dist/{customWatchlistStateMachine-CpEVPzuT.esm.js → customWatchlistStateMachine-C1Xq1ugl.esm.js} +4 -6
- package/dist/{deepsightLoader-BKCT8UT1.esm.js → deepsightLoader-ClCQCdeL.esm.js} +5 -5
- package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-Nw0YCbpe.esm.js} +38 -1
- package/dist/{desktopCameraElection-Dvvw7PRY.esm.js → desktopCameraElection-btFONYx6.esm.js} +23 -11
- package/dist/device.d.ts +3 -3
- package/dist/device.esm.js +15 -15
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-signature.d.ts +123 -0
- package/dist/document-signature.esm.js +149 -0
- package/dist/{documentCaptureManager-BG5TuqJz.esm.js → documentCaptureManager-5I3lKDVW.esm.js} +5 -3
- package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-BkaPpoKy.d.ts} +6 -5
- package/dist/{documentCaptureStateMachine-C7PW_Ah9.esm.js → documentCaptureStateMachine-jtQHasPA.esm.js} +9 -12
- package/dist/documentSignatureStateMachine-DKtU0H-F.esm.js +218 -0
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-B0bpHhhJ.esm.js → dynamicFormsManager-B6Bv32wU.esm.js} +5 -3
- package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
- package/dist/{dynamicFormsStateMachine-2ZHyejBc.esm.js → dynamicFormsStateMachine-Kauq2oB-.esm.js} +12 -13
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
- package/dist/{ekybManager-P9mC7W9J.esm.js → ekybManager-wi135kG-.esm.js} +5 -3
- package/dist/{ekybStateMachine-C7HKaeVr.esm.js → ekybStateMachine-Vjb6_mFt.esm.js} +19 -23
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-q1fos6IY.d.ts → ekycManager-BKVQazAb.d.ts} +47 -6
- package/dist/{ekycManager-CeeJoRFY.esm.js → ekycManager-DWCL912J.esm.js} +39 -16
- package/dist/{ekycPrefillManager-PPGVZbWk.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +4 -3
- package/dist/{ekycPrefillManager-C6BFFKxc.esm.js → ekycPrefillManager-C27Cu6rn.esm.js} +3 -2
- package/dist/{ekycPrefillStateMachine-Dku90kZL.esm.js → ekycPrefillStateMachine-DqXvupSw.esm.js} +12 -13
- package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-1hyjJ6bw.esm.js} +201 -38
- package/dist/{ekycStateMachine-DBTczgGE.esm.js → ekycStateMachine-DjiGyQtm.esm.js} +478 -73
- package/dist/{ekycUtils-Dcff8BOD.esm.js → ekycUtils-D9ui9Ztp.esm.js} +49 -43
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
- package/dist/{electronicSignatureManager-BKQuhJm_.esm.js → electronicSignatureManager-BHnxFx7u.esm.js} +11 -17
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-CGmKbsBL.esm.js → emailManager-CfvR6pQN.esm.js} +5 -3
- package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
- package/dist/{emailStateMachine-CGY1UGs2.esm.js → emailStateMachine-C4FouMzc.esm.js} +5 -7
- package/dist/events-CsPmTidH.esm.js +299 -0
- package/dist/events.d.ts +4 -1
- package/dist/events.esm.js +2 -1
- package/dist/extensibility.d.ts +41 -41
- package/dist/extensibility.esm.js +38 -38
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-ClFsByZc.esm.js → faceCaptureManagerFactory-BjVIUTMM.esm.js} +17 -6
- package/dist/{faceCaptureManagerFactory-BVwVGa3z.d.ts → faceCaptureManagerFactory-DhDPxxp-.d.ts} +23 -10
- package/dist/{faceCaptureSetup-9hv5GC_H.esm.js → faceCaptureSetup-q33e6ah9.esm.js} +61 -42
- package/dist/{faceMatchManager-BZtEw6bB.d.ts → faceMatchManager-C5b5WtcY.d.ts} +3 -2
- package/dist/{faceMatchManager-CRe7Nvm6.esm.js → faceMatchManager-CsPFaja4.esm.js} +5 -3
- package/dist/{faceMatchStateMachine-EX9QhxFE.esm.js → faceMatchStateMachine-Co2S7iN8.esm.js} +24 -23
- package/dist/{feature-management-CmKTG_T5.esm.js → feature-management-BhRKAG--.esm.js} +3 -2
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.d.ts +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-DuosZJso.esm.js → fieldComparisonManager-Chn80m_n.esm.js} +7 -7
- package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
- package/dist/fiscal-qr.d.ts +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-ji0qDaTW.esm.js → fiscalQrManager-CpX6MOy_.esm.js} +9 -8
- package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +48 -12
- package/dist/flow.esm.js +214 -58
- package/dist/{flowCompletionService-DvcH16XO.esm.js → flowCompletionService-E_6ChYsV.esm.js} +2 -2
- package/dist/{flowServices-Ca2vKNt2.esm.js → flowServices-C23o7MqO.esm.js} +375 -13
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
- package/dist/{geolocationManager-CiG32lIm.esm.js → geolocationManager-dgMVi0ed.esm.js} +5 -3
- package/dist/{geolocationStateMachine-5rnTEOuw.esm.js → geolocationStateMachine-CCVd9xGh.esm.js} +8 -10
- package/dist/{getDeviceClass-DoIWuKI8.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-BivVZNVe.esm.js → governmentValidationManager-D2KGYDws.esm.js} +5 -3
- package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
- package/dist/{governmentValidationStateMachine-CeSDNgha.esm.js → governmentValidationStateMachine-DRG-5jwQ.esm.js} +4 -6
- package/dist/home.d.ts +4 -3
- package/dist/home.esm.js +4 -2
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +3 -3
- package/dist/id-selfie-flow.d.ts +5 -4
- package/dist/id-selfie-flow.esm.js +13 -12
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-DBnOC28H.esm.js → idCaptureDefaults-BivjtJka.esm.js} +1 -1
- package/dist/{idCaptureManager-B5xqok0L.esm.js → idCaptureManager-B_deOVCC.esm.js} +15 -15
- package/dist/{idCaptureManager-CG8zbAp0.d.ts → idCaptureManager-DzAMWmRO.d.ts} +17 -9
- package/dist/{idCaptureServices-BIF_7rub.esm.js → idCaptureServices-BFCsusKB.esm.js} +17 -25
- package/dist/{idCaptureStateMachine-B5cfgKvn.esm.js → idCaptureStateMachine--CMATkG9.esm.js} +52 -57
- package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
- package/dist/{idOcrManager-DNbVTMIu.esm.js → idOcrManager-C-_bzBSX.esm.js} +5 -3
- package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-DflRx-_u.d.ts} +5 -4
- package/dist/{idOcrStateMachine-MAGnpWkb.esm.js → idOcrStateMachine-BNtBkAXC.esm.js} +13 -10
- package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
- package/dist/{idVerificationManager-BEAkamNm.esm.js → idVerificationManager-CdvGdtg2.esm.js} +5 -3
- package/dist/{idVerificationStateMachine-D5mBN2Ye.esm.js → idVerificationStateMachine-mozw0CIg.esm.js} +4 -6
- package/dist/identity-reuse.d.ts +2 -2
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/identity-search.d.ts +97 -0
- package/dist/identity-search.esm.js +96 -0
- package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
- package/dist/{identityReuseManager-M8-BTjar.esm.js → identityReuseManager-Z1Re4UGd.esm.js} +9 -4
- package/dist/{identityReuseStateMachine-D5bXgw9h.esm.js → identityReuseStateMachine-C_3fSFCw.esm.js} +24 -31
- package/dist/{index-CSPOoqah.d.ts → index-C0WIMlJE.d.ts} +2 -2
- package/dist/{index-Btj1EhiM.d.ts → index-CNck5TLp.d.ts} +1 -1
- package/dist/index-DHuAkTe0.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-C1-j4fsq.esm.js → invokeOnCaptureCallback-DNQX9k5e.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
- package/dist/{kybChecksManager-CnqwgKoV.esm.js → kybChecksManager-D-mVF14T.esm.js} +3 -2
- package/dist/{kybChecksStateMachine-Be41K_NS.esm.js → kybChecksStateMachine-BARZh9GN.esm.js} +11 -14
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-LFhUlLvO.esm.js → mandatoryConsentManager-CKzzbbRe.esm.js} +5 -3
- package/dist/{mandatoryConsentManager-CYOJd_IZ.d.ts → mandatoryConsentManager-D6tBmPDy.d.ts} +10 -9
- package/dist/{mandatoryConsentStateMachine-DTSyDqQs.esm.js → mandatoryConsentStateMachine-DpK7fg3E.esm.js} +6 -9
- package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-Di_V9TnZ.esm.js} +21 -4
- package/dist/{multipartRecordingService-CCiRpByl.esm.js → multipartRecordingService-CEtaAPz4.esm.js} +2 -2
- package/dist/{permissionGuards-DjQUR1du.esm.js → permissionGuards-BJIaHxvI.esm.js} +1 -1
- package/dist/{permissionServices-CZpORUWY.esm.js → permissionServices-6Mdq1hDk.esm.js} +8 -5
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
- package/dist/{phoneManager-C-qD3p3N.esm.js → phoneManager-D8-l6-0y.esm.js} +5 -3
- package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
- package/dist/{phoneServices-BdR1nmSO.esm.js → phoneServices-C9lFIuCM.esm.js} +3 -7
- package/dist/{phoneStateMachine-2FMTdjtJ.esm.js → phoneStateMachine-CGLBgJJR.esm.js} +4 -4
- package/dist/{platform-aPh7gTWh.esm.js → platform-GIg4uPWe.esm.js} +1 -4
- package/dist/{processFaceMatch-B1YnoBer.esm.js → processFaceMatch-B1Mhqkep.esm.js} +1 -1
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-BVSCo0ac.esm.js → recordingService-CLGnDCDl.esm.js} +7 -6
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-CqyDfDxs.esm.js → redirectToMobileManager-Djb_daci.esm.js} +6 -4
- package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +3 -3
- package/dist/{redirectToMobileStateMachine-CXqfo2Gd.esm.js → redirectToMobileStateMachine-BCyQFlpn.esm.js} +9 -19
- package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
- package/dist/{runChildModule-BmteMhR7.esm.js → runChildModule-DF2c6TxC.esm.js} +8 -6
- package/dist/{sdkVersion-KZROt6l3.esm.js → sdkVersion-B5_kVegT.esm.js} +1 -1
- package/dist/selfie.d.ts +5 -5
- package/dist/selfie.esm.js +13 -12
- package/dist/{selfieErrorUtils-fqxp645p.esm.js → selfieErrorUtils-BVuv5qO7.esm.js} +1 -1
- package/dist/{selfieManager-DREuBhXZ.d.ts → selfieManager-C5a6Fw6W.d.ts} +2 -2
- package/dist/{selfieManager-A-n3k9Tu.esm.js → selfieManager-Dnb5h3qV.esm.js} +7 -6
- package/dist/{selfieStateMachine-48PKdKrw.esm.js → selfieStateMachine-BT69FLFb.esm.js} +5 -5
- package/dist/{session-D0DWDKp9.esm.js → session-OCc4b-Iv.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-I92b2dmL.esm.js → sessionInitializer-BUUpdBy6.esm.js} +11 -12
- package/dist/{setup-CG6oLkAa.d.ts → setup-BpD7lYSf.d.ts} +5 -4
- package/dist/{setup-BpjzWqR1.esm.js → setup-CJMohzTE.esm.js} +10 -9
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-M9vQBj19.esm.js → signatureManager-B6dRieBV.esm.js} +5 -3
- package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
- package/dist/{signatureStateMachine-0_frzAN5.esm.js → signatureStateMachine-DSW5-ZO0.esm.js} +5 -7
- package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
- package/dist/{stats-C2sigf9p.esm.js → stats-VqHbD5rn.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/step-up.d.ts +3 -2
- package/dist/step-up.esm.js +2 -1
- package/dist/{tri-DaUNvo-o.esm.js → tri-B5Yh5glk.esm.js} +2 -2
- package/dist/tri.d.ts +1 -1
- package/dist/tri.esm-DYdFtcDH.esm.js +3105 -0
- package/dist/tri.esm.js +1 -1
- package/dist/{trueSightService-DHYTBCIn.esm.js → trueSightService-D9D2IdEj.esm.js} +8 -6
- package/dist/trust-graph.d.ts +4 -3
- package/dist/trust-graph.esm.js +5 -3
- package/dist/{types-TisHEbBg.d.ts → types-B2DGXHe6.d.ts} +30 -1
- package/dist/{types-BqlZSoZ-.d.ts → types-BBHnkH6S.d.ts} +4 -4
- package/dist/types-BNkzXOXE.d.ts +45 -0
- package/dist/{types-P9LzsfRo.d.ts → types-BkWUNheX.d.ts} +1 -1
- package/dist/types-C2uJrJrS.d.ts +6 -0
- package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
- package/dist/{events-C7h7oaTE.esm.js → types-CBQN04Rh.esm.js} +5 -299
- package/dist/{types-CyNndVAT.d.ts → types-CaVUb1DL.d.ts} +1 -1
- package/dist/{types-Cbm9J2yF.d.ts → types-Crg7oL-l.d.ts} +1 -1
- package/dist/{types-CgihAhT_.d.ts → types-x5MQKskR.d.ts} +4 -2
- package/dist/video-selfie.d.ts +6 -5
- package/dist/video-selfie.esm.js +14 -13
- package/dist/{videoSelfieCameraWarmer-CTOpqhov.esm.js → videoSelfieCameraWarmer-CYEHPKK6.esm.js} +9 -9
- package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-4XE2QI5q.d.ts → videoSelfieStepDetector-DGXi_TXk.d.ts} +18 -8
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/{wasmDsFlagSync-lRIgn5Ic.esm.js → wasmDsFlagSync-BNttW5Sm.esm.js} +1 -1
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-C1S5y5yj.esm.js → watchlistForBusinessManager-CfLnsL8p.esm.js} +5 -3
- package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
- package/dist/{watchlistForBusinessStateMachine-Bj_hnoK5.esm.js → watchlistForBusinessStateMachine-EzlC_4I4.esm.js} +12 -9
- package/dist/{watchlistManager-BpegtZbc.esm.js → watchlistManager-CGXbemnp.esm.js} +5 -3
- package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
- package/dist/{watchlistStateMachine-Bgkh1gra.esm.js → watchlistStateMachine-CsNEmiXL.esm.js} +4 -6
- package/dist/workflow.d.ts +6 -5
- package/dist/workflow.esm.js +53 -43
- package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
- package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
- package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
- package/package.json +11 -1
- package/dist/Actor-DpTj5PFb.d.ts +0 -1
- package/dist/camera-9wWD-pwg.d.ts +0 -4
- package/dist/index-DpTj5PFb.d.ts +0 -1
- package/dist/nationalIds-B91f_RuB.esm.js +0 -99
- package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
- package/dist/tri.esm-Df5eKLsY.esm.js +0 -2165
- package/dist/types-kLsU6Jkt.d.ts +0 -6
package/dist/id-ocr.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as isValidCPF, t as formatCPF } from "./idOcrCpfUtils-
|
|
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-
|
|
1
|
+
import { n as isValidCPF, t as formatCPF } from "./idOcrCpfUtils-D5Gwskxu.esm.js";
|
|
2
|
+
import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-BNtBkAXC.esm.js";
|
|
3
|
+
import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-C-_bzBSX.esm.js";
|
|
4
4
|
export { CPFFlowIds, MIN_AGE, OCR_FIELDS, createIdOcrManager, createIdOcrManagerFromActor, formatCPF, getOcrFields, idOcrStateMachine, isValidCPF };
|
package/dist/id-selfie-flow.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import "./warmup-BNhIuURi.js";
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
2
|
+
import "./xstate.cjs-D6Ur0X1F.js";
|
|
3
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
4
|
+
import "./Actor-DqjOqDfU.js";
|
|
5
|
+
import { n as FacingMode, t as CameraStream } from "./camera-9yYDUOsO.js";
|
|
5
6
|
import { t as DetectionOrientation } from "./IIdCaptureCapability-C-5M8pP1.js";
|
|
6
7
|
import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
|
|
7
|
-
import {
|
|
8
|
+
import { i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-DGXi_TXk.js";
|
|
8
9
|
//#region src/modules/id-selfie-flow/types.d.ts
|
|
9
10
|
/**
|
|
10
11
|
* The capture steps an ID + Selfie flow session can run, in flow order. A
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-CJMohzTE.esm.js";
|
|
2
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-D5RMElzw.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { a as resolveDashboardModuleConfig,
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { a as resolveDashboardModuleConfig, v as facingModeForStep } from "./flowServices-C23o7MqO.esm.js";
|
|
5
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
6
|
+
import { i as assign, r as sendTo, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
7
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
8
|
+
import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-WtuJ6QBK.esm.js";
|
|
8
9
|
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
9
10
|
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 validateUploadResponse, d as processId, g as uploadIdImage, v as ID_ERROR_CODES } from "./idCaptureServices-
|
|
12
|
-
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-
|
|
13
|
-
import { r as getFinishStatus } from "./flowCompletionService-
|
|
14
|
-
import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-
|
|
15
|
-
import { t as CameraCompositor } from "./CameraCompositor-
|
|
11
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-BivjtJka.esm.js";
|
|
12
|
+
import { _ as validateUploadResponse, d as processId, g as uploadIdImage, v as ID_ERROR_CODES } from "./idCaptureServices-BFCsusKB.esm.js";
|
|
13
|
+
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CXd87trH.esm.js";
|
|
14
|
+
import { r as getFinishStatus } from "./flowCompletionService-E_6ChYsV.esm.js";
|
|
15
|
+
import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-CYEHPKK6.esm.js";
|
|
16
|
+
import { t as CameraCompositor } from "./CameraCompositor-C7N1N61V.esm.js";
|
|
16
17
|
//#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
|
|
17
18
|
/** Default autocapture window for the selfie step. */
|
|
18
19
|
const SELFIE_AUTOCAPTURE_MS = 1e4;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n as IdVerificationState, o as idVerificationMachine, r as createIdVerificationManager, s as IdVerificationConfig, t as IdVerificationManager } from "./idVerificationManager-
|
|
1
|
+
import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n as IdVerificationState, o as idVerificationMachine, r as createIdVerificationManager, s as IdVerificationConfig, t as IdVerificationManager } from "./idVerificationManager-B6R8xNZq.js";
|
|
2
2
|
export { type IdVerificationActor, type IdVerificationConfig, type IdVerificationManager, type IdVerificationState, createIdVerificationManager, createIdVerificationManagerFromActor, idVerificationMachine };
|
|
@@ -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-mozw0CIg.esm.js";
|
|
2
|
+
import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-CdvGdtg2.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 ValidationError, B as processId, C as AddBarcodeParams, D as InitializeIdCaptureParams, E as IdCaptureInitResult, F as getRealQualityValue, G as uploadIdImage, H as startRecordingSession, I as initializeIdCapture, K as validateUploadResponse, L as isSuspendableRecordingSession, M as barcodeToBase64, N as disposeRecordingSession, O as StartRecordingParams, P as finalizeRecordingSession, R as pauseRecordingForAttempt, S as idCaptureMachine, T as ID_QUALITY_BACKEND_VALIDATION_GATE, U as stopRecording, V as resumeRecordingAfterPause, W as stopStream, _ as idCaptureOnlyMachine, a as RenderWalletError, b as createIdCaptureActor, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as resolveWalletPlatform, g as IdCaptureOnlyMachine, h as createIdCaptureOnlyActor, j as addBarcode, k as UploadIdImageParams, l as DeviceWalletState, m as IdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as CreateIdCaptureOnlyActorOptions, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as CreateIdCaptureActorOptions, w as FinalizedIdRecording, x as IdCaptureMachine, y as IdCaptureActor, z as prepareRecordingForCameraRetry } from "./idCaptureManager-
|
|
4
|
-
import { t as CameraStream } from "./camera-
|
|
3
|
+
import { A as ValidationError, B as processId, C as AddBarcodeParams, D as InitializeIdCaptureParams, E as IdCaptureInitResult, F as getRealQualityValue, G as uploadIdImage, H as startRecordingSession, I as initializeIdCapture, K as validateUploadResponse, L as isSuspendableRecordingSession, M as barcodeToBase64, N as disposeRecordingSession, O as StartRecordingParams, P as finalizeRecordingSession, R as pauseRecordingForAttempt, S as idCaptureMachine, T as ID_QUALITY_BACKEND_VALIDATION_GATE, U as stopRecording, V as resumeRecordingAfterPause, W as stopStream, _ as idCaptureOnlyMachine, a as RenderWalletError, b as createIdCaptureActor, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as resolveWalletPlatform, g as IdCaptureOnlyMachine, h as createIdCaptureOnlyActor, j as addBarcode, k as UploadIdImageParams, l as DeviceWalletState, m as IdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as CreateIdCaptureOnlyActorOptions, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as CreateIdCaptureActorOptions, w as FinalizedIdRecording, x as IdCaptureMachine, y as IdCaptureActor, z as prepareRecordingForCameraRetry } from "./idCaptureManager-DzAMWmRO.js";
|
|
4
|
+
import { t as CameraStream } from "./camera-9yYDUOsO.js";
|
|
5
5
|
import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-C-5M8pP1.js";
|
|
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-
|
|
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-BBHnkH6S.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
|
package/dist/id.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
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 validateUploadResponse, a as finalizeRecordingSession, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, r as barcodeToBase64, s as initializeIdCapture, t as ID_QUALITY_BACKEND_VALIDATION_GATE, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES } from "./idCaptureServices-
|
|
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--CMATkG9.esm.js";
|
|
2
|
+
import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-B_deOVCC.esm.js";
|
|
3
|
+
import { _ as validateUploadResponse, a as finalizeRecordingSession, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, r as barcodeToBase64, s as initializeIdCapture, t as ID_QUALITY_BACKEND_VALIDATION_GATE, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES } from "./idCaptureServices-BFCsusKB.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
1
|
import { D as WASM_MODEL_FILES, P as resolveWasmSource, w as getBarcodeEnhanceModelUrl } from "./wasmWebClient-C3v3s_4H.esm.js";
|
|
2
2
|
import { l as wasmRuntime, t as getResolvedModelSource } from "./warmup-9iKKNNuW.esm.js";
|
|
3
|
-
import { r as BaseWasmProvider } from "./WasmUtilProvider-
|
|
3
|
+
import { r as BaseWasmProvider } from "./WasmUtilProvider-D5RMElzw.esm.js";
|
|
4
4
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
5
5
|
//#region ../infra/src/wasm/idCaptureWasmApi.ts
|
|
6
6
|
var IdCaptureWasmApi = class {
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
2
|
-
import { n as eventModuleNames
|
|
3
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-CJMohzTE.esm.js";
|
|
2
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
3
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
4
|
+
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
4
5
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
6
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
7
|
+
import { i as assign, s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
8
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
7
9
|
import { t as splitTrackedName } from "./splitTrackedName-3zJRd2RD.esm.js";
|
|
8
|
-
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-
|
|
10
|
+
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BNttW5Sm.esm.js";
|
|
9
11
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
10
|
-
import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-
|
|
11
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
12
|
-
import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine
|
|
13
|
-
import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-
|
|
14
|
-
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-
|
|
12
|
+
import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-6Mdq1hDk.esm.js";
|
|
13
|
+
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
14
|
+
import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine--CMATkG9.esm.js";
|
|
15
|
+
import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-BFCsusKB.esm.js";
|
|
16
|
+
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-DNQX9k5e.esm.js";
|
|
15
17
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
16
18
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
17
19
|
function isHoldingState(value) {
|
|
@@ -897,9 +899,7 @@ var BrowserLocaleProvider = class {
|
|
|
897
899
|
* the backend cannot place the IP.
|
|
898
900
|
*/
|
|
899
901
|
async function fetchIpCountry(signal) {
|
|
900
|
-
|
|
901
|
-
if (!res.ok) throw new Error(`GET ${endpoints.startInfo} failed: ${res.status} ${res.statusText}`);
|
|
902
|
-
return res.data?.ipIsoCode ?? void 0;
|
|
902
|
+
return (await api.get(endpoints.startInfo, { signal })).data?.ipIsoCode ?? void 0;
|
|
903
903
|
}
|
|
904
904
|
//#endregion
|
|
905
905
|
//#region src/modules/id/idCaptureActor.ts
|
|
@@ -1131,7 +1131,7 @@ function createIdCaptureOnlyManager(options) {
|
|
|
1131
1131
|
* (see `createIdCaptureOnlyManager`): no backend, images go to `onCapture`.
|
|
1132
1132
|
*/
|
|
1133
1133
|
function createIdCaptureManager(options) {
|
|
1134
|
-
import("./backCameraStream-
|
|
1134
|
+
import("./backCameraStream-6qVHvj76.esm.js").then((n) => n.t).catch(() => void 0);
|
|
1135
1135
|
if (hasOnCaptureCallback(options.config)) return createIdCaptureOnlyManager({
|
|
1136
1136
|
config: pickIdCaptureOnlyConfig(options.config),
|
|
1137
1137
|
dependencies: options.dependencies
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
1
|
+
import { i as ActorRefFrom, j as StateMachine, l as AnyStateMachine } from "./spawn-COZKetCS.js";
|
|
2
|
+
import "./xstate.cjs-D6Ur0X1F.js";
|
|
3
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
4
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
5
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
5
|
-
import "./index-
|
|
6
|
+
import "./index-DHuAkTe0.js";
|
|
6
7
|
import "./createFaceAvatar-BimBTONm.js";
|
|
7
|
-
import { a as RegulationTypes } from "./types-
|
|
8
|
-
import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, t as FingerprintSignalType } from "./IWasmUtilCapability-
|
|
8
|
+
import { a as RegulationTypes } from "./types-B2DGXHe6.js";
|
|
9
|
+
import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, t as FingerprintSignalType } from "./IWasmUtilCapability-XcOtT1TP.js";
|
|
9
10
|
import { n as PermissionStatus } from "./types-BEwVKkLJ.js";
|
|
10
11
|
import { t as BaseWasmProvider } from "./BaseWasmProvider-bBNquvYn.js";
|
|
11
|
-
import { n as DeepsightService } from "./StreamCanvasCapture-
|
|
12
|
-
import { t as CameraStream } from "./camera-
|
|
12
|
+
import { n as DeepsightService } from "./StreamCanvasCapture-BnBfA6fb.js";
|
|
13
|
+
import { t as CameraStream } from "./camera-9yYDUOsO.js";
|
|
13
14
|
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-
|
|
15
|
+
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-BBHnkH6S.js";
|
|
15
16
|
//#region src/internal/http/endpoints.d.ts
|
|
16
17
|
/**
|
|
17
18
|
* Backend `CaptureType` for the `captureType` query param on `add/front-id`,
|
|
@@ -65,6 +66,13 @@ declare class WasmUtilProvider extends BaseWasmProvider implements IWasmUtilCapa
|
|
|
65
66
|
getCheck(): string;
|
|
66
67
|
getPipelineState(): string;
|
|
67
68
|
estimatePerformance(): string;
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated Always returns `false` (since SDK 2.3.0); scheduled for removal
|
|
71
|
+
* in 3.0.0. The camera-label check runs natively in the pre-capture checks of
|
|
72
|
+
* the protected camera step (`ICameraCycleCapability.startCameraCycle`), and
|
|
73
|
+
* the signed capture metadata carries its verdict. That native check is
|
|
74
|
+
* authoritative; nothing is decided from this return value.
|
|
75
|
+
*/
|
|
68
76
|
isVirtualCamera(label: string | null): boolean;
|
|
69
77
|
/**
|
|
70
78
|
* @deprecated Resolves without doing anything since ml-wasm-kit v2.14.52:
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
3
|
-
import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-
|
|
4
|
-
import {
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-CJMohzTE.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
3
|
+
import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-BhRKAG--.esm.js";
|
|
4
|
+
import { r as isDesktop } from "./platform-GIg4uPWe.esm.js";
|
|
5
5
|
import { n as isBackFacingTrack } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
6
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
7
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-
|
|
6
|
+
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
7
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-BivjtJka.esm.js";
|
|
8
8
|
//#region src/modules/id/idCameraStream.ts
|
|
9
9
|
async function getIdCameraStream(deviceId) {
|
|
10
|
-
return (await import("./backCameraStream-
|
|
10
|
+
return (await import("./backCameraStream-6qVHvj76.esm.js").then((n) => n.t)).getBackCameraStream(deviceId);
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/modules/id/idCaptureExperiments.ts
|
|
@@ -337,9 +337,7 @@ function validateUploadResponse(response, sessionState) {
|
|
|
337
337
|
async function getExtraImages(params) {
|
|
338
338
|
const extraImages = params.ageAssurance ? [params.type === "back" ? "croppedBackID" : "croppedFrontID"] : [];
|
|
339
339
|
try {
|
|
340
|
-
|
|
341
|
-
if (!res.ok) throw new Error(`Failed to get extra images: ${res.status}`);
|
|
342
|
-
return res.data ?? {
|
|
340
|
+
return (await api.post(endpoints.getImages, { images: ["croppedIDFace", ...extraImages] }, { signal: params.signal })).data ?? {
|
|
343
341
|
croppedIDFace: "",
|
|
344
342
|
croppedFrontID: "",
|
|
345
343
|
croppedBackID: ""
|
|
@@ -376,13 +374,11 @@ async function uploadIdImage(params) {
|
|
|
376
374
|
if (sharpness !== void 0) queryParams.sharpness = getRealQualityValue(sharpness);
|
|
377
375
|
if (extractIdFace === false && type === "front") queryParams.extractIdFace = false;
|
|
378
376
|
try {
|
|
379
|
-
const
|
|
377
|
+
const response = (await api.post(endpoint, body, {
|
|
380
378
|
signal,
|
|
381
379
|
query: queryParams,
|
|
382
380
|
onUploadProgress: onProgress
|
|
383
|
-
});
|
|
384
|
-
if (!res.ok) throw new Error(`POST ${endpoint} failed: ${res.status} ${res.statusText}`);
|
|
385
|
-
const response = res.data;
|
|
381
|
+
})).data;
|
|
386
382
|
const extraImages = await getExtraImages({
|
|
387
383
|
type,
|
|
388
384
|
ageAssurance,
|
|
@@ -422,7 +418,7 @@ async function startRecordingSession(params) {
|
|
|
422
418
|
const multipartSession = multipartIdSessions.get(params.existing);
|
|
423
419
|
if (multipartSession?.needsVideoSourceReplacement) {
|
|
424
420
|
const recordingSource = params.stream.clone();
|
|
425
|
-
|
|
421
|
+
multipartSession.compositor.switchAudio(recordingSource);
|
|
426
422
|
multipartSession.compositor.switchVideo(recordingSource);
|
|
427
423
|
multipartSession.needsVideoSourceReplacement = false;
|
|
428
424
|
multipartSession.recordingSource = recordingSource;
|
|
@@ -434,9 +430,9 @@ async function startRecordingSession(params) {
|
|
|
434
430
|
return params.existing;
|
|
435
431
|
}
|
|
436
432
|
const [compositorModule, recorderModule, serviceModule] = await Promise.all([
|
|
437
|
-
import("./CameraCompositor-
|
|
438
|
-
import("./WorkerEncoderRecordingProvider-
|
|
439
|
-
import("./multipartRecordingService-
|
|
433
|
+
import("./CameraCompositor-C7N1N61V.esm.js").then((n) => n.n),
|
|
434
|
+
import("./WorkerEncoderRecordingProvider-BO7urYwT.esm.js").then((n) => n.n),
|
|
435
|
+
import("./multipartRecordingService-CEtaAPz4.esm.js").then((n) => n.n)
|
|
440
436
|
]);
|
|
441
437
|
const recordingSource = params.stream.clone();
|
|
442
438
|
const compositor = compositorModule.createRecordingCompositor();
|
|
@@ -501,6 +497,7 @@ function releaseCameraClone(multipartSession, options) {
|
|
|
501
497
|
for (const track of tracks) try {
|
|
502
498
|
track.stop();
|
|
503
499
|
} catch {}
|
|
500
|
+
if (options.keepAudio) multipartSession.compositor.releaseAudio();
|
|
504
501
|
}
|
|
505
502
|
/**
|
|
506
503
|
* Completes an ID recording: drains the multipart upload and releases the
|
|
@@ -581,15 +578,10 @@ async function addBarcode(params) {
|
|
|
581
578
|
body.pdf417CorrectedErrorsCount = metrics.correctedErrorsCount;
|
|
582
579
|
body.ecLevel = metrics.ecLevel;
|
|
583
580
|
}
|
|
584
|
-
|
|
581
|
+
return (await api.post(endpoints.addBarcode, body, {
|
|
585
582
|
query: { processId },
|
|
586
583
|
signal
|
|
587
|
-
});
|
|
588
|
-
if (!res.ok) throw Object.assign(/* @__PURE__ */ new Error(`POST ${endpoints.addBarcode} failed: ${res.status} ${res.statusText}`), {
|
|
589
|
-
status: res.status,
|
|
590
|
-
data: res.data
|
|
591
|
-
});
|
|
592
|
-
return res.data;
|
|
584
|
+
})).data;
|
|
593
585
|
}
|
|
594
586
|
//#endregion
|
|
595
587
|
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-B5cfgKvn.esm.js → idCaptureStateMachine--CMATkG9.esm.js}
RENAMED
|
@@ -1,33 +1,35 @@
|
|
|
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,
|
|
5
|
-
import { r as getToken, t as api, u as endpoints } from "./api-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-CJMohzTE.esm.js";
|
|
3
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-D5RMElzw.esm.js";
|
|
4
|
+
import { n as eventModuleNames, v as addEvent } from "./types-CBQN04Rh.esm.js";
|
|
5
|
+
import { r as getToken, t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
6
|
+
import { n as recordExperimentAssignmentOnce, t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
7
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-D9D2IdEj.esm.js";
|
|
8
|
+
import { n as getDisableIpify } from "./sessionInitializer-BUUpdBy6.esm.js";
|
|
8
9
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
9
|
-
import { s as exposeExperimentOnce } from "./feature-management-
|
|
10
|
-
import { t as addDeviceStats } from "./stats-
|
|
11
|
-
import {
|
|
12
|
-
import "./session-
|
|
13
|
-
import {
|
|
14
|
-
import { n as
|
|
10
|
+
import { s as exposeExperimentOnce } from "./feature-management-BhRKAG--.esm.js";
|
|
11
|
+
import { t as addDeviceStats } from "./stats-VqHbD5rn.esm.js";
|
|
12
|
+
import { d as isSamsungDevice, i as isIOS, l as isMacOsSafari, o as isIPad, s as isIPhone14OrHigher, t as isAndroid } from "./platform-GIg4uPWe.esm.js";
|
|
13
|
+
import "./session-OCc4b-Iv.esm.js";
|
|
14
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
15
|
+
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 } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
16
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
15
17
|
import { r as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-B2wagB5v.esm.js";
|
|
16
|
-
import {
|
|
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-
|
|
18
|
+
import { c as isCameraDenialErrorName } from "./camera-CJKApt0x.esm.js";
|
|
19
|
+
import { i as requestMotionPermission, n as invokeRequestPermissionActor, o as requiresMotionPermissionUserGesture, t as checkPermission, u as queryPermission } from "./permissionServices-6Mdq1hDk.esm.js";
|
|
20
|
+
import { i as cameraCycleProvider, n as createCameraCycleOwnership, o as flagIdManualReview, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-btFONYx6.esm.js";
|
|
19
21
|
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 { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-BJIaHxvI.esm.js";
|
|
23
|
+
import { t as carryAttempts } from "./attemptCarry-QFQkA3na.esm.js";
|
|
22
24
|
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
23
25
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
24
26
|
import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
25
27
|
import { t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
26
28
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
27
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
28
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-
|
|
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-
|
|
30
|
-
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-
|
|
29
|
+
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
30
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-BivjtJka.esm.js";
|
|
31
|
+
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-BFCsusKB.esm.js";
|
|
32
|
+
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CXd87trH.esm.js";
|
|
31
33
|
import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-eFOm2C9q.esm.js";
|
|
32
34
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
33
35
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
@@ -67,15 +69,13 @@ async function uploadDigitalIdFile(params) {
|
|
|
67
69
|
const { file, signal, onProgress, extractIdFace } = params;
|
|
68
70
|
const query = { idType: "DigitalId" };
|
|
69
71
|
if (extractIdFace === false) query.extractIdFace = false;
|
|
70
|
-
const response = await api.post(DIGITAL_ID_UPLOAD_PATH, file, {
|
|
71
|
-
query,
|
|
72
|
-
headers: { "Content-Type": file.type || "application/pdf" },
|
|
73
|
-
onUploadProgress: onProgress,
|
|
74
|
-
signal
|
|
75
|
-
});
|
|
76
|
-
if (!response.ok) throw new Error(`POST ${DIGITAL_ID_UPLOAD_PATH} failed: ${response.status}`);
|
|
77
72
|
return {
|
|
78
|
-
...
|
|
73
|
+
...(await api.post(DIGITAL_ID_UPLOAD_PATH, file, {
|
|
74
|
+
query,
|
|
75
|
+
headers: { "Content-Type": file.type || "application/pdf" },
|
|
76
|
+
onUploadProgress: onProgress,
|
|
77
|
+
signal
|
|
78
|
+
})).data,
|
|
79
79
|
uploadDurationMs: 0
|
|
80
80
|
};
|
|
81
81
|
}
|
|
@@ -354,12 +354,10 @@ function toGoogleRequestOptions(payload) {
|
|
|
354
354
|
*/
|
|
355
355
|
async function requestWalletData(platform, signal) {
|
|
356
356
|
if (platform === "ios") {
|
|
357
|
-
const
|
|
357
|
+
const data = (await api.post(endpoints.deviceWalletAppleRequest, {}, {
|
|
358
358
|
headers: API_VERSION_HEADERS,
|
|
359
359
|
signal
|
|
360
|
-
});
|
|
361
|
-
if (!res.ok) throw new Error(`POST ${endpoints.deviceWalletAppleRequest} failed: ${res.status}`);
|
|
362
|
-
const data = res.data;
|
|
360
|
+
})).data;
|
|
363
361
|
return { requests: [{
|
|
364
362
|
protocol: "org-iso-mdoc",
|
|
365
363
|
data: {
|
|
@@ -368,13 +366,11 @@ async function requestWalletData(platform, signal) {
|
|
|
368
366
|
}
|
|
369
367
|
}] };
|
|
370
368
|
}
|
|
371
|
-
|
|
369
|
+
return toGoogleRequestOptions((await api.get(endpoints.deviceWalletGoogleRequest, {
|
|
372
370
|
headers: API_VERSION_HEADERS,
|
|
373
371
|
query: { signedSupported: isGoogleWalletSignedRequestsEnabled() },
|
|
374
372
|
signal
|
|
375
|
-
});
|
|
376
|
-
if (!res.ok) throw new Error(`GET ${endpoints.deviceWalletGoogleRequest} failed: ${res.status}`);
|
|
377
|
-
return toGoogleRequestOptions(res.data);
|
|
373
|
+
})).data);
|
|
378
374
|
}
|
|
379
375
|
/**
|
|
380
376
|
* Forwards the opaque wallet response for backend decryption. The body key
|
|
@@ -384,12 +380,10 @@ async function requestWalletData(platform, signal) {
|
|
|
384
380
|
async function decryptWalletResponse(platform, walletResponse, signal) {
|
|
385
381
|
const url = platform === "ios" ? endpoints.deviceWalletAppleDecrypt : endpoints.deviceWalletGoogleDecrypt;
|
|
386
382
|
const body = platform === "ios" ? { deviceResponse: walletResponse } : { identityToken: walletResponse };
|
|
387
|
-
|
|
383
|
+
return (await api.post(url, body, {
|
|
388
384
|
headers: API_VERSION_HEADERS,
|
|
389
385
|
signal
|
|
390
|
-
});
|
|
391
|
-
if (!res.ok) throw new Error(`POST ${url} failed: ${res.status}`);
|
|
392
|
-
return res.data;
|
|
386
|
+
})).data;
|
|
393
387
|
}
|
|
394
388
|
const defaultDeviceWalletServices = {
|
|
395
389
|
requestWalletData,
|
|
@@ -2044,7 +2038,7 @@ fromPromise(async ({ input }) => {
|
|
|
2044
2038
|
});
|
|
2045
2039
|
fromPromise(async ({ input }) => {
|
|
2046
2040
|
if (!input.dependencies) return;
|
|
2047
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
2041
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-ClCQCdeL.esm.js");
|
|
2048
2042
|
return loadDeepsightSession({
|
|
2049
2043
|
ds: input.ds,
|
|
2050
2044
|
storage: input.dependencies.storage,
|
|
@@ -2487,7 +2481,7 @@ function cleanup(service) {
|
|
|
2487
2481
|
service.cleanup();
|
|
2488
2482
|
} catch {}
|
|
2489
2483
|
}
|
|
2490
|
-
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-
|
|
2484
|
+
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-ClCQCdeL.esm.js")).loadDeepsightSession(input)) {
|
|
2491
2485
|
let disposed = false;
|
|
2492
2486
|
let preparation;
|
|
2493
2487
|
let service;
|
|
@@ -3407,6 +3401,14 @@ function createProtectedIdCallbackSession(input) {
|
|
|
3407
3401
|
}
|
|
3408
3402
|
};
|
|
3409
3403
|
}
|
|
3404
|
+
/**
|
|
3405
|
+
* Merged session recordings carry sound, as in SDK 1. Only when the capture
|
|
3406
|
+
* uploads an ID recording. The permission step reads it too, so camera and mic
|
|
3407
|
+
* are asked in one prompt.
|
|
3408
|
+
*/
|
|
3409
|
+
function requestsIdSessionAudio(config) {
|
|
3410
|
+
return !hasOnCaptureCallback(config) && config.enableIdRecording === true && config.mergeSessionRecordings === true;
|
|
3411
|
+
}
|
|
3410
3412
|
function createProtectedIdAttemptInput(input) {
|
|
3411
3413
|
const { context, controller } = input;
|
|
3412
3414
|
const provider = controller.getProvider();
|
|
@@ -3449,6 +3451,7 @@ function createProtectedIdAttemptInput(input) {
|
|
|
3449
3451
|
capturePresentationFrame: () => controller.takeAutoCaptureFrame(),
|
|
3450
3452
|
cycle: cameraCycleProvider,
|
|
3451
3453
|
cycleOwnership: controller.getCycleOwnership(),
|
|
3454
|
+
recordAudio: requestsIdSessionAudio(context.config),
|
|
3452
3455
|
recorder: createProtectedIdRecorderHooks({
|
|
3453
3456
|
config: context.config,
|
|
3454
3457
|
currentMode: context.currentMode,
|
|
@@ -3662,9 +3665,7 @@ function withQuery(path, params) {
|
|
|
3662
3665
|
/** GET the provider catalog. Ordering is applied FE-side by the module. */
|
|
3663
3666
|
async function listProviders(params, signal) {
|
|
3664
3667
|
const url = withQuery(endpoints.digitalIdProviders, params);
|
|
3665
|
-
|
|
3666
|
-
if (!res.ok) throw new Error(`GET ${url} failed: ${res.status} ${res.statusText}`);
|
|
3667
|
-
return res.data ?? [];
|
|
3668
|
+
return (await api.get(url, { signal })).data ?? [];
|
|
3668
3669
|
}
|
|
3669
3670
|
/**
|
|
3670
3671
|
* Append the onboarding `uuid` to `returnUrl` when absent, so the return leg can
|
|
@@ -3697,12 +3698,10 @@ async function ensureReturnUrlUuid(returnUrl, signal) {
|
|
|
3697
3698
|
*/
|
|
3698
3699
|
async function createVerification(params, signal) {
|
|
3699
3700
|
const redirectUrl = await ensureReturnUrlUuid(params.redirectUrl, signal);
|
|
3700
|
-
|
|
3701
|
+
return (await api.post(endpoints.digitalIdVerifications, {
|
|
3701
3702
|
...params,
|
|
3702
3703
|
redirectUrl
|
|
3703
|
-
}, { signal });
|
|
3704
|
-
if (!res.ok) throw new Error(`POST ${endpoints.digitalIdVerifications} failed: ${res.status} ${res.statusText}`);
|
|
3705
|
-
return res.data;
|
|
3704
|
+
}, { signal })).data;
|
|
3706
3705
|
}
|
|
3707
3706
|
/**
|
|
3708
3707
|
* Submit the provider's return params. The contract wants them wrapped as a
|
|
@@ -3715,9 +3714,7 @@ async function submitWalletResponse(verificationId, params, signal) {
|
|
|
3715
3714
|
resultsAccessKey: params.resultsAccessKey,
|
|
3716
3715
|
success: String(params.success)
|
|
3717
3716
|
}) };
|
|
3718
|
-
|
|
3719
|
-
if (!res.ok) throw new Error(`POST ${url} failed: ${res.status} ${res.statusText}`);
|
|
3720
|
-
return res.data;
|
|
3717
|
+
return (await api.post(url, body, { signal })).data;
|
|
3721
3718
|
}
|
|
3722
3719
|
/**
|
|
3723
3720
|
* Poll fallback — used when the user does not return or results are delayed.
|
|
@@ -3730,7 +3727,6 @@ async function submitWalletResponse(verificationId, params, signal) {
|
|
|
3730
3727
|
async function getVerificationStatus(verificationId, signal) {
|
|
3731
3728
|
const url = `${endpoints.digitalIdVerifications}/${verificationId}/status`;
|
|
3732
3729
|
const res = await api.get(url, { signal });
|
|
3733
|
-
if (!res.ok) throw new Error(`GET ${url} failed: ${res.status} ${res.statusText}`);
|
|
3734
3730
|
return {
|
|
3735
3731
|
verification: res.data,
|
|
3736
3732
|
retryAfterMs: parseRetryAfterMs(res.headers)
|
|
@@ -3742,9 +3738,7 @@ async function getVerificationStatus(verificationId, signal) {
|
|
|
3742
3738
|
*/
|
|
3743
3739
|
async function refreshVerification(verificationId, signal) {
|
|
3744
3740
|
const url = `${endpoints.digitalIdVerifications}/${verificationId}/refresh`;
|
|
3745
|
-
|
|
3746
|
-
if (!res.ok) throw new Error(`POST ${url} failed: ${res.status} ${res.statusText}`);
|
|
3747
|
-
return res.data;
|
|
3741
|
+
return (await api.post(url, {}, { signal })).data;
|
|
3748
3742
|
}
|
|
3749
3743
|
//#endregion
|
|
3750
3744
|
//#region src/modules/digital-id-redirect/digitalIdRedirectStorage.ts
|
|
@@ -5142,6 +5136,7 @@ const idCaptureMachine = setup({
|
|
|
5142
5136
|
input: ({ context, self }) => ({
|
|
5143
5137
|
permissionResult: context.permissionResult === "refresh" ? void 0 : context.permissionResult,
|
|
5144
5138
|
requestMotionPermission: context.config.ds === true,
|
|
5139
|
+
requestAudio: requestsIdSessionAudio(context.config),
|
|
5145
5140
|
acceptStream: (value) => getIdProtectedCaptureController(self).storePreAcquiredStream(value)
|
|
5146
5141
|
}),
|
|
5147
5142
|
onDone: [
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { n as eventModuleNames
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
3
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
4
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-BNtBkAXC.esm.js";
|
|
4
6
|
//#region src/modules/id-ocr/idOcrActor.ts
|
|
5
7
|
function createIdOcrActor(options) {
|
|
6
8
|
return createActor(idOcrStateMachine, { input: { config: options.config } }).start();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
1
|
+
import { A as MachineSnapshot, O as PromiseActorLogic, S as RequiredLogicInput, T as Values, _ as IsNotNever, a as ActorRefFromLogic, b as NonReducibleUnknown, c as AnyEventObject, g as InputFrom, h as GetConcreteByKey, i as ActorRefFrom, j as StateMachine, m as EventObject, o as AnyActorLogic, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, w as StateValue, x as RequiredActorOptions, y as MetaObject } from "./spawn-COZKetCS.js";
|
|
2
|
+
import "./xstate.cjs-D6Ur0X1F.js";
|
|
3
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
4
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
5
|
import { a as UpdateOcrResponse, i as UpdateOcrDataParams, n as OcrData, t as IdOcrConfig } from "./types-Bpo97EOh.js";
|
|
5
6
|
//#region src/modules/id-ocr/idOcrStateMachine.d.ts
|
|
6
7
|
type IdOcrOcrDocument = 'first' | 'second';
|
|
@@ -109,7 +110,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
|
|
|
109
110
|
type: "shouldProceedWithoutSubmitToSecondId";
|
|
110
111
|
params: unknown;
|
|
111
112
|
};
|
|
112
|
-
}>, never, "error" | "idle" | "success" | "finished" | "
|
|
113
|
+
}>, never, "error" | "idle" | "success" | "finished" | "submitting" | "loading" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
113
114
|
readonly id: "idOcr";
|
|
114
115
|
readonly initial: "idle";
|
|
115
116
|
readonly context: ({ input }: {
|