@incodetech/core 0.0.0-dev-20260514-68428a7 → 0.0.0-dev-20260514-38c8223

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 (94) hide show
  1. package/dist/{BaseWasmProvider-C4kRvk5p.esm.js → BaseWasmProvider-B6JBaYWd.esm.js} +27 -4
  2. package/dist/{WasmUtilProvider-CA4ukNv_.esm.js → WasmUtilProvider-DxqNQNZt.esm.js} +1 -1
  3. package/dist/{addressSearch-TmMXmTtS.esm.js → addressSearch-Y0dwPzyx.esm.js} +1 -1
  4. package/dist/{ae-signature-DenQl8yh.esm.js → ae-signature-IBqB0Dug.esm.js} +1 -1
  5. package/dist/ae-signature.d.ts +1 -1
  6. package/dist/ae-signature.esm.js +3 -3
  7. package/dist/antifraud.esm.js +2 -2
  8. package/dist/{antifraudStateMachine-BelS5Elj.esm.js → antifraudStateMachine-Fpe58Waf.esm.js} +1 -1
  9. package/dist/authentication.esm.js +8 -8
  10. package/dist/{authenticationManager-718EJfcp.esm.js → authenticationManager-BLxe_oTp.esm.js} +4 -4
  11. package/dist/{authenticationStateMachine-C9ExNiDG.esm.js → authenticationStateMachine-BEFhLVBz.esm.js} +3 -3
  12. package/dist/consent.d.ts +51 -51
  13. package/dist/consent.esm.js +2 -2
  14. package/dist/{consentStateMachine-BYay_qVs.esm.js → consentStateMachine-EZ3-uzbT.esm.js} +1 -1
  15. package/dist/cpf-ocr.d.ts +20 -20
  16. package/dist/cpf-ocr.esm.js +1 -1
  17. package/dist/cross-document-data-match.esm.js +1 -1
  18. package/dist/curp-validation.esm.js +2 -2
  19. package/dist/{curpValidationStateMachine-9-MsnCyq.esm.js → curpValidationStateMachine-YAyvC9Zd.esm.js} +1 -1
  20. package/dist/custom-fields.esm.js +1 -1
  21. package/dist/custom-watchlist.esm.js +1 -1
  22. package/dist/{deepsightLoader-C3XL56Hh.esm.js → deepsightLoader-DnDbxFYU.esm.js} +2 -2
  23. package/dist/document-capture.d.ts +77 -77
  24. package/dist/document-capture.esm.js +2 -2
  25. package/dist/document-upload.d.ts +46 -46
  26. package/dist/document-upload.esm.js +1 -1
  27. package/dist/{documentCaptureStateMachine-B9LbWegc.esm.js → documentCaptureStateMachine-BQCPpmS_.esm.js} +1 -1
  28. package/dist/dynamic-forms.esm.js +1 -1
  29. package/dist/ekyb.esm.js +5 -5
  30. package/dist/{ekybStateMachine-Dsly7JLW.esm.js → ekybStateMachine-BX0-azeQ.esm.js} +3 -3
  31. package/dist/ekyc.esm.js +3 -3
  32. package/dist/{ekycStateMachine-BDYPBlIV.esm.js → ekycStateMachine-R87AL9Zi.esm.js} +2 -2
  33. package/dist/electronic-signature.d.ts +1 -1
  34. package/dist/electronic-signature.esm.js +2 -2
  35. package/dist/{electronicSignatureManager-ZoVUciXI.esm.js → electronicSignatureManager-raW-Mwm9.esm.js} +1 -1
  36. package/dist/email.esm.js +3 -3
  37. package/dist/{emailManager-CPdwsa3i.esm.js → emailManager-gK1AaVkm.esm.js} +2 -2
  38. package/dist/{emailStateMachine-BSBR3A4H.esm.js → emailStateMachine-hF8K9fyE.esm.js} +1 -1
  39. package/dist/extensibility.d.ts +1 -1
  40. package/dist/extensibility.esm.js +17 -17
  41. package/dist/face-match.esm.js +2 -2
  42. package/dist/{faceCaptureManagerFactory-D7Xn7UC-.esm.js → faceCaptureManagerFactory-5TsuUYct.esm.js} +1 -1
  43. package/dist/{faceCaptureSetup-CeTC0oHF.esm.js → faceCaptureSetup-Dt5-oVQa.esm.js} +2 -2
  44. package/dist/{faceMatchStateMachine-CcOHrmfQ.esm.js → faceMatchStateMachine-D5PvHnG3.esm.js} +1 -1
  45. package/dist/flow.d.ts +2 -2
  46. package/dist/flow.esm.js +4 -4
  47. package/dist/{flowServices-DYyuJ345.esm.js → flowServices-CJy8GrBV.esm.js} +1 -1
  48. package/dist/geolocation.esm.js +2 -2
  49. package/dist/{geolocationStateMachine-vAE1OdvU.esm.js → geolocationStateMachine-BsfIqMxS.esm.js} +1 -1
  50. package/dist/government-validation.esm.js +2 -2
  51. package/dist/{governmentValidationStateMachine-6QjTWj86.esm.js → governmentValidationStateMachine-D3czCwFT.esm.js} +1 -1
  52. package/dist/home.d.ts +10 -10
  53. package/dist/home.esm.js +1 -1
  54. package/dist/id-ocr.d.ts +55 -55
  55. package/dist/id-ocr.esm.js +2 -2
  56. package/dist/id.d.ts +1 -1
  57. package/dist/id.esm.js +6 -6
  58. package/dist/{idCaptureManager-CG5637uX.esm.js → idCaptureManager-3tTnh6GM.esm.js} +18 -5
  59. package/dist/{idCaptureManager-D7ySt2kS.d.ts → idCaptureManager-VXhrTDIH.d.ts} +50 -1
  60. package/dist/{idCaptureStateMachine-C52WfhC4.esm.js → idCaptureStateMachine-Cf2fZIwq.esm.js} +174 -55
  61. package/dist/{idOcrStateMachine-BN4QESSV.esm.js → idOcrStateMachine-B3rIHUGE.esm.js} +1 -1
  62. package/dist/identity-reuse.d.ts +43 -43
  63. package/dist/identity-reuse.esm.js +1 -1
  64. package/dist/{index-DbPGpyJR.d.ts → index-Btm1u91z.d.ts} +119 -119
  65. package/dist/index.esm.js +4 -4
  66. package/dist/mandatory-consent.d.ts +52 -52
  67. package/dist/mandatory-consent.esm.js +2 -2
  68. package/dist/{mandatoryConsentStateMachine-YwMGCwFo.esm.js → mandatoryConsentStateMachine-C6qAH0CY.esm.js} +1 -1
  69. package/dist/phone.esm.js +3 -3
  70. package/dist/{phoneManager-BcSP0wf1.esm.js → phoneManager-Bj0ZTONg.esm.js} +2 -2
  71. package/dist/{phoneStateMachine-W-J4WtrD.esm.js → phoneStateMachine-BG7tpQ-o.esm.js} +1 -1
  72. package/dist/{qe-signature-DgaEjf-f.esm.js → qe-signature-cgQa-RdO.esm.js} +1 -1
  73. package/dist/qe-signature.d.ts +1 -1
  74. package/dist/qe-signature.esm.js +3 -3
  75. package/dist/{recordingService-9XRd9o0s.esm.js → recordingService-csK4vWGk.esm.js} +2 -2
  76. package/dist/redirect-to-mobile.esm.js +2 -2
  77. package/dist/{redirectToMobileStateMachine-BORm3Rl6.esm.js → redirectToMobileStateMachine-DM6Vl5_t.esm.js} +1 -1
  78. package/dist/{runChildModule-Bzn2uRWQ.esm.js → runChildModule-DxmxOpoq.esm.js} +1 -1
  79. package/dist/selfie.esm.js +8 -8
  80. package/dist/{selfieManager-CeHDHjh2.esm.js → selfieManager-C9qgGZ6g.esm.js} +4 -4
  81. package/dist/{selfieStateMachine-DOLuJJgu.esm.js → selfieStateMachine-fXplOubS.esm.js} +3 -3
  82. package/dist/{session-ckfIbi2T.esm.js → session-DnzpTtfc.esm.js} +1 -1
  83. package/dist/session.esm.js +1 -1
  84. package/dist/{setup-D1M1RABQ.esm.js → setup-HK7dd-OZ.esm.js} +3 -3
  85. package/dist/signature.esm.js +2 -2
  86. package/dist/{signatureStateMachine-D8sIaRNR.esm.js → signatureStateMachine-CtA2LH_a.esm.js} +1 -1
  87. package/dist/trust-graph.esm.js +1 -1
  88. package/dist/wasm.esm.js +4 -4
  89. package/dist/watchlist-for-business.esm.js +1 -1
  90. package/dist/watchlist.esm.js +1 -1
  91. package/dist/workflow.d.ts +123 -123
  92. package/dist/workflow.esm.js +29 -29
  93. package/dist/{xstate.esm-B1sGYom9.esm.js → xstate.esm-4Hbeco7-.esm.js} +41 -1
  94. package/package.json +1 -1
