@incodetech/core 2.4.0 → 2.4.1-agentic
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/{FaceDetectionProvider-DcPOC2gS.esm.js → FaceDetectionProvider-B83VmClw.esm.js} +29 -64
- package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
- package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
- package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-Cqiaxydi.d.ts} +31 -4
- package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
- package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-C3xNfOsv.d.ts} +12 -3
- package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-GTkoJyFY.esm.js} +75 -22
- package/dist/{addressSearch-DPjIKJrX.esm.js → addressSearch-41sMcnJk.esm.js} +72 -31
- package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-k-U-cL5m.esm.js} +1 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-CQ08atTC.esm.js} +2 -2
- package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-BcsUTTIr.esm.js} +1 -1
- package/dist/{api-Cz90EHyu.esm.js → api-BO8JA7Pf.esm.js} +6 -5
- package/dist/{apiError-DPwFas2f.esm.js → apiError-CfuIvnUy.esm.js} +1 -1
- package/dist/attemptCarry-BjTJ6bMQ.esm.js +45 -0
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-C-cOki0Y.d.ts} +1 -1
- package/dist/{authenticationManager-2Lr5V_7p.esm.js → authenticationManager-DvmklBTE.esm.js} +5 -5
- package/dist/{authenticationStateMachine-C99B0GFP.esm.js → authenticationStateMachine-BL2ptOA0.esm.js} +3 -3
- package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-C5_NNfUN.esm.js} +3 -43
- package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-DtkAf6sn.esm.js} +161 -150
- package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-CM0fuqDC.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-kksIUOPD.esm.js} +2 -2
- package/dist/cnpj-Co1ottYN.esm.js +77 -0
- package/dist/connectivity-HSl0diCx.esm.js +133 -0
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-CBwFozhv.esm.js} +4 -3
- package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-_q9yJUku.d.ts} +14 -7
- package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-CpmRAcr2.esm.js} +20 -7
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-64O8t10a.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-CLgJQcx0.esm.js} +3 -2
- package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-CXpFE-Mv.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-Bx9YhVkJ.esm.js} +28 -20
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-DWt_0YtJ.esm.js} +2 -2
- package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-D8o-2Nej.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-Sbi6DIcK.esm.js} +1 -1
- package/dist/{deepsightLoader-DeNvGU3c.esm.js → deepsightLoader-DMxtowCm.esm.js} +6 -28
- package/dist/{deepsightService-CKTYDIXD.esm.js → deepsightService-twg3bXqY.esm.js} +20 -59
- package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-kHY2IDJi.esm.js} +177 -40
- package/dist/device.esm.js +2 -2
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-6tnnDkMX.d.ts} +14 -2
- package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-CMSC_Mhd.esm.js} +26 -19
- package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-BCwD5Rto.esm.js} +43 -35
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-9kwY8Bf5.d.ts} +1 -1
- package/dist/{dynamicFormsManager-DiKYjcF3.esm.js → dynamicFormsManager-DU6W1e20.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-DEI45xYW.esm.js → dynamicFormsStateMachine-C8Z7k3vo.esm.js} +2 -2
- package/dist/ekyb.d.ts +4 -4
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-TB6ZG5lX.d.ts} +2 -2
- package/dist/{ekybManager-8WLkNcqg.esm.js → ekybManager-TGfqyjuu.esm.js} +2 -2
- package/dist/{ekybStateMachine-BLRT45Ex.esm.js → ekybStateMachine-DBgFuEPK.esm.js} +26 -44
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-BSQteIfC.d.ts} +1 -1
- package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-C2cgG2Pl.esm.js} +2 -2
- package/dist/ekycStateMachine-CuNF7z4O.esm.js +7505 -0
- package/dist/ekycUtils-BFncpC4F.esm.js +1401 -0
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-CcIMOb_Y.esm.js → electronicSignatureManager-C7pqXsRm.esm.js} +4 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-ButFktRm.esm.js → emailManager-FH_CP0cT.esm.js} +2 -2
- package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-Cx-uTaBV.esm.js} +32 -20
- package/dist/{events-Du2A4-Qr.esm.js → events-CQteqXfy.esm.js} +2 -2
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +34 -20
- package/dist/extensibility.esm.js +34 -34
- package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-C-xKdj-d.d.ts} +71 -66
- package/dist/{faceCaptureManagerFactory-BlGvXzXA.esm.js → faceCaptureManagerFactory-CBm05KnT.esm.js} +4 -4
- package/dist/{faceCaptureSetup-TY8RXc2N.esm.js → faceCaptureSetup-BQjCbL51.esm.js} +82 -64
- package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-B2zp7yP4.esm.js} +2 -2
- package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-Z4UDLwAv.d.ts} +16 -7
- package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-ByTMQCUC.esm.js} +40 -27
- package/dist/{feature-management-B5rR10uS.esm.js → feature-management-DjAG5lsJ.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-CC0vKmpf.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-Be-r4oZj.esm.js} +4 -4
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +10 -10
- package/dist/flow.esm.js +8 -11
- package/dist/{flowCompletionService-BDI5QpfR.esm.js → flowCompletionService-ChMU2v79.esm.js} +2 -2
- package/dist/{flowServices-roD0oIQL.esm.js → flowServices-g2tVWsJl.esm.js} +8 -50
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-6e1i9UIR.d.ts} +15 -17
- package/dist/{geolocationManager-DnONzWL5.esm.js → geolocationManager-DLbvZwUB.esm.js} +6 -8
- package/dist/{geolocationStateMachine-eWy_G4Os.esm.js → geolocationStateMachine-CAJVongM.esm.js} +12 -8
- package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-CkX9TEkh.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-PTPCP26N.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +9 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -16
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-MSQoqScU.esm.js} +3 -3
- package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-DzTfQ1Am.d.ts} +66 -5
- package/dist/{idCaptureManager-BrfYjCm_.esm.js → idCaptureManager-zZdTcpG1.esm.js} +63 -17
- package/dist/{idCaptureServices-BSj6EH2l.esm.js → idCaptureServices-8OHinO0N.esm.js} +9 -9
- package/dist/{idCaptureStateMachine-dXKBYHQp.esm.js → idCaptureStateMachine-B3G6XoDG.esm.js} +914 -536
- package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-B64-fjWg.esm.js} +2 -2
- package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-B1aZnobs.esm.js} +2 -2
- package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-_Kebv-Ue.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DQn6c84z.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-DDXkNVZi.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-Bcnkbjf8.esm.js} +1 -1
- package/dist/{index-BKOWUhxG.d.ts → index-DEfwds5y.d.ts} +55 -8
- package/dist/{index-CKQ9QBZP.d.ts → index-DMDAk85K.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-CXIBwBeE.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-43W5d_8G.esm.js} +4 -3
- package/dist/{mandatoryConsentManager-BQ43yndC.d.ts → mandatoryConsentManager-xx3mY-xw.d.ts} +11 -4
- package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-CVlgdlnt.esm.js} +20 -7
- package/dist/{multipartRecordingService-CLwrF5wD.esm.js → multipartRecordingService-DMBxHKS2.esm.js} +3 -13
- package/dist/nationalIds-B91f_RuB.esm.js +99 -0
- package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-B3OPL8Si.esm.js} +1 -1
- package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-DnBAN_hW.esm.js} +4 -4
- package/dist/phone-number.d.ts +7 -1
- package/dist/phone-number.esm.js +15 -2
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
- package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-C6jut_pz.esm.js} +3 -3
- package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-T1-drWfG.esm.js} +37 -25
- package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
- package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
- package/dist/processFaceMatch-BWme3kVV.esm.js +21 -0
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-BJXC6Kx9.esm.js} +4 -3
- package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Dm9ctRCC.d.ts} +3 -1
- package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-BBMAc2Gb.esm.js} +27 -6
- package/dist/{runChildModule-BF_atgNx.esm.js → runChildModule-DPHTqSdF.esm.js} +3 -3
- package/dist/{sdkVersion-CsIbltJF.esm.js → sdkVersion-C3_P-Qbq.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-BY0-YbPW.esm.js → selfieErrorUtils-BL0BLMnp.esm.js} +1 -1
- package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-BMmpUii2.d.ts} +1 -1
- package/dist/{selfieManager-vAAwzsHk.esm.js → selfieManager-Cbliomv7.esm.js} +5 -5
- package/dist/{selfieStateMachine-BFVp3ElQ.esm.js → selfieStateMachine-B5m_Kn0O.esm.js} +3 -3
- package/dist/{session-CpwfoVdH.esm.js → session-DAaAewMX.esm.js} +77 -9
- package/dist/session.d.ts +96 -10
- package/dist/session.esm.js +7 -6
- package/dist/{sessionInitializer-BTjYgE-V.esm.js → sessionInitializer-CWFT4dfw.esm.js} +402 -202
- package/dist/{setup-BInNAvQw.esm.js → setup-CDAKwTr7.esm.js} +32 -19
- package/dist/{setup-YPKTUCY5.d.ts → setup-D9qt8YVU.d.ts} +2 -2
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-BeEVCcsC.esm.js} +2 -2
- package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-_1c1vSid.esm.js} +1 -1
- package/dist/{stats-BEvexnKC.esm.js → stats-BpMz-hTP.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{tri-xzRLIIMN.esm.js → tri-BajQnjbf.esm.js} +142 -8
- package/dist/tri.d.ts +1 -1
- package/dist/tri.esm-CzTNi5Q_.esm.js +3826 -0
- package/dist/tri.esm.js +1 -1
- package/dist/{trueSightService-BMT-TubT.esm.js → trueSightService-BujtUIW6.esm.js} +19 -10
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types-yPH8lAH-.d.ts → types--3HDl2SF.d.ts} +2 -2
- package/dist/types-B2FK_wYb.d.ts +249 -0
- package/dist/types-B9C8W01q.d.ts +34 -0
- package/dist/{types-0L-eFDmr.d.ts → types-C397LhmN.d.ts} +1 -1
- package/dist/types-D9r3zRfY.d.ts +6 -0
- package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
- package/dist/{types-B6HsSzpk.d.ts → types-DuD8TRJU.d.ts} +3 -2
- package/dist/{types-Ckir_BEs.d.ts → types-PTZHRhGX.d.ts} +1 -1
- package/dist/{types-DUnFZ08M.d.ts → types-ZTZelfbM.d.ts} +2 -2
- package/dist/{types-CK8Jbjkp.d.ts → types-e8fCsvvk.d.ts} +1 -1
- package/dist/{types-BAxn7MpY.d.ts → types-xEEWCx1j.d.ts} +123 -48
- package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
- package/dist/video-selfie.d.ts +8 -8
- package/dist/video-selfie.esm.js +95 -22
- package/dist/{videoSelfieCameraWarmer-D1xA0u8y.esm.js → videoSelfieCameraWarmer-DjkPpoj_.esm.js} +18 -21
- package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-RfSmlFFW.d.ts} +9 -4
- package/dist/{warmup-BElYWRh7.esm.js → warmup-BkfxQZsC.esm.js} +175 -11
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-BhU5H2oR.esm.js} +1 -1
- package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
- package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-DTj9auyA.esm.js} +43 -17
- package/dist/watchlist-for-business.d.ts +2 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-CVay6-9A.esm.js} +37 -7
- package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts} +54 -18
- package/dist/watchlistForBusinessStateMachine-DA6K5na4.esm.js +166 -0
- package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-B8gQ_rw3.esm.js} +2 -2
- package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-CSi_ZhtT.esm.js} +1 -1
- package/dist/workflow.d.ts +5 -2
- package/dist/workflow.esm.js +57 -47
- package/package.json +2 -1
- package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
- package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
- package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
- package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
- package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
- package/dist/types-BvLo3U4u.d.ts +0 -134
- package/dist/types-zOgZqMni.d.ts +0 -6
- package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
- /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as setWasmOnDeviceMode,
|
|
3
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
4
|
-
import { S as setAnalyticsBatcher, b as getAnalyticsBatcher, c as resetExperimentAssignments, v as createAnalyticsBatchingService, x as resetAnalyticsBatcher } from "./events-
|
|
5
|
-
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api, u as endpoints } from "./api-
|
|
6
|
-
import { S as noteTestingSignals, d as categoryForEndpoint, f as getStoredHttpConfig, h as upgradeToWasmHttpClient$1, m as resetHttpClientState, n as initializeTrueSightDiagnostics, o as resetTrueSight, p as installFreshHttpClient, s as setTrueSightExternalDrain, t as finalizeTrueSight, u as trueSightLog } from "./trueSightService-
|
|
7
|
-
import {
|
|
8
|
-
import { t as resolveLocalStorage } from "./safeStorage-UxDrnjwa.esm.js";
|
|
1
|
+
import { F as setWasmIntegrityObserver, T as resolveWasmConfig, b as DEFAULT_WASM_VERSION, g as setWasmStartGate, v as setWasmDiagnosticsHandler } from "./wasmWebClient-DTj9auyA.esm.js";
|
|
2
|
+
import { a as setWasmOnDeviceMode, f as drainWasmDiagnostics, i as isWasmReady, m as rearmWasmDiagnostics, n as getWarmupFacts, p as getWasmDiagnosticsMode, r as getWasmStatus, s as warmupWasm } from "./warmup-BkfxQZsC.esm.js";
|
|
3
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-GTkoJyFY.esm.js";
|
|
4
|
+
import { S as setAnalyticsBatcher, b as getAnalyticsBatcher, c as resetExperimentAssignments, v as createAnalyticsBatchingService, x as resetAnalyticsBatcher } from "./events-CQteqXfy.esm.js";
|
|
5
|
+
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
6
|
+
import { S as noteTestingSignals, d as categoryForEndpoint, f as getStoredHttpConfig, h as upgradeToWasmHttpClient$1, m as resetHttpClientState, n as initializeTrueSightDiagnostics, o as resetTrueSight, p as installFreshHttpClient, s as setTrueSightExternalDrain, t as finalizeTrueSight, u as trueSightLog } from "./trueSightService-BujtUIW6.esm.js";
|
|
7
|
+
import { S as fingerprintSignalsReporter, a as resetSessionInit, c as setClientIpLookupEnabled, g as setStandaloneFlowPolicy, h as resolveStandaloneFlowPolicy, i as initializeSession, l as setClientWasmConfig, m as resetStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as registerFlowPreloader, s as setClientHostingApp, u as setClientWasmDisabled, x as BrowserEnvironmentProvider } from "./sessionInitializer-CWFT4dfw.esm.js";
|
|
9
8
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { i as
|
|
9
|
+
import { t as resolveLocalStorage } from "./safeStorage-UxDrnjwa.esm.js";
|
|
10
|
+
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-DjAG5lsJ.esm.js";
|
|
11
|
+
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-BpMz-hTP.esm.js";
|
|
12
|
+
import { i as isTRIStarted, o as readTRIFpSignals, r as initializeTRI, s as resetSdkOwnedTRI, t as addTRIFpSignals } from "./tri-BajQnjbf.esm.js";
|
|
13
|
+
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-g2tVWsJl.esm.js";
|
|
14
14
|
//#region ../infra/src/wasm/wasmRuntimeProfile.ts
|
|
15
15
|
/**
|
|
16
16
|
* The WASM facts TrueSight reports as `session.webProfile.wasm`
|
|
@@ -496,6 +496,9 @@ async function setup(options) {
|
|
|
496
496
|
const shouldPreloadFlow = options.flow !== false && flowOptions.preload === true;
|
|
497
497
|
setStandaloneFlowPolicy(standaloneFlowPolicy);
|
|
498
498
|
registerFlowPreloader(preloadDashboardFlow);
|
|
499
|
+
setWasmStartGate(async () => {
|
|
500
|
+
await readTRIFpSignals();
|
|
501
|
+
});
|
|
499
502
|
if (options.ipLookup !== void 0) setClientIpLookupEnabled(options.ipLookup);
|
|
500
503
|
if (options.deviceWallet?.googleSignedRequests !== void 0) setGoogleWalletSignedRequests(options.deviceWallet.googleSignedRequests);
|
|
501
504
|
if (options.hostingApp !== void 0) setClientHostingApp(options.hostingApp);
|
|
@@ -545,6 +548,12 @@ async function setup(options) {
|
|
|
545
548
|
trueSightLog("severe", "http", "other", `http client install failed error=${String(error)}`);
|
|
546
549
|
throw error;
|
|
547
550
|
}
|
|
551
|
+
if (options.wasm === false) setClientWasmDisabled(true);
|
|
552
|
+
else if (effectiveWasm) setClientWasmDisabled(false);
|
|
553
|
+
if (effectiveWasm) setWasmConfig({
|
|
554
|
+
...effectiveWasm,
|
|
555
|
+
pipelines: effectiveWasm.pipelines ? [...effectiveWasm.pipelines] : void 0
|
|
556
|
+
});
|
|
548
557
|
if (options.token && isApiConfigured()) {
|
|
549
558
|
const sessionOptions = { token: options.token };
|
|
550
559
|
if (shouldPreloadFlow) sessionOptions.preloadFlow = true;
|
|
@@ -557,10 +566,6 @@ async function setup(options) {
|
|
|
557
566
|
configured = true;
|
|
558
567
|
applyEnvironment(options.environment);
|
|
559
568
|
if (effectiveWasm) {
|
|
560
|
-
wasmConfig = {
|
|
561
|
-
...effectiveWasm,
|
|
562
|
-
pipelines: effectiveWasm.pipelines ? [...effectiveWasm.pipelines] : void 0
|
|
563
|
-
};
|
|
564
569
|
await warmupWasm(effectiveWasm);
|
|
565
570
|
await (await WasmUtilProvider.getInstance()).initialize({
|
|
566
571
|
...effectiveWasm,
|
|
@@ -584,7 +589,13 @@ async function setup(options) {
|
|
|
584
589
|
if (featureManagementSetupOptions.awaitInitialization === true) await featureManagementReady;
|
|
585
590
|
}
|
|
586
591
|
else if (options.featureManagement !== void 0) console.error("[FeatureManagement] Feature management is locked after the first setup() call and cannot be changed (re-enabled, disabled, or reconfigured). Ignoring this change. Call reset() before changing it.");
|
|
587
|
-
if (options.tri)
|
|
592
|
+
if (options.tri) {
|
|
593
|
+
await initializeTRI(options.tri, {
|
|
594
|
+
sessionToken: options.token,
|
|
595
|
+
fpSignalsFromSdk: isWasmReady() || getWasmStatus().isLoading
|
|
596
|
+
});
|
|
597
|
+
if (isTRIStarted()) fingerprintSignalsReporter.forwardTo(addTRIFpSignals);
|
|
598
|
+
}
|
|
588
599
|
}
|
|
589
600
|
/**
|
|
590
601
|
* Sets the WASM configuration without performing warmup.
|
|
@@ -594,6 +605,7 @@ async function setup(options) {
|
|
|
594
605
|
*/
|
|
595
606
|
function setWasmConfig(config) {
|
|
596
607
|
wasmConfig = config;
|
|
608
|
+
setClientWasmConfig(resolveWasmConfig(config));
|
|
597
609
|
}
|
|
598
610
|
/**
|
|
599
611
|
* Initializes WasmUtilProvider with the stored WASM configuration.
|
|
@@ -690,11 +702,12 @@ function reset() {
|
|
|
690
702
|
resetHttpClientState();
|
|
691
703
|
setWasmIntegrityObserver(null);
|
|
692
704
|
setWasmDiagnosticsHandler(null);
|
|
693
|
-
|
|
705
|
+
resetSdkOwnedTRI();
|
|
694
706
|
configured = false;
|
|
695
707
|
wasmConfig = void 0;
|
|
708
|
+
setClientWasmConfig(void 0);
|
|
709
|
+
setClientWasmDisabled(false);
|
|
696
710
|
WasmUtilProvider.resetInstance();
|
|
697
|
-
resetTRIProviderInstance();
|
|
698
711
|
resetFeatureManagement();
|
|
699
712
|
resetFeatureManagementProviderInstance();
|
|
700
713
|
resetEnvironment();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as WasmPipeline, i as WasmModuleConfig, n as WasmModelsConfig, t as WarmupConfig } from "./warmup-BO57syF6.js";
|
|
2
|
-
import { s as TransactionalRiskIntelligenceSetupConfig } from "./index-
|
|
2
|
+
import { s as TransactionalRiskIntelligenceSetupConfig } from "./index-DEfwds5y.js";
|
|
3
3
|
import { c as FeatureManagementRedactedUserInfo } from "./IFeatureManagementCapability-De8wpbGh.js";
|
|
4
4
|
//#region src/internal/environment/environment.d.ts
|
|
5
5
|
/**
|
|
@@ -192,7 +192,7 @@ type SetupOptions = {
|
|
|
192
192
|
* collection off (`sbc(false)`) once WASM is ready.
|
|
193
193
|
*
|
|
194
194
|
* It does **not** suppress the rest of native fingerprint collection:
|
|
195
|
-
* against the pinned `v2.14.
|
|
195
|
+
* against the pinned runtime (`v2.14.49-post1` and later), WASM starts collecting during
|
|
196
196
|
* initialization regardless of this flag, and the full fingerprint bucket is
|
|
197
197
|
* serialized into the metadata bundle.
|
|
198
198
|
*
|
package/dist/signature.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as signatureMachine } from "./signatureStateMachine-
|
|
2
|
-
import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-
|
|
1
|
+
import { t as signatureMachine } from "./signatureStateMachine-_1c1vSid.esm.js";
|
|
2
|
+
import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-BeEVCcsC.esm.js";
|
|
3
3
|
export { createSignatureManager, createSignatureManagerFromActor, signatureMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import { t as signatureMachine } from "./signatureStateMachine-
|
|
4
|
+
import { t as signatureMachine } from "./signatureStateMachine-_1c1vSid.esm.js";
|
|
5
5
|
//#region src/modules/signature/signatureActor.ts
|
|
6
6
|
function createSignatureActor(options) {
|
|
7
7
|
return createActor(signatureMachine, { input: { config: options.config } }).start();
|
package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-_1c1vSid.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
4
4
|
//#region src/modules/signature/signatureServices.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getToken, t as api, u as endpoints } from "./api-
|
|
1
|
+
import { r as getToken, t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
2
2
|
//#region src/modules/stats/statsServices.ts
|
|
3
3
|
const deviceStatsQueue = [];
|
|
4
4
|
async function postDeviceStatsNow(stats) {
|
package/dist/stats.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-
|
|
1
|
+
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-BpMz-hTP.esm.js";
|
|
2
2
|
export { addDeviceStats, flushDeviceStatsQueue, resetDeviceStatsQueue };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { t as SDK_VERSION } from "./sdkVersion-C3_P-Qbq.esm.js";
|
|
2
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
1
3
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
2
4
|
//#region ../infra/src/providers/browser/TransactionalRiskIntelligenceProvider.ts
|
|
3
5
|
const LAZY_IMPORT_OPTIONS = {
|
|
@@ -6,7 +8,7 @@ const LAZY_IMPORT_OPTIONS = {
|
|
|
6
8
|
timeoutMs: 1e4,
|
|
7
9
|
disabledMessage: "TRI will be disabled for this session."
|
|
8
10
|
};
|
|
9
|
-
const importSdk = () => import("./tri.esm-
|
|
11
|
+
const importSdk = () => import("./tri.esm-CzTNi5Q_.esm.js");
|
|
10
12
|
/**
|
|
11
13
|
* Concrete implementation of {@link ITransactionalRiskIntelligenceCapability}.
|
|
12
14
|
*
|
|
@@ -30,6 +32,7 @@ const importSdk = () => import("./tri.esm-BIjHhBJ2.esm.js");
|
|
|
30
32
|
var TransactionalRiskIntelligenceProvider = class TransactionalRiskIntelligenceProvider {
|
|
31
33
|
constructor() {
|
|
32
34
|
this._isStarted = false;
|
|
35
|
+
this._isSetUp = false;
|
|
33
36
|
this._lazySdk = BrowserLazyImportProvider.getInstance().create(importSdk, LAZY_IMPORT_OPTIONS);
|
|
34
37
|
}
|
|
35
38
|
static getInstance() {
|
|
@@ -41,6 +44,12 @@ var TransactionalRiskIntelligenceProvider = class TransactionalRiskIntelligenceP
|
|
|
41
44
|
get isStarted() {
|
|
42
45
|
return this._isStarted;
|
|
43
46
|
}
|
|
47
|
+
get isSetUp() {
|
|
48
|
+
return this._isSetUp;
|
|
49
|
+
}
|
|
50
|
+
get pendingSetup() {
|
|
51
|
+
return this._pendingSetup;
|
|
52
|
+
}
|
|
44
53
|
/**
|
|
45
54
|
* Lazy-loads `@incodetech/tri-sdk` (shared lazy handle) and exchanges the
|
|
46
55
|
* organization API key for a short-lived SDK token via the module's
|
|
@@ -71,12 +80,22 @@ var TransactionalRiskIntelligenceProvider = class TransactionalRiskIntelligenceP
|
|
|
71
80
|
* also calls `start()` and returns `'started'` on success. `_isStarted` is
|
|
72
81
|
* updated to reflect the resulting state so that `isTRIStarted()` is
|
|
73
82
|
* accurate immediately after `setup()` returns.
|
|
83
|
+
*
|
|
84
|
+
* The call is {@link pendingSetup} until it settles.
|
|
74
85
|
*/
|
|
75
|
-
|
|
86
|
+
setup(config) {
|
|
87
|
+
const setup = this._setup(config).finally(() => {
|
|
88
|
+
if (this._pendingSetup === setup) this._pendingSetup = void 0;
|
|
89
|
+
});
|
|
90
|
+
this._pendingSetup = setup;
|
|
91
|
+
return setup;
|
|
92
|
+
}
|
|
93
|
+
async _setup(config) {
|
|
76
94
|
try {
|
|
77
95
|
const module = await this._lazySdk.load();
|
|
78
96
|
if (!module) return "init-failed";
|
|
79
97
|
const state = await module.default.setup(config);
|
|
98
|
+
this._isSetUp = true;
|
|
80
99
|
if (state === "started") this._isStarted = true;
|
|
81
100
|
return state;
|
|
82
101
|
} catch {
|
|
@@ -106,6 +125,7 @@ var TransactionalRiskIntelligenceProvider = class TransactionalRiskIntelligenceP
|
|
|
106
125
|
async reset() {
|
|
107
126
|
const state = await (this._getSdk()?.reset() ?? Promise.resolve("init-failed"));
|
|
108
127
|
this._isStarted = false;
|
|
128
|
+
this._isSetUp = false;
|
|
109
129
|
return state;
|
|
110
130
|
}
|
|
111
131
|
/**
|
|
@@ -122,12 +142,40 @@ var TransactionalRiskIntelligenceProvider = class TransactionalRiskIntelligenceP
|
|
|
122
142
|
return false;
|
|
123
143
|
}
|
|
124
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* TRI's fpSignals PID and DEVICE results. Resolves `null` before `setup()`
|
|
147
|
+
* and on any failure, so a caller can always fall back to its own runtime.
|
|
148
|
+
*/
|
|
149
|
+
async getFpSignals() {
|
|
150
|
+
try {
|
|
151
|
+
return await this._getSdk()?.getFpSignals() ?? null;
|
|
152
|
+
} catch {
|
|
153
|
+
return null;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Passes one signed result of the host's runtime to TRI, unchanged. Returns
|
|
158
|
+
* `false` before `setup()` and on any failure.
|
|
159
|
+
*/
|
|
160
|
+
addFpSignals(signals) {
|
|
161
|
+
try {
|
|
162
|
+
return this._getSdk()?.addFpSignals(signals) ?? false;
|
|
163
|
+
} catch {
|
|
164
|
+
return false;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
125
167
|
_getSdk() {
|
|
126
168
|
return this._lazySdk.get()?.default ?? null;
|
|
127
169
|
}
|
|
128
170
|
};
|
|
129
171
|
//#endregion
|
|
130
172
|
//#region src/integrations/tri/tri.ts
|
|
173
|
+
const SDK_HOST = {
|
|
174
|
+
platform: "sdk2",
|
|
175
|
+
version: SDK_VERSION
|
|
176
|
+
};
|
|
177
|
+
const FP_SIGNALS_WAIT_MS = 5e3;
|
|
178
|
+
let sdkOwnsTRI = false;
|
|
131
179
|
/**
|
|
132
180
|
* Returns the active TRI capability implementation.
|
|
133
181
|
*
|
|
@@ -187,28 +235,103 @@ async function createTRISession(apiKey, options) {
|
|
|
187
235
|
* ready (e.g. after a consent gate). Linking is skipped in that case since
|
|
188
236
|
* TRI has not started.
|
|
189
237
|
*
|
|
238
|
+
* A TRI that is already set up, typically by the host through
|
|
239
|
+
* `@incodetech/core/tri`, is reused instead, after any setup still in flight
|
|
240
|
+
* finishes: `config` is ignored (with a `[TRI]` warning), the session is linked
|
|
241
|
+
* to the running activity, and the result is `'started'`, or `'ready'` when it
|
|
242
|
+
* is not running. The host keeps owning it, so `reset()` leaves it running.
|
|
243
|
+
*
|
|
190
244
|
* @param config - TRI setup config (must include `token` and `apiURL`).
|
|
191
245
|
* @param options - Optional session-linking hints (`sessionToken`).
|
|
192
246
|
*/
|
|
193
247
|
async function initializeTRI(config, options = {}) {
|
|
194
248
|
const resolvedTriConfig = resolveTRIConfig(config);
|
|
195
249
|
if (!resolvedTriConfig) return "init-failed";
|
|
196
|
-
const
|
|
250
|
+
const provider = getProvider();
|
|
251
|
+
while (provider.pendingSetup) await provider.pendingSetup;
|
|
252
|
+
if (provider.isSetUp) {
|
|
253
|
+
console.warn("[TRI] Already set up: reusing the running TRI. This tri config is ignored.");
|
|
254
|
+
if (isTRIStarted() && options.sessionToken) await linkSessionWithTRI(options.sessionToken);
|
|
255
|
+
return isTRIStarted() ? "started" : "ready";
|
|
256
|
+
}
|
|
257
|
+
sdkOwnsTRI = true;
|
|
258
|
+
const state = await setupTRI(options.fpSignalsFromSdk ? withoutFpSignals(resolvedTriConfig) : resolvedTriConfig);
|
|
197
259
|
if (isTRIStarted() && options.sessionToken) await linkSessionWithTRI(options.sessionToken);
|
|
198
260
|
return state;
|
|
199
261
|
}
|
|
200
262
|
/**
|
|
263
|
+
* SDK 2 first: its runtime already collects the fingerprint, so TRI does not
|
|
264
|
+
* load a second fpSignals module, and the SDK passes its own results to TRI
|
|
265
|
+
* (`addTRIFpSignals`). The host's `layers` or `collectors` choice is kept.
|
|
266
|
+
*/
|
|
267
|
+
function withoutFpSignals(config) {
|
|
268
|
+
if (config.layers) return {
|
|
269
|
+
...config,
|
|
270
|
+
layers: {
|
|
271
|
+
...config.layers,
|
|
272
|
+
"device-fingerprinting": false
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
if (config.collectors) return {
|
|
276
|
+
...config,
|
|
277
|
+
collectors: {
|
|
278
|
+
...config.collectors,
|
|
279
|
+
fpsignals: { enabled: false }
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
return {
|
|
283
|
+
...config,
|
|
284
|
+
layers: {
|
|
285
|
+
session: true,
|
|
286
|
+
behavioral: true,
|
|
287
|
+
"device-fingerprinting": false
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* TRI's fpSignals PID and DEVICE results, waiting at most
|
|
293
|
+
* {@link FP_SIGNALS_WAIT_MS} for the module to finish. Resolves `null` when
|
|
294
|
+
* TRI is not started, its `fpsignals` collector is off or failed (CSP, load
|
|
295
|
+
* error), or the wait ran out. The strings are signed: pass them on unchanged.
|
|
296
|
+
*/
|
|
297
|
+
async function readTRIFpSignals() {
|
|
298
|
+
if (!isTRIStarted()) return null;
|
|
299
|
+
const timer = BrowserTimerProvider.getInstance();
|
|
300
|
+
let timeout;
|
|
301
|
+
const timedOut = new Promise((resolve) => {
|
|
302
|
+
timeout = timer.setTimeout(() => resolve(null), FP_SIGNALS_WAIT_MS);
|
|
303
|
+
});
|
|
304
|
+
try {
|
|
305
|
+
return await Promise.race([getProvider().getFpSignals(), timedOut]);
|
|
306
|
+
} finally {
|
|
307
|
+
if (timeout !== void 0) timer.clearTimeout(timeout);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Passes one signed result of the SDK's runtime to TRI as an `fp_signals`
|
|
312
|
+
* event, unchanged. Returns `false` when TRI is not started or runs its own
|
|
313
|
+
* `fpsignals` collector.
|
|
314
|
+
*/
|
|
315
|
+
function addTRIFpSignals(signals) {
|
|
316
|
+
return getProvider().addFpSignals(signals);
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
201
319
|
* Calls the provider's `setup()` with the given config. This is the step that
|
|
202
320
|
* lazy-loads `@incodetech/tri-sdk`, validates the config, and checks the
|
|
203
321
|
* backend collection-status endpoint. When `config.autostart` is `true` (the
|
|
204
322
|
* default), also calls `start()` internally and returns `'started'` on
|
|
205
323
|
* success. Pass `autostart: false` to receive `'ready'` and start explicitly.
|
|
206
324
|
*
|
|
325
|
+
* TRI reports the SDK as its host: `{ platform: 'sdk2', version }`.
|
|
326
|
+
*
|
|
207
327
|
* @param config - Resolved TRI config (`token` and `apiURL` required).
|
|
208
328
|
* @returns The resulting {@link TransactionalRiskIntelligenceState}.
|
|
209
329
|
*/
|
|
210
330
|
async function setupTRI(config) {
|
|
211
|
-
return getProvider().setup(
|
|
331
|
+
return getProvider().setup({
|
|
332
|
+
...config,
|
|
333
|
+
host: SDK_HOST
|
|
334
|
+
});
|
|
212
335
|
}
|
|
213
336
|
/**
|
|
214
337
|
* Begins behavioral data collection. Requires a prior successful `setupTRI()`
|
|
@@ -235,6 +358,18 @@ async function resetTRI() {
|
|
|
235
358
|
return getProvider().reset();
|
|
236
359
|
}
|
|
237
360
|
/**
|
|
361
|
+
* The SDK's `reset()` step for TRI: resets TRI and discards the provider only
|
|
362
|
+
* when `setup({ tri })` set TRI up. A TRI the host set up through
|
|
363
|
+
* `@incodetech/core/tri` keeps its activity, and the next session still links
|
|
364
|
+
* to it.
|
|
365
|
+
*/
|
|
366
|
+
function resetSdkOwnedTRI() {
|
|
367
|
+
if (!sdkOwnsTRI) return;
|
|
368
|
+
sdkOwnsTRI = false;
|
|
369
|
+
resetTRI();
|
|
370
|
+
resetTRIProviderInstance();
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
238
373
|
* Links the current Incode interview session to the active TRI activity.
|
|
239
374
|
*
|
|
240
375
|
* Returns `false` when the session token is missing or TRI has not been set up.
|
|
@@ -248,9 +383,8 @@ async function linkSessionWithTRI(sessionToken) {
|
|
|
248
383
|
/**
|
|
249
384
|
* @private This function is not used outside of this file.
|
|
250
385
|
*
|
|
251
|
-
* Validates
|
|
252
|
-
*
|
|
253
|
-
* the provider's `setup()`.
|
|
386
|
+
* Validates a {@link TransactionalRiskIntelligenceSetupConfig} before it is
|
|
387
|
+
* passed to {@link setupTRI}.
|
|
254
388
|
*
|
|
255
389
|
* Returns `null` (with a `[TRI]` warning) when a required field is missing.
|
|
256
390
|
* Returns `null` silently when `config` is `undefined` (intentional opt-out).
|
|
@@ -270,4 +404,4 @@ function resolveTRIConfig(config) {
|
|
|
270
404
|
return config;
|
|
271
405
|
}
|
|
272
406
|
//#endregion
|
|
273
|
-
export {
|
|
407
|
+
export { linkSessionWithTRI as a, resetTRI as c, stopTRI as d, isTRIStarted as i, setupTRI as l, createTRISession as n, readTRIFpSignals as o, initializeTRI as r, resetSdkOwnedTRI as s, addTRIFpSignals as t, startTRI as u };
|
package/dist/tri.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as startTRI, i as setupTRI, n as isTRIStarted, o as stopTRI, r as resetTRI, s as TransactionalRiskIntelligenceSetupConfig, t as createTRISession } from "./index-
|
|
1
|
+
import { a as startTRI, i as setupTRI, n as isTRIStarted, o as stopTRI, r as resetTRI, s as TransactionalRiskIntelligenceSetupConfig, t as createTRISession } from "./index-DEfwds5y.js";
|
|
2
2
|
export { type TransactionalRiskIntelligenceSetupConfig, createTRISession, isTRIStarted, resetTRI, setupTRI, startTRI, stopTRI };
|