@incodetech/core 0.0.0-dev-20260408-a355630 → 0.0.0-dev-20260409-09dfd52

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 (134) hide show
  1. package/dist/BrowserStorageProvider-CXaS5Ooj.esm.js +55 -0
  2. package/dist/{OpenViduRecordingProvider-Bn2meybK.esm.js → OpenViduRecordingProvider-D_cVAwYQ.esm.js} +1 -1
  3. package/dist/{WasmUtilProvider-BpZSvZbg.esm.js → WasmUtilProvider-mWSXzp7b.esm.js} +1 -1
  4. package/dist/{addressSearch-DOFI7lwy.esm.js → addressSearch-C26OZIx0.esm.js} +4 -4
  5. package/dist/antifraud.d.ts +1 -1
  6. package/dist/antifraud.esm.js +4 -37
  7. package/dist/antifraudStateMachine-B74mO8vr.esm.js +39 -0
  8. package/dist/authentication.d.ts +11 -11
  9. package/dist/authentication.esm.js +22 -19
  10. package/dist/authenticationManager-BBQHippG.esm.js +67 -0
  11. package/dist/{authenticationManager-C2mk36yK.d.ts → authenticationManager-DOTo1EYF.d.ts} +2 -2
  12. package/dist/{authenticationManager-C7dL_avf.esm.js → authenticationStateMachine-DCJ0ArAt.esm.js} +7 -67
  13. package/dist/{backCameraStream-tabTmwDS.esm.js → backCameraStream-D9g2wyil.esm.js} +3 -3
  14. package/dist/camera.d.ts +1 -1
  15. package/dist/camera.esm.js +3 -3
  16. package/dist/consent.d.ts +49 -49
  17. package/dist/consent.esm.js +4 -149
  18. package/dist/consentStateMachine-DIdJXJW0.esm.js +151 -0
  19. package/dist/cross-document-data-match.d.ts +1 -1
  20. package/dist/cross-document-data-match.esm.js +4 -4
  21. package/dist/curp-validation.d.ts +5 -5
  22. package/dist/curp-validation.esm.js +4 -417
  23. package/dist/curpValidationStateMachine-Dp5WB6__.esm.js +419 -0
  24. package/dist/{deepsightLoader-Cj6SyUQ-.esm.js → deepsightLoader-CaULV07H.esm.js} +10 -10
  25. package/dist/{deepsightService-ByD6uIs7.d.ts → deepsightService-S-tU77m-.d.ts} +2 -2
  26. package/dist/{deepsightService-BjgXl5hs.esm.js → deepsightService-rPGLH8Xp.esm.js} +5 -5
  27. package/dist/device.esm.js +3 -3
  28. package/dist/document-capture.d.ts +75 -73
  29. package/dist/document-capture.esm.js +8 -403
  30. package/dist/document-upload.d.ts +50 -50
  31. package/dist/document-upload.esm.js +7 -7
  32. package/dist/documentCaptureStateMachine-ByYOCKz5.esm.js +403 -0
  33. package/dist/ekyb.d.ts +3 -3
  34. package/dist/ekyb.esm.js +10 -655
  35. package/dist/ekybStateMachine-DRku_YmR.esm.js +653 -0
  36. package/dist/ekyc.d.ts +3 -3
  37. package/dist/ekyc.esm.js +6 -10614
  38. package/dist/ekycStateMachine-CSWaaWVl.esm.js +10615 -0
  39. package/dist/email.d.ts +3 -3
  40. package/dist/email.esm.js +6 -5
  41. package/dist/{emailManager-CU_hzrsl.d.ts → emailManager-D6CHM2QO.d.ts} +4 -3
  42. package/dist/emailManager-DByjyeY8.esm.js +238 -0
  43. package/dist/{emailManager-_9R4vm6g.esm.js → emailStateMachine-BoIkeCw5.esm.js} +6 -239
  44. package/dist/{events-DlHrOIRc.esm.js → events-W91zLpx4.esm.js} +5 -1
  45. package/dist/events.esm.js +2 -2
  46. package/dist/extensibility.d.ts +15 -15
  47. package/dist/extensibility.esm.js +33 -26
  48. package/dist/face-match.d.ts +7 -6
  49. package/dist/face-match.esm.js +8 -129
  50. package/dist/faceCaptureManagerFactory-Bspg2Tyf.esm.js +117 -0
  51. package/dist/{faceCaptureManagerFactory-Da_-ohdg.d.ts → faceCaptureManagerFactory-P2yy30KU.d.ts} +8 -8
  52. package/dist/{faceCaptureSetup-CaVWkjvE.esm.js → faceCaptureSetup-CQevz86q.esm.js} +5 -119
  53. package/dist/faceMatchStateMachine-CLterVEC.esm.js +127 -0
  54. package/dist/flow.d.ts +8 -13
  55. package/dist/flow.esm.js +10 -29
  56. package/dist/{flowCompletionService-B5JemmC6.esm.js → flowCompletionService-DZSDUXus.esm.js} +2 -2
  57. package/dist/{flowServices-p22wrYPf.esm.js → flowServices-YATk0fgY.esm.js} +3 -3
  58. package/dist/geolocation.d.ts +7 -6
  59. package/dist/geolocation.esm.js +7 -105
  60. package/dist/geolocationStateMachine-CRRUCl9K.esm.js +105 -0
  61. package/dist/{getDeviceClass-DEzz4cmY.esm.js → getDeviceClass-DBF-ExLR.esm.js} +1 -1
  62. package/dist/government-validation.d.ts +2 -2
  63. package/dist/government-validation.esm.js +5 -269
  64. package/dist/governmentValidationStateMachine-C_iPX9VE.esm.js +271 -0
  65. package/dist/http.esm.js +1 -1
  66. package/dist/id.d.ts +10 -10
  67. package/dist/id.esm.js +22 -20
  68. package/dist/idCaptureManager-CJfatzuY.esm.js +335 -0
  69. package/dist/{idCaptureManager-CV08v1e3.d.ts → idCaptureManager-CbZvdr9y.d.ts} +7 -7
  70. package/dist/{idCaptureManager-dyZzKv8L.esm.js → idCaptureStateMachine-gf-Q9piu.esm.js} +17 -346
  71. package/dist/index.d.ts +2 -2
  72. package/dist/index.esm.js +8 -8
  73. package/dist/{lib-Bavz2qmt.esm.js → lib-BzVJ-zxG.esm.js} +1 -1
  74. package/dist/mandatory-consent.d.ts +58 -58
  75. package/dist/mandatory-consent.esm.js +4 -124
  76. package/dist/mandatoryConsentStateMachine-BZNBJ1fK.esm.js +126 -0
  77. package/dist/{openviduLazy-vhrVZCr_.esm.js → openviduLazy-CLg_-u0m.esm.js} +2 -2
  78. package/dist/openviduLazy-rFXBtZVZ.esm.js +3 -0
  79. package/dist/{permissionServices-Cskq32Yd.esm.js → permissionServices-Cisv73eQ.esm.js} +2 -2
  80. package/dist/phone.d.ts +3 -3
  81. package/dist/phone.esm.js +6 -5
  82. package/dist/phoneManager-DhC4obPF.esm.js +258 -0
  83. package/dist/{phoneManager-ulJuGvJ8.d.ts → phoneManager-Zwr-qCnC.d.ts} +2 -2
  84. package/dist/{phoneManager-DerdUfd4.esm.js → phoneStateMachine-Cc_w4tC0.esm.js} +5 -258
  85. package/dist/{recordingService-483wQ6kR.esm.js → recordingService-CCfxUY7-.esm.js} +14 -68
  86. package/dist/redirect-to-mobile.d.ts +2 -2
  87. package/dist/redirect-to-mobile.esm.js +5 -247
  88. package/dist/redirectToMobileStateMachine-vOe27Ufw.esm.js +249 -0
  89. package/dist/runChildModule-DVC4JEjp.esm.js +27 -0
  90. package/dist/selfie.d.ts +11 -11
  91. package/dist/selfie.esm.js +22 -19
  92. package/dist/selfieManager-CorEST5h.esm.js +60 -0
  93. package/dist/{selfieManager-DCRP7X75.d.ts → selfieManager-DNwfxieF.d.ts} +2 -2
  94. package/dist/selfieStateMachine-3b19ON1z.esm.js +56 -0
  95. package/dist/{session-CUh77zj3.esm.js → session-B_rKSRql.esm.js} +4 -4
  96. package/dist/session.d.ts +1 -1
  97. package/dist/session.esm.js +6 -6
  98. package/dist/{setup-DpHakxsC.d.ts → setup-BYqwVLiv.d.ts} +1 -1
  99. package/dist/{setup-XpxfZgKn.esm.js → setup-DLvhsDol.esm.js} +6 -5
  100. package/dist/signature.d.ts +4 -3
  101. package/dist/signature.esm.js +6 -189
  102. package/dist/signatureStateMachine-CU92zCXU.esm.js +189 -0
  103. package/dist/{stats-DHDoqSBV.esm.js → stats-gFD2351t.esm.js} +1 -1
  104. package/dist/stats.esm.js +2 -2
  105. package/dist/{types-2OPf1pyv.d.ts → types-CYJ0Ish6.d.ts} +1 -1
  106. package/dist/types-CjsEZRcz.d.ts +35 -0
  107. package/dist/{types-CVJVQ7fp.d.ts → types-DU8HmI5U.d.ts} +1 -1
  108. package/dist/wasm.d.ts +2 -2
  109. package/dist/wasm.esm.js +8 -8
  110. package/dist/workflow.d.ts +813 -0
  111. package/dist/workflow.esm.js +600 -0
  112. package/package.json +5 -1
  113. package/dist/openviduLazy-BIPHozOu.esm.js +0 -3
  114. package/dist/selfieManager-DeOcNel4.esm.js +0 -110
  115. /package/dist/{Actor-Ba71-_30.d.ts → Actor-DbWH1K6E.d.ts} +0 -0
  116. /package/dist/{BaseWasmProvider-D-s_6M5H.esm.js → BaseWasmProvider-DoYDYH1z.esm.js} +0 -0
  117. /package/dist/{BrowserEnvironmentProvider-DaHeLJQw.esm.js → BrowserEnvironmentProvider-BtKLxTx4.esm.js} +0 -0
  118. /package/dist/{BrowserTimerProvider-BhD2MlHg.esm.js → BrowserTimerProvider-v7bpbrAk.esm.js} +0 -0
  119. /package/dist/{ITimerCapability-oixwa6nj.esm.js → ITimerCapability-BZO_FsCo.esm.js} +0 -0
  120. /package/dist/{Manager-BN2g_I8W.d.ts → Manager-DcPMRgTm.d.ts} +0 -0
  121. /package/dist/{MotionSensorProvider-CodM3e0E.esm.js → MotionSensorProvider-D90R4qwV.esm.js} +0 -0
  122. /package/dist/{StateMachine-BoJsfMvg.d.ts → StateMachine-BBuIgsHT.d.ts} +0 -0
  123. /package/dist/{api-DzpnV6O7.esm.js → api-aa9Mx20l.esm.js} +0 -0
  124. /package/dist/{browserSimulation-B4ubb2OL.esm.js → browserSimulation-DFqGKQAD.esm.js} +0 -0
  125. /package/dist/{camera-1eeGnAaL.d.ts → camera-DATT31my.d.ts} +0 -0
  126. /package/dist/{camera-DmkFpf5N.esm.js → camera-DpPQS_-5.esm.js} +0 -0
  127. /package/dist/{chunk-DsxENsBR.esm.js → chunk-YGHKo4MY.esm.js} +0 -0
  128. /package/dist/{displayErrors-BZLX7idb.d.ts → displayErrors-xrg0ejaS.d.ts} +0 -0
  129. /package/dist/{flowCompletionService-D-3YCHyO.d.ts → flowCompletionService-gxt5reFV.d.ts} +0 -0
  130. /package/dist/{getBrowser-Dtyt9J_h.esm.js → getBrowser-DCcD7H-M.esm.js} +0 -0
  131. /package/dist/{platform-Dv7a2fv-.esm.js → platform-DctkySJU.esm.js} +0 -0
  132. /package/dist/{types-D_QfFKxT.d.ts → types-CIjb0FKu.d.ts} +0 -0
  133. /package/dist/{warmup-CIj_wEV_.d.ts → warmup-Ckb1hN85.d.ts} +0 -0
  134. /package/dist/{xstate.esm-Bv55-lJ4.esm.js → xstate.esm-B7FPE6br.esm.js} +0 -0
