@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
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { O as PromiseActorLogic, T as Values, a as ActorRefFromLogic, b as NonReducibleUnknown, c as AnyEventObject, d as DoneActorEvent, j as StateMachine, m as EventObject, p as ErrorActorEvent, t as ActionFunction, y as MetaObject } from "./spawn-COZKetCS.js";
|
|
2
|
+
import "./xstate.cjs-D6Ur0X1F.js";
|
|
3
|
+
//#region src/modules/identity-search/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Configuration options for the IdentitySearch module. It has none: the
|
|
6
|
+
* backend searches with the session's hint, which is the contact verified
|
|
7
|
+
* earlier in the session or the hint sent when the session started.
|
|
8
|
+
*/
|
|
9
|
+
type IdentitySearchConfig = {};
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/modules/identity-search/identitySearchStateMachine.d.ts
|
|
12
|
+
type IdentitySearchInput = {
|
|
13
|
+
config: IdentitySearchConfig;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* How the search ended: the backend answered, the request failed, or the
|
|
17
|
+
* budget ran out. Each one finishes the step the same way.
|
|
18
|
+
*/
|
|
19
|
+
type SearchOutcome = 'answered' | 'failed' | 'timedOut';
|
|
20
|
+
type IdentitySearchContext = {
|
|
21
|
+
outcome: SearchOutcome | undefined;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* IDENTITY_SEARCH in a Flow: a step without UI that searches as soon as it
|
|
25
|
+
* starts. The backend keeps what it found on the session, and the reuse step
|
|
26
|
+
* reads it from there, so the step has no output. Nothing sends LOAD to such a
|
|
27
|
+
* step (see `trustGraphMachine`), and the orchestrator moves on only when the
|
|
28
|
+
* machine reaches its final state.
|
|
29
|
+
*
|
|
30
|
+
* It always gets there: when the backend answers, or after an error or the
|
|
31
|
+
* timeout. It never errors, so a failed search can't stop the flow; the reuse
|
|
32
|
+
* step then has nothing to offer.
|
|
33
|
+
*/
|
|
34
|
+
declare const identitySearchMachine: StateMachine<IdentitySearchContext, AnyEventObject, {
|
|
35
|
+
[x: string]: ActorRefFromLogic<PromiseActorLogic<void, void, EventObject>> | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
src: "searchIdentity";
|
|
38
|
+
logic: PromiseActorLogic<void, void, EventObject>;
|
|
39
|
+
id: string | undefined;
|
|
40
|
+
}, Values<{
|
|
41
|
+
reportSearchStarted: {
|
|
42
|
+
type: "reportSearchStarted";
|
|
43
|
+
params: unknown;
|
|
44
|
+
};
|
|
45
|
+
reportSearchFinished: {
|
|
46
|
+
type: "reportSearchFinished";
|
|
47
|
+
params: unknown;
|
|
48
|
+
};
|
|
49
|
+
}>, never, "searchTimeout", "finished" | "searching", string, IdentitySearchInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
50
|
+
readonly id: "identitySearch";
|
|
51
|
+
readonly initial: "searching";
|
|
52
|
+
readonly context: {
|
|
53
|
+
readonly outcome: undefined;
|
|
54
|
+
};
|
|
55
|
+
readonly states: {
|
|
56
|
+
readonly searching: {
|
|
57
|
+
readonly entry: "reportSearchStarted";
|
|
58
|
+
readonly invoke: {
|
|
59
|
+
readonly id: "searchIdentity";
|
|
60
|
+
readonly src: "searchIdentity";
|
|
61
|
+
readonly onDone: {
|
|
62
|
+
readonly target: "finished";
|
|
63
|
+
readonly actions: ActionFunction<IdentitySearchContext, DoneActorEvent<void, string>, AnyEventObject, undefined, {
|
|
64
|
+
src: "searchIdentity";
|
|
65
|
+
logic: PromiseActorLogic<void, void, EventObject>;
|
|
66
|
+
id: string | undefined;
|
|
67
|
+
}, never, never, never, never>;
|
|
68
|
+
};
|
|
69
|
+
readonly onError: {
|
|
70
|
+
readonly target: "finished";
|
|
71
|
+
readonly actions: ActionFunction<IdentitySearchContext, ErrorActorEvent<unknown, string>, AnyEventObject, undefined, {
|
|
72
|
+
src: "searchIdentity";
|
|
73
|
+
logic: PromiseActorLogic<void, void, EventObject>;
|
|
74
|
+
id: string | undefined;
|
|
75
|
+
}, never, never, never, never>;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
readonly after: {
|
|
79
|
+
readonly searchTimeout: {
|
|
80
|
+
readonly target: "finished";
|
|
81
|
+
readonly actions: ActionFunction<IdentitySearchContext, AnyEventObject, AnyEventObject, undefined, {
|
|
82
|
+
src: "searchIdentity";
|
|
83
|
+
logic: PromiseActorLogic<void, void, EventObject>;
|
|
84
|
+
id: string | undefined;
|
|
85
|
+
}, never, never, never, never>;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
readonly finished: {
|
|
90
|
+
readonly type: "final";
|
|
91
|
+
readonly entry: "reportSearchFinished";
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
}>;
|
|
95
|
+
type IdentitySearchMachine = typeof identitySearchMachine;
|
|
96
|
+
//#endregion
|
|
97
|
+
export { type IdentitySearchConfig, type IdentitySearchMachine, identitySearchMachine };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { f as moduleClosed, g as screenOpened, m as screenClosed, n as eventModuleNames, p as moduleOpened } from "./types-DYYMdAGv.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
3
|
+
import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
|
|
4
|
+
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
|
+
//#region src/modules/identity-search/identitySearchServices.ts
|
|
7
|
+
/**
|
|
8
|
+
* Runs the identity search for this session. The backend searches with the
|
|
9
|
+
* session's hint (the contact verified earlier in the session, or the hint
|
|
10
|
+
* sent when the session started) and keeps what it found on the session,
|
|
11
|
+
* where the reuse step reads it. It answers with no result of its own. Throws
|
|
12
|
+
* on failure.
|
|
13
|
+
*/
|
|
14
|
+
async function searchIdentity(signal) {
|
|
15
|
+
const res = await api.post(endpoints.identitySearch, {}, { signal });
|
|
16
|
+
if (!res.ok) throw new Error(`POST ${endpoints.identitySearch} failed: ${res.status} ${res.statusText}`);
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/modules/identity-search/identitySearchStateMachine.ts
|
|
20
|
+
/**
|
|
21
|
+
* Budget for the whole search, waits for a lost connection included. When it
|
|
22
|
+
* runs out, the step finishes anyway and the flow goes on.
|
|
23
|
+
*/
|
|
24
|
+
const SEARCH_TIMEOUT_MS = 1e4;
|
|
25
|
+
/**
|
|
26
|
+
* The step has no UI and no manager, so the machine reports its own
|
|
27
|
+
* lifecycle with the usual codes: `moduleOpened`, then the
|
|
28
|
+
* `IDENTITY_SEARCH.searching` screen while the request runs, then one screen
|
|
29
|
+
* named after the outcome, then `moduleClosed`.
|
|
30
|
+
*/
|
|
31
|
+
const ANALYTICS_MODULE = eventModuleNames.identitySearch;
|
|
32
|
+
function analyticsScreen(name) {
|
|
33
|
+
return `${ANALYTICS_MODULE}.${name}`;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* IDENTITY_SEARCH in a Flow: a step without UI that searches as soon as it
|
|
37
|
+
* starts. The backend keeps what it found on the session, and the reuse step
|
|
38
|
+
* reads it from there, so the step has no output. Nothing sends LOAD to such a
|
|
39
|
+
* step (see `trustGraphMachine`), and the orchestrator moves on only when the
|
|
40
|
+
* machine reaches its final state.
|
|
41
|
+
*
|
|
42
|
+
* It always gets there: when the backend answers, or after an error or the
|
|
43
|
+
* timeout. It never errors, so a failed search can't stop the flow; the reuse
|
|
44
|
+
* step then has nothing to offer.
|
|
45
|
+
*/
|
|
46
|
+
const identitySearchMachine = setup({
|
|
47
|
+
types: {
|
|
48
|
+
context: {},
|
|
49
|
+
input: {}
|
|
50
|
+
},
|
|
51
|
+
actions: {
|
|
52
|
+
reportSearchStarted: () => {
|
|
53
|
+
moduleOpened(ANALYTICS_MODULE);
|
|
54
|
+
screenOpened(ANALYTICS_MODULE, analyticsScreen("searching"));
|
|
55
|
+
},
|
|
56
|
+
reportSearchFinished: ({ context }) => {
|
|
57
|
+
const outcome = analyticsScreen(context.outcome ?? "answered");
|
|
58
|
+
screenClosed(ANALYTICS_MODULE, analyticsScreen("searching"));
|
|
59
|
+
screenOpened(ANALYTICS_MODULE, outcome);
|
|
60
|
+
screenClosed(ANALYTICS_MODULE, outcome);
|
|
61
|
+
moduleClosed(ANALYTICS_MODULE);
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
actors: { searchIdentity: fromPromise(({ signal }) => retryAfterReconnect(() => searchIdentity(signal), signal)) },
|
|
65
|
+
delays: { searchTimeout: SEARCH_TIMEOUT_MS }
|
|
66
|
+
}).createMachine({
|
|
67
|
+
id: "identitySearch",
|
|
68
|
+
initial: "searching",
|
|
69
|
+
context: { outcome: void 0 },
|
|
70
|
+
states: {
|
|
71
|
+
searching: {
|
|
72
|
+
entry: "reportSearchStarted",
|
|
73
|
+
invoke: {
|
|
74
|
+
id: "searchIdentity",
|
|
75
|
+
src: "searchIdentity",
|
|
76
|
+
onDone: {
|
|
77
|
+
target: "finished",
|
|
78
|
+
actions: assign({ outcome: "answered" })
|
|
79
|
+
},
|
|
80
|
+
onError: {
|
|
81
|
+
target: "finished",
|
|
82
|
+
actions: assign({ outcome: "failed" })
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
after: { searchTimeout: {
|
|
86
|
+
target: "finished",
|
|
87
|
+
actions: assign({ outcome: "timedOut" })
|
|
88
|
+
} }
|
|
89
|
+
},
|
|
90
|
+
finished: {
|
|
91
|
+
type: "final",
|
|
92
|
+
entry: "reportSearchFinished"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
//#endregion
|
|
97
|
+
export { identitySearchMachine };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
1
|
+
import { A as MachineSnapshot, O as PromiseActorLogic, S as RequiredLogicInput, T as Values, _ as IsNotNever, a as ActorRefFromLogic, b as NonReducibleUnknown, c as AnyEventObject, f as DoneStateEvent, g as InputFrom, h as GetConcreteByKey, i as ActorRefFrom, j as StateMachine, m as EventObject, o as AnyActorLogic, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, w as StateValue, x as RequiredActorOptions, y as MetaObject } from "./spawn-COZKetCS.js";
|
|
2
|
+
import "./xstate.cjs-D6Ur0X1F.js";
|
|
3
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
4
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
5
|
//#region src/modules/identity-reuse/types.d.ts
|
|
5
6
|
/**
|
|
6
7
|
* Configuration options for the IdentityReuse module.
|
|
@@ -45,8 +46,9 @@ type ReusableDocument = {
|
|
|
45
46
|
type FetchDocumentsResponse = ReusableDocument[];
|
|
46
47
|
/**
|
|
47
48
|
* Name of the organization receiving the reused document, as resolved by the
|
|
48
|
-
* `fetchCompanyName` actor
|
|
49
|
-
*
|
|
49
|
+
* `fetchCompanyName` actor. The backend has no route for it, so the default
|
|
50
|
+
* actor resolves `undefined`. Use it to type a `fetchCompanyName` override
|
|
51
|
+
* passed to `.provide()` that supplies the name.
|
|
50
52
|
*/
|
|
51
53
|
type FetchCompanyNameResponse = string | undefined;
|
|
52
54
|
/**
|
|
@@ -61,8 +63,26 @@ type SubmitParams = {
|
|
|
61
63
|
} | {
|
|
62
64
|
accepted: false;
|
|
63
65
|
};
|
|
64
|
-
/**
|
|
65
|
-
|
|
66
|
+
/**
|
|
67
|
+
* @internal Response from POST /omni/identity-reuse/submit.
|
|
68
|
+
*
|
|
69
|
+
* `identityShared` is true only when the backend imported the accepted
|
|
70
|
+
* document into this session. A backend that doesn't send it counts as no
|
|
71
|
+
* share. Other fields are allowed, so a `.provide()` override written for an
|
|
72
|
+
* earlier version, which returned other fields, still compiles.
|
|
73
|
+
*/
|
|
74
|
+
type SubmitResponse = {
|
|
75
|
+
identityShared?: boolean;
|
|
76
|
+
[key: string]: unknown;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Terminal output of the IdentityReuse module. `identityShared` is true only
|
|
80
|
+
* when the backend imported a document the person accepted. Every other way
|
|
81
|
+
* the step ends reports false: a new scan, a skip, or no reusable documents.
|
|
82
|
+
*/
|
|
83
|
+
type IdentityReuseOutput = {
|
|
84
|
+
identityShared: boolean;
|
|
85
|
+
};
|
|
66
86
|
//#endregion
|
|
67
87
|
//#region src/modules/identity-reuse/identityReuseStateMachine.d.ts
|
|
68
88
|
/**
|
|
@@ -77,6 +97,8 @@ type IdentityReuseContext = {
|
|
|
77
97
|
selectedDocumentId: SelectedDocumentId | undefined;
|
|
78
98
|
companyName: string | undefined;
|
|
79
99
|
error: string | undefined;
|
|
100
|
+
/** The backend imported the document the person accepted. */
|
|
101
|
+
identityShared: boolean;
|
|
80
102
|
};
|
|
81
103
|
type IdentityReuseInput = {
|
|
82
104
|
config: IdentityReuseConfig;
|
|
@@ -132,6 +154,10 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
132
154
|
type: "setCompanyName";
|
|
133
155
|
params: NonReducibleUnknown;
|
|
134
156
|
};
|
|
157
|
+
setIdentityShared: {
|
|
158
|
+
type: "setIdentityShared";
|
|
159
|
+
params: NonReducibleUnknown;
|
|
160
|
+
};
|
|
135
161
|
}>, Values<{
|
|
136
162
|
hasDocuments: {
|
|
137
163
|
type: "hasDocuments";
|
|
@@ -150,7 +176,7 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
150
176
|
documents: "done" | "fetching";
|
|
151
177
|
company: "done" | "fetching" | "check";
|
|
152
178
|
};
|
|
153
|
-
}, string, IdentityReuseInput,
|
|
179
|
+
}, string, IdentityReuseInput, IdentityReuseOutput, EventObject, MetaObject, {
|
|
154
180
|
readonly id: "identityReuse";
|
|
155
181
|
readonly initial: "idle";
|
|
156
182
|
readonly context: ({ input }: {
|
|
@@ -256,6 +282,38 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
256
282
|
selectedDocumentId: undefined;
|
|
257
283
|
companyName: undefined;
|
|
258
284
|
error: undefined;
|
|
285
|
+
identityShared: false;
|
|
286
|
+
};
|
|
287
|
+
readonly output: ({ context }: {
|
|
288
|
+
context: IdentityReuseContext;
|
|
289
|
+
event: DoneStateEvent<unknown>;
|
|
290
|
+
self: ActorRef<MachineSnapshot<IdentityReuseContext, {
|
|
291
|
+
type: "LOAD";
|
|
292
|
+
} | {
|
|
293
|
+
type: "DOCUMENT_CHOSEN";
|
|
294
|
+
documentId: SelectedDocumentId;
|
|
295
|
+
} | {
|
|
296
|
+
type: "SUBMIT";
|
|
297
|
+
documentId?: SelectedDocumentId;
|
|
298
|
+
} | {
|
|
299
|
+
type: "SKIP";
|
|
300
|
+
} | {
|
|
301
|
+
type: "RETRY";
|
|
302
|
+
}, Record<string, AnyActorRef>, StateValue, string, unknown, any, any>, {
|
|
303
|
+
type: "LOAD";
|
|
304
|
+
} | {
|
|
305
|
+
type: "DOCUMENT_CHOSEN";
|
|
306
|
+
documentId: SelectedDocumentId;
|
|
307
|
+
} | {
|
|
308
|
+
type: "SUBMIT";
|
|
309
|
+
documentId?: SelectedDocumentId;
|
|
310
|
+
} | {
|
|
311
|
+
type: "SKIP";
|
|
312
|
+
} | {
|
|
313
|
+
type: "RETRY";
|
|
314
|
+
}, AnyEventObject>;
|
|
315
|
+
}) => {
|
|
316
|
+
identityShared: boolean;
|
|
259
317
|
};
|
|
260
318
|
readonly states: {
|
|
261
319
|
readonly idle: {
|
|
@@ -357,6 +415,7 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
357
415
|
}) => SubmitParams;
|
|
358
416
|
readonly onDone: {
|
|
359
417
|
readonly target: "finished";
|
|
418
|
+
readonly actions: "setIdentityShared";
|
|
360
419
|
};
|
|
361
420
|
readonly onError: {
|
|
362
421
|
readonly target: "error";
|
|
@@ -401,10 +460,11 @@ type IdentityReuseIdleState = {
|
|
|
401
460
|
status: 'idle';
|
|
402
461
|
};
|
|
403
462
|
/**
|
|
404
|
-
* Fetching reusable documents
|
|
405
|
-
*
|
|
406
|
-
*
|
|
407
|
-
* themselves take
|
|
463
|
+
* Fetching reusable documents. A host that supplies the receiving
|
|
464
|
+
* organization's name through a `fetchCompanyName` override runs it in
|
|
465
|
+
* parallel; that lookup is non-fatal and never keeps this state longer than
|
|
466
|
+
* one second after loading starts, unless the documents themselves take
|
|
467
|
+
* longer. By default there is no lookup.
|
|
408
468
|
*/
|
|
409
469
|
type IdentityReuseLoadingState = {
|
|
410
470
|
status: 'loading';
|
|
@@ -419,7 +479,8 @@ type IdentityReuseLoadingState = {
|
|
|
419
479
|
* `'scanNew'` if the user picked the scan-new row. Auto-populated to
|
|
420
480
|
* `documents[0].id` on entry, so a bare `submit()` reuses the best match.
|
|
421
481
|
* @property companyName - Name of the organization receiving the reused
|
|
422
|
-
* document.
|
|
482
|
+
* document. The backend doesn't provide it, so it is absent unless a host
|
|
483
|
+
* supplies it through a `fetchCompanyName` override.
|
|
423
484
|
*/
|
|
424
485
|
type IdentityReuseDocumentsFoundState = {
|
|
425
486
|
status: 'documentsFound';
|
|
@@ -431,9 +492,15 @@ type IdentityReuseDocumentsFoundState = {
|
|
|
431
492
|
type IdentityReuseSubmittingState = {
|
|
432
493
|
status: 'submitting';
|
|
433
494
|
};
|
|
434
|
-
/**
|
|
495
|
+
/**
|
|
496
|
+
* Module completed successfully
|
|
497
|
+
* @property output - Whether a document was shared (`identityShared`). A flow
|
|
498
|
+
* reads it to skip the ID capture, so forward it with
|
|
499
|
+
* `flowManager.completeModule(output)`.
|
|
500
|
+
*/
|
|
435
501
|
type IdentityReuseFinishedState = {
|
|
436
502
|
status: 'finished';
|
|
503
|
+
output?: IdentityReuseOutput;
|
|
437
504
|
};
|
|
438
505
|
/**
|
|
439
506
|
* A recoverable error occurred — user can retry or skip
|
|
@@ -538,4 +605,4 @@ declare function createIdentityReuseManagerFromActor(actor: IdentityReuseActor):
|
|
|
538
605
|
};
|
|
539
606
|
type IdentityReuseManager = ReturnType<typeof createIdentityReuseManager>;
|
|
540
607
|
//#endregion
|
|
541
|
-
export { IdentityReuseActor as a, identityReuseMachine as c, IdentityReuseConfig as d,
|
|
608
|
+
export { IdentityReuseActor as a, identityReuseMachine as c, IdentityReuseConfig as d, IdentityReuseOutput as f, createIdentityReuseManagerFromActor as i, FetchCompanyNameResponse as l, SubmitResponse as m, IdentityReuseState as n, SCAN_NEW_DOCUMENT as o, ReusableDocument as p, createIdentityReuseManager as r, SelectedDocumentId as s, IdentityReuseManager as t, FetchDocumentsResponse as u };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { n as eventModuleNames
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
|
|
3
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
4
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-CLFjPp13.esm.js";
|
|
4
6
|
//#region src/modules/identity-reuse/identityReuseActor.ts
|
|
5
7
|
/**
|
|
6
8
|
* Creates and starts an IdentityReuse actor.
|
|
@@ -23,7 +25,10 @@ function mapState(snapshot) {
|
|
|
23
25
|
...context.companyName !== void 0 && { companyName: context.companyName }
|
|
24
26
|
};
|
|
25
27
|
if (snapshot.matches("submitting")) return { status: "submitting" };
|
|
26
|
-
if (snapshot.matches("finished")) return {
|
|
28
|
+
if (snapshot.matches("finished")) return {
|
|
29
|
+
status: "finished",
|
|
30
|
+
output: snapshot.output
|
|
31
|
+
};
|
|
27
32
|
if (snapshot.matches("error")) return {
|
|
28
33
|
status: "error",
|
|
29
34
|
error: context.error ?? "An error occurred"
|
package/dist/{identityReuseStateMachine-DxZFWy47.esm.js → identityReuseStateMachine-CLFjPp13.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
3
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
2
|
+
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
4
4
|
//#region src/modules/identity-reuse/identityReuseServices.ts
|
|
5
5
|
function lowerFirstLetter(value) {
|
|
6
6
|
if (!value) return value;
|
|
@@ -35,18 +35,6 @@ async function fetchDocuments(signal) {
|
|
|
35
35
|
if (!res.ok) throw new Error(`GET ${endpoints.identityReuseDocuments} failed: ${res.status} ${res.statusText} — ${JSON.stringify(res.data)}`);
|
|
36
36
|
return (res.data?.documents ?? []).map(adaptDocument);
|
|
37
37
|
}
|
|
38
|
-
/**
|
|
39
|
-
* Fetches the name of the organization receiving the reused document.
|
|
40
|
-
* Resolves `undefined` when the name is missing or blank. Throws on failure.
|
|
41
|
-
*/
|
|
42
|
-
async function fetchCompanyName(signal) {
|
|
43
|
-
const res = await api.get(endpoints.identityReuseCandidates, { signal });
|
|
44
|
-
if (!res.ok) throw new Error(`GET ${endpoints.identityReuseCandidates} failed: ${res.status} ${res.statusText} — ${JSON.stringify(res.data)}`);
|
|
45
|
-
const name = res.data?.currentOrganizationName;
|
|
46
|
-
if (typeof name !== "string") return void 0;
|
|
47
|
-
const trimmed = name.trim();
|
|
48
|
-
return trimmed.length > 0 ? trimmed : void 0;
|
|
49
|
-
}
|
|
50
38
|
/** Submits the chosen document (or scan-new) for reuse. Throws on failure. */
|
|
51
39
|
async function submitDocument(params, signal) {
|
|
52
40
|
const res = await api.post(endpoints.identityReuseSubmit, params, { signal });
|
|
@@ -61,9 +49,10 @@ async function submitDocument(params, signal) {
|
|
|
61
49
|
*/
|
|
62
50
|
const SCAN_NEW_DOCUMENT = "scanNew";
|
|
63
51
|
/**
|
|
64
|
-
* Budget for
|
|
65
|
-
* name is cosmetic copy: once the budget runs out the picker
|
|
66
|
-
* the documents are in and the UI falls back to name-less
|
|
52
|
+
* Budget for a host-provided company-name lookup, counted from the start of
|
|
53
|
+
* loading. The name is cosmetic copy: once the budget runs out the picker
|
|
54
|
+
* opens as soon as the documents are in and the UI falls back to name-less
|
|
55
|
+
* copy. The default lookup answers at once.
|
|
67
56
|
*/
|
|
68
57
|
const COMPANY_NAME_TIMEOUT_MS = 1e3;
|
|
69
58
|
function deriveSubmitParams(selectedDocumentId) {
|
|
@@ -77,15 +66,14 @@ const identityReuseMachine = setup({
|
|
|
77
66
|
types: {
|
|
78
67
|
context: {},
|
|
79
68
|
events: {},
|
|
80
|
-
input: {}
|
|
69
|
+
input: {},
|
|
70
|
+
output: {}
|
|
81
71
|
},
|
|
82
72
|
actors: {
|
|
83
73
|
fetchDocuments: fromPromise(async ({ signal }) => {
|
|
84
74
|
return fetchDocuments(signal);
|
|
85
75
|
}),
|
|
86
|
-
fetchCompanyName: fromPromise(async (
|
|
87
|
-
return fetchCompanyName(signal);
|
|
88
|
-
}),
|
|
76
|
+
fetchCompanyName: fromPromise(async () => void 0),
|
|
89
77
|
submitDocument: fromPromise(async ({ input, signal }) => {
|
|
90
78
|
return submitDocument(input, signal);
|
|
91
79
|
})
|
|
@@ -103,7 +91,11 @@ const identityReuseMachine = setup({
|
|
|
103
91
|
}),
|
|
104
92
|
setCompanyName: assign(({ event }) => ({ companyName: event.output })),
|
|
105
93
|
setError: assign(({ event }) => ({ error: String(event.error) })),
|
|
106
|
-
clearError: assign({ error: () => void 0 })
|
|
94
|
+
clearError: assign({ error: () => void 0 }),
|
|
95
|
+
setIdentityShared: assign(({ context, event }) => {
|
|
96
|
+
const output = event.output;
|
|
97
|
+
return { identityShared: deriveSubmitParams(context.selectedDocumentId).accepted && output?.identityShared === true };
|
|
98
|
+
})
|
|
107
99
|
},
|
|
108
100
|
guards: {
|
|
109
101
|
hasDocuments: ({ context }) => context.documents.length > 0,
|
|
@@ -122,8 +114,10 @@ const identityReuseMachine = setup({
|
|
|
122
114
|
documents: [],
|
|
123
115
|
selectedDocumentId: void 0,
|
|
124
116
|
companyName: void 0,
|
|
125
|
-
error: void 0
|
|
117
|
+
error: void 0,
|
|
118
|
+
identityShared: false
|
|
126
119
|
}),
|
|
120
|
+
output: ({ context }) => ({ identityShared: context.identityShared }),
|
|
127
121
|
states: {
|
|
128
122
|
idle: { on: { LOAD: { target: "loading" } } },
|
|
129
123
|
loading: {
|
|
@@ -191,7 +185,10 @@ const identityReuseMachine = setup({
|
|
|
191
185
|
id: "submitDocument",
|
|
192
186
|
src: "submitDocument",
|
|
193
187
|
input: ({ context }) => deriveSubmitParams(context.selectedDocumentId),
|
|
194
|
-
onDone: {
|
|
188
|
+
onDone: {
|
|
189
|
+
target: "finished",
|
|
190
|
+
actions: "setIdentityShared"
|
|
191
|
+
},
|
|
195
192
|
onError: {
|
|
196
193
|
target: "error",
|
|
197
194
|
actions: "setError"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./Manager-DufwKlav.js";
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@incodetech+tri-sdk@0.6.0-dev-
|
|
2
|
-
type CollectorKey = 'pointer' | 'pointermove' | 'focus' | 'input' | 'keystroke' | 'clipboard' | 'form' | 'change' | 'selection' | 'tab' | 'visibility' | 'navigation' | 'viewportresize' | 'viewport' | 'scroll' | 'sensors' | 'network-request' | 'networkconnection' | 'screen' | 'wheel' | 'hover' | '
|
|
1
|
+
//#region ../../node_modules/.pnpm/@incodetech+tri-sdk@0.6.0-dev-20261116191152-a41c6976608191fa0c97dbf43a4ba2877182acac/node_modules/@incodetech/tri-sdk/dist/index.d.ts
|
|
2
|
+
type CollectorKey = 'pointer' | 'pointermove' | 'focus' | 'input' | 'keystroke' | 'clipboard' | 'form' | 'change' | 'selection' | 'tab' | 'visibility' | 'navigation' | 'viewportresize' | 'viewport' | 'scroll' | 'sensors' | 'network-request' | 'networkconnection' | 'screen' | 'wheel' | 'hover' | 'fpsignals';
|
|
3
|
+
/**
|
|
4
|
+
* The configurable sub-events of each collector key. For a key in
|
|
5
|
+
* `MODULE_ONLY_COLLECTORS` each sub-event selects module streams
|
|
6
|
+
* (`MODULE_STREAMS_BY_COLLECTOR`); `never` means the key is all-or-nothing.
|
|
7
|
+
*/
|
|
3
8
|
type CollectorEventMap = {
|
|
4
9
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
10
|
+
* `'pointer'` selects the module's button rows (down/up); `'click'`,
|
|
11
|
+
* `'dblclick'` and `'contextmenu'` their own rows.
|
|
7
12
|
*/
|
|
8
13
|
pointer: 'pointer' | 'click' | 'dblclick' | 'contextmenu';
|
|
9
14
|
clipboard: 'paste' | 'cut' | 'copy';
|
|
10
15
|
form: 'submit' | 'invalid' | 'snapshot';
|
|
11
16
|
tab: 'state' | 'count';
|
|
12
17
|
viewport: 'orientationchange' | 'devicepixelratiochange';
|
|
13
|
-
/** All-or-nothing:
|
|
18
|
+
/** All-or-nothing: no sub-event config. */
|
|
14
19
|
input: never;
|
|
15
20
|
focus: never;
|
|
16
21
|
keystroke: never;
|
|
@@ -28,7 +33,6 @@ type CollectorEventMap = {
|
|
|
28
33
|
screen: never;
|
|
29
34
|
wheel: never;
|
|
30
35
|
hover: never;
|
|
31
|
-
shinsei: never;
|
|
32
36
|
};
|
|
33
37
|
type Layer = 'session' | 'behavioral' | 'device-fingerprinting';
|
|
34
38
|
/**
|
|
@@ -52,20 +56,23 @@ type Layer = 'session' | 'behavioral' | 'device-fingerprinting';
|
|
|
52
56
|
*/
|
|
53
57
|
type IncodeSanitizeUrlHook = (url: string, defaultSanitize: (url: string) => string) => string;
|
|
54
58
|
/**
|
|
55
|
-
* Global PII capture level for element
|
|
59
|
+
* Global PII capture level for the element descriptions in the fpSignals
|
|
60
|
+
* module's rows (handed to the module with the `data-tri-*` names, `scp`).
|
|
56
61
|
*
|
|
57
62
|
* - `'all'` — all element fields emitted; PII identifiers and labels included.
|
|
58
63
|
* Consumers should annotate sensitive elements with `data-tri-redact`.
|
|
59
|
-
* - `'redact'` — PII identifiers (`id`, `name`, label, classes)
|
|
64
|
+
* - `'redact'` — PII identifiers (`id`, `name`, label, classes) left out.
|
|
60
65
|
* **Default.** Per-element overrides via `data-tri-redact` / `data-tri-ignore`.
|
|
61
|
-
* - `'off'` —
|
|
66
|
+
* - `'off'` — no element descriptions.
|
|
62
67
|
*/
|
|
63
68
|
type CaptureElementLevel = 'all' | 'redact' | 'off';
|
|
64
69
|
/**
|
|
65
|
-
* Controls whether
|
|
70
|
+
* Controls whether the fpSignals module records text content (the clipboard
|
|
71
|
+
* and selection text), except in private fields and under `data-tri-ignore` or
|
|
72
|
+
* `data-tri-redact`.
|
|
66
73
|
*
|
|
67
|
-
* - `'on'` — text content
|
|
68
|
-
* - `'off'` — text content
|
|
74
|
+
* - `'on'` — text content recorded.
|
|
75
|
+
* - `'off'` — no text content (default).
|
|
69
76
|
*/
|
|
70
77
|
type CaptureContentLevel = 'on' | 'off';
|
|
71
78
|
/**
|
|
@@ -79,7 +86,8 @@ type IncodeTRIHost = {
|
|
|
79
86
|
/**
|
|
80
87
|
* Public SDK configuration. Both `layers` and `collectors` are optional; pass at
|
|
81
88
|
* most one. When neither is provided, every collector defaults to enabled (same
|
|
82
|
-
* behaviour as calling `start()` with no config).
|
|
89
|
+
* behaviour as calling `start()` with no config). Most keys only select the
|
|
90
|
+
* fpSignals module's streams; see `docs/03-CONFIG-GUIDE.md`.
|
|
83
91
|
*/
|
|
84
92
|
type IncodeTRIConfig = TRIConfigBase & (LayerBasedConfig | CollectorBasedConfig | NoCollectorSelectionConfig);
|
|
85
93
|
/** Shared config fields present regardless of which selector variant is used. */
|
|
@@ -87,8 +95,9 @@ type TRIConfigBase = {
|
|
|
87
95
|
apiURL: string;
|
|
88
96
|
/**
|
|
89
97
|
* SDK token obtained from a B2B server call or via `createSession`.
|
|
90
|
-
*
|
|
91
|
-
*
|
|
98
|
+
* It identifies the organization and lasts 7 days by default (`expiresAt`
|
|
99
|
+
* from `createSession` says when it ends). The consumer's API key must
|
|
100
|
+
* never be passed here.
|
|
92
101
|
*/
|
|
93
102
|
token: string;
|
|
94
103
|
/**
|
|
@@ -155,7 +164,7 @@ type CollectorBasedConfig = {
|
|
|
155
164
|
layers?: never;
|
|
156
165
|
collectors: CollectorsConfig;
|
|
157
166
|
};
|
|
158
|
-
/** No collector filtering —
|
|
167
|
+
/** No collector filtering — every collector, and every module stream, is enabled. */
|
|
159
168
|
type NoCollectorSelectionConfig = {
|
|
160
169
|
layers?: never;
|
|
161
170
|
collectors?: never;
|
|
@@ -225,6 +234,13 @@ type RemovedCollectors = {
|
|
|
225
234
|
fingerprint?: {
|
|
226
235
|
enabled?: boolean;
|
|
227
236
|
};
|
|
237
|
+
/**
|
|
238
|
+
* @deprecated TRI no longer has a `shinsei` collector: its fpSignals module
|
|
239
|
+
* records those events. This key is ignored; remove it.
|
|
240
|
+
*/
|
|
241
|
+
shinsei?: {
|
|
242
|
+
enabled?: boolean;
|
|
243
|
+
};
|
|
228
244
|
};
|
|
229
245
|
type WithRemovedCollectors<T> = T extends {
|
|
230
246
|
collectors: infer C;
|
|
@@ -237,8 +253,8 @@ type WithRemovedCollectors<T> = T extends {
|
|
|
237
253
|
*
|
|
238
254
|
* `TransactionalRiskIntelligenceConfig` without `host`: the SDK always reports
|
|
239
255
|
* itself as TRI's host (`{ platform: 'sdk2', version }`), so it is not an
|
|
240
|
-
* option. `collectors.fingerprint`
|
|
241
|
-
* ignored. `autostart` is defined on
|
|
256
|
+
* option. `collectors.fingerprint` and `collectors.shinsei` are still accepted
|
|
257
|
+
* but deprecated and ignored. `autostart` is defined on
|
|
242
258
|
* the base config (`IncodeTRIConfig.autostart`) — when `true` (the default),
|
|
243
259
|
* `setupTRI()` also starts collection automatically. Pass `autostart: false`
|
|
244
260
|
* to defer collection to an explicit `startTRI()` call (e.g. after a consent
|
|
@@ -270,6 +286,14 @@ declare function isTRIStarted(): boolean;
|
|
|
270
286
|
* @param options - Optional `apiURL`, `signal`, and `timeout` overrides.
|
|
271
287
|
*/
|
|
272
288
|
declare function createTRISession(apiKey: string, options?: TransactionalRiskIntelligenceSessionOptions): Promise<TransactionalRiskIntelligenceSession>;
|
|
289
|
+
/**
|
|
290
|
+
* The id of TRI's current activity, for the host's server to send to the
|
|
291
|
+
* Decision API. Read it right before each request and never keep it: the
|
|
292
|
+
* activity can change while the page is open (after 60 minutes, or on a
|
|
293
|
+
* back-forward cache restore). Returns `null` when TRI is not started or no
|
|
294
|
+
* activity is active. Synchronous; never throws and never loads TRI.
|
|
295
|
+
*/
|
|
296
|
+
declare function getTRIActivityId(): string | null;
|
|
273
297
|
/**
|
|
274
298
|
* Calls the provider's `setup()` with the given config. This is the step that
|
|
275
299
|
* lazy-loads `@incodetech/tri-sdk`, validates the config, and checks the
|
|
@@ -302,4 +326,4 @@ declare function stopTRI(): Promise<TransactionalRiskIntelligenceState>;
|
|
|
302
326
|
*/
|
|
303
327
|
declare function resetTRI(): Promise<TransactionalRiskIntelligenceState>;
|
|
304
328
|
//#endregion
|
|
305
|
-
export {
|
|
329
|
+
export { setupTRI as a, TransactionalRiskIntelligenceSetupConfig as c, resetTRI as i, getTRIActivityId as n, startTRI as o, isTRIStarted as r, stopTRI as s, createTRISession as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./Manager-
|
|
2
|
-
import { n as Flow } from "./types-
|
|
1
|
+
import "./Manager-DufwKlav.js";
|
|
2
|
+
import { n as Flow } from "./types-Ddc4Tr_f.js";
|
|
3
3
|
import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
|
|
4
4
|
//#region src/internal/flow-events/flowEvents.d.ts
|
|
5
5
|
type FlowStartedEvent = {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-
|
|
1
|
+
import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-CpXbdA1X.js";
|
|
2
2
|
export { type SetupOptions, isConfigured, reset, setup };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as reset, r as isConfigured, s as setup } from "./setup-
|
|
1
|
+
import { i as reset, r as isConfigured, s as setup } from "./setup-BRbhjHiU.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|