@incodetech/core 0.0.0-dev-20260730-b6f75b5c → 0.0.0-dev-20260730-736ce582

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 (72) hide show
  1. package/LICENSE +15 -0
  2. package/dist/{BrowserStorageProvider-P6aUarE9.esm.js → BrowserStorageProvider-k-FDkC4W.esm.js} +21 -8
  3. package/dist/{BrowserVisibilityObserverProvider-sJclps4C.esm.js → BrowserVisibilityObserverProvider-BX1BiLDK.esm.js} +1 -7
  4. package/dist/{MotionSensorProvider-DYvM90IX.esm.js → MotionSensorProvider-DGiV77J_.esm.js} +13 -9
  5. package/dist/ae-signature.esm.js +1 -1
  6. package/dist/{apiError-CmiWmV4w.esm.js → apiError-B_0_EzO3.esm.js} +1 -1
  7. package/dist/authentication.esm.js +2 -2
  8. package/dist/{authenticationManager-DayOeBDg.esm.js → authenticationManager-6yroYg0F.esm.js} +4 -4
  9. package/dist/{authenticationStateMachine-DBHQGZBL.esm.js → authenticationStateMachine-CFq2MNDs.esm.js} +2 -2
  10. package/dist/camera.esm.js +1 -1
  11. package/dist/consent.d.ts +1 -1
  12. package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
  13. package/dist/{deepsightLoader-SsO-P01I.esm.js → deepsightLoader-qP-QfKV2.esm.js} +7 -11
  14. package/dist/document-capture.d.ts +1 -1
  15. package/dist/document-capture.esm.js +2 -2
  16. package/dist/{documentCaptureManager-DW9gy7WA.esm.js → documentCaptureManager-5shMxTaf.esm.js} +1 -1
  17. package/dist/{documentCaptureManager-pEqMY_Oo.d.ts → documentCaptureManager-trL8jFh6.d.ts} +1 -1
  18. package/dist/{documentCaptureStateMachine-D4VxzLoU.esm.js → documentCaptureStateMachine-LFVoDSmH.esm.js} +2 -2
  19. package/dist/dynamic-forms.esm.js +2 -2
  20. package/dist/{dynamicFormsManager-ByMMbwY6.esm.js → dynamicFormsManager-DLA5Tiwm.esm.js} +1 -1
  21. package/dist/{dynamicFormsStateMachine-ZEaJxpRV.esm.js → dynamicFormsStateMachine-C_VgTw7Q.esm.js} +1 -1
  22. package/dist/ekyb.esm.js +3 -3
  23. package/dist/{ekybManager-BPjkXLyj.esm.js → ekybManager-CdKKow2d.esm.js} +1 -1
  24. package/dist/{ekybStateMachine-N7MfpX6s.esm.js → ekybStateMachine-Bxy2xGs-.esm.js} +1 -1
  25. package/dist/electronic-signature.esm.js +1 -1
  26. package/dist/{electronicSignatureManager-QL8l86Ux.esm.js → electronicSignatureManager-DaIkBEGU.esm.js} +1 -1
  27. package/dist/extensibility.d.ts +11 -7
  28. package/dist/extensibility.esm.js +11 -11
  29. package/dist/{faceCaptureManagerFactory-BE0l8YFg.esm.js → faceCaptureManagerFactory-FWAbakgf.esm.js} +4 -3
  30. package/dist/{faceCaptureSetup-DBG0gDpN.esm.js → faceCaptureSetup-B5NQz4rP.esm.js} +4 -4
  31. package/dist/flow.esm.js +19 -6
  32. package/dist/{flowCompletionService-Dy0oAjRD.esm.js → flowCompletionService-BlbJd0p_.esm.js} +1 -1
  33. package/dist/{flowServices-biEHiMU-.esm.js → flowServices-CPqzhq7k.esm.js} +3 -3
  34. package/dist/geolocation.esm.js +2 -2
  35. package/dist/{geolocationManager-CIhIY_bC.esm.js → geolocationManager-0Nlh4v3P.esm.js} +1 -1
  36. package/dist/{geolocationStateMachine-Cq2zOQw_.esm.js → geolocationStateMachine-BnCvmNA0.esm.js} +1 -1
  37. package/dist/id-selfie-flow.esm.js +8 -8
  38. package/dist/id.esm.js +4 -4
  39. package/dist/{idCaptureDefaults-BDS43fFL.esm.js → idCaptureDefaults-DrQe0hWr.esm.js} +2 -2
  40. package/dist/{idCaptureManager-KvIzfVrS.esm.js → idCaptureManager-zqT1SpiL.esm.js} +5 -4
  41. package/dist/{idCaptureServices-BPeOtFwF.esm.js → idCaptureServices-DM3R1Go6.esm.js} +3 -3
  42. package/dist/{idCaptureStateMachine-B17h1-g_.esm.js → idCaptureStateMachine-BWPpgMYZ.esm.js} +10 -10
  43. package/dist/index.esm.js +1 -1
  44. package/dist/mandatory-consent.d.ts +1 -1
  45. package/dist/{mandatoryConsentManager-DyPzUmsZ.d.ts → mandatoryConsentManager-B29kR0XA.d.ts} +4 -4
  46. package/dist/{onDeviceFaceResults-BouICnNz.esm.js → onDeviceFaceResults-nTfxNMi0.esm.js} +4 -4
  47. package/dist/{permissionGuards-D0cdQjk6.esm.js → permissionGuards-KNkc71eN.esm.js} +1 -1
  48. package/dist/{permissionServices-GFikEK6S.esm.js → permissionServices-3UAjhmjw.esm.js} +2 -2
  49. package/dist/personhood.d.ts +10 -0
  50. package/dist/personhood.esm.js +15 -9
  51. package/dist/qe-signature.esm.js +1 -1
  52. package/dist/{recordingService-pbFHSzVH.esm.js → recordingService-DveFYqw-.esm.js} +1 -1
  53. package/dist/{runChildModule-D0nIFGVb.esm.js → runChildModule-D4abJYf4.esm.js} +1 -1
  54. package/dist/{WasmUtilProvider-D13sxEmA.esm.js → safeStorage-Ep56I-f_.esm.js} +43 -5
  55. package/dist/selfie.esm.js +6 -6
  56. package/dist/{selfieManager-DKb7jnVc.esm.js → selfieManager-DCkM0ke3.esm.js} +4 -4
  57. package/dist/{selfieStateMachine-CoYvYf6z.esm.js → selfieStateMachine-DPZEiQ1u.esm.js} +2 -2
  58. package/dist/{session-BbNVo2A3.esm.js → session-C6tzttgZ.esm.js} +4 -4
  59. package/dist/session.esm.js +4 -4
  60. package/dist/{sessionInitializer-BhOw69Ff.esm.js → sessionInitializer-Ct7kxkvH.esm.js} +16 -3
  61. package/dist/{setup-CKyz-AnP.esm.js → setup-ChdRXKRI.esm.js} +7 -7
  62. package/dist/trueSight-CTJr7npu.esm.js +1 -0
  63. package/dist/{trueSightService-CNe190ne.esm.js → trueSightService-Bx5X8T-y.esm.js} +1 -1
  64. package/dist/video-selfie.esm.js +4 -4
  65. package/dist/{videoSelfieCameraWarmer-BJjeeJJf.esm.js → videoSelfieCameraWarmer-BKR8mkxq.esm.js} +4 -4
  66. package/dist/wasm.d.ts +1 -1
  67. package/dist/wasm.esm.js +3 -3
  68. package/dist/{wasmDefaults-DJiEvV7f.esm.js → wasmDefaults-DTUrftxR.esm.js} +2 -2
  69. package/dist/wasmDsFlagSync-BqUCwLY8.esm.js +12 -0
  70. package/dist/workflow.esm.js +15 -15
  71. package/package.json +3 -2
  72. package/dist/trueSight-_gHgFjfa.esm.js +0 -1
