@incodetech/core 2.3.0-rc.6 → 2.3.0-rc.8
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-CrRl9swD.esm.js → BrowserDiagnosticsCryptoProvider-5-MGxBk6.esm.js} +1 -1
- package/dist/{FaceDetectionProvider-CpnVuDS5.esm.js → FaceDetectionProvider-DypXyX5c.esm.js} +4 -4
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-CVTR4cSo.esm.js → apiError-4Pik-5MI.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BGDNvbCf.esm.js → authenticationManager-DOINObSm.esm.js} +3 -3
- package/dist/{authenticationStateMachine-DNspYSz2.esm.js → authenticationStateMachine-BIFwZ10i.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-uhDPdU6i.d.ts → consentManager-3Pbtj-RV.d.ts} +4 -4
- package/dist/{deepsightLoader-Djk0rQEz.esm.js → deepsightLoader-DkFE8YIF.esm.js} +3 -3
- package/dist/document-capture.d.ts +1 -1
- package/dist/{documentCaptureManager-DensIj5F.d.ts → documentCaptureManager-DD0qtFdE.d.ts} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-BfAGjuVi.esm.js → dynamicFormsManager-CBULYDVK.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-BThO1OlZ.esm.js → dynamicFormsStateMachine-BZOa354n.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-FLGyi0PM.esm.js → ekybManager-TkRpTfhD.esm.js} +1 -1
- package/dist/{ekybStateMachine-nQv7bOUG.esm.js → ekybStateMachine-CsNFTbTv.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-C0gHnNKc.esm.js → electronicSignatureManager-D_EKcYMu.esm.js} +1 -1
- package/dist/extensibility.d.ts +4 -4
- package/dist/extensibility.esm.js +10 -10
- package/dist/{faceCaptureManagerFactory-BId_sV3B.esm.js → faceCaptureManagerFactory-vZTG70oT.esm.js} +1 -1
- package/dist/{faceCaptureSetup-BmJW0rWG.esm.js → faceCaptureSetup-DJuqgytw.esm.js} +3 -3
- package/dist/{feature-management-DBFjhsB2.esm.js → feature-management-CZ-nMsqU.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-Blxdndia.esm.js → flowCompletionService-tBWtQeo7.esm.js} +1 -1
- package/dist/{flowServices-BDJgxe8I.esm.js → flowServices-CAgj_Her.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-BIGKPXyi.esm.js → geolocationManager-CVuxiwBM.esm.js} +1 -1
- package/dist/{geolocationStateMachine-CRIQmKua.esm.js → geolocationStateMachine-CQqZ5gcL.esm.js} +1 -1
- package/dist/id-selfie-flow.esm.js +7 -7
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-CpRRQOZP.esm.js → idCaptureDefaults-bznawUFX.esm.js} +1 -1
- package/dist/{idCaptureManager-okb6GKib.esm.js → idCaptureManager-DptfJ9IG.esm.js} +3 -3
- package/dist/{idCaptureServices-Dw1symcs.esm.js → idCaptureServices-BEJ8nz7l.esm.js} +3 -3
- package/dist/{idCaptureStateMachine-D9Yk3Z2_.esm.js → idCaptureStateMachine-Cx0T0ARJ.esm.js} +15 -14
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-v2TH5g7e.d.ts → identityReuseManager-BFDI7iFK.d.ts} +4 -4
- 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-CJSyhTpi.d.ts → mandatoryConsentManager-vhv1co_n.d.ts} +4 -4
- package/dist/personhood.esm.js +4 -4
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-xkRO1Ecl.esm.js → runChildModule-D22IPoPN.esm.js} +1 -1
- package/dist/{sdkVersion-DjB_KIzb.esm.js → sdkVersion-CRxt5823.esm.js} +1 -1
- package/dist/selfie.esm.js +5 -5
- package/dist/{selfieManager-Z7of6lul.esm.js → selfieManager-DfH-2r_c.esm.js} +3 -3
- package/dist/{selfieStateMachine-UjwUaCvo.esm.js → selfieStateMachine-DPnxoVg_.esm.js} +2 -2
- package/dist/{session-DRLhmhht.esm.js → session-CVnTjODB.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-HewWDU8P.esm.js → sessionInitializer-C9m14Xqj.esm.js} +4 -4
- package/dist/{setup-Cv-JM9QC.d.ts → setup-CLfBztP0.d.ts} +2 -1
- package/dist/{setup-C6_uuDz5.esm.js → setup-COWDO2Xv.esm.js} +9 -147
- package/dist/{tri-4RsGrIt6.esm.js → tri-xzRLIIMN.esm.js} +0 -10
- package/dist/tri.esm.js +1 -1
- package/dist/{trueSightService-m6To_KWo.esm.js → trueSightService-DOiLWpRP.esm.js} +175 -18
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-DTw4oH_A.esm.js → videoSelfieCameraWarmer-Dq9ffySJ.esm.js} +3 -3
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +2 -1
- package/dist/workflow.esm.js +14 -14
- package/package.json +1 -1
|
@@ -1,9 +1,148 @@
|
|
|
1
|
-
import { a as setWebApiHttpTransport, i as initializeWasmWebClient, o as setupWasmConnection, r as executeWasmRequest, t as WasmWebClientError } from "./wasmWebClient-B7baE-Wf.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-B7baE-Wf.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 { S as subscribeEvent, n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
5
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
5
|
+
import { t as SDK_VERSION } from "./sdkVersion-CRxt5823.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
7
|
+
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
8
|
+
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
|
9
|
+
/** The WASM version bundled and tested with this SDK release. */
|
|
10
|
+
const DEFAULT_WASM_VERSION = "v2.14.50-post1";
|
|
11
|
+
const PATH_KEYS = [
|
|
12
|
+
"wasmPath",
|
|
13
|
+
"wasmSimdPath",
|
|
14
|
+
"glueCodePath",
|
|
15
|
+
"glueCodeSimdPath",
|
|
16
|
+
"modelsBasePath"
|
|
17
|
+
];
|
|
18
|
+
function isBlank(value) {
|
|
19
|
+
return value.trim() === "";
|
|
20
|
+
}
|
|
21
|
+
function hasDisallowedControlChars(value) {
|
|
22
|
+
for (let i = 0; i < value.length; i += 1) {
|
|
23
|
+
const code = value.charCodeAt(i);
|
|
24
|
+
if (code < 32 || code === 127) return true;
|
|
25
|
+
}
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
function isMalformedPath(value) {
|
|
29
|
+
const trimmed = value.trim();
|
|
30
|
+
if (trimmed === "") return false;
|
|
31
|
+
if (hasDisallowedControlChars(trimmed)) return true;
|
|
32
|
+
if (/^https?:\/\//i.test(trimmed)) try {
|
|
33
|
+
new URL(trimmed);
|
|
34
|
+
return false;
|
|
35
|
+
} catch {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function warnInvalidWasmPath(field, reason) {
|
|
41
|
+
if (reason === "empty") {
|
|
42
|
+
console.warn(`[Incode SDK] wasm.${field} is empty. Falling back to CDN default.`);
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
console.warn(`[Incode SDK] wasm.${field} appears malformed. Falling back to CDN default.`);
|
|
46
|
+
}
|
|
47
|
+
function warnMalformedWasmPath(field) {
|
|
48
|
+
console.warn(`[Incode SDK] wasm.${field} appears malformed. Check the URL or path.`);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Validates merged WASM path strings. When overrides contained blank path
|
|
52
|
+
* values, callers should have already fallen back to defaults before this runs.
|
|
53
|
+
*/
|
|
54
|
+
function validateWasmPaths(config) {
|
|
55
|
+
for (const key of PATH_KEYS) {
|
|
56
|
+
const value = config[key];
|
|
57
|
+
if (typeof value === "string" && isMalformedPath(value)) warnMalformedWasmPath(key);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function pickPath(key, overrides, defaultValue) {
|
|
61
|
+
if (!overrides || !(key in overrides)) return defaultValue;
|
|
62
|
+
const raw = overrides[key];
|
|
63
|
+
if (raw === void 0) return defaultValue;
|
|
64
|
+
if (typeof raw !== "string") return defaultValue;
|
|
65
|
+
if (isBlank(raw)) {
|
|
66
|
+
warnInvalidWasmPath(key, "empty");
|
|
67
|
+
return defaultValue;
|
|
68
|
+
}
|
|
69
|
+
if (isMalformedPath(raw)) {
|
|
70
|
+
warnInvalidWasmPath(key, "malformed");
|
|
71
|
+
return defaultValue;
|
|
72
|
+
}
|
|
73
|
+
return raw.trim();
|
|
74
|
+
}
|
|
75
|
+
function pickSource(key, overrides, defaultValue) {
|
|
76
|
+
if (!(key in overrides) || overrides[key] === void 0) return defaultValue;
|
|
77
|
+
const source = overrides[key];
|
|
78
|
+
if (typeof source !== "string") return source;
|
|
79
|
+
return pickPath(key, overrides, String(defaultValue));
|
|
80
|
+
}
|
|
81
|
+
function resolveBasePath(overrides) {
|
|
82
|
+
const defaultValue = `${WASM_CDN_BASE_URL}/${DEFAULT_WASM_VERSION}`;
|
|
83
|
+
if (!("basePath" in overrides) || overrides.basePath === void 0) return defaultValue;
|
|
84
|
+
const basePath = overrides.basePath;
|
|
85
|
+
if (typeof basePath !== "string" || isBlank(basePath) || isMalformedPath(basePath)) throw new Error("[Incode SDK] wasm.basePath is invalid.");
|
|
86
|
+
return basePath.trim();
|
|
87
|
+
}
|
|
88
|
+
/** Builds a WarmupConfig from a directory that mirrors the ml-wasm-kit CDN layout. */
|
|
89
|
+
function buildWasmConfigFromBasePath(basePath) {
|
|
90
|
+
const base = basePath.endsWith("/") ? basePath.slice(0, -1) : basePath;
|
|
91
|
+
return {
|
|
92
|
+
wasmPath: `${base}/webLib.wasm`,
|
|
93
|
+
wasmSimdPath: `${base}/webLibSimd.wasm`,
|
|
94
|
+
glueCodePath: `${base}/webLib.js`,
|
|
95
|
+
glueCodeSimdPath: `${base}/webLibSimd.js`,
|
|
96
|
+
modelsBasePath: `${base}/models`
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/** Builds the standard WarmupConfig from the Incode CDN. */
|
|
100
|
+
function buildDefaultWasmConfig() {
|
|
101
|
+
return buildWasmConfigFromBasePath(`${WASM_CDN_BASE_URL}/${DEFAULT_WASM_VERSION}`);
|
|
102
|
+
}
|
|
103
|
+
const BARCODE_ENHANCE_MODEL_FILE = WASM_MODEL_FILES.barcode;
|
|
104
|
+
/**
|
|
105
|
+
* URL of the lazily-loaded PDF417 barcode enhancement model (US Smart Capture).
|
|
106
|
+
* Derived from the resolved `modelsBasePath` so self-hosted / air-gapped
|
|
107
|
+
* deployments resolve it correctly, falling back to the CDN default. Loaded on
|
|
108
|
+
* demand via `IIdCaptureCapability.setBarcodeEnhancementModel` — deliberately
|
|
109
|
+
* NOT part of any warmup model bundle.
|
|
110
|
+
*/
|
|
111
|
+
function getBarcodeEnhanceModelUrl(modelsBasePath, variant = "current") {
|
|
112
|
+
const source = buildModelVariantSources(modelsBasePath ?? `${WASM_CDN_BASE_URL}/v2.14.50-post1/models`, BARCODE_ENHANCE_MODEL_FILE);
|
|
113
|
+
return typeof source === "string" ? source : source[variant];
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Merges optional WASM path overrides with CDN defaults. Explicit non-blank
|
|
117
|
+
* paths take precedence. Blank override strings log a warning and fall back to defaults.
|
|
118
|
+
*/
|
|
119
|
+
function resolveWasmConfig(overrides) {
|
|
120
|
+
if (!overrides) return buildDefaultWasmConfig();
|
|
121
|
+
const defaults = buildWasmConfigFromBasePath(resolveBasePath(overrides));
|
|
122
|
+
const resolvedWasmPath = pickSource("wasmPath", overrides, defaults.wasmPath);
|
|
123
|
+
const simdDefault = overrides.selfHosted ? resolvedWasmPath : defaults.wasmSimdPath;
|
|
124
|
+
const modelsDefault = defaults.modelsBasePath;
|
|
125
|
+
const resolvedWasmSimdPath = pickSource("wasmSimdPath", overrides, simdDefault);
|
|
126
|
+
const glueCodeSimdDefault = typeof resolvedWasmSimdPath === "string" ? deriveSiblingJsPath(resolvedWasmSimdPath) : defaults.glueCodeSimdPath;
|
|
127
|
+
const merged = {
|
|
128
|
+
wasmPath: resolvedWasmPath,
|
|
129
|
+
wasmSimdPath: resolvedWasmSimdPath,
|
|
130
|
+
glueCodePath: pickPath("glueCodePath", overrides, defaults.glueCodePath),
|
|
131
|
+
glueCodeSimdPath: pickPath("glueCodeSimdPath", overrides, glueCodeSimdDefault),
|
|
132
|
+
modelsBasePath: pickPath("modelsBasePath", overrides, modelsDefault),
|
|
133
|
+
useSimd: overrides.useSimd,
|
|
134
|
+
pipelines: overrides.pipelines,
|
|
135
|
+
pipelineModels: overrides.pipelineModels,
|
|
136
|
+
modelUrls: overrides.modelUrls,
|
|
137
|
+
legacyModelUrls: overrides.legacyModelUrls,
|
|
138
|
+
loadGlue: overrides.loadGlue,
|
|
139
|
+
loadGlueSimd: overrides.loadGlueSimd,
|
|
140
|
+
selfHosted: overrides.selfHosted
|
|
141
|
+
};
|
|
142
|
+
validateWasmPaths(merged);
|
|
143
|
+
return merged;
|
|
144
|
+
}
|
|
145
|
+
//#endregion
|
|
7
146
|
//#region ../infra/src/http/createApi.ts
|
|
8
147
|
var FetchHttpError = class extends Error {
|
|
9
148
|
constructor(status, statusText, url, method, headers, data) {
|
|
@@ -423,10 +562,18 @@ const createWasmApi = async (config) => {
|
|
|
423
562
|
* `httpClient.request()` pipeline as every other endpoint — header
|
|
424
563
|
* injection, encryption-state handling, default headers, timeout — instead
|
|
425
564
|
* of bypassing it via `executeWasmRequest` directly.
|
|
565
|
+
*
|
|
566
|
+
* Protected captures arrive with `ie === true`: the C++ `WebApi` already
|
|
567
|
+
* encrypted the body inline, and only the WASM `WebClient` can unwrap it. A
|
|
568
|
+
* plain fetch client would post the ciphertext as JSON and the backend
|
|
569
|
+
* answers 406. If the plain client is still installed at that point (the
|
|
570
|
+
* host called `setup()` without `wasm` and warmed WASM separately), swap to
|
|
571
|
+
* the WASM client first. The module is already loaded — the payload came
|
|
572
|
+
* out of it — so the swap only creates the `WebClient`.
|
|
426
573
|
*/
|
|
427
574
|
function bindWebApiTransport(client) {
|
|
428
575
|
return async (url, body, config) => {
|
|
429
|
-
const response = await client.request({
|
|
576
|
+
const response = await (config.ie === true && storedHttpConfig && !storedHttpConfig.isWasm ? await ensureWasmHttpClient() : client).request({
|
|
430
577
|
method: "POST",
|
|
431
578
|
url,
|
|
432
579
|
body,
|
|
@@ -445,7 +592,12 @@ function installClient(client) {
|
|
|
445
592
|
setClient(client);
|
|
446
593
|
setWebApiHttpTransport(bindWebApiTransport(client));
|
|
447
594
|
}
|
|
595
|
+
async function ensureWasmHttpClient() {
|
|
596
|
+
await upgradeToWasmHttpClient(resolveWasmConfig());
|
|
597
|
+
return getApi();
|
|
598
|
+
}
|
|
448
599
|
let storedHttpConfig;
|
|
600
|
+
let pendingUpgrade;
|
|
449
601
|
/** Reads the current HTTP-client config (or `undefined` if none installed). */
|
|
450
602
|
function getStoredHttpConfig() {
|
|
451
603
|
return storedHttpConfig;
|
|
@@ -502,19 +654,24 @@ async function installFreshHttpClient(apiURL, options, effectiveWasm, encryption
|
|
|
502
654
|
async function upgradeToWasmHttpClient(resolved) {
|
|
503
655
|
const stored = storedHttpConfig;
|
|
504
656
|
if (!stored || stored.isWasm) return;
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
657
|
+
pendingUpgrade ??= (async () => {
|
|
658
|
+
installClient(await createWasmApi({
|
|
659
|
+
apiURL: stored.apiURL,
|
|
660
|
+
customHeaders: stored.customHeaders,
|
|
661
|
+
timeout: stored.timeout,
|
|
662
|
+
wasm: resolved,
|
|
663
|
+
encryptionEnabled: stored.encryption.enabled,
|
|
664
|
+
mgf1: stored.encryption.mgf1,
|
|
665
|
+
isEncryptionEnabled: isHttpEncrypted
|
|
666
|
+
}));
|
|
667
|
+
storedHttpConfig = {
|
|
668
|
+
...stored,
|
|
669
|
+
isWasm: true
|
|
670
|
+
};
|
|
671
|
+
})().finally(() => {
|
|
672
|
+
pendingUpgrade = void 0;
|
|
673
|
+
});
|
|
674
|
+
return pendingUpgrade;
|
|
518
675
|
}
|
|
519
676
|
/**
|
|
520
677
|
* When `wantsEncryption` is true, wraps a call that triggers the in-binary
|
|
@@ -1320,7 +1477,7 @@ let cryptoProviderPromise = null;
|
|
|
1320
1477
|
* the service's prewarm).
|
|
1321
1478
|
*/
|
|
1322
1479
|
function loadDiagnosticsCryptoProvider() {
|
|
1323
|
-
cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-
|
|
1480
|
+
cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-5-MGxBk6.esm.js").then((module) => new module.BrowserDiagnosticsCryptoProvider());
|
|
1324
1481
|
return cryptoProviderPromise;
|
|
1325
1482
|
}
|
|
1326
1483
|
/**
|
|
@@ -1889,4 +2046,4 @@ function modulePosition(payload) {
|
|
|
1889
2046
|
return `${typeof moduleIndex === "number" ? ` index=${moduleIndex}` : ""}${typeof totalModules === "number" ? ` total=${totalModules}` : ""}`;
|
|
1890
2047
|
}
|
|
1891
2048
|
//#endregion
|
|
1892
|
-
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 };
|
|
2049
|
+
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,15 +1,15 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-C6_uuDz5.esm.js";
|
|
2
1
|
import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-COWDO2Xv.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-CAgj_Her.esm.js";
|
|
7
7
|
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
8
8
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
9
9
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
10
10
|
import { n as CameraCompositor, t as MultipartRecordingService } from "./multipartRecordingService-CuXLH4tK.esm.js";
|
|
11
11
|
import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-CpF2cBy6.esm.js";
|
|
12
|
-
import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-
|
|
12
|
+
import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-Dq9ffySJ.esm.js";
|
|
13
13
|
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BUe2uACW.esm.js";
|
|
14
14
|
//#region src/modules/video-selfie/videoSelfieWasm.ts
|
|
15
15
|
function warmupVideoSelfieWasm(config, steps = resolveVideoSelfieSteps(config)) {
|
package/dist/{videoSelfieCameraWarmer-DTw4oH_A.esm.js → videoSelfieCameraWarmer-Dq9ffySJ.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-CAgj_Her.esm.js";
|
|
5
5
|
import { a as requestCameraWithFallback, i as requestCameraAccess } from "./camera-sIa9ceW2.esm.js";
|
|
6
6
|
import { t as checkPermission } from "./permissionServices-Bj_fyWtv.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-DypXyX5c.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 { a as uploadSelfie, r as processFace, t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-UiQ46EBa.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-bznawUFX.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.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as WASM_MODEL_FILES, c as WasmPipeline, l as WasmSource, o as WasmGlueLoader, r as warmupWasm, s as WasmModelName, t as WarmupConfig } from "./warmup-Cis2p6O0.js";
|
|
2
|
-
import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-
|
|
2
|
+
import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-CLfBztP0.js";
|
|
3
3
|
//#region ../infra/src/wasm/wasmDefaults.d.ts
|
|
4
4
|
/** The WASM version bundled and tested with this SDK release. */
|
|
5
5
|
declare const DEFAULT_WASM_VERSION = "v2.14.50-post1";
|
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-B7baE-Wf.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { D as buildWasmConfigFromBasePath, E as buildDefaultWasmConfig, T as DEFAULT_WASM_VERSION, k as resolveWasmConfig } from "./trueSightService-DOiLWpRP.esm.js";
|
|
3
3
|
import { o as warmupWasm } from "./warmup-CUUnwYxe.esm.js";
|
|
4
|
+
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-COWDO2Xv.esm.js";
|
|
4
5
|
//#region src/defineWasm.ts
|
|
5
6
|
function requiredModels(pipelines) {
|
|
6
7
|
const models = /* @__PURE__ */ new Set();
|
package/dist/workflow.esm.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as trueSightLog } from "./trueSightService-DOiLWpRP.esm.js";
|
|
2
|
+
import { E as updateFeatureManagementUser } from "./feature-management-CZ-nMsqU.esm.js";
|
|
2
3
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { l as trueSightLog } from "./trueSightService-m6To_KWo.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-C9m14Xqj.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-4Pik-5MI.esm.js";
|
|
8
|
+
import { v as toEkybConfig } from "./flowServices-CAgj_Her.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-BuFLFuzz.esm.js";
|
|
11
11
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
12
|
-
import { r as electronicSignatureMachine } from "./electronicSignatureManager-
|
|
12
|
+
import { r as electronicSignatureMachine } from "./electronicSignatureManager-D_EKcYMu.esm.js";
|
|
13
13
|
import "./ae-signature.esm.js";
|
|
14
14
|
import { t as antifraudMachine } from "./antifraudStateMachine-DBeq47D2.esm.js";
|
|
15
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
15
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-BIFwZ10i.esm.js";
|
|
16
16
|
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-CxqS_nD-.esm.js";
|
|
17
17
|
import { t as consentMachine } from "./consentStateMachine-DTSfdGiW.esm.js";
|
|
18
18
|
import { t as curpValidationMachine } from "./curpValidationStateMachine-g5kMfuLj.esm.js";
|
|
19
19
|
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-DOQou6TW.esm.js";
|
|
20
20
|
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-C_8bQ3fw.esm.js";
|
|
21
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
22
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
21
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BZOa354n.esm.js";
|
|
22
|
+
import { t as ekybMachine } from "./ekybStateMachine-CsNFTbTv.esm.js";
|
|
23
23
|
import { t as ekycMachine } from "./ekycStateMachine-CshSNJhh.esm.js";
|
|
24
24
|
import { t as emailMachine } from "./emailStateMachine-Bc_6oIYw.esm.js";
|
|
25
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
26
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
25
|
+
import { t as selfieMachine } from "./selfieStateMachine-DPnxoVg_.esm.js";
|
|
26
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-Cx0T0ARJ.esm.js";
|
|
27
27
|
import { t as phoneMachine } from "./phoneStateMachine-CXdXufKg.esm.js";
|
|
28
28
|
import { t as watchlistMachine } from "./watchlistStateMachine-CBqk2w-h.esm.js";
|
|
29
29
|
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-CJ-MvUre.esm.js";
|
|
@@ -32,12 +32,12 @@ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DC5
|
|
|
32
32
|
import { t as idOcrStateMachine } from "./idOcrStateMachine-ClDEP-VI.esm.js";
|
|
33
33
|
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-CSWWgUTO.esm.js";
|
|
34
34
|
import { t as signatureMachine } from "./signatureStateMachine-ce_XMA3l.esm.js";
|
|
35
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
35
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-CQqZ5gcL.esm.js";
|
|
36
36
|
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CoaZOSTP.esm.js";
|
|
37
37
|
import { t as idVerificationMachine } from "./idVerificationStateMachine-DbDVIh9t.esm.js";
|
|
38
38
|
import { t as faceMatchMachine } from "./faceMatchStateMachine-mRIHQ3dA.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-tBWtQeo7.esm.js";
|
|
40
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-D22IPoPN.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-BUe2uACW.esm.js";
|