@incodetech/core 2.4.0-rc.0 → 2.4.0-rc.1
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/{BaseWasmProvider-BL9wIRnN.d.ts → BaseWasmProvider-Bq3OHo7P.d.ts} +2 -2
- package/dist/BrowserDiagnosticsEnvelopeProvider-BQca6KPG.esm.js +43 -0
- package/dist/{FaceDetectionProvider-BjTer9h3.esm.js → FaceDetectionProvider-BIImDZrc.esm.js} +10 -11
- package/dist/{IIdCaptureCapability-DBsv9-7M.d.ts → IIdCaptureCapability-CGcEt2Cw.d.ts} +2 -2
- package/dist/{IWasmUtilCapability-CPX0RGdQ.d.ts → IWasmUtilCapability-GF2n7sfm.d.ts} +2 -2
- package/dist/{StreamCanvasCapture-DVmzJux5.d.ts → StreamCanvasCapture-7JRf-2ck.d.ts} +2 -2
- package/dist/{WasmUtilProvider-CIdnE7Fx.esm.js → WasmUtilProvider-DtJuBdt-.esm.js} +18 -5
- package/dist/{addressSearch-BiYZjvp3.esm.js → addressSearch-DPjIKJrX.esm.js} +1 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-HL08jeDX.esm.js → antifraudManager-CaweCYnY.esm.js} +2 -2
- package/dist/{antifraudStateMachine-DoJVzblM.esm.js → antifraudStateMachine-DRl0UVyA.esm.js} +1 -2
- package/dist/{endpoints-DHzlkQNe.esm.js → api-Cz90EHyu.esm.js} +149 -1
- package/dist/{apiError-DcSWedC6.esm.js → apiError-D5u6HIDG.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CANv5-W5.d.ts → authenticationManager-BIZC55Bi.d.ts} +1 -1
- package/dist/{authenticationManager-SaiAxqvS.esm.js → authenticationManager-CB3YW6EK.esm.js} +5 -5
- package/dist/{authenticationStateMachine-CHSxmV7z.esm.js → authenticationStateMachine-BJJhLmdH.esm.js} +3 -3
- package/dist/avatar.d.ts +1 -1
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-CMg4SgL4.esm.js → certificateIssuanceManager-BfeMv2PU.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-Cs64QmYH.esm.js → certificateIssuanceStateMachine-Frgjbjw8.esm.js} +1 -2
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-CjrxY737.esm.js → consentManager-CvEu8h_W.esm.js} +2 -2
- package/dist/{consentManager-DgzWQpAR.d.ts → consentManager-Cv_0QKLD.d.ts} +9 -9
- package/dist/{consentStateMachine-BCj5Jb3g.esm.js → consentStateMachine-DJTgN_-1.esm.js} +1 -2
- package/dist/{createCameraCycleOwnership-kdlhkmmY.esm.js → createCameraCycleOwnership-Dj_LHUvN.esm.js} +2 -3
- package/dist/{createFaceAvatar-DXgmQmQy.d.ts → createFaceAvatar-lYX0VTYs.d.ts} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-BHnGRsto.esm.js → crossDocumentDataMatchManager-Cu141CE8.esm.js} +2 -3
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-DBNIn8BF.esm.js → curpValidationManager-B-z9q5V3.esm.js} +2 -2
- package/dist/{curpValidationManager-B-1EZbP_.d.ts → curpValidationManager-C9sqoh9n.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-DAxImy8p.esm.js → curpValidationStateMachine-vDEFLMPw.esm.js} +1 -2
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-BV6UyLFV.esm.js → customFieldsManager-D1ex2cFM.esm.js} +2 -3
- package/dist/{customWatchlistManager-DML0UPzf.esm.js → customWatchlistManager-CTI-SGk0.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-D9gI5uu7.esm.js → customWatchlistStateMachine-hmRd0f2I.esm.js} +1 -2
- package/dist/{deepsightLoader-DvfAYnzg.esm.js → deepsightLoader-DZMdYSl-.esm.js} +6 -6
- package/dist/{deepsightService-DLGO9yv1.esm.js → deepsightService-tGP53cSS.esm.js} +3 -3
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-C9XUnYU6.esm.js → documentCaptureManager-DUJwpKC5.esm.js} +2 -2
- package/dist/{documentCaptureStateMachine-BHDsCfhL.esm.js → documentCaptureStateMachine-B8i7GnLh.esm.js} +3 -4
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-5uIXobxi.esm.js → dynamicFormsManager-Bxmv_9PB.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-DQmok084.esm.js → dynamicFormsStateMachine-CoOWTzyM.esm.js} +2 -3
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-CazShiQz.esm.js → ekybManager-BBkdPxUY.esm.js} +2 -2
- package/dist/{ekybStateMachine-hstiCNmW.esm.js → ekybStateMachine-n4Iz9iLc.esm.js} +3 -4
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-BdJRUsz0.esm.js → ekycManager-BO-Lui3t.esm.js} +2 -2
- package/dist/{ekycStateMachine-x6Klot8g.esm.js → ekycStateMachine-CDnI_NRq.esm.js} +2 -3
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-Bc8spG8p.esm.js → electronicSignatureManager-BtWCrz5_.esm.js} +3 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-CtlKRRaR.esm.js → emailManager-ButFktRm.esm.js} +2 -2
- package/dist/{emailStateMachine-5Neq3rE5.esm.js → emailStateMachine-BXtlC0NV.esm.js} +1 -2
- package/dist/{events-CAgFE-k3.esm.js → events-Du2A4-Qr.esm.js} +184 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +14 -14
- package/dist/extensibility.esm.js +34 -34
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-jKQ2QtY-.d.ts → faceCaptureManagerFactory-1hzeS_rB.d.ts} +7 -7
- package/dist/{faceCaptureManagerFactory-uFm1AcaY.esm.js → faceCaptureManagerFactory-CwZUeYfq.esm.js} +4 -4
- package/dist/{faceCaptureSetup-Cu2wabzo.esm.js → faceCaptureSetup-CYbdKNlI.esm.js} +14 -10
- package/dist/{faceMatchManager-9Nj9aPci.esm.js → faceMatchManager-DWFUQjMQ.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-B9ZUnlyU.esm.js → faceMatchStateMachine-CUCvlydD.esm.js} +1 -2
- package/dist/{feature-management-BTbYruNe.esm.js → feature-management-rTfjzdDa.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-Dk38hXZP.esm.js → fieldComparisonManager-v3knTYV_.esm.js} +2 -3
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-DmBkQfs0.esm.js → fiscalQrManager-Dt9fHG7h.esm.js} +3 -3
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +6 -6
- package/dist/flow.esm.js +4 -4
- package/dist/{flowCompletionService-xnn_SlJU.esm.js → flowCompletionService-oiK1PjPr.esm.js} +2 -3
- package/dist/{flowServices-DA64AEZC.esm.js → flowServices-CTc-zqfN.esm.js} +6 -7
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CqNLY45e.esm.js → geolocationManager-BOdtVuR8.esm.js} +2 -2
- package/dist/{geolocationStateMachine-D-cQi7ar.esm.js → geolocationStateMachine-BnGuZ3hn.esm.js} +2 -3
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-CP0SiOOe.esm.js → governmentValidationManager-BtXWHICu.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-C3YQ8yCZ.esm.js → governmentValidationStateMachine-COL-Vs48.esm.js} +1 -2
- 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.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +3 -3
- package/dist/id-selfie-flow.esm.js +9 -9
- 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-CBg73RnV.esm.js → idCaptureDefaults-BGsG2OAs.esm.js} +3 -4
- package/dist/{idCaptureManager-BY97SRCV.d.ts → idCaptureManager-0M02hSuC.d.ts} +7 -7
- package/dist/{idCaptureManager-D4V8vXtY.esm.js → idCaptureManager-BKedt48Y.esm.js} +7 -7
- package/dist/{idCaptureServices-DJ33k3-p.esm.js → idCaptureServices-D0p_RFqk.esm.js} +6 -7
- package/dist/{idCaptureStateMachine-PJt0yzom.esm.js → idCaptureStateMachine-CxwoN5ff.esm.js} +22 -19
- package/dist/{idOcrManager-DxoCesYP.esm.js → idOcrManager-D3-HNMXP.esm.js} +2 -2
- package/dist/{idOcrManager-BTdHlJ9D.d.ts → idOcrManager-DT3kPIB3.d.ts} +1 -1
- package/dist/{idOcrStateMachine-kPn7DB2I.esm.js → idOcrStateMachine-DyENX6Ki.esm.js} +1 -2
- package/dist/{idVerificationManager-CDhRUU5n.esm.js → idVerificationManager-iWz7Avkr.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-0HTVVxse.esm.js → idVerificationStateMachine-CL1kUdBe.esm.js} +1 -2
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-B1birg5X.d.ts} +4 -4
- package/dist/{identityReuseManager-BleUi6TK.esm.js → identityReuseManager-CD1ucp1d.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-BrBUpfn5.esm.js → identityReuseStateMachine-DfV81wQC.esm.js} +1 -2
- package/dist/{index-DfEuu-Ew.d.ts → index-CKQ9QBZP.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-BW7V3vub.esm.js → invokeOnCaptureCallback-DYrkOXO6.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-CX_Dyht7.esm.js → mandatoryConsentManager-Cwqx1nK7.esm.js} +2 -2
- package/dist/{mandatoryConsentManager-TkX57U6f.d.ts → mandatoryConsentManager-okPILEru.d.ts} +6 -6
- package/dist/{mandatoryConsentStateMachine-CoaSB7P7.esm.js → mandatoryConsentStateMachine-pXWqAHo_.esm.js} +1 -2
- package/dist/{multipartRecordingService-DbeQpXdU.esm.js → multipartRecordingService-CLwrF5wD.esm.js} +1 -2
- package/dist/{permissionGuards-Bf4LbHjC.esm.js → permissionGuards-gcy3U0SL.esm.js} +1 -1
- package/dist/{permissionServices-d2UW0r_L.esm.js → permissionServices-Ca-tSNhT.esm.js} +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-BGBcpqsk.esm.js → phoneManager-KKUq-Vgo.esm.js} +2 -2
- package/dist/{phoneStateMachine-CEm2y7yG.esm.js → phoneStateMachine-D2QWS2cu.esm.js} +1 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-B1yQHFLu.esm.js → redirectToMobileManager-uHW3dyuQ.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine--Sr9NEVT.esm.js → redirectToMobileStateMachine-b-H-ipGM.esm.js} +1 -2
- package/dist/{runChildModule-vdxQMCmO.esm.js → runChildModule-CPa0i2_C.esm.js} +2 -2
- package/dist/{sdkVersion-F5YZbjip.esm.js → sdkVersion-BtROs6OA.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-D-tsgEuX.esm.js → selfieErrorUtils-sMc0MaNh.esm.js} +1 -1
- package/dist/{selfieManager-1J0IEyFq.d.ts → selfieManager-BJdNu_nd.d.ts} +1 -1
- package/dist/{selfieManager-26pENXxw.esm.js → selfieManager-Ch9xJbWJ.esm.js} +5 -5
- package/dist/{selfieStateMachine-BhfKsl3I.esm.js → selfieStateMachine-DT8QCfKR.esm.js} +3 -3
- package/dist/{session-Bu7djCsj.esm.js → session-CNNTckUS.esm.js} +4 -5
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-jxbfCnE-.esm.js → sessionInitializer-DVWMJh25.esm.js} +7 -8
- package/dist/{setup-C38QkrSP.esm.js → setup-B7ehQ-lf.esm.js} +93 -198
- package/dist/{setup-lgkQ8dJW.d.ts → setup-YPKTUCY5.d.ts} +23 -5
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-qqXyH93e.esm.js → signatureManager-f_dPAGXn.esm.js} +2 -2
- package/dist/{signatureStateMachine-BkRSrkKp.esm.js → signatureStateMachine-C-nUq_oq.esm.js} +1 -2
- package/dist/{stats-DmG_tkGk.esm.js → stats-BEvexnKC.esm.js} +1 -2
- package/dist/stats.esm.js +1 -1
- package/dist/{trueSightService-BWgRVGIT.esm.js → trueSightService-BzLdXpmJ.esm.js} +914 -225
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types-BGXxRwQM.d.ts → types-B6HsSzpk.d.ts} +1 -1
- package/dist/{types-CyPUIpzf.d.ts → types-BAxn7MpY.d.ts} +5 -5
- package/dist/{types-DTYr9pCB.d.ts → types-CK8Jbjkp.d.ts} +1 -1
- package/dist/{types-BvFmYX5c.d.ts → types-Ckir_BEs.d.ts} +1 -1
- package/dist/{types-zpO4fU6a.d.ts → types-yPH8lAH-.d.ts} +3 -3
- package/dist/types-zOgZqMni.d.ts +6 -0
- package/dist/video-selfie.d.ts +3 -3
- package/dist/video-selfie.esm.js +6 -7
- package/dist/{videoSelfieCameraWarmer-C366RKqu.esm.js → videoSelfieCameraWarmer-DWoFBJAn.esm.js} +7 -8
- package/dist/{videoSelfieStepDetector-C5QHOvWb.d.ts → videoSelfieStepDetector-CGsTltqB.d.ts} +4 -4
- package/dist/{warmup-DMtbyb2l.esm.js → warmup-BElYWRh7.esm.js} +322 -3
- package/dist/{warmup-BUPPRAA1.d.ts → warmup-BO57syF6.d.ts} +1 -0
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +3 -4
- package/dist/{wasmDsFlagSync-BXCGqP48.esm.js → wasmDsFlagSync-CYj5LL9z.esm.js} +1 -1
- package/dist/{wasmWebClient-kbYZ2sxw.esm.js → wasmWebClient-BjZw_7OB.esm.js} +315 -17
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-BvF4jK3S.esm.js → watchlistForBusinessManager-CZZOFkGl.esm.js} +2 -2
- package/dist/{watchlistForBusinessStateMachine-121XK-Et.esm.js → watchlistForBusinessStateMachine-B66E7jud.esm.js} +1 -2
- package/dist/{watchlistManager-CNWEOYSq.esm.js → watchlistManager-DXtX94SN.esm.js} +2 -2
- package/dist/{watchlistStateMachine-Dgfm42w2.esm.js → watchlistStateMachine-McALifag.esm.js} +1 -2
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +35 -36
- package/package.json +2 -2
- package/dist/BrowserDiagnosticsCryptoProvider-BuzqvbhN.esm.js +0 -77
- package/dist/api-Bx3gKW_y.esm.js +0 -129
- package/dist/types-C71Zo6vl.d.ts +0 -6
|
@@ -1,197 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import { a as
|
|
8
|
-
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
9
|
-
import { a as resetSessionInit, c as setClientIpLookupEnabled, d as registerFlowPreloader, f as resetStandaloneFlowPolicy, i as initializeSession, m as setStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as resolveStandaloneFlowPolicy, s as setClientHostingApp, x as fingerprintSignalsReporter } from "./sessionInitializer-jxbfCnE-.esm.js";
|
|
1
|
+
import { P as setWasmIntegrityObserver, _ as setWasmDiagnosticsHandler, w as resolveWasmConfig, y as DEFAULT_WASM_VERSION } from "./wasmWebClient-BjZw_7OB.esm.js";
|
|
2
|
+
import { a as setWasmOnDeviceMode, d as drainWasmDiagnostics, f as getWasmDiagnosticsMode, n as getWarmupFacts, p as rearmWasmDiagnostics, s as warmupWasm } from "./warmup-BElYWRh7.esm.js";
|
|
3
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-DtJuBdt-.esm.js";
|
|
4
|
+
import { S as setAnalyticsBatcher, b as getAnalyticsBatcher, c as resetExperimentAssignments, v as createAnalyticsBatchingService, x as resetAnalyticsBatcher } from "./events-Du2A4-Qr.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-Cz90EHyu.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-BzLdXpmJ.esm.js";
|
|
7
|
+
import { a as resetSessionInit, b as BrowserEnvironmentProvider, c as setClientIpLookupEnabled, d as registerFlowPreloader, f as resetStandaloneFlowPolicy, i as initializeSession, m as setStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as resolveStandaloneFlowPolicy, s as setClientHostingApp, x as fingerprintSignalsReporter } from "./sessionInitializer-DVWMJh25.esm.js";
|
|
10
8
|
import { t as resolveLocalStorage } from "./safeStorage-UxDrnjwa.esm.js";
|
|
11
9
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
12
|
-
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-
|
|
13
|
-
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-
|
|
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-rTfjzdDa.esm.js";
|
|
11
|
+
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-BEvexnKC.esm.js";
|
|
14
12
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-xzRLIIMN.esm.js";
|
|
15
|
-
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-
|
|
16
|
-
//#region src/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
let stateBuffer = [];
|
|
29
|
-
let stateToken = null;
|
|
30
|
-
let stateBatches = [];
|
|
31
|
-
let stateRequestInFlight = false;
|
|
32
|
-
let started = false;
|
|
33
|
-
let disposed = false;
|
|
34
|
-
let ageTimerHandle = null;
|
|
35
|
-
let unsubscribeLifecycle = null;
|
|
36
|
-
let warnedNullToken = false;
|
|
37
|
-
function clearAgeTimer() {
|
|
38
|
-
if (ageTimerHandle !== null) {
|
|
39
|
-
timer.clearTimeout(ageTimerHandle);
|
|
40
|
-
ageTimerHandle = null;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
function armAgeTimerIfNeeded() {
|
|
44
|
-
if (ageTimerHandle === null) ageTimerHandle = timer.setTimeout(() => {
|
|
45
|
-
ageTimerHandle = null;
|
|
46
|
-
flush();
|
|
47
|
-
}, maxBatchAgeMs);
|
|
48
|
-
}
|
|
49
|
-
function dropTokenless() {
|
|
50
|
-
if (!warnedNullToken) {
|
|
51
|
-
warnedNullToken = true;
|
|
52
|
-
console.warn("[AnalyticsBatchingService] Dropping batch: no auth token at flush time.");
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function sendBatch(batch, attempt) {
|
|
56
|
-
let promise;
|
|
57
|
-
try {
|
|
58
|
-
promise = apiClient.post(endpoint, batch, { keepalive: true });
|
|
59
|
-
} catch (error) {
|
|
60
|
-
handleSendError(batch, error, attempt);
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
promise.catch((error) => handleSendError(batch, error, attempt));
|
|
64
|
-
}
|
|
65
|
-
function handleSendError(batch, error, attempt) {
|
|
66
|
-
if (disposed) return;
|
|
67
|
-
if (!isTransientStatus(error && typeof error === "object" && "status" in error ? Number(error.status) || 0 : 0)) return;
|
|
68
|
-
if (attempt >= maxRetries) return;
|
|
69
|
-
const delay = RETRY_BASE_DELAY_MS * 2 ** attempt;
|
|
70
|
-
timer.setTimeout(() => {
|
|
71
|
-
if (disposed) return;
|
|
72
|
-
sendBatch(batch, attempt + 1);
|
|
73
|
-
}, delay);
|
|
74
|
-
}
|
|
75
|
-
function flush() {
|
|
76
|
-
if (disposed || buffer.length === 0) return;
|
|
77
|
-
const batch = buffer;
|
|
78
|
-
buffer = [];
|
|
79
|
-
clearAgeTimer();
|
|
80
|
-
if (!authToken()) {
|
|
81
|
-
dropTokenless();
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
sendBatch(batch, 0);
|
|
85
|
-
}
|
|
86
|
-
function syncStateToken() {
|
|
87
|
-
const token = authToken();
|
|
88
|
-
if (token !== stateToken) {
|
|
89
|
-
stateBuffer = [];
|
|
90
|
-
stateBatches = [];
|
|
91
|
-
stateToken = token;
|
|
92
|
-
}
|
|
93
|
-
return token;
|
|
94
|
-
}
|
|
95
|
-
function sendNextStateBatch() {
|
|
96
|
-
if (disposed || !started || stateRequestInFlight || stateBatches.length === 0) return;
|
|
97
|
-
const token = syncStateToken();
|
|
98
|
-
const batch = stateBatches.shift();
|
|
99
|
-
if (!batch || !token) return;
|
|
100
|
-
stateRequestInFlight = true;
|
|
101
|
-
const onSettled = () => {
|
|
102
|
-
stateRequestInFlight = false;
|
|
103
|
-
sendNextStateBatch();
|
|
104
|
-
};
|
|
105
|
-
try {
|
|
106
|
-
apiClient.post(endpoint, batch.events, {
|
|
107
|
-
keepalive: true,
|
|
108
|
-
headers: { "X-Incode-Hardware-Id": batch.token }
|
|
109
|
-
}).then(onSettled, onSettled);
|
|
110
|
-
} catch {
|
|
111
|
-
Promise.resolve().then(onSettled);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
function flushStateChanges() {
|
|
115
|
-
if (disposed) return;
|
|
116
|
-
const token = syncStateToken();
|
|
117
|
-
if (!token || stateBuffer.length === 0) return;
|
|
118
|
-
stateBatches.push({
|
|
119
|
-
events: stateBuffer,
|
|
120
|
-
token
|
|
121
|
-
});
|
|
122
|
-
stateBuffer = [];
|
|
123
|
-
sendNextStateBatch();
|
|
124
|
-
}
|
|
125
|
-
function sendBeacon(batch, token) {
|
|
126
|
-
const url = `${apiBaseUrl().replace(/\/$/, "")}${endpoint}`;
|
|
127
|
-
const body = JSON.stringify({
|
|
128
|
-
token,
|
|
129
|
-
events: batch
|
|
130
|
-
});
|
|
131
|
-
pageLifecycle.sendBeacon(url, body);
|
|
132
|
-
}
|
|
133
|
-
function handlePageHide() {
|
|
134
|
-
if (disposed) return;
|
|
135
|
-
const token = syncStateToken();
|
|
136
|
-
const pendingStates = stateBatches;
|
|
137
|
-
stateBatches = [];
|
|
138
|
-
if (token && stateBuffer.length > 0) pendingStates.push({
|
|
139
|
-
events: stateBuffer,
|
|
140
|
-
token
|
|
141
|
-
});
|
|
142
|
-
stateBuffer = [];
|
|
143
|
-
for (const batch of pendingStates) sendBeacon(batch.events, batch.token);
|
|
144
|
-
if (buffer.length === 0) return;
|
|
145
|
-
const batch = buffer;
|
|
146
|
-
buffer = [];
|
|
147
|
-
clearAgeTimer();
|
|
148
|
-
if (!token) {
|
|
149
|
-
dropTokenless();
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
sendBeacon(batch, token);
|
|
153
|
-
}
|
|
154
|
-
function enqueue(entry) {
|
|
155
|
-
if (disposed) return;
|
|
156
|
-
if (entry.code === "stateChanged") {
|
|
157
|
-
if (!syncStateToken()) return;
|
|
158
|
-
stateBuffer.push(entry);
|
|
159
|
-
if (stateBuffer.length === MAX_STATE_BATCH_SIZE) flushStateChanges();
|
|
160
|
-
return;
|
|
161
|
-
}
|
|
162
|
-
buffer.push(entry);
|
|
163
|
-
if (entry.code === "captureAttemptFinished" || entry.code === "moduleClosed" || entry.code === "errorTriggered" || entry.code === "background") flushStateChanges();
|
|
164
|
-
if (!started) return;
|
|
165
|
-
if (buffer.length >= maxBatchSize) {
|
|
166
|
-
flush();
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
armAgeTimerIfNeeded();
|
|
170
|
-
}
|
|
171
|
-
function start() {
|
|
172
|
-
if (started || disposed) return;
|
|
173
|
-
started = true;
|
|
174
|
-
unsubscribeLifecycle = pageLifecycle.onPageHide(handlePageHide);
|
|
175
|
-
if (buffer.length > 0) flush();
|
|
176
|
-
sendNextStateBatch();
|
|
177
|
-
}
|
|
178
|
-
function dispose() {
|
|
179
|
-
if (disposed) return;
|
|
180
|
-
disposed = true;
|
|
181
|
-
clearAgeTimer();
|
|
182
|
-
unsubscribeLifecycle?.();
|
|
183
|
-
unsubscribeLifecycle = null;
|
|
184
|
-
buffer = [];
|
|
185
|
-
stateBuffer = [];
|
|
186
|
-
stateBatches = [];
|
|
187
|
-
stateToken = null;
|
|
188
|
-
}
|
|
13
|
+
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-CTc-zqfN.esm.js";
|
|
14
|
+
//#region ../infra/src/wasm/wasmRuntimeProfile.ts
|
|
15
|
+
/**
|
|
16
|
+
* The WASM facts TrueSight reports as `session.webProfile.wasm`
|
|
17
|
+
* (incode-truesight `WebProfile.wasm`, ENG-58122). Reads JS-side state only:
|
|
18
|
+
* it is called from the record build, which can run inside a WASM sink
|
|
19
|
+
* callback, so it must never call back into the binary.
|
|
20
|
+
*/
|
|
21
|
+
/** `null` until a WASM warmup completed in this page. */
|
|
22
|
+
function getWasmRuntimeProfile() {
|
|
23
|
+
const facts = getWarmupFacts();
|
|
24
|
+
if (facts === null) return null;
|
|
25
|
+
const diagnosticsMode = getWasmDiagnosticsMode();
|
|
189
26
|
return {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
27
|
+
version: DEFAULT_WASM_VERSION,
|
|
28
|
+
basePathPinned: facts.basePathPinned,
|
|
29
|
+
simd: facts.simd,
|
|
30
|
+
...diagnosticsMode === null ? {} : { diagnosticsMode },
|
|
31
|
+
warmupDurationMs: Math.round(facts.durationMs)
|
|
195
32
|
};
|
|
196
33
|
}
|
|
197
34
|
//#endregion
|
|
@@ -415,6 +252,7 @@ function describeCheck(check) {
|
|
|
415
252
|
const parts = [`asset=${check.asset}`, `status=${check.status}`];
|
|
416
253
|
if (check.byteLength !== void 0) parts.push(`bytes=${check.byteLength}`);
|
|
417
254
|
if (check.durationMs !== void 0) parts.push(`durationMs=${Math.round(check.durationMs)}`);
|
|
255
|
+
if (check.fetchMs !== void 0) parts.push(`fetchMs=${Math.round(check.fetchMs)}`);
|
|
418
256
|
if (check.expectedDigestPrefix !== void 0) parts.push(`expected=${check.expectedDigestPrefix}`);
|
|
419
257
|
if (check.actualDigestPrefix !== void 0) parts.push(`actual=${check.actualDigestPrefix}`);
|
|
420
258
|
return parts.join(" ");
|
|
@@ -470,6 +308,53 @@ function normalizeEncryption(input) {
|
|
|
470
308
|
}
|
|
471
309
|
let configured = false;
|
|
472
310
|
/**
|
|
311
|
+
* One-line environment facts for TrueSight's snapshot-on-first-error entry
|
|
312
|
+
* (navigator facts read through the L0 provider — core never touches
|
|
313
|
+
* browser globals directly).
|
|
314
|
+
*/
|
|
315
|
+
function buildEnvironmentSnapshot() {
|
|
316
|
+
const environment = new BrowserEnvironmentProvider();
|
|
317
|
+
const read = (property) => {
|
|
318
|
+
try {
|
|
319
|
+
return environment.getNavigatorProperty(property);
|
|
320
|
+
} catch {
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
const connection = read("connection");
|
|
325
|
+
return [
|
|
326
|
+
`connection=${typeof connection?.effectiveType === "string" ? connection.effectiveType : "unknown"}`,
|
|
327
|
+
`saveData=${connection?.saveData === true}`,
|
|
328
|
+
`online=${read("onLine") !== false}`,
|
|
329
|
+
`language=${typeof read("language") === "string" ? String(read("language")) : "unknown"}`
|
|
330
|
+
].join(" ");
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* ENG-48677 event map row 23b: every Incode HTTP request, success or
|
|
334
|
+
* failure, becomes a self-health line (Android-dashboard parity). Lives here
|
|
335
|
+
* rather than in `api.ts` — `trueSightService` already imports from that
|
|
336
|
+
* module, so a direct `trueSightLog` import there would cycle; `setup()`
|
|
337
|
+
* wires this adapter in as the decoupled observer instead.
|
|
338
|
+
*/
|
|
339
|
+
function logHttpRequestTiming(entry) {
|
|
340
|
+
const category = categoryForEndpoint(entry.endpoint);
|
|
341
|
+
const status = entry.httpStatus ?? "unknown";
|
|
342
|
+
if (entry.outcome === "success") {
|
|
343
|
+
trueSightLog("debug", "http", category, `http request completed endpoint=${entry.endpoint} method=${entry.method} httpStatus=${status} durationMs=${entry.durationMs}`);
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
trueSightLog("error", "http", category, `http request failed endpoint=${entry.endpoint} method=${entry.method} httpStatus=${status} durationMs=${entry.durationMs}`);
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* ENG-48677 WS2: WASM-adjacent taps and kit-batch drains funnel through
|
|
350
|
+
* infra's `wasmDiagnostics` (L0 cannot import `trueSightLog`); this adapter
|
|
351
|
+
* is the injected handler — same decoupled-observer shape as the HTTP
|
|
352
|
+
* timing tap above.
|
|
353
|
+
*/
|
|
354
|
+
function logWasmDiagnostic(entry) {
|
|
355
|
+
trueSightLog(entry.level, `wasm.${entry.subsystem}`, entry.category, entry.message, entry.timestampMs);
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
473
358
|
* Initializes the SDK with the provided configuration.
|
|
474
359
|
* Must be called before using any SDK functionality.
|
|
475
360
|
*
|
|
@@ -626,7 +511,23 @@ async function setup(options) {
|
|
|
626
511
|
pageLifecycle: new BrowserPageLifecycleProvider(),
|
|
627
512
|
timer: BrowserTimerProvider.getInstance()
|
|
628
513
|
}));
|
|
514
|
+
initializeTrueSightDiagnostics({
|
|
515
|
+
enabled: options.trueSight?.enabled !== false,
|
|
516
|
+
pageLifecycle: new BrowserPageLifecycleProvider(),
|
|
517
|
+
timer: BrowserTimerProvider.getInstance(),
|
|
518
|
+
storage: new BrowserStorageProvider(),
|
|
519
|
+
getEnvironmentSnapshot: buildEnvironmentSnapshot,
|
|
520
|
+
getWasmProfile: getWasmRuntimeProfile
|
|
521
|
+
});
|
|
522
|
+
noteTestingSignals({
|
|
523
|
+
devMode: options.devMode,
|
|
524
|
+
apiUrl: options.apiURL
|
|
525
|
+
});
|
|
526
|
+
setHttpRequestObserver(logHttpRequestTiming);
|
|
629
527
|
setWasmIntegrityObserver(wasmIntegrityTelemetry);
|
|
528
|
+
setWasmDiagnosticsHandler(logWasmDiagnostic);
|
|
529
|
+
setTrueSightExternalDrain(drainWasmDiagnostics);
|
|
530
|
+
if (!configured) rearmWasmDiagnostics();
|
|
630
531
|
const requestedEncryption = normalizeEncryption(options.encryption);
|
|
631
532
|
const stored = getStoredHttpConfig();
|
|
632
533
|
if (requestedEncryption && stored) {
|
|
@@ -660,14 +561,7 @@ async function setup(options) {
|
|
|
660
561
|
...effectiveWasm,
|
|
661
562
|
pipelines: effectiveWasm.pipelines ? [...effectiveWasm.pipelines] : void 0
|
|
662
563
|
};
|
|
663
|
-
|
|
664
|
-
try {
|
|
665
|
-
await warmupWasm(effectiveWasm);
|
|
666
|
-
} catch (error) {
|
|
667
|
-
trueSightLog("severe", "wasm", "other", `wasm warmup failed error=${String(error)} durationMs=${getTimestamp() - warmupStartedAt}`);
|
|
668
|
-
throw error;
|
|
669
|
-
}
|
|
670
|
-
trueSightLog("debug", "wasm", "other", `wasm warmup completed durationMs=${getTimestamp() - warmupStartedAt}`);
|
|
564
|
+
await warmupWasm(effectiveWasm);
|
|
671
565
|
await (await WasmUtilProvider.getInstance()).initialize({
|
|
672
566
|
...effectiveWasm,
|
|
673
567
|
pipelines: effectiveWasm.pipelines ? [...effectiveWasm.pipelines] : void 0
|
|
@@ -795,6 +689,7 @@ function reset() {
|
|
|
795
689
|
resetResolvedExperiments();
|
|
796
690
|
resetHttpClientState();
|
|
797
691
|
setWasmIntegrityObserver(null);
|
|
692
|
+
setWasmDiagnosticsHandler(null);
|
|
798
693
|
resetTRI();
|
|
799
694
|
configured = false;
|
|
800
695
|
wasmConfig = void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as WasmPipeline, i as WasmModuleConfig, n as WasmModelsConfig, t as WarmupConfig } from "./warmup-
|
|
1
|
+
import { c as WasmPipeline, i as WasmModuleConfig, n as WasmModelsConfig, t as WarmupConfig } from "./warmup-BO57syF6.js";
|
|
2
2
|
import { s as TransactionalRiskIntelligenceSetupConfig } from "./index-BKOWUhxG.js";
|
|
3
3
|
import { c as FeatureManagementRedactedUserInfo } from "./IFeatureManagementCapability-De8wpbGh.js";
|
|
4
4
|
//#region src/internal/environment/environment.d.ts
|
|
@@ -261,10 +261,28 @@ type SetupOptions = {
|
|
|
261
261
|
*/
|
|
262
262
|
tri?: TransactionalRiskIntelligenceSetupConfig;
|
|
263
263
|
/**
|
|
264
|
-
* TrueSight diagnostics
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
*
|
|
264
|
+
* TrueSight diagnostics — Incode-internal SDK-health telemetry
|
|
265
|
+
* (engineering-only dashboard, not customer analytics). During a session
|
|
266
|
+
* the SDK buffers structured diagnostic breadcrumbs (module outcomes, error
|
|
267
|
+
* codes, timings — sanitized to exclude personal data, never captured
|
|
268
|
+
* images) and, at the session terminal, uploads ONE gzipped record over
|
|
269
|
+
* HTTPS to the Incode diagnostics backend. Used by Incode to debug
|
|
270
|
+
* customer-reported capture issues. Fire-and-forget and fail-open: it adds
|
|
271
|
+
* no retries, no blocking work, and can never affect the host flow.
|
|
272
|
+
*
|
|
273
|
+
* While a session runs, a gzipped copy of the record is kept in
|
|
274
|
+
* `localStorage` (`incode.truesight.pending.*`) so it survives a closed tab
|
|
275
|
+
* or a cancelled upload. A copy left behind may be sent on a later page
|
|
276
|
+
* load; copies older than 7 days are deleted without being sent.
|
|
277
|
+
*
|
|
278
|
+
* - `enabled` — set `false` to opt out entirely (no collection, no
|
|
279
|
+
* subscriptions, no upload). Default: `true` (native SDK parity). Also
|
|
280
|
+
* subject to a server-side kill-switch; an explicit server `false` stops
|
|
281
|
+
* collection remotely regardless of this option.
|
|
282
|
+
*
|
|
283
|
+
* Decided by the first `setup()` call of the SDK lifecycle; later `setup()`
|
|
284
|
+
* calls cannot re-enable or disable it mid-session. Call `reset()` to start
|
|
285
|
+
* a new lifecycle with a different value.
|
|
268
286
|
*/
|
|
269
287
|
trueSight?: {
|
|
270
288
|
enabled?: boolean;
|
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-C-nUq_oq.esm.js";
|
|
2
|
+
import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-f_dPAGXn.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-Du2A4-Qr.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-C-nUq_oq.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-BkRSrkKp.esm.js → signatureStateMachine-C-nUq_oq.esm.js}
RENAMED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
1
|
+
import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
|
|
3
2
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
3
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
4
|
//#region src/modules/signature/signatureServices.ts
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { r as getToken, t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
1
|
+
import { r as getToken, t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
|
|
3
2
|
//#region src/modules/stats/statsServices.ts
|
|
4
3
|
const deviceStatsQueue = [];
|
|
5
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-BEvexnKC.esm.js";
|
|
2
2
|
export { addDeviceStats, flushDeviceStatsQueue, resetDeviceStatsQueue };
|