@incodetech/core 0.0.0-dev-20260402-682edb5 → 0.0.0-dev-20260402-7cf9db4

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 (91) hide show
  1. package/dist/Actor-phIcsUhv.d.ts +2 -0
  2. package/dist/BaseWasmProvider-BFXU7jj8.esm.js +1536 -0
  3. package/dist/BrowserEnvironmentProvider-DApG6lNu.esm.js +89 -0
  4. package/dist/BrowserTimerProvider-CRhCvln7.esm.js +22 -0
  5. package/dist/Manager-BndLda4_.d.ts +19 -0
  6. package/dist/{events-Cc1xUUgF.esm.js → Manager-D_DMzMWz.esm.js} +114 -11
  7. package/dist/{warmup-CzfSiaMj.d.ts → StateMachine-CGAi8x_b.d.ts} +4 -1
  8. package/dist/StreamCanvasCapture-9VAzOfOv.esm.js +410 -0
  9. package/dist/WasmUtilProvider-DctESPCy.esm.js +114 -0
  10. package/dist/{addressSearch-DzOdaNEA.esm.js → addressSearch-CYGzuJJ3.esm.js} +3 -3
  11. package/dist/authentication.d.ts +9 -7
  12. package/dist/authentication.esm.js +12 -10
  13. package/dist/{authenticationManager-TaI12wf3.d.ts → authenticationManager-B5Yv9bDw.d.ts} +2 -2
  14. package/dist/{authenticationManager-CBSPCdJc.esm.js → authenticationManager-C9iQ1d2a.esm.js} +5 -5
  15. package/dist/{backCameraStream-BGAbuvw1.esm.js → backCameraStream-BJwEXNl4.esm.js} +2 -1
  16. package/dist/camera-D-MPXRbZ.esm.js +22 -0
  17. package/dist/camera-Dv2WEhGe.d.ts +4 -0
  18. package/dist/consent.d.ts +55 -54
  19. package/dist/consent.esm.js +2 -3
  20. package/dist/curp-validation.d.ts +5 -3
  21. package/dist/curp-validation.esm.js +2 -3
  22. package/dist/deepsightLoader-D2MKmB5z.esm.js +48 -0
  23. package/dist/{deepsightService-DxA--87N.d.ts → deepsightService-CWnhwXLw.d.ts} +223 -17
  24. package/dist/document-capture.d.ts +58 -56
  25. package/dist/document-capture.esm.js +5 -4
  26. package/dist/document-upload.d.ts +47 -45
  27. package/dist/document-upload.esm.js +5 -4
  28. package/dist/ekyb.d.ts +3 -2
  29. package/dist/ekyb.esm.js +8 -7
  30. package/dist/ekyc.d.ts +3 -2
  31. package/dist/ekyc.esm.js +133 -123
  32. package/dist/email.d.ts +3 -2
  33. package/dist/email.esm.js +4 -4
  34. package/dist/{emailManager-DN_q_zxy.d.ts → emailManager-BIq6pJa8.d.ts} +11 -4
  35. package/dist/{emailManager-DSR9gQLX.esm.js → emailManager-C5GCSw78.esm.js} +43 -23
  36. package/dist/extensibility.d.ts +45 -43
  37. package/dist/extensibility.esm.js +26 -15
  38. package/dist/face-match.d.ts +1 -1
  39. package/dist/face-match.esm.js +2 -3
  40. package/dist/{faceCaptureManagerFactory-CGpkO_S3.d.ts → faceCaptureManagerFactory-CN5-GRxP.d.ts} +89 -142
  41. package/dist/{faceCaptureSetup-Rr7LUbBm.esm.js → faceCaptureSetup-DYRykM5Y.esm.js} +413 -7
  42. package/dist/flow.d.ts +6 -5
  43. package/dist/flow.esm.js +7 -7
  44. package/dist/{flowCompletionService-Bkaerugt.esm.js → flowCompletionService-CBvXiMKa.esm.js} +1 -1
  45. package/dist/{flowServices-Bt6lMLUI.esm.js → flowServices-CQ3rTJLE.esm.js} +2 -2
  46. package/dist/geolocation.d.ts +2 -1
  47. package/dist/geolocation.esm.js +16 -3
  48. package/dist/government-validation.d.ts +2 -1
  49. package/dist/government-validation.esm.js +3 -3
  50. package/dist/id.d.ts +9 -6
  51. package/dist/id.esm.js +14 -11
  52. package/dist/{idCaptureManager-Dc2NJMy_.d.ts → idCaptureManager-B1RWflj0.d.ts} +15 -12
  53. package/dist/{idCaptureManager-QyM4nIKM.esm.js → idCaptureManager-D5rjCu9r.esm.js} +178 -8
  54. package/dist/index.d.ts +68 -21
  55. package/dist/index.esm.js +440 -11
  56. package/dist/mandatory-consent.d.ts +58 -56
  57. package/dist/mandatory-consent.esm.js +2 -3
  58. package/dist/phone.d.ts +3 -2
  59. package/dist/phone.esm.js +4 -4
  60. package/dist/{phoneManager-D2A0hXXq.d.ts → phoneManager-Ba66ysK2.d.ts} +9 -2
  61. package/dist/{phoneManager-D2nZtu-b.esm.js → phoneManager-CQJim-Ky.esm.js} +32 -21
  62. package/dist/platform-B3nGssGZ.esm.js +83 -0
  63. package/dist/redirect-to-mobile.d.ts +2 -1
  64. package/dist/redirect-to-mobile.esm.js +3 -3
  65. package/dist/selfie.d.ts +9 -7
  66. package/dist/selfie.esm.js +12 -10
  67. package/dist/{selfieManager-B4Nnp7ws.d.ts → selfieManager-BnfnTPcx.d.ts} +2 -2
  68. package/dist/{selfieManager-CvE35L72.esm.js → selfieManager-DYW1C2GP.esm.js} +4 -3
  69. package/dist/session-TBPhHmyy.esm.js +3130 -0
  70. package/dist/session.d.ts +1 -1
  71. package/dist/session.esm.js +2 -2
  72. package/dist/signature.d.ts +3 -3
  73. package/dist/signature.esm.js +3 -4
  74. package/dist/{stats-D0m3TvIg.esm.js → stats-D4C7iDy1.esm.js} +1 -1
  75. package/dist/stats.esm.js +2 -2
  76. package/dist/{types-oveF7RrS.d.ts → types-BWGxcjiZ.d.ts} +1 -1
  77. package/dist/{types-mQLzH6uw.d.ts → types-BX1ZlbSR.d.ts} +1 -1
  78. package/package.json +1 -1
  79. package/dist/deepsightLoader-B93Oa9pS.esm.js +0 -24
  80. package/dist/deepsightService-CLUMQ5ee.esm.js +0 -235
  81. package/dist/index-BTaLQSj9.d.ts +0 -219
  82. package/dist/recordingsRepository-Djt_In2b.esm.js +0 -122
  83. package/dist/session-CUy9-Yzi.esm.js +0 -250
  84. package/dist/src-8rn6DoH7.esm.js +0 -6554
  85. /package/dist/{api-G4JA8CXK.esm.js → api-3fZO5bmj.esm.js} +0 -0
  86. /package/dist/{browserSimulation-C8gNnn5p.esm.js → browserSimulation-zWJAZ1vA.esm.js} +0 -0
  87. /package/dist/{displayErrors-BgtBHbfb.d.ts → displayErrors-DzzB3fcR.d.ts} +0 -0
  88. /package/dist/{flowCompletionService-De8JDo87.d.ts → flowCompletionService-C_CShl_d.d.ts} +0 -0
  89. /package/dist/{id-B30uqGbp.esm.js → id-Dv0it9CY.esm.js} +0 -0
  90. /package/dist/{index-LKrIp3Oo.d.ts → index-CuY8tqBC.d.ts} +0 -0
  91. /package/dist/{lib-qeMam2F_.esm.js → lib-B5byelWf.esm.js} +0 -0
