@incodetech/core 0.0.0-dev-20261105-f2428eb8 → 0.0.0-dev-20261105-d2b86119

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 (108) hide show
  1. package/dist/{FaceDetectionProvider-DRhVgIHc.esm.js → FaceDetectionProvider-DMmVB1hj.esm.js} +4 -4
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/{apiError-DXR2NkYe.esm.js → apiError-DsuCg1yn.esm.js} +1 -1
  4. package/dist/authentication.d.ts +3 -3
  5. package/dist/authentication.esm.js +2 -2
  6. package/dist/{authenticationManager-uL-X6HRl.esm.js → authenticationManager-CCvF_eD4.esm.js} +3 -3
  7. package/dist/{authenticationManager-4I0vI7Ia.d.ts → authenticationManager-DKLRA91K.d.ts} +1 -1
  8. package/dist/{authenticationStateMachine-C4SO_VsV.esm.js → authenticationStateMachine-D2dG9pgS.esm.js} +2 -2
  9. package/dist/consent.d.ts +1 -1
  10. package/dist/{consentManager-sjhjBNVr.d.ts → consentManager-DXetSxcx.d.ts} +1 -1
  11. package/dist/curp-validation.d.ts +1 -1
  12. package/dist/{curpValidationManager-DP91Z3Lp.d.ts → curpValidationManager-Crz3bnCo.d.ts} +1 -1
  13. package/dist/{deepsightLoader-BEcge2nG.esm.js → deepsightLoader-m9rH-Qdj.esm.js} +3 -3
  14. package/dist/document-capture.d.ts +1 -1
  15. package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-YwPg7gOl.d.ts} +4 -4
  16. package/dist/dynamic-forms.esm.js +2 -2
  17. package/dist/{dynamicFormsManager-BXkLpmi8.esm.js → dynamicFormsManager-B2RKdYzW.esm.js} +1 -1
  18. package/dist/{dynamicFormsStateMachine-ePiMxsip.esm.js → dynamicFormsStateMachine-DUBLWhlp.esm.js} +1 -1
  19. package/dist/ekyb.d.ts +1 -1
  20. package/dist/ekyb.esm.js +2 -2
  21. package/dist/{ekybManager-C8iLqh9O.esm.js → ekybManager-DiMHt66M.esm.js} +1 -1
  22. package/dist/{ekybStateMachine--wB3zN5x.esm.js → ekybStateMachine-UC0px15n.esm.js} +1 -1
  23. package/dist/ekyc-prefill.d.ts +3 -3
  24. package/dist/ekyc-prefill.esm.js +2 -2
  25. package/dist/ekyc.d.ts +2 -2
  26. package/dist/ekyc.esm.js +3 -3
  27. package/dist/{ekycManager-CI5xhnV9.esm.js → ekycManager-BtuTGKIG.esm.js} +1 -1
  28. package/dist/{ekycManager-Ck39UxiP.d.ts → ekycManager-CERRvIfg.d.ts} +1 -1
  29. package/dist/{ekycPrefillManager-Dmg-Nong.esm.js → ekycPrefillManager-BMl5pK-m.esm.js} +1 -1
  30. package/dist/{ekycPrefillManager-DLXmc4Ip.d.ts → ekycPrefillManager-CB1d6mt4.d.ts} +3 -3
  31. package/dist/{ekycPrefillStateMachine-ZP2FAUAA.esm.js → ekycPrefillStateMachine-B46wTO-Q.esm.js} +9 -5
  32. package/dist/{ekycRules-LnvbwaCu.esm.js → ekycRules-B7vXnbdg.esm.js} +10 -1
  33. package/dist/{ekycStateMachine-D8eI7aJF.esm.js → ekycStateMachine-DAJJG7NG.esm.js} +413 -233
  34. package/dist/{ekycUtils-CQaAb4DH.esm.js → ekycUtils-K6VJXnOg.esm.js} +10 -2
  35. package/dist/electronic-signature.esm.js +1 -1
  36. package/dist/{electronicSignatureManager-BIrm8DJQ.esm.js → electronicSignatureManager-D5QSi2VH.esm.js} +1 -1
  37. package/dist/extensibility.d.ts +14 -14
  38. package/dist/extensibility.esm.js +14 -14
  39. package/dist/{faceCaptureManagerFactory-IKcUWZkZ.esm.js → faceCaptureManagerFactory-D1QsPQrD.esm.js} +1 -1
  40. package/dist/{faceCaptureManagerFactory-DKJmi7qR.d.ts → faceCaptureManagerFactory-ZudYP6Qp.d.ts} +3 -3
  41. package/dist/{faceCaptureSetup-CmYaZYnH.esm.js → faceCaptureSetup-BYMyUbS2.esm.js} +3 -3
  42. package/dist/{feature-management-BvRuvOXx.esm.js → feature-management-C-1n44kI.esm.js} +1 -1
  43. package/dist/feature-management.esm.js +1 -1
  44. package/dist/flow-events.d.ts +1 -1
  45. package/dist/flow.d.ts +9 -8
  46. package/dist/flow.esm.js +45 -9
  47. package/dist/{flowCompletionService-K7B9WEkd.esm.js → flowCompletionService-CBXpDhZO.esm.js} +1 -1
  48. package/dist/{flowServices-ihRH5TZl.esm.js → flowServices-DzIifCBt.esm.js} +6 -6
  49. package/dist/geolocation.d.ts +1 -1
  50. package/dist/geolocation.esm.js +2 -2
  51. package/dist/{geolocationManager-DxL9QTOl.esm.js → geolocationManager-BsR6Hr52.esm.js} +1 -1
  52. package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CPhykMow.d.ts} +1 -1
  53. package/dist/{geolocationStateMachine-DAwU46qr.esm.js → geolocationStateMachine-YspHycfB.esm.js} +1 -1
  54. package/dist/home.d.ts +1 -1
  55. package/dist/id-ocr.d.ts +2 -2
  56. package/dist/id-ocr.esm.js +2 -2
  57. package/dist/id-selfie-flow.d.ts +1 -1
  58. package/dist/id-selfie-flow.esm.js +6 -6
  59. package/dist/id.d.ts +2 -2
  60. package/dist/id.esm.js +3 -3
  61. package/dist/{idCaptureManager-CMAWPFy4.esm.js → idCaptureManager-BGyY2QJW.esm.js} +3 -3
  62. package/dist/{idCaptureManager-DIgTvLKp.d.ts → idCaptureManager-NRGuCVv2.d.ts} +2 -2
  63. package/dist/{idCaptureServices-CebmMR6F.esm.js → idCaptureServices-Rj8gQUN0.esm.js} +2 -2
  64. package/dist/{idCaptureStateMachine-DIaNzZwh.esm.js → idCaptureStateMachine-CIYYm8ug.esm.js} +8 -8
  65. package/dist/{idOcrManager-Bth5yK0p.esm.js → idOcrManager-BMK2oou0.esm.js} +1 -1
  66. package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-Bq2S6vYt.d.ts} +3 -3
  67. package/dist/{idOcrStateMachine-CadFItF5.esm.js → idOcrStateMachine-RjNycN07.esm.js} +5 -5
  68. package/dist/{index-DJHm-TMV.d.ts → index-BGnYn_4J.d.ts} +1 -1
  69. package/dist/index.esm.js +1 -1
  70. package/dist/kyb-checks.esm.js +2 -2
  71. package/dist/{kybChecksManager-CS-t7w-f.esm.js → kybChecksManager-CkPk9MYg.esm.js} +1 -1
  72. package/dist/{kybChecksStateMachine-wLr9LmEC.esm.js → kybChecksStateMachine-ZOZbWEvd.esm.js} +2 -2
  73. package/dist/mandatory-consent.d.ts +2 -2
  74. package/dist/{mandatoryConsentManager-Cafqa1Ui.d.ts → mandatoryConsentManager-MhZYQg10.d.ts} +2 -2
  75. package/dist/{phoneFormat-JJNaWthV.esm.js → phoneFormat-DEpESpz2.esm.js} +13 -1
  76. package/dist/qe-signature.esm.js +1 -1
  77. package/dist/{runChildModule-DceexE5T.esm.js → runChildModule-7LwsDQ6K.esm.js} +1 -1
  78. package/dist/{sdkVersion-D3arDJUq.esm.js → sdkVersion-CNJSh1Ig.esm.js} +1 -1
  79. package/dist/selfie.d.ts +3 -3
  80. package/dist/selfie.esm.js +6 -6
  81. package/dist/{selfieErrorUtils-DrKCoCxF.esm.js → selfieErrorUtils-CiDRunl3.esm.js} +1 -1
  82. package/dist/{selfieManager-DOcMqaXs.d.ts → selfieManager-BPOlD-UN.d.ts} +1 -1
  83. package/dist/{selfieManager-D6dMws4s.esm.js → selfieManager-DKy62UWd.esm.js} +3 -3
  84. package/dist/{selfieStateMachine-BMA7a-Qq.esm.js → selfieStateMachine-BEFMDLyP.esm.js} +3 -3
  85. package/dist/{session-1jc_rAuF.esm.js → session-DoW6RGn_.esm.js} +3 -3
  86. package/dist/session.d.ts +1 -1
  87. package/dist/session.esm.js +4 -4
  88. package/dist/{sessionInitializer-B4Q6dyf4.esm.js → sessionInitializer-DKxXaZQG.esm.js} +3 -3
  89. package/dist/{setup-C-VublJM.esm.js → setup-BGbltXDV.esm.js} +4 -4
  90. package/dist/{trueSightService-PCxthXLl.esm.js → trueSightService-BD4dhHr-.esm.js} +1 -1
  91. package/dist/{types-CU2FuBFO.d.ts → types-0Rr7etmf.d.ts} +1 -1
  92. package/dist/types-B2M1IPZn.d.ts +6 -0
  93. package/dist/{types-Ej8whHOw.d.ts → types-BD9sV5oG.d.ts} +1 -1
  94. package/dist/{types-DQz-8VnX.d.ts → types-BaDx6utW.d.ts} +3 -0
  95. package/dist/{types-CpA0pJJo.d.ts → types-BpJ21a4T.d.ts} +1 -1
  96. package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
  97. package/dist/{types-QlgwsURY.d.ts → types-CquDWYfv.d.ts} +5 -3
  98. package/dist/{types-CS_wMpX1.d.ts → types-D9vIGFbl.d.ts} +1 -1
  99. package/dist/{types-Clt20Wzf.d.ts → types-NMBsvLIN.d.ts} +1 -1
  100. package/dist/video-selfie.d.ts +1 -1
  101. package/dist/video-selfie.esm.js +3 -3
  102. package/dist/{videoSelfieCameraWarmer-DK7_FQIC.esm.js → videoSelfieCameraWarmer-BnGs4HrT.esm.js} +3 -3
  103. package/dist/{videoSelfieStepDetector-B0npWWIO.d.ts → videoSelfieStepDetector-B78BE_x9.d.ts} +2 -2
  104. package/dist/wasm.esm.js +1 -1
  105. package/dist/workflow.d.ts +1 -1
  106. package/dist/workflow.esm.js +18 -18
  107. package/package.json +3 -3
  108. package/dist/types-gjpdTkDO.d.ts +0 -6
