@incodetech/core 0.0.0-dev-20260224-e49e03c → 0.0.0-dev-20260226-4cb58f5

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 (49) hide show
  1. package/dist/authentication.d.ts +8 -7
  2. package/dist/authentication.esm.js +9 -8
  3. package/dist/{backCameraStream-CCvHeGHQ.esm.js → backCameraStream-Ly-xbK9L.esm.js} +2 -103
  4. package/dist/curp-validation.d.ts +3 -2
  5. package/dist/curp-validation.esm.js +4 -4
  6. package/dist/{deepsightLoader-UBRWJ3MQ.esm.js → deepsightLoader-nGQDTgVU.esm.js} +4 -4
  7. package/dist/{deepsightService-Bn05rSAa.esm.js → deepsightService-CpmpXOnj.esm.js} +3 -3
  8. package/dist/{deepsightService-Un1ZwAHH.d.ts → deepsightService-p7oLftiG.d.ts} +1 -1
  9. package/dist/document-upload.d.ts +329 -0
  10. package/dist/document-upload.esm.js +194 -0
  11. package/dist/email.d.ts +1 -1
  12. package/dist/email.esm.js +4 -4
  13. package/dist/{endpoints-DXp63GM6.esm.js → endpoints-BK1EjE1H.esm.js} +2 -1
  14. package/dist/{events-h8K9H3OM.esm.js → events-DuBPhaxY.esm.js} +2 -2
  15. package/dist/face-match.d.ts +1 -1
  16. package/dist/face-match.esm.js +4 -4
  17. package/dist/{faceCaptureManagerFactory-CWGzTGlG.d.ts → faceCaptureManagerFactory-5Blo_gz0.d.ts} +5 -4
  18. package/dist/{faceCaptureSetup-BflAHwmc.esm.js → faceCaptureSetup-JLWm8_vt.esm.js} +8 -7
  19. package/dist/flow.d.ts +6 -5
  20. package/dist/flow.esm.js +6 -10
  21. package/dist/geolocation.d.ts +1 -1
  22. package/dist/geolocation.esm.js +4 -4
  23. package/dist/government-validation.d.ts +1 -1
  24. package/dist/government-validation.esm.js +3 -3
  25. package/dist/{id-CDh0aJOJ.esm.js → id-Dc5SneKA.esm.js} +9 -8
  26. package/dist/id.d.ts +8 -7
  27. package/dist/id.esm.js +9 -8
  28. package/dist/{index-O5gB82Up.d.ts → index-B_VIYINf.d.ts} +7 -6
  29. package/dist/index.d.ts +9 -8
  30. package/dist/index.esm.js +9 -8
  31. package/dist/{lib-DtNtprlI.esm.js → lib-EkjqkOuB.esm.js} +1 -1
  32. package/dist/phone.d.ts +1 -1
  33. package/dist/phone.esm.js +4 -4
  34. package/dist/selfie.d.ts +8 -7
  35. package/dist/selfie.esm.js +9 -8
  36. package/dist/{src-t0pt3B2r.esm.js → src-Bjg2C1oP.esm.js} +2 -2
  37. package/dist/{stats-GJMiTm5k.esm.js → stats-Baxc8J0w.esm.js} +1 -1
  38. package/dist/stats.esm.js +2 -2
  39. package/dist/streamingEvents-BrVlVGe7.esm.js +104 -0
  40. package/dist/types-B3jgq_IJ.d.ts +24 -0
  41. package/dist/{types-ee3LkWku.d.ts → types-CLuw51tO.d.ts} +1 -4
  42. package/dist/{types-c0XgGLsM.d.ts → types-Skrj9_8y.d.ts} +3 -1
  43. package/package.json +8 -4
  44. /package/dist/{Actor-Chvt8rE9.d.ts → Actor-DYtyiYF1.d.ts} +0 -0
  45. /package/dist/{Manager-DM1NlCX4.d.ts → Manager-C647XkuZ.d.ts} +0 -0
  46. /package/dist/{StateMachine-B7tKroZs.d.ts → StateMachine-B3u4LjaP.d.ts} +0 -0
  47. /package/dist/{api-DlSxxyGw.esm.js → api-J0YE3G-C.esm.js} +0 -0
  48. /package/dist/{chunk-BcpNb8MJ.esm.js → chunk-3k-zyWo_.esm.js} +0 -0
  49. /package/dist/{warmup-BUv67ifS.d.ts → warmup-BIZ_8rAa.d.ts} +0 -0
