@incodetech/core 2.3.0-rc.1 → 2.3.0-rc.10
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/{BrowserDiagnosticsCryptoProvider-CU6kBvqv.esm.js → BrowserDiagnosticsCryptoProvider-BuzqvbhN.esm.js} +6 -24
- package/dist/{FaceDetectionProvider-BfhWkK90.esm.js → FaceDetectionProvider-BZYHujqz.esm.js} +8 -8
- package/dist/{MotionSensorProvider-BgTYwg9L.esm.js → MotionSensorProvider-DyhbM4Si.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-Budb6m6w.esm.js → apiError-iTFZ5fiI.esm.js} +1 -1
- package/dist/authentication.d.ts +2 -2
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CjXBjC-c.d.ts → authenticationManager-B23V74p7.d.ts} +1 -1
- package/dist/{authenticationManager-cMXhG70r.esm.js → authenticationManager-D22ju23T.esm.js} +4 -4
- package/dist/{authenticationStateMachine-MOYz4HCf.esm.js → authenticationStateMachine-TyFaCegB.esm.js} +3 -3
- package/dist/{backCameraStream-BOtyQowf.esm.js → backCameraStream-B0-YgP_y.esm.js} +1 -0
- package/dist/camera.esm.js +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-BhYFeKiG.d.ts → consentManager-uhDPdU6i.d.ts} +8 -8
- package/dist/{createCameraCycleOwnership-CX3hJGKc.esm.js → createCameraCycleOwnership-DnwTl1ad.esm.js} +6 -1
- package/dist/{deepsightLoader-DDv3vhXU.esm.js → deepsightLoader-DamOBrBJ.esm.js} +6 -6
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-CwAiM9WY.esm.js → documentCaptureManager-BRPxqYD2.esm.js} +1 -1
- package/dist/{documentCaptureManager-DensIj5F.d.ts → documentCaptureManager-lEtCM320.d.ts} +14 -0
- package/dist/{documentCaptureStateMachine-DfGOBapD.esm.js → documentCaptureStateMachine-D312sSIu.esm.js} +13 -8
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-BbS-XMFc.esm.js → dynamicFormsManager-DKgiusbF.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-D8zHBCh4.esm.js → dynamicFormsStateMachine-BV8yR5iN.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-5aiac8wL.esm.js → ekybManager-8VUBu8VW.esm.js} +1 -1
- package/dist/{ekybStateMachine-Bn2IE9rx.esm.js → ekybStateMachine-Bnsefu9M.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-BJJH0Tvi.esm.js → electronicSignatureManager--YFXVldr.esm.js} +1 -1
- package/dist/extensibility.d.ts +7 -7
- package/dist/extensibility.esm.js +13 -13
- package/dist/{faceCaptureManagerFactory-B7Ms6pSs.esm.js → faceCaptureManagerFactory-Bk6pVs6E.esm.js} +3 -3
- package/dist/{faceCaptureManagerFactory-BeUl8fl1.d.ts → faceCaptureManagerFactory-DMLstvui.d.ts} +80 -40
- package/dist/{faceCaptureSetup-bkAlr5d8.esm.js → faceCaptureSetup-CGQDK97m.esm.js} +267 -45
- package/dist/{feature-management-E0mq0pMs.esm.js → feature-management-C8OAO_CZ.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-BunLVFbd.esm.js → fiscalQrManager-DbCVMIBx.esm.js} +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-DJp1odGN.esm.js → flowCompletionService-C0zcPnqK.esm.js} +1 -1
- package/dist/{flowServices-DjPFGs_D.esm.js → flowServices-G1FDrkLd.esm.js} +5 -5
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-D5906YXx.esm.js → geolocationManager-DNixQOgf.esm.js} +1 -1
- package/dist/{geolocationStateMachine-BVOduc3y.esm.js → geolocationStateMachine-D1aZJ6eR.esm.js} +1 -1
- package/dist/id-selfie-flow.esm.js +9 -9
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +4 -4
- package/dist/idCaptureDefaults-sJahGQgV.esm.js +282 -0
- package/dist/{idCaptureManager-rfV9dIXy.esm.js → idCaptureManager-B8lo-ksK.esm.js} +5 -5
- package/dist/{idCaptureManager-DKESug0R.d.ts → idCaptureManager-BaHEyQyr.d.ts} +23 -5
- package/dist/{idCaptureServices-i1KxugN7.esm.js → idCaptureServices-DLqls7Xv.esm.js} +60 -13
- package/dist/{idCaptureStateMachine-Ne_PXth_.esm.js → idCaptureStateMachine-CCPGFPRF.esm.js} +221 -76
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-vhv1co_n.d.ts → mandatoryConsentManager-CJSyhTpi.d.ts} +4 -4
- package/dist/{multipartRecordingService-OEgIRvqC.esm.js → multipartRecordingService-YKu0Bd7S.esm.js} +490 -8
- package/dist/{permissionGuards-uYZYFu4J.esm.js → permissionGuards-D6TfVop2.esm.js} +1 -1
- package/dist/{permissionServices-Bj_fyWtv.esm.js → permissionServices-EY3_Vx6c.esm.js} +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-CI1gGWN1.esm.js → runChildModule-B3Z4iJnG.esm.js} +1 -1
- package/dist/{safeStorage-B-trhxg6.esm.js → safeStorage-BdU9_m2E.esm.js} +1 -1
- package/dist/{sdkVersion-BZh6dj53.esm.js → sdkVersion-CD9fJC2Y.esm.js} +1 -1
- package/dist/selfie.d.ts +2 -2
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieManager-4RRLi21P.d.ts → selfieManager-CDCTOrcg.d.ts} +1 -1
- package/dist/{selfieManager-B-2c1n_x.esm.js → selfieManager-DzOPNipB.esm.js} +4 -4
- package/dist/{selfieStateMachine-Bzx41R8d.esm.js → selfieStateMachine-CidiobBW.esm.js} +3 -3
- package/dist/{session-3LmvAU4S.esm.js → session-BABCfUhC.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-BFk33E67.esm.js → sessionInitializer-BK5NjMe0.esm.js} +4 -4
- package/dist/{setup-Cv-JM9QC.d.ts → setup-Cyko6cAn.d.ts} +6 -18
- package/dist/{setup-BWG-hivt.esm.js → setup-D4YCSH31.esm.js} +12 -200
- package/dist/{tri-4RsGrIt6.esm.js → tri-xzRLIIMN.esm.js} +0 -10
- package/dist/tri.esm.js +1 -1
- package/dist/{trueSightService-BN-Hzw82.esm.js → trueSightService-D8yZwF3G.esm.js} +189 -570
- package/dist/video-selfie.esm.js +5 -6
- package/dist/{videoSelfieCameraWarmer-B8PcYqmz.esm.js → videoSelfieCameraWarmer-C80ZPDZ8.esm.js} +6 -6
- package/dist/{warmup-CUUnwYxe.esm.js → warmup-ChDwHSel.esm.js} +5 -0
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +3 -2
- package/dist/{wasmDsFlagSync-B2e8p268.esm.js → wasmDsFlagSync-DYrLUEII.esm.js} +1 -1
- package/dist/workflow.esm.js +15 -15
- package/package.json +1 -6
- package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +0 -36
- package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +0 -42
- package/dist/idCaptureDefaults-CbPA-Auz.esm.js +0 -727
- package/dist/personhood.d.ts +0 -538
- package/dist/personhood.esm.js +0 -1574
- package/dist/types-BT_Oalip.d.ts +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as fetchFeatureConfig, f as isFeatureEnabled, h as noteEnvironment, l as trueSightLog, p as resetFeatureConfigCache, s as startTrueSightCollection, v as noteTokenActivated } from "./trueSightService-D8yZwF3G.esm.js";
|
|
2
|
+
import { E as updateFeatureManagementUser } from "./feature-management-C8OAO_CZ.esm.js";
|
|
2
3
|
import { c as setToken, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { d as fetchFeatureConfig, f as isFeatureEnabled, h as noteEnvironment, l as trueSightLog, p as resetFeatureConfigCache, s as startTrueSightCollection, v as noteTokenActivated } from "./trueSightService-BN-Hzw82.esm.js";
|
|
4
4
|
import { v as addEvent, y as getAnalyticsBatcher } from "./events-ijlbX_Wx.esm.js";
|
|
5
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
5
|
+
import { t as SDK_VERSION } from "./sdkVersion-CD9fJC2Y.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
7
7
|
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-CZcy2J53.esm.js";
|
|
8
8
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-B2iFDql1.esm.js";
|
|
9
9
|
import { a as isIOS } from "./platform-DkcRc9JV.esm.js";
|
|
10
10
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
11
|
-
import { i as linkSessionWithTRI, r as isTRIStarted } from "./tri-
|
|
11
|
+
import { i as linkSessionWithTRI, r as isTRIStarted } from "./tri-xzRLIIMN.esm.js";
|
|
12
12
|
//#region ../infra/src/providers/browser/BrowserEnvironmentProvider.ts
|
|
13
13
|
var BrowserEnvironmentProvider = class {
|
|
14
14
|
getScreenDimensions() {
|
|
@@ -252,23 +252,10 @@ type SetupOptions = {
|
|
|
252
252
|
*/
|
|
253
253
|
tri?: TransactionalRiskIntelligenceSetupConfig;
|
|
254
254
|
/**
|
|
255
|
-
* TrueSight diagnostics
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
* at the session terminal, uploads ONE encrypted record to the Incode
|
|
260
|
-
* diagnostics backend. Used by Incode to debug customer-reported capture
|
|
261
|
-
* issues. Fire-and-forget and fail-open: it adds no retries, no blocking
|
|
262
|
-
* work, and can never affect the host flow.
|
|
263
|
-
*
|
|
264
|
-
* - `enabled` — set `false` to opt out entirely (no collection, no
|
|
265
|
-
* subscriptions, no upload). Default: `true` (native SDK parity). Also
|
|
266
|
-
* subject to a server-side kill-switch; an explicit server `false` stops
|
|
267
|
-
* collection remotely regardless of this option.
|
|
268
|
-
*
|
|
269
|
-
* Decided by the first `setup()` call of the SDK lifecycle; later `setup()`
|
|
270
|
-
* calls cannot re-enable or disable it mid-session. Call `reset()` to start
|
|
271
|
-
* a new lifecycle with a different value.
|
|
255
|
+
* TrueSight diagnostics are temporarily unavailable while secure log
|
|
256
|
+
* encryption is implemented. This option remains accepted for compatibility;
|
|
257
|
+
* neither `enabled: true` nor a server flag can activate diagnostics.
|
|
258
|
+
* Regular SDK analytics are unaffected.
|
|
272
259
|
*/
|
|
273
260
|
trueSight?: {
|
|
274
261
|
enabled?: boolean;
|
|
@@ -553,7 +540,8 @@ declare function setWasmConfig(config: WasmConfig): void;
|
|
|
553
540
|
/**
|
|
554
541
|
* Initializes WasmUtilProvider with the stored WASM configuration.
|
|
555
542
|
* Should be called after warmupWasm() completes when using conditional warmup.
|
|
556
|
-
*
|
|
543
|
+
* Also upgrades the HTTP client so protected capture payloads are unwrapped
|
|
544
|
+
* by the native transport before upload.
|
|
557
545
|
*
|
|
558
546
|
* @param config - Optional WASM configuration. If not provided, uses the stored config from setWasmConfig().
|
|
559
547
|
* @throws Error if no config is provided and none is stored
|
|
@@ -1,156 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as setWasmOnDeviceMode, o as warmupWasm } from "./warmup-
|
|
3
|
-
import { r as WasmUtilProvider, t as resolveLocalStorage } from "./safeStorage-
|
|
1
|
+
import { D as resolveWasmConfig, S as upgradeToWasmHttpClient$1, b as installFreshHttpClient, l as trueSightLog, o as resetTrueSight, t as finalizeTrueSight, x as resetHttpClientState, y as getStoredHttpConfig } from "./trueSightService-D8yZwF3G.esm.js";
|
|
2
|
+
import { i as setWasmOnDeviceMode, o as warmupWasm } from "./warmup-ChDwHSel.esm.js";
|
|
3
|
+
import { r as WasmUtilProvider, t as resolveLocalStorage } from "./safeStorage-BdU9_m2E.esm.js";
|
|
4
4
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
5
|
-
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-
|
|
5
|
+
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-C8OAO_CZ.esm.js";
|
|
6
6
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
7
|
-
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken,
|
|
8
|
-
import { C as upgradeToWasmHttpClient$1, S as resetHttpClientState, _ as noteTestingSignals, b as getStoredHttpConfig, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as installFreshHttpClient } from "./trueSightService-BN-Hzw82.esm.js";
|
|
7
|
+
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
9
8
|
import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-ijlbX_Wx.esm.js";
|
|
10
|
-
import { a as resetSessionInit,
|
|
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 } from "./sessionInitializer-BK5NjMe0.esm.js";
|
|
11
10
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
12
11
|
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-CZcy2J53.esm.js";
|
|
13
|
-
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-
|
|
14
|
-
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-
|
|
15
|
-
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
16
|
-
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
|
17
|
-
/** The WASM version bundled and tested with this SDK release. */
|
|
18
|
-
const DEFAULT_WASM_VERSION = "v2.14.50-post1";
|
|
19
|
-
const PATH_KEYS = [
|
|
20
|
-
"wasmPath",
|
|
21
|
-
"wasmSimdPath",
|
|
22
|
-
"glueCodePath",
|
|
23
|
-
"glueCodeSimdPath",
|
|
24
|
-
"modelsBasePath"
|
|
25
|
-
];
|
|
26
|
-
function isBlank(value) {
|
|
27
|
-
return value.trim() === "";
|
|
28
|
-
}
|
|
29
|
-
function hasDisallowedControlChars(value) {
|
|
30
|
-
for (let i = 0; i < value.length; i += 1) {
|
|
31
|
-
const code = value.charCodeAt(i);
|
|
32
|
-
if (code < 32 || code === 127) return true;
|
|
33
|
-
}
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
function isMalformedPath(value) {
|
|
37
|
-
const trimmed = value.trim();
|
|
38
|
-
if (trimmed === "") return false;
|
|
39
|
-
if (hasDisallowedControlChars(trimmed)) return true;
|
|
40
|
-
if (/^https?:\/\//i.test(trimmed)) try {
|
|
41
|
-
new URL(trimmed);
|
|
42
|
-
return false;
|
|
43
|
-
} catch {
|
|
44
|
-
return true;
|
|
45
|
-
}
|
|
46
|
-
return false;
|
|
47
|
-
}
|
|
48
|
-
function warnInvalidWasmPath(field, reason) {
|
|
49
|
-
if (reason === "empty") {
|
|
50
|
-
console.warn(`[Incode SDK] wasm.${field} is empty. Falling back to CDN default.`);
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
console.warn(`[Incode SDK] wasm.${field} appears malformed. Falling back to CDN default.`);
|
|
54
|
-
}
|
|
55
|
-
function warnMalformedWasmPath(field) {
|
|
56
|
-
console.warn(`[Incode SDK] wasm.${field} appears malformed. Check the URL or path.`);
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Validates merged WASM path strings. When overrides contained blank path
|
|
60
|
-
* values, callers should have already fallen back to defaults before this runs.
|
|
61
|
-
*/
|
|
62
|
-
function validateWasmPaths(config) {
|
|
63
|
-
for (const key of PATH_KEYS) {
|
|
64
|
-
const value = config[key];
|
|
65
|
-
if (typeof value === "string" && isMalformedPath(value)) warnMalformedWasmPath(key);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
function pickPath(key, overrides, defaultValue) {
|
|
69
|
-
if (!overrides || !(key in overrides)) return defaultValue;
|
|
70
|
-
const raw = overrides[key];
|
|
71
|
-
if (raw === void 0) return defaultValue;
|
|
72
|
-
if (typeof raw !== "string") return defaultValue;
|
|
73
|
-
if (isBlank(raw)) {
|
|
74
|
-
warnInvalidWasmPath(key, "empty");
|
|
75
|
-
return defaultValue;
|
|
76
|
-
}
|
|
77
|
-
if (isMalformedPath(raw)) {
|
|
78
|
-
warnInvalidWasmPath(key, "malformed");
|
|
79
|
-
return defaultValue;
|
|
80
|
-
}
|
|
81
|
-
return raw.trim();
|
|
82
|
-
}
|
|
83
|
-
function pickSource(key, overrides, defaultValue) {
|
|
84
|
-
if (!(key in overrides) || overrides[key] === void 0) return defaultValue;
|
|
85
|
-
const source = overrides[key];
|
|
86
|
-
if (typeof source !== "string") return source;
|
|
87
|
-
return pickPath(key, overrides, String(defaultValue));
|
|
88
|
-
}
|
|
89
|
-
function resolveBasePath(overrides) {
|
|
90
|
-
const defaultValue = `${WASM_CDN_BASE_URL}/${DEFAULT_WASM_VERSION}`;
|
|
91
|
-
if (!("basePath" in overrides) || overrides.basePath === void 0) return defaultValue;
|
|
92
|
-
const basePath = overrides.basePath;
|
|
93
|
-
if (typeof basePath !== "string" || isBlank(basePath) || isMalformedPath(basePath)) throw new Error("[Incode SDK] wasm.basePath is invalid.");
|
|
94
|
-
return basePath.trim();
|
|
95
|
-
}
|
|
96
|
-
/** Builds a WarmupConfig from a directory that mirrors the ml-wasm-kit CDN layout. */
|
|
97
|
-
function buildWasmConfigFromBasePath(basePath) {
|
|
98
|
-
const base = basePath.endsWith("/") ? basePath.slice(0, -1) : basePath;
|
|
99
|
-
return {
|
|
100
|
-
wasmPath: `${base}/webLib.wasm`,
|
|
101
|
-
wasmSimdPath: `${base}/webLibSimd.wasm`,
|
|
102
|
-
glueCodePath: `${base}/webLib.js`,
|
|
103
|
-
glueCodeSimdPath: `${base}/webLibSimd.js`,
|
|
104
|
-
modelsBasePath: `${base}/models`
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
/** Builds the standard WarmupConfig from the Incode CDN. */
|
|
108
|
-
function buildDefaultWasmConfig() {
|
|
109
|
-
return buildWasmConfigFromBasePath(`${WASM_CDN_BASE_URL}/${DEFAULT_WASM_VERSION}`);
|
|
110
|
-
}
|
|
111
|
-
const BARCODE_ENHANCE_MODEL_FILE = WASM_MODEL_FILES.barcode;
|
|
112
|
-
/**
|
|
113
|
-
* URL of the lazily-loaded PDF417 barcode enhancement model (US Smart Capture).
|
|
114
|
-
* Derived from the resolved `modelsBasePath` so self-hosted / air-gapped
|
|
115
|
-
* deployments resolve it correctly, falling back to the CDN default. Loaded on
|
|
116
|
-
* demand via `IIdCaptureCapability.setBarcodeEnhancementModel` — deliberately
|
|
117
|
-
* NOT part of any warmup model bundle.
|
|
118
|
-
*/
|
|
119
|
-
function getBarcodeEnhanceModelUrl(modelsBasePath, variant = "current") {
|
|
120
|
-
const source = buildModelVariantSources(modelsBasePath ?? `${WASM_CDN_BASE_URL}/v2.14.50-post1/models`, BARCODE_ENHANCE_MODEL_FILE);
|
|
121
|
-
return typeof source === "string" ? source : source[variant];
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Merges optional WASM path overrides with CDN defaults. Explicit non-blank
|
|
125
|
-
* paths take precedence. Blank override strings log a warning and fall back to defaults.
|
|
126
|
-
*/
|
|
127
|
-
function resolveWasmConfig(overrides) {
|
|
128
|
-
if (!overrides) return buildDefaultWasmConfig();
|
|
129
|
-
const defaults = buildWasmConfigFromBasePath(resolveBasePath(overrides));
|
|
130
|
-
const resolvedWasmPath = pickSource("wasmPath", overrides, defaults.wasmPath);
|
|
131
|
-
const simdDefault = overrides.selfHosted ? resolvedWasmPath : defaults.wasmSimdPath;
|
|
132
|
-
const modelsDefault = defaults.modelsBasePath;
|
|
133
|
-
const resolvedWasmSimdPath = pickSource("wasmSimdPath", overrides, simdDefault);
|
|
134
|
-
const glueCodeSimdDefault = typeof resolvedWasmSimdPath === "string" ? deriveSiblingJsPath(resolvedWasmSimdPath) : defaults.glueCodeSimdPath;
|
|
135
|
-
const merged = {
|
|
136
|
-
wasmPath: resolvedWasmPath,
|
|
137
|
-
wasmSimdPath: resolvedWasmSimdPath,
|
|
138
|
-
glueCodePath: pickPath("glueCodePath", overrides, defaults.glueCodePath),
|
|
139
|
-
glueCodeSimdPath: pickPath("glueCodeSimdPath", overrides, glueCodeSimdDefault),
|
|
140
|
-
modelsBasePath: pickPath("modelsBasePath", overrides, modelsDefault),
|
|
141
|
-
useSimd: overrides.useSimd,
|
|
142
|
-
pipelines: overrides.pipelines,
|
|
143
|
-
pipelineModels: overrides.pipelineModels,
|
|
144
|
-
modelUrls: overrides.modelUrls,
|
|
145
|
-
legacyModelUrls: overrides.legacyModelUrls,
|
|
146
|
-
loadGlue: overrides.loadGlue,
|
|
147
|
-
loadGlueSimd: overrides.loadGlueSimd,
|
|
148
|
-
selfHosted: overrides.selfHosted
|
|
149
|
-
};
|
|
150
|
-
validateWasmPaths(merged);
|
|
151
|
-
return merged;
|
|
152
|
-
}
|
|
153
|
-
//#endregion
|
|
12
|
+
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-xzRLIIMN.esm.js";
|
|
13
|
+
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-G1FDrkLd.esm.js";
|
|
154
14
|
//#region ../infra/src/providers/browser/BrowserPageLifecycleProvider.ts
|
|
155
15
|
var BrowserPageLifecycleProvider = class {
|
|
156
16
|
sendBeacon(url, body, contentType = "application/json") {
|
|
@@ -494,44 +354,6 @@ function normalizeEncryption(input) {
|
|
|
494
354
|
}
|
|
495
355
|
let configured = false;
|
|
496
356
|
/**
|
|
497
|
-
* One-line environment facts for TrueSight's snapshot-on-first-error entry
|
|
498
|
-
* (navigator facts read through the L0 provider — core never touches
|
|
499
|
-
* browser globals directly).
|
|
500
|
-
*/
|
|
501
|
-
function buildEnvironmentSnapshot() {
|
|
502
|
-
const environment = new BrowserEnvironmentProvider();
|
|
503
|
-
const read = (property) => {
|
|
504
|
-
try {
|
|
505
|
-
return environment.getNavigatorProperty(property);
|
|
506
|
-
} catch {
|
|
507
|
-
return;
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
|
-
const connection = read("connection");
|
|
511
|
-
return [
|
|
512
|
-
`connection=${typeof connection?.effectiveType === "string" ? connection.effectiveType : "unknown"}`,
|
|
513
|
-
`saveData=${connection?.saveData === true}`,
|
|
514
|
-
`online=${read("onLine") !== false}`,
|
|
515
|
-
`language=${typeof read("language") === "string" ? String(read("language")) : "unknown"}`
|
|
516
|
-
].join(" ");
|
|
517
|
-
}
|
|
518
|
-
/**
|
|
519
|
-
* ENG-48677 event map row 23b: every Incode HTTP request, success or
|
|
520
|
-
* failure, becomes a self-health line (Android-dashboard parity). Lives here
|
|
521
|
-
* rather than in `api.ts` — `trueSightService` already imports from that
|
|
522
|
-
* module, so a direct `trueSightLog` import there would cycle; `setup()`
|
|
523
|
-
* wires this adapter in as the decoupled observer instead.
|
|
524
|
-
*/
|
|
525
|
-
function logHttpRequestTiming(entry) {
|
|
526
|
-
const category = categoryForEndpoint(entry.endpoint);
|
|
527
|
-
const status = entry.httpStatus ?? "unknown";
|
|
528
|
-
if (entry.outcome === "success") {
|
|
529
|
-
trueSightLog("debug", "http", category, `http request completed endpoint=${entry.endpoint} method=${entry.method} httpStatus=${status} durationMs=${entry.durationMs}`);
|
|
530
|
-
return;
|
|
531
|
-
}
|
|
532
|
-
trueSightLog("error", "http", category, `http request failed endpoint=${entry.endpoint} method=${entry.method} httpStatus=${status} durationMs=${entry.durationMs}`);
|
|
533
|
-
}
|
|
534
|
-
/**
|
|
535
357
|
* Initializes the SDK with the provided configuration.
|
|
536
358
|
* Must be called before using any SDK functionality.
|
|
537
359
|
*
|
|
@@ -687,18 +509,6 @@ async function setup(options) {
|
|
|
687
509
|
pageLifecycle: new BrowserPageLifecycleProvider(),
|
|
688
510
|
timer: BrowserTimerProvider.getInstance()
|
|
689
511
|
}));
|
|
690
|
-
initializeTrueSightDiagnostics({
|
|
691
|
-
enabled: options.trueSight?.enabled !== false,
|
|
692
|
-
pageLifecycle: new BrowserPageLifecycleProvider(),
|
|
693
|
-
timer: BrowserTimerProvider.getInstance(),
|
|
694
|
-
storage: new BrowserStorageProvider(),
|
|
695
|
-
getEnvironmentSnapshot: buildEnvironmentSnapshot
|
|
696
|
-
});
|
|
697
|
-
noteTestingSignals({
|
|
698
|
-
devMode: options.devMode,
|
|
699
|
-
apiUrl: options.apiURL
|
|
700
|
-
});
|
|
701
|
-
setHttpRequestObserver(logHttpRequestTiming);
|
|
702
512
|
const requestedEncryption = normalizeEncryption(options.encryption);
|
|
703
513
|
const stored = getStoredHttpConfig();
|
|
704
514
|
if (requestedEncryption && stored) {
|
|
@@ -778,7 +588,8 @@ function setWasmConfig(config) {
|
|
|
778
588
|
/**
|
|
779
589
|
* Initializes WasmUtilProvider with the stored WASM configuration.
|
|
780
590
|
* Should be called after warmupWasm() completes when using conditional warmup.
|
|
781
|
-
*
|
|
591
|
+
* Also upgrades the HTTP client so protected capture payloads are unwrapped
|
|
592
|
+
* by the native transport before upload.
|
|
782
593
|
*
|
|
783
594
|
* @param config - Optional WASM configuration. If not provided, uses the stored config from setWasmConfig().
|
|
784
595
|
* @throws Error if no config is provided and none is stored
|
|
@@ -791,6 +602,7 @@ async function initializeWasmUtil(config) {
|
|
|
791
602
|
...resolved,
|
|
792
603
|
pipelines: resolved.pipelines ? [...resolved.pipelines] : void 0
|
|
793
604
|
});
|
|
605
|
+
await upgradeToWasmHttpClient$1(resolved);
|
|
794
606
|
}
|
|
795
607
|
/**
|
|
796
608
|
* Warms additional WASM pipelines on demand, reusing the WASM config stored by
|
|
@@ -874,4 +686,4 @@ function reset() {
|
|
|
874
686
|
resetTrueSight();
|
|
875
687
|
}
|
|
876
688
|
//#endregion
|
|
877
|
-
export { resolveWasmConfigForPipelines as a, upgradeToWasmHttpClient as c,
|
|
689
|
+
export { resolveWasmConfigForPipelines as a, upgradeToWasmHttpClient as c, reset as i, BrowserStorageProvider as l, initializeWasmUtil as n, setWasmConfig as o, isConfigured as r, setup as s, ensureWasmPipelines as t };
|
|
@@ -128,8 +128,6 @@ var TransactionalRiskIntelligenceProvider = class TransactionalRiskIntelligenceP
|
|
|
128
128
|
};
|
|
129
129
|
//#endregion
|
|
130
130
|
//#region src/integrations/tri/tri.ts
|
|
131
|
-
const LINK_INTERVIEW_BLOCKED_HOSTS = ["falcon-ingest-k8s.saask8s.incodesmile.com", "falcon-ingest.incodesmile.com"];
|
|
132
|
-
let _configuredApiURL;
|
|
133
131
|
/**
|
|
134
132
|
* Returns the active TRI capability implementation.
|
|
135
133
|
*
|
|
@@ -157,7 +155,6 @@ function isTRIStarted() {
|
|
|
157
155
|
* the `isStarted` flag and lazy-import state.
|
|
158
156
|
*/
|
|
159
157
|
function resetTRIProviderInstance() {
|
|
160
|
-
_configuredApiURL = void 0;
|
|
161
158
|
TransactionalRiskIntelligenceProvider.resetInstance();
|
|
162
159
|
}
|
|
163
160
|
/**
|
|
@@ -211,7 +208,6 @@ async function initializeTRI(config, options = {}) {
|
|
|
211
208
|
* @returns The resulting {@link TransactionalRiskIntelligenceState}.
|
|
212
209
|
*/
|
|
213
210
|
async function setupTRI(config) {
|
|
214
|
-
_configuredApiURL = config.apiURL;
|
|
215
211
|
return getProvider().setup(config);
|
|
216
212
|
}
|
|
217
213
|
/**
|
|
@@ -247,14 +243,8 @@ async function resetTRI() {
|
|
|
247
243
|
*/
|
|
248
244
|
async function linkSessionWithTRI(sessionToken) {
|
|
249
245
|
if (!sessionToken) return false;
|
|
250
|
-
if (isLinkInterviewBlocked(_configuredApiURL)) return false;
|
|
251
246
|
return getProvider().linkInterview(sessionToken);
|
|
252
247
|
}
|
|
253
|
-
function isLinkInterviewBlocked(apiURL) {
|
|
254
|
-
if (!apiURL) return true;
|
|
255
|
-
const normalized = apiURL.toLowerCase();
|
|
256
|
-
return LINK_INTERVIEW_BLOCKED_HOSTS.some((host) => normalized.includes(host));
|
|
257
|
-
}
|
|
258
248
|
/**
|
|
259
249
|
* @private This function is not used outside of this file.
|
|
260
250
|
*
|
package/dist/tri.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resetTRI, c as startTRI, l as stopTRI, r as isTRIStarted, s as setupTRI, t as createTRISession } from "./tri-
|
|
1
|
+
import { a as resetTRI, c as startTRI, l as stopTRI, r as isTRIStarted, s as setupTRI, t as createTRISession } from "./tri-xzRLIIMN.esm.js";
|
|
2
2
|
export { createTRISession, isTRIStarted, resetTRI, setupTRI, startTRI, stopTRI };
|