@incodetech/core 0.0.0-dev-20260921-33c2ed29 → 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.
Files changed (59) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-xGTAREHz.esm.js → BrowserDiagnosticsCryptoProvider-CvYfZMnv.esm.js} +1 -1
  2. package/dist/{FaceDetectionProvider-DN1HTSkP.esm.js → FaceDetectionProvider-wJI4vP3r.esm.js} +4 -4
  3. package/dist/ae-signature.esm.js +1 -1
  4. package/dist/{apiError-TkHnky_q.esm.js → apiError-3ys-wxoO.esm.js} +1 -1
  5. package/dist/authentication.esm.js +2 -2
  6. package/dist/{authenticationManager-CezSylnG.esm.js → authenticationManager-BmVfO0DC.esm.js} +3 -3
  7. package/dist/{authenticationStateMachine-DnVvWj26.esm.js → authenticationStateMachine-B_zFT_M5.esm.js} +2 -2
  8. package/dist/consent.d.ts +1 -1
  9. package/dist/{consentManager-DlA1jDLP.d.ts → consentManager-Cv_0QKLD.d.ts} +4 -4
  10. package/dist/{deepsightLoader-CQo9-n_6.esm.js → deepsightLoader-DYzT1EET.esm.js} +3 -3
  11. package/dist/dynamic-forms.esm.js +2 -2
  12. package/dist/{dynamicFormsManager-C25-9hqi.esm.js → dynamicFormsManager-DJbgNIHD.esm.js} +1 -1
  13. package/dist/{dynamicFormsStateMachine-DY-6tEu0.esm.js → dynamicFormsStateMachine-CHTg8pz2.esm.js} +1 -1
  14. package/dist/ekyb.esm.js +3 -3
  15. package/dist/{ekybManager-B2Vj5buD.esm.js → ekybManager-SVxvr7W4.esm.js} +1 -1
  16. package/dist/{ekybStateMachine-DOIxndmc.esm.js → ekybStateMachine-BMnvXDT5.esm.js} +1 -1
  17. package/dist/electronic-signature.esm.js +1 -1
  18. package/dist/{electronicSignatureManager-SKAbIbBb.esm.js → electronicSignatureManager-Bqpxd5ys.esm.js} +1 -1
  19. package/dist/extensibility.d.ts +2 -2
  20. package/dist/extensibility.esm.js +10 -10
  21. package/dist/{faceCaptureManagerFactory-CwW9CEgq.esm.js → faceCaptureManagerFactory-JiJf1zQt.esm.js} +1 -1
  22. package/dist/{faceCaptureSetup-BoBJhJTp.esm.js → faceCaptureSetup-atWN12Jp.esm.js} +3 -3
  23. package/dist/{feature-management-BT326X9U.esm.js → feature-management-B71OxR2_.esm.js} +1 -1
  24. package/dist/feature-management.esm.js +1 -1
  25. package/dist/flow.esm.js +3 -3
  26. package/dist/{flowCompletionService-Dpe15n-k.esm.js → flowCompletionService-fQozmpJp.esm.js} +1 -1
  27. package/dist/{flowServices-D05TxEdI.esm.js → flowServices-JMyiIoCs.esm.js} +4 -4
  28. package/dist/geolocation.esm.js +2 -2
  29. package/dist/{geolocationManager-CbXRJjnt.esm.js → geolocationManager-b4u5Q1A3.esm.js} +1 -1
  30. package/dist/{geolocationStateMachine-BPv0c4qI.esm.js → geolocationStateMachine-DyTxgOSt.esm.js} +1 -1
  31. package/dist/id-selfie-flow.esm.js +7 -7
  32. package/dist/id.esm.js +3 -3
  33. package/dist/{idCaptureDefaults-CD_yF2_H.esm.js → idCaptureDefaults-BvJQyo_A.esm.js} +1 -1
  34. package/dist/{idCaptureManager-BxQcHMeL.esm.js → idCaptureManager-CUOVyofI.esm.js} +3 -3
  35. package/dist/{idCaptureServices-BjNnJGb3.esm.js → idCaptureServices-4TMQgFDo.esm.js} +3 -3
  36. package/dist/{idCaptureStateMachine-jkXsKJgz.esm.js → idCaptureStateMachine-2S4_PA97.esm.js} +9 -9
  37. package/dist/index.d.ts +1 -1
  38. package/dist/index.esm.js +1 -1
  39. package/dist/mandatory-consent.d.ts +1 -1
  40. package/dist/{mandatoryConsentManager-CMAyZpNe.d.ts → mandatoryConsentManager-CTAa9lBQ.d.ts} +4 -4
  41. package/dist/personhood.esm.js +4 -4
  42. package/dist/qe-signature.esm.js +1 -1
  43. package/dist/{runChildModule-0X8KWdrU.esm.js → runChildModule-BL4Rk8ik.esm.js} +1 -1
  44. package/dist/{sdkVersion-D91tsaUy.esm.js → sdkVersion-Cysb10Yn.esm.js} +1 -1
  45. package/dist/selfie.esm.js +5 -5
  46. package/dist/{selfieManager-BwvfGm90.esm.js → selfieManager-DMwwPIKX.esm.js} +3 -3
  47. package/dist/{selfieStateMachine-C0CUhAg_.esm.js → selfieStateMachine-ydM6cuXP.esm.js} +2 -2
  48. package/dist/{session-ByvC2FyF.esm.js → session-vLvfp5DY.esm.js} +3 -3
  49. package/dist/session.esm.js +4 -4
  50. package/dist/{sessionInitializer-BpghxytN.esm.js → sessionInitializer-BDaCQKeI.esm.js} +3 -3
  51. package/dist/{setup-Cry_vKq0.d.ts → setup-CHHZ8BBM.d.ts} +2 -1
  52. package/dist/{setup-f_BLfVte.esm.js → setup-D8QyhVe3.esm.js} +8 -147
  53. package/dist/{trueSightService-7LLcmHwK.esm.js → trueSightService-BVrLJBui.esm.js} +176 -18
  54. package/dist/video-selfie.esm.js +4 -4
  55. package/dist/{videoSelfieCameraWarmer-CPqcnqCL.esm.js → videoSelfieCameraWarmer-2-PZRnLp.esm.js} +3 -3
  56. package/dist/wasm.d.ts +1 -1
  57. package/dist/wasm.esm.js +2 -1
  58. package/dist/workflow.esm.js +14 -14
  59. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-SKAbIbBb.esm.js";
