@incodetech/core 2.4.1-agentic.9 → 2.5.0-rc.0
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/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-bBNquvYn.d.ts} +2 -2
- package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-ppyMYVoY.esm.js} +1 -1
- package/dist/{FaceDetectionProvider-CHpscouN.esm.js → FaceDetectionProvider-n9u4dEn_.esm.js} +9 -9
- 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/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-CduV32Qa.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-ixfy84ys.d.ts} +2 -2
- package/dist/{WasmUtilProvider-Dp2V-Uct.esm.js → WasmUtilProvider-0xTxgP0R.esm.js} +42 -6
- package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-CsDED9UU.esm.js} +1 -1
- package/dist/{addressSearch-D6cKPWmk.esm.js → addressSearch-Rxm1K67A.esm.js} +5 -4
- 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-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
- package/dist/{antifraudManager-CbIwM35x.esm.js → antifraudManager-DKNOi9-z.esm.js} +5 -3
- package/dist/{antifraudStateMachine-qNNXrlsP.esm.js → antifraudStateMachine-BJ6PmCsw.esm.js} +3 -3
- package/dist/{api-C_P9YXbL.esm.js → api-CZpuJuZl.esm.js} +2 -1
- package/dist/{apiError-BeWqIYu8.esm.js → apiError-CtArBUt-.esm.js} +1 -1
- package/dist/{attemptCarry-BaAXPR_w.esm.js → attemptCarry-BecGGZK8.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CTHFl6dl.esm.js → authenticationManager-9N3eg3Uh.esm.js} +7 -6
- package/dist/{authenticationManager-DKLRA91K.d.ts → authenticationManager-DRaugLgH.d.ts} +2 -2
- package/dist/{authenticationStateMachine-D-SOzH8C.esm.js → authenticationStateMachine-DoK5RKIS.esm.js} +50 -18
- package/dist/avatar.d.ts +1 -1
- package/dist/{browser-pQZA35G2-DJEJnmCd.esm.js → browser-DlFgHpoC-DnyrCR8r.esm.js} +150 -161
- package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
- 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-CrF3wjCH.esm.js → certificateIssuanceManager-DaUklfNj.esm.js} +5 -3
- package/dist/{certificateIssuanceStateMachine-uSD9IkcV.esm.js → certificateIssuanceStateMachine-_EQcjGE3.esm.js} +4 -4
- 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-BD7wwgat.esm.js → consentManager-BPocwpm2.esm.js} +5 -3
- package/dist/{consentManager-7aHaehwF.d.ts → consentManager-vI6QHkHU.d.ts} +5 -4
- package/dist/{consentStateMachine-BAiLDE3D.esm.js → consentStateMachine-DgiIcT9q.esm.js} +3 -3
- package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
- package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-BimBTONm.d.ts} +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-CUc1uACE.esm.js → crossDocumentDataMatchManager-BfA29Aji.esm.js} +6 -4
- 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-DBfZSQbu.esm.js → curpValidationManager-CbvBDoE1.esm.js} +6 -4
- package/dist/{curpValidationManager-Crz3bnCo.d.ts → curpValidationManager-Ci2iVuog.d.ts} +4 -4
- package/dist/{curpValidationStateMachine-DyAEyScb.esm.js → curpValidationStateMachine-BQ8XK2Y3.esm.js} +5 -5
- 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-BZhIPyaY.esm.js → customFieldsManager-BRqSCR9R.esm.js} +6 -4
- package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
- package/dist/{customWatchlistManager-B4cmxi__.esm.js → customWatchlistManager-Bd1ooIDB.esm.js} +5 -3
- package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
- package/dist/{customWatchlistStateMachine-ZZoDGRAZ.esm.js → customWatchlistStateMachine-r8nGhyo1.esm.js} +3 -3
- package/dist/{deepsightLoader-je1YxHgT.esm.js → deepsightLoader-zG373VVx.esm.js} +10 -6
- package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-Nw0YCbpe.esm.js} +38 -1
- package/dist/{desktopCameraElection-m2dAj6Zu.esm.js → desktopCameraElection-BKFjsQpO.esm.js} +5 -5
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-v57klTso.esm.js → documentCaptureManager-BKaJVQxg.esm.js} +5 -3
- package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-CoGcEiMK.d.ts} +4 -3
- package/dist/{documentCaptureStateMachine-CgCtimSa.esm.js → documentCaptureStateMachine-BYLb5Azk.esm.js} +6 -6
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-BKWJZfkn.esm.js → dynamicFormsManager-BfQKWG7a.esm.js} +5 -3
- package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
- package/dist/{dynamicFormsStateMachine-CQN8p1ux.esm.js → dynamicFormsStateMachine-CRq01QNK.esm.js} +4 -4
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-BD6HTwFJ.esm.js → ekybManager-B489iXyO.esm.js} +5 -3
- package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
- package/dist/{ekybStateMachine-3kceTymI.esm.js → ekybStateMachine-DZxg8T0H.esm.js} +18 -20
- package/dist/ekyc-prefill.d.ts +3 -3
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-CERRvIfg.d.ts → ekycManager-BKVQazAb.d.ts} +48 -7
- package/dist/{ekycManager-DawJq3Jo.esm.js → ekycManager-nRT0rxei.esm.js} +39 -16
- package/dist/{ekycPrefillManager-D_8NJzZf.esm.js → ekycPrefillManager-BXWDF7vT.esm.js} +3 -2
- package/dist/{ekycPrefillManager-DLNmToWT.d.ts → ekycPrefillManager-DOTl3Y2w.d.ts} +6 -5
- package/dist/{ekycPrefillStateMachine-C-JAvkH3.esm.js → ekycPrefillStateMachine-CuWTVze1.esm.js} +11 -10
- package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-DXP2hqVw.esm.js} +198 -38
- package/dist/{ekycStateMachine-qvQ-b4IY.esm.js → ekycStateMachine-nwJRel2s.esm.js} +349 -67
- package/dist/{ekycUtils-Drx8ImpN.esm.js → ekycUtils-FcqA6oU4.esm.js} +45 -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-u3UBhWw_.esm.js → electronicSignatureManager-BcE0XMrN.esm.js} +8 -6
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-BSaGg1Gl.esm.js → emailManager-Co4jarT1.esm.js} +5 -3
- package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
- package/dist/{emailStateMachine-CaoPZtZN.esm.js → emailStateMachine-CTEaYncs.esm.js} +4 -4
- package/dist/events-CP3yOzAl.esm.js +299 -0
- package/dist/events.d.ts +3 -1
- package/dist/events.esm.js +2 -1
- package/dist/extensibility.d.ts +42 -56
- package/dist/extensibility.esm.js +38 -38
- package/dist/{externalFetch-cUjJYyXj.esm.js → externalFetch-CQY41QT1.esm.js} +1 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-DKJUjsV2.esm.js → faceCaptureManagerFactory-BBQzNrku.esm.js} +17 -6
- package/dist/{faceCaptureManagerFactory-ZudYP6Qp.d.ts → faceCaptureManagerFactory-CRGajjZ4.d.ts} +18 -11
- package/dist/{faceCaptureSetup-CZzv26ip.esm.js → faceCaptureSetup-D8_ilXFc.esm.js} +46 -38
- package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-C5b5WtcY.d.ts} +12 -5
- package/dist/{faceMatchManager-qPJsa5Ac.esm.js → faceMatchManager-CGmNGbov.esm.js} +5 -3
- package/dist/{faceMatchStateMachine-D90ZHY1r.esm.js → faceMatchStateMachine-BuHt7kec.esm.js} +44 -18
- package/dist/{feature-management-BMUPPAzI.esm.js → feature-management-SIBmKJs8.esm.js} +1 -1
- 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-BLLj_Ey1.esm.js → fieldComparisonManager-VgCU4X96.esm.js} +6 -4
- 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-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
- package/dist/{fiscalQrManager-Bh3rxb7Y.esm.js → fiscalQrManager-DOLq45ph.esm.js} +6 -4
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +51 -13
- package/dist/flow.esm.js +241 -62
- package/dist/{flowCompletionService-DgA2VEq4.esm.js → flowCompletionService-BFCddN3G.esm.js} +24 -3
- package/dist/{flowServices-aJ5kGxBd.esm.js → flowServices-NX4ksmS5.esm.js} +374 -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-BA57nCxj.esm.js → geolocationManager-D1Ga7_lB.esm.js} +5 -3
- package/dist/{geolocationStateMachine-3-d1ECCh.esm.js → geolocationStateMachine-oPgI5FIQ.esm.js} +5 -5
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-D5HkBqfr.esm.js → governmentValidationManager-6JQQkzha.esm.js} +5 -3
- package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
- package/dist/{governmentValidationStateMachine-BwMClTqC.esm.js → governmentValidationStateMachine-wBunpfQ9.esm.js} +3 -3
- 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 +6 -5
- package/dist/id-selfie-flow.esm.js +12 -11
- 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-Dszuq9ng.esm.js → idCaptureDefaults-Drh207VJ.esm.js} +3 -3
- package/dist/{idCaptureManager-NRGuCVv2.d.ts → idCaptureManager-Cqx2y_fC.d.ts} +12 -11
- package/dist/{idCaptureManager-B_TyUA3w.esm.js → idCaptureManager-DjZyIbxc.esm.js} +12 -10
- package/dist/{idCaptureServices-C6FUQ76N.esm.js → idCaptureServices-DWs9Fb58.esm.js} +7 -7
- package/dist/{idCaptureStateMachine-Cr8WdGyp.esm.js → idCaptureStateMachine-BGMkWF9t.esm.js} +22 -20
- package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
- package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-DflRx-_u.d.ts} +5 -4
- package/dist/{idOcrManager-BMK2oou0.esm.js → idOcrManager-im7VfJQi.esm.js} +5 -3
- package/dist/{idOcrStateMachine-RjNycN07.esm.js → idOcrStateMachine-B832arAl.esm.js} +4 -4
- package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
- package/dist/{idVerificationManager-4wY-Ee4j.esm.js → idVerificationManager-PMGM4hXY.esm.js} +5 -3
- package/dist/{idVerificationStateMachine-Bj00uWvh.esm.js → idVerificationStateMachine-DeeugC00.esm.js} +3 -3
- 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 +97 -0
- package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-C40ngKeM.d.ts} +82 -15
- package/dist/{identityReuseManager-CCZ-ES2E.esm.js → identityReuseManager-CjFZ7WRa.esm.js} +9 -4
- package/dist/{identityReuseStateMachine-BtpkGpYZ.esm.js → identityReuseStateMachine-CLFjPp13.esm.js} +22 -25
- package/dist/{index-DlVDVTcf.d.ts → index-BKOWUhxG.d.ts} +22 -93
- package/dist/index-DHuAkTe0.d.ts +1 -0
- package/dist/{index-BGnYn_4J.d.ts → index-DxYNO94y.d.ts} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-BkvXSZfa.esm.js → invokeOnCaptureCallback-lXP41N7b.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-x2nBdasv.esm.js → kybChecksManager-eRU3ht0m.esm.js} +3 -2
- package/dist/{kybChecksStateMachine-DdWSo3jQ.esm.js → kybChecksStateMachine-CU0oIYDR.esm.js} +8 -7
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-JNeVXgK8.d.ts → mandatoryConsentManager-C1B2ERZk.d.ts} +6 -5
- package/dist/{mandatoryConsentManager-C9JJGENL.esm.js → mandatoryConsentManager-Dh3pBhOe.esm.js} +5 -3
- package/dist/{mandatoryConsentStateMachine-DLNIGElA.esm.js → mandatoryConsentStateMachine-BjuI72HZ.esm.js} +3 -3
- package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-g1TwTlhd.esm.js} +20 -3
- package/dist/{multipartRecordingService-OmSzHBqh.esm.js → multipartRecordingService-WgK8ieRI.esm.js} +2 -2
- package/dist/{permissionGuards-DFV-Ws0a.esm.js → permissionGuards-pcrrqrPR.esm.js} +1 -1
- package/dist/{permissionServices-D190ATGD.esm.js → permissionServices-DFJlH7K3.esm.js} +1 -1
- 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-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
- package/dist/{phoneManager-BylOWecM.esm.js → phoneManager-rA7updqF.esm.js} +5 -3
- package/dist/{phoneServices-Crge7uSV.esm.js → phoneServices-CFXcwCFr.esm.js} +1 -1
- package/dist/{phoneStateMachine-CHnhCS-4.esm.js → phoneStateMachine-DKdY2Scx.esm.js} +4 -4
- package/dist/{processFaceMatch-BveUAHts.esm.js → processFaceMatch-B_DkDTE5.esm.js} +1 -1
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-BUqAQd8F.esm.js → recordingService-DxiwS8TV.esm.js} +5 -5
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-DUpLyXsq.esm.js → redirectToMobileManager-DjsEtWLq.esm.js} +6 -4
- package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +3 -3
- package/dist/{redirectToMobileStateMachine-D0DW4y-f.esm.js → redirectToMobileStateMachine-CMjjUXSu.esm.js} +4 -4
- package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
- package/dist/{runChildModule-BTMOZdMM.esm.js → runChildModule-CJ_aQO92.esm.js} +8 -6
- package/dist/{sdkVersion-CinXzhdk.esm.js → sdkVersion-C9kbIDeX.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +13 -12
- package/dist/{selfieErrorUtils-D92PpZGe.esm.js → selfieErrorUtils-DUokfsv4.esm.js} +1 -1
- package/dist/{selfieManager-BPOlD-UN.d.ts → selfieManager-DihwheJ6.d.ts} +2 -2
- package/dist/{selfieManager-DX9Ejy4x.esm.js → selfieManager-uJtbzEp9.esm.js} +7 -6
- package/dist/{selfieStateMachine-BfJ5mJ57.esm.js → selfieStateMachine-CKXAmNkA.esm.js} +5 -5
- package/dist/{session-CswNE2eZ.esm.js → session-Bk2K8TEv.esm.js} +4 -4
- package/dist/session.d.ts +2 -2
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-DFtIRfDh.esm.js → sessionInitializer-CUCBGZ_s.esm.js} +120 -135
- package/dist/{setup-Bl3CRduw.esm.js → setup-B3a5KQeI.esm.js} +14 -16
- package/dist/{setup-prV5HQCQ.d.ts → setup-DpOr8H_l.d.ts} +2 -2
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-QlegdTo3.esm.js → signatureManager-BgAja97K.esm.js} +5 -3
- package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
- package/dist/{signatureStateMachine-DFbbbFwg.esm.js → signatureStateMachine-CVPmvU2p.esm.js} +3 -3
- package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
- package/dist/{stats-Bv5PiWvo.esm.js → stats-DoByUnTa.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/thumbmark.esm-CRc0cYvz.esm.js +1242 -0
- package/dist/{tri-BUFivnaE.esm.js → tri-xzRLIIMN.esm.js} +7 -133
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-BIjHhBJ2.esm.js +2620 -0
- package/dist/tri.esm.js +2 -2
- package/dist/{trueSightService-CDbmG-Mi.esm.js → trueSightService-BnQDjqUu.esm.js} +7 -4
- package/dist/trust-graph.d.ts +4 -3
- package/dist/trust-graph.esm.js +5 -3
- package/dist/{types-BD9sV5oG.d.ts → types-9wlf1-GE.d.ts} +3 -3
- package/dist/{types-D9vIGFbl.d.ts → types-B-PIc0en.d.ts} +1 -1
- package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
- package/dist/types-CE1jkHw3.d.ts +6 -0
- package/dist/{types-BpJ21a4T.d.ts → types-Cpdum4vi.d.ts} +5 -5
- package/dist/{types-BaDx6utW.d.ts → types-DEa3taWc.d.ts} +4 -0
- package/dist/{types-0Rr7etmf.d.ts → types-DFP7eSle.d.ts} +1 -1
- package/dist/{types-LA74KylV.d.ts → types-DJPU3W2M.d.ts} +1 -1
- package/dist/{events-kU5WJU4B.esm.js → types-DYYMdAGv.esm.js} +3 -298
- package/dist/{types-CquDWYfv.d.ts → types-Ddc4Tr_f.d.ts} +33 -4
- package/dist/{urlUtils-B2wagB5v.esm.js → urlUtils-eYiyWjh0.esm.js} +1 -14
- package/dist/video-selfie.d.ts +7 -6
- package/dist/video-selfie.esm.js +14 -13
- package/dist/{videoSelfieCameraWarmer-Dnkiqe0z.esm.js → videoSelfieCameraWarmer-CgqaNI-W.esm.js} +6 -6
- package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-B78BE_x9.d.ts → videoSelfieStepDetector-DRrh4P0A.d.ts} +4 -4
- package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
- package/dist/{warmup-DtB0DJpl.esm.js → warmup-BZOMg303.esm.js} +46 -4
- package/dist/wasm.d.ts +9 -3
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-BtiR5pig.esm.js → wasmDsFlagSync-DPK7qGgo.esm.js} +1 -1
- package/dist/{wasmWebClient-BDrax6Eu.esm.js → wasmWebClient-CyLCM31e.esm.js} +22 -32
- 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-DOYmIiaj.esm.js → watchlistForBusinessManager-BH6M4kqA.esm.js} +5 -3
- package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
- package/dist/{watchlistForBusinessStateMachine-D8qIyL8w.esm.js → watchlistForBusinessStateMachine-BMWm5mcP.esm.js} +4 -4
- package/dist/{watchlistManager-BJGLRv-x.esm.js → watchlistManager-BDaVjzLW.esm.js} +5 -3
- package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
- package/dist/{watchlistStateMachine-DeLfuGSl.esm.js → watchlistStateMachine-Cx-6QAvu.esm.js} +3 -3
- package/dist/workflow.d.ts +230 -44
- package/dist/workflow.esm.js +166 -68
- 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 +8 -8
- package/dist/Actor-DpTj5PFb.d.ts +0 -1
- 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/step-up.d.ts +0 -378
- package/dist/step-up.esm.js +0 -639
- package/dist/tri.esm-DgtAka_v.esm.js +0 -2145
- package/dist/types-B2M1IPZn.d.ts +0 -6
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
2
2
|
import { t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
3
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
|
+
import { a as formatPhoneNational, c as oneOfRequiredErrorKey, i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN, s as loadPhoneValidator, t as RULES, u as validateEkycForm } from "./ekycRules-DXP2hqVw.esm.js";
|
|
5
6
|
import { n as usStates, t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
6
|
-
import { a as getPostalCodeMaxLength, c as fillFromSuggestion, l as getStreetLevelErrorForSuggestion,
|
|
7
|
-
import { n as checkSupport, t as resolveForm } from "./resolveForm-
|
|
8
|
-
import { n as searchAddress, r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-
|
|
9
|
-
import { C as TAX_ID_SOURCES, S as STREET_SOURCES, _ as MIDDLE_NAME_SOURCES, a as getEKYCFields, b as POSTAL_CODE_SOURCES, c as resolveEkycSource, d as APARTMENT_SOURCES, f as CITY_SOURCES, g as HOUSE_NO_SOURCES, h as EMAIL_SOURCES, i as getEKYCDisplayModes, l as toEkycConfig, m as COUNTRY_SELECTOR_DISABLED_SOURCES, o as isFieldOptional, p as COUNTRY_CODE_OMITTED_SOURCES, r as getEKYCCountry, s as mapToEKYCvalue, t as EKYC_GROUP_KEYS, u as ADDRESS_STATE_SOURCES, v as NAME_SOURCES, w as VOCABULARY, x as STATE_CODE_HINTS, y as ONE_OF_REQUIRED_GROUPS } from "./ekycUtils-
|
|
7
|
+
import { a as getPostalCodeMaxLength, c as fillFromSuggestion, l as getStreetLevelErrorForSuggestion, n as formatPostalCode, t as createBundledDefinitionSource, u as keepSuggestedStateInOptions } from "./definitionSource-Nw0YCbpe.esm.js";
|
|
8
|
+
import { n as checkSupport, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
|
|
9
|
+
import { n as searchAddress, r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-Rxm1K67A.esm.js";
|
|
10
|
+
import { C as TAX_ID_SOURCES, S as STREET_SOURCES, _ as MIDDLE_NAME_SOURCES, a as getEKYCFields, b as POSTAL_CODE_SOURCES, c as resolveEkycSource, d as APARTMENT_SOURCES, f as CITY_SOURCES, g as HOUSE_NO_SOURCES, h as EMAIL_SOURCES, i as getEKYCDisplayModes, l as toEkycConfig, m as COUNTRY_SELECTOR_DISABLED_SOURCES, o as isFieldOptional, p as COUNTRY_CODE_OMITTED_SOURCES, r as getEKYCCountry, s as mapToEKYCvalue, t as EKYC_GROUP_KEYS, u as ADDRESS_STATE_SOURCES, v as NAME_SOURCES, w as VOCABULARY, x as STATE_CODE_HINTS, y as ONE_OF_REQUIRED_GROUPS } from "./ekycUtils-FcqA6oU4.esm.js";
|
|
10
11
|
import { t as DateFormattingProvider } from "./DateFormattingProvider-DPq9zco-.esm.js";
|
|
11
|
-
import {
|
|
12
|
-
import { a as formatPhoneNational, c as oneOfRequiredErrorKey, i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN, s as loadPhoneValidator, t as RULES, u as validateEkycForm } from "./ekycRules-BLX7Elcb.esm.js";
|
|
12
|
+
import { t as formatPhoneE164 } from "./phoneFormat-C3q0Ukh4.esm.js";
|
|
13
13
|
//#region src/internal/forms/resolvePrefill.ts
|
|
14
14
|
const DISPLAY_MODES = /* @__PURE__ */ new Set([
|
|
15
15
|
"editable",
|
|
@@ -205,6 +205,13 @@ const brStateOptions = Object.values({
|
|
|
205
205
|
label: state.name
|
|
206
206
|
}));
|
|
207
207
|
//#endregion
|
|
208
|
+
//#region src/shared/validators/textRules.ts
|
|
209
|
+
const CHARACTER_CLASSES = [
|
|
210
|
+
"letter",
|
|
211
|
+
"digit",
|
|
212
|
+
"space"
|
|
213
|
+
];
|
|
214
|
+
//#endregion
|
|
208
215
|
//#region ../form-definitions/generated/ekyc.ts
|
|
209
216
|
const EKYC_DEFINITIONS = {
|
|
210
217
|
"ekyc/AR/AR_CREDIT_BUR_1": {
|
|
@@ -849,7 +856,7 @@ const EKYC_DEFINITIONS = {
|
|
|
849
856
|
label: { key: "verification.labels.brazilian" }
|
|
850
857
|
},
|
|
851
858
|
{
|
|
852
|
-
value: "
|
|
859
|
+
value: "naturalized_brazilian",
|
|
853
860
|
label: { key: "verification.labels.naturalizedBrazilian" }
|
|
854
861
|
},
|
|
855
862
|
{
|
|
@@ -857,7 +864,7 @@ const EKYC_DEFINITIONS = {
|
|
|
857
864
|
label: { key: "verification.labels.foreigner" }
|
|
858
865
|
},
|
|
859
866
|
{
|
|
860
|
-
value: "
|
|
867
|
+
value: "brazilian_born_abroad",
|
|
861
868
|
label: { key: "verification.labels.brazilianBornAbroad" }
|
|
862
869
|
}
|
|
863
870
|
],
|
|
@@ -1551,14 +1558,6 @@ const EKYC_DEFINITIONS = {
|
|
|
1551
1558
|
rules: [{ id: "noPoBox" }],
|
|
1552
1559
|
prefill: ["document.street", "poa.street"]
|
|
1553
1560
|
},
|
|
1554
|
-
{
|
|
1555
|
-
name: "houseNo",
|
|
1556
|
-
kind: "text",
|
|
1557
|
-
group: "address",
|
|
1558
|
-
section: "address",
|
|
1559
|
-
label: { key: "verification.labels.houseNo" },
|
|
1560
|
-
prefill: ["document.houseNumber", "poa.houseNumber"]
|
|
1561
|
-
},
|
|
1562
1561
|
{
|
|
1563
1562
|
name: "city",
|
|
1564
1563
|
kind: "text",
|
|
@@ -3200,6 +3199,175 @@ const EKYC_DEFINITIONS = {
|
|
|
3200
3199
|
}
|
|
3201
3200
|
}
|
|
3202
3201
|
},
|
|
3202
|
+
"ekyc/HK/HK_RESIDENT_REGISTER": {
|
|
3203
|
+
schemaVersion: 1,
|
|
3204
|
+
vocabulary: "1.3",
|
|
3205
|
+
id: "ekyc/HK/HK_RESIDENT_REGISTER",
|
|
3206
|
+
module: "ekyc",
|
|
3207
|
+
country: "HK",
|
|
3208
|
+
source: "HK_RESIDENT_REGISTER",
|
|
3209
|
+
sections: [{ id: "address" }],
|
|
3210
|
+
fields: [
|
|
3211
|
+
{
|
|
3212
|
+
name: "firstName",
|
|
3213
|
+
kind: "text",
|
|
3214
|
+
group: "name",
|
|
3215
|
+
required: true,
|
|
3216
|
+
label: { key: "verification.labels.firstName" },
|
|
3217
|
+
placeholder: { key: "verification.placeholder.firstName" },
|
|
3218
|
+
input: {
|
|
3219
|
+
maxLength: 100,
|
|
3220
|
+
autofill: "givenName"
|
|
3221
|
+
},
|
|
3222
|
+
rules: [{ id: "nameCharacters" }],
|
|
3223
|
+
prefill: ["document.firstName", "poa.firstName"]
|
|
3224
|
+
},
|
|
3225
|
+
{
|
|
3226
|
+
name: "surName",
|
|
3227
|
+
kind: "text",
|
|
3228
|
+
group: "name",
|
|
3229
|
+
required: true,
|
|
3230
|
+
label: { key: "verification.labels.surName" },
|
|
3231
|
+
placeholder: { key: "verification.placeholder.surname" },
|
|
3232
|
+
input: {
|
|
3233
|
+
maxLength: 100,
|
|
3234
|
+
autofill: "familyName"
|
|
3235
|
+
},
|
|
3236
|
+
rules: [{ id: "nameCharacters" }],
|
|
3237
|
+
prefill: ["document.paternalLastName", "poa.lastName"]
|
|
3238
|
+
},
|
|
3239
|
+
{
|
|
3240
|
+
name: "dateOfBirth",
|
|
3241
|
+
kind: "date",
|
|
3242
|
+
group: "dateOfBirth",
|
|
3243
|
+
label: { key: "verification.labels.dateOfBirth" },
|
|
3244
|
+
input: { autofill: "birthday" },
|
|
3245
|
+
rules: [{
|
|
3246
|
+
id: "maxAge",
|
|
3247
|
+
params: { years: 120 }
|
|
3248
|
+
}, { id: "notFuture" }],
|
|
3249
|
+
prefill: ["document.birthDate"]
|
|
3250
|
+
},
|
|
3251
|
+
{
|
|
3252
|
+
name: "gender",
|
|
3253
|
+
kind: "choice",
|
|
3254
|
+
group: "gender",
|
|
3255
|
+
widget: "radio",
|
|
3256
|
+
label: { key: "verification.labels.gender" },
|
|
3257
|
+
options: [{
|
|
3258
|
+
value: "F",
|
|
3259
|
+
label: { key: "common.female" }
|
|
3260
|
+
}, {
|
|
3261
|
+
value: "M",
|
|
3262
|
+
label: { key: "common.male" }
|
|
3263
|
+
}]
|
|
3264
|
+
},
|
|
3265
|
+
{
|
|
3266
|
+
name: "email",
|
|
3267
|
+
kind: "text",
|
|
3268
|
+
group: "email",
|
|
3269
|
+
required: true,
|
|
3270
|
+
label: { key: "verification.labels.email" },
|
|
3271
|
+
placeholder: { key: "verification.placeholder.email" },
|
|
3272
|
+
input: {
|
|
3273
|
+
keyboard: "email",
|
|
3274
|
+
autofill: "email"
|
|
3275
|
+
},
|
|
3276
|
+
rules: [{ id: "emailFormat" }],
|
|
3277
|
+
prefill: ["emailModule.email"]
|
|
3278
|
+
},
|
|
3279
|
+
{
|
|
3280
|
+
name: "phone",
|
|
3281
|
+
kind: "phone",
|
|
3282
|
+
group: "phone",
|
|
3283
|
+
required: true,
|
|
3284
|
+
label: { key: "verification.labels.phone" },
|
|
3285
|
+
input: { autofill: "phone" },
|
|
3286
|
+
phone: { lockCountry: "whenPhoneRisk" },
|
|
3287
|
+
rules: [{ id: "phoneFormat" }],
|
|
3288
|
+
payload: { transforms: [{ id: "e164" }] },
|
|
3289
|
+
prefill: ["phoneModule.phone"]
|
|
3290
|
+
},
|
|
3291
|
+
{
|
|
3292
|
+
name: "apartment",
|
|
3293
|
+
kind: "text",
|
|
3294
|
+
group: "address",
|
|
3295
|
+
section: "address",
|
|
3296
|
+
label: { key: "verification.labels.apartment" },
|
|
3297
|
+
placeholder: { key: "verification.placeholder.apartment" },
|
|
3298
|
+
input: { autofill: "addressLine2" }
|
|
3299
|
+
},
|
|
3300
|
+
{
|
|
3301
|
+
name: "buildingName",
|
|
3302
|
+
kind: "text",
|
|
3303
|
+
group: "address",
|
|
3304
|
+
section: "address",
|
|
3305
|
+
label: { key: "verification.labels.buildingName" }
|
|
3306
|
+
},
|
|
3307
|
+
{
|
|
3308
|
+
name: "houseNo",
|
|
3309
|
+
kind: "text",
|
|
3310
|
+
group: "address",
|
|
3311
|
+
section: "address",
|
|
3312
|
+
label: { key: "verification.labels.houseNo" },
|
|
3313
|
+
prefill: ["document.houseNumber", "poa.houseNumber"]
|
|
3314
|
+
},
|
|
3315
|
+
{
|
|
3316
|
+
name: "street",
|
|
3317
|
+
kind: "text",
|
|
3318
|
+
group: "address",
|
|
3319
|
+
section: "address",
|
|
3320
|
+
widget: "addressSearch",
|
|
3321
|
+
label: { key: "verification.labels.street" },
|
|
3322
|
+
input: { autofill: "addressLine1" },
|
|
3323
|
+
rules: [{ id: "noPoBox" }],
|
|
3324
|
+
prefill: ["document.street", "poa.street"]
|
|
3325
|
+
},
|
|
3326
|
+
{
|
|
3327
|
+
name: "city",
|
|
3328
|
+
kind: "text",
|
|
3329
|
+
group: "address",
|
|
3330
|
+
section: "address",
|
|
3331
|
+
label: { key: "verification.labels.area" },
|
|
3332
|
+
input: { autofill: "addressLevel2" },
|
|
3333
|
+
prefill: ["document.city", "poa.city"]
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
name: "state",
|
|
3337
|
+
kind: "choice",
|
|
3338
|
+
group: "address",
|
|
3339
|
+
section: "address",
|
|
3340
|
+
required: true,
|
|
3341
|
+
widget: "select",
|
|
3342
|
+
label: { key: "verification.labels.chooseState" },
|
|
3343
|
+
placeholder: { key: "verification.placeholder.state" },
|
|
3344
|
+
input: { autofill: "addressLevel1" },
|
|
3345
|
+
options: [
|
|
3346
|
+
{
|
|
3347
|
+
value: "Hong Kong",
|
|
3348
|
+
label: { key: "Hong Kong" }
|
|
3349
|
+
},
|
|
3350
|
+
{
|
|
3351
|
+
value: "Kowloon",
|
|
3352
|
+
label: { key: "Kowloon" }
|
|
3353
|
+
},
|
|
3354
|
+
{
|
|
3355
|
+
value: "New Territories",
|
|
3356
|
+
label: { key: "New Territories" }
|
|
3357
|
+
}
|
|
3358
|
+
],
|
|
3359
|
+
payload: { transforms: [{ id: "uppercase" }] },
|
|
3360
|
+
prefill: ["document.state", "poa.state"]
|
|
3361
|
+
}
|
|
3362
|
+
],
|
|
3363
|
+
submit: {
|
|
3364
|
+
static: { plugins: ["kyc"] },
|
|
3365
|
+
context: {
|
|
3366
|
+
source: "source",
|
|
3367
|
+
countryCode: "country"
|
|
3368
|
+
}
|
|
3369
|
+
}
|
|
3370
|
+
},
|
|
3203
3371
|
"ekyc/IN/IN_DMV": {
|
|
3204
3372
|
schemaVersion: 1,
|
|
3205
3373
|
vocabulary: "1.3",
|
|
@@ -5725,7 +5893,7 @@ const EKYC_DEFINITIONS = {
|
|
|
5725
5893
|
module: "ekyc",
|
|
5726
5894
|
country: "US",
|
|
5727
5895
|
source: "US_TELCO_1",
|
|
5728
|
-
sections: [{ id: "
|
|
5896
|
+
sections: [{ id: "driverLicense" }, { id: "address" }],
|
|
5729
5897
|
fields: [
|
|
5730
5898
|
{
|
|
5731
5899
|
name: "firstName",
|
|
@@ -5812,6 +5980,25 @@ const EKYC_DEFINITIONS = {
|
|
|
5812
5980
|
params: { lengths: [4] }
|
|
5813
5981
|
}]
|
|
5814
5982
|
},
|
|
5983
|
+
{
|
|
5984
|
+
name: "dlNumber",
|
|
5985
|
+
kind: "text",
|
|
5986
|
+
group: "dlNumber",
|
|
5987
|
+
section: "driverLicense",
|
|
5988
|
+
label: { key: "verification.labels.dlNumber" },
|
|
5989
|
+
prefill: ["document.driversLicenseNumber"]
|
|
5990
|
+
},
|
|
5991
|
+
{
|
|
5992
|
+
name: "dlState",
|
|
5993
|
+
kind: "choice",
|
|
5994
|
+
group: "dlState",
|
|
5995
|
+
section: "driverLicense",
|
|
5996
|
+
widget: "select",
|
|
5997
|
+
label: { key: "verification.labels.dlState" },
|
|
5998
|
+
placeholder: { key: "verification.placeholder.state" },
|
|
5999
|
+
optionsRef: "US_STATES",
|
|
6000
|
+
prefill: ["document.driversLicenseState"]
|
|
6001
|
+
},
|
|
5815
6002
|
{
|
|
5816
6003
|
name: "street",
|
|
5817
6004
|
kind: "text",
|
|
@@ -5861,25 +6048,6 @@ const EKYC_DEFINITIONS = {
|
|
|
5861
6048
|
params: { chars: "- " }
|
|
5862
6049
|
}] },
|
|
5863
6050
|
prefill: ["document.postalCode", "poa.postalCode"]
|
|
5864
|
-
},
|
|
5865
|
-
{
|
|
5866
|
-
name: "dlNumber",
|
|
5867
|
-
kind: "text",
|
|
5868
|
-
group: "dlNumber",
|
|
5869
|
-
section: "driverLicense",
|
|
5870
|
-
label: { key: "verification.labels.dlNumber" },
|
|
5871
|
-
prefill: ["document.driversLicenseNumber"]
|
|
5872
|
-
},
|
|
5873
|
-
{
|
|
5874
|
-
name: "dlState",
|
|
5875
|
-
kind: "choice",
|
|
5876
|
-
group: "dlState",
|
|
5877
|
-
section: "driverLicense",
|
|
5878
|
-
widget: "select",
|
|
5879
|
-
label: { key: "verification.labels.dlState" },
|
|
5880
|
-
placeholder: { key: "verification.placeholder.state" },
|
|
5881
|
-
optionsRef: "US_STATES",
|
|
5882
|
-
prefill: ["document.driversLicenseState"]
|
|
5883
6051
|
}
|
|
5884
6052
|
],
|
|
5885
6053
|
submit: {
|
|
@@ -6529,7 +6697,8 @@ const EKYC_SUPPORTED_IDS = {
|
|
|
6529
6697
|
groupRules: /* @__PURE__ */ new Set(["oneOfRequired", "rulesByOption"]),
|
|
6530
6698
|
optionLists: new Set(Object.keys(OPTION_LISTS)),
|
|
6531
6699
|
conditions: /* @__PURE__ */ new Set(["fieldFilled"]),
|
|
6532
|
-
prefillSources: new Set(EKYC_PREFILL_SOURCES)
|
|
6700
|
+
prefillSources: new Set(EKYC_PREFILL_SOURCES),
|
|
6701
|
+
flags: /* @__PURE__ */ new Set()
|
|
6533
6702
|
};
|
|
6534
6703
|
/** Today's field shape only flags `middleName` as optional. */
|
|
6535
6704
|
const LEGACY_OPTIONAL_FLAG = /* @__PURE__ */ new Set(["middleName"]);
|
|
@@ -6669,9 +6838,10 @@ const MIGRATED_EKYC_SOURCES = /* @__PURE__ */ new Set([
|
|
|
6669
6838
|
]);
|
|
6670
6839
|
/**
|
|
6671
6840
|
* The bundled definition for exactly this source and country, if it is
|
|
6672
|
-
* projectable and the rollout lets this source use it.
|
|
6841
|
+
* projectable and the rollout lets this source use it. `useDefinitions` is
|
|
6842
|
+
* the rollout answer the machine read once, when it was created.
|
|
6673
6843
|
*/
|
|
6674
|
-
function selectEkycDefinition(source, country, useDefinitions
|
|
6844
|
+
function selectEkycDefinition(source, country, useDefinitions) {
|
|
6675
6845
|
if (!useDefinitions && MIGRATED_EKYC_SOURCES.has(source)) return void 0;
|
|
6676
6846
|
const definition = bundled.select({
|
|
6677
6847
|
module: "ekyc",
|
|
@@ -6851,9 +7021,10 @@ function applyOneOfRequiredGroups(defs, configSource) {
|
|
|
6851
7021
|
* this country reads it (`packages/form-definitions/catalog/ekyc`) when the
|
|
6852
7022
|
* rollout allows (`selectEkycDefinition`); any other pair keeps the current
|
|
6853
7023
|
* builder. `useDefinitions` is the rollout answer the machine read once, when
|
|
6854
|
-
* it was created, so it can't change mid-session.
|
|
7024
|
+
* it was created, so it can't change mid-session. The options are named so a
|
|
7025
|
+
* caller can't swap the two booleans.
|
|
6855
7026
|
*/
|
|
6856
|
-
function buildFieldDefs(fields, configSource, country, enablePhoneRisk = false
|
|
7027
|
+
function buildFieldDefs(fields, configSource, country, { useDefinitions, enablePhoneRisk = false }) {
|
|
6857
7028
|
const definition = selectEkycDefinition(configSource, country, useDefinitions);
|
|
6858
7029
|
if (definition) return projectEkycFields(resolveForm(definition, toEkycResolveContext(fields, enablePhoneRisk)), fields, country);
|
|
6859
7030
|
return legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk);
|
|
@@ -6911,7 +7082,7 @@ function legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk = f
|
|
|
6911
7082
|
label: "verification.labels.brazilian"
|
|
6912
7083
|
},
|
|
6913
7084
|
{
|
|
6914
|
-
value: "
|
|
7085
|
+
value: "naturalized_brazilian",
|
|
6915
7086
|
label: "verification.labels.naturalizedBrazilian"
|
|
6916
7087
|
},
|
|
6917
7088
|
{
|
|
@@ -6919,7 +7090,7 @@ function legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk = f
|
|
|
6919
7090
|
label: "verification.labels.foreigner"
|
|
6920
7091
|
},
|
|
6921
7092
|
{
|
|
6922
|
-
value: "
|
|
7093
|
+
value: "brazilian_born_abroad",
|
|
6923
7094
|
label: "verification.labels.brazilianBornAbroad"
|
|
6924
7095
|
}
|
|
6925
7096
|
] });
|
|
@@ -7163,6 +7334,38 @@ function processFieldValueByName(name, value, fieldsCountry) {
|
|
|
7163
7334
|
if (name === "panNumber") return value.replace(/[^a-zA-Z0-9]/g, "").toUpperCase();
|
|
7164
7335
|
return value;
|
|
7165
7336
|
}
|
|
7337
|
+
/** Whether the form shows a field: not hidden, and not an email shown elsewhere. */
|
|
7338
|
+
const isVisibleEkycField = (field, hideEmail) => field.displayMode !== "hidden" && !(hideEmail && field.name === "email");
|
|
7339
|
+
/**
|
|
7340
|
+
* Splits the form into steps, one per run of visible fields with the same
|
|
7341
|
+
* section, in field order. A section with no visible field has no step.
|
|
7342
|
+
*/
|
|
7343
|
+
function buildEkycSteps(fields, hideEmail) {
|
|
7344
|
+
const steps = [];
|
|
7345
|
+
for (const field of fields) {
|
|
7346
|
+
if (!isVisibleEkycField(field, hideEmail)) continue;
|
|
7347
|
+
const id = field.section ?? "personal";
|
|
7348
|
+
const last = steps[steps.length - 1];
|
|
7349
|
+
if (last?.id === id) last.fieldNames.push(field.name);
|
|
7350
|
+
else steps.push({
|
|
7351
|
+
id,
|
|
7352
|
+
fieldNames: [field.name]
|
|
7353
|
+
});
|
|
7354
|
+
}
|
|
7355
|
+
return steps;
|
|
7356
|
+
}
|
|
7357
|
+
/**
|
|
7358
|
+
* The step index kept within the steps the form has now. A missing index, as
|
|
7359
|
+
* in a snapshot taken before steps existed, is the first step.
|
|
7360
|
+
*/
|
|
7361
|
+
const clampStepIndex = (index, steps) => Number.isFinite(index) ? Math.max(0, Math.min(index, steps.length - 1)) : 0;
|
|
7362
|
+
/** Whether a step's fields have no validation errors. */
|
|
7363
|
+
const isStepValid = (step, errors) => !step || step.fieldNames.every((name) => !errors?.[name]);
|
|
7364
|
+
/** The first step with a validation error, or `undefined` when none has one. */
|
|
7365
|
+
function firstStepWithError(steps, errors) {
|
|
7366
|
+
const index = steps.findIndex((step) => !isStepValid(step, errors));
|
|
7367
|
+
return index === -1 ? void 0 : index;
|
|
7368
|
+
}
|
|
7166
7369
|
//#endregion
|
|
7167
7370
|
//#region src/modules/ekyc/ekycServices.ts
|
|
7168
7371
|
/** Fetches module configuration for EXTERNAL_VERIFICATION */
|
|
@@ -7210,6 +7413,10 @@ async function submitEkyc(data, signal) {
|
|
|
7210
7413
|
//#region src/modules/ekyc/ekycGuards.ts
|
|
7211
7414
|
const hasNoValidationErrorsGuard = ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0;
|
|
7212
7415
|
const hasFlowIdGuard = ({ context }) => !!context.config.flowId;
|
|
7416
|
+
/** The backend runs the checks itself, so the step finishes without a form. */
|
|
7417
|
+
const isAutoExecutionGuard = ({ context }) => context.config.autoExecution === true;
|
|
7418
|
+
/** The fetched module config turns on auto execution. */
|
|
7419
|
+
const isModuleConfigAutoExecutionGuard = ({ event }) => event.output?.autoExecution === true;
|
|
7213
7420
|
/** A `flowId` config whose module config never arrived (its load failed). */
|
|
7214
7421
|
const needsModuleConfigGuard = ({ context }) => !!context.config.flowId && context.moduleConfig === void 0;
|
|
7215
7422
|
/** A form with a phone field whose phone rules haven't loaded. */
|
|
@@ -7226,7 +7433,7 @@ const fetchModuleConfigActor = fromPromise(async ({ input, signal }) => {
|
|
|
7226
7433
|
const phoneRules = loadPhoneValidator();
|
|
7227
7434
|
phoneRules.catch(() => void 0);
|
|
7228
7435
|
const config = await fetchModuleConfig(input.flowId, signal);
|
|
7229
|
-
if (getEKYCFields(config).phone !== false) await phoneRules;
|
|
7436
|
+
if (config.autoExecution !== true && getEKYCFields(config).phone !== false) await phoneRules;
|
|
7230
7437
|
return config;
|
|
7231
7438
|
});
|
|
7232
7439
|
/**
|
|
@@ -7285,6 +7492,12 @@ const prefillConfig = (context) => ({
|
|
|
7285
7492
|
riskAddons: context.moduleConfig?.riskAddons,
|
|
7286
7493
|
useDefinitions: context._formDefinitions
|
|
7287
7494
|
});
|
|
7495
|
+
const stepsOf = (context) => buildEkycSteps(context.fields, context.hideEmail);
|
|
7496
|
+
/** The step the user is on, kept within the steps the form has now. */
|
|
7497
|
+
const currentStep = (context) => {
|
|
7498
|
+
const steps = stepsOf(context);
|
|
7499
|
+
return steps[clampStepIndex(context.currentStepIndex, steps)];
|
|
7500
|
+
};
|
|
7288
7501
|
const omitKeys = (errors, keys) => {
|
|
7289
7502
|
if (!errors) return void 0;
|
|
7290
7503
|
const next = { ...errors };
|
|
@@ -7315,7 +7528,10 @@ const ekycMachine = setup({
|
|
|
7315
7528
|
verificationFields: vFields,
|
|
7316
7529
|
configSource: source,
|
|
7317
7530
|
fieldsCountry: country,
|
|
7318
|
-
fields: buildFieldDefs(vFields, source, country,
|
|
7531
|
+
fields: buildFieldDefs(vFields, source, country, {
|
|
7532
|
+
useDefinitions: context._formDefinitions,
|
|
7533
|
+
enablePhoneRisk: config.enablePhoneRisk
|
|
7534
|
+
}),
|
|
7319
7535
|
displayModes: getEKYCDisplayModes(config)
|
|
7320
7536
|
};
|
|
7321
7537
|
}),
|
|
@@ -7387,10 +7603,35 @@ const ekycMachine = setup({
|
|
|
7387
7603
|
const errors = validateEkycForm(context.values, context.fields);
|
|
7388
7604
|
return { validationErrors: Object.keys(errors).length > 0 ? errors : void 0 };
|
|
7389
7605
|
}),
|
|
7606
|
+
validateCurrentStep: assign(({ context }) => {
|
|
7607
|
+
const step = currentStep(context);
|
|
7608
|
+
if (!step) return {};
|
|
7609
|
+
const next = { ...context.validationErrors ?? {} };
|
|
7610
|
+
for (const name of step.fieldNames) {
|
|
7611
|
+
const message = validateEkycField(context.values, name, context.fields);
|
|
7612
|
+
if (message) next[name] = message;
|
|
7613
|
+
else delete next[name];
|
|
7614
|
+
}
|
|
7615
|
+
return { validationErrors: Object.keys(next).length > 0 ? next : void 0 };
|
|
7616
|
+
}),
|
|
7617
|
+
advanceStep: assign(({ context }) => {
|
|
7618
|
+
const steps = stepsOf(context);
|
|
7619
|
+
return { currentStepIndex: clampStepIndex(clampStepIndex(context.currentStepIndex, steps) + 1, steps) };
|
|
7620
|
+
}),
|
|
7621
|
+
previousStep: assign(({ context }) => {
|
|
7622
|
+
const steps = stepsOf(context);
|
|
7623
|
+
return { currentStepIndex: clampStepIndex(clampStepIndex(context.currentStepIndex, steps) - 1, steps) };
|
|
7624
|
+
}),
|
|
7625
|
+
goToFirstStepWithError: assign(({ context }) => {
|
|
7626
|
+
const index = firstStepWithError(stepsOf(context), context.validationErrors);
|
|
7627
|
+
return index === void 0 ? {} : { currentStepIndex: index };
|
|
7628
|
+
}),
|
|
7629
|
+
resetStep: assign({ currentStepIndex: () => 0 }),
|
|
7390
7630
|
fillAddressFields: assign(({ context, event }) => {
|
|
7391
7631
|
const { suggestion } = event;
|
|
7392
7632
|
const activeFields = new Set(context.fields.filter((f) => !isLocked(f)).map((f) => f.name));
|
|
7393
|
-
const { values:
|
|
7633
|
+
const { values: filled } = fillFromSuggestion(context.values, {}, suggestion, activeFields);
|
|
7634
|
+
const newValues = keepSuggestedStateInOptions(context.fields, context.values, filled);
|
|
7394
7635
|
const clearedErrors = omitKeys(context.validationErrors, ADDRESS_AUTOCOMPLETE_KEYS);
|
|
7395
7636
|
const streetError = getStreetLevelErrorForSuggestion(suggestion, activeFields);
|
|
7396
7637
|
const validationErrors = {
|
|
@@ -7414,12 +7655,19 @@ const ekycMachine = setup({
|
|
|
7414
7655
|
guards: {
|
|
7415
7656
|
hasNoValidationErrors: hasNoValidationErrorsGuard,
|
|
7416
7657
|
hasFlowId: hasFlowIdGuard,
|
|
7658
|
+
isAutoExecution: isAutoExecutionGuard,
|
|
7659
|
+
isModuleConfigAutoExecution: isModuleConfigAutoExecutionGuard,
|
|
7417
7660
|
hasVerificationFields: hasVerificationFieldsGuard,
|
|
7418
7661
|
needsModuleConfig: needsModuleConfigGuard,
|
|
7419
7662
|
needsPhoneRules: needsPhoneRulesGuard,
|
|
7420
7663
|
isCountryNotSupported: isCountryNotSupportedGuard,
|
|
7421
7664
|
shouldAutoSubmit: ({ context }) => !context.autoSubmitted && showsNoFields(context),
|
|
7422
|
-
showsNoFields: ({ context }) => showsNoFields(context)
|
|
7665
|
+
showsNoFields: ({ context }) => showsNoFields(context),
|
|
7666
|
+
isLastStep: ({ context }) => {
|
|
7667
|
+
const steps = stepsOf(context);
|
|
7668
|
+
return clampStepIndex(context.currentStepIndex, steps) >= steps.length - 1;
|
|
7669
|
+
},
|
|
7670
|
+
currentStepHasNoErrors: ({ context }) => isStepValid(currentStep(context), context.validationErrors)
|
|
7423
7671
|
}
|
|
7424
7672
|
}).createMachine({
|
|
7425
7673
|
id: "ekyc",
|
|
@@ -7441,12 +7689,17 @@ const ekycMachine = setup({
|
|
|
7441
7689
|
autoSubmitted: false,
|
|
7442
7690
|
errorMessage: "",
|
|
7443
7691
|
submitError: "",
|
|
7692
|
+
currentStepIndex: 0,
|
|
7444
7693
|
_formDefinitions: isFormDefinitionsEnabled(),
|
|
7445
7694
|
_searchQuery: ""
|
|
7446
7695
|
};
|
|
7447
7696
|
},
|
|
7448
7697
|
states: {
|
|
7449
7698
|
idle: { on: { LOAD: [
|
|
7699
|
+
{
|
|
7700
|
+
target: "finished",
|
|
7701
|
+
guard: "isAutoExecution"
|
|
7702
|
+
},
|
|
7450
7703
|
{
|
|
7451
7704
|
target: "loading.moduleConfig",
|
|
7452
7705
|
guard: "hasFlowId"
|
|
@@ -7462,7 +7715,10 @@ const ekycMachine = setup({
|
|
|
7462
7715
|
verificationFields: vFields,
|
|
7463
7716
|
configSource: source,
|
|
7464
7717
|
fieldsCountry: country,
|
|
7465
|
-
fields: buildFieldDefs(vFields, source, country,
|
|
7718
|
+
fields: buildFieldDefs(vFields, source, country, {
|
|
7719
|
+
useDefinitions: context._formDefinitions,
|
|
7720
|
+
enablePhoneRisk: context.config.enablePhoneRisk
|
|
7721
|
+
})
|
|
7466
7722
|
};
|
|
7467
7723
|
})
|
|
7468
7724
|
},
|
|
@@ -7475,10 +7731,13 @@ const ekycMachine = setup({
|
|
|
7475
7731
|
id: "fetchModuleConfig",
|
|
7476
7732
|
src: "fetchModuleConfig",
|
|
7477
7733
|
input: ({ context }) => ({ flowId: context.config.flowId }),
|
|
7478
|
-
onDone: {
|
|
7734
|
+
onDone: [{
|
|
7735
|
+
target: "#ekyc.finished",
|
|
7736
|
+
guard: "isModuleConfigAutoExecution"
|
|
7737
|
+
}, {
|
|
7479
7738
|
target: "#ekyc.prefilling",
|
|
7480
7739
|
actions: "setModuleConfig"
|
|
7481
|
-
},
|
|
7740
|
+
}],
|
|
7482
7741
|
onError: {
|
|
7483
7742
|
target: "#ekyc.error",
|
|
7484
7743
|
actions: "setErrorMessage"
|
|
@@ -7496,19 +7755,22 @@ const ekycMachine = setup({
|
|
|
7496
7755
|
} }
|
|
7497
7756
|
}
|
|
7498
7757
|
},
|
|
7499
|
-
prefilling: {
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
|
|
7758
|
+
prefilling: {
|
|
7759
|
+
entry: "resetStep",
|
|
7760
|
+
invoke: {
|
|
7761
|
+
id: "fetchPrefillData",
|
|
7762
|
+
src: "fetchPrefillData",
|
|
7763
|
+
input: ({ context }) => ({ addressOrigin: prefillAddressOrigin(prefillConfig(context)) }),
|
|
7764
|
+
onDone: {
|
|
7765
|
+
target: "form",
|
|
7766
|
+
actions: "applyPrefillData"
|
|
7767
|
+
},
|
|
7768
|
+
onError: {
|
|
7769
|
+
target: "form",
|
|
7770
|
+
actions: "applyEmptyPrefill"
|
|
7771
|
+
}
|
|
7510
7772
|
}
|
|
7511
|
-
}
|
|
7773
|
+
},
|
|
7512
7774
|
form: {
|
|
7513
7775
|
initial: "inputting",
|
|
7514
7776
|
states: {
|
|
@@ -7536,7 +7798,8 @@ const ekycMachine = setup({
|
|
|
7536
7798
|
RESULTS: {
|
|
7537
7799
|
target: "inputting",
|
|
7538
7800
|
actions: "setAddressSuggestions"
|
|
7539
|
-
}
|
|
7801
|
+
},
|
|
7802
|
+
SUBMIT: { target: "validatingSubmit" }
|
|
7540
7803
|
}
|
|
7541
7804
|
},
|
|
7542
7805
|
validatingSubmit: {
|
|
@@ -7544,10 +7807,29 @@ const ekycMachine = setup({
|
|
|
7544
7807
|
always: [{
|
|
7545
7808
|
guard: "hasNoValidationErrors",
|
|
7546
7809
|
target: "#ekyc.submitting"
|
|
7810
|
+
}, {
|
|
7811
|
+
target: "inputting",
|
|
7812
|
+
actions: "goToFirstStepWithError"
|
|
7813
|
+
}]
|
|
7814
|
+
},
|
|
7815
|
+
validatingStep: {
|
|
7816
|
+
entry: "validateCurrentStep",
|
|
7817
|
+
always: [{
|
|
7818
|
+
guard: "currentStepHasNoErrors",
|
|
7819
|
+
target: "inputting",
|
|
7820
|
+
actions: "advanceStep"
|
|
7547
7821
|
}, { target: "inputting" }]
|
|
7548
7822
|
}
|
|
7549
7823
|
},
|
|
7550
7824
|
on: {
|
|
7825
|
+
NEXT_STEP: [{
|
|
7826
|
+
guard: "isLastStep",
|
|
7827
|
+
target: ".validatingSubmit"
|
|
7828
|
+
}, { target: ".validatingStep" }],
|
|
7829
|
+
PREVIOUS_STEP: {
|
|
7830
|
+
target: ".inputting",
|
|
7831
|
+
actions: "previousStep"
|
|
7832
|
+
},
|
|
7551
7833
|
SEARCH_ADDRESS: {
|
|
7552
7834
|
target: ".searching",
|
|
7553
7835
|
actions: assign(({ event }) => ({
|
|
@@ -7612,4 +7894,4 @@ const ekycMachine = setup({
|
|
|
7612
7894
|
}
|
|
7613
7895
|
});
|
|
7614
7896
|
//#endregion
|
|
7615
|
-
export { ekycMachine as t };
|
|
7897
|
+
export { isStepValid as i, buildEkycSteps as n, clampStepIndex as r, ekycMachine as t };
|