@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
|
@@ -96,6 +96,11 @@ const EKYC_INDEX = [
|
|
|
96
96
|
country: "GT",
|
|
97
97
|
source: "GT_1"
|
|
98
98
|
},
|
|
99
|
+
{
|
|
100
|
+
id: "ekyc/HK/HK_RESIDENT_REGISTER",
|
|
101
|
+
country: "HK",
|
|
102
|
+
source: "HK_RESIDENT_REGISTER"
|
|
103
|
+
},
|
|
99
104
|
{
|
|
100
105
|
id: "ekyc/IN/IN_DMV",
|
|
101
106
|
country: "IN",
|
|
@@ -156,6 +161,11 @@ const EKYC_INDEX = [
|
|
|
156
161
|
country: "PT",
|
|
157
162
|
source: "PT_CIVIL_REG_CREDIT_TELCO"
|
|
158
163
|
},
|
|
164
|
+
{
|
|
165
|
+
id: "ekyc/PT/PT_PHONE_REGISTER",
|
|
166
|
+
country: "PT",
|
|
167
|
+
source: "PT_PHONE_REGISTER"
|
|
168
|
+
},
|
|
159
169
|
{
|
|
160
170
|
id: "ekyc/RO/RO_VOTER_REGISTER",
|
|
161
171
|
country: "RO",
|
|
@@ -1281,12 +1291,6 @@ const MIDDLE_NAME_SOURCES = [
|
|
|
1281
1291
|
"CL_1",
|
|
1282
1292
|
"INDIA_PAN"
|
|
1283
1293
|
];
|
|
1284
|
-
const PHONE_RISK_ADDONS = [
|
|
1285
|
-
"phoneCheck",
|
|
1286
|
-
"advancedPhoneCheck",
|
|
1287
|
-
"phoneProfile"
|
|
1288
|
-
];
|
|
1289
|
-
const EMAIL_RISK_ADDONS = ["emailCheck"];
|
|
1290
1294
|
/** Risk addons that replace a `RISK_ADDONS_ONLY` source with their own. */
|
|
1291
1295
|
const RISK_ADDON_SOURCE_OVERRIDES = { phoneProfile: "PHONE_PROFILE" };
|
|
1292
1296
|
/** Sources whose submit payload must not carry `countryCode`. */
|
|
@@ -1315,9 +1319,6 @@ function mapToEKYCvalue(field) {
|
|
|
1315
1319
|
default: return "user_input";
|
|
1316
1320
|
}
|
|
1317
1321
|
}
|
|
1318
|
-
function hasRiskAddon(riskAddons, allowedAddons) {
|
|
1319
|
-
return allowedAddons.some((addon) => riskAddons?.includes(addon));
|
|
1320
|
-
}
|
|
1321
1322
|
/**
|
|
1322
1323
|
* Resolves the source sent to the backend. A `RISK_ADDONS_ONLY` source is
|
|
1323
1324
|
* replaced by the first configured addon that defines its own source
|
|
@@ -1327,54 +1328,59 @@ function resolveEkycSource(source, riskAddons) {
|
|
|
1327
1328
|
if (source !== "RISK_ADDONS_ONLY") return source;
|
|
1328
1329
|
return riskAddons?.map((addon) => RISK_ADDON_SOURCE_OVERRIDES[addon]).find(Boolean) ?? source;
|
|
1329
1330
|
}
|
|
1330
|
-
/**
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
const shouldRenderEmail = config.checkEmail || hasEmailRiskAddon;
|
|
1335
|
-
const shouldRenderPhone = config.checkPhone || hasPhoneRiskAddon;
|
|
1336
|
-
return {
|
|
1337
|
-
name: config.checkName ? mapToEKYCvalue(config.nameSource ?? "") : false,
|
|
1338
|
-
SSN: config.checkSsn ? mapToEKYCvalue(config.ssnSource ?? "") : false,
|
|
1339
|
-
address: config.checkAddress ? mapToEKYCvalue(config.addressSource ?? "") : false,
|
|
1340
|
-
"date of birth": config.checkDob ? mapToEKYCvalue(config.dobSource ?? "") : false,
|
|
1341
|
-
email: shouldRenderEmail ? mapToEKYCvalue(config.emailSource ?? "") : false,
|
|
1342
|
-
phone: shouldRenderPhone ? mapToEKYCvalue(config.phoneSource ?? "") : false,
|
|
1343
|
-
nationality: config.checkNationality ? mapToEKYCvalue(config.nationalitySource ?? "") : false,
|
|
1344
|
-
dlNumber: config.checkDlNumber ? mapToEKYCvalue(config.dlNumberSource ?? "") : false,
|
|
1345
|
-
dlState: config.checkDlState ? mapToEKYCvalue(config.dlStateSource ?? "") : false,
|
|
1346
|
-
dlExpireAt: config.checkDlExpireAt ? mapToEKYCvalue(config.dlExpireAtSource ?? "") : false,
|
|
1347
|
-
last4SSN: config.checkLast4SSN ? mapToEKYCvalue(config.last4SSNSource ?? "") : false,
|
|
1348
|
-
idNum: config.checkIdNum ? mapToEKYCvalue(config.idNumSource ?? "") : false,
|
|
1349
|
-
idNum1: config.checkIdNum1 ? mapToEKYCvalue(config.idNum1Source ?? "") : false,
|
|
1350
|
-
gender: config.checkGender ? mapToEKYCvalue(config.genderSource ?? "") : false,
|
|
1351
|
-
panNumber: config.checkPanNumber ? mapToEKYCvalue(config.panNumberSource ?? "") : false,
|
|
1352
|
-
idType: config.checkIdType ? mapToEKYCvalue(config.idTypeSource ?? "") : false,
|
|
1353
|
-
issueDate: config.checkIssueDate ? mapToEKYCvalue(config.issueDateSource ?? "") : false,
|
|
1354
|
-
fileNumber: config.checkFileNumber ? mapToEKYCvalue(config.fileNumberSource ?? "") : false
|
|
1355
|
-
};
|
|
1356
|
-
}
|
|
1357
|
-
/** eKYC group id → the key `getEKYCFields` sets in `EkycVerificationFields`. */
|
|
1331
|
+
/**
|
|
1332
|
+
* eKYC group id → the key `getEKYCFields` sets in `EkycVerificationFields`, in
|
|
1333
|
+
* the order `getEKYCFields` has always written them.
|
|
1334
|
+
*/
|
|
1358
1335
|
const EKYC_GROUP_KEYS = {
|
|
1359
1336
|
name: "name",
|
|
1337
|
+
ssn: "SSN",
|
|
1338
|
+
address: "address",
|
|
1360
1339
|
dateOfBirth: "date of birth",
|
|
1361
1340
|
email: "email",
|
|
1362
1341
|
phone: "phone",
|
|
1363
|
-
|
|
1364
|
-
|
|
1342
|
+
nationality: "nationality",
|
|
1343
|
+
dlNumber: "dlNumber",
|
|
1344
|
+
dlState: "dlState",
|
|
1345
|
+
dlExpireAt: "dlExpireAt",
|
|
1365
1346
|
last4SSN: "last4SSN",
|
|
1366
1347
|
idNumber: "idNum",
|
|
1367
1348
|
idNumber1: "idNum1",
|
|
1368
|
-
nationality: "nationality",
|
|
1369
1349
|
gender: "gender",
|
|
1370
1350
|
panNumber: "panNumber",
|
|
1371
|
-
dlNumber: "dlNumber",
|
|
1372
|
-
dlState: "dlState",
|
|
1373
|
-
dlExpireAt: "dlExpireAt",
|
|
1374
1351
|
idType: "idType",
|
|
1375
1352
|
issueDate: "issueDate",
|
|
1376
1353
|
fileNumber: "fileNumber"
|
|
1377
1354
|
};
|
|
1355
|
+
const RISK_ADDON_PREFIX = "riskAddon:";
|
|
1356
|
+
/**
|
|
1357
|
+
* Each verification field's switches, from its vocabulary group: the config
|
|
1358
|
+
* flags and risk add-ons that turn it on (`enabledBy`, where a risk add-on is
|
|
1359
|
+
* `riskAddon:<id>`), and the config key that names its source (`sourceKey`).
|
|
1360
|
+
*/
|
|
1361
|
+
const FIELD_SWITCHES = Object.entries(EKYC_GROUP_KEYS).flatMap(([id, field]) => {
|
|
1362
|
+
const group = VOCABULARY.entries.find((entry) => entry.type === "group" && entry.id === id);
|
|
1363
|
+
if (!group?.enabledBy?.length || !group.sourceKey) throw new Error(`eKYC group "${id}" has no enabledBy or sourceKey in the vocabulary`);
|
|
1364
|
+
const enabledBy = group.enabledBy;
|
|
1365
|
+
return [{
|
|
1366
|
+
field,
|
|
1367
|
+
flags: enabledBy.filter((flag) => !flag.startsWith(RISK_ADDON_PREFIX)),
|
|
1368
|
+
riskAddons: enabledBy.filter((flag) => flag.startsWith(RISK_ADDON_PREFIX)).map((flag) => flag.slice(10)),
|
|
1369
|
+
sourceKey: group.sourceKey
|
|
1370
|
+
}];
|
|
1371
|
+
});
|
|
1372
|
+
/** Maps raw backend module config to a field-source mapping */
|
|
1373
|
+
function getEKYCFields(config) {
|
|
1374
|
+
const values = config;
|
|
1375
|
+
const riskAddons = config.riskAddons;
|
|
1376
|
+
const fields = {};
|
|
1377
|
+
for (const switches of FIELD_SWITCHES) {
|
|
1378
|
+
const on = switches.flags.some((flag) => values[flag]) || switches.riskAddons.some((addon) => riskAddons?.includes(addon));
|
|
1379
|
+
const source = values[switches.sourceKey];
|
|
1380
|
+
fields[switches.field] = on ? mapToEKYCvalue(typeof source === "string" ? source : "") : false;
|
|
1381
|
+
}
|
|
1382
|
+
return fields;
|
|
1383
|
+
}
|
|
1378
1384
|
/**
|
|
1379
1385
|
* Each verification field's display-mode key in module configuration, from
|
|
1380
1386
|
* the vocabulary's `displayModeKey` on its group.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { S as getDefaultConsentChecks, a as ElectronicSignatureConfig, b as areAllConsented, c as ElectronicSignatureFileDataHolder, d as ElectronicSignatureVariant, f as NAMIRIAL_QES_CONSENT_KEYS, g as QeConsentKey, h as QE_CONSENT_KEYS, i as ConsentKey, m as NamirialQesConsentKey, n as AeConsentKey, p as NAMIRIAL_QES_PROVIDER_CODE, r as ConsentChecks, s as ElectronicSignatureDocument, t as AE_CONSENT_KEYS, u as ElectronicSignatureProviderTerms, x as getConsentKeys } from "./types-D0gekt4U.js";
|
|
2
|
-
import { a as ElectronicSignatureActor, i as createElectronicSignatureManagerFromActor, n as ElectronicSignatureState, o as electronicSignatureMachine, r as createElectronicSignatureManager, t as ElectronicSignatureManager } from "./electronicSignatureManager-
|
|
2
|
+
import { a as ElectronicSignatureActor, i as createElectronicSignatureManagerFromActor, n as ElectronicSignatureState, o as electronicSignatureMachine, r as createElectronicSignatureManager, t as ElectronicSignatureManager } from "./electronicSignatureManager-5tYz-a4o.js";
|
|
3
3
|
export { AE_CONSENT_KEYS, type AeConsentKey, type ConsentChecks, type ConsentKey, type ElectronicSignatureActor, type ElectronicSignatureConfig, type ElectronicSignatureDocument, type ElectronicSignatureFileDataHolder, type ElectronicSignatureManager, type ElectronicSignatureProviderTerms, type ElectronicSignatureState, type ElectronicSignatureVariant, NAMIRIAL_QES_CONSENT_KEYS, NAMIRIAL_QES_PROVIDER_CODE, type NamirialQesConsentKey, QE_CONSENT_KEYS, type QeConsentKey, areAllConsented, createElectronicSignatureManager, createElectronicSignatureManagerFromActor, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BHnxFx7u.esm.js";
|
|
2
2
|
export { AE_CONSENT_KEYS, NAMIRIAL_QES_CONSENT_KEYS, NAMIRIAL_QES_PROVIDER_CODE, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, createElectronicSignatureManagerFromActor, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts}
RENAMED
|
@@ -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, d as DoneActorEvent, g as InputFrom, h as GetConcreteByKey, i as ActorRefFrom, j as StateMachine, m as EventObject, o as AnyActorLogic, p as ErrorActorEvent, r as ActorRef, s as AnyActorRef, t as ActionFunction, 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 { _ as QesTermsResponse, a as ElectronicSignatureConfig, c as ElectronicSignatureFileDataHolder, d as ElectronicSignatureVariant, i as ConsentKey, l as ElectronicSignatureInput, o as ElectronicSignatureContext, r as ConsentChecks, s as ElectronicSignatureDocument, u as ElectronicSignatureProviderTerms, v as SignedDocument, y as UnsignedDocsResponse } from "./types-D0gekt4U.js";
|
|
5
6
|
//#region src/modules/electronic-signature/electronicSignatureStateMachine.d.ts
|
|
6
7
|
declare const electronicSignatureMachine: StateMachine<ElectronicSignatureContext, {
|
|
@@ -1,34 +1,30 @@
|
|
|
1
|
-
import { n as eventModuleNames
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
3
|
+
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
3
4
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
|
-
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-BDuL1wTs.esm.js";
|
|
6
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
7
|
+
import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
8
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
7
9
|
import { t as externalFetch } from "./externalFetch-cUjJYyXj.esm.js";
|
|
8
10
|
//#region src/modules/electronic-signature/electronicSignatureServices.ts
|
|
9
11
|
async function fetchUnsignedDocuments(signal) {
|
|
10
12
|
try {
|
|
11
|
-
|
|
12
|
-
if (!res.ok) throw res;
|
|
13
|
-
return res.data;
|
|
13
|
+
return (await api.get(endpoints.aesUnsignedDocuments, { signal })).data;
|
|
14
14
|
} catch (error) {
|
|
15
15
|
toIncodeApiError(endpoints.aesUnsignedDocuments, error);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
async function fetchSignedDocuments(signal) {
|
|
19
19
|
try {
|
|
20
|
-
|
|
21
|
-
if (!res.ok) throw res;
|
|
22
|
-
return res.data;
|
|
20
|
+
return (await api.get(endpoints.esSignedDocuments, { signal })).data;
|
|
23
21
|
} catch (error) {
|
|
24
22
|
toIncodeApiError(endpoints.esSignedDocuments, error);
|
|
25
23
|
}
|
|
26
24
|
}
|
|
27
25
|
async function fetchQesTerms(languageCode, signal) {
|
|
28
26
|
try {
|
|
29
|
-
|
|
30
|
-
if (!res.ok) throw res;
|
|
31
|
-
return res.data;
|
|
27
|
+
return (await api.post(endpoints.qesTerms, { languageCode }, { signal })).data;
|
|
32
28
|
} catch (error) {
|
|
33
29
|
toIncodeApiError(endpoints.qesTerms, error);
|
|
34
30
|
}
|
|
@@ -48,9 +44,7 @@ async function signDocument(documentRef, variant, signal) {
|
|
|
48
44
|
}
|
|
49
45
|
}
|
|
50
46
|
async function generateUploadUrl(signal) {
|
|
51
|
-
|
|
52
|
-
if (!res.ok) throw new Error(`POST ${endpoints.aesGenerateUploadUrl} failed: ${res.status} ${res.statusText}`);
|
|
53
|
-
return res.data;
|
|
47
|
+
return (await api.post(endpoints.aesGenerateUploadUrl, {}, { signal })).data;
|
|
54
48
|
}
|
|
55
49
|
async function uploadDocumentFile(presignedUrl, data, signal) {
|
|
56
50
|
await externalFetch({
|
package/dist/email.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as EmailState, o as emailMachine, r as createEmailManager, s as EmailConfig, t as EmailManager } from "./emailManager-
|
|
1
|
+
import { n as EmailState, o as emailMachine, r as createEmailManager, s as EmailConfig, t as EmailManager } from "./emailManager-pM7ZPuMa.js";
|
|
2
2
|
export { type EmailConfig, type EmailManager, type EmailState, createEmailManager, emailMachine };
|
package/dist/email.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
2
|
-
import { t as createEmailManager } from "./emailManager-
|
|
1
|
+
import { t as emailMachine } from "./emailStateMachine-C4FouMzc.esm.js";
|
|
2
|
+
import { t as createEmailManager } from "./emailManager-CfvR6pQN.esm.js";
|
|
3
3
|
export { createEmailManager, emailMachine };
|
|
@@ -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 emailMachine } from "./emailStateMachine-C4FouMzc.esm.js";
|
|
4
6
|
import { n as isOtpComplete } from "./otp-D2k3PeSL.esm.js";
|
|
5
7
|
//#region src/modules/email/emailActor.ts
|
|
6
8
|
function createEmailActor(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as ActorRefFrom } from "./spawn-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./Actor-
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
4
|
import { t as OtpValidationErrors } from "./otp-CEWfTj9v.js";
|
|
5
5
|
//#region src/modules/email/types.d.ts
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
2
2
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
3
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-
|
|
5
|
-
import { t as carryAttempts } from "./attemptCarry-
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
|
+
import { t as carryAttempts } from "./attemptCarry-QFQkA3na.esm.js";
|
|
6
6
|
import { n as isOtpComplete, t as computeOtpValidationErrors } from "./otp-D2k3PeSL.esm.js";
|
|
7
7
|
//#region src/modules/email/emailServices.ts
|
|
8
8
|
function getEmailServerFailureReason(error, invalidStatus) {
|
|
@@ -10,9 +10,7 @@ function getEmailServerFailureReason(error, invalidStatus) {
|
|
|
10
10
|
return "serverError";
|
|
11
11
|
}
|
|
12
12
|
async function fetchEmail(signal) {
|
|
13
|
-
|
|
14
|
-
if (!res.ok) throw new Error(`GET ${endpoints.getEmail} failed: ${res.status} ${res.statusText}`);
|
|
15
|
-
return res.data;
|
|
13
|
+
return (await api.get(endpoints.getEmail, { signal })).data;
|
|
16
14
|
}
|
|
17
15
|
async function addEmail(params, signal) {
|
|
18
16
|
try {
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { _ as stateChanged, c as elementClicked, d as foreground, f as moduleClosed, g as screenOpened, l as errorTriggered, m as screenClosed, o as background, p as moduleOpened, s as captureAttemptFinished, u as experimentAssigned, y as getAnalyticsBatcher } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as api } from "./api-DSZSaaWr.esm.js";
|
|
3
|
+
//#region src/internal/events/AnalyticsBatchingService.ts
|
|
4
|
+
const DEFAULT_MAX_BATCH_SIZE = 50;
|
|
5
|
+
const MAX_STATE_BATCH_SIZE = 50;
|
|
6
|
+
const DEFAULT_MAX_BATCH_AGE_MS = 1e3;
|
|
7
|
+
const DEFAULT_MAX_RETRIES = 2;
|
|
8
|
+
const RETRY_BASE_DELAY_MS = 250;
|
|
9
|
+
function isTransientStatus(status) {
|
|
10
|
+
return status === 0 || status >= 500 || status === 408 || status === 429;
|
|
11
|
+
}
|
|
12
|
+
function createAnalyticsBatchingService(options) {
|
|
13
|
+
const { endpoint, authToken, pageLifecycle, timer, apiBaseUrl, apiClient = api, maxBatchSize = DEFAULT_MAX_BATCH_SIZE, maxBatchAgeMs = DEFAULT_MAX_BATCH_AGE_MS, maxRetries = DEFAULT_MAX_RETRIES } = options;
|
|
14
|
+
let buffer = [];
|
|
15
|
+
let stateBuffer = [];
|
|
16
|
+
let stateToken = null;
|
|
17
|
+
let stateBatches = [];
|
|
18
|
+
let stateRequestInFlight = false;
|
|
19
|
+
let started = false;
|
|
20
|
+
let disposed = false;
|
|
21
|
+
let ageTimerHandle = null;
|
|
22
|
+
let unsubscribeLifecycle = null;
|
|
23
|
+
let warnedNullToken = false;
|
|
24
|
+
function clearAgeTimer() {
|
|
25
|
+
if (ageTimerHandle !== null) {
|
|
26
|
+
timer.clearTimeout(ageTimerHandle);
|
|
27
|
+
ageTimerHandle = null;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function armAgeTimerIfNeeded() {
|
|
31
|
+
if (ageTimerHandle === null) ageTimerHandle = timer.setTimeout(() => {
|
|
32
|
+
ageTimerHandle = null;
|
|
33
|
+
flush();
|
|
34
|
+
}, maxBatchAgeMs);
|
|
35
|
+
}
|
|
36
|
+
function dropTokenless() {
|
|
37
|
+
if (!warnedNullToken) {
|
|
38
|
+
warnedNullToken = true;
|
|
39
|
+
console.warn("[AnalyticsBatchingService] Dropping batch: no auth token at flush time.");
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function sendBatch(batch, attempt) {
|
|
43
|
+
let promise;
|
|
44
|
+
try {
|
|
45
|
+
promise = apiClient.post(endpoint, batch, { keepalive: true });
|
|
46
|
+
} catch (error) {
|
|
47
|
+
handleSendError(batch, error, attempt);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
promise.catch((error) => handleSendError(batch, error, attempt));
|
|
51
|
+
}
|
|
52
|
+
function handleSendError(batch, error, attempt) {
|
|
53
|
+
if (disposed) return;
|
|
54
|
+
if (!isTransientStatus(error && typeof error === "object" && "status" in error ? Number(error.status) || 0 : 0)) return;
|
|
55
|
+
if (attempt >= maxRetries) return;
|
|
56
|
+
const delay = RETRY_BASE_DELAY_MS * 2 ** attempt;
|
|
57
|
+
timer.setTimeout(() => {
|
|
58
|
+
if (disposed) return;
|
|
59
|
+
sendBatch(batch, attempt + 1);
|
|
60
|
+
}, delay);
|
|
61
|
+
}
|
|
62
|
+
function flush() {
|
|
63
|
+
if (disposed || buffer.length === 0) return;
|
|
64
|
+
const batch = buffer;
|
|
65
|
+
buffer = [];
|
|
66
|
+
clearAgeTimer();
|
|
67
|
+
if (!authToken()) {
|
|
68
|
+
dropTokenless();
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
sendBatch(batch, 0);
|
|
72
|
+
}
|
|
73
|
+
function syncStateToken() {
|
|
74
|
+
const token = authToken();
|
|
75
|
+
if (token !== stateToken) {
|
|
76
|
+
stateBuffer = [];
|
|
77
|
+
stateBatches = [];
|
|
78
|
+
stateToken = token;
|
|
79
|
+
}
|
|
80
|
+
return token;
|
|
81
|
+
}
|
|
82
|
+
function sendNextStateBatch() {
|
|
83
|
+
if (disposed || !started || stateRequestInFlight || stateBatches.length === 0) return;
|
|
84
|
+
const token = syncStateToken();
|
|
85
|
+
const batch = stateBatches.shift();
|
|
86
|
+
if (!batch || !token) return;
|
|
87
|
+
stateRequestInFlight = true;
|
|
88
|
+
const onSettled = () => {
|
|
89
|
+
stateRequestInFlight = false;
|
|
90
|
+
sendNextStateBatch();
|
|
91
|
+
};
|
|
92
|
+
try {
|
|
93
|
+
apiClient.post(endpoint, batch.events, {
|
|
94
|
+
keepalive: true,
|
|
95
|
+
headers: { "X-Incode-Hardware-Id": batch.token }
|
|
96
|
+
}).then(onSettled, onSettled);
|
|
97
|
+
} catch {
|
|
98
|
+
Promise.resolve().then(onSettled);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
function flushStateChanges() {
|
|
102
|
+
if (disposed) return;
|
|
103
|
+
const token = syncStateToken();
|
|
104
|
+
if (!token || stateBuffer.length === 0) return;
|
|
105
|
+
stateBatches.push({
|
|
106
|
+
events: stateBuffer,
|
|
107
|
+
token
|
|
108
|
+
});
|
|
109
|
+
stateBuffer = [];
|
|
110
|
+
sendNextStateBatch();
|
|
111
|
+
}
|
|
112
|
+
function sendBeacon(batch, token) {
|
|
113
|
+
const url = `${apiBaseUrl().replace(/\/$/, "")}${endpoint}`;
|
|
114
|
+
const body = JSON.stringify({
|
|
115
|
+
token,
|
|
116
|
+
events: batch
|
|
117
|
+
});
|
|
118
|
+
pageLifecycle.sendBeacon(url, body);
|
|
119
|
+
}
|
|
120
|
+
function handlePageHide() {
|
|
121
|
+
if (disposed) return;
|
|
122
|
+
const token = syncStateToken();
|
|
123
|
+
const pendingStates = stateBatches;
|
|
124
|
+
stateBatches = [];
|
|
125
|
+
if (token && stateBuffer.length > 0) pendingStates.push({
|
|
126
|
+
events: stateBuffer,
|
|
127
|
+
token
|
|
128
|
+
});
|
|
129
|
+
stateBuffer = [];
|
|
130
|
+
for (const batch of pendingStates) sendBeacon(batch.events, batch.token);
|
|
131
|
+
if (buffer.length === 0) return;
|
|
132
|
+
const batch = buffer;
|
|
133
|
+
buffer = [];
|
|
134
|
+
clearAgeTimer();
|
|
135
|
+
if (!token) {
|
|
136
|
+
dropTokenless();
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
sendBeacon(batch, token);
|
|
140
|
+
}
|
|
141
|
+
function enqueue(entry) {
|
|
142
|
+
if (disposed) return;
|
|
143
|
+
if (entry.code === "stateChanged") {
|
|
144
|
+
if (!syncStateToken()) return;
|
|
145
|
+
stateBuffer.push(entry);
|
|
146
|
+
if (stateBuffer.length === MAX_STATE_BATCH_SIZE) flushStateChanges();
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
buffer.push(entry);
|
|
150
|
+
if (entry.code === "captureAttemptFinished" || entry.code === "moduleClosed" || entry.code === "errorTriggered" || entry.code === "background") flushStateChanges();
|
|
151
|
+
if (!started) return;
|
|
152
|
+
if (buffer.length >= maxBatchSize) {
|
|
153
|
+
flush();
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
armAgeTimerIfNeeded();
|
|
157
|
+
}
|
|
158
|
+
function start() {
|
|
159
|
+
if (started || disposed) return;
|
|
160
|
+
started = true;
|
|
161
|
+
unsubscribeLifecycle = pageLifecycle.onPageHide(handlePageHide);
|
|
162
|
+
if (buffer.length > 0) flush();
|
|
163
|
+
sendNextStateBatch();
|
|
164
|
+
}
|
|
165
|
+
function dispose() {
|
|
166
|
+
if (disposed) return;
|
|
167
|
+
disposed = true;
|
|
168
|
+
clearAgeTimer();
|
|
169
|
+
unsubscribeLifecycle?.();
|
|
170
|
+
unsubscribeLifecycle = null;
|
|
171
|
+
buffer = [];
|
|
172
|
+
stateBuffer = [];
|
|
173
|
+
stateBatches = [];
|
|
174
|
+
stateToken = null;
|
|
175
|
+
}
|
|
176
|
+
return {
|
|
177
|
+
enqueue,
|
|
178
|
+
start,
|
|
179
|
+
flush,
|
|
180
|
+
flushStateChanges,
|
|
181
|
+
dispose
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region src/internal/events/experimentAssignment.ts
|
|
186
|
+
const assignedExperiments = /* @__PURE__ */ new Set();
|
|
187
|
+
/**
|
|
188
|
+
* Records an `experimentAssigned` interview-event, but only the first time
|
|
189
|
+
* for a given `dedupeKey` (pass the experiment's `storeParam`) since the
|
|
190
|
+
* last `resetExperimentAssignments()` call.
|
|
191
|
+
*/
|
|
192
|
+
function recordExperimentAssignmentOnce(module, dedupeKey, payload, screenName) {
|
|
193
|
+
if (assignedExperiments.has(dedupeKey)) return;
|
|
194
|
+
assignedExperiments.add(dedupeKey);
|
|
195
|
+
experimentAssigned(module, payload, screenName);
|
|
196
|
+
}
|
|
197
|
+
/** Clears the assignment dedup guard. Called from `reset()`. */
|
|
198
|
+
function resetExperimentAssignments() {
|
|
199
|
+
assignedExperiments.clear();
|
|
200
|
+
}
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region src/internal/events/managerInstrumentation.ts
|
|
203
|
+
function stateValueToScreenSegment(value) {
|
|
204
|
+
if (typeof value === "string" || typeof value === "number") {
|
|
205
|
+
const segment = String(value).trim();
|
|
206
|
+
return segment.length > 0 ? segment : void 0;
|
|
207
|
+
}
|
|
208
|
+
if (typeof value !== "object" || value === null) return;
|
|
209
|
+
const entries = Object.entries(value).sort(([left], [right]) => {
|
|
210
|
+
if (left < right) return -1;
|
|
211
|
+
if (left > right) return 1;
|
|
212
|
+
return 0;
|
|
213
|
+
});
|
|
214
|
+
if (entries.length === 0) return;
|
|
215
|
+
const branches = entries.map(([key, nestedValue]) => {
|
|
216
|
+
const trimmedKey = key.trim();
|
|
217
|
+
const nestedSegment = stateValueToScreenSegment(nestedValue);
|
|
218
|
+
if (trimmedKey.length === 0) return nestedSegment;
|
|
219
|
+
if (nestedSegment === void 0) return trimmedKey;
|
|
220
|
+
return `${trimmedKey}.${nestedSegment}`;
|
|
221
|
+
}).filter((branch) => branch !== void 0 && branch.length > 0);
|
|
222
|
+
if (branches.length === 0) return;
|
|
223
|
+
return branches.join("+");
|
|
224
|
+
}
|
|
225
|
+
function buildScreenName(moduleName, screenName) {
|
|
226
|
+
const trimmedModuleName = typeof moduleName === "string" ? moduleName.trim() : "";
|
|
227
|
+
const trimmedScreen = screenName.trim();
|
|
228
|
+
if (trimmedModuleName.length === 0) return trimmedScreen;
|
|
229
|
+
if (trimmedScreen.length === 0) return trimmedModuleName;
|
|
230
|
+
return `${trimmedModuleName}.${trimmedScreen}`;
|
|
231
|
+
}
|
|
232
|
+
function getDefaultManagerScreenName(snapshot) {
|
|
233
|
+
return stateValueToScreenSegment(snapshot.value);
|
|
234
|
+
}
|
|
235
|
+
function getManagerScreenName(moduleName, snapshot, options) {
|
|
236
|
+
const eventScreen = options?.getEventScreenName?.(snapshot);
|
|
237
|
+
if (eventScreen !== void 0) {
|
|
238
|
+
const trimmed = eventScreen.trim();
|
|
239
|
+
return trimmed.length > 0 ? trimmed : void 0;
|
|
240
|
+
}
|
|
241
|
+
const mappedScreen = options?.getScreenName?.(snapshot) ?? getDefaultManagerScreenName(snapshot);
|
|
242
|
+
if (mappedScreen === void 0) return;
|
|
243
|
+
return buildScreenName(moduleName, mappedScreen);
|
|
244
|
+
}
|
|
245
|
+
function isErrorLikeSegment(segment) {
|
|
246
|
+
const lower = segment.toLowerCase();
|
|
247
|
+
return lower === "error" || lower.includes("error") || lower.includes("failed") || lower.includes("failure");
|
|
248
|
+
}
|
|
249
|
+
function getDefaultManagerErrorName(snapshot) {
|
|
250
|
+
const screenSegment = stateValueToScreenSegment(snapshot.value);
|
|
251
|
+
if (screenSegment === void 0) return;
|
|
252
|
+
const trimmedSegment = screenSegment.trim();
|
|
253
|
+
if (trimmedSegment.length === 0) return;
|
|
254
|
+
if (trimmedSegment.toLowerCase() === "error") return "error.unknown";
|
|
255
|
+
if (!isErrorLikeSegment(trimmedSegment)) return;
|
|
256
|
+
return `error.${trimmedSegment}`;
|
|
257
|
+
}
|
|
258
|
+
function createManagerInstrumentation(moduleName, options) {
|
|
259
|
+
const visibilityObserver = options?.visibilityObserver;
|
|
260
|
+
return {
|
|
261
|
+
moduleName,
|
|
262
|
+
onModuleOpened: moduleOpened,
|
|
263
|
+
onModuleClosed: moduleClosed,
|
|
264
|
+
onScreenOpened: screenOpened,
|
|
265
|
+
onScreenClosed: options?.getEventStateName ? (moduleName, screenName) => {
|
|
266
|
+
getAnalyticsBatcher()?.flushStateChanges?.();
|
|
267
|
+
screenClosed(moduleName, screenName);
|
|
268
|
+
} : screenClosed,
|
|
269
|
+
onStateChanged: (moduleName, screenName, stateName) => stateChanged(moduleName, screenName, { stateName }),
|
|
270
|
+
onErrorTriggered: (moduleName, errorName, screenName, payload) => errorTriggered(moduleName, screenName, {
|
|
271
|
+
errorName,
|
|
272
|
+
...payload
|
|
273
|
+
}),
|
|
274
|
+
subscribeVisibility: visibilityObserver ? (onChange) => visibilityObserver.onVisibilityChange(onChange) : void 0,
|
|
275
|
+
getInitialVisibility: visibilityObserver ? () => visibilityObserver.isVisible() : void 0,
|
|
276
|
+
onBackground: visibilityObserver ? background : void 0,
|
|
277
|
+
onForeground: visibilityObserver ? foreground : void 0,
|
|
278
|
+
onElementClicked: (moduleName, screenName, payload) => elementClicked(moduleName, screenName, payload),
|
|
279
|
+
onCaptureAttemptFinished: (moduleName, screenName, payload) => captureAttemptFinished(moduleName, screenName, payload),
|
|
280
|
+
getScreenName: (snapshot) => getManagerScreenName(moduleName, snapshot, {
|
|
281
|
+
getEventScreenName: options?.getEventScreenName,
|
|
282
|
+
getScreenName: options?.getScreenName
|
|
283
|
+
}),
|
|
284
|
+
getStateName: (snapshot) => {
|
|
285
|
+
const stateName = options?.getEventStateName?.(snapshot);
|
|
286
|
+
if (stateName === void 0) return;
|
|
287
|
+
const trimmed = stateName.trim();
|
|
288
|
+
return trimmed.length > 0 ? trimmed : void 0;
|
|
289
|
+
},
|
|
290
|
+
getErrorName: (snapshot) => {
|
|
291
|
+
const mappedError = options?.getErrorName?.(snapshot) ?? getDefaultManagerErrorName(snapshot);
|
|
292
|
+
if (mappedError === void 0) return;
|
|
293
|
+
return buildScreenName(moduleName, mappedError);
|
|
294
|
+
},
|
|
295
|
+
getErrorPayload: (snapshot) => options?.getErrorPayload?.(snapshot)
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
//#endregion
|
|
299
|
+
export { createAnalyticsBatchingService as i, recordExperimentAssignmentOnce as n, resetExperimentAssignments as r, createManagerInstrumentation as t };
|
package/dist/events.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./index-
|
|
1
|
+
import "./index-DHuAkTe0.js";
|
|
2
2
|
//#region src/internal/events/types.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Raw SDK analytics event used by dashboard tracking and custom analytics.
|
|
@@ -51,6 +51,8 @@ declare const eventModuleNames: {
|
|
|
51
51
|
readonly geolocation: "Geolocation";
|
|
52
52
|
readonly ekyb: "eKYB";
|
|
53
53
|
readonly identityReuse: "IDENTITY_REUSE";
|
|
54
|
+
readonly identitySearch: "IDENTITY_SEARCH";
|
|
55
|
+
readonly identityReusePath: "IDENTITY_REUSE_PATH";
|
|
54
56
|
readonly antifraud: "antifraud";
|
|
55
57
|
readonly aeSignature: "AdSign";
|
|
56
58
|
readonly qeSignature: "QSign";
|
|
@@ -66,6 +68,7 @@ declare const eventModuleNames: {
|
|
|
66
68
|
readonly home: "home";
|
|
67
69
|
readonly workflow: "workflow";
|
|
68
70
|
readonly fiscalQr: "FISCAL_QR";
|
|
71
|
+
readonly documentSignature: "DOCUMENT_SIGNATURE";
|
|
69
72
|
};
|
|
70
73
|
declare const eventScreenNames: {
|
|
71
74
|
readonly faceMatch: "FACE_MATCH";
|
package/dist/events.esm.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as subscribeEvent, _ as stateChanged, a as videoSelfieEvents, c as elementClicked, f as moduleClosed, g as screenOpened, h as screenEvent, i as tutorialScreenNamesMapper, m as screenClosed, n as eventModuleNames, p as moduleOpened, r as eventScreenNames, s as captureAttemptFinished, t as cameraScreenNamesMapper, u as experimentAssigned, v as addEvent } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { n as recordExperimentAssignmentOnce } from "./events-CsPmTidH.esm.js";
|
|
2
3
|
export { addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, experimentAssigned, moduleClosed, moduleOpened, recordExperimentAssignmentOnce, screenClosed, screenEvent, screenOpened, stateChanged, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };
|