@@ -0,0 +1,194 @@
1
+ import { t as getBackCameraStream } from "./backCameraStream-Ly-xbK9L.esm.js";
2
+ import { D as createManager, E as stopCameraStream } from "./src-Bjg2C1oP.esm.js";
3
+ import { a as fromPromise, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-BK1EjE1H.esm.js";
4
+ import { t as api } from "./api-J0YE3G-C.esm.js";
5
+
6
+ //#region src/modules/document-upload/documentUploadServices.ts
7
+ async function uploadDocument({ imageBase64, documentType, onProgress, signal }) {
8
+ const url = `${endpoints.addDocument}?type=${encodeURIComponent(documentType)}`;
9
+ const response = await api.post(url, { base64Image: imageBase64 }, {
10
+ signal,
11
+ onUploadProgress: onProgress
12
+ });
13
+ if (!response.ok) throw new Error(`Document upload failed: ${response.status} ${response.statusText}`);
14
+ }
15
+
16
+ //#endregion
17
+ //#region src/modules/document-upload/documentUploadStateMachine.ts
18
+ const documentUploadMachine = setup({
19
+ types: {
20
+ context: {},
21
+ events: {},
22
+ input: {}
23
+ },
24
+ actors: {
25
+ initCamera: fromPromise(async () => {
26
+ return getBackCameraStream(void 0);
27
+ }),
28
+ uploadDocument: fromPromise(async ({ input, signal }) => {
29
+ return uploadDocument({
30
+ imageBase64: input.imageBase64,
31
+ documentType: input.documentType,
32
+ onProgress: input.onProgress,
33
+ signal
34
+ });
35
+ })
36
+ },
37
+ actions: {
38
+ setStream: assign(({ event }) => ({ stream: event.output })),
39
+ setImageAndClearError: assign(({ event }) => {
40
+ return {
41
+ imageBase64: event.imageBase64,
42
+ error: void 0
43
+ };
44
+ }),
45
+ setProgress: assign(({ event }) => ({ progress: event.progress })),
46
+ setError: assign(({ event }) => ({ error: String(event.error) })),
47
+ clearError: assign({ error: () => void 0 }),
48
+ stopStream: assign(({ context }) => {
49
+ if (context.stream) stopCameraStream(context.stream);
50
+ return { stream: void 0 };
51
+ })
52
+ }
53
+ }).createMachine({
54
+ id: "documentUpload",
55
+ initial: "idle",
56
+ context: ({ input }) => ({
57
+ config: input.config,
58
+ stream: void 0,
59
+ imageBase64: void 0,
60
+ progress: 0,
61
+ error: void 0
62
+ }),
63
+ states: {
64
+ idle: { on: { START: { target: "initCamera" } } },
65
+ initCamera: {
66
+ invoke: {
67
+ id: "initCamera",
68
+ src: "initCamera",
69
+ input: void 0,
70
+ onDone: {
71
+ target: "capturing",
72
+ actions: "setStream"
73
+ },
74
+ onError: {
75
+ target: "error",
76
+ actions: "setError"
77
+ }
78
+ },
79
+ on: { CLOSE: { target: "closed" } }
80
+ },
81
+ capturing: { on: {
82
+ CAPTURE: {
83
+ target: "uploading",
84
+ actions: "setImageAndClearError"
85
+ },
86
+ CLOSE: {
87
+ target: "closed",
88
+ actions: "stopStream"
89
+ }
90
+ } },
91
+ uploading: {
92
+ invoke: {
93
+ id: "uploadDocument",
94
+ src: "uploadDocument",
95
+ input: ({ context, self }) => {
96
+ const imageBase64 = context.imageBase64;
97
+ if (!imageBase64) throw new Error("No image to upload");
98
+ return {
99
+ imageBase64,
100
+ documentType: context.config.documentType,
101
+ onProgress: (progress) => {
102
+ self.send({
103
+ type: "UPLOAD_PROGRESS",
104
+ progress
105
+ });
106
+ }
107
+ };
108
+ },
109
+ onDone: {
110
+ target: "finished",
111
+ actions: "stopStream"
112
+ },
113
+ onError: {
114
+ target: "error",
115
+ actions: ["setError", "stopStream"]
116
+ }
117
+ },
118
+ on: { UPLOAD_PROGRESS: { actions: "setProgress" } }
119
+ },
120
+ error: { on: {
121
+ RETRY: {
122
+ target: "initCamera",
123
+ actions: "clearError"
124
+ },
125
+ CLOSE: {
126
+ target: "closed",
127
+ actions: "stopStream"
128
+ }
129
+ } },
130
+ finished: { type: "final" },
131
+ closed: { type: "final" }
132
+ }
133
+ });
134
+
135
+ //#endregion
136
+ //#region src/modules/document-upload/documentUploadActor.ts
137
+ function createDocumentUploadActor(options) {
138
+ return createActor(documentUploadMachine, { input: { config: options.config } }).start();
139
+ }
140
+
141
+ //#endregion
142
+ //#region src/modules/document-upload/documentUploadManager.ts
143
+ function mapState(snapshot) {
144
+ const typedSnapshot = snapshot;
145
+ const { context } = typedSnapshot;
146
+ if (typedSnapshot.matches("idle") || typedSnapshot.matches("initCamera")) return { status: "initializing" };
147
+ if (typedSnapshot.matches("capturing")) {
148
+ if (!context.stream) return { status: "initializing" };
149
+ return {
150
+ status: "capturing",
151
+ stream: context.stream
152
+ };
153
+ }
154
+ if (typedSnapshot.matches("uploading")) return {
155
+ status: "uploading",
156
+ progress: context.progress
157
+ };
158
+ if (typedSnapshot.matches("error")) return {
159
+ status: "error",
160
+ error: context.error ?? "Upload failed"
161
+ };
162
+ if (typedSnapshot.matches("finished")) return { status: "finished" };
163
+ if (typedSnapshot.matches("closed")) return { status: "closed" };
164
+ return { status: "initializing" };
165
+ }
166
+ function createApi({ actor }) {
167
+ return {
168
+ load() {
169
+ actor.send({ type: "START" });
170
+ },
171
+ capture(imageBase64) {
172
+ actor.send({
173
+ type: "CAPTURE",
174
+ imageBase64
175
+ });
176
+ },
177
+ retry() {
178
+ actor.send({ type: "RETRY" });
179
+ },
180
+ close() {
181
+ actor.send({ type: "CLOSE" });
182
+ }
183
+ };
184
+ }
185
+ function createDocumentUploadManager(options) {
186
+ return createManager({
187
+ actor: createDocumentUploadActor(options),
188
+ mapState,
189
+ createApi
190
+ });
191
+ }
192
+
193
+ //#endregion
194
+ export { createDocumentUploadManager, documentUploadMachine };
package/dist/email.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-DM1NlCX4.js";
1
+ import { t as Manager } from "./Manager-C647XkuZ.js";
2
2
 
3
3
  //#region src/modules/email/types.d.ts
4
4
 
package/dist/email.esm.js CHANGED
@@ -1,7 +1,7 @@
1
- import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-h8K9H3OM.esm.js";
2
- import { D as createManager, p as BrowserTimerProvider } from "./src-t0pt3B2r.esm.js";
3
- import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-DXp63GM6.esm.js";
4
- import { t as api } from "./api-DlSxxyGw.esm.js";
1
+ import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-DuBPhaxY.esm.js";
2
+ import { D as createManager, p as BrowserTimerProvider } from "./src-Bjg2C1oP.esm.js";
3
+ import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-BK1EjE1H.esm.js";
4
+ import { t as api } from "./api-J0YE3G-C.esm.js";
5
5
 
6
6
  //#region src/modules/email/emailServices.ts
7
7
  async function fetchEmail(signal) {
@@ -3298,7 +3298,8 @@ const endpoints = {
3298
3298
  ocrData: "/omni/get/ocr-data",
3299
3299
  addCurp: "/omni/add/curp",
3300
3300
  addCurpV2: "/omni/add/curp/v2",
3301
- addGeolocation: "/omni/add/geolocation"
3301
+ addGeolocation: "/omni/add/geolocation",
3302
+ addDocument: "/omni/add/document/v2"
3302
3303
  };
3303
3304
 
3304
3305
  //#endregion
@@ -1,5 +1,5 @@
1
- import { t as endpoints } from "./endpoints-DXp63GM6.esm.js";
2
- import { i as isApiConfigured, r as getToken, t as api } from "./api-DlSxxyGw.esm.js";
1
+ import { t as endpoints } from "./endpoints-BK1EjE1H.esm.js";
2
+ import { i as isApiConfigured, r as getToken, t as api } from "./api-J0YE3G-C.esm.js";
3
3
 
4
4
  //#region ../infra/src/capabilities/IBrowserEnvironmentCapability.ts
5
5
  function getTimestamp() {
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-DM1NlCX4.js";
1
+ import { t as Manager } from "./Manager-C647XkuZ.js";
2
2
 
3
3
  //#region src/modules/face-match/types.d.ts
4
4
 
@@ -1,7 +1,7 @@
1
- import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-h8K9H3OM.esm.js";
2
- import { D as createManager } from "./src-t0pt3B2r.esm.js";
3
- import { a as fromPromise, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-DXp63GM6.esm.js";
4
- import { t as api } from "./api-DlSxxyGw.esm.js";
1
+ import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-DuBPhaxY.esm.js";
2
+ import { D as createManager } from "./src-Bjg2C1oP.esm.js";
3
+ import { a as fromPromise, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-BK1EjE1H.esm.js";
4
+ import { t as api } from "./api-J0YE3G-C.esm.js";
5
5
 
6
6
  //#region src/modules/face-match/faceMatchServices.ts
7
7
  /**
@@ -1,7 +1,8 @@
1
- import { a as IRecordingCapability, c as MLProviderConfig, i as IStorageCapability, n as PermissionStatus, r as CameraStream } from "./types-ee3LkWku.js";
2
- import { t as WasmPipeline } from "./warmup-BUv67ifS.js";
3
- import { t as Manager } from "./Manager-DM1NlCX4.js";
4
- import { t as Flow } from "./types-c0XgGLsM.js";
1
+ import { i as IRecordingCapability, n as PermissionStatus, r as IStorageCapability, s as MLProviderConfig } from "./types-CLuw51tO.js";
2
+ import { t as WasmPipeline } from "./warmup-BIZ_8rAa.js";
3
+ import { t as Manager } from "./Manager-C647XkuZ.js";
4
+ import { i as CameraStream } from "./types-B3jgq_IJ.js";
5
+ import { t as Flow } from "./types-Skrj9_8y.js";
5
6
 
6
7
  //#region ../infra/src/capabilities/IWasmUtilCapability.d.ts
7
8
  type WasmUtilConfig = MLProviderConfig & {
@@ -1,9 +1,10 @@
1
- import { d as addEvent, n as eventModuleNames } from "./events-h8K9H3OM.esm.js";
2
- import { a as stopRecording$1, c as requestPermission, i as startRecording, l as getDeviceClass, n as streamingEvents, o as uploadDeepsightVideo, r as createRecordingSession, s as checkPermission, t as getBackCameraStream } from "./backCameraStream-CCvHeGHQ.esm.js";
3
- import { D as createManager, E as stopCameraStream, T as requestCameraAccess, a as FaceDetectionProvider, c as OpenViduRecordingProvider, u as LocalRecordingProvider, v as StreamCanvasProcessingSession, y as StreamCanvasCapture } from "./src-t0pt3B2r.esm.js";
4
- import { a as fromPromise, i as fromCallback, n as setup, r as assign, t as endpoints } from "./endpoints-DXp63GM6.esm.js";
5
- import { r as getToken, t as api } from "./api-DlSxxyGw.esm.js";
6
- import { t as addDeviceStats } from "./stats-GJMiTm5k.esm.js";
1
+ import { d as addEvent, n as eventModuleNames } from "./events-DuBPhaxY.esm.js";
2
+ import { t as getBackCameraStream } from "./backCameraStream-Ly-xbK9L.esm.js";
3
+ import { D as createManager, E as stopCameraStream, T as requestCameraAccess, a as FaceDetectionProvider, c as OpenViduRecordingProvider, u as LocalRecordingProvider, v as StreamCanvasProcessingSession, y as StreamCanvasCapture } from "./src-Bjg2C1oP.esm.js";
4
+ import { a as fromPromise, i as fromCallback, n as setup, r as assign, t as endpoints } from "./endpoints-BK1EjE1H.esm.js";
5
+ import { a as uploadDeepsightVideo, c as getDeviceClass, i as stopRecording$1, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-BrVlVGe7.esm.js";
6
+ import { r as getToken, t as api } from "./api-J0YE3G-C.esm.js";
7
+ import { t as addDeviceStats } from "./stats-Baxc8J0w.esm.js";
7
8
 
8
9
  //#region src/internal/faceCapture/faceCaptureManagerFactory.ts
9
10
  function getPermissionStatus(snapshot) {
@@ -443,7 +444,7 @@ async function stopRecording(session) {
443
444
  }
444
445
  }
445
446
  async function initializeDeepsightSession(options) {
446
- const { loadDeepsightSession } = await import("./deepsightLoader-UBRWJ3MQ.esm.js");
447
+ const { loadDeepsightSession } = await import("./deepsightLoader-nGQDTgVU.esm.js");
447
448
  return loadDeepsightSession({
448
449
  ds: options.ds,
449
450
  storage: options.storage
package/dist/flow.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { t as WasmPipeline } from "./warmup-BUv67ifS.js";
2
- import { t as Manager } from "./Manager-DM1NlCX4.js";
3
- import { t as AnyStateMachine } from "./StateMachine-B7tKroZs.js";
4
- import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-c0XgGLsM.js";
1
+ import { t as WasmPipeline } from "./warmup-BIZ_8rAa.js";
2
+ import { t as Manager } from "./Manager-C647XkuZ.js";
3
+ import "./types-B3jgq_IJ.js";
4
+ import { t as AnyStateMachine } from "./StateMachine-B3u4LjaP.js";
5
+ import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-Skrj9_8y.js";
5
6
 
6
7
  //#region src/modules/flow/flowUtils.d.ts
7
8
 
@@ -27,7 +28,7 @@ declare function getRequiredWasmPipelines(flow: Flow): WasmPipeline[];
27
28
  *
28
29
  * - TUTORIAL_ID becomes ID (with same config)
29
30
  * - If secondId: true, adds SECOND_ID module with isSecondId: true
30
- * - If thirdId: true, adds THIRD_ID module with isSecondId: true
31
+ * - If thirdId: true, adds THIRD_ID module with documentType: 'thirdId'
31
32
  * - Bare ID following TUTORIAL_ID is dropped (already merged)
32
33
  */
33
34
  declare function normalizeFlowModules(modules: FlowModule[]): FlowModule[];
package/dist/flow.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { D as createManager } from "./src-t0pt3B2r.esm.js";
2
- import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-DXp63GM6.esm.js";
3
- import { t as api } from "./api-DlSxxyGw.esm.js";
1
+ import { D as createManager } from "./src-Bjg2C1oP.esm.js";
2
+ import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-BK1EjE1H.esm.js";
3
+ import { t as api } from "./api-J0YE3G-C.esm.js";
4
4
 
5
5
  //#region src/modules/flow/flowUtils.ts
6
6
  const WASM_MODULE_PIPELINES = {
@@ -10,8 +10,7 @@ const WASM_MODULE_PIPELINES = {
10
10
  VIDEO_ONBOARDING: "selfie",
11
11
  ID: "idCapture",
12
12
  TUTORIAL_ID: "idCapture",
13
- SECOND_ID: "idCapture",
14
- THIRD_ID: "idCapture"
13
+ SECOND_ID: "idCapture"
15
14
  };
16
15
  /**
17
16
  * Analyzes a flow configuration and returns the WASM pipelines needed.
@@ -42,7 +41,7 @@ function getRequiredWasmPipelines(flow) {
42
41
  *
43
42
  * - TUTORIAL_ID becomes ID (with same config)
44
43
  * - If secondId: true, adds SECOND_ID module with isSecondId: true
45
- * - If thirdId: true, adds THIRD_ID module with isSecondId: true
44
+ * - If thirdId: true, adds THIRD_ID module with documentType: 'thirdId'
46
45
  * - Bare ID following TUTORIAL_ID is dropped (already merged)
47
46
  */
48
47
  function normalizeFlowModules(modules) {
@@ -62,10 +61,7 @@ function normalizeFlowModules(modules) {
62
61
  });
63
62
  if (idConfig.thirdId) result.push({
64
63
  key: "THIRD_ID",
65
- configuration: {
66
- ...idConfig,
67
- isSecondId: true
68
- }
64
+ configuration: { documentType: "thirdId" }
69
65
  });
70
66
  return result;
71
67
  }
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-DM1NlCX4.js";
1
+ import { t as Manager } from "./Manager-C647XkuZ.js";
2
2
 
3
3
  //#region ../infra/src/capabilities/IGeolocationCapability.d.ts
4
4
  type GeolocationCoords = {
@@ -1,7 +1,7 @@
1
- import { d as addEvent, n as eventModuleNames } from "./events-h8K9H3OM.esm.js";
2
- import { D as createManager, M as isAndroid, P as isIOS, _ as BrowserGeolocationProvider } from "./src-t0pt3B2r.esm.js";
3
- import { a as fromPromise, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-DXp63GM6.esm.js";
4
- import { t as api } from "./api-DlSxxyGw.esm.js";
1
+ import { d as addEvent, n as eventModuleNames } from "./events-DuBPhaxY.esm.js";
2
+ import { D as createManager, M as isAndroid, P as isIOS, _ as BrowserGeolocationProvider } from "./src-Bjg2C1oP.esm.js";
3
+ import { a as fromPromise, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-BK1EjE1H.esm.js";
4
+ import { t as api } from "./api-J0YE3G-C.esm.js";
5
5
 
6
6
  //#region src/modules/geolocation/geolocationServices.ts
7
7
  async function addGeolocation(params, signal) {
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-DM1NlCX4.js";
1
+ import { t as Manager } from "./Manager-C647XkuZ.js";
2
2
 
3
3
  //#region src/modules/government-validation/types.d.ts
4
4
  type GovernmentValidationConfig = {
@@ -1,6 +1,6 @@
1
- import { D as createManager, p as BrowserTimerProvider } from "./src-t0pt3B2r.esm.js";
2
- import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-DXp63GM6.esm.js";
3
- import { t as api } from "./api-DlSxxyGw.esm.js";
1
+ import { D as createManager, p as BrowserTimerProvider } from "./src-Bjg2C1oP.esm.js";
2
+ import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-BK1EjE1H.esm.js";
3
+ import { t as api } from "./api-J0YE3G-C.esm.js";
4
4
 
5
5
  //#region src/modules/government-validation/governmentValidationServices.ts
6
6
  async function processGovernmentValidation(signal) {
@@ -1,10 +1,11 @@
1
- import { d as addEvent, m as revokeObjectURL, n as eventModuleNames } from "./events-h8K9H3OM.esm.js";
2
- import { a as stopRecording$1, c as requestPermission, i as startRecording, l as getDeviceClass, n as streamingEvents, r as createRecordingSession, s as checkPermission, t as getBackCameraStream } from "./backCameraStream-CCvHeGHQ.esm.js";
3
- import { A as getWindowDimensions, D as createManager, N as isDesktop, S as IncodeCanvas, c as OpenViduRecordingProvider, d as IpifyProvider, f as FingerprintProvider, g as BrowserEnvironmentProvider, h as BrowserInfoProvider, i as IdCaptureProvider, m as BrowserStorageProvider, n as DEFAULT_ID_CAPTURE_THRESHOLDS, p as BrowserTimerProvider, t as DEFAULT_ID_CAPTURE_MODEL_VERSION, v as StreamCanvasProcessingSession, y as StreamCanvasCapture } from "./src-t0pt3B2r.esm.js";
4
- import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-DXp63GM6.esm.js";
5
- import { n as isBrowserSimulation } from "./deepsightService-Bn05rSAa.esm.js";
6
- import { n as getApi, r as getToken, t as api } from "./api-DlSxxyGw.esm.js";
7
- import { t as addDeviceStats } from "./stats-GJMiTm5k.esm.js";
1
+ import { d as addEvent, m as revokeObjectURL, n as eventModuleNames } from "./events-DuBPhaxY.esm.js";
2
+ import { t as getBackCameraStream } from "./backCameraStream-Ly-xbK9L.esm.js";
3
+ import { A as getWindowDimensions, D as createManager, N as isDesktop, S as IncodeCanvas, c as OpenViduRecordingProvider, d as IpifyProvider, f as FingerprintProvider, g as BrowserEnvironmentProvider, h as BrowserInfoProvider, i as IdCaptureProvider, m as BrowserStorageProvider, n as DEFAULT_ID_CAPTURE_THRESHOLDS, p as BrowserTimerProvider, t as DEFAULT_ID_CAPTURE_MODEL_VERSION, v as StreamCanvasProcessingSession, y as StreamCanvasCapture } from "./src-Bjg2C1oP.esm.js";
4
+ import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-BK1EjE1H.esm.js";
5
+ import { c as getDeviceClass, i as stopRecording$1, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-BrVlVGe7.esm.js";
6
+ import { n as isBrowserSimulation } from "./deepsightService-CpmpXOnj.esm.js";
7
+ import { n as getApi, r as getToken, t as api } from "./api-J0YE3G-C.esm.js";
8
+ import { t as addDeviceStats } from "./stats-Baxc8J0w.esm.js";
8
9
 
9
10
  //#region src/internal/session/sessionService.ts
10
11
  /**
@@ -897,7 +898,7 @@ const checkMotionSensorActor = fromCallback(({ input, sendBack }) => {
897
898
  });
898
899
  const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
899
900
  if (!input.dependencies) return;
900
- const { loadDeepsightSession } = await import("./deepsightLoader-UBRWJ3MQ.esm.js");
901
+ const { loadDeepsightSession } = await import("./deepsightLoader-nGQDTgVU.esm.js");
901
902
  return loadDeepsightSession({
902
903
  ds: input.ds,
903
904
  storage: input.dependencies.storage,
package/dist/id.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- import { A as IdCaptureGeometry, B as DetectionOrientation, C as DetectionArea, D as IdCaptureContext, E as IdCaptureConfig, F as IdError, I as IdErrorCode, L as IdFlowStep, M as IdCaptureMode, N as IdCaptureThresholds, O as IdCaptureDependencies, P as IdDocumentType, R as RecordingSession, S as CapturedImage, T as ID_ERROR_CODES, V as IdCaptureSettings, _ as IdCaptureActor, a as InitializeIdCaptureParams, b as idCaptureMachine, c as ValidationError, d as startRecordingSession, f as stopRecording, g as CreateIdCaptureActorOptions, h as validateUploadResponse, i as IdCaptureInitResult, j as IdCaptureInput, k as IdCaptureEvent, l as initializeIdCapture, m as uploadIdImage, n as IdCaptureState, o as StartRecordingParams, p as stopStream, r as createIdCaptureManager, s as UploadIdImageParams, t as IdCaptureManager, u as processId, v as createIdCaptureActor, w as DetectionStatus, x as CaptureIdResponse, y as IdCaptureMachine, z as UploadIdResponse } from "./index-O5gB82Up.js";
2
- import "./deepsightService-Un1ZwAHH.js";
3
- import { n as PermissionStatus, r as CameraStream, t as PermissionResult } from "./types-ee3LkWku.js";
4
- import "./Manager-DM1NlCX4.js";
5
- import "./Actor-Chvt8rE9.js";
6
- import "./StateMachine-B7tKroZs.js";
7
- import "./types-c0XgGLsM.js";
1
+ import { A as IdCaptureGeometry, B as DetectionOrientation, C as DetectionArea, D as IdCaptureContext, E as IdCaptureConfig, F as IdError, I as IdErrorCode, L as IdFlowStep, M as IdCaptureMode, N as IdCaptureThresholds, O as IdCaptureDependencies, P as IdDocumentType, R as RecordingSession, S as CapturedImage, T as ID_ERROR_CODES, V as IdCaptureSettings, _ as IdCaptureActor, a as InitializeIdCaptureParams, b as idCaptureMachine, c as ValidationError, d as startRecordingSession, f as stopRecording, g as CreateIdCaptureActorOptions, h as validateUploadResponse, i as IdCaptureInitResult, j as IdCaptureInput, k as IdCaptureEvent, l as initializeIdCapture, m as uploadIdImage, n as IdCaptureState, o as StartRecordingParams, p as stopStream, r as createIdCaptureManager, s as UploadIdImageParams, t as IdCaptureManager, u as processId, v as createIdCaptureActor, w as DetectionStatus, x as CaptureIdResponse, y as IdCaptureMachine, z as UploadIdResponse } from "./index-B_VIYINf.js";
2
+ import "./deepsightService-p7oLftiG.js";
3
+ import { n as PermissionStatus, t as PermissionResult } from "./types-CLuw51tO.js";
4
+ import "./Manager-C647XkuZ.js";
5
+ import { i as CameraStream } from "./types-B3jgq_IJ.js";
6
+ import "./Actor-DYtyiYF1.js";
7
+ import "./StateMachine-B3u4LjaP.js";
8
+ import "./types-Skrj9_8y.js";
8
9
  export { CameraStream, CaptureIdResponse, CapturedImage, CreateIdCaptureActorOptions, DetectionArea, DetectionOrientation, DetectionStatus, ID_ERROR_CODES, IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, IdCaptureMachine, IdCaptureManager, IdCaptureMode, IdCaptureSettings, IdCaptureState, IdCaptureThresholds, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, PermissionResult, PermissionStatus, RecordingSession, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
package/dist/id.esm.js CHANGED
@@ -1,10 +1,11 @@
1
- import "./events-h8K9H3OM.esm.js";
2
- import "./backCameraStream-CCvHeGHQ.esm.js";
3
- import "./src-t0pt3B2r.esm.js";
4
- import "./endpoints-DXp63GM6.esm.js";
5
- import "./deepsightService-Bn05rSAa.esm.js";
6
- import "./api-DlSxxyGw.esm.js";
7
- import { a as processId, c as stopStream, d as ID_ERROR_CODES, i as initializeIdCapture, l as uploadIdImage, n as createIdCaptureActor, o as startRecordingSession, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-CDh0aJOJ.esm.js";
8
- import "./stats-GJMiTm5k.esm.js";
1
+ import "./events-DuBPhaxY.esm.js";
2
+ import "./backCameraStream-Ly-xbK9L.esm.js";
3
+ import "./src-Bjg2C1oP.esm.js";
4
+ import "./endpoints-BK1EjE1H.esm.js";
5
+ import "./streamingEvents-BrVlVGe7.esm.js";
6
+ import "./deepsightService-CpmpXOnj.esm.js";
7
+ import "./api-J0YE3G-C.esm.js";
8
+ import { a as processId, c as stopStream, d as ID_ERROR_CODES, i as initializeIdCapture, l as uploadIdImage, n as createIdCaptureActor, o as startRecordingSession, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-Dc5SneKA.esm.js";
9
+ import "./stats-Baxc8J0w.esm.js";
9
10
 
10
11
  export { ID_ERROR_CODES, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
@@ -1,9 +1,10 @@
1
- import { i as IncodeCanvas, n as StreamCanvasCapture, r as IMotionSensorCapability, t as DeepsightService } from "./deepsightService-Un1ZwAHH.js";
2
- import { a as IRecordingCapability, c as MLProviderConfig, i as IStorageCapability, n as PermissionStatus, o as RecordingConnection, r as CameraStream, s as IMLProviderCapability, t as PermissionResult } from "./types-ee3LkWku.js";
3
- import { t as Manager } from "./Manager-DM1NlCX4.js";
4
- import { t as ActorRefFrom } from "./Actor-Chvt8rE9.js";
5
- import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-B7tKroZs.js";
6
- import { i as TutorialIdConfig, t as Flow } from "./types-c0XgGLsM.js";
1
+ import { i as IncodeCanvas, n as StreamCanvasCapture, r as IMotionSensorCapability, t as DeepsightService } from "./deepsightService-p7oLftiG.js";
2
+ import { a as RecordingConnection, i as IRecordingCapability, n as PermissionStatus, o as IMLProviderCapability, r as IStorageCapability, s as MLProviderConfig, t as PermissionResult } from "./types-CLuw51tO.js";
3
+ import { t as Manager } from "./Manager-C647XkuZ.js";
4
+ import { i as CameraStream } from "./types-B3jgq_IJ.js";
5
+ import { t as ActorRefFrom } from "./Actor-DYtyiYF1.js";
6
+ import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-B3u4LjaP.js";
7
+ import { i as TutorialIdConfig, t as Flow } from "./types-Skrj9_8y.js";
7
8
 
8
9
  //#region ../infra/src/capabilities/IAnalyticsCapability.d.ts
9
10
  interface IAnalyticsCapability {
package/dist/index.d.ts CHANGED
@@ -1,11 +1,12 @@
1
- import { A as IdCaptureGeometry, B as DetectionOrientation, C as DetectionArea, D as IdCaptureContext, E as IdCaptureConfig, F as IdError, I as IdErrorCode, L as IdFlowStep, M as IdCaptureMode, N as IdCaptureThresholds, O as IdCaptureDependencies, P as IdDocumentType, R as RecordingSession, S as CapturedImage, T as ID_ERROR_CODES, V as IdCaptureSettings, _ as IdCaptureActor, a as InitializeIdCaptureParams, b as idCaptureMachine, c as ValidationError, d as startRecordingSession, f as stopRecording, g as CreateIdCaptureActorOptions, h as validateUploadResponse, i as IdCaptureInitResult, j as IdCaptureInput, k as IdCaptureEvent, l as initializeIdCapture, m as uploadIdImage, n as IdCaptureState, o as StartRecordingParams, p as stopStream, r as createIdCaptureManager, s as UploadIdImageParams, t as IdCaptureManager, u as processId, v as createIdCaptureActor, w as DetectionStatus, x as CaptureIdResponse, y as IdCaptureMachine, z as UploadIdResponse } from "./index-O5gB82Up.js";
2
- import "./deepsightService-Un1ZwAHH.js";
3
- import { n as PermissionStatus, r as CameraStream, t as PermissionResult } from "./types-ee3LkWku.js";
4
- import { n as warmupWasm, t as WasmPipeline } from "./warmup-BUv67ifS.js";
5
- import "./Manager-DM1NlCX4.js";
6
- import "./Actor-Chvt8rE9.js";
7
- import "./StateMachine-B7tKroZs.js";
8
- import "./types-c0XgGLsM.js";
1
+ import { A as IdCaptureGeometry, B as DetectionOrientation, C as DetectionArea, D as IdCaptureContext, E as IdCaptureConfig, F as IdError, I as IdErrorCode, L as IdFlowStep, M as IdCaptureMode, N as IdCaptureThresholds, O as IdCaptureDependencies, P as IdDocumentType, R as RecordingSession, S as CapturedImage, T as ID_ERROR_CODES, V as IdCaptureSettings, _ as IdCaptureActor, a as InitializeIdCaptureParams, b as idCaptureMachine, c as ValidationError, d as startRecordingSession, f as stopRecording, g as CreateIdCaptureActorOptions, h as validateUploadResponse, i as IdCaptureInitResult, j as IdCaptureInput, k as IdCaptureEvent, l as initializeIdCapture, m as uploadIdImage, n as IdCaptureState, o as StartRecordingParams, p as stopStream, r as createIdCaptureManager, s as UploadIdImageParams, t as IdCaptureManager, u as processId, v as createIdCaptureActor, w as DetectionStatus, x as CaptureIdResponse, y as IdCaptureMachine, z as UploadIdResponse } from "./index-B_VIYINf.js";
2
+ import "./deepsightService-p7oLftiG.js";
3
+ import { n as PermissionStatus, t as PermissionResult } from "./types-CLuw51tO.js";
4
+ import { n as warmupWasm, t as WasmPipeline } from "./warmup-BIZ_8rAa.js";
5
+ import "./Manager-C647XkuZ.js";
6
+ import { i as CameraStream } from "./types-B3jgq_IJ.js";
7
+ import "./Actor-DYtyiYF1.js";
8
+ import "./StateMachine-B3u4LjaP.js";
9
+ import "./types-Skrj9_8y.js";
9
10
 
10
11
  //#region ../infra/src/http/types.d.ts
11
12
  type CreateApiConfig = {
package/dist/index.esm.js CHANGED
@@ -1,11 +1,12 @@
1
- import { a as videoSelfieEvents, c as screenClosed, d as addEvent, f as flushEventQueue, i as tutorialScreenNamesMapper, l as screenEvent, n as eventModuleNames, o as moduleClosed, p as subscribeEvent, r as eventScreenNames, s as moduleOpened, t as cameraScreenNamesMapper, u as screenOpened } from "./events-h8K9H3OM.esm.js";
2
- import { c as requestPermission, l as getDeviceClass, s as checkPermission, u as getBrowser } from "./backCameraStream-CCvHeGHQ.esm.js";
3
- import { O as createApi_default, o as warmupWasm, r as WasmUtilProvider } from "./src-t0pt3B2r.esm.js";
4
- import "./endpoints-DXp63GM6.esm.js";
5
- import "./deepsightService-Bn05rSAa.esm.js";
6
- import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-DlSxxyGw.esm.js";
7
- import { _ as createSession, a as processId, c as stopStream, d as ID_ERROR_CODES, f as getDisableIpify, g as resetSessionInit, h as isSessionInitialized, i as initializeIdCapture, l as uploadIdImage, m as initializeSession, n as createIdCaptureActor, o as startRecordingSession, p as getSessionFeatures, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-CDh0aJOJ.esm.js";
8
- import "./stats-GJMiTm5k.esm.js";
1
+ import { a as videoSelfieEvents, c as screenClosed, d as addEvent, f as flushEventQueue, i as tutorialScreenNamesMapper, l as screenEvent, n as eventModuleNames, o as moduleClosed, p as subscribeEvent, r as eventScreenNames, s as moduleOpened, t as cameraScreenNamesMapper, u as screenOpened } from "./events-DuBPhaxY.esm.js";
2
+ import "./backCameraStream-Ly-xbK9L.esm.js";
3
+ import { O as createApi_default, o as warmupWasm, r as WasmUtilProvider } from "./src-Bjg2C1oP.esm.js";
4
+ import "./endpoints-BK1EjE1H.esm.js";
5
+ import { c as getDeviceClass, l as getBrowser, o as checkPermission, s as requestPermission } from "./streamingEvents-BrVlVGe7.esm.js";
6
+ import "./deepsightService-CpmpXOnj.esm.js";
7
+ import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-J0YE3G-C.esm.js";
8
+ import { _ as createSession, a as processId, c as stopStream, d as ID_ERROR_CODES, f as getDisableIpify, g as resetSessionInit, h as isSessionInitialized, i as initializeIdCapture, l as uploadIdImage, m as initializeSession, n as createIdCaptureActor, o as startRecordingSession, p as getSessionFeatures, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-Dc5SneKA.esm.js";
9
+ import "./stats-Baxc8J0w.esm.js";
9
10
 
10
11
  //#region src/setup.ts
11
12
  let wasmConfig;
@@ -1,4 +1,4 @@
1
- import { i as __toCommonJS, n as __esm, r as __export, t as __commonJS } from "./chunk-BcpNb8MJ.esm.js";
1
+ import { i as __toCommonJS, n as __esm, r as __export, t as __commonJS } from "./chunk-3k-zyWo_.esm.js";
2
2
 
3
3
  //#region ../../node_modules/.pnpm/jsnlog@2.30.0/node_modules/jsnlog/jsnlog.js
4
4
  var require_jsnlog = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/jsnlog@2.30.0/node_modules/jsnlog/jsnlog.js": ((exports) => {
package/dist/phone.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-DM1NlCX4.js";
1
+ import { t as Manager } from "./Manager-C647XkuZ.js";
2
2
 
3
3
  //#region src/modules/phone/types.d.ts
4
4
 
package/dist/phone.esm.js CHANGED
@@ -1,7 +1,7 @@
1
- import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-h8K9H3OM.esm.js";
2
- import { D as createManager, p as BrowserTimerProvider } from "./src-t0pt3B2r.esm.js";
3
- import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-DXp63GM6.esm.js";
4
- import { t as api } from "./api-DlSxxyGw.esm.js";
1
+ import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-DuBPhaxY.esm.js";
2
+ import { D as createManager, p as BrowserTimerProvider } from "./src-Bjg2C1oP.esm.js";
3
+ import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-BK1EjE1H.esm.js";
4
+ import { t as api } from "./api-J0YE3G-C.esm.js";
5
5
 
6
6
  //#region src/modules/phone/phoneServices.ts
7
7
  async function fetchPhone(signal) {
package/dist/selfie.d.ts CHANGED
@@ -1,10 +1,11 @@
1
- import { i as IncodeCanvas, n as StreamCanvasCapture, t as DeepsightService } from "./deepsightService-Un1ZwAHH.js";
2
- import { c as MLProviderConfig, n as PermissionStatus, r as CameraStream, s as IMLProviderCapability, t as PermissionResult } from "./types-ee3LkWku.js";
3
- import { t as WasmPipeline } from "./warmup-BUv67ifS.js";
4
- import { a as FaceCaptureDependencies, i as DetectionStatus, n as FaceCaptureManagerState, o as FaceErrorCode, r as BaseFaceCaptureConfig, t as FaceCaptureManager } from "./faceCaptureManagerFactory-CWGzTGlG.js";
5
- import { t as Manager } from "./Manager-DM1NlCX4.js";
6
- import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-B7tKroZs.js";
7
- import { r as FlowModuleConfig } from "./types-c0XgGLsM.js";
1
+ import { i as IncodeCanvas, n as StreamCanvasCapture, t as DeepsightService } from "./deepsightService-p7oLftiG.js";
2
+ import { n as PermissionStatus, o as IMLProviderCapability, s as MLProviderConfig, t as PermissionResult } from "./types-CLuw51tO.js";
3
+ import { t as WasmPipeline } from "./warmup-BIZ_8rAa.js";
4
+ import { a as FaceCaptureDependencies, i as DetectionStatus, n as FaceCaptureManagerState, o as FaceErrorCode, r as BaseFaceCaptureConfig, t as FaceCaptureManager } from "./faceCaptureManagerFactory-5Blo_gz0.js";
5
+ import { t as Manager } from "./Manager-C647XkuZ.js";
6
+ import { i as CameraStream } from "./types-B3jgq_IJ.js";
7
+ import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-B3u4LjaP.js";
8
+ import { r as FlowModuleConfig } from "./types-Skrj9_8y.js";
8
9
 
9
10
  //#region ../infra/src/capabilities/IFaceDetectionCapability.d.ts
10
11
  /**
@@ -1,11 +1,12 @@
1
- import { d as addEvent, n as eventModuleNames } from "./events-h8K9H3OM.esm.js";
2
- import "./backCameraStream-CCvHeGHQ.esm.js";
3
- import { m as BrowserStorageProvider, r as WasmUtilProvider } from "./src-t0pt3B2r.esm.js";
4
- import { a as fromPromise, o as createActor, r as assign } from "./endpoints-DXp63GM6.esm.js";
5
- import "./deepsightService-Bn05rSAa.esm.js";
6
- import "./api-DlSxxyGw.esm.js";
7
- import "./stats-GJMiTm5k.esm.js";
8
- import { a as FACE_ERROR_CODES, i as uploadSelfie, n as faceCaptureMachine, o as createFaceCaptureManager, r as processFace, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-BflAHwmc.esm.js";
1
+ import { d as addEvent, n as eventModuleNames } from "./events-DuBPhaxY.esm.js";
2
+ import "./backCameraStream-Ly-xbK9L.esm.js";
3
+ import { m as BrowserStorageProvider, r as WasmUtilProvider } from "./src-Bjg2C1oP.esm.js";
4
+ import { a as fromPromise, o as createActor, r as assign } from "./endpoints-BK1EjE1H.esm.js";
5
+ import "./streamingEvents-BrVlVGe7.esm.js";
6
+ import "./deepsightService-CpmpXOnj.esm.js";
7
+ import "./api-J0YE3G-C.esm.js";
8
+ import "./stats-Baxc8J0w.esm.js";
9
+ import { a as FACE_ERROR_CODES, i as uploadSelfie, n as faceCaptureMachine, o as createFaceCaptureManager, r as processFace, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-JLWm8_vt.esm.js";
9
10
 
10
11
  //#region src/modules/selfie/selfieErrorUtils.ts
11
12
  const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);