@@ -1,9 +1,9 @@
1
1
  import { l as wasmRuntime } from "./warmup-BUnab2eW.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-C-VublJM.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-BGbltXDV.esm.js";
3
3
  import { r as BaseWasmProvider } from "./WasmUtilProvider-BP6-08Yn.esm.js";
4
4
  import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
5
- import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-PCxthXLl.esm.js";
6
- import "./sessionInitializer-B4Q6dyf4.esm.js";
5
+ import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-BD4dhHr-.esm.js";
6
+ import "./sessionInitializer-DKxXaZQG.esm.js";
7
7
  import { t as addDeviceStats } from "./stats-Bv5PiWvo.esm.js";
8
8
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
9
9
  import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
@@ -235,7 +235,7 @@ function startDetection(params) {
235
235
  };
236
236
  }
237
237
  async function initializeDeepsightSession(options) {
238
- const { loadDeepsightSession } = await import("./deepsightLoader-BEcge2nG.esm.js");
238
+ const { loadDeepsightSession } = await import("./deepsightLoader-m9rH-Qdj.esm.js");
239
239
  return loadDeepsightSession({
240
240
  ds: options.ds,
241
241
  storage: options.storage
@@ -1,4 +1,4 @@
1
- import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BIrm8DJQ.esm.js";
1
+ import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-D5QSi2VH.esm.js";
2
2
  //#region src/modules/ae-signature/index.ts
3
3
  function createAeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -1,4 +1,4 @@
1
- import { d as categoryForEndpoint, u as trueSightLog } from "./trueSightService-PCxthXLl.esm.js";
1
+ import { d as categoryForEndpoint, u as trueSightLog } from "./trueSightService-BD4dhHr-.esm.js";
2
2
  //#region src/internal/http/apiError.ts
3
3
  /**
4
4
  * Incode API error.
@@ -1,4 +1,4 @@
1
- import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-DKJmi7qR.js";
2
- import { t as AuthenticationConfig } from "./types-gjpdTkDO.js";
3
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-4I0vI7Ia.js";
1
+ import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-ZudYP6Qp.js";
2
+ import { t as AuthenticationConfig } from "./types-B2M1IPZn.js";
3
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-DKLRA91K.js";
4
4
  export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,3 +1,3 @@
1
- import { t as authenticationMachine } from "./authenticationStateMachine-C4SO_VsV.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-uL-X6HRl.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-D2dG9pgS.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CCvF_eD4.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
- import { u as BrowserStorageProvider } from "./setup-C-VublJM.esm.js";
1
+ import { u as BrowserStorageProvider } from "./setup-BGbltXDV.esm.js";
2
2
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BP6-08Yn.esm.js";
3
3
  import { n as eventModuleNames } from "./events-kU5WJU4B.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-IKcUWZkZ.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-C4SO_VsV.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-D1QsPQrD.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-D2dG9pgS.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-C9T5amUN.js";
2
2
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
3
- import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-DKJmi7qR.js";
3
+ import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-ZudYP6Qp.js";
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  import { i as assign } from "./xstate.esm-DSajW7CJ.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
3
- import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-CmYaZYnH.esm.js";
4
- import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-DRhVgIHc.esm.js";
3
+ import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-BYMyUbS2.esm.js";
4
+ import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-DMmVB1hj.esm.js";
5
5
  import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-K3INt8tJ.esm.js";
6
6
  //#region src/modules/authentication/authenticationErrorUtils.ts
7
7
  const AUTH_ERROR_MAP = {
package/dist/consent.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-sjhjBNVr.js";
1
+ import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-DXetSxcx.js";
2
2
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -101,7 +101,7 @@ declare const consentMachine: StateMachine<ConsentContext, {
101
101
  }>, {
102
102
  type: "canSubmit";
103
103
  params: unknown;
104
- }, never, "error" | "idle" | "finished" | "submitting" | "loading" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
104
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
105
105
  readonly id: "consent";
106
106
  readonly initial: "idle";
107
107
  readonly context: ({ input }: {
@@ -1,4 +1,4 @@
1
- import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-DP91Z3Lp.js";
1
+ import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-Crz3bnCo.js";
2
2
  //#region src/modules/curp-validation/curpValidationUtils.d.ts
3
3
  type MexicanState = {
4
4
  value: string;
@@ -1,7 +1,7 @@
1
1
  import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
2
  import { t as Manager } from "./Manager-C9T5amUN.js";
3
3
  import "./Actor-DpTj5PFb.js";
4
- import { i as FlowModuleConfig } from "./types-QlgwsURY.js";
4
+ import { i as FlowModuleConfig } from "./types-CquDWYfv.js";
5
5
  //#region src/modules/curp-validation/types.d.ts
6
6
  type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
7
7
  /** Maximum validation retries before auto-advancing. @default 1 */
@@ -1,7 +1,7 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BP6-08Yn.esm.js";
2
- import { u as trueSightLog } from "./trueSightService-PCxthXLl.esm.js";
3
- import { t as SDK_VERSION } from "./sdkVersion-D3arDJUq.esm.js";
4
- import { C as BrowserEnvironmentProvider, S as IpifyProvider, T as SDK_PLATFORM, b as getThumbmarkId, n as getDisableIpify, r as getFingerprintEnabled, v as isBrowserSimulation, w as fingerprintSignalsReporter } from "./sessionInitializer-B4Q6dyf4.esm.js";
2
+ import { u as trueSightLog } from "./trueSightService-BD4dhHr-.esm.js";
3
+ import { t as SDK_VERSION } from "./sdkVersion-CNJSh1Ig.esm.js";
4
+ import { C as BrowserEnvironmentProvider, S as IpifyProvider, T as SDK_PLATFORM, b as getThumbmarkId, n as getDisableIpify, r as getFingerprintEnabled, v as isBrowserSimulation, w as fingerprintSignalsReporter } from "./sessionInitializer-DKxXaZQG.esm.js";
5
5
  import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
6
6
  import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
7
7
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DhJXZ9el.esm.js";
@@ -1,3 +1,3 @@
1
1
  import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType, u as DocumentUploadStatus } from "./types-CyNndVAT.js";
2
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-DDfviFg0.js";
2
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-YwPg7gOl.js";
3
3
  export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, type DocumentUploadStatus, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
@@ -101,14 +101,14 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
101
101
  id: string | undefined;
102
102
  };
103
103
  }>, Values<{
104
- decrementAttemptsRemaining: {
105
- type: "decrementAttemptsRemaining";
106
- params: NonReducibleUnknown;
107
- };
108
104
  clearError: {
109
105
  type: "clearError";
110
106
  params: NonReducibleUnknown;
111
107
  };
108
+ decrementAttemptsRemaining: {
109
+ type: "decrementAttemptsRemaining";
110
+ params: NonReducibleUnknown;
111
+ };
112
112
  setStream: {
113
113
  type: "setStream";
114
114
  params: NonReducibleUnknown;
@@ -1,3 +1,3 @@
1
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-ePiMxsip.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-BXkLpmi8.esm.js";
1
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DUBLWhlp.esm.js";
2
+ import { t as createDynamicFormsManager } from "./dynamicFormsManager-B2RKdYzW.esm.js";
3
3
  export { createDynamicFormsManager, dynamicFormsMachine };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-kU5WJU4B.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-ePiMxsip.esm.js";
4
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DUBLWhlp.esm.js";
5
5
  //#region src/modules/dynamic-forms/dynamicFormsActor.ts
6
6
  function createDynamicFormsActor(options) {
7
7
  return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
@@ -1,5 +1,5 @@
1
1
  import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
2
- import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-DXR2NkYe.esm.js";
2
+ import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-DsuCg1yn.esm.js";
3
3
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
5
5
  import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
package/dist/ekyb.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./Manager-C9T5amUN.js";
2
2
  import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
3
- import { i as FlowModuleConfig } from "./types-QlgwsURY.js";
3
+ import { i as FlowModuleConfig } from "./types-CquDWYfv.js";
4
4
  import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BgRHw-dR.js";
5
5
  import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-BLOkwmWO.js";
6
6
  //#region src/modules/ekyb/ekybServices.d.ts
package/dist/ekyb.esm.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { c as ALL_COUNTRIES, f as SUPPORTED_COUNTRIES, l as DEV_ONLY_COUNTRIES, m as isSupportedCountry, o as toEkybConfig } from "./ekybUtils-Cw8Ta9Qi.esm.js";
2
- import { t as ekybMachine } from "./ekybStateMachine--wB3zN5x.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-C8iLqh9O.esm.js";
2
+ import { t as ekybMachine } from "./ekybStateMachine-UC0px15n.esm.js";
3
+ import { t as createEkybManager } from "./ekybManager-DiMHt66M.esm.js";
4
4
  export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-kU5WJU4B.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { t as ekybMachine } from "./ekybStateMachine--wB3zN5x.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-UC0px15n.esm.js";
5
5
  //#region src/modules/ekyb/ekybActor.ts
6
6
  /**
7
7
  * Creates and starts an eKYB actor.
@@ -1,5 +1,5 @@
1
1
  import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
2
- import { n as getFlow } from "./flowServices-ihRH5TZl.esm.js";
2
+ import { n as getFlow } from "./flowServices-DzIifCBt.esm.js";
3
3
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
5
5
  import { a as sortModulesByOrder, c as ALL_COUNTRIES, d as FIELD_ORDER, i as requiresAddressValidation, m as isSupportedCountry, n as hasAtLeastOneAddressField, o as toEkybConfig, p as UBO_FIELD_LABELS, r as isFieldOptional, s as ADDRESS_FIELDS, u as FIELD_NAME_MAPPING } from "./ekybUtils-Cw8Ta9Qi.esm.js";
@@ -1,6 +1,6 @@
1
- import { a as EkycFormValues, c as EkycValidationErrors, s as EkycValidationError } from "./types-DQz-8VnX.js";
2
- import { a as EkycPrefillFieldDef, c as EkycPrefillModuleConfig, i as EkycPrefillErrorKind, l as EkycPrefillServedField, n as EkycPrefillConfigField, s as EkycPrefillInputFormat, t as EkycPrefillConfig } from "./types-CS_wMpX1.js";
3
- import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-DLXmc4Ip.js";
1
+ import { a as EkycFormValues, c as EkycValidationErrors, s as EkycValidationError } from "./types-BaDx6utW.js";
2
+ import { a as EkycPrefillFieldDef, c as EkycPrefillModuleConfig, i as EkycPrefillErrorKind, l as EkycPrefillServedField, n as EkycPrefillConfigField, s as EkycPrefillInputFormat, t as EkycPrefillConfig } from "./types-D9vIGFbl.js";
3
+ import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-CB1d6mt4.js";
4
4
  //#region src/modules/ekyc-prefill/ekycPrefillConfig.d.ts
5
5
  /**
6
6
  * Normalizes the served `EKYC_PREFILL` configuration. Idempotent, so a
@@ -1,3 +1,3 @@
1
- import { i as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-ZP2FAUAA.esm.js";
2
- import { t as createEkycPrefillManager } from "./ekycPrefillManager-Dmg-Nong.esm.js";
1
+ import { i as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-B46wTO-Q.esm.js";
2
+ import { t as createEkycPrefillManager } from "./ekycPrefillManager-BMl5pK-m.esm.js";
3
3
  export { createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
package/dist/ekyc.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
2
- import { c as EkycValidationErrors, i as EkycFieldDisplayMode, n as EkycDisplayModes, o as EkycModuleConfig, s as EkycValidationError, t as EkycConfig } from "./types-DQz-8VnX.js";
3
- import { n as EkycState, o as ekycMachine, r as createEkycManager, t as EkycManager } from "./ekycManager-Ck39UxiP.js";
2
+ import { c as EkycValidationErrors, i as EkycFieldDisplayMode, n as EkycDisplayModes, o as EkycModuleConfig, s as EkycValidationError, t as EkycConfig } from "./types-BaDx6utW.js";
3
+ import { n as EkycState, o as ekycMachine, r as createEkycManager, t as EkycManager } from "./ekycManager-CERRvIfg.js";
4
4
  //#region src/modules/ekyc/ekycUtils.d.ts
5
5
  /**
6
6
  * Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
package/dist/ekyc.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as ekycMachine } from "./ekycStateMachine-D8eI7aJF.esm.js";
2
- import { l as toEkycConfig } from "./ekycUtils-CQaAb4DH.esm.js";
3
- import { t as createEkycManager } from "./ekycManager-CI5xhnV9.esm.js";
1
+ import { t as ekycMachine } from "./ekycStateMachine-DAJJG7NG.esm.js";
2
+ import { l as toEkycConfig } from "./ekycUtils-K6VJXnOg.esm.js";
3
+ import { t as createEkycManager } from "./ekycManager-BtuTGKIG.esm.js";
4
4
  export { createEkycManager, ekycMachine, toEkycConfig };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-kU5WJU4B.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { t as ekycMachine } from "./ekycStateMachine-D8eI7aJF.esm.js";
4
+ import { t as ekycMachine } from "./ekycStateMachine-DAJJG7NG.esm.js";
5
5
  //#region src/modules/ekyc/ekycActor.ts
6
6
  /**
7
7
  * Creates and starts an eKYC actor.
@@ -2,7 +2,7 @@ import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
2
  import { t as Manager } from "./Manager-C9T5amUN.js";
3
3
  import "./Actor-DpTj5PFb.js";
4
4
  import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
5
- import { a as EkycFormValues, c as EkycValidationErrors, r as EkycFieldDef, t as EkycConfig } from "./types-DQz-8VnX.js";
5
+ import { a as EkycFormValues, c as EkycValidationErrors, r as EkycFieldDef, t as EkycConfig } from "./types-BaDx6utW.js";
6
6
  //#region src/modules/ekyc/ekycStateMachine.d.ts
7
7
  declare const ekycMachine: any;
8
8
  type EkycMachine = typeof ekycMachine;
@@ -1,5 +1,5 @@
1
1
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
2
- import { n as isAnyOfMissing, r as validateForm, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-ZP2FAUAA.esm.js";
2
+ import { n as isAnyOfMissing, r as validateForm, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-B46wTO-Q.esm.js";
3
3
  //#region src/modules/ekyc-prefill/ekycPrefillActor.ts
4
4
  /** Creates and starts an eKYC Pre-fill actor, idle until `LOAD`. */
5
5
  function createEkycPrefillActor(options = {}) {
@@ -1,8 +1,8 @@
1
1
  import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
2
2
  import { t as Manager } from "./Manager-C9T5amUN.js";
3
3
  import "./Actor-DpTj5PFb.js";
4
- import { a as EkycFormValues, c as EkycValidationErrors } from "./types-DQz-8VnX.js";
5
- import { a as EkycPrefillFieldDef, c as EkycPrefillModuleConfig, d as EkycPrefillSubmitResponse, i as EkycPrefillErrorKind, o as EkycPrefillInput, r as EkycPrefillContext, t as EkycPrefillConfig, u as EkycPrefillSubmitPlan } from "./types-CS_wMpX1.js";
4
+ import { a as EkycFormValues, c as EkycValidationErrors } from "./types-BaDx6utW.js";
5
+ import { a as EkycPrefillFieldDef, c as EkycPrefillModuleConfig, d as EkycPrefillSubmitResponse, i as EkycPrefillErrorKind, o as EkycPrefillInput, r as EkycPrefillContext, t as EkycPrefillConfig, u as EkycPrefillSubmitPlan } from "./types-D9vIGFbl.js";
6
6
  //#region src/modules/ekyc-prefill/ekycPrefillStateMachine.d.ts
7
7
  type SubmitInput = {
8
8
  submit: EkycPrefillSubmitPlan;
@@ -109,7 +109,7 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
109
109
  type: "isLimitReached";
110
110
  params: unknown;
111
111
  };
112
- }>, never, "error" | "idle" | "closed" | "finished" | "submitting" | "misconfigured" | "limitReached" | {
112
+ }>, never, "error" | "idle" | "closed" | "finished" | "misconfigured" | "submitting" | "limitReached" | {
113
113
  form: "inputting" | "validating";
114
114
  }, string, EkycPrefillInput, NonReducibleUnknown, EventObject, MetaObject, {
115
115
  readonly id: "ekycPrefill";
@@ -1,12 +1,12 @@
1
1
  import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
2
- import { i as toIncodeApiError } from "./apiError-DXR2NkYe.esm.js";
2
+ import { i as toIncodeApiError } from "./apiError-DsuCg1yn.esm.js";
3
3
  import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
6
  import { t as createBundledDefinitionSource } from "./definitionSource-1vPLtuXE.esm.js";
7
7
  import { n as checkSupport, t as resolveForm } from "./resolveForm-f9PhUo9j.esm.js";
8
- import { t as formatPhoneE164 } from "./phoneFormat-JJNaWthV.esm.js";
9
- import { i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN } from "./ekycRules-LnvbwaCu.esm.js";
8
+ import { t as formatPhoneE164 } from "./phoneFormat-DEpESpz2.esm.js";
9
+ import { i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN } from "./ekycRules-B7vXnbdg.esm.js";
10
10
  import { t as formatCPF } from "./idOcrCpfUtils-Nfln1Psb.esm.js";
11
11
  //#region src/modules/ekyc-prefill/ekycPrefillConfig.ts
12
12
  const isString = (value) => typeof value === "string" && value !== "";
@@ -77,7 +77,7 @@ const EKYCPREFILL_DEFINITIONS = {
77
77
  },
78
78
  "ekycprefill/US": {
79
79
  schemaVersion: 1,
80
- vocabulary: "1.0",
80
+ vocabulary: "1.3",
81
81
  id: "ekycprefill/US",
82
82
  module: "ekycprefill",
83
83
  country: "US",
@@ -98,7 +98,10 @@ const EKYCPREFILL_DEFINITIONS = {
98
98
  group: "dateOfBirth",
99
99
  label: { key: "verification.labels.dateOfBirth" },
100
100
  input: { autofill: "birthday" },
101
- rules: [{ id: "notFuture" }]
101
+ rules: [{ id: "notFuture" }, {
102
+ id: "maxAge",
103
+ params: { years: 120 }
104
+ }]
102
105
  },
103
106
  {
104
107
  name: "ssn",
@@ -169,6 +172,7 @@ const EKYC_PREFILL_SUPPORTED_IDS = {
169
172
  rules: /* @__PURE__ */ new Set([
170
173
  "phoneFormat",
171
174
  "notFuture",
175
+ "maxAge",
172
176
  "ssnFormat",
173
177
  "cpf"
174
178
  ]),
@@ -4,7 +4,7 @@ import { a as isValidRut, i as isValidInDrivingLicenseNumber, n as isValidEsDni,
4
4
  import { a as getPostalCodeMaxLength, i as getPostalCodeErrorKey, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, s as STREET_LEVEL_REQUIRED_ERROR } from "./definitionSource-1vPLtuXE.esm.js";
5
5
  import { r as DYNAMIC_REQUIRED_KEY } from "./resolveForm-f9PhUo9j.esm.js";
6
6
  import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
7
- import { a as hasNameCharacters, c as matchesCharTemplate, i as hasDigitCount, o as isInNumericRange, r as hasAllowedCharacters, s as isNotFuture } from "./phoneFormat-JJNaWthV.esm.js";
7
+ import { a as hasNameCharacters, c as isWithinMaxAge, i as hasDigitCount, l as matchesCharTemplate, o as isInNumericRange, r as hasAllowedCharacters, s as isNotFuture } from "./phoneFormat-DEpESpz2.esm.js";
8
8
  //#region src/modules/ekyc/ekycValidators.ts
9
9
  async function loadPhoneValidator() {
10
10
  if (!await loadPhoneValidation()) throw new Error("Failed to load the phone validation rules");
@@ -154,6 +154,11 @@ const createValidators = () => {
154
154
  if (value.trim().length === 0) return void 0;
155
155
  return isNotFuture(value.trim(), getLocalIsoDate()) ? void 0 : { key: "verification.errors.futureDate" };
156
156
  },
157
+ maxAge: (value, rule) => {
158
+ if (rule.type !== "maxAge") return void 0;
159
+ if (value.trim().length === 0) return void 0;
160
+ return isWithinMaxAge(value.trim(), getLocalIsoDate(), rule.years) ? void 0 : { key: "verification.errors.dateOfBirthMaxAge" };
161
+ },
157
162
  phoneDigits: (value, rule) => {
158
163
  if (rule.type !== "phoneDigits") return void 0;
159
164
  const trimmed = value.trim();
@@ -254,6 +259,10 @@ const RULES = {
254
259
  }),
255
260
  nameCharacters: () => ({ type: "nameCharacters" }),
256
261
  notFuture: () => ({ type: "notFuture" }),
262
+ maxAge: ({ params }) => ({
263
+ type: "maxAge",
264
+ years: params.years
265
+ }),
257
266
  phoneDigits: ({ country, params }) => ({
258
267
  type: "phoneDigits",
259
268
  country,