@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
|
@@ -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",
|
|
@@ -1281,12 +1286,6 @@ const MIDDLE_NAME_SOURCES = [
|
|
|
1281
1286
|
"CL_1",
|
|
1282
1287
|
"INDIA_PAN"
|
|
1283
1288
|
];
|
|
1284
|
-
const PHONE_RISK_ADDONS = [
|
|
1285
|
-
"phoneCheck",
|
|
1286
|
-
"advancedPhoneCheck",
|
|
1287
|
-
"phoneProfile"
|
|
1288
|
-
];
|
|
1289
|
-
const EMAIL_RISK_ADDONS = ["emailCheck"];
|
|
1290
1289
|
/** Risk addons that replace a `RISK_ADDONS_ONLY` source with their own. */
|
|
1291
1290
|
const RISK_ADDON_SOURCE_OVERRIDES = { phoneProfile: "PHONE_PROFILE" };
|
|
1292
1291
|
/** Sources whose submit payload must not carry `countryCode`. */
|
|
@@ -1315,9 +1314,6 @@ function mapToEKYCvalue(field) {
|
|
|
1315
1314
|
default: return "user_input";
|
|
1316
1315
|
}
|
|
1317
1316
|
}
|
|
1318
|
-
function hasRiskAddon(riskAddons, allowedAddons) {
|
|
1319
|
-
return allowedAddons.some((addon) => riskAddons?.includes(addon));
|
|
1320
|
-
}
|
|
1321
1317
|
/**
|
|
1322
1318
|
* Resolves the source sent to the backend. A `RISK_ADDONS_ONLY` source is
|
|
1323
1319
|
* replaced by the first configured addon that defines its own source
|
|
@@ -1327,54 +1323,59 @@ function resolveEkycSource(source, riskAddons) {
|
|
|
1327
1323
|
if (source !== "RISK_ADDONS_ONLY") return source;
|
|
1328
1324
|
return riskAddons?.map((addon) => RISK_ADDON_SOURCE_OVERRIDES[addon]).find(Boolean) ?? source;
|
|
1329
1325
|
}
|
|
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`. */
|
|
1326
|
+
/**
|
|
1327
|
+
* eKYC group id → the key `getEKYCFields` sets in `EkycVerificationFields`, in
|
|
1328
|
+
* the order `getEKYCFields` has always written them.
|
|
1329
|
+
*/
|
|
1358
1330
|
const EKYC_GROUP_KEYS = {
|
|
1359
1331
|
name: "name",
|
|
1332
|
+
ssn: "SSN",
|
|
1333
|
+
address: "address",
|
|
1360
1334
|
dateOfBirth: "date of birth",
|
|
1361
1335
|
email: "email",
|
|
1362
1336
|
phone: "phone",
|
|
1363
|
-
|
|
1364
|
-
|
|
1337
|
+
nationality: "nationality",
|
|
1338
|
+
dlNumber: "dlNumber",
|
|
1339
|
+
dlState: "dlState",
|
|
1340
|
+
dlExpireAt: "dlExpireAt",
|
|
1365
1341
|
last4SSN: "last4SSN",
|
|
1366
1342
|
idNumber: "idNum",
|
|
1367
1343
|
idNumber1: "idNum1",
|
|
1368
|
-
nationality: "nationality",
|
|
1369
1344
|
gender: "gender",
|
|
1370
1345
|
panNumber: "panNumber",
|
|
1371
|
-
dlNumber: "dlNumber",
|
|
1372
|
-
dlState: "dlState",
|
|
1373
|
-
dlExpireAt: "dlExpireAt",
|
|
1374
1346
|
idType: "idType",
|
|
1375
1347
|
issueDate: "issueDate",
|
|
1376
1348
|
fileNumber: "fileNumber"
|
|
1377
1349
|
};
|
|
1350
|
+
const RISK_ADDON_PREFIX = "riskAddon:";
|
|
1351
|
+
/**
|
|
1352
|
+
* Each verification field's switches, from its vocabulary group: the config
|
|
1353
|
+
* flags and risk add-ons that turn it on (`enabledBy`, where a risk add-on is
|
|
1354
|
+
* `riskAddon:<id>`), and the config key that names its source (`sourceKey`).
|
|
1355
|
+
*/
|
|
1356
|
+
const FIELD_SWITCHES = Object.entries(EKYC_GROUP_KEYS).flatMap(([id, field]) => {
|
|
1357
|
+
const group = VOCABULARY.entries.find((entry) => entry.type === "group" && entry.id === id);
|
|
1358
|
+
if (!group?.enabledBy?.length || !group.sourceKey) throw new Error(`eKYC group "${id}" has no enabledBy or sourceKey in the vocabulary`);
|
|
1359
|
+
const enabledBy = group.enabledBy;
|
|
1360
|
+
return [{
|
|
1361
|
+
field,
|
|
1362
|
+
flags: enabledBy.filter((flag) => !flag.startsWith(RISK_ADDON_PREFIX)),
|
|
1363
|
+
riskAddons: enabledBy.filter((flag) => flag.startsWith(RISK_ADDON_PREFIX)).map((flag) => flag.slice(10)),
|
|
1364
|
+
sourceKey: group.sourceKey
|
|
1365
|
+
}];
|
|
1366
|
+
});
|
|
1367
|
+
/** Maps raw backend module config to a field-source mapping */
|
|
1368
|
+
function getEKYCFields(config) {
|
|
1369
|
+
const values = config;
|
|
1370
|
+
const riskAddons = config.riskAddons;
|
|
1371
|
+
const fields = {};
|
|
1372
|
+
for (const switches of FIELD_SWITCHES) {
|
|
1373
|
+
const on = switches.flags.some((flag) => values[flag]) || switches.riskAddons.some((addon) => riskAddons?.includes(addon));
|
|
1374
|
+
const source = values[switches.sourceKey];
|
|
1375
|
+
fields[switches.field] = on ? mapToEKYCvalue(typeof source === "string" ? source : "") : false;
|
|
1376
|
+
}
|
|
1377
|
+
return fields;
|
|
1378
|
+
}
|
|
1378
1379
|
/**
|
|
1379
1380
|
* Each verification field's display-mode key in module configuration, from
|
|
1380
1381
|
* the vocabulary's `displayModeKey` on its group.
|
|
@@ -1469,6 +1470,7 @@ function toEkycConfig(config) {
|
|
|
1469
1470
|
source,
|
|
1470
1471
|
fieldsCountry: getEKYCCountry(source),
|
|
1471
1472
|
enablePhoneRisk: config.enablePhoneRisk,
|
|
1473
|
+
...config.autoExecution === true && { autoExecution: true },
|
|
1472
1474
|
...Object.keys(displayModes).length > 0 && { displayModes }
|
|
1473
1475
|
};
|
|
1474
1476
|
}
|
|
@@ -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-BcE0XMrN.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,10 +1,12 @@
|
|
|
1
|
-
import { n as eventModuleNames
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
3
|
+
import { t as createManagerInstrumentation } from "./events-CP3yOzAl.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 {
|
|
7
|
-
import {
|
|
5
|
+
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-CtArBUt-.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";
|
|
9
|
+
import { t as externalFetch } from "./externalFetch-CQY41QT1.esm.js";
|
|
8
10
|
//#region src/modules/electronic-signature/electronicSignatureServices.ts
|
|
9
11
|
async function fetchUnsignedDocuments(signal) {
|
|
10
12
|
try {
|
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-CTEaYncs.esm.js";
|
|
2
|
+
import { t as createEmailManager } from "./emailManager-Co4jarT1.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-DYYMdAGv.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-CP3yOzAl.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-CTEaYncs.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-CZpuJuZl.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-BecGGZK8.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) {
|
|
@@ -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-DYYMdAGv.esm.js";
|
|
2
|
+
import { t as api } from "./api-CZpuJuZl.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";
|
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-DYYMdAGv.esm.js";
|
|
2
|
+
import { n as recordExperimentAssignmentOnce } from "./events-CP3yOzAl.esm.js";
|
|
2
3
|
export { addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, experimentAssigned, moduleClosed, moduleOpened, recordExperimentAssignmentOnce, screenClosed, screenEvent, screenOpened, stateChanged, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };
|