@incodetech/core 0.0.0-dev-20260921-d982c6d9 → 0.0.0-dev-20260921-e88426b0
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-B2NDiwgU.esm.js → BrowserDiagnosticsCryptoProvider-CvYfZMnv.esm.js} +1 -1
- package/dist/{FaceDetectionProvider-BkDRhMj3.esm.js → FaceDetectionProvider-wJI4vP3r.esm.js} +4 -4
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-CtEp6UNb.esm.js → apiError-3ys-wxoO.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-B-ene5PM.esm.js → authenticationManager-BmVfO0DC.esm.js} +3 -3
- package/dist/{authenticationStateMachine-CvoMvIrt.esm.js → authenticationStateMachine-B_zFT_M5.esm.js} +2 -2
- package/dist/{deepsightLoader-DkXH1DW0.esm.js → deepsightLoader-DYzT1EET.esm.js} +3 -3
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-8NsfOH00.esm.js → dynamicFormsManager-DJbgNIHD.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-KyQ3fKO6.esm.js → dynamicFormsStateMachine-CHTg8pz2.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-CsLIsAo0.esm.js → ekybManager-SVxvr7W4.esm.js} +1 -1
- package/dist/{ekybStateMachine-CnxL7O0t.esm.js → ekybStateMachine-BMnvXDT5.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-CgBDRepO.esm.js → electronicSignatureManager-Bqpxd5ys.esm.js} +1 -1
- package/dist/extensibility.d.ts +1 -1
- package/dist/extensibility.esm.js +10 -10
- package/dist/{faceCaptureManagerFactory--eXy3GY-.esm.js → faceCaptureManagerFactory-JiJf1zQt.esm.js} +1 -1
- package/dist/{faceCaptureSetup-D6GbyRtA.esm.js → faceCaptureSetup-atWN12Jp.esm.js} +3 -3
- package/dist/{feature-management-9rHZxRWH.esm.js → feature-management-B71OxR2_.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-DpipRHld.esm.js → flowCompletionService-fQozmpJp.esm.js} +1 -1
- package/dist/{flowServices-BRfylI2e.esm.js → flowServices-JMyiIoCs.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-cfaH8zD9.esm.js → geolocationManager-b4u5Q1A3.esm.js} +1 -1
- package/dist/{geolocationStateMachine-B_ZKeWUq.esm.js → geolocationStateMachine-DyTxgOSt.esm.js} +1 -1
- package/dist/id-selfie-flow.esm.js +7 -7
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-M-xUZ8yz.esm.js → idCaptureDefaults-BvJQyo_A.esm.js} +1 -1
- package/dist/{idCaptureManager-DgWbhniG.esm.js → idCaptureManager-CUOVyofI.esm.js} +3 -3
- package/dist/{idCaptureServices-ZJu1x0zZ.esm.js → idCaptureServices-4TMQgFDo.esm.js} +3 -3
- package/dist/{idCaptureStateMachine-CTeJuM-F.esm.js → idCaptureStateMachine-2S4_PA97.esm.js} +9 -9
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-BBE2R_S7.d.ts → identityReuseManager-x2QG6QAm.d.ts} +4 -4
- package/dist/index.esm.js +1 -1
- package/dist/personhood.esm.js +4 -4
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-tq9xbxT8.esm.js → runChildModule-BL4Rk8ik.esm.js} +1 -1
- package/dist/{sdkVersion-v2Ne5Po_.esm.js → sdkVersion-Cysb10Yn.esm.js} +1 -1
- package/dist/selfie.esm.js +5 -5
- package/dist/{selfieManager-DmPEpXpY.esm.js → selfieManager-DMwwPIKX.esm.js} +3 -3
- package/dist/{selfieStateMachine-CPLdF4SY.esm.js → selfieStateMachine-ydM6cuXP.esm.js} +2 -2
- package/dist/{session-hgbcHtY_.esm.js → session-vLvfp5DY.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-CzydRnms.esm.js → sessionInitializer-BDaCQKeI.esm.js} +3 -3
- package/dist/{setup-DWWq-6EZ.esm.js → setup-D8QyhVe3.esm.js} +5 -146
- package/dist/{trueSightService-CwnDT-K2.esm.js → trueSightService-BVrLJBui.esm.js} +176 -18
- package/dist/video-selfie.esm.js +4 -4
- package/dist/{videoSelfieCameraWarmer-Cv908VGC.esm.js → videoSelfieCameraWarmer-2-PZRnLp.esm.js} +3 -3
- package/dist/wasm.esm.js +2 -1
- package/dist/workflow.d.ts +4 -4
- package/dist/workflow.esm.js +14 -14
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-DWWq-6EZ.esm.js";
|
|
2
1
|
import { r as WasmUtilProvider } from "./safeStorage-C511Hltw.esm.js";
|
|
2
|
+
import { l as BrowserStorageProvider } from "./setup-D8QyhVe3.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-JiJf1zQt.esm.js";
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-ydM6cuXP.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieActor.ts
|
|
8
8
|
function createSelfieActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
3
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { c as isOnDeviceMode } from "./FaceDetectionProvider-
|
|
3
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-atWN12Jp.esm.js";
|
|
4
|
+
import { c as isOnDeviceMode } from "./FaceDetectionProvider-wJI4vP3r.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
6
6
|
import { n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-yjRptLFi.esm.js";
|
|
7
7
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { g as noteSessionCreated, l as trueSightLog } from "./trueSightService-BVrLJBui.esm.js";
|
|
1
2
|
import { n as getApi } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import
|
|
3
|
-
import "./sessionInitializer-CzydRnms.esm.js";
|
|
3
|
+
import "./sessionInitializer-BDaCQKeI.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
5
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
5
|
+
import { i as toIncodeApiError } from "./apiError-3ys-wxoO.esm.js";
|
|
6
6
|
//#region src/internal/session/sessionService.ts
|
|
7
7
|
/**
|
|
8
8
|
* HTTP status codes the QR validation endpoint emits, keyed by their semantic
|
package/dist/session.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as getToken } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { r as subscribeHttpErrors } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
3
|
-
import { i as initializeSession, l as whenSessionFingerprintSettled } from "./sessionInitializer-
|
|
4
|
-
import { t as IncodeApiError } from "./apiError-
|
|
5
|
-
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-
|
|
6
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
3
|
+
import { i as initializeSession, l as whenSessionFingerprintSettled } from "./sessionInitializer-BDaCQKeI.esm.js";
|
|
4
|
+
import { t as IncodeApiError } from "./apiError-3ys-wxoO.esm.js";
|
|
5
|
+
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-vLvfp5DY.esm.js";
|
|
6
|
+
import { n as getFinishStatus } from "./flowCompletionService-fQozmpJp.esm.js";
|
|
7
7
|
//#region src/internal/session/sessionExpired.ts
|
|
8
8
|
var SessionExpiredError = class extends Error {
|
|
9
9
|
constructor() {
|
|
@@ -1,8 +1,8 @@
|
|
|
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-BVrLJBui.esm.js";
|
|
2
|
+
import { E as updateFeatureManagementUser } from "./feature-management-B71OxR2_.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-CwnDT-K2.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-Cysb10Yn.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";
|
|
@@ -1,157 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as upgradeToWasmHttpClient$1, S as resetHttpClientState, _ as noteTestingSignals, b as getStoredHttpConfig, k as resolveWasmConfig, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as installFreshHttpClient } from "./trueSightService-BVrLJBui.esm.js";
|
|
2
2
|
import { i as setWasmOnDeviceMode, o as warmupWasm } from "./warmup-REsua-sF.esm.js";
|
|
3
3
|
import { r as WasmUtilProvider, t as resolveLocalStorage } from "./safeStorage-C511Hltw.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-B71OxR2_.esm.js";
|
|
6
6
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
7
7
|
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
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-CwnDT-K2.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, 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 } from "./sessionInitializer-
|
|
9
|
+
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 } from "./sessionInitializer-BDaCQKeI.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
12
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-4RsGrIt6.esm.js";
|
|
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
|
-
showLogs: overrides.showLogs,
|
|
143
|
-
pipelines: overrides.pipelines,
|
|
144
|
-
pipelineModels: overrides.pipelineModels,
|
|
145
|
-
modelUrls: overrides.modelUrls,
|
|
146
|
-
legacyModelUrls: overrides.legacyModelUrls,
|
|
147
|
-
loadGlue: overrides.loadGlue,
|
|
148
|
-
loadGlueSimd: overrides.loadGlueSimd,
|
|
149
|
-
selfHosted: overrides.selfHosted
|
|
150
|
-
};
|
|
151
|
-
validateWasmPaths(merged);
|
|
152
|
-
return merged;
|
|
153
|
-
}
|
|
154
|
-
//#endregion
|
|
13
|
+
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-JMyiIoCs.esm.js";
|
|
155
14
|
//#region ../infra/src/providers/browser/BrowserPageLifecycleProvider.ts
|
|
156
15
|
var BrowserPageLifecycleProvider = class {
|
|
157
16
|
sendBeacon(url, body, contentType = "application/json") {
|
|
@@ -874,4 +733,4 @@ function reset() {
|
|
|
874
733
|
resetTrueSight();
|
|
875
734
|
}
|
|
876
735
|
//#endregion
|
|
877
|
-
export { resolveWasmConfigForPipelines as a, upgradeToWasmHttpClient as c,
|
|
736
|
+
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 };
|
|
@@ -1,10 +1,150 @@
|
|
|
1
|
-
import { a as setWebApiHttpTransport, i as initializeWasmWebClient, o as setupWasmConnection, r as executeWasmRequest, t as WasmWebClientError } from "./wasmWebClient-DPPQlS-U.esm.js";
|
|
1
|
+
import { a as setWebApiHttpTransport, f as deriveSiblingJsPath, i as initializeWasmWebClient, o as setupWasmConnection, p as WASM_MODEL_FILES, r as executeWasmRequest, t as WasmWebClientError, v as buildModelVariantSources } from "./wasmWebClient-DPPQlS-U.esm.js";
|
|
2
2
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
3
3
|
import { i as isApiConfigured, n as getApi, o as setClient, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
4
|
import { n as reportHttpError, t as HttpRequestError } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
5
5
|
import { S as subscribeEvent, n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
6
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
6
|
+
import { t as SDK_VERSION } from "./sdkVersion-Cysb10Yn.esm.js";
|
|
7
7
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
8
|
+
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
9
|
+
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
|
10
|
+
/** The WASM version bundled and tested with this SDK release. */
|
|
11
|
+
const DEFAULT_WASM_VERSION = "v2.14.50-post1";
|
|
12
|
+
const PATH_KEYS = [
|
|
13
|
+
"wasmPath",
|
|
14
|
+
"wasmSimdPath",
|
|
15
|
+
"glueCodePath",
|
|
16
|
+
"glueCodeSimdPath",
|
|
17
|
+
"modelsBasePath"
|
|
18
|
+
];
|
|
19
|
+
function isBlank(value) {
|
|
20
|
+
return value.trim() === "";
|
|
21
|
+
}
|
|
22
|
+
function hasDisallowedControlChars(value) {
|
|
23
|
+
for (let i = 0; i < value.length; i += 1) {
|
|
24
|
+
const code = value.charCodeAt(i);
|
|
25
|
+
if (code < 32 || code === 127) return true;
|
|
26
|
+
}
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
function isMalformedPath(value) {
|
|
30
|
+
const trimmed = value.trim();
|
|
31
|
+
if (trimmed === "") return false;
|
|
32
|
+
if (hasDisallowedControlChars(trimmed)) return true;
|
|
33
|
+
if (/^https?:\/\//i.test(trimmed)) try {
|
|
34
|
+
new URL(trimmed);
|
|
35
|
+
return false;
|
|
36
|
+
} catch {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function warnInvalidWasmPath(field, reason) {
|
|
42
|
+
if (reason === "empty") {
|
|
43
|
+
console.warn(`[Incode SDK] wasm.${field} is empty. Falling back to CDN default.`);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
console.warn(`[Incode SDK] wasm.${field} appears malformed. Falling back to CDN default.`);
|
|
47
|
+
}
|
|
48
|
+
function warnMalformedWasmPath(field) {
|
|
49
|
+
console.warn(`[Incode SDK] wasm.${field} appears malformed. Check the URL or path.`);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Validates merged WASM path strings. When overrides contained blank path
|
|
53
|
+
* values, callers should have already fallen back to defaults before this runs.
|
|
54
|
+
*/
|
|
55
|
+
function validateWasmPaths(config) {
|
|
56
|
+
for (const key of PATH_KEYS) {
|
|
57
|
+
const value = config[key];
|
|
58
|
+
if (typeof value === "string" && isMalformedPath(value)) warnMalformedWasmPath(key);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function pickPath(key, overrides, defaultValue) {
|
|
62
|
+
if (!overrides || !(key in overrides)) return defaultValue;
|
|
63
|
+
const raw = overrides[key];
|
|
64
|
+
if (raw === void 0) return defaultValue;
|
|
65
|
+
if (typeof raw !== "string") return defaultValue;
|
|
66
|
+
if (isBlank(raw)) {
|
|
67
|
+
warnInvalidWasmPath(key, "empty");
|
|
68
|
+
return defaultValue;
|
|
69
|
+
}
|
|
70
|
+
if (isMalformedPath(raw)) {
|
|
71
|
+
warnInvalidWasmPath(key, "malformed");
|
|
72
|
+
return defaultValue;
|
|
73
|
+
}
|
|
74
|
+
return raw.trim();
|
|
75
|
+
}
|
|
76
|
+
function pickSource(key, overrides, defaultValue) {
|
|
77
|
+
if (!(key in overrides) || overrides[key] === void 0) return defaultValue;
|
|
78
|
+
const source = overrides[key];
|
|
79
|
+
if (typeof source !== "string") return source;
|
|
80
|
+
return pickPath(key, overrides, String(defaultValue));
|
|
81
|
+
}
|
|
82
|
+
function resolveBasePath(overrides) {
|
|
83
|
+
const defaultValue = `${WASM_CDN_BASE_URL}/${DEFAULT_WASM_VERSION}`;
|
|
84
|
+
if (!("basePath" in overrides) || overrides.basePath === void 0) return defaultValue;
|
|
85
|
+
const basePath = overrides.basePath;
|
|
86
|
+
if (typeof basePath !== "string" || isBlank(basePath) || isMalformedPath(basePath)) throw new Error("[Incode SDK] wasm.basePath is invalid.");
|
|
87
|
+
return basePath.trim();
|
|
88
|
+
}
|
|
89
|
+
/** Builds a WarmupConfig from a directory that mirrors the ml-wasm-kit CDN layout. */
|
|
90
|
+
function buildWasmConfigFromBasePath(basePath) {
|
|
91
|
+
const base = basePath.endsWith("/") ? basePath.slice(0, -1) : basePath;
|
|
92
|
+
return {
|
|
93
|
+
wasmPath: `${base}/webLib.wasm`,
|
|
94
|
+
wasmSimdPath: `${base}/webLibSimd.wasm`,
|
|
95
|
+
glueCodePath: `${base}/webLib.js`,
|
|
96
|
+
glueCodeSimdPath: `${base}/webLibSimd.js`,
|
|
97
|
+
modelsBasePath: `${base}/models`
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
/** Builds the standard WarmupConfig from the Incode CDN. */
|
|
101
|
+
function buildDefaultWasmConfig() {
|
|
102
|
+
return buildWasmConfigFromBasePath(`${WASM_CDN_BASE_URL}/${DEFAULT_WASM_VERSION}`);
|
|
103
|
+
}
|
|
104
|
+
const BARCODE_ENHANCE_MODEL_FILE = WASM_MODEL_FILES.barcode;
|
|
105
|
+
/**
|
|
106
|
+
* URL of the lazily-loaded PDF417 barcode enhancement model (US Smart Capture).
|
|
107
|
+
* Derived from the resolved `modelsBasePath` so self-hosted / air-gapped
|
|
108
|
+
* deployments resolve it correctly, falling back to the CDN default. Loaded on
|
|
109
|
+
* demand via `IIdCaptureCapability.setBarcodeEnhancementModel` — deliberately
|
|
110
|
+
* NOT part of any warmup model bundle.
|
|
111
|
+
*/
|
|
112
|
+
function getBarcodeEnhanceModelUrl(modelsBasePath, variant = "current") {
|
|
113
|
+
const source = buildModelVariantSources(modelsBasePath ?? `${WASM_CDN_BASE_URL}/v2.14.50-post1/models`, BARCODE_ENHANCE_MODEL_FILE);
|
|
114
|
+
return typeof source === "string" ? source : source[variant];
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Merges optional WASM path overrides with CDN defaults. Explicit non-blank
|
|
118
|
+
* paths take precedence. Blank override strings log a warning and fall back to defaults.
|
|
119
|
+
*/
|
|
120
|
+
function resolveWasmConfig(overrides) {
|
|
121
|
+
if (!overrides) return buildDefaultWasmConfig();
|
|
122
|
+
const defaults = buildWasmConfigFromBasePath(resolveBasePath(overrides));
|
|
123
|
+
const resolvedWasmPath = pickSource("wasmPath", overrides, defaults.wasmPath);
|
|
124
|
+
const simdDefault = overrides.selfHosted ? resolvedWasmPath : defaults.wasmSimdPath;
|
|
125
|
+
const modelsDefault = defaults.modelsBasePath;
|
|
126
|
+
const resolvedWasmSimdPath = pickSource("wasmSimdPath", overrides, simdDefault);
|
|
127
|
+
const glueCodeSimdDefault = typeof resolvedWasmSimdPath === "string" ? deriveSiblingJsPath(resolvedWasmSimdPath) : defaults.glueCodeSimdPath;
|
|
128
|
+
const merged = {
|
|
129
|
+
wasmPath: resolvedWasmPath,
|
|
130
|
+
wasmSimdPath: resolvedWasmSimdPath,
|
|
131
|
+
glueCodePath: pickPath("glueCodePath", overrides, defaults.glueCodePath),
|
|
132
|
+
glueCodeSimdPath: pickPath("glueCodeSimdPath", overrides, glueCodeSimdDefault),
|
|
133
|
+
modelsBasePath: pickPath("modelsBasePath", overrides, modelsDefault),
|
|
134
|
+
useSimd: overrides.useSimd,
|
|
135
|
+
showLogs: overrides.showLogs,
|
|
136
|
+
pipelines: overrides.pipelines,
|
|
137
|
+
pipelineModels: overrides.pipelineModels,
|
|
138
|
+
modelUrls: overrides.modelUrls,
|
|
139
|
+
legacyModelUrls: overrides.legacyModelUrls,
|
|
140
|
+
loadGlue: overrides.loadGlue,
|
|
141
|
+
loadGlueSimd: overrides.loadGlueSimd,
|
|
142
|
+
selfHosted: overrides.selfHosted
|
|
143
|
+
};
|
|
144
|
+
validateWasmPaths(merged);
|
|
145
|
+
return merged;
|
|
146
|
+
}
|
|
147
|
+
//#endregion
|
|
8
148
|
//#region ../infra/src/http/createApi.ts
|
|
9
149
|
var FetchHttpError = class extends HttpRequestError {
|
|
10
150
|
constructor(..._args) {
|
|
@@ -415,10 +555,18 @@ const createWasmApi = async (config) => {
|
|
|
415
555
|
* `httpClient.request()` pipeline as every other endpoint — header
|
|
416
556
|
* injection, encryption-state handling, default headers, timeout — instead
|
|
417
557
|
* of bypassing it via `executeWasmRequest` directly.
|
|
558
|
+
*
|
|
559
|
+
* Protected captures arrive with `ie === true`: the C++ `WebApi` already
|
|
560
|
+
* encrypted the body inline, and only the WASM `WebClient` can unwrap it. A
|
|
561
|
+
* plain fetch client would post the ciphertext as JSON and the backend
|
|
562
|
+
* answers 406. If the plain client is still installed at that point (the
|
|
563
|
+
* host called `setup()` without `wasm` and warmed WASM separately), swap to
|
|
564
|
+
* the WASM client first. The module is already loaded — the payload came
|
|
565
|
+
* out of it — so the swap only creates the `WebClient`.
|
|
418
566
|
*/
|
|
419
567
|
function bindWebApiTransport(client) {
|
|
420
568
|
return async (url, body, config) => {
|
|
421
|
-
const response = await client.request({
|
|
569
|
+
const response = await (config.ie === true && storedHttpConfig && !storedHttpConfig.isWasm ? await ensureWasmHttpClient() : client).request({
|
|
422
570
|
method: "POST",
|
|
423
571
|
url,
|
|
424
572
|
body,
|
|
@@ -437,7 +585,12 @@ function installClient(client) {
|
|
|
437
585
|
setClient(client);
|
|
438
586
|
setWebApiHttpTransport(bindWebApiTransport(client));
|
|
439
587
|
}
|
|
588
|
+
async function ensureWasmHttpClient() {
|
|
589
|
+
await upgradeToWasmHttpClient(resolveWasmConfig());
|
|
590
|
+
return getApi();
|
|
591
|
+
}
|
|
440
592
|
let storedHttpConfig;
|
|
593
|
+
let pendingUpgrade;
|
|
441
594
|
/** Reads the current HTTP-client config (or `undefined` if none installed). */
|
|
442
595
|
function getStoredHttpConfig() {
|
|
443
596
|
return storedHttpConfig;
|
|
@@ -494,19 +647,24 @@ async function installFreshHttpClient(apiURL, options, effectiveWasm, encryption
|
|
|
494
647
|
async function upgradeToWasmHttpClient(resolved) {
|
|
495
648
|
const stored = storedHttpConfig;
|
|
496
649
|
if (!stored || stored.isWasm) return;
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
650
|
+
pendingUpgrade ??= (async () => {
|
|
651
|
+
installClient(await createWasmApi({
|
|
652
|
+
apiURL: stored.apiURL,
|
|
653
|
+
customHeaders: stored.customHeaders,
|
|
654
|
+
timeout: stored.timeout,
|
|
655
|
+
wasm: resolved,
|
|
656
|
+
encryptionEnabled: stored.encryption.enabled,
|
|
657
|
+
mgf1: stored.encryption.mgf1,
|
|
658
|
+
isEncryptionEnabled: isHttpEncrypted
|
|
659
|
+
}));
|
|
660
|
+
storedHttpConfig = {
|
|
661
|
+
...stored,
|
|
662
|
+
isWasm: true
|
|
663
|
+
};
|
|
664
|
+
})().finally(() => {
|
|
665
|
+
pendingUpgrade = void 0;
|
|
666
|
+
});
|
|
667
|
+
return pendingUpgrade;
|
|
510
668
|
}
|
|
511
669
|
/**
|
|
512
670
|
* When `wantsEncryption` is true, wraps a call that triggers the in-binary
|
|
@@ -1312,7 +1470,7 @@ let cryptoProviderPromise = null;
|
|
|
1312
1470
|
* the service's prewarm).
|
|
1313
1471
|
*/
|
|
1314
1472
|
function loadDiagnosticsCryptoProvider() {
|
|
1315
|
-
cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-
|
|
1473
|
+
cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-CvYfZMnv.esm.js").then((module) => new module.BrowserDiagnosticsCryptoProvider());
|
|
1316
1474
|
return cryptoProviderPromise;
|
|
1317
1475
|
}
|
|
1318
1476
|
/**
|
|
@@ -1881,4 +2039,4 @@ function modulePosition(payload) {
|
|
|
1881
2039
|
return `${typeof moduleIndex === "number" ? ` index=${moduleIndex}` : ""}${typeof totalModules === "number" ? ` total=${totalModules}` : ""}`;
|
|
1882
2040
|
}
|
|
1883
2041
|
//#endregion
|
|
1884
|
-
export { upgradeToWasmHttpClient as C, resetHttpClientState as S, noteTestingSignals as _, notifyTrueSightManagerStopped as a, getStoredHttpConfig as b, trueSightHintTransition as c, fetchFeatureConfig as d, isFeatureEnabled as f, noteSessionCreated as g, noteEnvironment as h, notifyTrueSightFlowEvent as i, trueSightLog as l, isTrueSightTesting as m, initializeTrueSightDiagnostics as n, resetTrueSight as o, resetFeatureConfigCache as p, noteTrueSightCaptureActivity as r, startTrueSightCollection as s, finalizeTrueSight as t, categoryForEndpoint as u, noteTokenActivated as v, createApi as w, installFreshHttpClient as x, randomUUID as y };
|
|
2042
|
+
export { upgradeToWasmHttpClient as C, buildWasmConfigFromBasePath as D, buildDefaultWasmConfig as E, getBarcodeEnhanceModelUrl as O, resetHttpClientState as S, DEFAULT_WASM_VERSION as T, noteTestingSignals as _, notifyTrueSightManagerStopped as a, getStoredHttpConfig as b, trueSightHintTransition as c, fetchFeatureConfig as d, isFeatureEnabled as f, noteSessionCreated as g, noteEnvironment as h, notifyTrueSightFlowEvent as i, resolveWasmConfig as k, trueSightLog as l, isTrueSightTesting as m, initializeTrueSightDiagnostics as n, resetTrueSight as o, resetFeatureConfigCache as p, noteTrueSightCaptureActivity as r, startTrueSightCollection as s, finalizeTrueSight as t, categoryForEndpoint as u, noteTokenActivated as v, createApi as w, installFreshHttpClient as x, randomUUID as y };
|
package/dist/video-selfie.esm.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-DWWq-6EZ.esm.js";
|
|
2
1
|
import { r as WasmUtilProvider } from "./safeStorage-C511Hltw.esm.js";
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-D8QyhVe3.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
4
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
6
|
-
import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-
|
|
6
|
+
import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-JMyiIoCs.esm.js";
|
|
7
7
|
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
8
8
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
9
9
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
10
10
|
import { t as MultipartRecordingService } from "./multipartRecordingService-OEgIRvqC.esm.js";
|
|
11
|
-
import { i as CameraCompositor } from "./idCaptureDefaults-
|
|
11
|
+
import { i as CameraCompositor } from "./idCaptureDefaults-BvJQyo_A.esm.js";
|
|
12
12
|
import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-CpF2cBy6.esm.js";
|
|
13
|
-
import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-
|
|
13
|
+
import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-2-PZRnLp.esm.js";
|
|
14
14
|
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-DQTlyw98.esm.js";
|
|
15
15
|
//#region src/modules/video-selfie/videoSelfieWasm.ts
|
|
16
16
|
function warmupVideoSelfieWasm(config, steps = resolveVideoSelfieSteps(config)) {
|
package/dist/{videoSelfieCameraWarmer-Cv908VGC.esm.js → videoSelfieCameraWarmer-2-PZRnLp.esm.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
4
|
-
import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-
|
|
4
|
+
import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-JMyiIoCs.esm.js";
|
|
5
5
|
import { a as requestCameraWithFallback, i as requestCameraAccess } from "./camera-sIa9ceW2.esm.js";
|
|
6
6
|
import { t as checkPermission } from "./permissionServices-C8DqhjX7.esm.js";
|
|
7
|
-
import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
7
|
+
import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-wJI4vP3r.esm.js";
|
|
8
8
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
9
9
|
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
10
10
|
import { n as getBackCameraStream } from "./backCameraStream-B0-YgP_y.esm.js";
|
|
11
11
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
12
12
|
import { i as uploadSelfie, r as processFace, t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-yjRptLFi.esm.js";
|
|
13
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-
|
|
13
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-BvJQyo_A.esm.js";
|
|
14
14
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
15
15
|
//#region src/modules/video-selfie/videoSelfieCompareService.ts
|
|
16
16
|
async function postVideoSelfieCompare(endpoint, base64Image) {
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { g as WASM_PIPELINE_MODEL_NAMES, m as WASM_PIPELINE_LAZY_MODEL_NAMES, p as WASM_MODEL_FILES } from "./wasmWebClient-DPPQlS-U.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { D as buildWasmConfigFromBasePath, E as buildDefaultWasmConfig, T as DEFAULT_WASM_VERSION, k as resolveWasmConfig } from "./trueSightService-BVrLJBui.esm.js";
|
|
3
3
|
import { o as warmupWasm } from "./warmup-REsua-sF.esm.js";
|
|
4
|
+
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-D8QyhVe3.esm.js";
|
|
4
5
|
//#region src/defineWasm.ts
|
|
5
6
|
function requiredModels(pipelines) {
|
|
6
7
|
const models = /* @__PURE__ */ new Set();
|
package/dist/workflow.d.ts
CHANGED
|
@@ -339,10 +339,6 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
339
339
|
id: string | undefined;
|
|
340
340
|
};
|
|
341
341
|
}>, Values<{
|
|
342
|
-
setError: {
|
|
343
|
-
type: "setError";
|
|
344
|
-
params: NonReducibleUnknown;
|
|
345
|
-
};
|
|
346
342
|
setLoadingResult: {
|
|
347
343
|
type: "setLoadingResult";
|
|
348
344
|
params: NonReducibleUnknown;
|
|
@@ -375,6 +371,10 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
375
371
|
type: "setFinishStatusFailed";
|
|
376
372
|
params: NonReducibleUnknown;
|
|
377
373
|
};
|
|
374
|
+
setError: {
|
|
375
|
+
type: "setError";
|
|
376
|
+
params: NonReducibleUnknown;
|
|
377
|
+
};
|
|
378
378
|
setModuleError: {
|
|
379
379
|
type: "setModuleError";
|
|
380
380
|
params: NonReducibleUnknown;
|
package/dist/workflow.esm.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as trueSightLog } from "./trueSightService-BVrLJBui.esm.js";
|
|
2
|
+
import { E as updateFeatureManagementUser } from "./feature-management-B71OxR2_.esm.js";
|
|
2
3
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { l as trueSightLog } from "./trueSightService-CwnDT-K2.esm.js";
|
|
4
4
|
import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-ijlbX_Wx.esm.js";
|
|
5
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
5
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-BDaCQKeI.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
7
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
8
|
-
import { v as toEkybConfig } from "./flowServices-
|
|
7
|
+
import { i as toIncodeApiError } from "./apiError-3ys-wxoO.esm.js";
|
|
8
|
+
import { v as toEkybConfig } from "./flowServices-JMyiIoCs.esm.js";
|
|
9
9
|
import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
|
|
10
10
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
11
11
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
12
|
-
import { r as electronicSignatureMachine } from "./electronicSignatureManager-
|
|
12
|
+
import { r as electronicSignatureMachine } from "./electronicSignatureManager-Bqpxd5ys.esm.js";
|
|
13
13
|
import "./ae-signature.esm.js";
|
|
14
14
|
import { t as antifraudMachine } from "./antifraudStateMachine-D_pA96rq.esm.js";
|
|
15
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
15
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-B_zFT_M5.esm.js";
|
|
16
16
|
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-Bn5VbLhG.esm.js";
|
|
17
17
|
import { t as consentMachine } from "./consentStateMachine-1MkML1iL.esm.js";
|
|
18
18
|
import { t as curpValidationMachine } from "./curpValidationStateMachine-Bg_Lsk2V.esm.js";
|
|
19
19
|
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-Bzx8zPD3.esm.js";
|
|
20
20
|
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-CK5UgiFM.esm.js";
|
|
21
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
22
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
21
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-CHTg8pz2.esm.js";
|
|
22
|
+
import { t as ekybMachine } from "./ekybStateMachine-BMnvXDT5.esm.js";
|
|
23
23
|
import { t as ekycMachine } from "./ekycStateMachine-BjNeL6ce.esm.js";
|
|
24
24
|
import { t as emailMachine } from "./emailStateMachine-D7czACc4.esm.js";
|
|
25
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
26
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
25
|
+
import { t as selfieMachine } from "./selfieStateMachine-ydM6cuXP.esm.js";
|
|
26
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-2S4_PA97.esm.js";
|
|
27
27
|
import { t as phoneMachine } from "./phoneStateMachine-BpZ2PF2U.esm.js";
|
|
28
28
|
import { t as watchlistMachine } from "./watchlistStateMachine-BLTC8Bur.esm.js";
|
|
29
29
|
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-Ctw74iP3.esm.js";
|
|
@@ -32,12 +32,12 @@ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BqP
|
|
|
32
32
|
import { t as idOcrStateMachine } from "./idOcrStateMachine-IMYjWyxu.esm.js";
|
|
33
33
|
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-BwDBkdiB.esm.js";
|
|
34
34
|
import { t as signatureMachine } from "./signatureStateMachine-B5SZlQeG.esm.js";
|
|
35
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
35
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-DyTxgOSt.esm.js";
|
|
36
36
|
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-omXlfK8T.esm.js";
|
|
37
37
|
import { t as idVerificationMachine } from "./idVerificationStateMachine-lk1KYt0f.esm.js";
|
|
38
38
|
import { t as faceMatchMachine } from "./faceMatchStateMachine-B1IrvVGS.esm.js";
|
|
39
|
-
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-
|
|
40
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
39
|
+
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-fQozmpJp.esm.js";
|
|
40
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BL4Rk8ik.esm.js";
|
|
41
41
|
import { n as isAdvanceableError } from "./advanceableErrors-CpF2cBy6.esm.js";
|
|
42
42
|
import "./qe-signature.esm.js";
|
|
43
43
|
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-DQTlyw98.esm.js";
|