@@ -223,9 +223,12 @@ async function wasmCallWrapper(concurrency, wasmMethod, useSemaphore = true, ...
223
223
  * Concurrency model mirrors the legacy implementation:
224
224
  * - 4-slot semaphore keyed by per-request `threadId` so multiple HTTP calls
225
225
  * can run in parallel without trampling shared C++ state.
226
- * - Each WASM-side request method returns `false` while in flight; we
227
- * busy-poll via {@link wasmCallWrapper}.
228
- * - Result extraction (`getRequestResult`) is per-thread.
226
+ * - Each WASM-side method that performs in-binary HTTP (request methods AND
227
+ * `createApi`'s in-binary `/e2ee/key` handshake) returns `false` while in
228
+ * flight and `true` once the C++ side has finished; the JS bridge awaits
229
+ * completion via {@link wasmCallWrapper}.
230
+ * - Result extraction (`getRequestResult`) is per-thread for HTTP requests
231
+ * and uses `threadId = -1` for the session-level `createApi` handshake.
229
232
  *
230
233
  * Encryption support: `setupConnection` accepts an `encryptionEnabled` flag
231
234
  * that triggers the in-binary RSA/AES handshake. The OAEP MGF1 hash is
@@ -235,6 +238,14 @@ async function wasmCallWrapper(concurrency, wasmMethod, useSemaphore = true, ...
235
238
  * `@incodetech/core`'s `setup.ts` — this module caches nothing.
236
239
  */
237
240
  const HTTP_CONCURRENCY = 4;
241
+ /**
242
+ * Sentinel `threadId` used by the session-level `createApi` handshake when we
243
+ * read its result via `getRequestResult`. Per-request HTTP traffic uses real
244
+ * thread ids handed out by the semaphore; the handshake has no slot of its
245
+ * own, so the C++ side stores its result under `-1`. Mirrors legacy
246
+ * `checkError(threadId = -1)`.
247
+ */
248
+ const SETUP_THREAD_ID = -1;
238
249
  var WasmWebClientError = class extends Error {
239
250
  constructor(message, statusCode, data) {
240
251
  super(message);
@@ -302,6 +313,16 @@ async function initializeWasmWebClient(wasmPath, wasmSimdPath, glueCodePath, glu
302
313
  * headers on the handshake (e.g. `x-api-key`, `api-version`) would 401/4xx
303
314
  * before any encrypted traffic ever flowed.
304
315
  *
316
+ * The C++ `createApi` returns `false` while the in-binary handshake is still
317
+ * in flight and `true` once both the `/e2ee/key/v2` GET and the `/e2ee/key`
318
+ * POST have completed (encryption on) or once the WebClient is configured
319
+ * (encryption off — same boolean convention, just no network traffic). The
320
+ * JS bridge waits on that boolean via {@link wasmCallWrapper}, then surfaces
321
+ * any handshake error captured on the session-level (`threadId = -1`)
322
+ * request slot. Mirrors legacy
323
+ * `ms-incodesmile-web/packages/incode-welcome/src/wasmUtils/webClientApi.ts`
324
+ * `setupConnection`.
325
+ *
305
326
  * `useSha256` selects the OAEP MGF1 hash for the in-binary RSA wrap:
306
327
  * - `true` → MGF1 = SHA-256. Caller is responsible for attaching the
307
328
  * `X-RSA-Encryption-Scheme: RSA/NONE/OAEPWITHSHA-256ANDMGF1PADDING`
@@ -313,7 +334,9 @@ async function setupWasmConnection(apiURL, token, encryptionEnabled, defaultHead
313
334
  const api = ensureReady();
314
335
  api.resetSessionState?.();
315
336
  api.setDefaultHeaders?.(defaultHeaders);
316
- api.createApi(apiURL, token, useSha256, encryptionEnabled);
337
+ await wasmCallWrapper(semaphore, () => api.createApi(apiURL, token, useSha256, encryptionEnabled), false);
338
+ const result = api.getRequestResult(SETUP_THREAD_ID);
339
+ if (result.hasError) throw new WasmWebClientError(result.errorMessage || "WebClient handshake failed", result.statusCode, result.result);
317
340
  }
318
341
  /**
319
342
  * Executes a single HTTP request through the WASM WebClient.
@@ -1,4 +1,4 @@
1
- import { r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-C4kRvk5p.esm.js";
1
+ import { r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-B6JBaYWd.esm.js";
2
2
 
3
3
  //#region ../infra/src/providers/wasm/WasmUtilProvider.ts
4
4
  var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
@@ -1,7 +1,7 @@
1
1
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BESs49g_.esm.js";
2
2
  import { t as api } from "./api-YxPMtty2.esm.js";
3
3
  import { t as endpoints } from "./endpoints-B5r_jU0F.esm.js";
4
- import { i as fromCallback } from "./xstate.esm-B1sGYom9.esm.js";
4
+ import { i as fromCallback } from "./xstate.esm-4Hbeco7-.esm.js";
5
5
 
6
6
  //#region src/shared/usStates.ts
7
7
  const usStates = {
@@ -1,4 +1,4 @@
1
- import { t as createElectronicSignatureManager } from "./electronicSignatureManager-ZoVUciXI.esm.js";
1
+ import { t as createElectronicSignatureManager } from "./electronicSignatureManager-raW-Mwm9.esm.js";
2
2
 
3
3
  //#region src/modules/ae-signature/index.ts
4
4
  function createAeSignatureManager(options) {
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-BLXCBFdE.js";
2
2
  import "./Actor-DEDRrMqL.js";
3
- import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-DbPGpyJR.js";
3
+ import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-Btm1u91z.js";
4
4
 
5
5
  //#region src/modules/ae-signature/index.d.ts
6
6
 
@@ -1,8 +1,8 @@
1
1
  import "./api-YxPMtty2.esm.js";
2
2
  import "./events-6oja2Vp1.esm.js";
3
3
  import "./endpoints-B5r_jU0F.esm.js";
4
- import "./xstate.esm-B1sGYom9.esm.js";
5
- import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-ZoVUciXI.esm.js";
6
- import { t as createAeSignatureManager } from "./ae-signature-DenQl8yh.esm.js";
4
+ import "./xstate.esm-4Hbeco7-.esm.js";
5
+ import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-raW-Mwm9.esm.js";
6
+ import { t as createAeSignatureManager } from "./ae-signature-IBqB0Dug.esm.js";
7
7
 
8
8
  export { AE_CONSENT_KEYS, electronicSignatureMachine as aeSignatureMachine, areAllConsented, createAeSignatureManager, getDefaultConsentChecks };
@@ -1,8 +1,8 @@
1
1
  import "./api-YxPMtty2.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-6oja2Vp1.esm.js";
3
3
  import "./endpoints-B5r_jU0F.esm.js";
4
- import { o as createActor, s as createManager } from "./xstate.esm-B1sGYom9.esm.js";
5
- import { t as antifraudMachine } from "./antifraudStateMachine-BelS5Elj.esm.js";
4
+ import { c as createManager, s as createActor } from "./xstate.esm-4Hbeco7-.esm.js";
5
+ import { t as antifraudMachine } from "./antifraudStateMachine-Fpe58Waf.esm.js";
6
6
 
7
7
  //#region src/modules/antifraud/antifraudActor.ts
8
8
  function createAntifraudActor() {
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-YxPMtty2.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B5r_jU0F.esm.js";
3
- import { a as fromPromise, t as setup } from "./xstate.esm-B1sGYom9.esm.js";
3
+ import { a as fromPromise, t as setup } from "./xstate.esm-4Hbeco7-.esm.js";
4
4
 
5
5
  //#region src/modules/antifraud/antifraudServices.ts
6
6
  async function processAntifraud(signal) {
@@ -1,17 +1,17 @@
1
- import "./BaseWasmProvider-C4kRvk5p.esm.js";
2
- import "./WasmUtilProvider-CA4ukNv_.esm.js";
1
+ import "./BaseWasmProvider-B6JBaYWd.esm.js";
2
+ import "./WasmUtilProvider-DxqNQNZt.esm.js";
3
3
  import "./api-YxPMtty2.esm.js";
4
4
  import "./events-6oja2Vp1.esm.js";
5
5
  import "./endpoints-B5r_jU0F.esm.js";
6
6
  import "./browserSimulation-Dk7pccUx.esm.js";
7
- import "./xstate.esm-B1sGYom9.esm.js";
8
- import "./faceCaptureManagerFactory-D7Xn7UC-.esm.js";
7
+ import "./xstate.esm-4Hbeco7-.esm.js";
8
+ import "./faceCaptureManagerFactory-5TsuUYct.esm.js";
9
9
  import "./BrowserStorageProvider-DZKAXWMk.esm.js";
10
- import "./faceCaptureSetup-CeTC0oHF.esm.js";
10
+ import "./faceCaptureSetup-Dt5-oVQa.esm.js";
11
11
  import "./ITimerCapability-CMihfBXX.esm.js";
12
12
  import "./camera-3XOyIO-y.esm.js";
13
13
  import "./deepsightService-ChMLz84Z.esm.js";
14
- import "./recordingService-9XRd9o0s.esm.js";
14
+ import "./recordingService-csK4vWGk.esm.js";
15
15
  import "./platform--lIMUY2_.esm.js";
16
16
  import "./backCameraStream-CuJYw91G.esm.js";
17
17
  import "./getBrowser-C1HlAXLZ.esm.js";
@@ -19,7 +19,7 @@ import "./stats-DR3YOKUE.esm.js";
19
19
  import "./getDeviceClass-B8mq0rxr.esm.js";
20
20
  import "./MotionSensorProvider-BIapLrDS.esm.js";
21
21
  import "./permissionServices-SsJ4PlZ5.esm.js";
22
- import { t as authenticationMachine } from "./authenticationStateMachine-C9ExNiDG.esm.js";
23
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-718EJfcp.esm.js";
22
+ import { t as authenticationMachine } from "./authenticationStateMachine-BEFhLVBz.esm.js";
23
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-BLxe_oTp.esm.js";
24
24
 
25
25
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
- import { t as WasmUtilProvider } from "./WasmUtilProvider-CA4ukNv_.esm.js";
1
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-DxqNQNZt.esm.js";
2
2
  import { n as eventModuleNames } from "./events-6oja2Vp1.esm.js";
3
- import { o as createActor } from "./xstate.esm-B1sGYom9.esm.js";
4
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-D7Xn7UC-.esm.js";
3
+ import { s as createActor } from "./xstate.esm-4Hbeco7-.esm.js";
4
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-5TsuUYct.esm.js";
5
5
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-DZKAXWMk.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-C9ExNiDG.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-BEFhLVBz.esm.js";
7
7
 
8
8
  //#region src/modules/authentication/authenticationActor.ts
9
9
  function createAuthenticationActor(options) {
@@ -1,8 +1,8 @@
1
1
  import { t as api } from "./api-YxPMtty2.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B5r_jU0F.esm.js";
3
- import { a as fromPromise, r as assign } from "./xstate.esm-B1sGYom9.esm.js";
4
- import { a as prepareOnDeviceFaceUpload, i as postOnDeviceFaceResults, n as defaultPrepareFaceUpload, r as isOnDeviceMode, t as faceCaptureMachine } from "./faceCaptureSetup-CeTC0oHF.esm.js";
5
- import { m as FACE_ERROR_CODES } from "./recordingService-9XRd9o0s.esm.js";
3
+ import { a as fromPromise, r as assign } from "./xstate.esm-4Hbeco7-.esm.js";
4
+ import { a as prepareOnDeviceFaceUpload, i as postOnDeviceFaceResults, n as defaultPrepareFaceUpload, r as isOnDeviceMode, t as faceCaptureMachine } from "./faceCaptureSetup-Dt5-oVQa.esm.js";
5
+ import { m as FACE_ERROR_CODES } from "./recordingService-csK4vWGk.esm.js";
6
6
  import { t as getDeviceClass } from "./getDeviceClass-B8mq0rxr.esm.js";
7
7
 
8
8
  //#region src/modules/authentication/authenticationErrorUtils.ts
package/dist/consent.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-BLXCBFdE.js";
2
2
  import "./Actor-DEDRrMqL.js";
3
- import * as xstate895 from "xstate";
3
+ import * as xstate882 from "xstate";
4
4
 
5
5
  //#region src/modules/consent/types.d.ts
6
6
  type ConsentConfig = {
@@ -36,7 +36,7 @@ type ConsentContext = {
36
36
  type ConsentInput = {
37
37
  config: ConsentConfig;
38
38
  };
39
- declare const consentMachine: xstate895.StateMachine<ConsentContext, {
39
+ declare const consentMachine: xstate882.StateMachine<ConsentContext, {
40
40
  type: "LOAD";
41
41
  } | {
42
42
  type: "TOGGLE_CHECKBOX";
@@ -48,53 +48,53 @@ declare const consentMachine: xstate895.StateMachine<ConsentContext, {
48
48
  } | {
49
49
  type: "RESET";
50
50
  }, {
51
- [x: string]: xstate895.ActorRefFromLogic<xstate895.PromiseActorLogic<FetchCombinedConsentResponse, {
51
+ [x: string]: xstate882.ActorRefFromLogic<xstate882.PromiseActorLogic<FetchCombinedConsentResponse, {
52
52
  consentId: string;
53
- }, xstate895.EventObject>> | xstate895.ActorRefFromLogic<xstate895.PromiseActorLogic<void, {
53
+ }, xstate882.EventObject>> | xstate882.ActorRefFromLogic<xstate882.PromiseActorLogic<void, {
54
54
  languageConsentId: string;
55
55
  checkboxes: ConsentCheckbox[];
56
- }, xstate895.EventObject>> | undefined;
57
- }, xstate895.Values<{
56
+ }, xstate882.EventObject>> | undefined;
57
+ }, xstate882.Values<{
58
58
  fetchConsent: {
59
59
  src: "fetchConsent";
60
- logic: xstate895.PromiseActorLogic<FetchCombinedConsentResponse, {
60
+ logic: xstate882.PromiseActorLogic<FetchCombinedConsentResponse, {
61
61
  consentId: string;
62
- }, xstate895.EventObject>;
62
+ }, xstate882.EventObject>;
63
63
  id: string | undefined;
64
64
  };
65
65
  submitConsent: {
66
66
  src: "submitConsent";
67
- logic: xstate895.PromiseActorLogic<void, {
67
+ logic: xstate882.PromiseActorLogic<void, {
68
68
  languageConsentId: string;
69
69
  checkboxes: ConsentCheckbox[];
70
- }, xstate895.EventObject>;
70
+ }, xstate882.EventObject>;
71
71
  id: string | undefined;
72
72
  };
73
- }>, xstate895.Values<{
74
- clearError: {
75
- type: "clearError";
76
- params: xstate895.NonReducibleUnknown;
73
+ }>, xstate882.Values<{
74
+ resetContext: {
75
+ type: "resetContext";
76
+ params: xstate882.NonReducibleUnknown;
77
77
  };
78
78
  setError: {
79
79
  type: "setError";
80
- params: xstate895.NonReducibleUnknown;
80
+ params: xstate882.NonReducibleUnknown;
81
81
  };
82
- resetContext: {
83
- type: "resetContext";
84
- params: xstate895.NonReducibleUnknown;
82
+ clearError: {
83
+ type: "clearError";
84
+ params: xstate882.NonReducibleUnknown;
85
85
  };
86
86
  setConsentData: {
87
87
  type: "setConsentData";
88
- params: xstate895.NonReducibleUnknown;
88
+ params: xstate882.NonReducibleUnknown;
89
89
  };
90
90
  toggleCheckbox: {
91
91
  type: "toggleCheckbox";
92
- params: xstate895.NonReducibleUnknown;
92
+ params: xstate882.NonReducibleUnknown;
93
93
  };
94
94
  }>, {
95
95
  type: "canSubmit";
96
96
  params: unknown;
97
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate895.NonReducibleUnknown, xstate895.EventObject, xstate895.MetaObject, {
97
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate882.NonReducibleUnknown, xstate882.EventObject, xstate882.MetaObject, {
98
98
  readonly id: "consent";
99
99
  readonly initial: "idle";
100
100
  readonly context: ({
@@ -103,70 +103,70 @@ declare const consentMachine: xstate895.StateMachine<ConsentContext, {
103
103
  spawn: {
104
104
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
105
105
  src: "fetchConsent";
106
- logic: xstate895.PromiseActorLogic<FetchCombinedConsentResponse, {
106
+ logic: xstate882.PromiseActorLogic<FetchCombinedConsentResponse, {
107
107
  consentId: string;
108
- }, xstate895.EventObject>;
108
+ }, xstate882.EventObject>;
109
109
  id: string | undefined;
110
110
  } extends infer T ? T extends {
111
111
  src: "fetchConsent";
112
- logic: xstate895.PromiseActorLogic<FetchCombinedConsentResponse, {
112
+ logic: xstate882.PromiseActorLogic<FetchCombinedConsentResponse, {
113
113
  consentId: string;
114
- }, xstate895.EventObject>;
114
+ }, xstate882.EventObject>;
115
115
  id: string | undefined;
116
116
  } ? T extends {
117
117
  src: TSrc;
118
- } ? xstate895.ConditionalRequired<[options?: ({
118
+ } ? xstate882.ConditionalRequired<[options?: ({
119
119
  id?: T["id"] | undefined;
120
120
  systemId?: string;
121
- input?: xstate895.InputFrom<T["logic"]> | undefined;
121
+ input?: xstate882.InputFrom<T["logic"]> | undefined;
122
122
  syncSnapshot?: boolean;
123
- } & { [K in xstate895.RequiredActorOptions<T>]: unknown }) | undefined], xstate895.IsNotNever<xstate895.RequiredActorOptions<T>>> : never : never : never) | ({
123
+ } & { [K in xstate882.RequiredActorOptions<T>]: unknown }) | undefined], xstate882.IsNotNever<xstate882.RequiredActorOptions<T>>> : never : never : never) | ({
124
124
  src: "submitConsent";
125
- logic: xstate895.PromiseActorLogic<void, {
125
+ logic: xstate882.PromiseActorLogic<void, {
126
126
  languageConsentId: string;
127
127
  checkboxes: ConsentCheckbox[];
128
- }, xstate895.EventObject>;
128
+ }, xstate882.EventObject>;
129
129
  id: string | undefined;
130
130
  } extends infer T_1 ? T_1 extends {
131
131
  src: "submitConsent";
132
- logic: xstate895.PromiseActorLogic<void, {
132
+ logic: xstate882.PromiseActorLogic<void, {
133
133
  languageConsentId: string;
134
134
  checkboxes: ConsentCheckbox[];
135
- }, xstate895.EventObject>;
135
+ }, xstate882.EventObject>;
136
136
  id: string | undefined;
137
137
  } ? T_1 extends {
138
138
  src: TSrc;
139
- } ? xstate895.ConditionalRequired<[options?: ({
139
+ } ? xstate882.ConditionalRequired<[options?: ({
140
140
  id?: T_1["id"] | undefined;
141
141
  systemId?: string;
142
- input?: xstate895.InputFrom<T_1["logic"]> | undefined;
142
+ input?: xstate882.InputFrom<T_1["logic"]> | undefined;
143
143
  syncSnapshot?: boolean;
144
- } & { [K_1 in xstate895.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate895.IsNotNever<xstate895.RequiredActorOptions<T_1>>> : never : never : never)): xstate895.ActorRefFromLogic<xstate895.GetConcreteByKey<xstate895.Values<{
144
+ } & { [K_1 in xstate882.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate882.IsNotNever<xstate882.RequiredActorOptions<T_1>>> : never : never : never)): xstate882.ActorRefFromLogic<xstate882.GetConcreteByKey<xstate882.Values<{
145
145
  fetchConsent: {
146
146
  src: "fetchConsent";
147
- logic: xstate895.PromiseActorLogic<FetchCombinedConsentResponse, {
147
+ logic: xstate882.PromiseActorLogic<FetchCombinedConsentResponse, {
148
148
  consentId: string;
149
- }, xstate895.EventObject>;
149
+ }, xstate882.EventObject>;
150
150
  id: string | undefined;
151
151
  };
152
152
  submitConsent: {
153
153
  src: "submitConsent";
154
- logic: xstate895.PromiseActorLogic<void, {
154
+ logic: xstate882.PromiseActorLogic<void, {
155
155
  languageConsentId: string;
156
156
  checkboxes: ConsentCheckbox[];
157
- }, xstate895.EventObject>;
157
+ }, xstate882.EventObject>;
158
158
  id: string | undefined;
159
159
  };
160
160
  }>, "src", TSrc>["logic"]>;
161
- <TLogic extends xstate895.AnyActorLogic>(src: TLogic, ...[options]: xstate895.ConditionalRequired<[options?: ({
161
+ <TLogic extends xstate882.AnyActorLogic>(src: TLogic, ...[options]: xstate882.ConditionalRequired<[options?: ({
162
162
  id?: never;
163
163
  systemId?: string;
164
- input?: xstate895.InputFrom<TLogic> | undefined;
164
+ input?: xstate882.InputFrom<TLogic> | undefined;
165
165
  syncSnapshot?: boolean;
166
- } & { [K in xstate895.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate895.IsNotNever<xstate895.RequiredLogicInput<TLogic>>>): xstate895.ActorRefFromLogic<TLogic>;
166
+ } & { [K in xstate882.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate882.IsNotNever<xstate882.RequiredLogicInput<TLogic>>>): xstate882.ActorRefFromLogic<TLogic>;
167
167
  };
168
168
  input: ConsentInput;
169
- self: xstate895.ActorRef<xstate895.MachineSnapshot<ConsentContext, {
169
+ self: xstate882.ActorRef<xstate882.MachineSnapshot<ConsentContext, {
170
170
  type: "LOAD";
171
171
  } | {
172
172
  type: "TOGGLE_CHECKBOX";
@@ -177,7 +177,7 @@ declare const consentMachine: xstate895.StateMachine<ConsentContext, {
177
177
  type: "RETRY";
178
178
  } | {
179
179
  type: "RESET";
180
- }, Record<string, xstate895.AnyActorRef | undefined>, xstate895.StateValue, string, unknown, any, any>, {
180
+ }, Record<string, xstate882.AnyActorRef | undefined>, xstate882.StateValue, string, unknown, any, any>, {
181
181
  type: "LOAD";
182
182
  } | {
183
183
  type: "TOGGLE_CHECKBOX";
@@ -188,7 +188,7 @@ declare const consentMachine: xstate895.StateMachine<ConsentContext, {
188
188
  type: "RETRY";
189
189
  } | {
190
190
  type: "RESET";
191
- }, xstate895.AnyEventObject>;
191
+ }, xstate882.AnyEventObject>;
192
192
  }) => {
193
193
  config: ConsentConfig;
194
194
  title: string;
@@ -226,7 +226,7 @@ declare const consentMachine: xstate895.StateMachine<ConsentContext, {
226
226
  } | {
227
227
  type: "RESET";
228
228
  };
229
- self: xstate895.ActorRef<xstate895.MachineSnapshot<ConsentContext, {
229
+ self: xstate882.ActorRef<xstate882.MachineSnapshot<ConsentContext, {
230
230
  type: "LOAD";
231
231
  } | {
232
232
  type: "TOGGLE_CHECKBOX";
@@ -237,7 +237,7 @@ declare const consentMachine: xstate895.StateMachine<ConsentContext, {
237
237
  type: "RETRY";
238
238
  } | {
239
239
  type: "RESET";
240
- }, Record<string, xstate895.AnyActorRef>, xstate895.StateValue, string, unknown, any, any>, {
240
+ }, Record<string, xstate882.AnyActorRef>, xstate882.StateValue, string, unknown, any, any>, {
241
241
  type: "LOAD";
242
242
  } | {
243
243
  type: "TOGGLE_CHECKBOX";
@@ -248,7 +248,7 @@ declare const consentMachine: xstate895.StateMachine<ConsentContext, {
248
248
  type: "RETRY";
249
249
  } | {
250
250
  type: "RESET";
251
- }, xstate895.AnyEventObject>;
251
+ }, xstate882.AnyEventObject>;
252
252
  }) => {
253
253
  consentId: string;
254
254
  };
@@ -297,7 +297,7 @@ declare const consentMachine: xstate895.StateMachine<ConsentContext, {
297
297
  } | {
298
298
  type: "RESET";
299
299
  };
300
- self: xstate895.ActorRef<xstate895.MachineSnapshot<ConsentContext, {
300
+ self: xstate882.ActorRef<xstate882.MachineSnapshot<ConsentContext, {
301
301
  type: "LOAD";
302
302
  } | {
303
303
  type: "TOGGLE_CHECKBOX";
@@ -308,7 +308,7 @@ declare const consentMachine: xstate895.StateMachine<ConsentContext, {
308
308
  type: "RETRY";
309
309
  } | {
310
310
  type: "RESET";
311
- }, Record<string, xstate895.AnyActorRef>, xstate895.StateValue, string, unknown, any, any>, {
311
+ }, Record<string, xstate882.AnyActorRef>, xstate882.StateValue, string, unknown, any, any>, {
312
312
  type: "LOAD";
313
313
  } | {
314
314
  type: "TOGGLE_CHECKBOX";
@@ -319,7 +319,7 @@ declare const consentMachine: xstate895.StateMachine<ConsentContext, {
319
319
  type: "RETRY";
320
320
  } | {
321
321
  type: "RESET";
322
- }, xstate895.AnyEventObject>;
322
+ }, xstate882.AnyEventObject>;
323
323
  }) => {
324
324
  languageConsentId: string;
325
325
  checkboxes: ConsentCheckbox[];
@@ -1,8 +1,8 @@
1
1
  import "./api-YxPMtty2.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-6oja2Vp1.esm.js";
3
3
  import "./endpoints-B5r_jU0F.esm.js";
4
- import { o as createActor, s as createManager } from "./xstate.esm-B1sGYom9.esm.js";
5
- import { t as consentMachine } from "./consentStateMachine-BYay_qVs.esm.js";
4
+ import { c as createManager, s as createActor } from "./xstate.esm-4Hbeco7-.esm.js";
5
+ import { t as consentMachine } from "./consentStateMachine-EZ3-uzbT.esm.js";
6
6
 
7
7
  //#region src/modules/consent/consentActor.ts
8
8
  function createConsentActor(options) {
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-YxPMtty2.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B5r_jU0F.esm.js";
3
- import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-B1sGYom9.esm.js";
3
+ import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-4Hbeco7-.esm.js";
4
4
 
5
5
  //#region src/modules/consent/consentServices.ts
6
6
  async function fetchCombinedConsent(consentId, signal) {
package/dist/cpf-ocr.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as Manager } from "./Manager-BLXCBFdE.js";
2
- import * as xstate513 from "xstate";
2
+ import * as xstate463 from "xstate";
3
3
 
4
4
  //#region src/modules/cpf-ocr/cpfOcrManager.d.ts
5
5
  type CpfOcrIdleState = {
@@ -47,7 +47,7 @@ type CpfOcrContext = {
47
47
  error: string | undefined;
48
48
  };
49
49
  type CpfOcrInput = Record<string, never>;
50
- declare const cpfOcrMachine: xstate513.StateMachine<CpfOcrContext, {
50
+ declare const cpfOcrMachine: xstate463.StateMachine<CpfOcrContext, {
51
51
  type: "LOAD";
52
52
  } | {
53
53
  type: "SET_CPF";
@@ -57,43 +57,43 @@ declare const cpfOcrMachine: xstate513.StateMachine<CpfOcrContext, {
57
57
  } | {
58
58
  type: "RETRY";
59
59
  }, {
60
- [x: string]: xstate513.ActorRefFromLogic<xstate513.PromiseActorLogic<CpfOcrDataResponse, void, xstate513.EventObject>> | xstate513.ActorRefFromLogic<xstate513.PromiseActorLogic<CpfOcrUpdateResponse, {
60
+ [x: string]: xstate463.ActorRefFromLogic<xstate463.PromiseActorLogic<CpfOcrDataResponse, void, xstate463.EventObject>> | xstate463.ActorRefFromLogic<xstate463.PromiseActorLogic<CpfOcrUpdateResponse, {
61
61
  cpf: string;
62
- }, xstate513.EventObject>> | undefined;
63
- }, xstate513.Values<{
62
+ }, xstate463.EventObject>> | undefined;
63
+ }, xstate463.Values<{
64
64
  fetchCpfOcrData: {
65
65
  src: "fetchCpfOcrData";
66
- logic: xstate513.PromiseActorLogic<CpfOcrDataResponse, void, xstate513.EventObject>;
66
+ logic: xstate463.PromiseActorLogic<CpfOcrDataResponse, void, xstate463.EventObject>;
67
67
  id: string | undefined;
68
68
  };
69
69
  submitCpfOcr: {
70
70
  src: "submitCpfOcr";
71
- logic: xstate513.PromiseActorLogic<CpfOcrUpdateResponse, {
71
+ logic: xstate463.PromiseActorLogic<CpfOcrUpdateResponse, {
72
72
  cpf: string;
73
- }, xstate513.EventObject>;
73
+ }, xstate463.EventObject>;
74
74
  id: string | undefined;
75
75
  };
76
- }>, xstate513.Values<{
77
- clearError: {
78
- type: "clearError";
79
- params: xstate513.NonReducibleUnknown;
80
- };
76
+ }>, xstate463.Values<{
81
77
  setError: {
82
78
  type: "setError";
83
- params: xstate513.NonReducibleUnknown;
79
+ params: xstate463.NonReducibleUnknown;
80
+ };
81
+ clearError: {
82
+ type: "clearError";
83
+ params: xstate463.NonReducibleUnknown;
84
84
  };
85
85
  setPrefill: {
86
86
  type: "setPrefill";
87
- params: xstate513.NonReducibleUnknown;
87
+ params: xstate463.NonReducibleUnknown;
88
88
  };
89
89
  setCpf: {
90
90
  type: "setCpf";
91
- params: xstate513.NonReducibleUnknown;
91
+ params: xstate463.NonReducibleUnknown;
92
92
  };
93
93
  }>, {
94
94
  type: "isValid";
95
95
  params: unknown;
96
- }, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput, xstate513.NonReducibleUnknown, xstate513.EventObject, xstate513.MetaObject, {
96
+ }, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput, xstate463.NonReducibleUnknown, xstate463.EventObject, xstate463.MetaObject, {
97
97
  readonly id: "cpfOcr";
98
98
  readonly initial: "idle";
99
99
  readonly context: {
@@ -148,7 +148,7 @@ declare const cpfOcrMachine: xstate513.StateMachine<CpfOcrContext, {
148
148
  } | {
149
149
  type: "RETRY";
150
150
  };
151
- self: xstate513.ActorRef<xstate513.MachineSnapshot<CpfOcrContext, {
151
+ self: xstate463.ActorRef<xstate463.MachineSnapshot<CpfOcrContext, {
152
152
  type: "LOAD";
153
153
  } | {
154
154
  type: "SET_CPF";
@@ -157,7 +157,7 @@ declare const cpfOcrMachine: xstate513.StateMachine<CpfOcrContext, {
157
157
  type: "SUBMIT";
158
158
  } | {
159
159
  type: "RETRY";
160
- }, Record<string, xstate513.AnyActorRef>, xstate513.StateValue, string, unknown, any, any>, {
160
+ }, Record<string, xstate463.AnyActorRef>, xstate463.StateValue, string, unknown, any, any>, {
161
161
  type: "LOAD";
162
162
  } | {
163
163
  type: "SET_CPF";
@@ -166,7 +166,7 @@ declare const cpfOcrMachine: xstate513.StateMachine<CpfOcrContext, {
166
166
  type: "SUBMIT";
167
167
  } | {
168
168
  type: "RETRY";
169
- }, xstate513.AnyEventObject>;
169
+ }, xstate463.AnyEventObject>;
170
170
  }) => {
171
171
  cpf: string;
172
172
  };
@@ -1,7 +1,7 @@
1
1
  import { t as api } from "./api-YxPMtty2.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-6oja2Vp1.esm.js";
3
3
  import { t as endpoints } from "./endpoints-B5r_jU0F.esm.js";
4
- import { a as fromPromise, o as createActor, r as assign, s as createManager, t as setup } from "./xstate.esm-B1sGYom9.esm.js";
4
+ import { a as fromPromise, c as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-4Hbeco7-.esm.js";
5
5
  import { t as validateCPF } from "./cpf-DA0Pd4Yi.esm.js";
6
6
 
7
7
  //#region src/modules/cpf-ocr/cpfOcrServices.ts
@@ -1,7 +1,7 @@
1
1
  import { t as api } from "./api-YxPMtty2.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-6oja2Vp1.esm.js";
3
3
  import { t as endpoints } from "./endpoints-B5r_jU0F.esm.js";
4
- import { a as fromPromise, o as createActor, s as createManager, t as setup } from "./xstate.esm-B1sGYom9.esm.js";
4
+ import { a as fromPromise, c as createManager, s as createActor, t as setup } from "./xstate.esm-4Hbeco7-.esm.js";
5
5
  import { t as sleep } from "./ITimerCapability-CMihfBXX.esm.js";
6
6
 
7
7
  //#region src/modules/cross-document-data-match/crossDocumentDataMatchServices.ts
@@ -1,8 +1,8 @@
1
1
  import "./api-YxPMtty2.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-6oja2Vp1.esm.js";
3
3
  import "./endpoints-B5r_jU0F.esm.js";
4
- import { o as createActor, s as createManager } from "./xstate.esm-B1sGYom9.esm.js";
5
- import { n as mexicanStates, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-9-MsnCyq.esm.js";
4
+ import { c as createManager, s as createActor } from "./xstate.esm-4Hbeco7-.esm.js";
5
+ import { n as mexicanStates, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-YAyvC9Zd.esm.js";
6
6
 
7
7
  //#region src/modules/curp-validation/curpValidationActor.ts
8
8
  function createCurpValidationActor(options) {
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-YxPMtty2.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B5r_jU0F.esm.js";
3
- import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-B1sGYom9.esm.js";
3
+ import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-4Hbeco7-.esm.js";
4
4
 
5
5
  //#region src/modules/curp-validation/curpFields.ts
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  import { t as api } from "./api-YxPMtty2.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-6oja2Vp1.esm.js";
3
3
  import { t as endpoints } from "./endpoints-B5r_jU0F.esm.js";
4
- import { a as fromPromise, o as createActor, r as assign, s as createManager, t as setup } from "./xstate.esm-B1sGYom9.esm.js";
4
+ import { a as fromPromise, c as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-4Hbeco7-.esm.js";
5
5
  import { t as isoDateToMs } from "./dateUtils-BcWQLL-B.esm.js";
6
6
 
7
7
  //#region src/modules/custom-fields/customFieldsServices.ts
@@ -1,7 +1,7 @@
1
1
  import "./api-YxPMtty2.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-6oja2Vp1.esm.js";
3
3
  import "./endpoints-B5r_jU0F.esm.js";
4
- import { a as fromPromise, o as createActor, r as assign, s as createManager, t as setup } from "./xstate.esm-B1sGYom9.esm.js";
4
+ import { a as fromPromise, c as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-4Hbeco7-.esm.js";
5
5
  import { t as processWatchlist } from "./watchlistServices-BQFlNjPk.esm.js";
6
6
 
7
7
  //#region src/modules/custom-watchlist/customWatchlistStateMachine.ts