1
+ import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-Bqpxd5ys.esm.js";
2
2
  //#region src/modules/qe-signature/index.ts
3
3
  function createQeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -1,5 +1,5 @@
1
+ import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-BVrLJBui.esm.js";
1
2
  import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
2
- import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-7LLcmHwK.esm.js";
3
3
  import { C as createEventBus } from "./events-ijlbX_Wx.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
5
5
  import { t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
@@ -1,4 +1,4 @@
1
1
  //#region src/internal/version/sdkVersion.ts
2
- const SDK_VERSION = "0.0.0-dev-20260921-33c2ed29";
2
+ const SDK_VERSION = "0.0.0-dev-20260921-e88426b0";
3
3
  //#endregion
4
4
  export { SDK_VERSION as t };
@@ -1,14 +1,14 @@
1
- import { l as BrowserStorageProvider } from "./setup-f_BLfVte.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
5
  import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
6
- import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-BoBJhJTp.esm.js";
7
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CwW9CEgq.esm.js";
6
+ import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-atWN12Jp.esm.js";
7
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-JiJf1zQt.esm.js";
8
8
  import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-BjoMVvya.esm.js";
9
9
  import { r as processFace } from "./selfieErrorUtils-yjRptLFi.esm.js";
10
- import { t as selfieMachine } from "./selfieStateMachine-C0CUhAg_.esm.js";
11
- import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-BwvfGm90.esm.js";
10
+ import { t as selfieMachine } from "./selfieStateMachine-ydM6cuXP.esm.js";
11
+ import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-DMwwPIKX.esm.js";
12
12
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BjzPjJ_p.esm.js";
13
13
  /**
14
14
  * Selfie state machine variant for the captureOnly flow. Shares the full base
@@ -1,9 +1,9 @@
1
- import { l as BrowserStorageProvider } from "./setup-f_BLfVte.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-CwW9CEgq.esm.js";
6
- import { t as selfieMachine } from "./selfieStateMachine-C0CUhAg_.esm.js";
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-BoBJhJTp.esm.js";
4
- import { c as isOnDeviceMode } from "./FaceDetectionProvider-DN1HTSkP.esm.js";
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 { g as noteSessionCreated, l as trueSightLog } from "./trueSightService-7LLcmHwK.esm.js";
3
- import "./sessionInitializer-BpghxytN.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-TkHnky_q.esm.js";
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
@@ -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-BpghxytN.esm.js";
4
- import { t as IncodeApiError } from "./apiError-TkHnky_q.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-ByvC2FyF.esm.js";
6
- import { n as getFinishStatus } from "./flowCompletionService-Dpe15n-k.esm.js";
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 { E as updateFeatureManagementUser } from "./feature-management-BT326X9U.esm.js";
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-7LLcmHwK.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-D91tsaUy.esm.js";
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";
@@ -547,7 +547,8 @@ declare function setWasmConfig(config: WasmConfig): void;
547
547
  /**
548
548
  * Initializes WasmUtilProvider with the stored WASM configuration.
549
549
  * Should be called after warmupWasm() completes when using conditional warmup.
550
- * This ensures image encryption works properly.
550
+ * Also upgrades the HTTP client so protected capture payloads are unwrapped
551
+ * by the native transport before upload.
551
552
  *
552
553
  * @param config - Optional WASM configuration. If not provided, uses the stored config from setWasmConfig().
553
554
  * @throws Error if no config is provided and none is stored
@@ -1,157 +1,16 @@
1
- import { f as deriveSiblingJsPath, p as WASM_MODEL_FILES, v as buildModelVariantSources } from "./wasmWebClient-DPPQlS-U.esm.js";
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-BT326X9U.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-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-7LLcmHwK.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-BpghxytN.esm.js";
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-D05TxEdI.esm.js";
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") {
@@ -776,7 +635,8 @@ function setWasmConfig(config) {
776
635
  /**
777
636
  * Initializes WasmUtilProvider with the stored WASM configuration.
778
637
  * Should be called after warmupWasm() completes when using conditional warmup.
779
- * This ensures image encryption works properly.
638
+ * Also upgrades the HTTP client so protected capture payloads are unwrapped
639
+ * by the native transport before upload.
780
640
  *
781
641
  * @param config - Optional WASM configuration. If not provided, uses the stored config from setWasmConfig().
782
642
  * @throws Error if no config is provided and none is stored
@@ -789,6 +649,7 @@ async function initializeWasmUtil(config) {
789
649
  ...resolved,
790
650
  pipelines: resolved.pipelines ? [...resolved.pipelines] : void 0
791
651
  });
652
+ await upgradeToWasmHttpClient$1(resolved);
792
653
  }
793
654
  /**
794
655
  * Warms additional WASM pipelines on demand, reusing the WASM config stored by
@@ -872,4 +733,4 @@ function reset() {
872
733
  resetTrueSight();
873
734
  }
874
735
  //#endregion
875
- export { resolveWasmConfigForPipelines as a, upgradeToWasmHttpClient as c, buildDefaultWasmConfig as d, buildWasmConfigFromBasePath as f, reset as i, BrowserStorageProvider as l, resolveWasmConfig as m, initializeWasmUtil as n, setWasmConfig as o, getBarcodeEnhanceModelUrl as p, isConfigured as r, setup as s, ensureWasmPipelines as t, DEFAULT_WASM_VERSION as u };
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-D91tsaUy.esm.js";
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
- installClient(await createWasmApi({
498
- apiURL: stored.apiURL,
499
- customHeaders: stored.customHeaders,
500
- timeout: stored.timeout,
501
- wasm: resolved,
502
- encryptionEnabled: stored.encryption.enabled,
503
- mgf1: stored.encryption.mgf1,
504
- isEncryptionEnabled: isHttpEncrypted
505
- }));
506
- storedHttpConfig = {
507
- ...stored,
508
- isWasm: true
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-xGTAREHz.esm.js").then((module) => new module.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 };
@@ -1,16 +1,16 @@
1
- import { t as ensureWasmPipelines } from "./setup-f_BLfVte.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-D05TxEdI.esm.js";
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-CD_yF2_H.esm.js";
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-CPqcnqCL.esm.js";
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)) {
@@ -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-D05TxEdI.esm.js";
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-DN1HTSkP.esm.js";
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-CD_yF2_H.esm.js";
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.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-BUPPRAA1.js";
2
- import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-Cry_vKq0.js";
2
+ import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-CHHZ8BBM.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-DPPQlS-U.esm.js";
2
- import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, d as buildDefaultWasmConfig, f as buildWasmConfigFromBasePath, m as resolveWasmConfig, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines, u as DEFAULT_WASM_VERSION } from "./setup-f_BLfVte.esm.js";
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();