@@ -1,7 +1,7 @@
1
- import { S as createActor, b as fromCallback, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
2
- import { M as createManager, v as BrowserTimerProvider } from "./src-8rn6DoH7.esm.js";
3
- import { t as api } from "./api-G4JA8CXK.esm.js";
1
+ import { t as api } from "./api-3fZO5bmj.esm.js";
2
+ import { C as fromPromise, S as fromCallback, b as setup, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, w as createActor, x as assign } from "./Manager-D_DMzMWz.esm.js";
4
3
  import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
4
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CRhCvln7.esm.js";
5
5
 
6
6
  //#region src/modules/email/emailServices.ts
7
7
  async function fetchEmail(signal) {
@@ -46,13 +46,14 @@ const emailMachine = setup({
46
46
  verifyOtp: fromPromise(async ({ input, signal }) => {
47
47
  return verifyEmailOtp(input.code, signal);
48
48
  }),
49
- resendTimer: fromCallback(({ sendBack }) => {
49
+ resendTimer: fromCallback(({ input, sendBack }) => {
50
50
  const timer = BrowserTimerProvider.getInstance();
51
- let seconds = RESEND_TIMER_SECONDS;
51
+ let remaining = input.seconds;
52
+ if (remaining <= 0) return () => {};
52
53
  const interval = timer.setInterval(() => {
53
- seconds -= 1;
54
54
  sendBack({ type: "TICK" });
55
- if (seconds <= 0) timer.clearInterval(interval);
55
+ remaining -= 1;
56
+ if (remaining <= 0) timer.clearInterval(interval);
56
57
  }, 1e3);
57
58
  return () => timer.clearInterval(interval);
58
59
  })
@@ -100,7 +101,6 @@ const emailMachine = setup({
100
101
  resendTimerActive: newTimer > 0
101
102
  };
102
103
  }),
103
- stopResendTimer: assign({ resendTimerActive: () => false }),
104
104
  resetContext: assign(({ context }) => ({
105
105
  config: context.config,
106
106
  email: "",
@@ -113,11 +113,7 @@ const emailMachine = setup({
113
113
  attemptsRemaining: context.config.maxOtpAttempts ?? 3,
114
114
  resendTimer: 0,
115
115
  resendTimerActive: false
116
- })),
117
- clearResendTimer: assign({
118
- resendTimer: () => 0,
119
- resendTimerActive: () => false
120
- })
116
+ }))
121
117
  },
122
118
  guards: {
123
119
  hasPrefill: ({ context }) => context.config.prefill,
@@ -171,7 +167,7 @@ const emailMachine = setup({
171
167
  src: "submitEmail",
172
168
  input: ({ context }) => ({ email: context.email }),
173
169
  onDone: [{
174
- target: "sendingOtp",
170
+ target: "sendingInitialOtp",
175
171
  guard: "hasOtpVerification"
176
172
  }, { target: "finished" }],
177
173
  onError: {
@@ -179,27 +175,42 @@ const emailMachine = setup({
179
175
  actions: "setEmailError"
180
176
  }
181
177
  } },
182
- sendingOtp: { invoke: {
178
+ sendingInitialOtp: { invoke: {
183
179
  id: "sendOtp",
184
180
  src: "sendOtp",
185
- onDone: { target: "awaitingOtp" },
181
+ onDone: {
182
+ target: "awaitingOtp",
183
+ actions: "startResendTimer"
184
+ },
186
185
  onError: {
187
186
  target: "awaitingOtp",
188
- actions: "setError"
187
+ actions: ["setError", "startResendTimer"]
188
+ }
189
+ } },
190
+ resendingOtp: { invoke: {
191
+ id: "sendOtp",
192
+ src: "sendOtp",
193
+ onDone: {
194
+ target: "awaitingOtp",
195
+ actions: "startResendTimer"
196
+ },
197
+ onError: {
198
+ target: "awaitingOtp",
199
+ actions: ["setError", "startResendTimer"]
189
200
  }
190
201
  } },
191
202
  awaitingOtp: {
192
- entry: "startResendTimer",
193
203
  invoke: {
194
204
  id: "resendTimer",
195
- src: "resendTimer"
205
+ src: "resendTimer",
206
+ input: ({ context }) => ({ seconds: context.resendTimer })
196
207
  },
197
208
  on: {
198
209
  TICK: { actions: "tickResendTimer" },
199
210
  OTP_CHANGED: { actions: "setOtpCode" },
200
211
  VERIFY_OTP: { target: "verifyingOtp" },
201
212
  RESEND_OTP: {
202
- target: "sendingOtp",
213
+ target: "resendingOtp",
203
214
  guard: "canResend"
204
215
  },
205
216
  BACK: { target: "inputting" }
@@ -237,14 +248,19 @@ const emailMachine = setup({
237
248
  }]
238
249
  } },
239
250
  otpError: {
240
- entry: "clearResendTimer",
251
+ invoke: {
252
+ id: "resendTimer",
253
+ src: "resendTimer",
254
+ input: ({ context }) => ({ seconds: context.resendTimer })
255
+ },
241
256
  on: {
257
+ TICK: { actions: "tickResendTimer" },
242
258
  OTP_CHANGED: {
243
259
  target: "awaitingOtp",
244
260
  actions: "setOtpCode"
245
261
  },
246
262
  RESEND_OTP: {
247
- target: "sendingOtp",
263
+ target: "resendingOtp",
248
264
  guard: "canResend"
249
265
  },
250
266
  BACK: { target: "inputting" }
@@ -373,7 +389,11 @@ function mapState(snapshot) {
373
389
  canResend: !context.resendTimerActive,
374
390
  attemptsRemaining: context.attemptsRemaining
375
391
  };
376
- if (typedSnapshot.matches("verifyingOtp")) return { status: "verifyingOtp" };
392
+ if (typedSnapshot.matches("verifyingOtp")) return {
393
+ status: "verifyingOtp",
394
+ resendTimer: context.resendTimer,
395
+ canResend: !context.resendTimerActive
396
+ };
377
397
  if (typedSnapshot.matches("otpError")) return {
378
398
  status: "otpError",
379
399
  otpError: context.otpError ?? "Invalid OTP code",
@@ -1,37 +1,33 @@
1
- import { S as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-Dc2NJMy_.js";
2
- import { l as createActor, s as fromPromise } from "./index-BTaLQSj9.js";
3
- import { i as IStorageCapability } from "./deepsightService-DxA--87N.js";
4
- import { C as WasmUtilConfig, S as VirtualCameraCheckOutput, b as BaseWasmProvider, c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine, x as IWasmUtilCapability } from "./faceCaptureManagerFactory-CGpkO_S3.js";
5
- import "./warmup-CzfSiaMj.js";
6
- import "./types-oveF7RrS.js";
7
- import "./types-mQLzH6uw.js";
8
- import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-B4Nnp7ws.js";
9
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-TaI12wf3.js";
10
- import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-DN_q_zxy.js";
11
- import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-D2A0hXXq.js";
1
+ import { r as fromPromise } from "./StateMachine-CGAi8x_b.js";
2
+ import { n as createActor } from "./Actor-phIcsUhv.js";
3
+ import { i as WasmUtilConfig, n as IWasmUtilCapability, o as IStorageCapability, r as VirtualCameraCheckOutput } from "./deepsightService-CWnhwXLw.js";
4
+ import { S as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-B1RWflj0.js";
5
+ import "./camera-Dv2WEhGe.js";
6
+ import "./types-BWGxcjiZ.js";
7
+ import "./types-BX1ZlbSR.js";
8
+ import "./Manager-BndLda4_.js";
9
+ import { c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, p as BaseWasmProvider, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine } from "./faceCaptureManagerFactory-CN5-GRxP.js";
10
+ import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-BnfnTPcx.js";
11
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-B5Yv9bDw.js";
12
+ import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-BIq6pJa8.js";
13
+ import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-Ba66ysK2.js";
12
14
 
13
- //#region ../infra/src/capabilities/IFingerprintCapability.d.ts
14
- type DeviceFingerprintInfo = {
15
- device: {
16
- model?: string;
17
- };
18
- os: {
19
- name?: string;
20
- version?: string;
15
+ //#region src/modules/authentication/authenticationUploadService.d.ts
16
+ type AuthenticationUploadResponse = {
17
+ overallStatus: 'PASS' | 'FAIL';
18
+ captureAttemptsLimit: {
19
+ max: number;
20
+ remaining: number;
21
21
  };
22
- browser: {
23
- name?: string;
24
- version?: string;
22
+ candidate: string;
23
+ error: {
24
+ name: string;
25
+ message: string;
25
26
  };
27
+ imageBase64?: string;
28
+ selfieEncryptedBase64?: string;
29
+ metadata?: string;
26
30
  };
27
- type FingerprintResult = {
28
- visitorId: string;
29
- ip: string;
30
- deviceInfo: DeviceFingerprintInfo;
31
- };
32
- //#endregion
33
- //#region ../infra/src/device/getDeviceData.d.ts
34
- declare function getDeviceFingerprintInfo(): Promise<DeviceFingerprintInfo>;
35
31
  //#endregion
36
32
  //#region ../infra/src/providers/browser/BrowserStorageProvider.d.ts
37
33
  /**
@@ -95,22 +91,28 @@ declare class WasmUtilProvider extends BaseWasmProvider implements IWasmUtilCapa
95
91
  getVersions(): Promise<unknown>;
96
92
  }
97
93
  //#endregion
98
- //#region src/modules/authentication/authenticationUploadService.d.ts
99
- type AuthenticationUploadResponse = {
100
- overallStatus: 'PASS' | 'FAIL';
101
- captureAttemptsLimit: {
102
- max: number;
103
- remaining: number;
94
+ //#region ../infra/src/capabilities/IFingerprintCapability.d.ts
95
+ type DeviceFingerprintInfo = {
96
+ device: {
97
+ model?: string;
104
98
  };
105
- candidate: string;
106
- error: {
107
- name: string;
108
- message: string;
99
+ os: {
100
+ name?: string;
101
+ version?: string;
102
+ };
103
+ browser: {
104
+ name?: string;
105
+ version?: string;
109
106
  };
110
- imageBase64?: string;
111
- selfieEncryptedBase64?: string;
112
- metadata?: string;
113
107
  };
108
+ type FingerprintResult = {
109
+ visitorId: string;
110
+ ip: string;
111
+ deviceInfo: DeviceFingerprintInfo;
112
+ };
113
+ //#endregion
114
+ //#region ../infra/src/device/getDeviceData.d.ts
115
+ declare function getDeviceFingerprintInfo(): Promise<DeviceFingerprintInfo>;
114
116
  //#endregion
115
117
  //#region src/internal/fingerprint/fingerprintApi.d.ts
116
118
  declare function getFingerprint(disableIpify?: boolean): Promise<FingerprintResult>;
@@ -1,18 +1,29 @@
1
- import { S as createActor, x as fromPromise } from "./events-Cc1xUUgF.esm.js";
2
- import "./backCameraStream-BGAbuvw1.esm.js";
3
- import { P as getDeviceFingerprintInfo, s as WasmUtilProvider, y as BrowserStorageProvider } from "./src-8rn6DoH7.esm.js";
4
- import "./recordingsRepository-Djt_In2b.esm.js";
5
- import "./browserSimulation-C8gNnn5p.esm.js";
6
- import "./api-G4JA8CXK.esm.js";
1
+ import "./platform-B3nGssGZ.esm.js";
2
+ import "./BaseWasmProvider-BFXU7jj8.esm.js";
3
+ import { f as BrowserStorageProvider } from "./StreamCanvasCapture-9VAzOfOv.esm.js";
4
+ import "./browserSimulation-zWJAZ1vA.esm.js";
5
+ import "./api-3fZO5bmj.esm.js";
6
+ import { C as fromPromise, w as createActor } from "./Manager-D_DMzMWz.esm.js";
7
7
  import "./endpoints-CCuj1KZH.esm.js";
8
- import { s as getFingerprint } from "./session-CUy9-Yzi.esm.js";
9
- import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-QyM4nIKM.esm.js";
10
- import "./deepsightService-CLUMQ5ee.esm.js";
11
- import "./stats-D0m3TvIg.esm.js";
12
- import { t as faceCaptureMachine } from "./faceCaptureSetup-Rr7LUbBm.esm.js";
13
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CBSPCdJc.esm.js";
14
- import { n as createEmailManagerFromActor } from "./emailManager-DSR9gQLX.esm.js";
15
- import { n as createSelfieManagerFromActor } from "./selfieManager-CvE35L72.esm.js";
16
- import { n as createPhoneManagerFromActor } from "./phoneManager-D2nZtu-b.esm.js";
8
+ import { c as FingerprintProvider, l as getDeviceFingerprintInfo, s as IpifyProvider, t as getDisableIpify } from "./session-TBPhHmyy.esm.js";
9
+ import "./BrowserEnvironmentProvider-DApG6lNu.esm.js";
10
+ import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-D5rjCu9r.esm.js";
11
+ import "./BrowserTimerProvider-CRhCvln7.esm.js";
12
+ import "./camera-D-MPXRbZ.esm.js";
13
+ import "./stats-D4C7iDy1.esm.js";
14
+ import "./backCameraStream-BJwEXNl4.esm.js";
15
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-DctESPCy.esm.js";
16
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-DYRykM5Y.esm.js";
17
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-C9iQ1d2a.esm.js";
18
+ import { n as createEmailManagerFromActor } from "./emailManager-C5GCSw78.esm.js";
19
+ import { n as createSelfieManagerFromActor } from "./selfieManager-DYW1C2GP.esm.js";
20
+ import { n as createPhoneManagerFromActor } from "./phoneManager-CQJim-Ky.esm.js";
17
21
 
22
+ //#region src/internal/fingerprint/fingerprintApi.ts
23
+ async function getFingerprint(disableIpify) {
24
+ const shouldDisableIpify = disableIpify ?? getDisableIpify();
25
+ return new FingerprintProvider(new IpifyProvider()).getFingerprint(shouldDisableIpify);
26
+ }
27
+
28
+ //#endregion
18
29
  export { BrowserStorageProvider, WasmUtilProvider, createActor, createAuthenticationManagerFromActor, createEmailManagerFromActor, createIdCaptureManagerFromActor, createPhoneManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromPromise, getDeviceFingerprintInfo, getFingerprint };
@@ -1,4 +1,4 @@
1
- import { f as Manager } from "./index-BTaLQSj9.js";
1
+ import { t as Manager } from "./Manager-BndLda4_.js";
2
2
 
3
3
  //#region src/modules/face-match/types.d.ts
4
4
 
@@ -1,6 +1,5 @@
1
- import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
2
- import { M as createManager } from "./src-8rn6DoH7.esm.js";
3
- import { t as api } from "./api-G4JA8CXK.esm.js";
1
+ import { t as api } from "./api-3fZO5bmj.esm.js";
2
+ import { C as fromPromise, b as setup, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, w as createActor, x as assign } from "./Manager-D_DMzMWz.esm.js";
4
3
  import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
5
4
 
6
5
  //#region src/modules/face-match/faceMatchServices.ts
@@ -1,8 +1,92 @@
1
- import { a as AnyStateMachine, c as ActorRefFrom, d as CameraStream, f as Manager, g as IncodeCanvas, o as StateMachine, u as StreamCanvasCapture } from "./index-BTaLQSj9.js";
2
- import { a as IRecordingCapability, c as IMLProviderCapability, i as IStorageCapability, l as MLProviderConfig, n as PermissionResult, r as PermissionStatus, t as DeepsightService } from "./deepsightService-DxA--87N.js";
3
- import { n as WasmPipeline } from "./warmup-CzfSiaMj.js";
4
- import { r as FlowModuleConfig, t as Flow } from "./types-mQLzH6uw.js";
1
+ import { a as WasmPipeline, n as StateMachine, t as AnyStateMachine } from "./StateMachine-CGAi8x_b.js";
2
+ import { t as ActorRefFrom } from "./Actor-phIcsUhv.js";
3
+ import { a as StreamCanvasCapture, c as PermissionResult, f as IMLProviderCapability, l as PermissionStatus, m as IncodeCanvas, n as IWasmUtilCapability, o as IStorageCapability, p as MLProviderConfig, t as DeepsightService, u as IRecordingCapability } from "./deepsightService-CWnhwXLw.js";
4
+ import { t as CameraStream } from "./camera-Dv2WEhGe.js";
5
+ import { r as FlowModuleConfig, t as Flow } from "./types-BX1ZlbSR.js";
6
+ import { t as Manager } from "./Manager-BndLda4_.js";
5
7
 
8
+ //#region src/modules/authentication/authenticationStateMachine.d.ts
9
+ declare const _authenticationMachine: AnyStateMachine;
10
+ type AuthenticationMachine = typeof _authenticationMachine;
11
+ declare const authenticationMachine: AnyStateMachine;
12
+ //#endregion
13
+ //#region src/internal/faceCapture/types.d.ts
14
+ type CameraResolution = {
15
+ width?: number;
16
+ height?: number;
17
+ };
18
+ type BaseFaceCaptureConfig = {
19
+ showTutorial: boolean;
20
+ showPreview?: boolean;
21
+ assistedOnboarding?: boolean;
22
+ enableFaceRecording?: boolean;
23
+ autoCaptureTimeout: number;
24
+ captureAttempts?: number;
25
+ numberOfAttempts?: number;
26
+ validateLenses?: boolean;
27
+ validateFaceMask?: boolean;
28
+ validateHeadCover?: boolean;
29
+ validateClosedEyes?: boolean;
30
+ validateBrightness?: boolean;
31
+ deepsightLiveness?: 'SINGLE_FRAME' | 'MULTIMODAL' | 'VIDEOLIVENESS';
32
+ cameraResolution?: CameraResolution;
33
+ recording?: {
34
+ capability?: IRecordingCapability;
35
+ };
36
+ ds?: Flow['ds'];
37
+ };
38
+ type FaceCaptureDependencies = {
39
+ storage: IStorageCapability;
40
+ getWasmUtil: () => Promise<IWasmUtilCapability>;
41
+ trackCaptureAttemptFinished?: (payload: {
42
+ logs: string;
43
+ }) => void;
44
+ };
45
+ type DetectionStatus = 'idle' | 'detecting' | 'noFace' | 'tooManyFaces' | 'tooClose' | 'tooFar' | 'blur' | 'dark' | 'faceAngle' | 'headWear' | 'lenses' | 'eyesClosed' | 'faceMask' | 'centerFace' | 'manualCapture' | 'success' | 'error' | 'capturing' | 'getReady' | 'getReadyFinished' | 'offline';
46
+ declare const FACE_ERROR_CODES: {
47
+ readonly FACE_OCCLUDED: "FACE_OCCLUDED";
48
+ readonly LIVENESS: "LIVENESS_ERROR";
49
+ readonly BRIGHTNESS: "BRIGHTNESS_ERROR";
50
+ readonly LENSES: "LENSES_ERROR";
51
+ readonly MASK: "MASK_ERROR";
52
+ readonly CLOSED_EYES: "CLOSED_EYES_ERROR";
53
+ readonly HEAD_COVER: "HEAD_COVER_ERROR";
54
+ readonly SERVER: "SERVER_ERROR";
55
+ readonly FACE_NOT_FOUND: "FACE_NOT_FOUND";
56
+ readonly MULTIPLE_FACES: "MULTIPLE_FACES";
57
+ readonly TOO_BLURRY: "TOO_BLURRY_ERROR";
58
+ readonly TOO_DARK: "TOO_DARK_ERROR";
59
+ readonly USER_IS_NOT_RECOGNIZED: "USER_IS_NOT_RECOGNIZED";
60
+ readonly SPOOF_ATTEMPT_DETECTED: "SPOOF_ATTEMPT_DETECTED";
61
+ readonly FACE_TOO_DARK: "FACE_TOO_DARK";
62
+ readonly LENSES_DETECTED: "LENSES_DETECTED";
63
+ readonly FACE_MASK_DETECTED: "FACE_MASK_DETECTED";
64
+ readonly CLOSED_EYES_DETECTED: "CLOSED_EYES_DETECTED";
65
+ readonly HEAD_COVER_DETECTED: "HEAD_COVER_DETECTED";
66
+ readonly FACE_CROPPING_FAILED: "FACE_CROPPING_FAILED";
67
+ readonly FACE_TOO_SMALL: "FACE_TOO_SMALL";
68
+ readonly FACE_TOO_BLURRY: "FACE_TOO_BLURRY";
69
+ readonly BAD_PHOTO_QUALITY: "BAD_PHOTO_QUALITY";
70
+ readonly PROCESSING_ERROR: "PROCESSING_ERROR";
71
+ readonly BAD_REQUEST: "BAD_REQUEST";
72
+ readonly NONEXISTENT_CUSTOMER: "NONEXISTENT_CUSTOMER";
73
+ readonly HINT_NOT_PROVIDED: "HINT_NOT_PROVIDED";
74
+ readonly SELFIE_IMAGE_LOW_QUALITY: "SELFIE_IMAGE_LOW_QUALITY";
75
+ };
76
+ type FaceErrorCode = (typeof FACE_ERROR_CODES)[keyof typeof FACE_ERROR_CODES];
77
+ //#endregion
78
+ //#region src/modules/authentication/types.d.ts
79
+ type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
80
+ //#endregion
81
+ //#region src/modules/authentication/authenticationActor.d.ts
82
+ type CreateAuthenticationActorOptions = {
83
+ config: AuthenticationConfig;
84
+ dependencies?: FaceCaptureDependencies;
85
+ authHint?: string;
86
+ };
87
+ type AuthenticationActor = ActorRefFrom<AuthenticationMachine>;
88
+ declare function createAuthenticationActor(options: CreateAuthenticationActorOptions): AuthenticationActor;
89
+ //#endregion
6
90
  //#region ../infra/src/capabilities/IFaceDetectionCapability.d.ts
7
91
  /**
8
92
  * Configuration for face detection provider.
@@ -143,61 +227,6 @@ interface IFaceDetectionCapability extends IMLProviderCapability<FaceDetectionCo
143
227
  setVideoSelfieMode(enabled: boolean): void;
144
228
  }
145
229
  //#endregion
146
- //#region ../infra/src/capabilities/IWasmUtilCapability.d.ts
147
- type WasmUtilConfig = MLProviderConfig & {
148
- pipelines?: WasmPipeline[];
149
- };
150
- type VirtualCameraCheckOutput = {
151
- canvas: HTMLCanvasElement | null;
152
- itr: boolean | null;
153
- skipped: boolean | null;
154
- };
155
- type IWasmUtilCapability = {
156
- /**
157
- * Whether the provider has been initialized and is ready to be used.
158
- */
159
- readonly initialized: boolean;
160
- /**
161
- * Initializes the provider with the given configuration.
162
- * If WASM was already warmed up via `warmupWasm()`, this returns almost instantly.
163
- * @param config - Provider configuration including WASM paths
164
- */
165
- initialize(config: WasmUtilConfig): Promise<void>;
166
- /**
167
- * Encrypts a base64 image using the WASM utility API.
168
- * @param image - Base64 image string (no data URL prefix)
169
- * @returns Encrypted string
170
- */
171
- encryptImage(image: string): string;
172
- setSdkVersion(version: string): void;
173
- setSdkPlatform(platform: string): void;
174
- setDeviceInfo(deviceInfo: object, overrideExisting?: boolean): void;
175
- setBrowserInfo(browserInfo: object, overrideExisting?: boolean): void;
176
- setCameraInfo(cameraInfo: object, overrideExisting?: boolean): void;
177
- setMotionStatus(status: string): void;
178
- setBackgroundMode(backgroundMode: boolean): void;
179
- setZc(zc: string): void;
180
- setInspectorOpened(opened: boolean): void;
181
- getMetadata(): string;
182
- analyzeFrame(image: ImageData): Promise<void>;
183
- getCheck(): string;
184
- /**
185
- * Gets the current pipeline state. Must be called before setMotionStatus(),
186
- * getCheck(), setBackgroundMode(), and getMetadata() for proper metadata generation.
187
- */
188
- getPipelineState(): string;
189
- estimatePerformance(): string;
190
- isVirtualCamera(label: string | null): boolean;
191
- prc(): Promise<void>;
192
- poc(output: VirtualCameraCheckOutput): Promise<void>;
193
- ckvcks(data: ArrayBuffer): void;
194
- getVersions(): Promise<unknown>;
195
- /**
196
- * Disposes of resources and resets initialization state.
197
- */
198
- dispose(): Promise<void>;
199
- };
200
- //#endregion
201
230
  //#region ../infra/src/wasm/WasmPipelineType.d.ts
202
231
  declare enum WasmPipelineType {
203
232
  IdBlurGlarePipeline = 0,
@@ -298,88 +327,6 @@ declare class FaceDetectionProvider extends BaseWasmProvider implements IFaceDet
298
327
  private formatFaceCoordinates;
299
328
  }
300
329
  //#endregion
301
- //#region src/modules/authentication/authenticationStateMachine.d.ts
302
- declare const _authenticationMachine: AnyStateMachine;
303
- type AuthenticationMachine = typeof _authenticationMachine;
304
- declare const authenticationMachine: AnyStateMachine;
305
- //#endregion
306
- //#region src/internal/faceCapture/types.d.ts
307
- type CameraResolution = {
308
- width?: number;
309
- height?: number;
310
- };
311
- type BaseFaceCaptureConfig = {
312
- showTutorial: boolean;
313
- showPreview?: boolean;
314
- assistedOnboarding?: boolean;
315
- enableFaceRecording?: boolean;
316
- autoCaptureTimeout: number;
317
- captureAttempts?: number;
318
- numberOfAttempts?: number;
319
- validateLenses?: boolean;
320
- validateFaceMask?: boolean;
321
- validateHeadCover?: boolean;
322
- validateClosedEyes?: boolean;
323
- validateBrightness?: boolean;
324
- deepsightLiveness?: 'SINGLE_FRAME' | 'MULTIMODAL' | 'VIDEOLIVENESS';
325
- cameraResolution?: CameraResolution;
326
- recording?: {
327
- capability?: IRecordingCapability;
328
- };
329
- ds?: Flow['ds'];
330
- };
331
- type FaceCaptureDependencies = {
332
- storage: IStorageCapability;
333
- getWasmUtil: () => Promise<IWasmUtilCapability>;
334
- trackCaptureAttemptFinished?: (payload: {
335
- logs: string;
336
- }) => void;
337
- };
338
- type DetectionStatus = 'idle' | 'detecting' | 'noFace' | 'tooManyFaces' | 'tooClose' | 'tooFar' | 'blur' | 'dark' | 'faceAngle' | 'headWear' | 'lenses' | 'eyesClosed' | 'faceMask' | 'centerFace' | 'manualCapture' | 'success' | 'error' | 'capturing' | 'getReady' | 'getReadyFinished' | 'offline';
339
- declare const FACE_ERROR_CODES: {
340
- readonly FACE_OCCLUDED: "FACE_OCCLUDED";
341
- readonly LIVENESS: "LIVENESS_ERROR";
342
- readonly BRIGHTNESS: "BRIGHTNESS_ERROR";
343
- readonly LENSES: "LENSES_ERROR";
344
- readonly MASK: "MASK_ERROR";
345
- readonly CLOSED_EYES: "CLOSED_EYES_ERROR";
346
- readonly HEAD_COVER: "HEAD_COVER_ERROR";
347
- readonly SERVER: "SERVER_ERROR";
348
- readonly FACE_NOT_FOUND: "FACE_NOT_FOUND";
349
- readonly MULTIPLE_FACES: "MULTIPLE_FACES";
350
- readonly TOO_BLURRY: "TOO_BLURRY_ERROR";
351
- readonly TOO_DARK: "TOO_DARK_ERROR";
352
- readonly USER_IS_NOT_RECOGNIZED: "USER_IS_NOT_RECOGNIZED";
353
- readonly SPOOF_ATTEMPT_DETECTED: "SPOOF_ATTEMPT_DETECTED";
354
- readonly FACE_TOO_DARK: "FACE_TOO_DARK";
355
- readonly LENSES_DETECTED: "LENSES_DETECTED";
356
- readonly FACE_MASK_DETECTED: "FACE_MASK_DETECTED";
357
- readonly CLOSED_EYES_DETECTED: "CLOSED_EYES_DETECTED";
358
- readonly HEAD_COVER_DETECTED: "HEAD_COVER_DETECTED";
359
- readonly FACE_CROPPING_FAILED: "FACE_CROPPING_FAILED";
360
- readonly FACE_TOO_SMALL: "FACE_TOO_SMALL";
361
- readonly FACE_TOO_BLURRY: "FACE_TOO_BLURRY";
362
- readonly BAD_PHOTO_QUALITY: "BAD_PHOTO_QUALITY";
363
- readonly PROCESSING_ERROR: "PROCESSING_ERROR";
364
- readonly BAD_REQUEST: "BAD_REQUEST";
365
- readonly NONEXISTENT_CUSTOMER: "NONEXISTENT_CUSTOMER";
366
- readonly HINT_NOT_PROVIDED: "HINT_NOT_PROVIDED";
367
- readonly SELFIE_IMAGE_LOW_QUALITY: "SELFIE_IMAGE_LOW_QUALITY";
368
- };
369
- type FaceErrorCode = (typeof FACE_ERROR_CODES)[keyof typeof FACE_ERROR_CODES];
370
- //#endregion
371
- //#region src/modules/authentication/types.d.ts
372
- type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
373
- //#endregion
374
- //#region src/modules/authentication/authenticationActor.d.ts
375
- type CreateAuthenticationActorOptions = {
376
- config: AuthenticationConfig;
377
- dependencies?: FaceCaptureDependencies;
378
- authHint?: string;
379
- };
380
- type AuthenticationActor = ActorRefFrom<AuthenticationMachine>;
381
- declare function createAuthenticationActor(options: CreateAuthenticationActorOptions): AuthenticationActor;
382
- //#endregion
383
330
  //#region src/modules/selfie/types.d.ts
384
331
  type SelfieConfig = FlowModuleConfig['SELFIE'] & BaseFaceCaptureConfig;
385
332
  type SelfieDependencies = FaceCaptureDependencies;
@@ -612,4 +559,4 @@ declare function createFaceCaptureManagerFromActor(actor: FaceCaptureActor, modu
612
559
  };
613
560
  type FaceCaptureManager = ReturnType<typeof createFaceCaptureManagerFromActor>;
614
561
  //#endregion
615
- export { WasmUtilConfig as C, VirtualCameraCheckOutput as S, DetectionStatus as _, SelfieMachine as a, BaseWasmProvider as b, FaceCaptureEvent as c, SelfieConfig as d, SendFaceImageResponse as f, AuthenticationConfig as g, createAuthenticationActor as h, SelfieActor as i, FaceCaptureInput as l, CreateAuthenticationActorOptions as m, FaceCaptureManagerState as n, selfieMachine as o, AuthenticationActor as p, CreateSelfieActorOptions as r, FaceCaptureContext as s, FaceCaptureManager as t, faceCaptureMachine as u, FaceErrorCode as v, IWasmUtilCapability as x, authenticationMachine as y };
562
+ export { AuthenticationConfig as _, SelfieMachine as a, authenticationMachine as b, FaceCaptureEvent as c, SelfieConfig as d, SendFaceImageResponse as f, createAuthenticationActor as g, CreateAuthenticationActorOptions as h, SelfieActor as i, FaceCaptureInput as l, AuthenticationActor as m, FaceCaptureManagerState as n, selfieMachine as o, BaseWasmProvider as p, CreateSelfieActorOptions as r, FaceCaptureContext as s, FaceCaptureManager as t, faceCaptureMachine as u, DetectionStatus as v, FaceErrorCode as y };