@@ -0,0 +1,55 @@
1
+ //#region ../infra/src/providers/browser/BrowserStorageProvider.ts
2
+ /**
3
+ * Browser-based storage provider wrapping localStorage.
4
+ * Handles JSON serialization/deserialization automatically.
5
+ */
6
+ var BrowserStorageProvider = class {
7
+ /**
8
+ * Retrieves a value from localStorage.
9
+ * @param key - The storage key
10
+ * @returns The stored value or null if not found
11
+ * @throws Error if stored value is invalid JSON
12
+ */
13
+ async get(key) {
14
+ try {
15
+ const item = localStorage.getItem(key);
16
+ if (item === null) return null;
17
+ return JSON.parse(item);
18
+ } catch (error) {
19
+ if (error instanceof SyntaxError) throw new Error(`Invalid JSON stored at key "${key}": ${error.message}`);
20
+ throw error;
21
+ }
22
+ }
23
+ /**
24
+ * Stores a value in localStorage.
25
+ * @param key - The storage key
26
+ * @param value - The value to store (will be serialized as JSON)
27
+ * @throws Error if value cannot be serialized or quota is exceeded
28
+ */
29
+ async set(key, value) {
30
+ try {
31
+ const serialized = JSON.stringify(value);
32
+ localStorage.setItem(key, serialized);
33
+ } catch (error) {
34
+ if ((error instanceof DOMException || error.name === "QuotaExceededError") && error.name === "QuotaExceededError") throw new Error(`Storage quota exceeded for key "${key}"`);
35
+ if (error instanceof TypeError) throw new Error(`Failed to serialize value for key "${key}": ${error.message}`);
36
+ throw error;
37
+ }
38
+ }
39
+ /**
40
+ * Removes a value from localStorage.
41
+ * @param key - The storage key to remove
42
+ */
43
+ async remove(key) {
44
+ localStorage.removeItem(key);
45
+ }
46
+ /**
47
+ * Clears all values from localStorage.
48
+ */
49
+ async clear() {
50
+ localStorage.clear();
51
+ }
52
+ };
53
+
54
+ //#endregion
55
+ export { BrowserStorageProvider as t };
@@ -1,4 +1,4 @@
1
- import { t as loadOpenVidu } from "./openviduLazy-vhrVZCr_.esm.js";
1
+ import { t as loadOpenVidu } from "./openviduLazy-CLg_-u0m.esm.js";
2
2
 