package/LICENSE ADDED
@@ -0,0 +1,15 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2025-2026 Incode Technologies, Inc.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -1,18 +1,25 @@
1
+ import { t as resolveLocalStorage } from "./safeStorage-Ep56I-f_.esm.js";
1
2
  //#region ../infra/src/providers/browser/BrowserStorageProvider.ts
2
3
  /**
3
4
  * Browser-based storage provider wrapping localStorage.
4
5
  * Handles JSON serialization/deserialization automatically.
6
+ *
7
+ * Degrades silently when the host makes localStorage unreachable: reads return
8
+ * `null` and writes are no-ops. Deliberately quiet — hosts that harden against
9
+ * self-XSS by deleting the global would otherwise see a warning on every call.
5
10
  */
6
11
  var BrowserStorageProvider = class {
7
12
  /**
8
13
  * Retrieves a value from localStorage.
9
14
  * @param key - The storage key
10
- * @returns The stored value or null if not found
15
+ * @returns The stored value, or null if not found or storage is unavailable
11
16
  * @throws Error if stored value is invalid JSON
12
17
  */
13
18
  async get(key) {
19
+ const storage = resolveLocalStorage();
20
+ if (!storage) return null;
14
21
  try {
15
- const item = localStorage.getItem(key);
22
+ const item = storage.getItem(key);
16
23
  if (item === null) return null;
17
24
  return JSON.parse(item);
18
25
  } catch (error) {
@@ -21,15 +28,17 @@ var BrowserStorageProvider = class {
21
28
  }
22
29
  }
23
30
  /**
24
- * Stores a value in localStorage.
31
+ * Stores a value in localStorage. No-op when storage is unavailable.
25
32
  * @param key - The storage key
26
33
  * @param value - The value to store (will be serialized as JSON)
27
34
  * @throws Error if value cannot be serialized or quota is exceeded
28
35
  */
29
36
  async set(key, value) {
37
+ const storage = resolveLocalStorage();
38
+ if (!storage) return;
30
39
  try {
31
40
  const serialized = JSON.stringify(value);
32
- localStorage.setItem(key, serialized);
41
+ storage.setItem(key, serialized);
33
42
  } catch (error) {
34
43
  if ((error instanceof DOMException || error.name === "QuotaExceededError") && error.name === "QuotaExceededError") throw new Error(`Storage quota exceeded for key "${key}"`);
35
44
  if (error instanceof TypeError) throw new Error(`Failed to serialize value for key "${key}": ${error.message}`);
@@ -37,17 +46,21 @@ var BrowserStorageProvider = class {
37
46
  }
38
47
  }
39
48
  /**
40
- * Removes a value from localStorage.
49
+ * Removes a value from localStorage. No-op when storage is unavailable.
41
50
  * @param key - The storage key to remove
42
51
  */
43
52
  async remove(key) {
44
- localStorage.removeItem(key);
53
+ const storage = resolveLocalStorage();
54
+ if (!storage) return;
55
+ storage.removeItem(key);
45
56
  }
46
57
  /**
47
- * Clears all values from localStorage.
58
+ * Clears all values from localStorage. No-op when storage is unavailable.
48
59
  */
49
60
  async clear() {
50
- localStorage.clear();
61
+ const storage = resolveLocalStorage();
62
+ if (!storage) return;
63
+ storage.clear();
51
64
  }
52
65
  };
53
66
  //#endregion
@@ -1,9 +1,3 @@
1
- //#region ../infra/src/wasm/wasmDsFlagSync.ts
2
- function setWasmDsFlagSync(enabled) {
3
- if (typeof localStorage === "undefined") return;
4
- localStorage.setItem("ds", enabled ? "1" : "0");
5
- }
6
- //#endregion
7
1
  //#region ../infra/src/providers/browser/BrowserVisibilityObserverProvider.ts
8
2
  var BrowserVisibilityObserverProvider = class {
9
3
  isVisible() {
@@ -20,4 +14,4 @@ var BrowserVisibilityObserverProvider = class {
20
14
  }
21
15
  };
22
16
  //#endregion
23
- export { setWasmDsFlagSync as n, BrowserVisibilityObserverProvider as t };
17
+ export { BrowserVisibilityObserverProvider as t };
@@ -1,3 +1,4 @@
1
+ import { n as resolveSessionStorage } from "./safeStorage-Ep56I-f_.esm.js";
1
2
  //#region ../infra/src/providers/browser/MotionSensorProvider.ts
2
3
  const MOTION_PERMISSION_GRANTED_KEY = "motionSensorsPermissionsGranted";
3
4
  const MOTION_PERMISSION_DENIED_KEY = "motionSensorsPermissionsDenied";
@@ -6,8 +7,9 @@ var MotionSensorProvider = class MotionSensorProvider {
6
7
  return typeof DeviceMotionEvent !== "undefined" && typeof DeviceMotionEvent.requestPermission === "function";
7
8
  }
8
9
  static readSessionFlag(key) {
9
- if (typeof sessionStorage === "undefined") return false;
10
- return sessionStorage.getItem(key) === "true";
10
+ const storage = resolveSessionStorage();
11
+ if (!storage) return false;
12
+ return storage.getItem(key) === "true";
11
13
  }
12
14
  static hasMotionPermissionGrantedInSession() {
13
15
  return MotionSensorProvider.readSessionFlag(MOTION_PERMISSION_GRANTED_KEY);
@@ -114,15 +116,17 @@ var MotionSensorProvider = class MotionSensorProvider {
114
116
  return MotionSensorProvider.hasMotionPermissionDeniedInSession();
115
117
  }
116
118
  markMotionPermissionGrantedInSession() {
117
- if (typeof sessionStorage === "undefined") return;
118
- sessionStorage.setItem(MOTION_PERMISSION_GRANTED_KEY, String(true));
119
- sessionStorage.removeItem(MOTION_PERMISSION_DENIED_KEY);
120
- sessionStorage.setItem("motionSensorsPermissionsRequested", String(true));
119
+ const storage = resolveSessionStorage();
120
+ if (!storage) return;
121
+ storage.setItem(MOTION_PERMISSION_GRANTED_KEY, String(true));
122
+ storage.removeItem(MOTION_PERMISSION_DENIED_KEY);
123
+ storage.setItem("motionSensorsPermissionsRequested", String(true));
121
124
  }
122
125
  markMotionPermissionDeniedInSession() {
123
- if (typeof sessionStorage === "undefined") return;
124
- sessionStorage.setItem(MOTION_PERMISSION_DENIED_KEY, String(true));
125
- sessionStorage.removeItem(MOTION_PERMISSION_GRANTED_KEY);
126
+ const storage = resolveSessionStorage();
127
+ if (!storage) return;
128
+ storage.setItem(MOTION_PERMISSION_DENIED_KEY, String(true));
129
+ storage.removeItem(MOTION_PERMISSION_GRANTED_KEY);
126
130
  }
127
131
  syncSessionPermission() {
128
132
  if (!MotionSensorProvider.isIosMotionPermissionRequired()) {
@@ -1,4 +1,4 @@
1
- import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-QL8l86Ux.esm.js";
1
+ import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-DaIkBEGU.esm.js";
2
2
  //#region src/modules/ae-signature/index.ts
3
3
  function createAeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -1,4 +1,4 @@
1
- import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-CNe190ne.esm.js";
1
+ import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-Bx5X8T-y.esm.js";
2
2
  //#region src/internal/http/apiError.ts
3
3
  /**
4
4
  * Incode API error.
@@ -1,3 +1,3 @@
1
- import { t as authenticationMachine } from "./authenticationStateMachine-DBHQGZBL.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-DayOeBDg.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-CFq2MNDs.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-6yroYg0F.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
- import { t as WasmUtilProvider } from "./WasmUtilProvider-D13sxEmA.esm.js";
2
- import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
1
+ import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
+ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
3
3
  import { n as eventModuleNames } from "./events-ethtfu2b.esm.js";
4
4
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BE0l8YFg.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-DBHQGZBL.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-FWAbakgf.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-CFq2MNDs.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -3,8 +3,8 @@ import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
4
4
  import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
- import { t as faceCaptureMachine } from "./faceCaptureSetup-DBG0gDpN.esm.js";
7
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-BouICnNz.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-B5NQz4rP.esm.js";
7
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-nTfxNMi0.esm.js";
8
8
  import { t as getDeviceClass } from "./getDeviceClass-BGmoQmjj.esm.js";
9
9
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
10
10
  //#region src/modules/authentication/authenticationErrorUtils.ts
@@ -1,2 +1,2 @@
1
- import { i as requestPermission, t as checkPermission } from "./permissionServices-GFikEK6S.esm.js";
1
+ import { i as requestPermission, t as checkPermission } from "./permissionServices-3UAjhmjw.esm.js";
2
2
  export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
package/dist/consent.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-3Pbtj-RV.js";
1
+ import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-uhDPdU6i.js";
2
2
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -82,6 +82,10 @@ declare const consentMachine: StateMachine<ConsentContext, {
82
82
  type: "clearError";
83
83
  params: NonReducibleUnknown;
84
84
  };
85
+ resetContext: {
86
+ type: "resetContext";
87
+ params: NonReducibleUnknown;
88
+ };
85
89
  setConsentData: {
86
90
  type: "setConsentData";
87
91
  params: NonReducibleUnknown;
@@ -90,10 +94,6 @@ declare const consentMachine: StateMachine<ConsentContext, {
90
94
  type: "toggleCheckbox";
91
95
  params: NonReducibleUnknown;
92
96
  };
93
- resetContext: {
94
- type: "resetContext";
95
- params: NonReducibleUnknown;
96
- };
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
@@ -1,12 +1,13 @@
1
- import { t as WasmUtilProvider } from "./WasmUtilProvider-D13sxEmA.esm.js";
1
+ import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
2
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { l as trueSightLog } from "./trueSightService-CNe190ne.esm.js";
4
- import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-BhOw69Ff.esm.js";
5
- import "./trueSight-_gHgFjfa.esm.js";
3
+ import { l as trueSightLog } from "./trueSightService-Bx5X8T-y.esm.js";
4
+ import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-Ct7kxkvH.esm.js";
5
+ import "./trueSight-CTJr7npu.esm.js";
6
6
  import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
7
7
  import { t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
8
8
  import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
9
- import { t as MotionSensorProvider } from "./MotionSensorProvider-DYvM90IX.esm.js";
9
+ import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BqUCwLY8.esm.js";
10
+ import { t as MotionSensorProvider } from "./MotionSensorProvider-DGiV77J_.esm.js";
10
11
  import { a as stopCameraStream, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
11
12
  import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
12
13
  import { t as createHiddenVideoElement } from "./video-BtSWtHy1.esm.js";
@@ -265,11 +266,6 @@ var VisibilityProvider = class {
265
266
  }
266
267
  };
267
268
  //#endregion
268
- //#region src/internal/deepsight/wasmDsFlag.ts
269
- async function setWasmDsFlag(storage, enabled) {
270
- await storage.set("ds", enabled ? 1 : 0);
271
- }
272
- //#endregion
273
269
  //#region src/internal/deepsight/deepsightLoader.ts
274
270
  const SDK_VERSION = "2.0.0";
275
271
  async function loadDeepsightSession(options) {
@@ -281,7 +277,7 @@ async function loadDeepsightSession(options) {
281
277
  }
282
278
  }
283
279
  async function loadDeepsightSessionInternal(options) {
284
- await setWasmDsFlag(options.storage, options.ds === true);
280
+ setWasmDsFlagSync(options.ds === true);
285
281
  const wasmUtil = await WasmUtilProvider.getInstance();
286
282
  const visibility = new VisibilityProvider();
287
283
  const browserEnv = new BrowserEnvironmentProvider();
@@ -1,3 +1,3 @@
1
1
  import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType } from "./types-B4BObr_7.js";
2
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-pEqMY_Oo.js";
2
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-trL8jFh6.js";
3
3
  export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
@@ -1,3 +1,3 @@
1
- import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-D4VxzLoU.esm.js";
2
- import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-DW9gy7WA.esm.js";
1
+ import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-LFVoDSmH.esm.js";
2
+ import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-5shMxTaf.esm.js";
3
3
  export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ethtfu2b.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-D4VxzLoU.esm.js";
4
+ import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-LFVoDSmH.esm.js";
5
5
  //#region src/modules/document-capture/documentCaptureActor.ts
6
6
  function createDocumentCaptureActor(options) {
7
7
  return createActor(documentCaptureMachine, { input: { config: options.config } }).start();
@@ -251,7 +251,7 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
251
251
  type: "fileSizeOkForNonGallery";
252
252
  params: unknown;
253
253
  };
254
- }>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "capturing" | "tutorial" | "preview" | "failure" | "nextPage" | "finalizing" | {
254
+ }>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "capturing" | "failure" | "tutorial" | "preview" | "nextPage" | "finalizing" | {
255
255
  permissions: "idle" | "denied" | "waitingForUser" | "requesting" | "learnMore";
256
256
  }, string, DocumentCaptureInput, NonReducibleUnknown, EventObject, MetaObject, {
257
257
  readonly id: "documentCapture";
@@ -2,10 +2,10 @@ import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
3
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
- import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-GFikEK6S.esm.js";
5
+ import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-3UAjhmjw.esm.js";
6
6
  import { a as stopCameraStream } from "./camera-BmFEyPP_.esm.js";
7
7
  import { n as getBackCameraStream } from "./backCameraStream-BqiXcU28.esm.js";
8
- import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-D0cdQjk6.esm.js";
8
+ import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-KNkc71eN.esm.js";
9
9
  //#region src/modules/document-capture/types.ts
10
10
  const PROCESSING_TYPE_MAP = {
11
11
  processV5CLogbook: "v5cMultiPageLogbook",
@@ -1,3 +1,3 @@
1
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-ZEaJxpRV.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-ByMMbwY6.esm.js";
1
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-C_VgTw7Q.esm.js";
2
+ import { t as createDynamicFormsManager } from "./dynamicFormsManager-DLA5Tiwm.esm.js";
3
3
  export { createDynamicFormsManager, dynamicFormsMachine };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ethtfu2b.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-ZEaJxpRV.esm.js";
4
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-C_VgTw7Q.esm.js";
5
5
  //#region src/modules/dynamic-forms/dynamicFormsActor.ts
6
6
  function createDynamicFormsActor(options) {
7
7
  return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
- import { r as toIncodeApiError, t as IncodeApiError } from "./apiError-CmiWmV4w.esm.js";
3
+ import { r as toIncodeApiError, t as IncodeApiError } from "./apiError-B_0_EzO3.esm.js";
4
4
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
6
  import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
package/dist/ekyb.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-biEHiMU-.esm.js";
2
- import { t as ekybMachine } from "./ekybStateMachine-N7MfpX6s.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-BPjkXLyj.esm.js";
1
+ import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-CPqzhq7k.esm.js";
2
+ import { t as ekybMachine } from "./ekybStateMachine-Bxy2xGs-.esm.js";
3
+ import { t as createEkybManager } from "./ekybManager-CdKKow2d.esm.js";
4
4
  export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ethtfu2b.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as ekybMachine } from "./ekybStateMachine-N7MfpX6s.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-Bxy2xGs-.esm.js";
5
5
  //#region src/modules/ekyb/ekybActor.ts
6
6
  /**
7
7
  * Creates and starts an eKYB actor.
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
- import { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-biEHiMU-.esm.js";
3
+ import { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-CPqzhq7k.esm.js";
4
4
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
6
  import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DQyrvDQj.esm.js";
@@ -1,2 +1,2 @@
1
- import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, o as getConsentKeys, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-QL8l86Ux.esm.js";
1
+ import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, o as getConsentKeys, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-DaIkBEGU.esm.js";
2
2
  export { AE_CONSENT_KEYS, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -2,7 +2,7 @@ import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ethtfu2b.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
5
- import { r as toIncodeApiError } from "./apiError-CmiWmV4w.esm.js";
5
+ import { r as toIncodeApiError } from "./apiError-B_0_EzO3.esm.js";
6
6
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
7
7
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
8
8
  import { t as externalFetch } from "./externalFetch-BKBThAUC.esm.js";
@@ -9,10 +9,10 @@ import { n as BaseWasmProvider } from "./FaceDetectionProvider-Mh6q3EbA.js";
9
9
  import { c as VirtualCameraCheckOutput, l as WasmUtilConfig, s as IWasmUtilCapability } from "./types-Hmd7U0JA.js";
10
10
  import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-tMxWiUk6.js";
11
11
  import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-Y2_MuGXy.js";
12
- import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-3Pbtj-RV.js";
12
+ import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-uhDPdU6i.js";
13
13
  import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
14
14
  import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-DVGr7Fq7.js";
15
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-pEqMY_Oo.js";
15
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-trL8jFh6.js";
16
16
  import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-fhK0yINk.js";
17
17
  import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-Dzswb_b8.js";
18
18
  import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
@@ -23,7 +23,7 @@ import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t a
23
23
  import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DLXef90v.js";
24
24
  import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-v2TH5g7e.js";
25
25
  import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
26
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-DyPzUmsZ.js";
26
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-B29kR0XA.js";
27
27
  import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-DXc_xRN7.js";
28
28
  import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-BD2PvT5B.js";
29
29
  import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-Cz744E5S.js";
@@ -50,29 +50,33 @@ type AuthenticationUploadResponse = {
50
50
  /**
51
51
  * Browser-based storage provider wrapping localStorage.
52
52
  * Handles JSON serialization/deserialization automatically.
53
+ *
54
+ * Degrades silently when the host makes localStorage unreachable: reads return
55
+ * `null` and writes are no-ops. Deliberately quiet — hosts that harden against
56
+ * self-XSS by deleting the global would otherwise see a warning on every call.
53
57
  */
54
58
  declare class BrowserStorageProvider implements IStorageCapability {
55
59
  /**
56
60
  * Retrieves a value from localStorage.
57
61
  * @param key - The storage key
58
- * @returns The stored value or null if not found
62
+ * @returns The stored value, or null if not found or storage is unavailable
59
63
  * @throws Error if stored value is invalid JSON
60
64
  */
61
65
  get<T>(key: string): Promise<T | null>;
62
66
  /**
63
- * Stores a value in localStorage.
67
+ * Stores a value in localStorage. No-op when storage is unavailable.
64
68
  * @param key - The storage key
65
69
  * @param value - The value to store (will be serialized as JSON)
66
70
  * @throws Error if value cannot be serialized or quota is exceeded
67
71
  */
68
72
  set<T>(key: string, value: T): Promise<void>;
69
73
  /**
70
- * Removes a value from localStorage.
74
+ * Removes a value from localStorage. No-op when storage is unavailable.
71
75
  * @param key - The storage key to remove
72
76
  */
73
77
  remove(key: string): Promise<void>;
74
78
  /**
75
- * Clears all values from localStorage.
79
+ * Clears all values from localStorage. No-op when storage is unavailable.
76
80
  */
77
81
  clear(): Promise<void>;
78
82
  }
@@ -1,21 +1,21 @@
1
- import { t as WasmUtilProvider } from "./WasmUtilProvider-D13sxEmA.esm.js";
2
- import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
3
- import { _ as getDeviceFingerprintInfo, m as getFingerprint } from "./sessionInitializer-BhOw69Ff.esm.js";
1
+ import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
+ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
3
+ import { _ as getDeviceFingerprintInfo, m as getFingerprint } from "./sessionInitializer-Ct7kxkvH.esm.js";
4
4
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
6
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-C4_d-1a0.esm.js";
7
- import { t as faceCaptureMachine } from "./faceCaptureSetup-DBG0gDpN.esm.js";
8
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-DayOeBDg.esm.js";
7
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-B5NQz4rP.esm.js";
8
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-6yroYg0F.esm.js";
9
9
  import { n as createConsentManagerFromActor } from "./consentManager-lG6fCXOk.esm.js";
10
10
  import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-B5bnUpSo.esm.js";
11
11
  import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-CYkSBXCF.esm.js";
12
- import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-DW9gy7WA.esm.js";
13
- import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-ByMMbwY6.esm.js";
14
- import { n as createEkybManagerFromActor } from "./ekybManager-BPjkXLyj.esm.js";
12
+ import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-5shMxTaf.esm.js";
13
+ import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-DLA5Tiwm.esm.js";
14
+ import { n as createEkybManagerFromActor } from "./ekybManager-CdKKow2d.esm.js";
15
15
  import { n as createEkycManagerFromActor } from "./ekycManager-BnPKaiV_.esm.js";
16
16
  import { n as createEmailManagerFromActor } from "./emailManager-D-3pYOas.esm.js";
17
- import { n as createSelfieManagerFromActor } from "./selfieManager-DKb7jnVc.esm.js";
18
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-KvIzfVrS.esm.js";
17
+ import { n as createSelfieManagerFromActor } from "./selfieManager-DCkM0ke3.esm.js";
18
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-zqT1SpiL.esm.js";
19
19
  import { n as createPhoneManagerFromActor } from "./phoneManager-SONkmpec.esm.js";
20
20
  import { n as createWatchlistManagerFromActor } from "./watchlistManager-QakKGrF0.esm.js";
21
21
  import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-CUVKNTFa.esm.js";
@@ -23,7 +23,7 @@ import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonMan
23
23
  import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentManager-CFd276xc.esm.js";
24
24
  import { n as createIdOcrManagerFromActor } from "./idOcrManager-DWGed-91.esm.js";
25
25
  import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-B7EYFwY_.esm.js";
26
- import { n as createGeolocationManagerFromActor } from "./geolocationManager-CIhIY_bC.esm.js";
26
+ import { n as createGeolocationManagerFromActor } from "./geolocationManager-0Nlh4v3P.esm.js";
27
27
  import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-W8v-boCx.esm.js";
28
28
  import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-Dnp-edw5.esm.js";
29
29
  export { BrowserStorageProvider, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createGeolocationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, createWatchlistManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
@@ -1,9 +1,10 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-ethtfu2b.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { n as concealmentToAvatar } from "./faceCaptureSetup-DBG0gDpN.esm.js";
5
- import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
6
- import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-GFikEK6S.esm.js";
4
+ import { n as concealmentToAvatar } from "./faceCaptureSetup-B5NQz4rP.esm.js";
5
+ import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BqUCwLY8.esm.js";
6
+ import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BX1BiLDK.esm.js";
7
+ import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-3UAjhmjw.esm.js";
7
8
  //#region src/internal/faceCapture/faceCaptureManagerFactory.ts
8
9
  function getPermissionStatus(snapshot) {
9
10
  if (!snapshot.matches("permissions")) return;
@@ -1,14 +1,14 @@
1
1
  import { r as getToken } from "./api-Bx3gKW_y.esm.js";
2
2
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
3
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
4
- import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-GFikEK6S.esm.js";
5
- import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-BouICnNz.esm.js";
4
+ import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-3UAjhmjw.esm.js";
5
+ import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-nTfxNMi0.esm.js";
6
6
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
7
7
  import { t as createFaceAvatar } from "./createFaceAvatar-x5aaJwVM.esm.js";
8
8
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
9
- import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-D0cdQjk6.esm.js";
9
+ import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-KNkc71eN.esm.js";
10
10
  import { t as flagFaceManualReview } from "./manualReviewService-D4IkipnN.esm.js";
11
- import { n as preloadOpenViduProvider, t as createRecordingService } from "./recordingService-pbFHSzVH.esm.js";
11
+ import { n as preloadOpenViduProvider, t as createRecordingService } from "./recordingService-DveFYqw-.esm.js";
12
12
  //#region src/internal/avatar/concealment.ts
13
13
  /**
14
14
  * Maps a backend concealment option to the internal avatar flags. `OPTION_NONE`
package/dist/flow.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { v as addEvent } from "./events-ethtfu2b.esm.js";
2
- import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-biEHiMU-.esm.js";
2
+ import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-CPqzhq7k.esm.js";
3
3
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
- import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-Dy0oAjRD.esm.js";
6
- import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-D0nIFGVb.esm.js";
5
+ import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-BlbJd0p_.esm.js";
6
+ import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-D4abJYf4.esm.js";
7
7
  //#region src/modules/flow/noOpFlowModuleMachine.ts
8
8
  const noOpFlowModuleMachine = setup({}).createMachine({
9
9
  id: "noOpFlowModule",
@@ -12,6 +12,19 @@ const noOpFlowModuleMachine = setup({}).createMachine({
12
12
  });
13
13
  //#endregion
14
14
  //#region src/modules/flow/flowStateMachine.ts
15
+ /**
16
+ * Flow-level `ds` (Deepsight) lives on the flow, not on the module, so it has
17
+ * to be merged into every module config this machine hands out — otherwise the
18
+ * flag never reaches `loadDeepsightSession` and Deepsight is silently disabled
19
+ * for the whole flow. Mirrors `getModuleConfig` in
20
+ * `orchestratedFlowStateMachine`.
21
+ */
22
+ function withFlowDsFlag(module, flow) {
23
+ return {
24
+ ...module?.configuration,
25
+ ds: flow?.ds
26
+ };
27
+ }
15
28
  const flowMachine = setup({
16
29
  types: {
17
30
  context: {},
@@ -38,7 +51,7 @@ const flowMachine = setup({
38
51
  steps: (flow.flowModules ?? []).map((m) => m.key),
39
52
  currentStepIndex: (flow.flowModules ?? []).length > 0 ? 0 : -1,
40
53
  currentStep: flow.flowModules?.[0]?.key,
41
- config: flow.flowModules?.[0]?.configuration
54
+ config: withFlowDsFlag(flow.flowModules?.[0], flow)
42
55
  };
43
56
  }),
44
57
  setError: assign(({ event }) => ({ error: String(event.error) })),
@@ -48,7 +61,7 @@ const flowMachine = setup({
48
61
  return {
49
62
  currentStepIndex: nextIndex,
50
63
  currentStep: module?.key,
51
- config: module?.configuration
64
+ config: withFlowDsFlag(module, context.flow)
52
65
  };
53
66
  }),
54
67
  decrementStep: assign(({ context }) => {
@@ -57,7 +70,7 @@ const flowMachine = setup({
57
70
  return {
58
71
  currentStepIndex: prevIndex,
59
72
  currentStep: module?.key,
60
- config: module?.configuration
73
+ config: withFlowDsFlag(module, context.flow)
61
74
  };
62
75
  })
63
76
  },
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
- import { r as toIncodeApiError } from "./apiError-CmiWmV4w.esm.js";
3
+ import { r as toIncodeApiError } from "./apiError-B_0_EzO3.esm.js";
4
4
  //#region src/modules/flow/flowCompletionService.ts
5
5
  const getFinishStatus = async (flowId, signal) => {
6
6
  const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;