@incodetech/core 2.4.1-agentic → 2.4.1-agentic.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-bBNquvYn.d.ts} +2 -2
- package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
- package/dist/{multipartRecordingService-DMBxHKS2.esm.js → CameraCompositor-DN7NkJzV.esm.js} +7 -734
- package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
- package/dist/{FaceDetectionProvider-B83VmClw.esm.js → FaceDetectionProvider-BSLpXAGx.esm.js} +11 -12
- package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-C-5M8pP1.d.ts} +2 -2
- package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-BRn0wz8v.d.ts} +2 -2
- package/dist/MultipartRecordingProvider-BfQPSgSO.esm.js +151 -0
- package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-ixfy84ys.d.ts} +2 -2
- package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
- package/dist/{WasmUtilProvider-GTkoJyFY.esm.js → WasmUtilProvider-C_puwvVn.esm.js} +2 -2
- package/dist/WorkerEncoderRecordingProvider-CyCrQnZR.esm.js +80 -0
- package/dist/addressSearch-B_4JYKa-.esm.js +72 -0
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CQ08atTC.esm.js → antifraudManager-BWCVkSu2.esm.js} +2 -2
- package/dist/{antifraudStateMachine-BcsUTTIr.esm.js → antifraudStateMachine-CX9I2f3s.esm.js} +1 -1
- package/dist/{api-BO8JA7Pf.esm.js → api-BSnbg4HO.esm.js} +4 -0
- package/dist/{apiError-CfuIvnUy.esm.js → apiError-Bmwy1Fa7.esm.js} +1 -1
- package/dist/{attemptCarry-BjTJ6bMQ.esm.js → attemptCarry-zQH85Elh.esm.js} +2 -2
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-DvmklBTE.esm.js → authenticationManager-BoiOaB0m.esm.js} +5 -5
- package/dist/{authenticationManager-C-cOki0Y.d.ts → authenticationManager-CISxaY6N.d.ts} +1 -1
- package/dist/{authenticationStateMachine-BL2ptOA0.esm.js → authenticationStateMachine-BMD1JLwr.esm.js} +3 -3
- package/dist/avatar.d.ts +1 -1
- package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
- package/dist/{backCameraStream-C5_NNfUN.esm.js → backCameraStream-DS1oDiUq.esm.js} +10 -65
- package/dist/{browser-pQZA35G2-DtkAf6sn.esm.js → browser-pQZA35G2-PIj2uGBm.esm.js} +1 -1
- package/dist/camera.d.ts +2 -2
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-CM0fuqDC.esm.js → certificateIssuanceManager-DzDuQTsK.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-kksIUOPD.esm.js → certificateIssuanceStateMachine-BAOYLACb.esm.js} +2 -2
- package/dist/{connectivity-HSl0diCx.esm.js → connectivity-BCuEoQ-n.esm.js} +2 -21
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-_q9yJUku.d.ts → consentManager-7aHaehwF.d.ts} +5 -5
- package/dist/{consentManager-CBwFozhv.esm.js → consentManager-DFSKQTcR.esm.js} +2 -2
- package/dist/{consentStateMachine-CpmRAcr2.esm.js → consentStateMachine-4nZIH2O8.esm.js} +1 -1
- package/dist/{cpf-uAZTPUBy.esm.js → cpf-BIADjddF.esm.js} +1 -25
- package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-BimBTONm.d.ts} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-64O8t10a.esm.js → crossDocumentDataMatchManager-D7ka2qOC.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-CLgJQcx0.esm.js → curpValidationManager-BVTt7IgC.esm.js} +2 -2
- package/dist/{curpValidationManager-CXpFE-Mv.d.ts → curpValidationManager-DEqTUWdu.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-Bx9YhVkJ.esm.js → curpValidationStateMachine-FB_MRbZQ.esm.js} +2 -2
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-DWt_0YtJ.esm.js → customFieldsManager-gbsq53p6.esm.js} +2 -2
- package/dist/{customWatchlistManager-D8o-2Nej.esm.js → customWatchlistManager-50APwk4Z.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-Sbi6DIcK.esm.js → customWatchlistStateMachine-CpEVPzuT.esm.js} +1 -1
- package/dist/{deepsightService-twg3bXqY.esm.js → deepsightLoader-BKCT8UT1.esm.js} +34 -29
- package/dist/definitionSource-BHNxbuiv.esm.js +184 -0
- package/dist/{desktopCameraElection-kHY2IDJi.esm.js → desktopCameraElection-Dvvw7PRY.esm.js} +5 -5
- package/dist/document-capture.d.ts +3 -3
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-CMSC_Mhd.esm.js → documentCaptureManager-BG5TuqJz.esm.js} +3 -2
- package/dist/{documentCaptureManager-6tnnDkMX.d.ts → documentCaptureManager-DDfviFg0.d.ts} +25 -4
- package/dist/{documentCaptureStateMachine-BCwD5Rto.esm.js → documentCaptureStateMachine-C7PW_Ah9.esm.js} +67 -26
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DU6W1e20.esm.js → dynamicFormsManager-B0bpHhhJ.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-C8Z7k3vo.esm.js → dynamicFormsStateMachine-2ZHyejBc.esm.js} +2 -2
- package/dist/ekyb.d.ts +4 -4
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-TB6ZG5lX.d.ts → ekybManager-BLOkwmWO.d.ts} +2 -2
- package/dist/{ekybManager-TGfqyjuu.esm.js → ekybManager-P9mC7W9J.esm.js} +2 -2
- package/dist/{ekybStateMachine-DBgFuEPK.esm.js → ekybStateMachine-C7HKaeVr.esm.js} +7 -3
- package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
- package/dist/ekyc-prefill.d.ts +17 -0
- package/dist/ekyc-prefill.esm.js +3 -0
- package/dist/ekyc.d.ts +3 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-C2cgG2Pl.esm.js → ekycManager-CeeJoRFY.esm.js} +2 -2
- package/dist/{ekycManager-BSQteIfC.d.ts → ekycManager-q1fos6IY.d.ts} +2 -1
- package/dist/ekycPrefillManager-C6BFFKxc.esm.js +102 -0
- package/dist/ekycPrefillManager-PPGVZbWk.d.ts +565 -0
- package/dist/ekycPrefillStateMachine-Dku90kZL.esm.js +686 -0
- package/dist/ekycRules-BLX7Elcb.esm.js +319 -0
- package/dist/{ekycStateMachine-CuNF7z4O.esm.js → ekycStateMachine-DBTczgGE.esm.js} +719 -596
- package/dist/{ekycUtils-BFncpC4F.esm.js → ekycUtils-Dcff8BOD.esm.js} +103 -14
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-C7pqXsRm.esm.js → electronicSignatureManager-BKQuhJm_.esm.js} +4 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-FH_CP0cT.esm.js → emailManager-CGmKbsBL.esm.js} +2 -2
- package/dist/{emailStateMachine-Cx-uTaBV.esm.js → emailStateMachine-CGY1UGs2.esm.js} +2 -2
- package/dist/{events-CQteqXfy.esm.js → events-C7h7oaTE.esm.js} +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +20 -18
- package/dist/extensibility.esm.js +37 -35
- package/dist/{externalFetch-CQY41QT1.esm.js → externalFetch-cUjJYyXj.esm.js} +1 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-C-xKdj-d.d.ts → faceCaptureManagerFactory-BVwVGa3z.d.ts} +7 -7
- package/dist/{faceCaptureManagerFactory-CBm05KnT.esm.js → faceCaptureManagerFactory-ClFsByZc.esm.js} +4 -4
- package/dist/{faceCaptureSetup-BQjCbL51.esm.js → faceCaptureSetup-9hv5GC_H.esm.js} +12 -403
- package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-BZtEw6bB.d.ts} +9 -3
- package/dist/{faceMatchManager-B2zp7yP4.esm.js → faceMatchManager-CRe7Nvm6.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-ByTMQCUC.esm.js → faceMatchStateMachine-EX9QhxFE.esm.js} +28 -14
- package/dist/{feature-management-DjAG5lsJ.esm.js → feature-management-CmKTG_T5.esm.js} +35 -21
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-CC0vKmpf.esm.js → fieldComparisonManager-DuosZJso.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Be-r4oZj.esm.js → fiscalQrManager-ji0qDaTW.esm.js} +3 -3
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +33 -18
- package/dist/flow.esm.js +82 -17
- package/dist/{flowCompletionService-ChMU2v79.esm.js → flowCompletionService-DvcH16XO.esm.js} +24 -3
- package/dist/{flowServices-g2tVWsJl.esm.js → flowServices-Ca2vKNt2.esm.js} +84 -139
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DLbvZwUB.esm.js → geolocationManager-CiG32lIm.esm.js} +2 -2
- package/dist/{geolocationStateMachine-CAJVongM.esm.js → geolocationStateMachine-5rnTEOuw.esm.js} +3 -3
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-CkX9TEkh.esm.js → governmentValidationManager-BivVZNVe.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-PTPCP26N.esm.js → governmentValidationStateMachine-CeSDNgha.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +2 -2
- package/dist/id-ocr.esm.js +3 -19
- package/dist/id-selfie-flow.d.ts +3 -3
- package/dist/id-selfie-flow.esm.js +10 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +4 -4
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-MSQoqScU.esm.js → idCaptureDefaults-DBnOC28H.esm.js} +3 -3
- package/dist/{idCaptureManager-zZdTcpG1.esm.js → idCaptureManager-B5xqok0L.esm.js} +9 -8
- package/dist/{idCaptureManager-DzTfQ1Am.d.ts → idCaptureManager-CG8zbAp0.d.ts} +10 -8
- package/dist/{idCaptureServices-8OHinO0N.esm.js → idCaptureServices-BIF_7rub.esm.js} +27 -196
- package/dist/{idCaptureStateMachine-B3G6XoDG.esm.js → idCaptureStateMachine-B5cfgKvn.esm.js} +50 -22
- package/dist/idOcrCpfUtils-Nfln1Psb.esm.js +18 -0
- package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-B5xeI2lg.d.ts} +3 -3
- package/dist/{idOcrManager-B64-fjWg.esm.js → idOcrManager-DNbVTMIu.esm.js} +2 -2
- package/dist/{idOcrStateMachine-B1aZnobs.esm.js → idOcrStateMachine-MAGnpWkb.esm.js} +8 -7
- package/dist/{idVerificationManager-_Kebv-Ue.esm.js → idVerificationManager-BEAkamNm.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-DQn6c84z.esm.js → idVerificationStateMachine-D5mBN2Ye.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-DDXkNVZi.esm.js → identityReuseManager-M8-BTjar.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-Bcnkbjf8.esm.js → identityReuseStateMachine-D5bXgw9h.esm.js} +1 -1
- package/dist/{index-DEfwds5y.d.ts → index-Btj1EhiM.d.ts} +43 -19
- package/dist/{index-DMDAk85K.d.ts → index-CSPOoqah.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-CXIBwBeE.esm.js → invokeOnCaptureCallback-C1-j4fsq.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +3 -0
- package/dist/kyb-checks.esm.js +3 -0
- package/dist/kybChecksManager-CblEL97E.d.ts +95 -0
- package/dist/kybChecksManager-CnqwgKoV.esm.js +89 -0
- package/dist/kybChecksStateMachine-Be41K_NS.esm.js +719 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-xx3mY-xw.d.ts → mandatoryConsentManager-CYOJd_IZ.d.ts} +20 -11
- package/dist/{mandatoryConsentManager-43W5d_8G.esm.js → mandatoryConsentManager-LFhUlLvO.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-CVlgdlnt.esm.js → mandatoryConsentStateMachine-DTSyDqQs.esm.js} +11 -5
- package/dist/mediaRecorderOptions-B9-IEVtV.esm.js +70 -0
- package/dist/multipartRecordingService-CCiRpByl.esm.js +407 -0
- package/dist/{permissionGuards-B3OPL8Si.esm.js → permissionGuards-DjQUR1du.esm.js} +1 -1
- package/dist/{permissionServices-DnBAN_hW.esm.js → permissionServices-CZpORUWY.esm.js} +8 -6
- package/dist/phone.esm.js +2 -2
- package/dist/phoneFormat-DEpESpz2.esm.js +87 -0
- package/dist/{phoneManager-C6jut_pz.esm.js → phoneManager-C-qD3p3N.esm.js} +3 -3
- package/dist/phoneServices-BdR1nmSO.esm.js +77 -0
- package/dist/{phoneStateMachine-T1-drWfG.esm.js → phoneStateMachine-2FMTdjtJ.esm.js} +20 -60
- package/dist/{processFaceMatch-BWme3kVV.esm.js → processFaceMatch-B1YnoBer.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/recordingService-BVSCo0ac.esm.js +397 -0
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-BJXC6Kx9.esm.js → redirectToMobileManager-CqyDfDxs.esm.js} +3 -3
- package/dist/{redirectToMobileStateMachine-BBMAc2Gb.esm.js → redirectToMobileStateMachine-CXqfo2Gd.esm.js} +40 -22
- package/dist/resolveForm-f9PhUo9j.esm.js +143 -0
- package/dist/{runChildModule-DPHTqSdF.esm.js → runChildModule-BmteMhR7.esm.js} +2 -2
- package/dist/{sdkVersion-C3_P-Qbq.esm.js → sdkVersion-KZROt6l3.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-BL0BLMnp.esm.js → selfieErrorUtils-fqxp645p.esm.js} +1 -1
- package/dist/{selfieManager-Cbliomv7.esm.js → selfieManager-A-n3k9Tu.esm.js} +5 -5
- package/dist/{selfieManager-BMmpUii2.d.ts → selfieManager-DREuBhXZ.d.ts} +1 -1
- package/dist/{selfieStateMachine-B5m_Kn0O.esm.js → selfieStateMachine-48PKdKrw.esm.js} +3 -3
- package/dist/{session-DAaAewMX.esm.js → session-D0DWDKp9.esm.js} +4 -4
- package/dist/session.d.ts +2 -2
- package/dist/session.esm.js +6 -6
- package/dist/{sessionInitializer-CWFT4dfw.esm.js → sessionInitializer-I92b2dmL.esm.js} +94 -24
- package/dist/{setup-CDAKwTr7.esm.js → setup-BpjzWqR1.esm.js} +25 -27
- package/dist/{setup-D9qt8YVU.d.ts → setup-CG6oLkAa.d.ts} +2 -2
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-BeEVCcsC.esm.js → signatureManager-M9vQBj19.esm.js} +2 -2
- package/dist/{signatureStateMachine-_1c1vSid.esm.js → signatureStateMachine-0_frzAN5.esm.js} +1 -1
- package/dist/{stats-BpMz-hTP.esm.js → stats-C2sigf9p.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/step-up.d.ts +378 -0
- package/dist/step-up.esm.js +639 -0
- package/dist/textRules-D4NRinKY.d.ts +41 -0
- package/dist/{tri-BajQnjbf.esm.js → tri-DaUNvo-o.esm.js} +29 -34
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-Df5eKLsY.esm.js +2165 -0
- package/dist/tri.esm.js +2 -2
- package/dist/{trueSightService-BujtUIW6.esm.js → trueSightService-DHYTBCIn.esm.js} +4 -4
- package/dist/trust-graph.esm.js +1 -1
- package/dist/types-B-PIc0en.d.ts +115 -0
- package/dist/{types-C397LhmN.d.ts → types-BgRHw-dR.d.ts} +1 -1
- package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
- package/dist/{types-xEEWCx1j.d.ts → types-BqlZSoZ-.d.ts} +5 -5
- package/dist/types-CTaL0XJz.d.ts +80 -0
- package/dist/{types-e8fCsvvk.d.ts → types-Cbm9J2yF.d.ts} +1 -1
- package/dist/{types--3HDl2SF.d.ts → types-CgihAhT_.d.ts} +3 -3
- package/dist/{types-ZTZelfbM.d.ts → types-CyNndVAT.d.ts} +14 -6
- package/dist/{types-B2FK_wYb.d.ts → types-DEa3taWc.d.ts} +9 -41
- package/dist/{types-PTZHRhGX.d.ts → types-P9LzsfRo.d.ts} +3 -2
- package/dist/{types-DuD8TRJU.d.ts → types-TisHEbBg.d.ts} +12 -4
- package/dist/types-kLsU6Jkt.d.ts +6 -0
- package/dist/{urlUtils-eYiyWjh0.esm.js → urlUtils-B2wagB5v.esm.js} +14 -1
- package/dist/usStates-CwOQ2kAx.esm.js +209 -0
- package/dist/video-selfie.d.ts +5 -4
- package/dist/video-selfie.esm.js +9 -7
- package/dist/{videoSelfieCameraWarmer-DjkPpoj_.esm.js → videoSelfieCameraWarmer-CTOpqhov.esm.js} +16 -14
- package/dist/{videoSelfieStepDetector-RfSmlFFW.d.ts → videoSelfieStepDetector-4XE2QI5q.d.ts} +4 -4
- package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
- package/dist/{warmup-BkfxQZsC.esm.js → warmup-9iKKNNuW.esm.js} +69 -20
- package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
- package/dist/wasm.d.ts +9 -3
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-BhU5H2oR.esm.js → wasmDsFlagSync-lRIgn5Ic.esm.js} +1 -1
- package/dist/{wasmWebClient-DTj9auyA.esm.js → wasmWebClient-C3v3s_4H.esm.js} +34 -19
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CVay6-9A.esm.js → watchlistForBusinessManager-C1S5y5yj.esm.js} +2 -2
- package/dist/{watchlistForBusinessStateMachine-DA6K5na4.esm.js → watchlistForBusinessStateMachine-Bj_hnoK5.esm.js} +1 -1
- package/dist/{watchlistManager-B8gQ_rw3.esm.js → watchlistManager-BpegtZbc.esm.js} +2 -2
- package/dist/{watchlistStateMachine-CSi_ZhtT.esm.js → watchlistStateMachine-Bgkh1gra.esm.js} +1 -1
- package/dist/workflow.d.ts +226 -41
- package/dist/workflow.esm.js +163 -67
- package/package.json +21 -5
- package/dist/addressSearch-41sMcnJk.esm.js +0 -604
- package/dist/deepsightLoader-DMxtowCm.esm.js +0 -33
- package/dist/tri.esm-CzTNi5Q_.esm.js +0 -3826
- package/dist/types-D9r3zRfY.d.ts +0 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
2
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
3
|
import "./Actor-DpTj5PFb.js";
|
|
4
|
-
import {
|
|
5
|
-
import { i as EkybFormValues, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-
|
|
4
|
+
import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
|
|
5
|
+
import { i as EkybFormValues, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BgRHw-dR.js";
|
|
6
6
|
//#region src/modules/ekyb/ekybStateMachine.d.ts
|
|
7
7
|
declare const ekybMachine: any;
|
|
8
8
|
type EkybMachine = typeof ekybMachine;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
4
|
+
import { t as ekybMachine } from "./ekybStateMachine-C7HKaeVr.esm.js";
|
|
5
5
|
//#region src/modules/ekyb/ekybActor.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates and starts an eKYB actor.
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
-
import {
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
|
|
2
|
+
import { n as getFlow } from "./flowServices-Ca2vKNt2.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
|
-
import { a as
|
|
5
|
+
import { a as sortModulesByOrder, c as ALL_COUNTRIES, d as FIELD_ORDER, i as requiresAddressValidation, m as isSupportedCountry, n as hasAtLeastOneAddressField, o as toEkybConfig, p as UBO_FIELD_LABELS, r as isFieldOptional, s as ADDRESS_FIELDS, u as FIELD_NAME_MAPPING } from "./ekybUtils-Cw8Ta9Qi.esm.js";
|
|
6
|
+
import { t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
6
7
|
import { n as requiresCnpjValidation, r as validateCNPJ } from "./cnpj-Co1ottYN.esm.js";
|
|
8
|
+
import { a as getPostalCodeMaxLength, c as fillFromSuggestion, i as getPostalCodeErrorKey, l as getStreetLevelErrorForSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as STREET_LEVEL_REQUIRED_ERROR, t as createBundledDefinitionSource } from "./definitionSource-BHNxbuiv.esm.js";
|
|
9
|
+
import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-f9PhUo9j.esm.js";
|
|
10
|
+
import { r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-B_4JYKa-.esm.js";
|
|
7
11
|
//#region src/modules/ekyb/ekybValidators.ts
|
|
8
12
|
const buildPostalCodeParams = (country) => {
|
|
9
13
|
const fixedLen = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
|
+
//#region src/modules/ekyb/ekybConstants.ts
|
|
3
|
+
/**
|
|
4
|
+
* Countries available in all environments.
|
|
5
|
+
* Sorted alphabetically by display name.
|
|
6
|
+
*/
|
|
7
|
+
const SUPPORTED_COUNTRIES = [
|
|
8
|
+
"BR",
|
|
9
|
+
"CN",
|
|
10
|
+
"FR",
|
|
11
|
+
"DE",
|
|
12
|
+
"IL",
|
|
13
|
+
"IT",
|
|
14
|
+
"MX",
|
|
15
|
+
"ES",
|
|
16
|
+
"GB",
|
|
17
|
+
"US"
|
|
18
|
+
];
|
|
19
|
+
/**
|
|
20
|
+
* Additional countries available only in dev/staging environments.
|
|
21
|
+
*/
|
|
22
|
+
const DEV_ONLY_COUNTRIES = [
|
|
23
|
+
"CM",
|
|
24
|
+
"KE",
|
|
25
|
+
"NG"
|
|
26
|
+
];
|
|
27
|
+
/**
|
|
28
|
+
* Union of all recognized country codes (prod + dev).
|
|
29
|
+
*/
|
|
30
|
+
const ALL_COUNTRIES = [...SUPPORTED_COUNTRIES, ...DEV_ONLY_COUNTRIES];
|
|
31
|
+
const ALL_COUNTRIES_SET = new Set(ALL_COUNTRIES);
|
|
32
|
+
function isSupportedCountry(code) {
|
|
33
|
+
return ALL_COUNTRIES_SET.has(code);
|
|
34
|
+
}
|
|
35
|
+
const FIELD_ORDER = [
|
|
36
|
+
"name-user_input",
|
|
37
|
+
"taxId-user_input",
|
|
38
|
+
"street-user_input",
|
|
39
|
+
"houseNo-user_input",
|
|
40
|
+
"address2-user_input",
|
|
41
|
+
"city-user_input",
|
|
42
|
+
"state-user_input",
|
|
43
|
+
"postalCode-user_input"
|
|
44
|
+
];
|
|
45
|
+
const FIELD_NAME_MAPPING = {
|
|
46
|
+
"name-user_input": "businessName",
|
|
47
|
+
"street-user_input": "street",
|
|
48
|
+
"houseNo-user_input": "houseNo",
|
|
49
|
+
"address2-user_input": "addressLine2",
|
|
50
|
+
"city-user_input": "city",
|
|
51
|
+
"state-user_input": "state",
|
|
52
|
+
"postalCode-user_input": "postalCode",
|
|
53
|
+
"taxId-user_input": "taxId"
|
|
54
|
+
};
|
|
55
|
+
const BUSINESS_NAME_OPTIONAL_COUNTRIES = [];
|
|
56
|
+
const ADDRESS_FULLY_OPTIONAL_COUNTRIES = [
|
|
57
|
+
"BR",
|
|
58
|
+
"GB",
|
|
59
|
+
"FR"
|
|
60
|
+
];
|
|
61
|
+
const ADDRESS_FIELDS = [
|
|
62
|
+
"street",
|
|
63
|
+
"houseNo",
|
|
64
|
+
"addressLine2",
|
|
65
|
+
"city",
|
|
66
|
+
"state",
|
|
67
|
+
"postalCode"
|
|
68
|
+
];
|
|
69
|
+
const ALL_COUNTRIES_OPTIONAL_FIELDS = ["ubo"];
|
|
70
|
+
const UBO_FIELD_LABELS = {
|
|
71
|
+
name: "ekyb.uboName",
|
|
72
|
+
surname: "ekyb.uboSurname"
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/modules/ekyb/ekybUtils.ts
|
|
76
|
+
var ekybUtils_exports = /* @__PURE__ */ __exportAll({
|
|
77
|
+
getFieldName: () => getFieldName,
|
|
78
|
+
hasAtLeastOneAddressField: () => hasAtLeastOneAddressField,
|
|
79
|
+
isFieldOptional: () => isFieldOptional,
|
|
80
|
+
requiresAddressValidation: () => requiresAddressValidation,
|
|
81
|
+
sortModulesByOrder: () => sortModulesByOrder,
|
|
82
|
+
toEkybConfig: () => toEkybConfig
|
|
83
|
+
});
|
|
84
|
+
/**
|
|
85
|
+
* Normalizes any supported eKYB config input into a manager-ready `EkybConfig`.
|
|
86
|
+
*
|
|
87
|
+
* Accepts either:
|
|
88
|
+
* - A manager-ready `EkybConfig` (with `flowId` or `verificationFields`) →
|
|
89
|
+
* returned unchanged.
|
|
90
|
+
* - A raw backend `EkybFlowConfig` (with `*Source` companions) → stripped to
|
|
91
|
+
* the four `check*` fields the manager consumes.
|
|
92
|
+
*
|
|
93
|
+
* Idempotent: `toEkybConfig(toEkybConfig(x))` equals `toEkybConfig(x)`.
|
|
94
|
+
*/
|
|
95
|
+
function toEkybConfig(config) {
|
|
96
|
+
if (config.flowId || config.verificationFields) return config;
|
|
97
|
+
return {
|
|
98
|
+
checkBusinessName: config.checkBusinessName,
|
|
99
|
+
checkAddress: config.checkAddress,
|
|
100
|
+
checkTaxId: config.checkTaxId,
|
|
101
|
+
checkUniqueBeneficialOwner: config.checkUniqueBeneficialOwner
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
/** Maps module names (e.g. 'name-user_input') to form field names (e.g. 'businessName') */
|
|
105
|
+
function getFieldName(moduleName) {
|
|
106
|
+
return FIELD_NAME_MAPPING[moduleName] ?? moduleName;
|
|
107
|
+
}
|
|
108
|
+
/** Sorts modules based on a custom order; items not in order maintain relative position */
|
|
109
|
+
function sortModulesByOrder(modules, customOrder) {
|
|
110
|
+
return [...modules].sort((a, b) => {
|
|
111
|
+
const indexA = customOrder.indexOf(a);
|
|
112
|
+
const indexB = customOrder.indexOf(b);
|
|
113
|
+
if (indexA !== -1 && indexB !== -1) return indexA - indexB;
|
|
114
|
+
if (indexA !== -1) return -1;
|
|
115
|
+
if (indexB !== -1) return 1;
|
|
116
|
+
return 0;
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
/** Determines if a field is optional for the given country */
|
|
120
|
+
function isFieldOptional(fieldName, countryCode) {
|
|
121
|
+
if (ALL_COUNTRIES_OPTIONAL_FIELDS.includes(fieldName)) return true;
|
|
122
|
+
if (fieldName === "businessName") return BUSINESS_NAME_OPTIONAL_COUNTRIES.includes(countryCode);
|
|
123
|
+
if (fieldName === "addressLine2") return true;
|
|
124
|
+
if (ADDRESS_FIELDS.includes(fieldName)) return false;
|
|
125
|
+
if (fieldName === "taxId") return false;
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
128
|
+
/** Checks if at least one address field has a non-empty value */
|
|
129
|
+
function hasAtLeastOneAddressField(formData) {
|
|
130
|
+
return ADDRESS_FIELDS.some((field) => {
|
|
131
|
+
const value = formData[field];
|
|
132
|
+
return value !== void 0 && value.trim() !== "";
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
/** Returns false for countries where address is fully optional */
|
|
136
|
+
function requiresAddressValidation(countryCode) {
|
|
137
|
+
return !ADDRESS_FULLY_OPTIONAL_COUNTRIES.includes(countryCode);
|
|
138
|
+
}
|
|
139
|
+
//#endregion
|
|
140
|
+
export { sortModulesByOrder as a, ALL_COUNTRIES as c, FIELD_ORDER as d, SUPPORTED_COUNTRIES as f, requiresAddressValidation as i, DEV_ONLY_COUNTRIES as l, isSupportedCountry as m, hasAtLeastOneAddressField as n, toEkybConfig as o, UBO_FIELD_LABELS as p, isFieldOptional as r, ADDRESS_FIELDS as s, ekybUtils_exports as t, FIELD_NAME_MAPPING as u };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { a as EkycFormValues, c as EkycValidationErrors, s as EkycValidationError } from "./types-DEa3taWc.js";
|
|
2
|
+
import { a as EkycPrefillFieldDef, c as EkycPrefillModuleConfig, i as EkycPrefillErrorKind, l as EkycPrefillServedField, n as EkycPrefillConfigField, s as EkycPrefillInputFormat, t as EkycPrefillConfig } from "./types-B-PIc0en.js";
|
|
3
|
+
import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-PPGVZbWk.js";
|
|
4
|
+
//#region src/modules/ekyc-prefill/ekycPrefillConfig.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Normalizes the served `EKYC_PREFILL` configuration. Idempotent, so a
|
|
7
|
+
* configuration that is already normalized passes through unchanged.
|
|
8
|
+
*
|
|
9
|
+
* - `check` and `mandatory` are `true` only when served as `true`; a `null`
|
|
10
|
+
* check hides the field.
|
|
11
|
+
* - `fields` stays `undefined` when the configuration has no `fields` array:
|
|
12
|
+
* the flat dashboard shape, which the module can't render.
|
|
13
|
+
* - `source`, `displayMode` and other per-field keys are dropped.
|
|
14
|
+
*/
|
|
15
|
+
declare function toEkycPrefillConfig(raw: EkycPrefillModuleConfig | EkycPrefillConfig | undefined): EkycPrefillConfig;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { type EkycPrefillAnyOfState, type EkycPrefillClosedState, type EkycPrefillConfig, type EkycPrefillConfigField, type EkycPrefillErrorKind, type EkycPrefillErrorState, type EkycPrefillFieldDef, type EkycValidationError as EkycPrefillFieldError, type EkycValidationErrors as EkycPrefillFieldErrors, type EkycPrefillFinishedState, type EkycPrefillFormState, type EkycPrefillIdleState, type EkycPrefillInputFormat, type EkycPrefillLimitReachedState, type EkycPrefillManager, type EkycPrefillMisconfiguredState, type EkycPrefillModuleConfig, type EkycPrefillServedField, type EkycPrefillState, type EkycPrefillSubmittingState, type EkycFormValues as EkycPrefillValues, createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { i as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-Dku90kZL.esm.js";
|
|
2
|
+
import { t as createEkycPrefillManager } from "./ekycPrefillManager-C6BFFKxc.esm.js";
|
|
3
|
+
export { createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
|
package/dist/ekyc.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
1
|
+
import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
|
|
2
|
+
import { c as EkycValidationErrors, i as EkycFieldDisplayMode, n as EkycDisplayModes, o as EkycModuleConfig, s as EkycValidationError, t as EkycConfig } from "./types-DEa3taWc.js";
|
|
3
|
+
import { n as EkycState, o as ekycMachine, r as createEkycManager, t as EkycManager } from "./ekycManager-q1fos6IY.js";
|
|
3
4
|
//#region src/modules/ekyc/ekycUtils.d.ts
|
|
4
5
|
/**
|
|
5
6
|
* Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as createEkycManager } from "./ekycManager-
|
|
1
|
+
import { t as ekycMachine } from "./ekycStateMachine-DBTczgGE.esm.js";
|
|
2
|
+
import { l as toEkycConfig } from "./ekycUtils-Dcff8BOD.esm.js";
|
|
3
|
+
import { t as createEkycManager } from "./ekycManager-CeeJoRFY.esm.js";
|
|
4
4
|
export { createEkycManager, ekycMachine, toEkycConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
4
|
+
import { t as ekycMachine } from "./ekycStateMachine-DBTczgGE.esm.js";
|
|
5
5
|
//#region src/modules/ekyc/ekycActor.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates and starts an eKYC actor.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
2
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
3
|
import "./Actor-DpTj5PFb.js";
|
|
4
|
-
import {
|
|
4
|
+
import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
|
|
5
|
+
import { a as EkycFormValues, c as EkycValidationErrors, r as EkycFieldDef, t as EkycConfig } from "./types-DEa3taWc.js";
|
|
5
6
|
//#region src/modules/ekyc/ekycStateMachine.d.ts
|
|
6
7
|
declare const ekycMachine: any;
|
|
7
8
|
type EkycMachine = typeof ekycMachine;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
2
|
+
import { n as isAnyOfMissing, r as validateForm, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-Dku90kZL.esm.js";
|
|
3
|
+
//#region src/modules/ekyc-prefill/ekycPrefillActor.ts
|
|
4
|
+
/** Creates and starts an eKYC Pre-fill actor, idle until `LOAD`. */
|
|
5
|
+
function createEkycPrefillActor(options = {}) {
|
|
6
|
+
return createActor(ekycPrefillMachine, { input: { config: options.config } }).start();
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/modules/ekyc-prefill/ekycPrefillManager.ts
|
|
10
|
+
function mapState(snapshot) {
|
|
11
|
+
const typedSnapshot = snapshot;
|
|
12
|
+
const { context } = typedSnapshot;
|
|
13
|
+
if (typedSnapshot.matches("form") && context.prepared) {
|
|
14
|
+
const { prepared, values, invalidFormats } = context;
|
|
15
|
+
const canSubmit = Object.keys(validateForm(prepared, values, invalidFormats)).length === 0 && !isAnyOfMissing(prepared, values);
|
|
16
|
+
return {
|
|
17
|
+
status: "form",
|
|
18
|
+
country: prepared.country,
|
|
19
|
+
fields: prepared.fields,
|
|
20
|
+
values,
|
|
21
|
+
errors: context.errors,
|
|
22
|
+
anyOf: prepared.anyOf && {
|
|
23
|
+
...prepared.anyOf,
|
|
24
|
+
showError: context.anyOfError
|
|
25
|
+
},
|
|
26
|
+
submitError: context.submitError,
|
|
27
|
+
canSubmit
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
if (typedSnapshot.matches("submitting")) return { status: "submitting" };
|
|
31
|
+
if (typedSnapshot.matches("error")) return {
|
|
32
|
+
status: "error",
|
|
33
|
+
errorKind: context.errorKind,
|
|
34
|
+
errorMessage: context.errorMessage
|
|
35
|
+
};
|
|
36
|
+
if (typedSnapshot.matches("limitReached")) return { status: "limitReached" };
|
|
37
|
+
if (typedSnapshot.matches("misconfigured")) return { status: "misconfigured" };
|
|
38
|
+
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
39
|
+
if (typedSnapshot.matches("closed")) return { status: "closed" };
|
|
40
|
+
return { status: "idle" };
|
|
41
|
+
}
|
|
42
|
+
function createApi({ actor, trackElementClicked }) {
|
|
43
|
+
return {
|
|
44
|
+
/** Builds the form from the configuration, or finishes at once when the backend runs the lookup itself. */
|
|
45
|
+
load() {
|
|
46
|
+
actor.send({ type: "LOAD" });
|
|
47
|
+
},
|
|
48
|
+
/**
|
|
49
|
+
* Sets a field's value, formatted as typed, and clears its error. Pass
|
|
50
|
+
* `isValid: false` when the input itself knows the value is malformed
|
|
51
|
+
* (a phone number).
|
|
52
|
+
*/
|
|
53
|
+
setField(name, value, isValid) {
|
|
54
|
+
actor.send({
|
|
55
|
+
type: "SET_FIELD",
|
|
56
|
+
name,
|
|
57
|
+
value,
|
|
58
|
+
isValid
|
|
59
|
+
});
|
|
60
|
+
},
|
|
61
|
+
/** Validates one field, typically when it loses focus. */
|
|
62
|
+
validateField(name) {
|
|
63
|
+
actor.send({
|
|
64
|
+
type: "VALIDATE_FIELD",
|
|
65
|
+
name
|
|
66
|
+
});
|
|
67
|
+
},
|
|
68
|
+
/** Validates the form and, when it passes, runs the lookup. */
|
|
69
|
+
submit() {
|
|
70
|
+
trackElementClicked?.("submit");
|
|
71
|
+
actor.send({ type: "SUBMIT" });
|
|
72
|
+
},
|
|
73
|
+
/** Repeats the lookup that could not run. */
|
|
74
|
+
retry() {
|
|
75
|
+
trackElementClicked?.("retry");
|
|
76
|
+
actor.send({ type: "RETRY" });
|
|
77
|
+
},
|
|
78
|
+
/** Moves on after the lookup limit is reached. */
|
|
79
|
+
continue() {
|
|
80
|
+
trackElementClicked?.("continue");
|
|
81
|
+
actor.send({ type: "CONTINUE" });
|
|
82
|
+
},
|
|
83
|
+
/** Closes the module. */
|
|
84
|
+
close() {
|
|
85
|
+
trackElementClicked?.("close");
|
|
86
|
+
actor.send({ type: "CLOSE" });
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function createEkycPrefillManagerFromActor(actor) {
|
|
91
|
+
return createManager({
|
|
92
|
+
actor,
|
|
93
|
+
mapState,
|
|
94
|
+
createApi
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/** Creates an eKYC Pre-fill manager for headless or UI-driven usage. */
|
|
98
|
+
function createEkycPrefillManager(options = {}) {
|
|
99
|
+
return createEkycPrefillManagerFromActor(createEkycPrefillActor(options));
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
export { createEkycPrefillManagerFromActor as n, createEkycPrefillManager as t };
|