@incodetech/core 2.3.2-rc.0 → 2.3.2-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/{FaceDetectionProvider-CmCn5h_n.esm.js → FaceDetectionProvider-ClbUGfie.esm.js} +4 -4
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/{apiError-BZ9YXlUV.esm.js → apiError-B4NfKm7e.esm.js} +1 -1
  4. package/dist/authentication.d.ts +3 -3
  5. package/dist/authentication.esm.js +2 -2
  6. package/dist/{authenticationManager-BvwdHWCI.d.ts → authenticationManager-CboRCl_N.d.ts} +1 -1
  7. package/dist/{authenticationManager-DvfSIB3t.esm.js → authenticationManager-SpXkwp-L.esm.js} +3 -3
  8. package/dist/{authenticationStateMachine-mnI-cxqS.esm.js → authenticationStateMachine-C3H5vV-m.esm.js} +2 -2
  9. package/dist/{cpf-BIADjddF.esm.js → cpf-uAZTPUBy.esm.js} +25 -1
  10. package/dist/curp-validation.d.ts +1 -1
  11. package/dist/{curpValidationManager-SSKNrm5Z.d.ts → curpValidationManager-DNuZn9fn.d.ts} +1 -1
  12. package/dist/{deepsightLoader-BDrrzAKq.esm.js → deepsightLoader-cOzWm1QS.esm.js} +3 -3
  13. package/dist/dynamic-forms.esm.js +2 -2
  14. package/dist/{dynamicFormsManager-fuZ5aJmI.esm.js → dynamicFormsManager-CWMfqe0o.esm.js} +1 -1
  15. package/dist/{dynamicFormsStateMachine-BrXW0xtw.esm.js → dynamicFormsStateMachine-C4a44mdb.esm.js} +1 -1
  16. package/dist/ekyb.d.ts +4 -4
  17. package/dist/ekyb.esm.js +3 -3
  18. package/dist/{ekybManager-Dzswb_b8.d.ts → ekybManager-BwRuGAwt.d.ts} +2 -2
  19. package/dist/{ekybManager-BPeT-kaz.esm.js → ekybManager-Ccm_Emx4.esm.js} +1 -1
  20. package/dist/{ekybStateMachine-DL0rlDHo.esm.js → ekybStateMachine-DEEptwqX.esm.js} +1 -1
  21. package/dist/ekyc.d.ts +2 -2
  22. package/dist/ekyc.esm.js +3 -3
  23. package/dist/{ekycManager-BlQ-Qj4E.esm.js → ekycManager-BX2d46FY.esm.js} +1 -1
  24. package/dist/{ekycManager-BFpHbBoT.d.ts → ekycManager-DLzDuBzI.d.ts} +1 -1
  25. package/dist/{ekycStateMachine-CshSNJhh.esm.js → ekycStateMachine-UeJRO8_p.esm.js} +37 -10
  26. package/dist/{ekycUtils-Dew1rBG0.esm.js → ekycUtils-D6wfSpPN.esm.js} +33 -6
  27. package/dist/electronic-signature.esm.js +1 -1
  28. package/dist/{electronicSignatureManager-BXCO7CqQ.esm.js → electronicSignatureManager-D5tE50aC.esm.js} +1 -1
  29. package/dist/extensibility.d.ts +10 -10
  30. package/dist/extensibility.esm.js +12 -12
  31. package/dist/{faceCaptureManagerFactory-DXvHgVoH.esm.js → faceCaptureManagerFactory-CqbVm2JP.esm.js} +1 -1
  32. package/dist/{faceCaptureManagerFactory-DHyyWPDu.d.ts → faceCaptureManagerFactory-m-7ae67q.d.ts} +3 -3
  33. package/dist/{faceCaptureSetup-DuYxN75K.esm.js → faceCaptureSetup-DltSiwq3.esm.js} +3 -3
  34. package/dist/{feature-management-BajWyULP.esm.js → feature-management-d0V1q-8o.esm.js} +1 -1
  35. package/dist/feature-management.esm.js +1 -1
  36. package/dist/flow-events.d.ts +1 -1
  37. package/dist/flow.d.ts +7 -7
  38. package/dist/flow.esm.js +3 -3
  39. package/dist/{flowCompletionService-CegDwnMs.esm.js → flowCompletionService-0RwxskJf.esm.js} +1 -1
  40. package/dist/{flowServices-CN5Dtw0u.esm.js → flowServices-BPP_9RYt.esm.js} +5 -5
  41. package/dist/geolocation.esm.js +2 -2
  42. package/dist/{geolocationManager-Di_VUlZS.esm.js → geolocationManager-u0Lb8RCN.esm.js} +1 -1
  43. package/dist/{geolocationStateMachine-B3Yucf8F.esm.js → geolocationStateMachine-DiZaW3df.esm.js} +1 -1
  44. package/dist/home.d.ts +1 -1
  45. package/dist/id-ocr.esm.js +3 -3
  46. package/dist/id-selfie-flow.d.ts +1 -1
  47. package/dist/id-selfie-flow.esm.js +7 -7
  48. package/dist/id.d.ts +2 -2
  49. package/dist/id.esm.js +3 -3
  50. package/dist/{idCaptureDefaults-78I-GjFs.esm.js → idCaptureDefaults-Bq8iXCj6.esm.js} +1 -1
  51. package/dist/{idCaptureManager-BaHEyQyr.d.ts → idCaptureManager-BHwL2Z0V.d.ts} +2 -2
  52. package/dist/{idCaptureManager-Dfp3k1_F.esm.js → idCaptureManager-PwKw72ba.esm.js} +3 -3
  53. package/dist/{idCaptureServices-DFuQ3b4_.esm.js → idCaptureServices-DsKEU2kL.esm.js} +3 -3
  54. package/dist/{idCaptureStateMachine-VS2m3Fme.esm.js → idCaptureStateMachine-McI7Z4iL.esm.js} +9 -9
  55. package/dist/{idOcrManager-r46XfZGE.esm.js → idOcrManager-ByWuQ4ej.esm.js} +1 -1
  56. package/dist/{idOcrStateMachine-ClDEP-VI.esm.js → idOcrStateMachine-Bt_abXQQ.esm.js} +1 -25
  57. package/dist/{index-DLcJT5YP.d.ts → index-CeaC32qI.d.ts} +1 -1
  58. package/dist/index.esm.js +1 -1
  59. package/dist/mandatory-consent.d.ts +2 -2
  60. package/dist/{mandatoryConsentManager-vhv1co_n.d.ts → mandatoryConsentManager-BR_4cBuc.d.ts} +1 -1
  61. package/dist/qe-signature.esm.js +1 -1
  62. package/dist/{runChildModule-QBAXA_-n.esm.js → runChildModule-Dzlmx2MT.esm.js} +1 -1
  63. package/dist/{sdkVersion-Bg7faKSC.esm.js → sdkVersion-DrQgriIH.esm.js} +1 -1
  64. package/dist/selfie.d.ts +3 -3
  65. package/dist/selfie.esm.js +5 -5
  66. package/dist/{selfieManager-CUT6DnE_.d.ts → selfieManager-BSZG891S.d.ts} +1 -1
  67. package/dist/{selfieManager-B3Yz5uTS.esm.js → selfieManager-P3FOcMeq.esm.js} +3 -3
  68. package/dist/{selfieStateMachine-DTX7UcX4.esm.js → selfieStateMachine-CDRUpySY.esm.js} +2 -2
  69. package/dist/{session-UwvedVj1.esm.js → session-ZeFZV1BA.esm.js} +3 -3
  70. package/dist/session.d.ts +1 -1
  71. package/dist/session.esm.js +4 -4
  72. package/dist/{sessionInitializer-CIZ1YEtk.esm.js → sessionInitializer-C2hvcJEr.esm.js} +3 -3
  73. package/dist/{setup-BdfJKM9a.esm.js → setup-DSjZLH8U.esm.js} +4 -4
  74. package/dist/{trueSightService-aZhby7p0.esm.js → trueSightService-Bmug9Uv_.esm.js} +1 -1
  75. package/dist/types-Bt9RuRqt.d.ts +6 -0
  76. package/dist/{types-DgDvvzg0.d.ts → types-Bx-BWveD.d.ts} +1 -1
  77. package/dist/{types-BfHiko5D.d.ts → types-C0oWGUzg.d.ts} +1 -1
  78. package/dist/{types-Do5rEXij.d.ts → types-C1g9itHE.d.ts} +2 -2
  79. package/dist/{types-Bk_6dmDa.d.ts → types-Cx-1zo-i.d.ts} +3 -0
  80. package/dist/{types-9_esGTPj.d.ts → types-CxGdmzxa.d.ts} +1 -1
  81. package/dist/{types-byBHOzCG2.d.ts → types-DEGVXwsk2.d.ts} +1 -1
  82. package/dist/{types-Bnl58jUQ.d.ts → types-ESdtnHtg.d.ts} +1 -1
  83. package/dist/video-selfie.d.ts +1 -1
  84. package/dist/video-selfie.esm.js +3 -3
  85. package/dist/{videoSelfieCameraWarmer-BjlSKyg2.esm.js → videoSelfieCameraWarmer-UxJURyuC.esm.js} +3 -3
  86. package/dist/{videoSelfieStepDetector-CAqAG2G3.d.ts → videoSelfieStepDetector-ChYgFM15.d.ts} +2 -2
  87. package/dist/wasm.esm.js +2 -2
  88. package/dist/workflow.d.ts +1 -1
  89. package/dist/workflow.esm.js +17 -17
  90. package/package.json +1 -1
  91. package/dist/types-ChAowIxT.d.ts +0 -6
