@incodetech/core 0.0.0-dev-20260209-168e887 → 0.0.0-dev-20260212-7db2d06

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 (43) hide show
  1. package/dist/OpenViduLogger-Bz7LPAnM.esm.js +3 -0
  2. package/dist/{OpenViduLogger-Cut9zn-U.esm.js → OpenViduLogger-CPED-Apt.esm.js} +1 -1
  3. package/dist/StateMachine-BTwgcH8g.d.ts +58 -0
  4. package/dist/authentication.d.ts +6 -5
  5. package/dist/authentication.esm.js +8 -8
  6. package/dist/curp-validation.d.ts +95 -0
  7. package/dist/curp-validation.esm.js +548 -0
  8. package/dist/{deepsightLoader-DHzfMqHS.esm.js → deepsightLoader-ClEe-KdI.esm.js} +4 -4
  9. package/dist/{deepsightService-DLabZ49g.esm.js → deepsightService-DY1w5Amz.esm.js} +3 -3
  10. package/dist/{deepsightService-D9Isk8fg.d.ts → deepsightService-X02Vowli.d.ts} +2 -2
  11. package/dist/email.d.ts +1 -1
  12. package/dist/email.esm.js +4 -4
  13. package/dist/{endpoints-CJtl25ka.esm.js → endpoints-DxmUJ8rX.esm.js} +4 -1
  14. package/dist/{events-CieIKgPk.esm.js → events-CuIAKgDr.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-CZgmP4pc.d.ts → faceCaptureManagerFactory-CNQN7doV.d.ts} +4 -3
  18. package/dist/{faceCaptureSetup-DRbBF7AJ.esm.js → faceCaptureSetup-iJblI_NP.esm.js} +7 -7
  19. package/dist/flow.d.ts +3 -2
  20. package/dist/flow.esm.js +3 -3
  21. package/dist/{id-2r4nZyH_.esm.js → id-BbXYE__Q.esm.js} +8 -8
  22. package/dist/id.d.ts +7 -6
  23. package/dist/id.esm.js +8 -8
  24. package/dist/{index-C0SJR9cc.d.ts → index-B4Ei_1T2.d.ts} +6 -5
  25. package/dist/index.d.ts +7 -6
  26. package/dist/index.esm.js +8 -8
  27. package/dist/{lib-BbiUxUyg.esm.js → lib-DkCxYA3C.esm.js} +2 -2
  28. package/dist/phone.d.ts +1 -1
  29. package/dist/phone.esm.js +4 -4
  30. package/dist/selfie.d.ts +6 -5
  31. package/dist/selfie.esm.js +8 -8
  32. package/dist/{src-BFHUdMI6.esm.js → src-CGwA8Bgy.esm.js} +15 -5
  33. package/dist/{stats-DuS7aVaJ.esm.js → stats-ftyC31aH.esm.js} +1 -1
  34. package/dist/stats.esm.js +2 -2
  35. package/dist/{streamingEvents-DM6KFfsz.esm.js → streamingEvents-IkhAllE0.esm.js} +3 -3
  36. package/dist/{types-Dc1nBvy2.d.ts → types-c0XgGLsM.d.ts} +1 -58
  37. package/package.json +5 -1
  38. package/dist/OpenViduLogger-D_YCgaLD.esm.js +0 -3
  39. /package/dist/{Actor-uC1hxvGo.d.ts → Actor-DVQMXFy4.d.ts} +0 -0
  40. /package/dist/{Manager-BiAYYF50.d.ts → Manager-DfrNSCCo.d.ts} +0 -0
  41. /package/dist/{api-Cqrn4bGi.esm.js → api-DlSxxyGw.esm.js} +0 -0
  42. /package/dist/{chunk-CbPq_V01.esm.js → chunk-CzJBZnft.esm.js} +0 -0
  43. /package/dist/{types-u31qr1MR.d.ts → types-DGhQYTse.d.ts} +0 -0
