@incodetech/core 0.0.0-dev-20261105-edbf345c → 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 (104) hide show
  1. package/dist/{FaceDetectionProvider-DO7oJW8l.esm.js → FaceDetectionProvider-DMmVB1hj.esm.js} +4 -4
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/{apiError-CSvhul7M.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-Ct0RgLuV.esm.js → authenticationManager-CCvF_eD4.esm.js} +3 -3
  7. package/dist/{authenticationManager-CdMlYeBT.d.ts → authenticationManager-DKLRA91K.d.ts} +1 -1
  8. package/dist/{authenticationStateMachine-DhzcNOBa.esm.js → authenticationStateMachine-D2dG9pgS.esm.js} +2 -2
  9. package/dist/consent.d.ts +1 -1
  10. package/dist/{consentManager-D8rgr5Dv.d.ts → consentManager-DXetSxcx.d.ts} +5 -5
  11. package/dist/curp-validation.d.ts +1 -1
  12. package/dist/{curpValidationManager-BwJi3F0x.d.ts → curpValidationManager-Crz3bnCo.d.ts} +1 -1
  13. package/dist/{deepsightLoader-B041ypqq.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-DXQ_pko7.esm.js → dynamicFormsManager-B2RKdYzW.esm.js} +1 -1
  18. package/dist/{dynamicFormsStateMachine-BljMnyNE.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-zUrx0_qC.esm.js → ekybManager-DiMHt66M.esm.js} +1 -1
  22. package/dist/{ekybStateMachine-xAhQKxKW.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-Davw247j.esm.js → ekycPrefillManager-BMl5pK-m.esm.js} +1 -1
  30. package/dist/{ekycPrefillManager-DXrAgbc8.d.ts → ekycPrefillManager-CB1d6mt4.d.ts} +32 -32
  31. package/dist/{ekycPrefillStateMachine-bJF40zGT.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-BL0c_xPz.esm.js → electronicSignatureManager-D5QSi2VH.esm.js} +1 -1
  37. package/dist/extensibility.d.ts +14 -14
  38. package/dist/extensibility.esm.js +13 -13
  39. package/dist/{faceCaptureManagerFactory-BRqhXsGM.esm.js → faceCaptureManagerFactory-D1QsPQrD.esm.js} +1 -1
  40. package/dist/{faceCaptureManagerFactory-CmCP8_Uc.d.ts → faceCaptureManagerFactory-ZudYP6Qp.d.ts} +3 -3
  41. package/dist/{faceCaptureSetup-DNiLgy4B.esm.js → faceCaptureSetup-BYMyUbS2.esm.js} +3 -3
  42. package/dist/{feature-management-Cw0dE7HH.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 +6 -6
  46. package/dist/flow.esm.js +3 -3
  47. package/dist/{flowCompletionService-B4ZuNcD9.esm.js → flowCompletionService-CBXpDhZO.esm.js} +1 -1
  48. package/dist/{flowServices-DonUUB5w.esm.js → flowServices-DzIifCBt.esm.js} +5 -5
  49. package/dist/geolocation.d.ts +1 -1
  50. package/dist/geolocation.esm.js +2 -2
  51. package/dist/{geolocationManager-AAmXvqWb.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-DKHrAjwB.esm.js → geolocationStateMachine-YspHycfB.esm.js} +1 -1
  54. package/dist/home.d.ts +1 -1
  55. package/dist/id-ocr.d.ts +1 -1
  56. package/dist/id-selfie-flow.d.ts +1 -1
  57. package/dist/id-selfie-flow.esm.js +6 -6
  58. package/dist/id.d.ts +2 -2
  59. package/dist/id.esm.js +3 -3
  60. package/dist/{idCaptureManager-B-J9DGHy.esm.js → idCaptureManager-BGyY2QJW.esm.js} +3 -3
  61. package/dist/{idCaptureManager-B6NvGCaA.d.ts → idCaptureManager-NRGuCVv2.d.ts} +2 -2
  62. package/dist/{idCaptureServices-03rNDnl9.esm.js → idCaptureServices-Rj8gQUN0.esm.js} +2 -2
  63. package/dist/{idCaptureStateMachine-DV-GAckz.esm.js → idCaptureStateMachine-CIYYm8ug.esm.js} +8 -8
  64. package/dist/{idOcrManager-BAf6O4OR.d.ts → idOcrManager-Bq2S6vYt.d.ts} +1 -1
  65. package/dist/{index-cztnq1Mz.d.ts → index-BGnYn_4J.d.ts} +1 -1
  66. package/dist/index.esm.js +1 -1
  67. package/dist/kyb-checks.esm.js +2 -2
  68. package/dist/{kybChecksManager-DT_8KJ1l.esm.js → kybChecksManager-CkPk9MYg.esm.js} +1 -1
  69. package/dist/{kybChecksStateMachine-BIFP5JOC.esm.js → kybChecksStateMachine-ZOZbWEvd.esm.js} +2 -2
  70. package/dist/mandatory-consent.d.ts +2 -2
  71. package/dist/{mandatoryConsentManager-CPE14L5F.d.ts → mandatoryConsentManager-MhZYQg10.d.ts} +6 -6
  72. package/dist/{phoneFormat-JJNaWthV.esm.js → phoneFormat-DEpESpz2.esm.js} +13 -1
  73. package/dist/qe-signature.esm.js +1 -1
  74. package/dist/{runChildModule-BlDp_kLq.esm.js → runChildModule-7LwsDQ6K.esm.js} +1 -1
  75. package/dist/{sdkVersion-y7I2heb5.esm.js → sdkVersion-CNJSh1Ig.esm.js} +1 -1
  76. package/dist/selfie.d.ts +3 -3
  77. package/dist/selfie.esm.js +6 -6
  78. package/dist/{selfieErrorUtils-7p5FO8X5.esm.js → selfieErrorUtils-CiDRunl3.esm.js} +1 -1
  79. package/dist/{selfieManager-B35R-IHI.d.ts → selfieManager-BPOlD-UN.d.ts} +1 -1
  80. package/dist/{selfieManager-3FU7sd-K.esm.js → selfieManager-DKy62UWd.esm.js} +3 -3
  81. package/dist/{selfieStateMachine-YXwFPhGw.esm.js → selfieStateMachine-BEFMDLyP.esm.js} +3 -3
  82. package/dist/{session-CNiDV4ZI.esm.js → session-DoW6RGn_.esm.js} +3 -3
  83. package/dist/session.d.ts +1 -1
  84. package/dist/session.esm.js +4 -4
  85. package/dist/{sessionInitializer-4H8zDMgr.esm.js → sessionInitializer-DKxXaZQG.esm.js} +3 -3
  86. package/dist/{setup-C0y0GW5V.esm.js → setup-BGbltXDV.esm.js} +4 -4
  87. package/dist/{trueSightService-DvEtriHz.esm.js → trueSightService-BD4dhHr-.esm.js} +1 -1
  88. package/dist/{types-CPJj6zPd.d.ts → types-0Rr7etmf.d.ts} +1 -1
  89. package/dist/types-B2M1IPZn.d.ts +6 -0
  90. package/dist/{types-DJECzwzr.d.ts → types-BD9sV5oG.d.ts} +1 -1
  91. package/dist/{types-DQz-8VnX.d.ts → types-BaDx6utW.d.ts} +3 -0
  92. package/dist/{types-bi3Zb1Ym.d.ts → types-BpJ21a4T.d.ts} +1 -1
  93. package/dist/{types-tPA9wGcC.d.ts → types-CquDWYfv.d.ts} +2 -2
  94. package/dist/{types-CS_wMpX1.d.ts → types-D9vIGFbl.d.ts} +1 -1
  95. package/dist/{types-98iaeg5N.d.ts → types-NMBsvLIN.d.ts} +1 -1
  96. package/dist/video-selfie.d.ts +1 -1
  97. package/dist/video-selfie.esm.js +3 -3
  98. package/dist/{videoSelfieCameraWarmer-DJJ0inxD.esm.js → videoSelfieCameraWarmer-BnGs4HrT.esm.js} +3 -3
  99. package/dist/{videoSelfieStepDetector-BhRYeWaD.d.ts → videoSelfieStepDetector-B78BE_x9.d.ts} +2 -2
  100. package/dist/wasm.esm.js +1 -1
  101. package/dist/workflow.d.ts +1 -1
  102. package/dist/workflow.esm.js +17 -17
  103. package/package.json +1 -1
  104. package/dist/types-bedZM6SH.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-C0y0GW5V.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-DvEtriHz.esm.js";
6
- import "./sessionInitializer-4H8zDMgr.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-B041ypqq.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-BL0c_xPz.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-DvEtriHz.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-CmCP8_Uc.js";
2
- import { t as AuthenticationConfig } from "./types-bedZM6SH.js";
3
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-CdMlYeBT.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-DhzcNOBa.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-Ct0RgLuV.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-C0y0GW5V.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-BRqhXsGM.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-DhzcNOBa.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-CmCP8_Uc.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-DNiLgy4B.esm.js";
4
- import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-DO7oJW8l.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-D8rgr5Dv.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 };
@@ -86,6 +86,10 @@ declare const consentMachine: StateMachine<ConsentContext, {
86
86
  type: "setLoadError";
87
87
  params: NonReducibleUnknown;
88
88
  };