@@ -1,8 +1,8 @@
1
- import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-aZhby7p0.esm.js";
1
+ import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-Bmug9Uv_.esm.js";
2
2
  import { s as wasmRuntime } from "./warmup-ChDwHSel.esm.js";
3
3
  import { i as BaseWasmProvider } from "./safeStorage-BdU9_m2E.esm.js";
4
- import { t as ensureWasmPipelines } from "./setup-BdfJKM9a.esm.js";
5
- import "./sessionInitializer-CIZ1YEtk.esm.js";
4
+ import { t as ensureWasmPipelines } from "./setup-DSjZLH8U.esm.js";
5
+ import "./sessionInitializer-C2hvcJEr.esm.js";
6
6
  import { t as addDeviceStats } from "./stats-CZcy2J53.esm.js";
7
7
  import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
8
8
  import { i as requestCameraAccess, o as stopCameraStream, r as getCameraReacquisitionConstraints } from "./camera-sIa9ceW2.esm.js";
@@ -156,7 +156,7 @@ function startDetection(params) {
156
156
  };
157
157
  }
158
158
  async function initializeDeepsightSession(options) {
159
- const { loadDeepsightSession } = await import("./deepsightLoader-BDrrzAKq.esm.js");
159
+ const { loadDeepsightSession } = await import("./deepsightLoader-cOzWm1QS.esm.js");
160
160
  return loadDeepsightSession({
161
161
  ds: options.ds,
162
162
  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-BXCO7CqQ.esm.js";
1
+ import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-D5tE50aC.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 { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-aZhby7p0.esm.js";
1
+ import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-Bmug9Uv_.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-DHyyWPDu.js";
2
- import { t as AuthenticationConfig } from "./types-ChAowIxT.js";
3
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-BvwdHWCI.js";
1
+ import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-m-7ae67q.js";
2
+ import { t as AuthenticationConfig } from "./types-Bt9RuRqt.js";
3
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-CboRCl_N.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-mnI-cxqS.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-DvfSIB3t.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-C3H5vV-m.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-SpXkwp-L.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CQQ99QOI.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-DHyyWPDu.js";
3
+ import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-m-7ae67q.js";
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
6
6
  /**
@@ -1,9 +1,9 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-BdU9_m2E.esm.js";
2
- import { l as BrowserStorageProvider } from "./setup-BdfJKM9a.esm.js";
2
+ import { l as BrowserStorageProvider } from "./setup-DSjZLH8U.esm.js";
3
3
  import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DXvHgVoH.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-mnI-cxqS.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CqbVm2JP.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-C3H5vV-m.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,7 +1,7 @@
1
1
  import { i as assign } from "./xstate.esm-BuFLFuzz.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
3
- import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-DuYxN75K.esm.js";
4
- import { c as isOnDeviceMode } from "./FaceDetectionProvider-CmCn5h_n.esm.js";
3
+ import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-DltSiwq3.esm.js";
4
+ import { c as isOnDeviceMode } from "./FaceDetectionProvider-ClbUGfie.esm.js";
5
5
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
6
6
  import { s as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-DnwTl1ad.esm.js";
7
7
  //#region src/modules/authentication/authenticationErrorUtils.ts
@@ -1,3 +1,27 @@
1
+ //#region ../infra/src/providers/browser/DateFormattingProvider.ts
2
+ var DateFormattingProvider = class {
3
+ utcToIsoDateString(value) {
4
+ if (value === void 0 || value === null || value === "") return "";
5
+ const date = new Date(value);
6
+ if (Number.isNaN(date.getTime())) return "";
7
+ return `${date.getUTCFullYear()}-${String(date.getUTCMonth() + 1).padStart(2, "0")}-${String(date.getUTCDate()).padStart(2, "0")}`;
8
+ }
9
+ parseIsoDateStringToEpochMs(value) {
10
+ return Date.parse(value);
11
+ }
12
+ getAgeInYears(birthDate, referenceEpochMs) {
13
+ const now = new Date(referenceEpochMs);
14
+ const birth = typeof birthDate === "string" && /^\d{4}-\d{2}-\d{2}$/.test(birthDate) ? (() => {
15
+ const [y, m, d] = birthDate.split("-").map(Number);
16
+ return new Date(y, m - 1, d);
17
+ })() : new Date(birthDate);
18
+ let age = now.getFullYear() - birth.getFullYear();
19
+ const monthDiff = now.getMonth() - birth.getMonth();
20
+ if (monthDiff < 0 || monthDiff === 0 && now.getDate() < birth.getDate()) age--;
21
+ return age;
22
+ }
23
+ };
24
+ //#endregion
1
25
  //#region src/shared/validators/cpf.ts
2
26
  const INVALID_CPF_PATTERNS = [
3
27
  "00000000000",
@@ -34,4 +58,4 @@ function validateCPF(cpfString) {
34
58
  return true;
35
59
  }
36
60
  //#endregion
37
- export { validateCPF as t };
61
+ export { DateFormattingProvider as n, validateCPF as t };
@@ -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-SSKNrm5Z.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-DNuZn9fn.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-CQQ99QOI.js";
3
3
  import "./Actor-iTq7YY48.js";
4
- import { i as FlowModuleConfig } from "./types-Do5rEXij.js";
4
+ import { i as FlowModuleConfig } from "./types-C1g9itHE.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
- import { l as trueSightLog } from "./trueSightService-aZhby7p0.esm.js";
1
+ import { l as trueSightLog } from "./trueSightService-Bmug9Uv_.esm.js";
2
2
  import { r as WasmUtilProvider } from "./safeStorage-BdU9_m2E.esm.js";
3
- import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-CIZ1YEtk.esm.js";
4
- import { t as SDK_VERSION } from "./sdkVersion-Bg7faKSC.esm.js";
3
+ import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-C2hvcJEr.esm.js";
4
+ import { t as SDK_VERSION } from "./sdkVersion-DrQgriIH.esm.js";
5
5
  import { t as getParsedUserAgent } from "./getParsedUserAgent-B2iFDql1.esm.js";
6
6
  import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
7
7
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DYrLUEII.esm.js";
@@ -1,3 +1,3 @@
1
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BrXW0xtw.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-fuZ5aJmI.esm.js";
1
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-C4a44mdb.esm.js";
2
+ import { t as createDynamicFormsManager } from "./dynamicFormsManager-CWMfqe0o.esm.js";
3
3
  export { createDynamicFormsManager, dynamicFormsMachine };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.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-BuFLFuzz.esm.js";
4
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BrXW0xtw.esm.js";
4
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-C4a44mdb.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,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
3
- import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-BZ9YXlUV.esm.js";
3
+ import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-B4NfKm7e.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
6
6
  import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
package/dist/ekyb.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import "./StateMachine-EDpYWy0i.js";
2
- import { c as AddressSuggestion } from "./types-Bk_6dmDa.js";
3
- import { i as FlowModuleConfig } from "./types-Do5rEXij.js";
4
- import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BfHiko5D.js";
5
- import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-Dzswb_b8.js";
2
+ import { c as AddressSuggestion } from "./types-Cx-1zo-i.js";
3
+ import { i as FlowModuleConfig } from "./types-C1g9itHE.js";
4
+ import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-C0oWGUzg.js";
5
+ import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-BwRuGAwt.js";
6
6
  //#region src/modules/ekyb/ekybServices.d.ts
7
7
  type EkybFlowConfig = FlowModuleConfig['EKYB'];
8
8
  //#endregion
package/dist/ekyb.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-CN5Dtw0u.esm.js";
2
- import { t as ekybMachine } from "./ekybStateMachine-DL0rlDHo.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-BPeT-kaz.esm.js";
1
+ import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-BPP_9RYt.esm.js";
2
+ import { t as ekybMachine } from "./ekybStateMachine-DEEptwqX.esm.js";
3
+ import { t as createEkybManager } from "./ekybManager-Ccm_Emx4.esm.js";
4
4
  export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
@@ -1,8 +1,8 @@
1
1
  import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
2
  import { t as Manager } from "./Manager-CQQ99QOI.js";
3
3
  import "./Actor-iTq7YY48.js";
4
- import { c as AddressSuggestion } from "./types-Bk_6dmDa.js";
5
- import { i as EkybFormValues, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BfHiko5D.js";
4
+ import { c as AddressSuggestion } from "./types-Cx-1zo-i.js";
5
+ import { i as EkybFormValues, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-C0oWGUzg.js";
6
6
  //#region src/modules/ekyb/ekybStateMachine.d.ts
7
7
  declare const ekybMachine: any;
8
8
  type EkybMachine = typeof ekybMachine;
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.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-BuFLFuzz.esm.js";
4
- import { t as ekybMachine } from "./ekybStateMachine-DL0rlDHo.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-DEEptwqX.esm.js";
5
5
  //#region src/modules/ekyb/ekybActor.ts
6
6
  /**
7
7
  * Creates and starts an eKYB actor.
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
3
- import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-CN5Dtw0u.esm.js";
3
+ import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-BPP_9RYt.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
6
6
  import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DyHGgeX8.esm.js";
package/dist/ekyc.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as EkycValidationError, c as AddressSuggestion, i as EkycModuleConfig, o as EkycValidationErrors, t as EkycConfig } from "./types-Bk_6dmDa.js";
2
- import { n as EkycState, o as ekycMachine, r as createEkycManager, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
1
+ import { a as EkycValidationError, c as AddressSuggestion, i as EkycModuleConfig, o as EkycValidationErrors, t as EkycConfig } from "./types-Cx-1zo-i.js";
2
+ import { n as EkycState, o as ekycMachine, r as createEkycManager, t as EkycManager } from "./ekycManager-DLzDuBzI.js";
3
3
  //#region src/modules/ekyc/ekycUtils.d.ts
4
4
  /**
5
5
  * Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
package/dist/ekyc.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
2
- import { t as ekycMachine } from "./ekycStateMachine-CshSNJhh.esm.js";
3
- import { t as createEkycManager } from "./ekycManager-BlQ-Qj4E.esm.js";
1
+ import { i as toEkycConfig } from "./ekycUtils-D6wfSpPN.esm.js";
2
+ import { t as ekycMachine } from "./ekycStateMachine-UeJRO8_p.esm.js";
3
+ import { t as createEkycManager } from "./ekycManager-BX2d46FY.esm.js";
4
4
  export { createEkycManager, ekycMachine, toEkycConfig };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.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-BuFLFuzz.esm.js";
4
- import { t as ekycMachine } from "./ekycStateMachine-CshSNJhh.esm.js";
4
+ import { t as ekycMachine } from "./ekycStateMachine-UeJRO8_p.esm.js";
5
5
  //#region src/modules/ekyc/ekycActor.ts
6
6
  /**
7
7
  * Creates and starts an eKYC actor.
@@ -1,7 +1,7 @@
1
1
  import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
2
  import { t as Manager } from "./Manager-CQQ99QOI.js";
3
3
  import "./Actor-iTq7YY48.js";
4
- import { c as AddressSuggestion, n as EkycFieldDef, o as EkycValidationErrors, r as EkycFormValues, t as EkycConfig } from "./types-Bk_6dmDa.js";
4
+ import { c as AddressSuggestion, n as EkycFieldDef, o as EkycValidationErrors, r as EkycFormValues, t as EkycConfig } from "./types-Cx-1zo-i.js";
5
5
  //#region src/modules/ekyc/ekycStateMachine.d.ts
6
6
  declare const ekycMachine: any;
7
7
  type EkycMachine = typeof ekycMachine;
@@ -1,10 +1,10 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
3
- import { a as ADDRESS_STATE_SOURCES, c as EMAIL_SOURCES, d as NAME_SOURCES, f as POSTAL_CODE_SOURCES, h as TAX_ID_SOURCES, i as toEkycConfig, l as HOUSE_NO_SOURCES, m as STREET_SOURCES, n as getEKYCFields, o as CITY_SOURCES, p as STATE_CODE_HINTS, r as isFieldOptional, s as COUNTRY_SELECTOR_DISABLED_SOURCES, t as getEKYCCountry, u as MIDDLE_NAME_SOURCES } from "./ekycUtils-Dew1rBG0.esm.js";
3
+ import { _ as TAX_ID_SOURCES, a as ADDRESS_STATE_SOURCES, c as COUNTRY_SELECTOR_DISABLED_SOURCES, d as MIDDLE_NAME_SOURCES, f as NAME_SOURCES, g as STREET_SOURCES, h as STATE_CODE_HINTS, i as toEkycConfig, l as EMAIL_SOURCES, m as POSTAL_CODE_SOURCES, n as getEKYCFields, o as APARTMENT_SOURCES, p as ONE_OF_REQUIRED_GROUPS, r as isFieldOptional, s as CITY_SOURCES, t as getEKYCCountry, u as HOUSE_NO_SOURCES } from "./ekycUtils-D6wfSpPN.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
6
6
  import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DyHGgeX8.esm.js";
7
- import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
7
+ import { n as DateFormattingProvider, t as validateCPF } from "./cpf-uAZTPUBy.esm.js";
8
8
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/metadata.min.json.js
9
9
  var metadata_min_json_default = {
10
10
  "version": 4,
@@ -9777,6 +9777,8 @@ function validatePhone(phone, country) {
9777
9777
  function formatPhoneE164(phone, country) {
9778
9778
  return phoneValidator.formatE164(phone, country) ?? phone;
9779
9779
  }
9780
+ const ONE_OF_REQUIRED_ERROR_KEY = "verification.errors.dobOrSsnRequired";
9781
+ const normalizeFieldValue = (value) => typeof value === "string" ? value : String(value ?? "");
9780
9782
  const SSN_FORMAT_REGEX = /^\d{3}-\d{2}-\d{4}$/;
9781
9783
  const EMAIL_FORMAT_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
9782
9784
  const buildPostalCodeParams = (country) => {
@@ -9834,13 +9836,16 @@ const createValidators = () => ({
9834
9836
  if (rule.type !== "exactLength") return void 0;
9835
9837
  if (value.trim().length === 0) return void 0;
9836
9838
  return value.length === rule.length ? void 0 : { key: "verification.errors.exactly10Characters" };
9839
+ },
9840
+ oneOfRequired: (_value, rule, _field, values) => {
9841
+ if (rule.type !== "oneOfRequired") return void 0;
9842
+ return rule.fields.some((name) => normalizeFieldValue(values[name]).trim().length > 0) ? void 0 : { key: ONE_OF_REQUIRED_ERROR_KEY };
9837
9843
  }
9838
9844
  });
9839
- const normalizeFieldValue = (value) => typeof value === "string" ? value : String(value ?? "");
9840
- const evaluateRules = (value, rules, field, validators) => {
9845
+ const evaluateRules = (value, rules, field, values, validators) => {
9841
9846
  if (!rules) return void 0;
9842
9847
  for (const rule of rules) {
9843
- const error = validators[rule.type](value, rule, field);
9848
+ const error = validators[rule.type](value, rule, field, values);
9844
9849
  if (error) return error;
9845
9850
  }
9846
9851
  };
@@ -9848,7 +9853,7 @@ function validateEkycForm(values, fields) {
9848
9853
  const validators = createValidators();
9849
9854
  return fields.reduce((errors, field) => {
9850
9855
  const value = normalizeFieldValue(values[field.name]);
9851
- const error = evaluateRules(value, field.validation, field, validators);
9856
+ const error = evaluateRules(value, field.validation, field, values, validators);
9852
9857
  if (error) errors[field.name] = error;
9853
9858
  return errors;
9854
9859
  }, {});
@@ -9858,10 +9863,11 @@ function validateEkycField(values, fieldName, fields) {
9858
9863
  if (!field) return void 0;
9859
9864
  const validators = createValidators();
9860
9865
  const value = normalizeFieldValue(values[field.name]);
9861
- return evaluateRules(value, field.validation, field, validators);
9866
+ return evaluateRules(value, field.validation, field, values, validators);
9862
9867
  }
9863
9868
  //#endregion
9864
9869
  //#region src/modules/ekyc/ekycActions.ts
9870
+ const dateFormattingInstance = new DateFormattingProvider();
9865
9871
  function buildValidationRules(field, country, configSource) {
9866
9872
  const rules = [];
9867
9873
  if (field.required) rules.push({ type: "required" });
@@ -9884,6 +9890,16 @@ function buildValidationRules(field, country, configSource) {
9884
9890
  });
9885
9891
  return rules;
9886
9892
  }
9893
+ function applyOneOfRequiredGroups(defs, configSource) {
9894
+ for (const group of ONE_OF_REQUIRED_GROUPS[configSource] ?? []) {
9895
+ const members = defs.filter((def) => group.includes(def.name));
9896
+ const fields = members.map((def) => def.name);
9897
+ for (const def of members) def.validation = [{
9898
+ type: "oneOfRequired",
9899
+ fields
9900
+ }, ...def.validation ?? []];
9901
+ }
9902
+ }
9887
9903
  function buildFieldDefs(fields, configSource, country, enablePhoneRisk = false) {
9888
9904
  const defs = [];
9889
9905
  const add = (name, type, label, source, opts) => {
@@ -9966,6 +9982,10 @@ function buildFieldDefs(fields, configSource, country, enablePhoneRisk = false)
9966
9982
  if (!addrSource) return;
9967
9983
  if (HOUSE_NO_SOURCES.includes(configSource)) add("houseNo", "text", "verification.labels.houseNo", addrSource, { section: "address" });
9968
9984
  if (STREET_SOURCES.includes(configSource)) add("street", "text", "verification.labels.street", addrSource, { section: "address" });
9985
+ if (APARTMENT_SOURCES.includes(configSource)) add("apartment", "text", "verification.labels.apartment", addrSource, {
9986
+ section: "address",
9987
+ placeholder: "verification.placeholder.apartment"
9988
+ });
9969
9989
  if (CITY_SOURCES.includes(configSource)) add("city", "text", "verification.labels.city", addrSource, { section: "address" });
9970
9990
  if (ADDRESS_STATE_SOURCES.includes(configSource)) add("state", country === "US" ? "dropdown" : "text", country === "US" ? "verification.labels.chooseState" : "verification.labels.state", addrSource, {
9971
9991
  section: "address",
@@ -9998,6 +10018,7 @@ function buildFieldDefs(fields, configSource, country, enablePhoneRisk = false)
9998
10018
  addAddressFields();
9999
10019
  addDriversLicenseFields();
10000
10020
  }
10021
+ applyOneOfRequiredGroups(defs, configSource);
10001
10022
  return defs;
10002
10023
  }
10003
10024
  function applyPrefill(fields, ocrData, otpStatus, _country) {
@@ -10027,8 +10048,9 @@ function applyPrefill(fields, ocrData, otpStatus, _country) {
10027
10048
  readonlyFields.push("maternalSurname");
10028
10049
  }
10029
10050
  }
10030
- if (fields["date of birth"] === "document_scan" && ocrData?.birthDate) {
10031
- values.dateOfBirth = ocrData.birthDate;
10051
+ const ocrBirthDate = dateFormattingInstance.utcToIsoDateString(ocrData?.birthDate);
10052
+ if (fields["date of birth"] === "document_scan" && ocrBirthDate) {
10053
+ values.dateOfBirth = ocrBirthDate;
10032
10054
  prefilled.dateOfBirth = true;
10033
10055
  readonlyFields.push("dateOfBirth");
10034
10056
  }
@@ -10240,9 +10262,14 @@ const ekycMachine = setup({
10240
10262
  clearFieldValidationError: assign(({ context, event }) => {
10241
10263
  if (event.type !== "DATA_CHANGED") return {};
10242
10264
  const errs = context.validationErrors;
10243
- if (!errs?.[event.name]) return {};
10265
+ if (!errs) return {};
10244
10266
  const next = { ...errs };
10245
10267
  delete next[event.name];
10268
+ const oneOfRule = context.fields.find((f) => f.name === event.name)?.validation?.find((rule) => rule.type === "oneOfRequired");
10269
+ if (oneOfRule?.type === "oneOfRequired") {
10270
+ for (const sibling of oneOfRule.fields) if (next[sibling]?.key === "verification.errors.dobOrSsnRequired") delete next[sibling];
10271
+ }
10272
+ if (Object.keys(next).length === Object.keys(errs).length) return {};
10246
10273
  return { validationErrors: Object.keys(next).length > 0 ? next : void 0 };
10247
10274
  }),
10248
10275
  validateFormField: assign(({ context, event }) => {
@@ -1,5 +1,5 @@
1
1
  //#region src/modules/ekyc/ekycConsts.ts
2
- const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER"];
2
+ const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER", "US_CREDIT_TELCO"];
3
3
  const STATE_CODE_HINTS = {
4
4
  US: "CA, NY",
5
5
  CA: "ON, QC",
@@ -13,6 +13,7 @@ const ADDRESS_FIELDS = [
13
13
  "address",
14
14
  "houseNo",
15
15
  "street",
16
+ "apartment",
16
17
  "address2",
17
18
  "city",
18
19
  "state",
@@ -23,19 +24,39 @@ const DRIVERS_LICENSE_FIELDS = [
23
24
  "dlState",
24
25
  "dlExpireAt"
25
26
  ];
26
- const DOB_OPTIONAL_SOURCES = ["US_TELCO_1", "UK_VOTER_REGISTER"];
27
- const ADDRESS_OPTIONAL_SOURCES = ["US_TELCO_1", "UK_VOTER_REGISTER"];
27
+ const DOB_OPTIONAL_SOURCES = [
28
+ "US_TELCO_1",
29
+ "US_CREDIT_TELCO",
30
+ "UK_VOTER_REGISTER"
31
+ ];
32
+ const ADDRESS_OPTIONAL_SOURCES = [
33
+ "US_TELCO_1",
34
+ "US_CREDIT_TELCO",
35
+ "UK_VOTER_REGISTER"
36
+ ];
37
+ const STREET_OPTIONAL_SOURCES = ["US_CREDIT_TELCO"];
38
+ const SSN_OPTIONAL_SOURCES = ["US_CREDIT_TELCO"];
28
39
  const LAST4SSN_OPTIONAL_SOURCES = ["US_TELCO_1"];
29
40
  const DRIVERS_LICENSE_OPTIONAL_SOURCES = ["US_TELCO_1"];
30
41
  const EMAIL_SOURCES = ["US_TELCO_1", "US_CREDIT_BUREAU_1"];
31
42
  const EMAIL_OPTIONAL_SOURCES = ["US_TELCO_1"];
32
- const PHONE_OPTIONAL_SOURCES = ["CA_RES_CREDIT", "UK_VOTER_REGISTER"];
43
+ const PHONE_OPTIONAL_SOURCES = [
44
+ "CA_RES_CREDIT",
45
+ "UK_VOTER_REGISTER",
46
+ "US_CREDIT_TELCO"
47
+ ];
48
+ /**
49
+ * Groups of fields where at least one member must be filled. Members are
50
+ * individually optional; the group rule enforces the "one of" requirement.
51
+ */
52
+ const ONE_OF_REQUIRED_GROUPS = { US_CREDIT_TELCO: [["dateOfBirth", "ssn"]] };
33
53
  const NAME_SOURCES = [
34
54
  "US_TELCO_1",
35
55
  "US_TELCO_2",
36
56
  "US_TELCO_4",
37
57
  "US_ADDRESS_1",
38
58
  "US_CREDIT_BUREAU_1",
59
+ "US_CREDIT_TELCO",
39
60
  "US_DRIVERS_LICENSE_1",
40
61
  "CA_RES_CREDIT",
41
62
  "SERPRO",
@@ -58,6 +79,7 @@ const STREET_SOURCES = [
58
79
  "US_TELCO_1",
59
80
  "US_TELCO_2",
60
81
  "US_CREDIT_BUREAU_1",
82
+ "US_CREDIT_TELCO",
61
83
  "CA_RES_CREDIT",
62
84
  "SERPRO",
63
85
  "BR_GOVT_1",
@@ -69,6 +91,7 @@ const CITY_SOURCES = [
69
91
  "US_TELCO_1",
70
92
  "US_TELCO_2",
71
93
  "US_CREDIT_BUREAU_1",
94
+ "US_CREDIT_TELCO",
72
95
  "CA_RES_CREDIT",
73
96
  "SERPRO",
74
97
  "BR_GOVT_1",
@@ -80,6 +103,7 @@ const ADDRESS_STATE_SOURCES = [
80
103
  "US_TELCO_1",
81
104
  "US_TELCO_2",
82
105
  "US_CREDIT_BUREAU_1",
106
+ "US_CREDIT_TELCO",
83
107
  "US_DRIVERS_LICENSE_1",
84
108
  "CA_RES_CREDIT",
85
109
  "SERPRO",
@@ -91,6 +115,7 @@ const POSTAL_CODE_SOURCES = [
91
115
  "US_TELCO_1",
92
116
  "US_TELCO_2",
93
117
  "US_CREDIT_BUREAU_1",
118
+ "US_CREDIT_TELCO",
94
119
  "CA_RES_CREDIT",
95
120
  "SERPRO",
96
121
  "BR_GOVT_1",
@@ -98,6 +123,7 @@ const POSTAL_CODE_SOURCES = [
98
123
  "ES_1",
99
124
  "UK_VOTER_REGISTER"
100
125
  ];
126
+ const APARTMENT_SOURCES = ["US_CREDIT_TELCO"];
101
127
  const TAX_ID_SOURCES = [
102
128
  "GT_1",
103
129
  "ES_1",
@@ -211,8 +237,9 @@ function toEkycConfig(config) {
211
237
  function isFieldOptional(fieldName, configSource) {
212
238
  if (fieldName === "middleName") return true;
213
239
  if (fieldName === "dateOfBirth") return DOB_OPTIONAL_SOURCES.includes(configSource);
214
- if (fieldName === "street") return false;
240
+ if (fieldName === "street") return STREET_OPTIONAL_SOURCES.includes(configSource);
215
241
  if (ADDRESS_FIELDS.includes(fieldName)) return ADDRESS_OPTIONAL_SOURCES.includes(configSource);
242
+ if (fieldName === "ssn") return SSN_OPTIONAL_SOURCES.includes(configSource);
216
243
  if (fieldName === "last4SSN") return LAST4SSN_OPTIONAL_SOURCES.includes(configSource);
217
244
  if (DRIVERS_LICENSE_FIELDS.includes(fieldName)) return DRIVERS_LICENSE_OPTIONAL_SOURCES.includes(configSource);
218
245
  if (fieldName === "email") return EMAIL_OPTIONAL_SOURCES.includes(configSource);
@@ -220,4 +247,4 @@ function isFieldOptional(fieldName, configSource) {
220
247
  return false;
221
248
  }
222
249
  //#endregion
223
- export { ADDRESS_STATE_SOURCES as a, EMAIL_SOURCES as c, NAME_SOURCES as d, POSTAL_CODE_SOURCES as f, TAX_ID_SOURCES as h, toEkycConfig as i, HOUSE_NO_SOURCES as l, STREET_SOURCES as m, getEKYCFields as n, CITY_SOURCES as o, STATE_CODE_HINTS as p, isFieldOptional as r, COUNTRY_SELECTOR_DISABLED_SOURCES as s, getEKYCCountry as t, MIDDLE_NAME_SOURCES as u };
250
+ export { TAX_ID_SOURCES as _, ADDRESS_STATE_SOURCES as a, COUNTRY_SELECTOR_DISABLED_SOURCES as c, MIDDLE_NAME_SOURCES as d, NAME_SOURCES as f, STREET_SOURCES as g, STATE_CODE_HINTS as h, toEkycConfig as i, EMAIL_SOURCES as l, POSTAL_CODE_SOURCES as m, getEKYCFields as n, APARTMENT_SOURCES as o, ONE_OF_REQUIRED_GROUPS as p, isFieldOptional as r, CITY_SOURCES as s, getEKYCCountry as t, HOUSE_NO_SOURCES as u };
@@ -1,2 +1,2 @@
1
- import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BXCO7CqQ.esm.js";
1
+ import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-D5tE50aC.esm.js";
2
2
  export { AE_CONSENT_KEYS, NAMIRIAL_QES_CONSENT_KEYS, NAMIRIAL_QES_PROVIDER_CODE, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, createElectronicSignatureManagerFromActor, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -2,7 +2,7 @@ import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
5
- import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-BZ9YXlUV.esm.js";
5
+ import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-B4NfKm7e.esm.js";
6
6
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
7
7
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
8
8
  import { t as externalFetch } from "./externalFetch-BKBThAUC.esm.js";
@@ -5,31 +5,31 @@ import "./Actor-iTq7YY48.js";
5
5
  import { c as ElectronicSignatureFileDataHolder } from "./types-D0gekt4U.js";
6
6
  import { a as ElectronicSignatureActor, i as createElectronicSignatureManagerFromActor, n as ElectronicSignatureState, t as ElectronicSignatureManager } from "./electronicSignatureManager-Ds-KEVTq.js";
7
7
  import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-BY36bS12.js";
8
- import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-DHyyWPDu.js";
8
+ import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-m-7ae67q.js";
9
9
  import "./createFaceAvatar-BlcTYgJv.js";
10
10
  import { i as IStorageCapability } from "./IWasmUtilCapability-CNWRl7jr.js";
11
11
  import "./StreamCanvasCapture-_8gdW5Lk.js";
12
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-BvwdHWCI.js";
12
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-CboRCl_N.js";
13
13
  import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-DCgEidHz.js";
14
14
  import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-BhYFeKiG.js";
15
15
  import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
16
- import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-SSKNrm5Z.js";
16
+ import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-DNuZn9fn.js";
17
17
  import { a as createCustomFieldsManagerFromActor, n as CustomFieldsState, o as CustomFieldsActor, t as CustomFieldsManager } from "./customFieldsManager-8-W2KY4n.js";
18
18
  import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor, n as CustomWatchlistState, t as CustomWatchlistManager } from "./customWatchlistManager-PBWHr_oM.js";
19
19
  import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-lEtCM320.js";
20
20
  import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-D5R_uxLQ.js";
21
- import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-Dzswb_b8.js";
22
- import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
21
+ import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-BwRuGAwt.js";
22
+ import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-DLzDuBzI.js";
23
23
  import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CADXW_9X.js";
24
- import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-CUT6DnE_.js";
25
- import { i as CaptureIdResponse } from "./types-byBHOzCG2.js";
26
- import { B as WasmUtilProvider, d as IdCaptureActor, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-BaHEyQyr.js";
24
+ import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-BSZG891S.js";
25
+ import { i as CaptureIdResponse } from "./types-DEGVXwsk2.js";
26
+ import { B as WasmUtilProvider, d as IdCaptureActor, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-BHwL2Z0V.js";
27
27
  import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BBU8Lq0O.js";
28
28
  import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DLXef90v.js";
29
29
  import { i as WatchlistForBusinessState, l as WatchlistForBusinessActor, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager } from "./watchlistForBusinessManager-CsnJnG-C.js";
30
30
  import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-v2TH5g7e.js";
31
31
  import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
32
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-vhv1co_n.js";
32
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-BR_4cBuc.js";
33
33
  import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-BF_cXZq8.js";
34
34
  import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-BD2PvT5B.js";
35
35
  import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-DGBSWz2_.js";
@@ -38,7 +38,7 @@ import { a as GovernmentValidationActor, i as createGovernmentValidationManagerF
38
38
  import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n as IdVerificationState, t as IdVerificationManager } from "./idVerificationManager-BB4Pj_N6.js";
39
39
  import { a as FaceMatchActor, i as createFaceMatchManagerFromActor, n as FaceMatchState, t as FaceMatchManager } from "./faceMatchManager-BnvrZM2F.js";
40
40
  import { a as FiscalQrActor, i as createFiscalQrManagerFromActor, n as FiscalQrState, t as FiscalQrManager } from "./fiscalQrManager-B1STmT6z.js";
41
- import "./types-DgDvvzg0.js";
41
+ import "./types-Bx-BWveD.js";
42
42
  //#region src/modules/authentication/authenticationUploadService.d.ts
43
43
  type AuthenticationUploadResponse = {
44
44
  overallStatus: 'PASS' | 'FAIL';