@@ -0,0 +1,548 @@
1
+ import { n as eventModuleNames, r as eventScreenNames, u as screenOpened } from "./events-CuIAKgDr.esm.js";
2
+ import { E as createManager } from "./src-CGwA8Bgy.esm.js";
3
+ import { a as fromPromise, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-DxmUJ8rX.esm.js";
4
+ import { t as api } from "./api-DlSxxyGw.esm.js";
5
+
6
+ //#region src/modules/curp-validation/curpValidationUtils.ts
7
+ const CURP_PATTERN = /^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HMX](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/;
8
+ const CURP_LENGTH = 18;
9
+ function isValidCurp(curp) {
10
+ return typeof curp === "string" && curp.length === CURP_LENGTH && CURP_PATTERN.test(curp.toUpperCase());
11
+ }
12
+ /** Convert YYYY-MM-DD to DD/MM/YYYY for the API */
13
+ function formatDateForApi(date) {
14
+ const [year, month, day] = date.split("-");
15
+ return `${day}/${month}/${year}`;
16
+ }
17
+ const mexicanStates = [
18
+ {
19
+ value: "NE",
20
+ label: "Born Abroad"
21
+ },
22
+ {
23
+ value: "AS",
24
+ label: "Aguascalientes"
25
+ },
26
+ {
27
+ value: "BC",
28
+ label: "Baja California"
29
+ },
30
+ {
31
+ value: "BS",
32
+ label: "Baja California Sur"
33
+ },
34
+ {
35
+ value: "CC",
36
+ label: "Campeche"
37
+ },
38
+ {
39
+ value: "CL",
40
+ label: "Coahuila de Zaragoza"
41
+ },
42
+ {
43
+ value: "CM",
44
+ label: "Colima"
45
+ },
46
+ {
47
+ value: "CS",
48
+ label: "Chiapas"
49
+ },
50
+ {
51
+ value: "CH",
52
+ label: "Chihuahua"
53
+ },
54
+ {
55
+ value: "DF",
56
+ label: "Distrito Federal"
57
+ },
58
+ {
59
+ value: "DG",
60
+ label: "Durango"
61
+ },
62
+ {
63
+ value: "GT",
64
+ label: "Guanajuato"
65
+ },
66
+ {
67
+ value: "GR",
68
+ label: "Guerrero"
69
+ },
70
+ {
71
+ value: "HG",
72
+ label: "Hidalgo"
73
+ },
74
+ {
75
+ value: "JC",
76
+ label: "Jalisco"
77
+ },
78
+ {
79
+ value: "MC",
80
+ label: "Estado de México"
81
+ },
82
+ {
83
+ value: "MN",
84
+ label: "Michoacan de Ocampo"
85
+ },
86
+ {
87
+ value: "MS",
88
+ label: "Morelos"
89
+ },
90
+ {
91
+ value: "NT",
92
+ label: "Nayarit"
93
+ },
94
+ {
95
+ value: "NL",
96
+ label: "Nuevo León"
97
+ },
98
+ {
99
+ value: "OC",
100
+ label: "Oaxaca"
101
+ },
102
+ {
103
+ value: "PL",
104
+ label: "Puebla"
105
+ },
106
+ {
107
+ value: "QT",
108
+ label: "Queretaro de Arteaga"
109
+ },
110
+ {
111
+ value: "QR",
112
+ label: "Quintana Roo"
113
+ },
114
+ {
115
+ value: "SP",
116
+ label: "San Luis Potosi"
117
+ },
118
+ {
119
+ value: "SL",
120
+ label: "Sinaloa"
121
+ },
122
+ {
123
+ value: "SR",
124
+ label: "Sonora"
125
+ },
126
+ {
127
+ value: "TC",
128
+ label: "Tabasco"
129
+ },
130
+ {
131
+ value: "TS",
132
+ label: "Tamaulipas"
133
+ },
134
+ {
135
+ value: "TL",
136
+ label: "Tlaxcala"
137
+ },
138
+ {
139
+ value: "VZ",
140
+ label: "Veracruz"
141
+ },
142
+ {
143
+ value: "YN",
144
+ label: "Yucatan"
145
+ },
146
+ {
147
+ value: "ZS",
148
+ label: "Zacatecas"
149
+ }
150
+ ];
151
+ function isGenerateFormValid(form) {
152
+ return !!(form.name && form.firstLastName && form.gender && form.birthDate && form.birthState);
153
+ }
154
+
155
+ //#endregion
156
+ //#region src/modules/curp-validation/curpValidationServices.ts
157
+ async function fetchOcrData(signal) {
158
+ const res = await api.get(endpoints.ocrData, { signal });
159
+ if (!res.ok) throw new Error(`GET ${endpoints.ocrData} failed: ${res.status} ${res.statusText}`);
160
+ return res.data;
161
+ }
162
+ async function addCurp(curp, signal) {
163
+ const res = await api.post(endpoints.addCurp, { curp }, { signal });
164
+ if (!res.ok) throw new Error(`POST ${endpoints.addCurp} failed: ${res.status} ${res.statusText}`);
165
+ return res.data;
166
+ }
167
+ async function addCurpV2(form, signal) {
168
+ const payload = {
169
+ name: form.name,
170
+ firstLastName: form.firstLastName,
171
+ secondLastName: form.secondLastName,
172
+ gender: form.gender,
173
+ birthDate: formatDateForApi(form.birthDate),
174
+ state: form.birthState
175
+ };
176
+ const res = await api.post(endpoints.addCurpV2, payload, { signal });
177
+ if (!res.ok) throw new Error(`POST ${endpoints.addCurpV2} failed: ${res.status} ${res.statusText}`);
178
+ return res.data;
179
+ }
180
+
181
+ //#endregion
182
+ //#region src/modules/curp-validation/curpValidationStateMachine.ts
183
+ const DEFAULT_GENERATE_FORM = {
184
+ name: "",
185
+ firstLastName: "",
186
+ secondLastName: "",
187
+ gender: "",
188
+ birthDate: "",
189
+ birthState: ""
190
+ };
191
+ const curpValidationMachine = setup({
192
+ types: {
193
+ context: {},
194
+ events: {},
195
+ input: {}
196
+ },
197
+ actors: {
198
+ fetchOcrData: fromPromise(async ({ signal }) => {
199
+ return fetchOcrData(signal);
200
+ }),
201
+ verifyCurp: fromPromise(async ({ input, signal }) => {
202
+ return addCurp(input.curp, signal);
203
+ }),
204
+ generateCurpActor: fromPromise(async ({ input, signal }) => {
205
+ return addCurpV2(input.form, signal);
206
+ })
207
+ },
208
+ actions: {
209
+ setCurpFromOcr: assign(({ event }) => {
210
+ const curp = (event.output?.curp ?? "").toUpperCase();
211
+ return {
212
+ curp,
213
+ isValid: isValidCurp(curp)
214
+ };
215
+ }),
216
+ setCurp: assign(({ event }) => {
217
+ const curp = event.curp.toUpperCase();
218
+ return {
219
+ curp,
220
+ isValid: isValidCurp(curp)
221
+ };
222
+ }),
223
+ setGenerateForm: assign(({ context, event }) => {
224
+ const e = event;
225
+ const form = {
226
+ ...context.generateForm,
227
+ ...e.form
228
+ };
229
+ return {
230
+ generateForm: form,
231
+ isGenerateFormValid: isGenerateFormValid(form)
232
+ };
233
+ }),
234
+ setGeneratedCurp: assign(({ event }) => {
235
+ const curp = event.output?.curp ?? "";
236
+ return {
237
+ generatedCurp: curp,
238
+ curp,
239
+ isValid: isValidCurp(curp)
240
+ };
241
+ }),
242
+ decrementRetries: assign(({ context }) => ({ retriesLeft: Math.max(0, context.retriesLeft - 1) })),
243
+ setFromGenerate: assign({ fromGenerate: () => true }),
244
+ clearFromGenerate: assign({ fromGenerate: () => false }),
245
+ setError: assign(({ event }) => ({ error: String(event.error) })),
246
+ trackEnterCurp: () => {
247
+ screenOpened(eventModuleNames.curpValidation, eventScreenNames.curpEnter);
248
+ },
249
+ trackGenerateCurp: () => {
250
+ screenOpened(eventModuleNames.curpValidation, eventScreenNames.curpGenerate);
251
+ },
252
+ trackValidationProgress: () => {
253
+ screenOpened(eventModuleNames.curpValidation, eventScreenNames.curpValidation);
254
+ },
255
+ trackValidationSuccess: () => {
256
+ screenOpened(eventModuleNames.curpValidation, eventScreenNames.curpValidationSuccess);
257
+ },
258
+ trackValidationFailed: () => {
259
+ screenOpened(eventModuleNames.curpValidation, eventScreenNames.curpValidationFailed);
260
+ }
261
+ },
262
+ guards: {
263
+ hasPrefillFromOcr: ({ context }) => context.config.prefillFromOcr !== false,
264
+ hasOcrCurp: ({ event }) => {
265
+ return !!event.output?.curp?.trim();
266
+ },
267
+ canRetry: ({ context }) => context.retriesLeft > 0,
268
+ isDeceased: ({ event }) => {
269
+ return event.output?.deceasedStatus === "DECEASED";
270
+ },
271
+ isScrapingFallback: ({ event }) => {
272
+ return event.output?.result === "Attempting validation by scraping method";
273
+ },
274
+ isGenerateSuccess: ({ event }) => {
275
+ const output = event.output;
276
+ return !!(output?.success && output?.curp);
277
+ },
278
+ isVerifySuccess: ({ event }) => {
279
+ return event.output?.success === true;
280
+ },
281
+ fromGeneratePath: ({ context }) => context.fromGenerate,
282
+ isGenerateFormValidGuard: ({ context }) => context.isGenerateFormValid,
283
+ isValidCurpGuard: ({ context }) => context.isValid
284
+ }
285
+ }).createMachine({
286
+ id: "curpValidation",
287
+ initial: "idle",
288
+ context: ({ input }) => ({
289
+ config: input.config,
290
+ curp: "",
291
+ isValid: false,
292
+ generateForm: { ...DEFAULT_GENERATE_FORM },
293
+ isGenerateFormValid: false,
294
+ retriesLeft: input.config.maxRetries ?? 1,
295
+ generatedCurp: void 0,
296
+ error: void 0,
297
+ fromGenerate: false
298
+ }),
299
+ states: {
300
+ idle: { on: {
301
+ LOAD: [{
302
+ target: "loading",
303
+ guard: "hasPrefillFromOcr"
304
+ }, {
305
+ target: "enterCurp",
306
+ actions: "trackEnterCurp"
307
+ }],
308
+ CLOSE: "closed"
309
+ } },
310
+ loading: {
311
+ invoke: {
312
+ id: "fetchOcrData",
313
+ src: "fetchOcrData",
314
+ onDone: [{
315
+ target: "verifying",
316
+ guard: "hasOcrCurp",
317
+ actions: ["setCurpFromOcr", "trackValidationProgress"]
318
+ }, {
319
+ target: "enterCurp",
320
+ actions: "trackEnterCurp"
321
+ }],
322
+ onError: {
323
+ target: "enterCurp",
324
+ actions: "trackEnterCurp"
325
+ }
326
+ },
327
+ on: { CLOSE: "closed" }
328
+ },
329
+ enterCurp: { on: {
330
+ SET_CURP: { actions: "setCurp" },
331
+ VERIFY: {
332
+ target: "verifying",
333
+ guard: "isValidCurpGuard",
334
+ actions: "trackValidationProgress"
335
+ },
336
+ SWITCH_TO_GENERATE: {
337
+ target: "generateCurp",
338
+ actions: ["setFromGenerate", "trackGenerateCurp"]
339
+ },
340
+ CLOSE: "closed"
341
+ } },
342
+ verifying: {
343
+ invoke: {
344
+ id: "verifyCurp",
345
+ src: "verifyCurp",
346
+ input: ({ context }) => ({ curp: context.curp }),
347
+ onDone: [{
348
+ target: "success",
349
+ guard: "isVerifySuccess"
350
+ }, {
351
+ target: "failure",
352
+ actions: ["decrementRetries", "trackValidationFailed"]
353
+ }],
354
+ onError: {
355
+ target: "failure",
356
+ actions: [
357
+ "decrementRetries",
358
+ "setError",
359
+ "trackValidationFailed"
360
+ ]
361
+ }
362
+ },
363
+ on: { CLOSE: "closed" }
364
+ },
365
+ success: {
366
+ entry: "trackValidationSuccess",
367
+ after: { 3e3: "finished" },
368
+ on: { CLOSE: "closed" }
369
+ },
370
+ failure: {
371
+ entry: "trackValidationFailed",
372
+ on: {
373
+ RETRY: [{
374
+ target: "generateCurp",
375
+ guard: ({ context }) => context.retriesLeft > 0 && context.fromGenerate,
376
+ actions: "trackGenerateCurp"
377
+ }, {
378
+ target: "enterCurp",
379
+ guard: ({ context }) => context.retriesLeft > 0 && !context.fromGenerate,
380
+ actions: ["clearFromGenerate", "trackEnterCurp"]
381
+ }],
382
+ CLOSE: "closed"
383
+ },
384
+ after: { 3e3: [{
385
+ target: "finished",
386
+ guard: ({ context }) => context.retriesLeft <= 0
387
+ }] }
388
+ },
389
+ generateCurp: { on: {
390
+ SET_GENERATE_FORM: { actions: "setGenerateForm" },
391
+ GENERATE: {
392
+ target: "generating",
393
+ guard: "isGenerateFormValidGuard",
394
+ actions: "trackValidationProgress"
395
+ },
396
+ CLOSE: "closed"
397
+ } },
398
+ generating: {
399
+ invoke: {
400
+ id: "generateCurpActor",
401
+ src: "generateCurpActor",
402
+ input: ({ context }) => ({ form: context.generateForm }),
403
+ onDone: [
404
+ {
405
+ target: "finished",
406
+ guard: "isScrapingFallback"
407
+ },
408
+ {
409
+ target: "finished",
410
+ guard: "isDeceased"
411
+ },
412
+ {
413
+ target: "confirmCurp",
414
+ guard: "isGenerateSuccess",
415
+ actions: "setGeneratedCurp"
416
+ },
417
+ {
418
+ target: "generateError",
419
+ actions: ["setFromGenerate", "trackValidationFailed"]
420
+ }
421
+ ],
422
+ onError: {
423
+ target: "generateError",
424
+ actions: [
425
+ "setFromGenerate",
426
+ "setError",
427
+ "trackValidationFailed"
428
+ ]
429
+ }
430
+ },
431
+ on: { CLOSE: "closed" }
432
+ },
433
+ confirmCurp: { on: {
434
+ CONFIRM: {
435
+ target: "verifying",
436
+ actions: "trackValidationProgress"
437
+ },
438
+ CLOSE: "closed"
439
+ } },
440
+ generateError: {
441
+ entry: "trackValidationFailed",
442
+ on: {
443
+ RETRY: {
444
+ target: "generateCurp",
445
+ guard: "canRetry",
446
+ actions: ["decrementRetries", "trackGenerateCurp"]
447
+ },
448
+ CLOSE: "closed"
449
+ },
450
+ after: { 3e3: [{
451
+ target: "finished",
452
+ guard: ({ context }) => context.retriesLeft <= 0
453
+ }] }
454
+ },
455
+ finished: { type: "final" },
456
+ closed: { type: "final" }
457
+ }
458
+ });
459
+
460
+ //#endregion
461
+ //#region src/modules/curp-validation/curpValidationActor.ts
462
+ function createCurpValidationActor(options) {
463
+ return createActor(curpValidationMachine, { input: { config: options.config } }).start();
464
+ }
465
+
466
+ //#endregion
467
+ //#region src/modules/curp-validation/curpValidationManager.ts
468
+ function mapState(snapshot) {
469
+ const typedSnapshot = snapshot;
470
+ const { context } = typedSnapshot;
471
+ if (typedSnapshot.matches("idle")) return { status: "idle" };
472
+ if (typedSnapshot.matches("loading")) return { status: "loading" };
473
+ if (typedSnapshot.matches("enterCurp")) return {
474
+ status: "enterCurp",
475
+ curp: context.curp,
476
+ isValid: context.isValid
477
+ };
478
+ if (typedSnapshot.matches("verifying")) return { status: "verifying" };
479
+ if (typedSnapshot.matches("success")) return { status: "success" };
480
+ if (typedSnapshot.matches("failure")) return {
481
+ status: "failure",
482
+ retriesLeft: context.retriesLeft
483
+ };
484
+ if (typedSnapshot.matches("generateCurp")) return {
485
+ status: "generateCurp",
486
+ form: context.generateForm,
487
+ isValid: context.isGenerateFormValid
488
+ };
489
+ if (typedSnapshot.matches("generating")) return { status: "generating" };
490
+ if (typedSnapshot.matches("confirmCurp")) return {
491
+ status: "confirmCurp",
492
+ curp: context.curp
493
+ };
494
+ if (typedSnapshot.matches("generateError")) return {
495
+ status: "generateError",
496
+ retriesLeft: context.retriesLeft
497
+ };
498
+ if (typedSnapshot.matches("finished")) return { status: "finished" };
499
+ if (typedSnapshot.matches("closed")) return { status: "closed" };
500
+ return { status: "idle" };
501
+ }
502
+ function createApi({ actor }) {
503
+ return {
504
+ load() {
505
+ actor.send({ type: "LOAD" });
506
+ },
507
+ setCurp(curp) {
508
+ actor.send({
509
+ type: "SET_CURP",
510
+ curp
511
+ });
512
+ },
513
+ verify() {
514
+ actor.send({ type: "VERIFY" });
515
+ },
516
+ switchToGenerate() {
517
+ actor.send({ type: "SWITCH_TO_GENERATE" });
518
+ },
519
+ setGenerateForm(form) {
520
+ actor.send({
521
+ type: "SET_GENERATE_FORM",
522
+ form
523
+ });
524
+ },
525
+ generate() {
526
+ actor.send({ type: "GENERATE" });
527
+ },
528
+ confirmGenerated() {
529
+ actor.send({ type: "CONFIRM" });
530
+ },
531
+ retry() {
532
+ actor.send({ type: "RETRY" });
533
+ },
534
+ close() {
535
+ actor.send({ type: "CLOSE" });
536
+ }
537
+ };
538
+ }
539
+ function createCurpValidationManager(options) {
540
+ return createManager({
541
+ actor: createCurpValidationActor(options),
542
+ mapState,
543
+ createApi
544
+ });
545
+ }
546
+
547
+ //#endregion
548
+ export { createCurpValidationManager, curpValidationMachine, mexicanStates };
@@ -1,7 +1,7 @@
1
- import { g as BrowserEnvironmentProvider, l as MotionSensorProvider, r as WasmUtilProvider, s as VisibilityProvider } from "./src-BFHUdMI6.esm.js";
2
- import { t as createDeepsightService } from "./deepsightService-DLabZ49g.esm.js";
3
- import "./api-Cqrn4bGi.esm.js";
4
- import "./stats-DuS7aVaJ.esm.js";
1
+ import { g as BrowserEnvironmentProvider, l as MotionSensorProvider, r as WasmUtilProvider, s as VisibilityProvider } from "./src-CGwA8Bgy.esm.js";
2
+ import { t as createDeepsightService } from "./deepsightService-DY1w5Amz.esm.js";
3
+ import "./api-DlSxxyGw.esm.js";
4
+ import "./stats-ftyC31aH.esm.js";
5
5
 
6
6
  //#region src/internal/deepsight/deepsightLoader.ts
7
7
  const SDK_VERSION = "2.0.0";
@@ -1,6 +1,6 @@
1
- import { A as getUserAgent, O as getDeviceInfo, T as stopCameraStream, b as createHiddenVideoElement, w as requestCameraAccess, x as IncodeCanvas } from "./src-BFHUdMI6.esm.js";
2
- import { t as api } from "./api-Cqrn4bGi.esm.js";
3
- import { t as addDeviceStats } from "./stats-DuS7aVaJ.esm.js";
1
+ import { A as getUserAgent, O as getDeviceInfo, T as stopCameraStream, b as createHiddenVideoElement, w as requestCameraAccess, x as IncodeCanvas } from "./src-CGwA8Bgy.esm.js";
2
+ import { t as api } from "./api-DlSxxyGw.esm.js";
3
+ import { t as addDeviceStats } from "./stats-ftyC31aH.esm.js";
4
4
 
5
5
  //#region src/internal/device/browserSimulation.ts
6
6
  const AUTOMATION_MARKERS = {
@@ -1,5 +1,5 @@
1
- import { r as CameraStream } from "./types-u31qr1MR.js";
2
- import { s as WasmPipeline } from "./types-Dc1nBvy2.js";
1
+ import { r as CameraStream } from "./types-DGhQYTse.js";
2
+ import { r as WasmPipeline } from "./StateMachine-BTwgcH8g.js";
3
3
 
4
4
  //#region ../infra/src/media/canvas.d.ts
5
5
  /**
package/dist/email.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-BiAYYF50.js";
1
+ import { t as Manager } from "./Manager-DfrNSCCo.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-CieIKgPk.esm.js";
2
- import { E as createManager, p as BrowserTimerProvider } from "./src-BFHUdMI6.esm.js";
3
- import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-CJtl25ka.esm.js";
4
- import { t as api } from "./api-Cqrn4bGi.esm.js";
1
+ import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-CuIAKgDr.esm.js";
2
+ import { E as createManager, p as BrowserTimerProvider } from "./src-CGwA8Bgy.esm.js";
3
+ import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-DxmUJ8rX.esm.js";
4
+ import { t as api } from "./api-DlSxxyGw.esm.js";
5
5
 
6
6
  //#region src/modules/email/emailServices.ts
7
7
  async function fetchEmail(signal) {
@@ -3291,7 +3291,10 @@ const endpoints = {
3291
3291
  deviceFingerprint: "/omni/add/device-fingerprint",
3292
3292
  onboardingStatus: "/omni/get/onboarding/status",
3293
3293
  customFields: "/omni/get/custom-fields",
3294
- deviceRiskClientId: "/omni/device-risk-client-id"
3294
+ deviceRiskClientId: "/omni/device-risk-client-id",
3295
+ ocrData: "/omni/get/ocr-data",
3296
+ addCurp: "/omni/add/curp",
3297
+ addCurpV2: "/omni/add/curp/v2"
3295
3298
  };
3296
3299
 
3297
3300
  //#endregion
@@ -1,5 +1,5 @@
1
- import { t as endpoints } from "./endpoints-CJtl25ka.esm.js";
2
- import { i as isApiConfigured, r as getToken, t as api } from "./api-Cqrn4bGi.esm.js";
1
+ import { t as endpoints } from "./endpoints-DxmUJ8rX.esm.js";
2
+ import { i as isApiConfigured, r as getToken, t as api } from "./api-DlSxxyGw.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-BiAYYF50.js";
1
+ import { t as Manager } from "./Manager-DfrNSCCo.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-CieIKgPk.esm.js";
2
- import { E as createManager } from "./src-BFHUdMI6.esm.js";
3
- import { a as fromPromise, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-CJtl25ka.esm.js";
4
- import { t as api } from "./api-Cqrn4bGi.esm.js";
1
+ import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-CuIAKgDr.esm.js";
2
+ import { E as createManager } from "./src-CGwA8Bgy.esm.js";
3
+ import { a as fromPromise, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-DxmUJ8rX.esm.js";
4
+ import { t as api } from "./api-DlSxxyGw.esm.js";
5
5
 
6
6
  //#region src/modules/face-match/faceMatchServices.ts
7
7
  /**
@@ -1,6 +1,7 @@
1
- import { a as IRecordingCapability, c as MLProviderConfig, i as IStorageCapability, n as PermissionStatus, r as CameraStream } from "./types-u31qr1MR.js";
2
- import { s as WasmPipeline, t as Flow } from "./types-Dc1nBvy2.js";
3
- import { t as Manager } from "./Manager-BiAYYF50.js";
1
+ import { a as IRecordingCapability, c as MLProviderConfig, i as IStorageCapability, n as PermissionStatus, r as CameraStream } from "./types-DGhQYTse.js";
2
+ import { r as WasmPipeline } from "./StateMachine-BTwgcH8g.js";
3
+ import { t as Manager } from "./Manager-DfrNSCCo.js";
4
+ import { t as Flow } from "./types-c0XgGLsM.js";
4
5
 
5
6
  //#region ../infra/src/capabilities/IWasmUtilCapability.d.ts
6
7
  type WasmUtilConfig = MLProviderConfig & {
@@ -1,9 +1,9 @@
1
- import { d as addEvent, n as eventModuleNames } from "./events-CieIKgPk.esm.js";
2
- import { E as createManager, T as stopCameraStream, _ as StreamCanvasProcessingSession, a as FaceDetectionProvider, c as OpenViduRecordingProvider, u as LocalRecordingProvider, v as StreamCanvasCapture, w as requestCameraAccess } from "./src-BFHUdMI6.esm.js";
3
- import { a as fromPromise, i as fromCallback, n as setup, r as assign, t as endpoints } from "./endpoints-CJtl25ka.esm.js";
4
- 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-DM6KFfsz.esm.js";
5
- import { r as getToken, t as api } from "./api-Cqrn4bGi.esm.js";
6
- import { t as addDeviceStats } from "./stats-DuS7aVaJ.esm.js";
1
+ import { d as addEvent, n as eventModuleNames } from "./events-CuIAKgDr.esm.js";
2
+ import { E as createManager, T as stopCameraStream, _ as StreamCanvasProcessingSession, a as FaceDetectionProvider, c as OpenViduRecordingProvider, u as LocalRecordingProvider, v as StreamCanvasCapture, w as requestCameraAccess } from "./src-CGwA8Bgy.esm.js";
3
+ import { a as fromPromise, i as fromCallback, n as setup, r as assign, t as endpoints } from "./endpoints-DxmUJ8rX.esm.js";
4
+ 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-IkhAllE0.esm.js";
5
+ import { r as getToken, t as api } from "./api-DlSxxyGw.esm.js";
6
+ import { t as addDeviceStats } from "./stats-ftyC31aH.esm.js";
7
7
 
8
8
  //#region src/internal/faceCapture/faceCaptureManagerFactory.ts
9
9
  function getPermissionStatus(snapshot) {
@@ -444,7 +444,7 @@ function stopRecording(session) {
444
444
  })();
445
445
  }
446
446
  async function initializeDeepsightSession(options) {
447
- const { loadDeepsightSession } = await import("./deepsightLoader-DHzfMqHS.esm.js");
447
+ const { loadDeepsightSession } = await import("./deepsightLoader-ClEe-KdI.esm.js");
448
448
  return loadDeepsightSession({
449
449
  ds: options.ds,
450
450
  storage: options.storage
package/dist/flow.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { a as AnyStateMachine, n as FlowModule, r as FlowModuleConfig, s as WasmPipeline, t as Flow } from "./types-Dc1nBvy2.js";
2
- import { t as Manager } from "./Manager-BiAYYF50.js";
1
+ import { r as WasmPipeline, t as AnyStateMachine } from "./StateMachine-BTwgcH8g.js";
2
+ import { t as Manager } from "./Manager-DfrNSCCo.js";
3
+ import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-c0XgGLsM.js";
3
4
 
4
5
  //#region src/modules/flow/flowAnalyzer.d.ts
5
6