@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
package/dist/workflow.esm.js
CHANGED
|
@@ -1,48 +1,50 @@
|
|
|
1
|
-
import { n as eventModuleNames,
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { n as eventModuleNames, v as addEvent } 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";
|
|
4
|
+
import { u as trueSightLog } from "./trueSightService-BnQDjqUu.esm.js";
|
|
5
|
+
import { a as initializeSession, i as getSessionFingerprintResult } from "./sessionInitializer-CUCBGZ_s.esm.js";
|
|
6
|
+
import { E as updateFeatureManagementUser } from "./feature-management-SIBmKJs8.esm.js";
|
|
6
7
|
import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
|
|
7
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { i as toIncodeApiError } from "./apiError-CtArBUt-.esm.js";
|
|
9
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
10
|
+
import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
11
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
12
|
+
import { r as electronicSignatureMachine } from "./electronicSignatureManager-BcE0XMrN.esm.js";
|
|
11
13
|
import "./ae-signature.esm.js";
|
|
12
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
13
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
14
|
-
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-
|
|
15
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
16
|
-
import { t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
17
|
-
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-
|
|
18
|
-
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
19
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
14
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-BJ6PmCsw.esm.js";
|
|
15
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-DoK5RKIS.esm.js";
|
|
16
|
+
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-_EQcjGE3.esm.js";
|
|
17
|
+
import { t as consentMachine } from "./consentStateMachine-DgiIcT9q.esm.js";
|
|
18
|
+
import { t as curpValidationMachine } from "./curpValidationStateMachine-BQ8XK2Y3.esm.js";
|
|
19
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-r8nGhyo1.esm.js";
|
|
20
|
+
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-BYLb5Azk.esm.js";
|
|
21
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-CRq01QNK.esm.js";
|
|
20
22
|
import { o as toEkybConfig } from "./ekybUtils-Cw8Ta9Qi.esm.js";
|
|
21
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
22
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
23
|
-
import { l as toEkycConfig } from "./ekycUtils-
|
|
24
|
-
import { t as ekycPrefillMachine } from "./ekycPrefillStateMachine-
|
|
25
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
26
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
27
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
28
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
29
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
30
|
-
import { n as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-
|
|
31
|
-
import { n as identityReuseMachine } from "./identityReuseStateMachine-
|
|
32
|
-
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-
|
|
33
|
-
import { t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
34
|
-
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-
|
|
35
|
-
import { t as signatureMachine } from "./signatureStateMachine-
|
|
36
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
37
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-
|
|
38
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-
|
|
39
|
-
import { t as faceMatchMachine } from "./faceMatchStateMachine-
|
|
40
|
-
import { t as kybChecksMachine } from "./kybChecksStateMachine-
|
|
41
|
-
import {
|
|
42
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
43
|
-
import { n as isAdvanceableError } from "./advanceableErrors-
|
|
23
|
+
import { t as ekybMachine } from "./ekybStateMachine-DZxg8T0H.esm.js";
|
|
24
|
+
import { t as ekycMachine } from "./ekycStateMachine-nwJRel2s.esm.js";
|
|
25
|
+
import { l as toEkycConfig } from "./ekycUtils-FcqA6oU4.esm.js";
|
|
26
|
+
import { t as ekycPrefillMachine } from "./ekycPrefillStateMachine-CuWTVze1.esm.js";
|
|
27
|
+
import { t as emailMachine } from "./emailStateMachine-CTEaYncs.esm.js";
|
|
28
|
+
import { t as selfieMachine } from "./selfieStateMachine-CKXAmNkA.esm.js";
|
|
29
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-BGMkWF9t.esm.js";
|
|
30
|
+
import { t as phoneMachine } from "./phoneStateMachine-DKdY2Scx.esm.js";
|
|
31
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-Cx-6QAvu.esm.js";
|
|
32
|
+
import { n as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-BMWm5mcP.esm.js";
|
|
33
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-CLFjPp13.esm.js";
|
|
34
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BjuI72HZ.esm.js";
|
|
35
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-B832arAl.esm.js";
|
|
36
|
+
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-CMjjUXSu.esm.js";
|
|
37
|
+
import { t as signatureMachine } from "./signatureStateMachine-CVPmvU2p.esm.js";
|
|
38
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-oPgI5FIQ.esm.js";
|
|
39
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-wBunpfQ9.esm.js";
|
|
40
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-DeeugC00.esm.js";
|
|
41
|
+
import { t as faceMatchMachine } from "./faceMatchStateMachine-BuHt7kec.esm.js";
|
|
42
|
+
import { t as kybChecksMachine } from "./kybChecksStateMachine-CU0oIYDR.esm.js";
|
|
43
|
+
import { a as getTotalScoreStatus, i as getHandoffFinishStatus, r as getFinishStatus, t as HANDOFF_COMPLETION_TIMEOUT_MS } from "./flowCompletionService-BFCddN3G.esm.js";
|
|
44
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CJ_aQO92.esm.js";
|
|
45
|
+
import { n as isAdvanceableError } from "./advanceableErrors-CxZyPRyh.esm.js";
|
|
44
46
|
import "./qe-signature.esm.js";
|
|
45
|
-
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-
|
|
47
|
+
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-IWdxw1TW.esm.js";
|
|
46
48
|
//#region src/internal/orchestration/defaultModules.ts
|
|
47
49
|
/**
|
|
48
50
|
* Shared default module registry — single source of truth for module key → machine mappings.
|
|
@@ -311,12 +313,84 @@ function applyWorkflowNodeOverlays(moduleKey, config, skipFaceMatch) {
|
|
|
311
313
|
...config,
|
|
312
314
|
skipProcessFace: true
|
|
313
315
|
};
|
|
314
|
-
if (moduleKey === "FACE_MATCH"
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
if (moduleKey === "FACE_MATCH") {
|
|
317
|
+
const faceMatchConfig = config.idRank === "SECOND_ID" ? {
|
|
318
|
+
...config,
|
|
319
|
+
matchingType: "secondId"
|
|
320
|
+
} : config;
|
|
321
|
+
return skipFaceMatch ? {
|
|
322
|
+
...faceMatchConfig,
|
|
323
|
+
skipFaceMatch: true
|
|
324
|
+
} : faceMatchConfig;
|
|
325
|
+
}
|
|
318
326
|
return config;
|
|
319
327
|
}
|
|
328
|
+
const handoffCompletionMachine = setup({
|
|
329
|
+
types: {
|
|
330
|
+
context: {},
|
|
331
|
+
input: {},
|
|
332
|
+
output: {}
|
|
333
|
+
},
|
|
334
|
+
actors: {
|
|
335
|
+
readRedirect: fromPromise(({ signal }) => getHandoffFinishStatus(signal)),
|
|
336
|
+
readScore: fromPromise(({ input, signal }) => input(signal))
|
|
337
|
+
}
|
|
338
|
+
}).createMachine({
|
|
339
|
+
id: "handoffCompletion",
|
|
340
|
+
initial: "collecting",
|
|
341
|
+
context: ({ input }) => ({
|
|
342
|
+
...input,
|
|
343
|
+
finishStatus: void 0,
|
|
344
|
+
totalScoreStatus: void 0
|
|
345
|
+
}),
|
|
346
|
+
output: ({ context }) => ({
|
|
347
|
+
finishStatus: context.finishStatus,
|
|
348
|
+
totalScoreStatus: context.totalScoreStatus
|
|
349
|
+
}),
|
|
350
|
+
states: {
|
|
351
|
+
collecting: {
|
|
352
|
+
type: "parallel",
|
|
353
|
+
after: { [HANDOFF_COMPLETION_TIMEOUT_MS]: "#handoffCompletion.finished" },
|
|
354
|
+
onDone: "finished",
|
|
355
|
+
states: {
|
|
356
|
+
redirect: {
|
|
357
|
+
initial: "loading",
|
|
358
|
+
states: {
|
|
359
|
+
loading: { invoke: {
|
|
360
|
+
src: "readRedirect",
|
|
361
|
+
onDone: {
|
|
362
|
+
target: "finished",
|
|
363
|
+
actions: assign(({ event }) => ({ finishStatus: event.output }))
|
|
364
|
+
},
|
|
365
|
+
onError: "finished"
|
|
366
|
+
} },
|
|
367
|
+
finished: { type: "final" }
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
score: {
|
|
371
|
+
initial: "checking",
|
|
372
|
+
states: {
|
|
373
|
+
checking: { always: [{
|
|
374
|
+
target: "loading",
|
|
375
|
+
guard: ({ context }) => context.resolveScore
|
|
376
|
+
}, { target: "finished" }] },
|
|
377
|
+
loading: { invoke: {
|
|
378
|
+
src: "readScore",
|
|
379
|
+
input: ({ context }) => context.getTotalScoreStatus,
|
|
380
|
+
onDone: {
|
|
381
|
+
target: "finished",
|
|
382
|
+
actions: assign(({ event }) => ({ totalScoreStatus: event.output }))
|
|
383
|
+
},
|
|
384
|
+
onError: "finished"
|
|
385
|
+
} },
|
|
386
|
+
finished: { type: "final" }
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
finished: { type: "final" }
|
|
392
|
+
}
|
|
393
|
+
});
|
|
320
394
|
//#endregion
|
|
321
395
|
//#region src/modules/workflow/workflowStateMachine.ts
|
|
322
396
|
/**
|
|
@@ -348,6 +422,7 @@ const workflowMachine = setup({
|
|
|
348
422
|
input: {}
|
|
349
423
|
},
|
|
350
424
|
actors: {
|
|
425
|
+
resolveHandoffCompletion: handoffCompletionMachine,
|
|
351
426
|
loadWorkflow: fromPromise(({ input, signal }) => loadWorkflow(input, signal)),
|
|
352
427
|
processNextNode: fromPromise(({ input, signal }) => processNextNode(input, signal)),
|
|
353
428
|
handleCustomModule: fromPromise(({ input, signal }) => handleCustomModule(input, signal)),
|
|
@@ -443,7 +518,7 @@ const workflowMachine = setup({
|
|
|
443
518
|
isOnboardingFinishedSignal: ({ event }) => event.output?.action === "onboardingFinished",
|
|
444
519
|
isAdvanceableModuleError: ({ event }) => isAdvanceableError(event.moduleErrorCode),
|
|
445
520
|
shouldResolveScore: ({ context }) => context.workflowConfig?.showFinishScreenBySessionStatus === true,
|
|
446
|
-
|
|
521
|
+
isRedirectToMobileNode: ({ context }) => context.currentNode?.moduleKey === "REDIRECT_TO_MOBILE",
|
|
447
522
|
shouldEnterHome: ({ context, event }) => {
|
|
448
523
|
if (context.hasShownHome) return false;
|
|
449
524
|
const result = event.output;
|
|
@@ -474,6 +549,7 @@ const workflowMachine = setup({
|
|
|
474
549
|
registeredModules: input.modules,
|
|
475
550
|
configMappers: input.configMappers ?? {},
|
|
476
551
|
finishStatus: void 0,
|
|
552
|
+
completedOnMobile: false,
|
|
477
553
|
totalScoreStatus: void 0,
|
|
478
554
|
customModuleCallback: input.customModuleCallback,
|
|
479
555
|
interviewId: input.interviewId ?? "",
|
|
@@ -565,20 +641,13 @@ const workflowMachine = setup({
|
|
|
565
641
|
}
|
|
566
642
|
},
|
|
567
643
|
on: {
|
|
568
|
-
MODULE_COMPLETE: [
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
guard: "isOnboardingFinishedSignal"
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
target: "processingNode",
|
|
579
|
-
actions: ["persistSkipFaceMatch"]
|
|
580
|
-
}
|
|
581
|
-
],
|
|
644
|
+
MODULE_COMPLETE: [{
|
|
645
|
+
target: "resolvingHandoffCompletion",
|
|
646
|
+
guard: "isOnboardingFinishedSignal"
|
|
647
|
+
}, {
|
|
648
|
+
target: "processingNode",
|
|
649
|
+
actions: ["persistSkipFaceMatch"]
|
|
650
|
+
}],
|
|
582
651
|
MODULE_ERROR: [{
|
|
583
652
|
guard: "isAdvanceableModuleError",
|
|
584
653
|
target: "processingNode",
|
|
@@ -592,10 +661,17 @@ const workflowMachine = setup({
|
|
|
592
661
|
]
|
|
593
662
|
}],
|
|
594
663
|
COMPLETE_FLOW: "completing",
|
|
595
|
-
FINISH_WORKFLOW: [
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
664
|
+
FINISH_WORKFLOW: [
|
|
665
|
+
{
|
|
666
|
+
target: "resolvingHandoffCompletion",
|
|
667
|
+
guard: "isRedirectToMobileNode"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
target: "resolvingScore",
|
|
671
|
+
guard: "shouldResolveScore"
|
|
672
|
+
},
|
|
673
|
+
{ target: "finished" }
|
|
674
|
+
]
|
|
599
675
|
}
|
|
600
676
|
},
|
|
601
677
|
handlingCustomModule: { invoke: {
|
|
@@ -671,6 +747,21 @@ const workflowMachine = setup({
|
|
|
671
747
|
actions: "setError"
|
|
672
748
|
}
|
|
673
749
|
} },
|
|
750
|
+
resolvingHandoffCompletion: {
|
|
751
|
+
entry: assign({ completedOnMobile: true }),
|
|
752
|
+
invoke: {
|
|
753
|
+
src: "resolveHandoffCompletion",
|
|
754
|
+
input: ({ context }) => ({
|
|
755
|
+
resolveScore: context.workflowConfig?.showFinishScreenBySessionStatus === true,
|
|
756
|
+
getTotalScoreStatus: context.getTotalScoreStatus
|
|
757
|
+
}),
|
|
758
|
+
onDone: {
|
|
759
|
+
target: "finished",
|
|
760
|
+
actions: assign(({ event }) => event.output)
|
|
761
|
+
},
|
|
762
|
+
onError: "finished"
|
|
763
|
+
}
|
|
764
|
+
},
|
|
674
765
|
completing: { invoke: {
|
|
675
766
|
id: "notifyBackend",
|
|
676
767
|
src: "notifyBackend",
|
|
@@ -718,7 +809,13 @@ function createWorkflowActor(options) {
|
|
|
718
809
|
}
|
|
719
810
|
//#endregion
|
|
720
811
|
//#region src/internal/orchestration/identity-search/identitySearchStateMachine.ts
|
|
721
|
-
|
|
812
|
+
/**
|
|
813
|
+
* The Workflow's IDENTITY_SEARCH node does nothing in the SDK: the backend
|
|
814
|
+
* runs the search when the node is reported done on `process/node`. Flows run
|
|
815
|
+
* the search themselves, with the machine in `modules/identity-search/` —
|
|
816
|
+
* registering this one in a Flow would skip the search.
|
|
817
|
+
*/
|
|
818
|
+
const workflowIdentitySearchMachine = setup({ types: {
|
|
722
819
|
context: {},
|
|
723
820
|
input: {}
|
|
724
821
|
} }).createMachine({
|
|
@@ -731,7 +828,7 @@ const identitySearchMachine = setup({ types: {
|
|
|
731
828
|
//#region src/modules/workflow/workflowManager.ts
|
|
732
829
|
const WORKFLOW_DEFAULT_MODULES = {
|
|
733
830
|
...DEFAULT_MODULE_REGISTRY,
|
|
734
|
-
IDENTITY_SEARCH:
|
|
831
|
+
IDENTITY_SEARCH: workflowIdentitySearchMachine,
|
|
735
832
|
ID_CAPTURE: idCaptureMachine,
|
|
736
833
|
ID: idVerificationMachine,
|
|
737
834
|
REDIRECT_TO_MOBILE: redirectToMobileMachine
|
|
@@ -785,7 +882,8 @@ function mapState(snapshot) {
|
|
|
785
882
|
status: "finished",
|
|
786
883
|
workflowConfig: context.workflowConfig,
|
|
787
884
|
finishStatus,
|
|
788
|
-
scoreStatus: context.totalScoreStatus ?? finishStatus.scoreStatus
|
|
885
|
+
scoreStatus: context.totalScoreStatus ?? finishStatus.scoreStatus,
|
|
886
|
+
...context.completedOnMobile ? { completedOnMobile: true } : {}
|
|
789
887
|
};
|
|
790
888
|
}
|
|
791
889
|
if (snapshot.matches("asyncResolution")) return {
|
|
@@ -800,7 +898,7 @@ function mapState(snapshot) {
|
|
|
800
898
|
errorCode: context.errorCode,
|
|
801
899
|
moduleErrorCode: context.moduleErrorCode
|
|
802
900
|
};
|
|
803
|
-
if (snapshot.matches("completing")) return {
|
|
901
|
+
if (snapshot.matches("completing") || snapshot.matches("resolvingHandoffCompletion")) return {
|
|
804
902
|
status: "completing",
|
|
805
903
|
homeScreen
|
|
806
904
|
};
|
|
@@ -1,127 +1,3 @@
|
|
|
1
|
-
//#region ../infra/src/manager/Manager.ts
|
|
2
|
-
/**
|
|
3
|
-
* Creates a manager that wraps a state machine actor with a clean public API.
|
|
4
|
-
*
|
|
5
|
-
* The manager provides:
|
|
6
|
-
* - `getState()` - Returns the mapped public state
|
|
7
|
-
* - `subscribe()` - Listen to state changes
|
|
8
|
-
* - `stop()` - Stop the actor
|
|
9
|
-
* - Plus any custom API methods from `createApi`
|
|
10
|
-
*
|
|
11
|
-
* @template TMachine - The state machine type
|
|
12
|
-
* @template TMapState - Function type that maps raw snapshot to public state
|
|
13
|
-
* @template TCreateApi - Function type that creates the custom API
|
|
14
|
-
*
|
|
15
|
-
* @param options - Configuration options
|
|
16
|
-
* @param options.actor - The started actor instance
|
|
17
|
-
* @param options.mapState - Function to transform raw snapshot into public state
|
|
18
|
-
* @param options.createApi - Factory function to create custom API methods
|
|
19
|
-
*
|
|
20
|
-
* @returns Combined manager with base methods and custom API
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* const manager = createManager({
|
|
25
|
-
* actor: createActor(myMachine).start(),
|
|
26
|
-
* mapState: (snapshot) => ({ status: snapshot.value }),
|
|
27
|
-
* createApi: ({ actor }) => ({
|
|
28
|
-
* doSomething() { actor.send({ type: 'DO_IT' }); }
|
|
29
|
-
* }),
|
|
30
|
-
* });
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
function createManager(options) {
|
|
34
|
-
const { actor, mapState, createApi, instrumentation } = options;
|
|
35
|
-
function getSnapshot() {
|
|
36
|
-
return actor.getSnapshot();
|
|
37
|
-
}
|
|
38
|
-
function getState() {
|
|
39
|
-
return mapState(getSnapshot());
|
|
40
|
-
}
|
|
41
|
-
function subscribe(listener) {
|
|
42
|
-
const subscription = actor.subscribe(() => {
|
|
43
|
-
listener(getState());
|
|
44
|
-
});
|
|
45
|
-
return () => subscription.unsubscribe();
|
|
46
|
-
}
|
|
47
|
-
let currentScreenName = instrumentation?.getScreenName(getSnapshot());
|
|
48
|
-
let currentStateName = instrumentation?.getStateName?.(getSnapshot());
|
|
49
|
-
let currentErrorName = instrumentation?.getErrorName(getSnapshot());
|
|
50
|
-
let currentErrorPayload = instrumentation?.getErrorPayload(getSnapshot());
|
|
51
|
-
const api = createApi({
|
|
52
|
-
actor,
|
|
53
|
-
getSnapshot,
|
|
54
|
-
trackElementClicked: instrumentation ? (elementName, payload) => {
|
|
55
|
-
instrumentation.onElementClicked?.(instrumentation.moduleName, currentStateName ?? currentScreenName, {
|
|
56
|
-
element: elementName,
|
|
57
|
-
action: payload?.action,
|
|
58
|
-
metadata: payload?.metadata
|
|
59
|
-
});
|
|
60
|
-
} : void 0,
|
|
61
|
-
trackCaptureAttemptFinished: instrumentation ? (payload) => {
|
|
62
|
-
instrumentation.onCaptureAttemptFinished?.(instrumentation.moduleName, currentStateName ?? currentScreenName, { logs: payload.logs });
|
|
63
|
-
} : void 0
|
|
64
|
-
});
|
|
65
|
-
instrumentation?.onModuleOpened(instrumentation.moduleName);
|
|
66
|
-
if (instrumentation && currentScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, currentScreenName);
|
|
67
|
-
if (instrumentation && currentErrorName !== void 0) instrumentation.onErrorTriggered(instrumentation.moduleName, currentErrorName, currentScreenName, currentErrorPayload);
|
|
68
|
-
let lastVisible = instrumentation?.getInitialVisibility?.();
|
|
69
|
-
if (instrumentation && lastVisible === false) instrumentation.onBackground?.(instrumentation.moduleName, currentScreenName);
|
|
70
|
-
const stopVisibility = instrumentation?.subscribeVisibility?.((visible) => {
|
|
71
|
-
if (visible === lastVisible) return;
|
|
72
|
-
lastVisible = visible;
|
|
73
|
-
if (visible) instrumentation.onForeground?.(instrumentation.moduleName, currentScreenName);
|
|
74
|
-
else instrumentation.onBackground?.(instrumentation.moduleName, currentScreenName);
|
|
75
|
-
});
|
|
76
|
-
const actorSubscription = instrumentation ? actor.subscribe((snapshot) => {
|
|
77
|
-
const nextScreenName = instrumentation.getScreenName(snapshot);
|
|
78
|
-
const nextErrorName = instrumentation.getErrorName(snapshot);
|
|
79
|
-
const nextErrorPayload = instrumentation.getErrorPayload(snapshot);
|
|
80
|
-
const nextStateName = instrumentation.getStateName?.(snapshot);
|
|
81
|
-
if (currentScreenName === nextScreenName) {
|
|
82
|
-
const previousStateName = currentStateName;
|
|
83
|
-
currentStateName = nextStateName;
|
|
84
|
-
if (currentScreenName !== void 0 && nextStateName !== void 0 && nextStateName !== previousStateName) instrumentation.onStateChanged?.(instrumentation.moduleName, currentScreenName, nextStateName);
|
|
85
|
-
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, currentScreenName, nextErrorPayload);
|
|
86
|
-
currentErrorName = nextErrorName;
|
|
87
|
-
currentErrorPayload = nextErrorPayload;
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
if (currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
|
|
91
|
-
if (nextScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, nextScreenName);
|
|
92
|
-
currentScreenName = nextScreenName;
|
|
93
|
-
currentStateName = nextStateName;
|
|
94
|
-
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, nextScreenName, nextErrorPayload);
|
|
95
|
-
currentErrorName = nextErrorName;
|
|
96
|
-
currentErrorPayload = nextErrorPayload;
|
|
97
|
-
}) : void 0;
|
|
98
|
-
let isStopped = false;
|
|
99
|
-
return Object.defineProperties({
|
|
100
|
-
getState,
|
|
101
|
-
subscribe,
|
|
102
|
-
stop() {
|
|
103
|
-
if (isStopped) return;
|
|
104
|
-
isStopped = true;
|
|
105
|
-
try {
|
|
106
|
-
if (actor.getSnapshot().status === "active") options.beforeStop?.();
|
|
107
|
-
} finally {
|
|
108
|
-
try {
|
|
109
|
-
actorSubscription?.unsubscribe();
|
|
110
|
-
stopVisibility?.();
|
|
111
|
-
if (instrumentation && currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
|
|
112
|
-
currentScreenName = void 0;
|
|
113
|
-
currentStateName = void 0;
|
|
114
|
-
currentErrorName = void 0;
|
|
115
|
-
currentErrorPayload = void 0;
|
|
116
|
-
instrumentation?.onModuleClosed(instrumentation.moduleName);
|
|
117
|
-
} finally {
|
|
118
|
-
actor.stop();
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}, Object.getOwnPropertyDescriptors(api));
|
|
123
|
-
}
|
|
124
|
-
//#endregion
|
|
125
1
|
//#region ../../node_modules/.pnpm/xstate@5.24.0/node_modules/xstate/dev/dist/xstate-dev.esm.js
|
|
126
2
|
function getGlobal() {
|
|
127
3
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
@@ -2990,4 +2866,4 @@ function setup({ schemas, actors, actions, guards, delays }) {
|
|
|
2990
2866
|
};
|
|
2991
2867
|
}
|
|
2992
2868
|
//#endregion
|
|
2993
|
-
export { XSTATE_STOP as a, not as c, assign as i, raise as l, enqueueActions as n, and as o, sendTo as r, createActor as s, setup as t
|
|
2869
|
+
export { XSTATE_STOP as a, not as c, assign as i, raise as l, enqueueActions as n, and as o, sendTo as r, createActor as s, setup as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0-rc.0",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -125,6 +125,11 @@
|
|
|
125
125
|
"types": "./dist/identity-reuse.d.ts",
|
|
126
126
|
"import": "./dist/identity-reuse.esm.js"
|
|
127
127
|
},
|
|
128
|
+
"./identity-search": {
|
|
129
|
+
"source": "./src/modules/identity-search/index.ts",
|
|
130
|
+
"types": "./dist/identity-search.d.ts",
|
|
131
|
+
"import": "./dist/identity-search.esm.js"
|
|
132
|
+
},
|
|
128
133
|
"./ekyc": {
|
|
129
134
|
"source": "./src/modules/ekyc/index.ts",
|
|
130
135
|
"types": "./dist/ekyc.d.ts",
|
|
@@ -230,11 +235,6 @@
|
|
|
230
235
|
"types": "./dist/workflow.d.ts",
|
|
231
236
|
"import": "./dist/workflow.esm.js"
|
|
232
237
|
},
|
|
233
|
-
"./step-up": {
|
|
234
|
-
"source": "./src/modules/step-up/index.ts",
|
|
235
|
-
"types": "./dist/step-up.d.ts",
|
|
236
|
-
"import": "./dist/step-up.esm.js"
|
|
237
|
-
},
|
|
238
238
|
"./cross-document-data-match": {
|
|
239
239
|
"source": "./src/modules/cross-document-data-match/index.ts",
|
|
240
240
|
"types": "./dist/cross-document-data-match.d.ts",
|
|
@@ -291,9 +291,9 @@
|
|
|
291
291
|
"tsdown": "^0.22.8",
|
|
292
292
|
"typescript": "^5.9.3",
|
|
293
293
|
"vitest": "4.1.10",
|
|
294
|
+
"@incodetech/config": "1.0.2",
|
|
294
295
|
"@incodetech/form-definitions": "0.0.0",
|
|
295
|
-
"@incodetech/infra": "1.5.0"
|
|
296
|
-
"@incodetech/config": "1.0.2"
|
|
296
|
+
"@incodetech/infra": "1.5.0"
|
|
297
297
|
},
|
|
298
298
|
"scripts": {
|
|
299
299
|
"build": "tsdown -c tsdown.config.ts && pnpm check:dist-types",
|
package/dist/Actor-DpTj5PFb.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./Manager-C9T5amUN.js";
|
package/dist/index-DpTj5PFb.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./Manager-C9T5amUN.js";
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
//#region src/shared/validators/nationalIds.ts
|
|
2
|
-
/**
|
|
3
|
-
* The national ID rules from `vocabulary.json`: `rut`, `esDni`,
|
|
4
|
-
* `fiPersonalIdentityCode`, `inDrivingLicenseNumber` and `curp`. Each accepts
|
|
5
|
-
* the usual punctuation and either letter case.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Chilean RUT/RUN: a 7- or 8-digit body and a check character, 0-9 or K,
|
|
9
|
-
* computed modulo 11. Dots, a hyphen and spaces are ignored
|
|
10
|
-
* (`12.345.678-5`, `12345678-5`, `123456785`).
|
|
11
|
-
*/
|
|
12
|
-
function isValidRut(value) {
|
|
13
|
-
const rut = value.replace(/[.\s-]/g, "").toUpperCase();
|
|
14
|
-
const match = /^([0-9]{7,8})([0-9K])$/.exec(rut);
|
|
15
|
-
if (!match) return false;
|
|
16
|
-
const [, body, check] = match;
|
|
17
|
-
let sum = 0;
|
|
18
|
-
let factor = 2;
|
|
19
|
-
for (let i = body.length - 1; i >= 0; i--) {
|
|
20
|
-
sum += Number(body[i]) * factor;
|
|
21
|
-
factor = factor === 7 ? 2 : factor + 1;
|
|
22
|
-
}
|
|
23
|
-
const rest = 11 - sum % 11;
|
|
24
|
-
return check === (rest === 11 ? "0" : rest === 10 ? "K" : String(rest));
|
|
25
|
-
}
|
|
26
|
-
const DNI_LETTERS = "TRWAGMYFPDXBNJZSQVHLCKE";
|
|
27
|
-
/**
|
|
28
|
-
* Spanish DNI: 8 digits and the check letter for their value modulo 23
|
|
29
|
-
* (`12345678Z`). A space or hyphen before the letter is ignored. NIEs, the
|
|
30
|
-
* foreigners' IDs, are not DNIs and fail.
|
|
31
|
-
*/
|
|
32
|
-
function isValidEsDni(value) {
|
|
33
|
-
const dni = value.replace(/[\s-]/g, "").toUpperCase();
|
|
34
|
-
const match = /^([0-9]{8})([A-Z])$/.exec(dni);
|
|
35
|
-
if (!match) return false;
|
|
36
|
-
const [, digits, letter] = match;
|
|
37
|
-
return DNI_LETTERS[Number(digits) % 23] === letter;
|
|
38
|
-
}
|
|
39
|
-
const FI_CHECK_CHARACTERS = "0123456789ABCDEFHJKLMNPRSTUVWXY";
|
|
40
|
-
/** The first year of each century sign; the 2023 reform added Y-U and B-F. */
|
|
41
|
-
const FI_CENTURY = {
|
|
42
|
-
"+": 1800,
|
|
43
|
-
"-": 1900,
|
|
44
|
-
Y: 1900,
|
|
45
|
-
X: 1900,
|
|
46
|
-
W: 1900,
|
|
47
|
-
V: 1900,
|
|
48
|
-
U: 1900,
|
|
49
|
-
A: 2e3,
|
|
50
|
-
B: 2e3,
|
|
51
|
-
C: 2e3,
|
|
52
|
-
D: 2e3,
|
|
53
|
-
E: 2e3,
|
|
54
|
-
F: 2e3
|
|
55
|
-
};
|
|
56
|
-
const isLeapYear = (year) => year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
|
|
57
|
-
const daysInMonth = (year, month) => month === 2 ? isLeapYear(year) ? 29 : 28 : [
|
|
58
|
-
4,
|
|
59
|
-
6,
|
|
60
|
-
9,
|
|
61
|
-
11
|
|
62
|
-
].includes(month) ? 30 : 31;
|
|
63
|
-
/**
|
|
64
|
-
* Finnish personal identity code (henkilötunnus): `DDMMYY`, a century sign,
|
|
65
|
-
* a 3-digit individual number and a check character for the 9 digits modulo
|
|
66
|
-
* 31 (`131052-308T`). The date must exist.
|
|
67
|
-
*/
|
|
68
|
-
function isValidFiPersonalIdentityCode(value) {
|
|
69
|
-
const match = /^([0-9]{2})([0-9]{2})([0-9]{2})([-+A-FU-Y])([0-9]{3})([0-9A-Y])$/.exec(value.trim().toUpperCase());
|
|
70
|
-
if (!match) return false;
|
|
71
|
-
const [, dd, mm, yy, sign, individual, check] = match;
|
|
72
|
-
const year = FI_CENTURY[sign] + Number(yy);
|
|
73
|
-
const month = Number(mm);
|
|
74
|
-
const day = Number(dd);
|
|
75
|
-
if (month < 1 || month > 12 || day < 1 || day > daysInMonth(year, month)) return false;
|
|
76
|
-
return FI_CHECK_CHARACTERS[Number(`${dd}${mm}${yy}${individual}`) % 31] === check;
|
|
77
|
-
}
|
|
78
|
-
const IN_DRIVING_LICENSE_REGEX = /^[A-Z]{2}[-\s]?[0-9]{2}(?:[0-9]{2})?[-\s]?(?:19|20)[0-9]{2}[-\s]?[0-9]{7}$/i;
|
|
79
|
-
/**
|
|
80
|
-
* Indian driving licence number format, `SS-RR[RR]-YYYY-NNNNNNN`, with or
|
|
81
|
-
* without hyphens (`MH-12-2011-0012345`, `MH1220110012345`). Format only:
|
|
82
|
-
* the number has no check digit.
|
|
83
|
-
*/
|
|
84
|
-
function isValidInDrivingLicenseNumber(value) {
|
|
85
|
-
return IN_DRIVING_LICENSE_REGEX.test(value.trim());
|
|
86
|
-
}
|
|
87
|
-
const CURP_PATTERN = /^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HMX](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/;
|
|
88
|
-
/**
|
|
89
|
-
* Mexican CURP layout: 4 letters (the second a vowel or X), a YYMMDD birth
|
|
90
|
-
* date, H, M or X for sex, a state code (NE for born abroad), 3 consonants, a
|
|
91
|
-
* letter or digit, and a final digit. Format only: the check digit isn't
|
|
92
|
-
* computed, as in SDK1 (see "Gaps" in the eKYC drafts README for how to add
|
|
93
|
-
* it). The CURP module checks the same layout.
|
|
94
|
-
*/
|
|
95
|
-
function isValidCurp(curp) {
|
|
96
|
-
return typeof curp === "string" && curp.length === 18 && CURP_PATTERN.test(curp.toUpperCase());
|
|
97
|
-
}
|
|
98
|
-
//#endregion
|
|
99
|
-
export { isValidRut as a, isValidInDrivingLicenseNumber as i, isValidEsDni as n, isValidFiPersonalIdentityCode as r, isValidCurp as t };
|