89
+ resetContext: {
90
+ type: "resetContext";
91
+ params: NonReducibleUnknown;
92
+ };
89
93
  setConsentData: {
90
94
  type: "setConsentData";
91
95
  params: NonReducibleUnknown;
@@ -94,14 +98,10 @@ declare const consentMachine: StateMachine<ConsentContext, {
94
98
  type: "toggleCheckbox";
95
99
  params: NonReducibleUnknown;
96
100
  };
97
- resetContext: {
98
- type: "resetContext";
99
- params: NonReducibleUnknown;
100
- };
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-BwJi3F0x.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-tPA9wGcC.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-DvEtriHz.esm.js";
3
- import { t as SDK_VERSION } from "./sdkVersion-y7I2heb5.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-4H8zDMgr.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-BljMnyNE.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-DXQ_pko7.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-BljMnyNE.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-CSvhul7M.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-tPA9wGcC.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-xAhQKxKW.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-zUrx0_qC.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-xAhQKxKW.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-DonUUB5w.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-DXrAgbc8.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-bJF40zGT.esm.js";
2
- import { t as createEkycPrefillManager } from "./ekycPrefillManager-Davw247j.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-bJF40zGT.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;
@@ -27,10 +27,15 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
27
27
  } | {
28
28
  type: "CLOSE";
29
29
  }, {
30
- [x: string]: ActorRefFromLogic<PromiseActorLogic<void, {
30
+ [x: string]: ActorRefFromLogic<PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>> | ActorRefFromLogic<PromiseActorLogic<void, {
31
31
  hasPhone: boolean;
32
- }, EventObject>> | ActorRefFromLogic<PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>> | undefined;
32
+ }, EventObject>> | undefined;
33
33
  }, Values<{
34
+ submit: {
35
+ src: "submit";
36
+ logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
37
+ id: string | undefined;
38
+ };
34
39
  loadPhoneRules: {
35
40
  src: "loadPhoneRules";
36
41
  logic: PromiseActorLogic<void, {
@@ -38,11 +43,6 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
38
43
  }, EventObject>;
39
44
  id: string | undefined;
40
45
  };
41
- submit: {
42
- src: "submit";
43
- logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
44
- id: string | undefined;
45
- };
46
46
  }>, Values<{
47
47
  applyForm: {
48
48
  type: "applyForm";
@@ -81,6 +81,10 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
81
81
  params: NonReducibleUnknown;
82
82
  };
83
83
  }>, Values<{
84
+ isValid: {
85
+ type: "isValid";
86
+ params: unknown;
87
+ };
84
88
  phoneRulesFailed: {
85
89
  type: "phoneRulesFailed";
86
90
  params: unknown;
@@ -93,10 +97,6 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
93
97
  type: "canRender";
94
98
  params: unknown;
95
99
  };
96
- isValid: {
97
- type: "isValid";
98
- params: unknown;
99
- };
100
100
  isBadRequest: {
101
101
  type: "isBadRequest";
102
102
  params: unknown;
@@ -109,24 +109,20 @@ 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";
116
116
  readonly initial: "idle";
117
117
  readonly context: ({ input }: {
118
118
  spawn: {
119
- <TSrc extends "loadPhoneRules" | "submit">(logic: TSrc, ...[options]: ({
120
- src: "loadPhoneRules";
121
- logic: PromiseActorLogic<void, {
122
- hasPhone: boolean;
123
- }, EventObject>;
119
+ <TSrc extends "submit" | "loadPhoneRules">(logic: TSrc, ...[options]: ({
120
+ src: "submit";
121
+ logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
124
122
  id: string | undefined;
125
123
  } extends (infer T) ? T extends {
126
- src: "loadPhoneRules";
127
- logic: PromiseActorLogic<void, {
128
- hasPhone: boolean;
129
- }, EventObject>;
124
+ src: "submit";
125
+ logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
130
126
  id: string | undefined;
131
127
  } ? T extends {
132
128
  src: TSrc;
@@ -136,12 +132,16 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
136
132
  input?: InputFrom<T["logic"]> | undefined;
137
133
  syncSnapshot?: boolean;
138
134
  } & { [K in RequiredActorOptions<T>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T>>> : never : never : never) | ({
139
- src: "submit";
140
- logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
135
+ src: "loadPhoneRules";
136
+ logic: PromiseActorLogic<void, {
137
+ hasPhone: boolean;
138
+ }, EventObject>;
141
139
  id: string | undefined;
142
140
  } extends (infer T_1) ? T_1 extends {
143
- src: "submit";
144
- logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
141
+ src: "loadPhoneRules";
142
+ logic: PromiseActorLogic<void, {
143
+ hasPhone: boolean;
144
+ }, EventObject>;
145
145
  id: string | undefined;
146
146
  } ? T_1 extends {
147
147
  src: TSrc;
@@ -151,6 +151,11 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
151
151
  input?: InputFrom<T_1["logic"]> | undefined;
152
152
  syncSnapshot?: boolean;
153
153
  } & { [K_1 in RequiredActorOptions<T_1>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T_1>>> : never : never : never)): ActorRefFromLogic<GetConcreteByKey<Values<{
154
+ submit: {
155
+ src: "submit";
156
+ logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
157
+ id: string | undefined;
158
+ };
154
159
  loadPhoneRules: {
155
160
  src: "loadPhoneRules";
156
161
  logic: PromiseActorLogic<void, {
@@ -158,11 +163,6 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
158
163
  }, EventObject>;
159
164
  id: string | undefined;
160
165
  };
161
- submit: {
162
- src: "submit";
163
- logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
164
- id: string | undefined;
165
- };
166
166
  }>, "src", TSrc>["logic"]>;
167
167
  <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: ({
168
168
  id?: never;
@@ -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-CSvhul7M.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,