3
3
  //#region ../infra/src/providers/browser/OpenViduRecordingProvider.ts
4
4
  function createHiddenContainer() {
@@ -1,4 +1,4 @@
1
- import { r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-D-s_6M5H.esm.js";
1
+ import { r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-DoYDYH1z.esm.js";
2
2
 
3
3
  //#region ../infra/src/providers/wasm/WasmUtilProvider.ts
4
4
  var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
@@ -1,7 +1,7 @@
1
- import { t as api } from "./api-DzpnV6O7.esm.js";
2
- import { _ as endpoints } from "./events-DlHrOIRc.esm.js";
3
- import { r as fromCallback } from "./xstate.esm-Bv55-lJ4.esm.js";
4
- import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BhD2MlHg.esm.js";
1
+ import { t as api } from "./api-aa9Mx20l.esm.js";
2
+ import { _ as endpoints } from "./events-W91zLpx4.esm.js";
3
+ import { r as fromCallback } from "./xstate.esm-B7FPE6br.esm.js";
4
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-v7bpbrAk.esm.js";
5
5
 
6
6
  //#region src/shared/usStates.ts
7
7
  const usStates = {
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-BN2g_I8W.js";
1
+ import { t as Manager } from "./Manager-DcPMRgTm.js";
2
2
 
3
3
  //#region src/modules/antifraud/antifraudManager.d.ts
4
4
  type AntifraudIdleState = {
@@ -1,41 +1,8 @@
1
- import { t as api } from "./api-DzpnV6O7.esm.js";
2
- import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-DlHrOIRc.esm.js";
3
- import { a as createActor, i as fromPromise, o as createManager, t as setup } from "./xstate.esm-Bv55-lJ4.esm.js";
1
+ import "./api-aa9Mx20l.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-W91zLpx4.esm.js";
3
+ import { a as createActor, o as createManager } from "./xstate.esm-B7FPE6br.esm.js";
4
+ import { t as antifraudMachine } from "./antifraudStateMachine-B74mO8vr.esm.js";
4
5
 
5
- //#region src/modules/antifraud/antifraudServices.ts
6
- async function processAntifraud(signal) {
7
- const res = await api.get(endpoints.processAntifraud, { signal });
8
- if (!res.ok) throw new Error(`GET ${endpoints.processAntifraud} failed: ${res.status} ${res.statusText}`);
9
- return res.data;
10
- }
11
-
12
- //#endregion
13
- //#region src/modules/antifraud/antifraudStateMachine.ts
14
- const antifraudMachine = setup({
15
- types: {
16
- context: {},
17
- events: {}
18
- },
19
- actors: { processAntifraud: fromPromise(async ({ signal }) => {
20
- return processAntifraud(signal);
21
- }) }
22
- }).createMachine({
23
- id: "antifraud",
24
- initial: "idle",
25
- context: {},
26
- states: {
27
- idle: { on: { LOAD: { target: "processing" } } },
28
- processing: { invoke: {
29
- id: "processAntifraud",
30
- src: "processAntifraud",
31
- onDone: { target: "finished" },
32
- onError: { target: "finished" }
33
- } },
34
- finished: { type: "final" }
35
- }
36
- });
37
-
38
- //#endregion
39
6
  //#region src/modules/antifraud/antifraudActor.ts
40
7
  function createAntifraudActor() {
41
8
  return createActor(antifraudMachine).start();
@@ -0,0 +1,39 @@
1
+ import { t as api } from "./api-aa9Mx20l.esm.js";
2
+ import { _ as endpoints } from "./events-W91zLpx4.esm.js";
3
+ import { i as fromPromise, t as setup } from "./xstate.esm-B7FPE6br.esm.js";
4
+
5
+ //#region src/modules/antifraud/antifraudServices.ts
6
+ async function processAntifraud(signal) {
7
+ const res = await api.get(endpoints.processAntifraud, { signal });
8
+ if (!res.ok) throw new Error(`GET ${endpoints.processAntifraud} failed: ${res.status} ${res.statusText}`);
9
+ return res.data;
10
+ }
11
+
12
+ //#endregion
13
+ //#region src/modules/antifraud/antifraudStateMachine.ts
14
+ const antifraudMachine = setup({
15
+ types: {
16
+ context: {},
17
+ events: {}
18
+ },
19
+ actors: { processAntifraud: fromPromise(async ({ signal }) => {
20
+ return processAntifraud(signal);
21
+ }) }
22
+ }).createMachine({
23
+ id: "antifraud",
24
+ initial: "idle",
25
+ context: {},
26
+ states: {
27
+ idle: { on: { LOAD: { target: "processing" } } },
28
+ processing: { invoke: {
29
+ id: "processAntifraud",
30
+ src: "processAntifraud",
31
+ onDone: { target: "finished" },
32
+ onError: { target: "finished" }
33
+ } },
34
+ finished: { type: "final" }
35
+ }
36
+ });
37
+
38
+ //#endregion
39
+ export { antifraudMachine as t };
@@ -1,12 +1,12 @@
1
- import "./warmup-CIj_wEV_.js";
2
- import "./Manager-BN2g_I8W.js";
3
- import "./Actor-Ba71-_30.js";
4
- import "./StateMachine-BoJsfMvg.js";
5
- import { _ as AuthenticationConfig, b as authenticationMachine, g as createAuthenticationActor, h as CreateAuthenticationActorOptions, m as AuthenticationActor } from "./faceCaptureManagerFactory-Da_-ohdg.js";
6
- import "./camera-1eeGnAaL.js";
7
- import "./types-2OPf1pyv.js";
8
- import "./types-CVJVQ7fp.js";
9
- import "./deepsightService-ByD6uIs7.js";
10
- import "./types-D_QfFKxT.js";
11
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-C2mk36yK.js";
1
+ import "./warmup-Ckb1hN85.js";
2
+ import "./Manager-DcPMRgTm.js";
3
+ import "./Actor-DbWH1K6E.js";
4
+ import "./StateMachine-BBuIgsHT.js";
5
+ import { _ as AuthenticationConfig, b as authenticationMachine, g as createAuthenticationActor, h as CreateAuthenticationActorOptions, m as AuthenticationActor } from "./faceCaptureManagerFactory-P2yy30KU.js";
6
+ import "./camera-DATT31my.js";
7
+ import "./types-CYJ0Ish6.js";
8
+ import "./types-DU8HmI5U.js";
9
+ import "./deepsightService-S-tU77m-.js";
10
+ import "./types-CIjb0FKu.js";
11
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-DOTo1EYF.js";
12
12
  export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,21 +1,24 @@
1
- import "./BaseWasmProvider-D-s_6M5H.esm.js";
2
- import "./WasmUtilProvider-BpZSvZbg.esm.js";
3
- import "./api-DzpnV6O7.esm.js";
4
- import "./events-DlHrOIRc.esm.js";
5
- import "./browserSimulation-B4ubb2OL.esm.js";
6
- import "./xstate.esm-Bv55-lJ4.esm.js";
7
- import "./faceCaptureSetup-CaVWkjvE.esm.js";
8
- import "./recordingService-483wQ6kR.esm.js";
9
- import "./deepsightService-BjgXl5hs.esm.js";
10
- import "./camera-DmkFpf5N.esm.js";
11
- import "./getBrowser-Dtyt9J_h.esm.js";
12
- import "./stats-DHDoqSBV.esm.js";
13
- import "./MotionSensorProvider-CodM3e0E.esm.js";
14
- import "./permissionServices-Cskq32Yd.esm.js";
15
- import "./platform-Dv7a2fv-.esm.js";
16
- import "./ITimerCapability-oixwa6nj.esm.js";
17
- import "./backCameraStream-tabTmwDS.esm.js";
18
- import "./getDeviceClass-DEzz4cmY.esm.js";
19
- import { i as authenticationMachine, r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-C7dL_avf.esm.js";
1
+ import "./BaseWasmProvider-DoYDYH1z.esm.js";
2
+ import "./WasmUtilProvider-mWSXzp7b.esm.js";
3
+ import "./api-aa9Mx20l.esm.js";
4
+ import "./events-W91zLpx4.esm.js";
5
+ import "./browserSimulation-DFqGKQAD.esm.js";
6
+ import "./xstate.esm-B7FPE6br.esm.js";
7
+ import "./faceCaptureManagerFactory-Bspg2Tyf.esm.js";
8
+ import "./BrowserStorageProvider-CXaS5Ooj.esm.js";
9
+ import "./recordingService-CCfxUY7-.esm.js";
10
+ import "./deepsightService-rPGLH8Xp.esm.js";
11
+ import "./camera-DpPQS_-5.esm.js";
12
+ import "./getBrowser-DCcD7H-M.esm.js";
13
+ import "./stats-gFD2351t.esm.js";
14
+ import "./MotionSensorProvider-D90R4qwV.esm.js";
15
+ import "./permissionServices-Cisv73eQ.esm.js";
16
+ import "./platform-DctkySJU.esm.js";
17
+ import "./ITimerCapability-BZO_FsCo.esm.js";
18
+ import "./backCameraStream-D9g2wyil.esm.js";
19
+ import "./getDeviceClass-DBF-ExLR.esm.js";
20
+ import "./faceCaptureSetup-CQevz86q.esm.js";
21
+ import { t as authenticationMachine } from "./authenticationStateMachine-DCJ0ArAt.esm.js";
22
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-BBQHippG.esm.js";
20
23
 
21
24
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -0,0 +1,67 @@
1
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-mWSXzp7b.esm.js";
2
+ import { n as eventModuleNames } from "./events-W91zLpx4.esm.js";
3
+ import { a as createActor } from "./xstate.esm-B7FPE6br.esm.js";
4
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Bspg2Tyf.esm.js";
5
+ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CXaS5Ooj.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-DCJ0ArAt.esm.js";
7
+
8
+ //#region src/modules/authentication/authenticationActor.ts
9
+ function createAuthenticationActor(options) {
10
+ const dependencies = options.dependencies ?? {
11
+ storage: new BrowserStorageProvider(),
12
+ getWasmUtil: () => WasmUtilProvider.getInstance()
13
+ };
14
+ return createActor(authenticationMachine, { input: {
15
+ config: options.config,
16
+ dependencies,
17
+ authHint: options.authHint
18
+ } }).start();
19
+ }
20
+
21
+ //#endregion
22
+ //#region src/modules/authentication/authenticationManager.ts
23
+ function createAuthenticationManagerFromActor(actor) {
24
+ return createFaceCaptureManagerFromActor(actor, eventModuleNames.authentication);
25
+ }
26
+ /**
27
+ * Creates an authentication manager instance for handling face authentication flow.
28
+ *
29
+ * The authentication manager provides:
30
+ * - State management with statuses: `idle`, `loading`, `tutorial`, `permissions`, `capture`, `finished`, `closed`, `error`
31
+ * - Permission handling with nested states: `idle`, `requesting`, `denied`, `learnMore`
32
+ * - Capture handling with nested states: `initializing`, `startingRecorder`, `recordingActive`, `detecting`, `capturing`, `uploading`, `uploadError`, `success`
33
+ * - Camera stream access when in `capture` state
34
+ * - Detection status feedback during face detection
35
+ * - Attempt tracking with `attemptsRemaining`
36
+ *
37
+ * @param options - Configuration for the authentication actor
38
+ * @param options.config - The authentication module configuration from the flow
39
+ * @param options.authHint - Hint for identifying the user (e.g., phone number, email)
40
+ * @returns A manager instance with state subscription, API methods, and lifecycle controls
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const authManager = createAuthenticationManager({
45
+ * config: authConfig,
46
+ * authHint: 'user@example.com'
47
+ * });
48
+ *
49
+ * authManager.subscribe((state) => {
50
+ * if (state.status === 'capture') {
51
+ * console.log('Camera ready:', state.stream);
52
+ * console.log('Detection status:', state.detectionStatus);
53
+ * }
54
+ * if (state.status === 'finished') {
55
+ * console.log('Authentication successful!');
56
+ * }
57
+ * });
58
+ *
59
+ * authManager.load();
60
+ * ```
61
+ */
62
+ function createAuthenticationManager(options) {
63
+ return createFaceCaptureManagerFromActor(createAuthenticationActor(options), eventModuleNames.authentication);
64
+ }
65
+
66
+ //#endregion
67
+ export { createAuthenticationManagerFromActor as n, createAuthenticationActor as r, createAuthenticationManager as t };
@@ -1,5 +1,5 @@
1
- import { t as Manager } from "./Manager-BN2g_I8W.js";
2
- import { h as CreateAuthenticationActorOptions, m as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager } from "./faceCaptureManagerFactory-Da_-ohdg.js";
1
+ import { t as Manager } from "./Manager-DcPMRgTm.js";
2
+ import { h as CreateAuthenticationActorOptions, m as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager } from "./faceCaptureManagerFactory-P2yy30KU.js";
3
3
 
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
@@ -1,10 +1,9 @@
1
- import { t as WasmUtilProvider } from "./WasmUtilProvider-BpZSvZbg.esm.js";
2
- import { t as api } from "./api-DzpnV6O7.esm.js";
3
- import { _ as endpoints, n as eventModuleNames } from "./events-DlHrOIRc.esm.js";
4
- import { a as createActor, i as fromPromise, n as assign } from "./xstate.esm-Bv55-lJ4.esm.js";
5
- import { n as createFaceCaptureManagerFromActor, t as faceCaptureMachine } from "./faceCaptureSetup-CaVWkjvE.esm.js";
6
- import { v as FACE_ERROR_CODES, y as BrowserStorageProvider } from "./recordingService-483wQ6kR.esm.js";
7
- import { t as getDeviceClass } from "./getDeviceClass-DEzz4cmY.esm.js";
1
+ import { t as api } from "./api-aa9Mx20l.esm.js";
2
+ import { _ as endpoints } from "./events-W91zLpx4.esm.js";
3
+ import { i as fromPromise, n as assign } from "./xstate.esm-B7FPE6br.esm.js";
4
+ import { v as FACE_ERROR_CODES } from "./recordingService-CCfxUY7-.esm.js";
5
+ import { t as getDeviceClass } from "./getDeviceClass-DBF-ExLR.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-CQevz86q.esm.js";
8
7
 
9
8
  //#region src/modules/authentication/authenticationErrorUtils.ts
10
9
  const AUTH_ERROR_MAP = {
@@ -129,63 +128,4 @@ const _authenticationMachine = faceCaptureMachine.provide({
129
128
  const authenticationMachine = _authenticationMachine;
130
129
 
131
130
  //#endregion
132
- //#region src/modules/authentication/authenticationActor.ts
133
- function createAuthenticationActor(options) {
134
- const dependencies = options.dependencies ?? {
135
- storage: new BrowserStorageProvider(),
136
- getWasmUtil: () => WasmUtilProvider.getInstance()
137
- };
138
- return createActor(authenticationMachine, { input: {
139
- config: options.config,
140
- dependencies,
141
- authHint: options.authHint
142
- } }).start();
143
- }
144
-
145
- //#endregion
146
- //#region src/modules/authentication/authenticationManager.ts
147
- function createAuthenticationManagerFromActor(actor) {
148
- return createFaceCaptureManagerFromActor(actor, eventModuleNames.authentication);
149
- }
150
- /**
151
- * Creates an authentication manager instance for handling face authentication flow.
152
- *
153
- * The authentication manager provides:
154
- * - State management with statuses: `idle`, `loading`, `tutorial`, `permissions`, `capture`, `finished`, `closed`, `error`
155
- * - Permission handling with nested states: `idle`, `requesting`, `denied`, `learnMore`
156
- * - Capture handling with nested states: `initializing`, `startingRecorder`, `recordingActive`, `detecting`, `capturing`, `uploading`, `uploadError`, `success`
157
- * - Camera stream access when in `capture` state
158
- * - Detection status feedback during face detection
159
- * - Attempt tracking with `attemptsRemaining`
160
- *
161
- * @param options - Configuration for the authentication actor
162
- * @param options.config - The authentication module configuration from the flow
163
- * @param options.authHint - Hint for identifying the user (e.g., phone number, email)
164
- * @returns A manager instance with state subscription, API methods, and lifecycle controls
165
- *
166
- * @example
167
- * ```ts
168
- * const authManager = createAuthenticationManager({
169
- * config: authConfig,
170
- * authHint: 'user@example.com'
171
- * });
172
- *
173
- * authManager.subscribe((state) => {
174
- * if (state.status === 'capture') {
175
- * console.log('Camera ready:', state.stream);
176
- * console.log('Detection status:', state.detectionStatus);
177
- * }
178
- * if (state.status === 'finished') {
179
- * console.log('Authentication successful!');
180
- * }
181
- * });
182
- *
183
- * authManager.load();
184
- * ```
185
- */
186
- function createAuthenticationManager(options) {
187
- return createFaceCaptureManagerFromActor(createAuthenticationActor(options), eventModuleNames.authentication);
188
- }
189
-
190
- //#endregion
191
- export { authenticationMachine as i, createAuthenticationManagerFromActor as n, createAuthenticationActor as r, createAuthenticationManager as t };
131
+ export { authenticationMachine as t };
@@ -1,6 +1,6 @@
1
- import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-DmkFpf5N.esm.js";
2
- import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-Dv7a2fv-.esm.js";
3
- import { t as sleep } from "./ITimerCapability-oixwa6nj.esm.js";
1
+ import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-DpPQS_-5.esm.js";
2
+ import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-DctkySJU.esm.js";
3
+ import { t as sleep } from "./ITimerCapability-BZO_FsCo.esm.js";
4
4
 
5
5
  //#region src/internal/camera/backCameraStream.ts
6
6
  const BACK_CAMERA_KEYWORDS = [
package/dist/camera.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as PermissionStatus, t as PermissionResult } from "./types-D_QfFKxT.js";
1
+ import { n as PermissionStatus, t as PermissionResult } from "./types-CIjb0FKu.js";
2
2
 
3
3
  //#region src/internal/permissions/permissionServices.d.ts
4
4
 
@@ -1,5 +1,5 @@
1
- import "./camera-DmkFpf5N.esm.js";
2
- import "./MotionSensorProvider-CodM3e0E.esm.js";
3
- import { n as requestPermission, t as checkPermission } from "./permissionServices-Cskq32Yd.esm.js";
1
+ import "./camera-DpPQS_-5.esm.js";
2
+ import "./MotionSensorProvider-D90R4qwV.esm.js";
3
+ import { n as requestPermission, t as checkPermission } from "./permissionServices-Cisv73eQ.esm.js";
4
4
 
5
5
  export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };