@incodetech/core 2.4.1-agentic.1 → 2.4.1-agentic.11
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/DateFormattingProvider-DPq9zco-.esm.js +25 -0
- package/dist/{FaceDetectionProvider-CAY43vSI.esm.js → FaceDetectionProvider-2NzWDbV8.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-D9mauUdS.esm.js → MultipartRecordingProvider-CduV32Qa.esm.js} +6 -1
- package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-ixfy84ys.d.ts} +2 -2
- package/dist/{WasmUtilProvider-Dp2V-Uct.esm.js → WasmUtilProvider-DdhAHHw4.esm.js} +42 -6
- package/dist/{WorkerEncoderRecordingProvider-B1ODYtgN.esm.js → WorkerEncoderRecordingProvider-CsDED9UU.esm.js} +1 -1
- package/dist/addressSearch-Rxm1K67A.esm.js +73 -0
- 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-BObuHBjn.esm.js → antifraudManager-DKNOi9-z.esm.js} +5 -3
- package/dist/{antifraudStateMachine-Dfrd2-26.esm.js → antifraudStateMachine-BJ6PmCsw.esm.js} +3 -3
- package/dist/{api-CpP4PS4S.esm.js → api-CZpuJuZl.esm.js} +3 -1
- package/dist/{apiError-DH-CH4Nz.esm.js → apiError-BamZ815u.esm.js} +1 -1
- package/dist/{attemptCarry-WOkfvFMw.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-CWmh7aSY.d.ts → authenticationManager-DRaugLgH.d.ts} +2 -2
- package/dist/{authenticationManager-DjX0XDyH.esm.js → authenticationManager-yBVGiIf_.esm.js} +7 -6
- package/dist/{authenticationStateMachine-BMbZL8wm.esm.js → authenticationStateMachine-DPqTOJPp.esm.js} +50 -18
- package/dist/avatar.d.ts +1 -1
- package/dist/{browser-pQZA35G2-DtkAf6sn.esm.js → browser-pQZA35G2-DxIBykpe.esm.js} +1 -1
- 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-C1nETQos.esm.js → certificateIssuanceManager-Dxl9UwR0.esm.js} +5 -3
- package/dist/{certificateIssuanceStateMachine-DThXMDqr.esm.js → certificateIssuanceStateMachine-CM4q71h1.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-bjfVXO7p.d.ts → consentManager-B2F_VeAo.d.ts} +12 -11
- package/dist/{consentManager-DMlSL6Ax.esm.js → consentManager-BPocwpm2.esm.js} +5 -3
- package/dist/{consentStateMachine-DIYSMxKQ.esm.js → consentStateMachine-DgiIcT9q.esm.js} +3 -3
- package/dist/cpf-DDXMTLYr.esm.js +37 -0
- 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-BFTdiEDB.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-DNpC3wyf.esm.js → curpValidationManager-CbvBDoE1.esm.js} +6 -4
- package/dist/{curpValidationManager-z8428oCM.d.ts → curpValidationManager-Ci2iVuog.d.ts} +4 -4
- package/dist/{curpValidationStateMachine-B3iVsDyt.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-CvI-pDT3.esm.js → customFieldsManager-BRqSCR9R.esm.js} +6 -4
- package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
- package/dist/{customWatchlistManager-BuHtUb0y.esm.js → customWatchlistManager-Bd1ooIDB.esm.js} +5 -3
- package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
- package/dist/{customWatchlistStateMachine-CiVD9wyF.esm.js → customWatchlistStateMachine-r8nGhyo1.esm.js} +3 -3
- package/dist/{deepsightLoader-B7DEYoyY.esm.js → deepsightLoader-CEY2mSPM.esm.js} +5 -5
- package/dist/{addressSearch-DzbE9Ogt.esm.js → definitionSource-Nw0YCbpe.esm.js} +39 -72
- package/dist/{desktopCameraElection-BGMtYwk3.esm.js → desktopCameraElection-enVPfRsQ.esm.js} +5 -5
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-CD5iQiUI.d.ts → documentCaptureManager-BZBmcOKI.d.ts} +4 -3
- package/dist/{documentCaptureManager-DLPqruXJ.esm.js → documentCaptureManager-C11k5BO-.esm.js} +5 -3
- package/dist/{documentCaptureStateMachine-DCvWQhFG.esm.js → documentCaptureStateMachine-g0gfL0_1.esm.js} +6 -6
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DfqCEPg9.esm.js → dynamicFormsManager-BmfCZ2zV.esm.js} +5 -3
- package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
- package/dist/{dynamicFormsStateMachine-USQMB-uV.esm.js → dynamicFormsStateMachine-B-eYytau.esm.js} +4 -4
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-CR8YSYux.esm.js → ekybManager-BPaMfbgw.esm.js} +5 -3
- package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
- package/dist/{ekybStateMachine-kHwdz6hm.esm.js → ekybStateMachine-C_lEw4I7.esm.js} +19 -19
- package/dist/ekyc-prefill.d.ts +17 -0
- package/dist/ekyc-prefill.esm.js +3 -0
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-DlGIn9wA.d.ts → ekycManager-BKVQazAb.d.ts} +48 -7
- package/dist/{ekycManager-DymCvmVB.esm.js → ekycManager-nRT0rxei.esm.js} +39 -16
- package/dist/ekycPrefillManager-CCtbmrFd.esm.js +103 -0
- package/dist/ekycPrefillManager-DOTl3Y2w.d.ts +566 -0
- package/dist/ekycPrefillStateMachine-XpxgCAoC.esm.js +687 -0
- package/dist/ekycRules-DXP2hqVw.esm.js +479 -0
- package/dist/{ekycStateMachine-CoFCUJ2z.esm.js → ekycStateMachine-nwJRel2s.esm.js} +915 -596
- package/dist/{ekycUtils-GRuMELYr.esm.js → ekycUtils-FcqA6oU4.esm.js} +68 -49
- 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-BCE3uA3z.esm.js → electronicSignatureManager-M2O2VDks.esm.js} +8 -6
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-CGoE3CUe.esm.js → emailManager-Co4jarT1.esm.js} +5 -3
- package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
- package/dist/{emailStateMachine-KgHfDNvM.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 +43 -42
- package/dist/extensibility.esm.js +39 -38
- package/dist/{externalFetch-CQY41QT1.esm.js → externalFetch-cUjJYyXj.esm.js} +1 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-Dp90bedH.esm.js → faceCaptureManagerFactory-3Or5qfbA.esm.js} +17 -6
- package/dist/{faceCaptureManagerFactory-DV2ULUYS.d.ts → faceCaptureManagerFactory-CRGajjZ4.d.ts} +18 -11
- package/dist/{faceCaptureSetup-ZfiWg0fo.esm.js → faceCaptureSetup-Cf87i0rT.esm.js} +46 -38
- package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-C5b5WtcY.d.ts} +12 -5
- package/dist/{faceMatchManager-D2xKPjjQ.esm.js → faceMatchManager-CGmNGbov.esm.js} +5 -3
- package/dist/{faceMatchStateMachine-CUvwiQi9.esm.js → faceMatchStateMachine-BuHt7kec.esm.js} +44 -18
- package/dist/{feature-management-BbCIA4og.esm.js → feature-management-DG016L6E.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-DgDbEeFZ.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-BZeklojR.esm.js → fiscalQrManager-DOLq45ph.esm.js} +6 -4
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +71 -20
- package/dist/flow.esm.js +285 -68
- package/dist/{flowCompletionService-CcCnPs_T.esm.js → flowCompletionService-BpeAbbXc.esm.js} +24 -3
- package/dist/{flowServices-Dmnc8Rye.esm.js → flowServices-rDg1bAMs.esm.js} +393 -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-BJJ3m_I8.esm.js → geolocationManager-T8m4lqvF.esm.js} +5 -3
- package/dist/{geolocationStateMachine-CTI3m4Ie.esm.js → geolocationStateMachine-NWmA1Dtn.esm.js} +5 -5
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-CjChjZ3C.esm.js → governmentValidationManager-6JQQkzha.esm.js} +5 -3
- package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
- package/dist/{governmentValidationStateMachine-AEbn3Afi.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 +2 -2
- package/dist/id-ocr.esm.js +3 -19
- 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-Cjesf5i9.esm.js} +3 -3
- package/dist/{idCaptureManager-B3oR4RnA.esm.js → idCaptureManager-5-ReVgbB.esm.js} +12 -10
- package/dist/{idCaptureManager-CCA2D1Ah.d.ts → idCaptureManager-Cqx2y_fC.d.ts} +12 -11
- package/dist/{idCaptureServices-DK0QboqT.esm.js → idCaptureServices-exB6I9lV.esm.js} +7 -7
- package/dist/{idCaptureStateMachine-zzar9MPy.esm.js → idCaptureStateMachine-DQ14d3GR.esm.js} +51 -21
- package/dist/idOcrCpfUtils-D5Gwskxu.esm.js +18 -0
- package/dist/{idOcrManager-BTdHlJ9D.d.ts → idOcrManager-C0C7lFGd.d.ts} +6 -5
- package/dist/{idOcrManager-xyEZNOBa.esm.js → idOcrManager-im7VfJQi.esm.js} +5 -3
- package/dist/{idOcrStateMachine-DNKXh4Rn.esm.js → idOcrStateMachine-B832arAl.esm.js} +10 -9
- package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
- package/dist/{idVerificationManager-DdnvYfgN.esm.js → idVerificationManager-PMGM4hXY.esm.js} +5 -3
- package/dist/{idVerificationStateMachine-DtIBCa32.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-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
- package/dist/{identityReuseManager-CcpovlfD.esm.js → identityReuseManager-CjFZ7WRa.esm.js} +9 -4
- package/dist/{identityReuseStateMachine-DxZFWy47.esm.js → identityReuseStateMachine-CLFjPp13.esm.js} +22 -25
- package/dist/index-DHuAkTe0.d.ts +1 -0
- package/dist/{index-DEfwds5y.d.ts → index-DM43R87x.d.ts} +43 -19
- package/dist/{index-DC0P2Vzw.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-BJ0GVHGr.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-DpGOp4Su.esm.js → kybChecksManager-CZfdCkLC.esm.js} +3 -2
- package/dist/{kybChecksStateMachine-B43NAnv7.esm.js → kybChecksStateMachine-DkWxSU4L.esm.js} +9 -7
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-B88Sm5nd.d.ts → mandatoryConsentManager-Bh1asNJh.d.ts} +24 -14
- package/dist/{mandatoryConsentManager-B4vCYslr.esm.js → mandatoryConsentManager-Dh3pBhOe.esm.js} +5 -3
- package/dist/{mandatoryConsentStateMachine-DWslYPA3.esm.js → mandatoryConsentStateMachine-BjuI72HZ.esm.js} +13 -7
- package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-g1TwTlhd.esm.js} +20 -3
- package/dist/{multipartRecordingService-BTqkHGG9.esm.js → multipartRecordingService-WgK8ieRI.esm.js} +2 -2
- package/dist/{permissionGuards-DFV-Ws0a.esm.js → permissionGuards-D-4_VU7-.esm.js} +1 -1
- package/dist/{permissionServices-D190ATGD.esm.js → permissionServices-DpccEnzE.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-Dy5tODCU.esm.js → phoneManager-rA7updqF.esm.js} +5 -3
- package/dist/{phoneServices-DJgyOzU2.esm.js → phoneServices-CFXcwCFr.esm.js} +1 -1
- package/dist/{phoneStateMachine-DnlPhnw7.esm.js → phoneStateMachine-DKdY2Scx.esm.js} +4 -4
- package/dist/{processFaceMatch-Bst83HaS.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-CTko6Cjn.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-CgGaT2NP.esm.js → redirectToMobileManager-DTB_pWuS.esm.js} +6 -4
- package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +3 -3
- package/dist/{redirectToMobileStateMachine-CbhN8uVN.esm.js → redirectToMobileStateMachine-nP9DM01_.esm.js} +4 -4
- package/dist/{resolveForm-O7-r79VA.esm.js → resolveForm-DaaQSVWp.esm.js} +8 -213
- package/dist/{runChildModule-BffFArwl.esm.js → runChildModule-CXLcOcXN.esm.js} +8 -6
- package/dist/{sdkVersion-CDd_gaR7.esm.js → sdkVersion-fqxsdqFZ.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +13 -12
- package/dist/{selfieErrorUtils-f4MgAG2A.esm.js → selfieErrorUtils-MOfYdGPz.esm.js} +1 -1
- package/dist/{selfieManager-DmZFzs1-.d.ts → selfieManager-DihwheJ6.d.ts} +2 -2
- package/dist/{selfieManager-hopelYEk.esm.js → selfieManager-Dq8tIqGd.esm.js} +7 -6
- package/dist/{selfieStateMachine-DaZIVv3Q.esm.js → selfieStateMachine-BZVDQB8R.esm.js} +5 -5
- package/dist/{session-CdSX4wsZ.esm.js → session-C7x_iJ-p.esm.js} +4 -4
- package/dist/session.d.ts +2 -2
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-DsL7X2j9.esm.js → sessionInitializer-k-hKIBg8.esm.js} +21 -9
- package/dist/{setup-DDahygZs.esm.js → setup-BRbhjHiU.esm.js} +13 -15
- package/dist/{setup-D9qt8YVU.d.ts → setup-CpXbdA1X.d.ts} +2 -2
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-CwqjcxPg.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-DBVDd1Eu.esm.js → signatureStateMachine-CVPmvU2p.esm.js} +3 -3
- package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
- package/dist/{stats-CatA2dea.esm.js → stats-DoByUnTa.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/step-up.d.ts +379 -0
- package/dist/step-up.esm.js +640 -0
- package/dist/{tri-DG6priFa.esm.js → tri-CI2exudk.esm.js} +29 -34
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-CxLWmTZk.esm.js +2287 -0
- package/dist/tri.esm.js +2 -2
- package/dist/{trueSightService-GuLthUVK.esm.js → trueSightService-DhW2O8mB.esm.js} +7 -4
- package/dist/trust-graph.d.ts +4 -3
- package/dist/trust-graph.esm.js +5 -3
- package/dist/{types-BEVHQbbC.d.ts → types-9wlf1-GE.d.ts} +3 -3
- package/dist/types-B-PIc0en.d.ts +115 -0
- package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
- package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
- package/dist/types-CE1jkHw3.d.ts +6 -0
- package/dist/{types-BPm1JSu7.d.ts → types-Cpdum4vi.d.ts} +5 -5
- package/dist/{types-CuMJ2M7D.d.ts → types-DEa3taWc.d.ts} +8 -1
- package/dist/{types-Csh8vzPo.d.ts → types-DFP7eSle.d.ts} +1 -1
- package/dist/{types-Cd0J0F9D.d.ts → types-DJPU3W2M.d.ts} +3 -2
- package/dist/{events-ggpBBaZ8.esm.js → types-DYYMdAGv.esm.js} +3 -298
- package/dist/{types-CRaFu6wS.d.ts → types-Ddc4Tr_f.d.ts} +37 -4
- package/dist/{urlUtils-eYiyWjh0.esm.js → urlUtils-B2wagB5v.esm.js} +14 -1
- package/dist/usStates-CwOQ2kAx.esm.js +209 -0
- package/dist/video-selfie.d.ts +9 -7
- package/dist/video-selfie.esm.js +14 -13
- package/dist/{videoSelfieCameraWarmer-e3irGfcO.esm.js → videoSelfieCameraWarmer-YwO_uP-b.esm.js} +14 -12
- package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-Dv3Mgws-.d.ts → videoSelfieStepDetector-DRrh4P0A.d.ts} +4 -4
- package/dist/{warmup-DtB0DJpl.esm.js → warmup-9iKKNNuW.esm.js} +46 -4
- package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
- package/dist/wasm.d.ts +9 -3
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-BtiR5pig.esm.js → wasmDsFlagSync-D_6e8W62.esm.js} +1 -1
- package/dist/{wasmWebClient-BDrax6Eu.esm.js → wasmWebClient-C3v3s_4H.esm.js} +22 -10
- 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-DqUpAEj_.esm.js → watchlistForBusinessManager-BH6M4kqA.esm.js} +5 -3
- package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
- package/dist/{watchlistForBusinessStateMachine-DdaPl2PS.esm.js → watchlistForBusinessStateMachine-BMWm5mcP.esm.js} +4 -4
- package/dist/{watchlistManager-CdpXzT4B.esm.js → watchlistManager-BDaVjzLW.esm.js} +5 -3
- package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
- package/dist/{watchlistStateMachine-ofHW_lPk.esm.js → watchlistStateMachine-Cx-6QAvu.esm.js} +3 -3
- package/dist/workflow.d.ts +230 -44
- package/dist/workflow.esm.js +171 -67
- 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 +16 -1
- package/dist/Actor-DpTj5PFb.d.ts +0 -1
- package/dist/cpf-uAZTPUBy.esm.js +0 -61
- package/dist/index-DpTj5PFb.d.ts +0 -1
- package/dist/nationalIds-B91f_RuB.esm.js +0 -99
- package/dist/phoneFormat-JJNaWthV.esm.js +0 -75
- package/dist/tri.esm-CzTNi5Q_.esm.js +0 -3826
- package/dist/types-J6g6iKe_.d.ts +0 -6
package/dist/workflow.esm.js
CHANGED
|
@@ -1,47 +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-DhW2O8mB.esm.js";
|
|
5
|
+
import { a as initializeSession, i as getSessionFingerprintResult } from "./sessionInitializer-k-hKIBg8.esm.js";
|
|
6
|
+
import { E as updateFeatureManagementUser } from "./feature-management-DG016L6E.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-BamZ815u.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-M2O2VDks.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-DPqTOJPp.esm.js";
|
|
16
|
+
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-CM4q71h1.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-g0gfL0_1.esm.js";
|
|
21
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-B-eYytau.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
|
|
25
|
-
import { t as
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as
|
|
28
|
-
import { t as
|
|
29
|
-
import {
|
|
30
|
-
import { n as
|
|
31
|
-
import {
|
|
32
|
-
import { t as
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { t as
|
|
36
|
-
import { t as
|
|
37
|
-
import { t as
|
|
38
|
-
import { t as
|
|
39
|
-
import { t as
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import { n as
|
|
23
|
+
import { t as ekybMachine } from "./ekybStateMachine-C_lEw4I7.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-XpxgCAoC.esm.js";
|
|
27
|
+
import { t as emailMachine } from "./emailStateMachine-CTEaYncs.esm.js";
|
|
28
|
+
import { t as selfieMachine } from "./selfieStateMachine-BZVDQB8R.esm.js";
|
|
29
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-DQ14d3GR.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-nP9DM01_.esm.js";
|
|
37
|
+
import { t as signatureMachine } from "./signatureStateMachine-CVPmvU2p.esm.js";
|
|
38
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-NWmA1Dtn.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-DkWxSU4L.esm.js";
|
|
43
|
+
import { a as getTotalScoreStatus, i as getHandoffFinishStatus, r as getFinishStatus, t as HANDOFF_COMPLETION_TIMEOUT_MS } from "./flowCompletionService-BpeAbbXc.esm.js";
|
|
44
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CXLcOcXN.esm.js";
|
|
45
|
+
import { n as isAdvanceableError } from "./advanceableErrors-CxZyPRyh.esm.js";
|
|
43
46
|
import "./qe-signature.esm.js";
|
|
44
|
-
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-
|
|
47
|
+
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-IWdxw1TW.esm.js";
|
|
45
48
|
//#region src/internal/orchestration/defaultModules.ts
|
|
46
49
|
/**
|
|
47
50
|
* Shared default module registry — single source of truth for module key → machine mappings.
|
|
@@ -69,6 +72,7 @@ const DEFAULT_MODULE_REGISTRY = {
|
|
|
69
72
|
EXTERNAL_VERIFICATION: ekycMachine,
|
|
70
73
|
EKYB: ekybMachine,
|
|
71
74
|
EKYB_CHECKS: kybChecksMachine,
|
|
75
|
+
EKYC_PREFILL: ekycPrefillMachine,
|
|
72
76
|
DOCUMENT_CAPTURE: documentCaptureMachine,
|
|
73
77
|
ADDRESS: documentCaptureMachine,
|
|
74
78
|
COMBINED_CONSENT: consentMachine,
|
|
@@ -301,16 +305,92 @@ function applyWorkflowNodeOverlays(moduleKey, config, skipFaceMatch) {
|
|
|
301
305
|
...config,
|
|
302
306
|
isSecondId: config.isSecondId === true || config.idRank === "SECOND_ID"
|
|
303
307
|
};
|
|
304
|
-
if (moduleKey === "
|
|
308
|
+
if (moduleKey === "ID_OCR") return {
|
|
305
309
|
...config,
|
|
306
|
-
|
|
310
|
+
ocrDocument: config.ocrDocument ?? (config.isSecondId === true || config.idRank === "SECOND_ID" ? "second" : "first")
|
|
307
311
|
};
|
|
308
|
-
if (moduleKey === "
|
|
312
|
+
if (moduleKey === "SELFIE") return {
|
|
309
313
|
...config,
|
|
310
|
-
|
|
314
|
+
skipProcessFace: true
|
|
311
315
|
};
|
|
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
|
+
}
|
|
312
326
|
return config;
|
|
313
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
|
+
});
|
|
314
394
|
//#endregion
|
|
315
395
|
//#region src/modules/workflow/workflowStateMachine.ts
|
|
316
396
|
/**
|
|
@@ -342,6 +422,7 @@ const workflowMachine = setup({
|
|
|
342
422
|
input: {}
|
|
343
423
|
},
|
|
344
424
|
actors: {
|
|
425
|
+
resolveHandoffCompletion: handoffCompletionMachine,
|
|
345
426
|
loadWorkflow: fromPromise(({ input, signal }) => loadWorkflow(input, signal)),
|
|
346
427
|
processNextNode: fromPromise(({ input, signal }) => processNextNode(input, signal)),
|
|
347
428
|
handleCustomModule: fromPromise(({ input, signal }) => handleCustomModule(input, signal)),
|
|
@@ -437,7 +518,7 @@ const workflowMachine = setup({
|
|
|
437
518
|
isOnboardingFinishedSignal: ({ event }) => event.output?.action === "onboardingFinished",
|
|
438
519
|
isAdvanceableModuleError: ({ event }) => isAdvanceableError(event.moduleErrorCode),
|
|
439
520
|
shouldResolveScore: ({ context }) => context.workflowConfig?.showFinishScreenBySessionStatus === true,
|
|
440
|
-
|
|
521
|
+
isRedirectToMobileNode: ({ context }) => context.currentNode?.moduleKey === "REDIRECT_TO_MOBILE",
|
|
441
522
|
shouldEnterHome: ({ context, event }) => {
|
|
442
523
|
if (context.hasShownHome) return false;
|
|
443
524
|
const result = event.output;
|
|
@@ -468,6 +549,7 @@ const workflowMachine = setup({
|
|
|
468
549
|
registeredModules: input.modules,
|
|
469
550
|
configMappers: input.configMappers ?? {},
|
|
470
551
|
finishStatus: void 0,
|
|
552
|
+
completedOnMobile: false,
|
|
471
553
|
totalScoreStatus: void 0,
|
|
472
554
|
customModuleCallback: input.customModuleCallback,
|
|
473
555
|
interviewId: input.interviewId ?? "",
|
|
@@ -559,20 +641,13 @@ const workflowMachine = setup({
|
|
|
559
641
|
}
|
|
560
642
|
},
|
|
561
643
|
on: {
|
|
562
|
-
MODULE_COMPLETE: [
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
guard: "isOnboardingFinishedSignal"
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
target: "processingNode",
|
|
573
|
-
actions: ["persistSkipFaceMatch"]
|
|
574
|
-
}
|
|
575
|
-
],
|
|
644
|
+
MODULE_COMPLETE: [{
|
|
645
|
+
target: "resolvingHandoffCompletion",
|
|
646
|
+
guard: "isOnboardingFinishedSignal"
|
|
647
|
+
}, {
|
|
648
|
+
target: "processingNode",
|
|
649
|
+
actions: ["persistSkipFaceMatch"]
|
|
650
|
+
}],
|
|
576
651
|
MODULE_ERROR: [{
|
|
577
652
|
guard: "isAdvanceableModuleError",
|
|
578
653
|
target: "processingNode",
|
|
@@ -586,10 +661,17 @@ const workflowMachine = setup({
|
|
|
586
661
|
]
|
|
587
662
|
}],
|
|
588
663
|
COMPLETE_FLOW: "completing",
|
|
589
|
-
FINISH_WORKFLOW: [
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
664
|
+
FINISH_WORKFLOW: [
|
|
665
|
+
{
|
|
666
|
+
target: "resolvingHandoffCompletion",
|
|
667
|
+
guard: "isRedirectToMobileNode"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
target: "resolvingScore",
|
|
671
|
+
guard: "shouldResolveScore"
|
|
672
|
+
},
|
|
673
|
+
{ target: "finished" }
|
|
674
|
+
]
|
|
593
675
|
}
|
|
594
676
|
},
|
|
595
677
|
handlingCustomModule: { invoke: {
|
|
@@ -665,6 +747,21 @@ const workflowMachine = setup({
|
|
|
665
747
|
actions: "setError"
|
|
666
748
|
}
|
|
667
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
|
+
},
|
|
668
765
|
completing: { invoke: {
|
|
669
766
|
id: "notifyBackend",
|
|
670
767
|
src: "notifyBackend",
|
|
@@ -712,7 +809,13 @@ function createWorkflowActor(options) {
|
|
|
712
809
|
}
|
|
713
810
|
//#endregion
|
|
714
811
|
//#region src/internal/orchestration/identity-search/identitySearchStateMachine.ts
|
|
715
|
-
|
|
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: {
|
|
716
819
|
context: {},
|
|
717
820
|
input: {}
|
|
718
821
|
} }).createMachine({
|
|
@@ -725,7 +828,7 @@ const identitySearchMachine = setup({ types: {
|
|
|
725
828
|
//#region src/modules/workflow/workflowManager.ts
|
|
726
829
|
const WORKFLOW_DEFAULT_MODULES = {
|
|
727
830
|
...DEFAULT_MODULE_REGISTRY,
|
|
728
|
-
IDENTITY_SEARCH:
|
|
831
|
+
IDENTITY_SEARCH: workflowIdentitySearchMachine,
|
|
729
832
|
ID_CAPTURE: idCaptureMachine,
|
|
730
833
|
ID: idVerificationMachine,
|
|
731
834
|
REDIRECT_TO_MOBILE: redirectToMobileMachine
|
|
@@ -779,7 +882,8 @@ function mapState(snapshot) {
|
|
|
779
882
|
status: "finished",
|
|
780
883
|
workflowConfig: context.workflowConfig,
|
|
781
884
|
finishStatus,
|
|
782
|
-
scoreStatus: context.totalScoreStatus ?? finishStatus.scoreStatus
|
|
885
|
+
scoreStatus: context.totalScoreStatus ?? finishStatus.scoreStatus,
|
|
886
|
+
...context.completedOnMobile ? { completedOnMobile: true } : {}
|
|
783
887
|
};
|
|
784
888
|
}
|
|
785
889
|
if (snapshot.matches("asyncResolution")) return {
|
|
@@ -794,7 +898,7 @@ function mapState(snapshot) {
|
|
|
794
898
|
errorCode: context.errorCode,
|
|
795
899
|
moduleErrorCode: context.moduleErrorCode
|
|
796
900
|
};
|
|
797
|
-
if (snapshot.matches("completing")) return {
|
|
901
|
+
if (snapshot.matches("completing") || snapshot.matches("resolvingHandoffCompletion")) return {
|
|
798
902
|
status: "completing",
|
|
799
903
|
homeScreen
|
|
800
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.4.1-agentic.
|
|
3
|
+
"version": "2.4.1-agentic.11",
|
|
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",
|
|
@@ -140,6 +145,11 @@
|
|
|
140
145
|
"types": "./dist/kyb-checks.d.ts",
|
|
141
146
|
"import": "./dist/kyb-checks.esm.js"
|
|
142
147
|
},
|
|
148
|
+
"./ekyc-prefill": {
|
|
149
|
+
"source": "./src/modules/ekyc-prefill/index.ts",
|
|
150
|
+
"types": "./dist/ekyc-prefill.d.ts",
|
|
151
|
+
"import": "./dist/ekyc-prefill.esm.js"
|
|
152
|
+
},
|
|
143
153
|
"./home": {
|
|
144
154
|
"source": "./src/modules/home/index.ts",
|
|
145
155
|
"types": "./dist/home.d.ts",
|
|
@@ -225,6 +235,11 @@
|
|
|
225
235
|
"types": "./dist/workflow.d.ts",
|
|
226
236
|
"import": "./dist/workflow.esm.js"
|
|
227
237
|
},
|
|
238
|
+
"./step-up": {
|
|
239
|
+
"source": "./src/modules/step-up/index.ts",
|
|
240
|
+
"types": "./dist/step-up.d.ts",
|
|
241
|
+
"import": "./dist/step-up.esm.js"
|
|
242
|
+
},
|
|
228
243
|
"./cross-document-data-match": {
|
|
229
244
|
"source": "./src/modules/cross-document-data-match/index.ts",
|
|
230
245
|
"types": "./dist/cross-document-data-match.d.ts",
|
package/dist/Actor-DpTj5PFb.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./Manager-C9T5amUN.js";
|
package/dist/cpf-uAZTPUBy.esm.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
//#region ../infra/src/providers/browser/DateFormattingProvider.ts
|
|
2
|
-
var DateFormattingProvider = class {
|
|
3
|
-
utcToIsoDateString(value) {
|
|
4
|
-
if (value === void 0 || value === null || value === "") return "";
|
|
5
|
-
const date = new Date(value);
|
|
6
|
-
if (Number.isNaN(date.getTime())) return "";
|
|
7
|
-
return `${date.getUTCFullYear()}-${String(date.getUTCMonth() + 1).padStart(2, "0")}-${String(date.getUTCDate()).padStart(2, "0")}`;
|
|
8
|
-
}
|
|
9
|
-
parseIsoDateStringToEpochMs(value) {
|
|
10
|
-
return Date.parse(value);
|
|
11
|
-
}
|
|
12
|
-
getAgeInYears(birthDate, referenceEpochMs) {
|
|
13
|
-
const now = new Date(referenceEpochMs);
|
|
14
|
-
const birth = typeof birthDate === "string" && /^\d{4}-\d{2}-\d{2}$/.test(birthDate) ? (() => {
|
|
15
|
-
const [y, m, d] = birthDate.split("-").map(Number);
|
|
16
|
-
return new Date(y, m - 1, d);
|
|
17
|
-
})() : new Date(birthDate);
|
|
18
|
-
let age = now.getFullYear() - birth.getFullYear();
|
|
19
|
-
const monthDiff = now.getMonth() - birth.getMonth();
|
|
20
|
-
if (monthDiff < 0 || monthDiff === 0 && now.getDate() < birth.getDate()) age--;
|
|
21
|
-
return age;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/shared/validators/cpf.ts
|
|
26
|
-
const INVALID_CPF_PATTERNS = [
|
|
27
|
-
"00000000000",
|
|
28
|
-
"11111111111",
|
|
29
|
-
"22222222222",
|
|
30
|
-
"33333333333",
|
|
31
|
-
"44444444444",
|
|
32
|
-
"55555555555",
|
|
33
|
-
"66666666666",
|
|
34
|
-
"77777777777",
|
|
35
|
-
"88888888888",
|
|
36
|
-
"99999999999"
|
|
37
|
-
];
|
|
38
|
-
/**
|
|
39
|
-
* Validates a Brazilian CPF number (11-digit checksum).
|
|
40
|
-
* Accepts formatted (000.000.000-00) or unformatted input.
|
|
41
|
-
*/
|
|
42
|
-
function validateCPF(cpfString) {
|
|
43
|
-
let cpf = cpfString;
|
|
44
|
-
if (cpf.length === 14) cpf = cpf.replace(/\./g, "").replace(/-/g, "");
|
|
45
|
-
if (cpf.length !== 11) return false;
|
|
46
|
-
if (!/^\d+$/.test(cpf)) return false;
|
|
47
|
-
if (INVALID_CPF_PATTERNS.includes(cpf)) return false;
|
|
48
|
-
let sum = 0;
|
|
49
|
-
for (let i = 0; i < 9; i++) sum += Number.parseInt(cpf.charAt(i), 10) * (10 - i);
|
|
50
|
-
let firstDigit = 11 - sum % 11;
|
|
51
|
-
if (firstDigit >= 10) firstDigit = 0;
|
|
52
|
-
if (cpf.charAt(9) !== firstDigit.toString()) return false;
|
|
53
|
-
sum = 0;
|
|
54
|
-
for (let i = 0; i < 10; i++) sum += Number.parseInt(cpf.charAt(i), 10) * (11 - i);
|
|
55
|
-
let secondDigit = 11 - sum % 11;
|
|
56
|
-
if (secondDigit >= 10) secondDigit = 0;
|
|
57
|
-
if (cpf.charAt(10) !== secondDigit.toString()) return false;
|
|
58
|
-
return true;
|
|
59
|
-
}
|
|
60
|
-
//#endregion
|
|
61
|
-
export { DateFormattingProvider as n, validateCPF as t };
|
package/dist/index-DpTj5PFb.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./Manager-C9T5amUN.js";
|