@incodetech/core 2.4.0-rc.4 → 2.4.1-agentic

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 (230) hide show
  1. package/dist/{FaceDetectionProvider-CzQEFzP8.esm.js → FaceDetectionProvider-B83VmClw.esm.js} +29 -64
  2. package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
  3. package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
  4. package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-Cqiaxydi.d.ts} +31 -4
  5. package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
  6. package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-C3xNfOsv.d.ts} +12 -3
  7. package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-GTkoJyFY.esm.js} +75 -22
  8. package/dist/{addressSearch-DPjIKJrX.esm.js → addressSearch-41sMcnJk.esm.js} +72 -31
  9. package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-k-U-cL5m.esm.js} +1 -2
  10. package/dist/ae-signature.esm.js +1 -1
  11. package/dist/antifraud.esm.js +2 -2
  12. package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-CQ08atTC.esm.js} +2 -2
  13. package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-BcsUTTIr.esm.js} +1 -1
  14. package/dist/{api-Cz90EHyu.esm.js → api-BO8JA7Pf.esm.js} +6 -5
  15. package/dist/{apiError-B_uY7RO6.esm.js → apiError-CfuIvnUy.esm.js} +1 -1
  16. package/dist/attemptCarry-BjTJ6bMQ.esm.js +45 -0
  17. package/dist/authentication.d.ts +3 -3
  18. package/dist/authentication.esm.js +2 -2
  19. package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-C-cOki0Y.d.ts} +1 -1
  20. package/dist/{authenticationManager-CSHZQTlb.esm.js → authenticationManager-DvmklBTE.esm.js} +5 -5
  21. package/dist/{authenticationStateMachine-DrO14KyC.esm.js → authenticationStateMachine-BL2ptOA0.esm.js} +3 -3
  22. package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-C5_NNfUN.esm.js} +3 -43
  23. package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-DtkAf6sn.esm.js} +161 -150
  24. package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
  25. package/dist/camera.esm.js +1 -1
  26. package/dist/certificate-issuance.esm.js +2 -2
  27. package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-CM0fuqDC.esm.js} +2 -2
  28. package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-kksIUOPD.esm.js} +2 -2
  29. package/dist/cnpj-Co1ottYN.esm.js +77 -0
  30. package/dist/connectivity-HSl0diCx.esm.js +133 -0
  31. package/dist/consent.d.ts +1 -1
  32. package/dist/consent.esm.js +2 -2
  33. package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-CBwFozhv.esm.js} +4 -3
  34. package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-_q9yJUku.d.ts} +14 -7
  35. package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-CpmRAcr2.esm.js} +20 -7
  36. package/dist/cross-document-data-match.esm.js +1 -1
  37. package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-64O8t10a.esm.js} +2 -2
  38. package/dist/curp-validation.d.ts +1 -1
  39. package/dist/curp-validation.esm.js +2 -2
  40. package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-CLgJQcx0.esm.js} +3 -2
  41. package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-CXpFE-Mv.d.ts} +1 -1
  42. package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-Bx9YhVkJ.esm.js} +28 -20
  43. package/dist/custom-fields.esm.js +1 -1
  44. package/dist/custom-watchlist.esm.js +2 -2
  45. package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-DWt_0YtJ.esm.js} +2 -2
  46. package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-D8o-2Nej.esm.js} +2 -2
  47. package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-Sbi6DIcK.esm.js} +1 -1
  48. package/dist/{deepsightLoader-DkrG5zbN.esm.js → deepsightLoader-DMxtowCm.esm.js} +6 -28
  49. package/dist/{deepsightService-BrltL1DF.esm.js → deepsightService-twg3bXqY.esm.js} +20 -59
  50. package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-kHY2IDJi.esm.js} +177 -40
  51. package/dist/device.esm.js +2 -2
  52. package/dist/document-capture.d.ts +2 -2
  53. package/dist/document-capture.esm.js +2 -2
  54. package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-6tnnDkMX.d.ts} +14 -2
  55. package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-CMSC_Mhd.esm.js} +26 -19
  56. package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-BCwD5Rto.esm.js} +43 -35
  57. package/dist/dynamic-forms.d.ts +2 -2
  58. package/dist/dynamic-forms.esm.js +2 -2
  59. package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-9kwY8Bf5.d.ts} +1 -1
  60. package/dist/{dynamicFormsManager-D7Xnjm7B.esm.js → dynamicFormsManager-DU6W1e20.esm.js} +2 -2
  61. package/dist/{dynamicFormsStateMachine-Cgk0VPP4.esm.js → dynamicFormsStateMachine-C8Z7k3vo.esm.js} +2 -2
  62. package/dist/ekyb.d.ts +4 -4
  63. package/dist/ekyb.esm.js +3 -3
  64. package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-TB6ZG5lX.d.ts} +2 -2
  65. package/dist/{ekybManager-yj_Y36jM.esm.js → ekybManager-TGfqyjuu.esm.js} +2 -2
  66. package/dist/{ekybStateMachine-DIRBMkaD.esm.js → ekybStateMachine-DBgFuEPK.esm.js} +26 -44
  67. package/dist/ekyc.d.ts +3 -3
  68. package/dist/ekyc.esm.js +3 -3
  69. package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-BSQteIfC.d.ts} +1 -1
  70. package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-C2cgG2Pl.esm.js} +2 -2
  71. package/dist/ekycStateMachine-CuNF7z4O.esm.js +7505 -0
  72. package/dist/ekycUtils-BFncpC4F.esm.js +1401 -0
  73. package/dist/electronic-signature.esm.js +1 -1
  74. package/dist/{electronicSignatureManager-Btsa7Prh.esm.js → electronicSignatureManager-C7pqXsRm.esm.js} +4 -4
  75. package/dist/email.esm.js +2 -2
  76. package/dist/{emailManager-ButFktRm.esm.js → emailManager-FH_CP0cT.esm.js} +2 -2
  77. package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-Cx-uTaBV.esm.js} +32 -20
  78. package/dist/{events-Du2A4-Qr.esm.js → events-CQteqXfy.esm.js} +2 -2
  79. package/dist/events.esm.js +1 -1
  80. package/dist/extensibility.d.ts +35 -21
  81. package/dist/extensibility.esm.js +34 -34
  82. package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
  83. package/dist/face-match.d.ts +1 -1
  84. package/dist/face-match.esm.js +2 -2
  85. package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-C-xKdj-d.d.ts} +71 -66
  86. package/dist/{faceCaptureManagerFactory-CdDfnyyb.esm.js → faceCaptureManagerFactory-CBm05KnT.esm.js} +4 -4
  87. package/dist/{faceCaptureSetup-CCucWLdy.esm.js → faceCaptureSetup-BQjCbL51.esm.js} +82 -64
  88. package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-B2zp7yP4.esm.js} +2 -2
  89. package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-Z4UDLwAv.d.ts} +16 -7
  90. package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-ByTMQCUC.esm.js} +40 -27
  91. package/dist/{feature-management-DCD0I_XZ.esm.js → feature-management-DjAG5lsJ.esm.js} +1 -1
  92. package/dist/feature-management.esm.js +1 -1
  93. package/dist/field-comparison.esm.js +1 -1
  94. package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-CC0vKmpf.esm.js} +2 -2
  95. package/dist/fiscal-qr.esm.js +1 -1
  96. package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-Be-r4oZj.esm.js} +4 -4
  97. package/dist/flow-events.d.ts +1 -1
  98. package/dist/flow.d.ts +10 -10
  99. package/dist/flow.esm.js +8 -11
  100. package/dist/{flowCompletionService-xFODSJEq.esm.js → flowCompletionService-ChMU2v79.esm.js} +2 -2
  101. package/dist/{flowServices-COMEf-WP.esm.js → flowServices-g2tVWsJl.esm.js} +8 -50
  102. package/dist/geolocation.d.ts +1 -1
  103. package/dist/geolocation.esm.js +2 -2
  104. package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-6e1i9UIR.d.ts} +15 -17
  105. package/dist/{geolocationManager-B2C2yfrn.esm.js → geolocationManager-DLbvZwUB.esm.js} +6 -8
  106. package/dist/{geolocationStateMachine-Dbg9jw62.esm.js → geolocationStateMachine-CAJVongM.esm.js} +12 -8
  107. package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
  108. package/dist/government-validation.esm.js +2 -2
  109. package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-CkX9TEkh.esm.js} +2 -2
  110. package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-PTPCP26N.esm.js} +1 -1
  111. package/dist/home.d.ts +1 -1
  112. package/dist/home.esm.js +1 -1
  113. package/dist/http.esm.js +1 -1
  114. package/dist/id-ocr.esm.js +2 -2
  115. package/dist/id-selfie-flow.d.ts +1 -1
  116. package/dist/id-selfie-flow.esm.js +9 -9
  117. package/dist/id-verification.esm.js +2 -2
  118. package/dist/id.d.ts +3 -16
  119. package/dist/id.esm.js +3 -3
  120. package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-MSQoqScU.esm.js} +3 -3
  121. package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-DzTfQ1Am.d.ts} +66 -5
  122. package/dist/{idCaptureManager-DZtgScdd.esm.js → idCaptureManager-zZdTcpG1.esm.js} +63 -17
  123. package/dist/{idCaptureServices-mpibFz4U.esm.js → idCaptureServices-8OHinO0N.esm.js} +9 -9
  124. package/dist/{idCaptureStateMachine-DWJOHeGn.esm.js → idCaptureStateMachine-B3G6XoDG.esm.js} +914 -536
  125. package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-B64-fjWg.esm.js} +2 -2
  126. package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-B1aZnobs.esm.js} +2 -2
  127. package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-_Kebv-Ue.esm.js} +2 -2
  128. package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DQn6c84z.esm.js} +1 -1
  129. package/dist/identity-reuse.d.ts +1 -1
  130. package/dist/identity-reuse.esm.js +2 -2
  131. package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-DDXkNVZi.esm.js} +2 -2
  132. package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +4 -4
  133. package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-Bcnkbjf8.esm.js} +1 -1
  134. package/dist/{index-BKOWUhxG.d.ts → index-DEfwds5y.d.ts} +55 -8
  135. package/dist/{index-CKQ9QBZP.d.ts → index-DMDAk85K.d.ts} +1 -1
  136. package/dist/index.d.ts +1 -1
  137. package/dist/index.esm.js +1 -1
  138. package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-CXIBwBeE.esm.js} +1 -1
  139. package/dist/mandatory-consent.d.ts +2 -2
  140. package/dist/mandatory-consent.esm.js +2 -2
  141. package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-43W5d_8G.esm.js} +4 -3
  142. package/dist/{mandatoryConsentManager-okPILEru.d.ts → mandatoryConsentManager-xx3mY-xw.d.ts} +13 -6
  143. package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-CVlgdlnt.esm.js} +20 -7
  144. package/dist/{multipartRecordingService-CLwrF5wD.esm.js → multipartRecordingService-DMBxHKS2.esm.js} +3 -13
  145. package/dist/nationalIds-B91f_RuB.esm.js +99 -0
  146. package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-B3OPL8Si.esm.js} +1 -1
  147. package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-DnBAN_hW.esm.js} +4 -4
  148. package/dist/phone-number.d.ts +7 -1
  149. package/dist/phone-number.esm.js +15 -2
  150. package/dist/phone.d.ts +1 -1
  151. package/dist/phone.esm.js +2 -2
  152. package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
  153. package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-C6jut_pz.esm.js} +3 -3
  154. package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-T1-drWfG.esm.js} +37 -25
  155. package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
  156. package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
  157. package/dist/processFaceMatch-BWme3kVV.esm.js +21 -0
  158. package/dist/qe-signature.esm.js +1 -1
  159. package/dist/redirect-to-mobile.d.ts +2 -2
  160. package/dist/redirect-to-mobile.esm.js +2 -2
  161. package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-BJXC6Kx9.esm.js} +4 -3
  162. package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Dm9ctRCC.d.ts} +3 -1
  163. package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-BBMAc2Gb.esm.js} +27 -6
  164. package/dist/{runChildModule-C09a9ACV.esm.js → runChildModule-DPHTqSdF.esm.js} +3 -3
  165. package/dist/{sdkVersion-xE2xE2_9.esm.js → sdkVersion-C3_P-Qbq.esm.js} +1 -1
  166. package/dist/selfie.d.ts +4 -4
  167. package/dist/selfie.esm.js +10 -10
  168. package/dist/{selfieErrorUtils-CoXIxVCy.esm.js → selfieErrorUtils-BL0BLMnp.esm.js} +1 -1
  169. package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-BMmpUii2.d.ts} +1 -1
  170. package/dist/{selfieManager-RcVUu1KJ.esm.js → selfieManager-Cbliomv7.esm.js} +5 -5
  171. package/dist/{selfieStateMachine-nWbIRIBD.esm.js → selfieStateMachine-B5m_Kn0O.esm.js} +3 -3
  172. package/dist/{session-Cr4IVgYu.esm.js → session-DAaAewMX.esm.js} +77 -9
  173. package/dist/session.d.ts +96 -10
  174. package/dist/session.esm.js +7 -6
  175. package/dist/{sessionInitializer-c3CChZts.esm.js → sessionInitializer-CWFT4dfw.esm.js} +402 -202
  176. package/dist/{setup-BvKrAlOo.esm.js → setup-CDAKwTr7.esm.js} +32 -19
  177. package/dist/{setup-YPKTUCY5.d.ts → setup-D9qt8YVU.d.ts} +2 -2
  178. package/dist/signature.esm.js +2 -2
  179. package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-BeEVCcsC.esm.js} +2 -2
  180. package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-_1c1vSid.esm.js} +1 -1
  181. package/dist/{stats-BEvexnKC.esm.js → stats-BpMz-hTP.esm.js} +1 -1
  182. package/dist/stats.esm.js +1 -1
  183. package/dist/{tri-xzRLIIMN.esm.js → tri-BajQnjbf.esm.js} +142 -8
  184. package/dist/tri.d.ts +1 -1
  185. package/dist/tri.esm-CzTNi5Q_.esm.js +3826 -0
  186. package/dist/tri.esm.js +1 -1
  187. package/dist/{trueSightService-BAvhAU7T.esm.js → trueSightService-BujtUIW6.esm.js} +19 -10
  188. package/dist/trust-graph.esm.js +1 -1
  189. package/dist/{types-yPH8lAH-.d.ts → types--3HDl2SF.d.ts} +2 -2
  190. package/dist/types-B2FK_wYb.d.ts +249 -0
  191. package/dist/types-B9C8W01q.d.ts +34 -0
  192. package/dist/{types-0L-eFDmr.d.ts → types-C397LhmN.d.ts} +1 -1
  193. package/dist/types-D9r3zRfY.d.ts +6 -0
  194. package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
  195. package/dist/{types-B6HsSzpk.d.ts → types-DuD8TRJU.d.ts} +3 -2
  196. package/dist/{types-Ckir_BEs.d.ts → types-PTZHRhGX.d.ts} +1 -1
  197. package/dist/{types-DUnFZ08M.d.ts → types-ZTZelfbM.d.ts} +2 -2
  198. package/dist/{types-CK8Jbjkp.d.ts → types-e8fCsvvk.d.ts} +1 -1
  199. package/dist/{types-BAxn7MpY.d.ts → types-xEEWCx1j.d.ts} +123 -48
  200. package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
  201. package/dist/video-selfie.d.ts +8 -8
  202. package/dist/video-selfie.esm.js +95 -22
  203. package/dist/{videoSelfieCameraWarmer-LeE2vbAW.esm.js → videoSelfieCameraWarmer-DjkPpoj_.esm.js} +18 -21
  204. package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-RfSmlFFW.d.ts} +9 -4
  205. package/dist/{warmup-BElYWRh7.esm.js → warmup-BkfxQZsC.esm.js} +175 -11
  206. package/dist/wasm.d.ts +2 -2
  207. package/dist/wasm.esm.js +3 -3
  208. package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-BhU5H2oR.esm.js} +1 -1
  209. package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
  210. package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-DTj9auyA.esm.js} +43 -17
  211. package/dist/watchlist-for-business.d.ts +2 -1
  212. package/dist/watchlist-for-business.esm.js +2 -2
  213. package/dist/watchlist.esm.js +2 -2
  214. package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-CVay6-9A.esm.js} +37 -7
  215. package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts} +54 -18
  216. package/dist/watchlistForBusinessStateMachine-DA6K5na4.esm.js +166 -0
  217. package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-B8gQ_rw3.esm.js} +2 -2
  218. package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-CSi_ZhtT.esm.js} +1 -1
  219. package/dist/workflow.d.ts +5 -2
  220. package/dist/workflow.esm.js +57 -47
  221. package/package.json +3 -2
  222. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
  223. package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
  224. package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
  225. package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
  226. package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
  227. package/dist/types-BvLo3U4u.d.ts +0 -134
  228. package/dist/types-zOgZqMni.d.ts +0 -6
  229. package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
  230. /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
@@ -0,0 +1,1401 @@
1
+ //#region ../form-definitions/generated/ekycIndex.ts
2
+ const EKYC_INDEX = [
3
+ {
4
+ id: "ekyc/AR/AR_CREDIT_BUR_1",
5
+ country: "AR",
6
+ source: "AR_CREDIT_BUR_1"
7
+ },
8
+ {
9
+ id: "ekyc/AR/AR_RES_REGISTER",
10
+ country: "AR",
11
+ source: "AR_RES_REGISTER"
12
+ },
13
+ {
14
+ id: "ekyc/BE/BE_CREDIT_TELCO",
15
+ country: "BE",
16
+ source: "BE_CREDIT_TELCO"
17
+ },
18
+ {
19
+ id: "ekyc/BR/BR_GOVT_1",
20
+ country: "BR",
21
+ source: "BR_GOVT_1"
22
+ },
23
+ {
24
+ id: "ekyc/BR/BR_TAX_PHONE_REGISTER",
25
+ country: "BR",
26
+ source: "BR_TAX_PHONE_REGISTER"
27
+ },
28
+ {
29
+ id: "ekyc/CA/CA_CREDIT_FINTRAC",
30
+ country: "CA",
31
+ source: "CA_CREDIT_FINTRAC"
32
+ },
33
+ {
34
+ id: "ekyc/CA/CA_RES_CREDIT",
35
+ country: "CA",
36
+ source: "CA_RES_CREDIT"
37
+ },
38
+ {
39
+ id: "ekyc/CA/CA_TELCO",
40
+ country: "CA",
41
+ source: "CA_TELCO"
42
+ },
43
+ {
44
+ id: "ekyc/CL/CL_CIVIL_REGISTER_2",
45
+ country: "CL",
46
+ source: "CL_CIVIL_REGISTER_2"
47
+ },
48
+ {
49
+ id: "ekyc/CO/CO_CIVIL_REGISTER_1",
50
+ country: "CO",
51
+ source: "CO_CIVIL_REGISTER_1"
52
+ },
53
+ {
54
+ id: "ekyc/DE/DE_PHONE_MOBILE_REGISTER",
55
+ country: "DE",
56
+ source: "DE_PHONE_MOBILE_REGISTER"
57
+ },
58
+ {
59
+ id: "ekyc/DK/DK_CIVIL_REG_CREDIT_TELCO",
60
+ country: "DK",
61
+ source: "DK_CIVIL_REG_CREDIT_TELCO"
62
+ },
63
+ {
64
+ id: "ekyc/ES/ES_PHONE_REGISTER_2",
65
+ country: "ES",
66
+ source: "ES_PHONE_REGISTER_2"
67
+ },
68
+ {
69
+ id: "ekyc/FI/FI_CONSUMER_POP_REG_TELCO",
70
+ country: "FI",
71
+ source: "FI_CONSUMER_POP_REG_TELCO"
72
+ },
73
+ {
74
+ id: "ekyc/FI/FI_NATIONAL_ID",
75
+ country: "FI",
76
+ source: "FI_NATIONAL_ID"
77
+ },
78
+ {
79
+ id: "ekyc/GB/GB_2X2",
80
+ country: "GB",
81
+ source: "GB_2X2"
82
+ },
83
+ {
84
+ id: "ekyc/GB/UK_VOTER_REGISTER",
85
+ country: "GB",
86
+ source: "UK_VOTER_REGISTER"
87
+ },
88
+ {
89
+ id: "ekyc/GR/GR_1",
90
+ country: "GR",
91
+ source: "GR_1"
92
+ },
93
+ {
94
+ id: "ekyc/GT/GT_1",
95
+ country: "GT",
96
+ source: "GT_1"
97
+ },
98
+ {
99
+ id: "ekyc/IN/IN_DMV",
100
+ country: "IN",
101
+ source: "IN_DMV"
102
+ },
103
+ {
104
+ id: "ekyc/IN/INDIA_PAN_1",
105
+ country: "IN",
106
+ source: "INDIA_PAN_1"
107
+ },
108
+ {
109
+ id: "ekyc/IN/INDIA_PASSPORT_1",
110
+ country: "IN",
111
+ source: "INDIA_PASSPORT_1"
112
+ },
113
+ {
114
+ id: "ekyc/IT/IT_CIVIL_REG_CREDIT_TELCO",
115
+ country: "IT",
116
+ source: "IT_CIVIL_REG_CREDIT_TELCO"
117
+ },
118
+ {
119
+ id: "ekyc/MX/MX_CIVIL_REGISTER_2",
120
+ country: "MX",
121
+ source: "MX_CIVIL_REGISTER_2"
122
+ },
123
+ {
124
+ id: "ekyc/NL/NL_CIVIL_REG_CREDIT_TELCO",
125
+ country: "NL",
126
+ source: "NL_CIVIL_REG_CREDIT_TELCO"
127
+ },
128
+ {
129
+ id: "ekyc/NL/NL_CONSUMER_POP_REG_TELCO",
130
+ country: "NL",
131
+ source: "NL_CONSUMER_POP_REG_TELCO"
132
+ },
133
+ {
134
+ id: "ekyc/NO/NO_CONS_POP_REG",
135
+ country: "NO",
136
+ source: "NO_CONS_POP_REG"
137
+ },
138
+ {
139
+ id: "ekyc/PE/PE_CIVIL_REGISTER_2",
140
+ country: "PE",
141
+ source: "PE_CIVIL_REGISTER_2"
142
+ },
143
+ {
144
+ id: "ekyc/PH/PH_RES_CREDIT",
145
+ country: "PH",
146
+ source: "PH_RES_CREDIT"
147
+ },
148
+ {
149
+ id: "ekyc/PT/PT_CIVIL_REG_CREDIT_TELCO",
150
+ country: "PT",
151
+ source: "PT_CIVIL_REG_CREDIT_TELCO"
152
+ },
153
+ {
154
+ id: "ekyc/SG/SG_PHONE_REGISTER",
155
+ country: "SG",
156
+ source: "SG_PHONE_REGISTER"
157
+ },
158
+ {
159
+ id: "ekyc/US/US_CREDIT_BUREAU_1",
160
+ country: "US",
161
+ source: "US_CREDIT_BUREAU_1"
162
+ },
163
+ {
164
+ id: "ekyc/US/US_CREDIT_BUREAU_3",
165
+ country: "US",
166
+ source: "US_CREDIT_BUREAU_3"
167
+ },
168
+ {
169
+ id: "ekyc/US/US_CREDIT_TELCO",
170
+ country: "US",
171
+ source: "US_CREDIT_TELCO"
172
+ },
173
+ {
174
+ id: "ekyc/US/US_TELCO_1",
175
+ country: "US",
176
+ source: "US_TELCO_1"
177
+ },
178
+ {
179
+ id: "ekyc/US/US_TELCO_2",
180
+ country: "US",
181
+ source: "US_TELCO_2"
182
+ },
183
+ {
184
+ id: "ekyc/VE/VE_CIVIL_REGISTER",
185
+ country: "VE",
186
+ source: "VE_CIVIL_REGISTER"
187
+ }
188
+ ];
189
+ //#endregion
190
+ //#region ../form-definitions/generated/vocabulary.ts
191
+ const VOCABULARY = {
192
+ version: "1.2",
193
+ entries: [
194
+ {
195
+ id: "text",
196
+ type: "kind",
197
+ since: "1.0"
198
+ },
199
+ {
200
+ id: "date",
201
+ type: "kind",
202
+ since: "1.0"
203
+ },
204
+ {
205
+ id: "choice",
206
+ type: "kind",
207
+ since: "1.0"
208
+ },
209
+ {
210
+ id: "phone",
211
+ type: "kind",
212
+ since: "1.0"
213
+ },
214
+ {
215
+ id: "masked",
216
+ type: "widget",
217
+ since: "1.0"
218
+ },
219
+ {
220
+ id: "addressSearch",
221
+ type: "widget",
222
+ since: "1.0"
223
+ },
224
+ {
225
+ id: "select",
226
+ type: "widget",
227
+ since: "1.0"
228
+ },
229
+ {
230
+ id: "radio",
231
+ type: "widget",
232
+ since: "1.0"
233
+ },
234
+ {
235
+ id: "text",
236
+ type: "keyboard",
237
+ since: "1.0"
238
+ },
239
+ {
240
+ id: "numeric",
241
+ type: "keyboard",
242
+ since: "1.0"
243
+ },
244
+ {
245
+ id: "phone",
246
+ type: "keyboard",
247
+ since: "1.0"
248
+ },
249
+ {
250
+ id: "email",
251
+ type: "keyboard",
252
+ since: "1.0"
253
+ },
254
+ {
255
+ id: "givenName",
256
+ type: "autofill",
257
+ since: "1.0"
258
+ },
259
+ {
260
+ id: "middleName",
261
+ type: "autofill",
262
+ since: "1.0"
263
+ },
264
+ {
265
+ id: "familyName",
266
+ type: "autofill",
267
+ since: "1.0"
268
+ },
269
+ {
270
+ id: "email",
271
+ type: "autofill",
272
+ since: "1.0"
273
+ },
274
+ {
275
+ id: "phone",
276
+ type: "autofill",
277
+ since: "1.0"
278
+ },
279
+ {
280
+ id: "addressLine1",
281
+ type: "autofill",
282
+ since: "1.0"
283
+ },
284
+ {
285
+ id: "addressLine2",
286
+ type: "autofill",
287
+ since: "1.0"
288
+ },
289
+ {
290
+ id: "addressLevel1",
291
+ type: "autofill",
292
+ since: "1.0"
293
+ },
294
+ {
295
+ id: "addressLevel2",
296
+ type: "autofill",
297
+ since: "1.0"
298
+ },
299
+ {
300
+ id: "postalCode",
301
+ type: "autofill",
302
+ since: "1.0"
303
+ },
304
+ {
305
+ id: "birthday",
306
+ type: "autofill",
307
+ since: "1.0"
308
+ },
309
+ {
310
+ id: "organization",
311
+ type: "autofill",
312
+ since: "1.0"
313
+ },
314
+ {
315
+ id: "ssnFormat",
316
+ type: "rule",
317
+ since: "1.0",
318
+ message: "verification.errors.ssnFormat"
319
+ },
320
+ {
321
+ id: "cpf",
322
+ type: "rule",
323
+ since: "1.0",
324
+ message: "verification.errors.invalidTaxId"
325
+ },
326
+ {
327
+ id: "cnpj",
328
+ type: "rule",
329
+ since: "1.0",
330
+ message: "ekyb.error.invalidTaxId"
331
+ },
332
+ {
333
+ id: "postalCodeFormat",
334
+ type: "rule",
335
+ since: "1.0",
336
+ requiresCountry: true
337
+ },
338
+ {
339
+ id: "phoneFormat",
340
+ type: "rule",
341
+ since: "1.0",
342
+ message: "verification.errors.phoneInvalid"
343
+ },
344
+ {
345
+ id: "emailFormat",
346
+ type: "rule",
347
+ since: "1.0",
348
+ message: "verification.errors.emailInvalid"
349
+ },
350
+ {
351
+ id: "noPoBox",
352
+ type: "rule",
353
+ since: "1.0",
354
+ message: "verification.errors.poBox"
355
+ },
356
+ {
357
+ id: "exactLength",
358
+ type: "rule",
359
+ since: "1.0",
360
+ params: { length: "integer" },
361
+ message: "verification.errors.exactly10Characters"
362
+ },
363
+ {
364
+ id: "nameCharacters",
365
+ type: "rule",
366
+ since: "1.0",
367
+ message: "verification.errors.nameCharacters"
368
+ },
369
+ {
370
+ id: "notFuture",
371
+ type: "rule",
372
+ since: "1.0",
373
+ message: "verification.errors.futureDate"
374
+ },
375
+ {
376
+ id: "digitCount",
377
+ type: "rule",
378
+ since: "1.0",
379
+ params: {
380
+ lengths: "integer[]?",
381
+ min: "integer?",
382
+ max: "integer?"
383
+ }
384
+ },
385
+ {
386
+ id: "allowedCharacters",
387
+ type: "rule",
388
+ since: "1.0",
389
+ message: "verification.errors.invalidCharacters",
390
+ params: {
391
+ classes: "string[]",
392
+ extra: "string?"
393
+ }
394
+ },
395
+ {
396
+ id: "charTemplate",
397
+ type: "rule",
398
+ since: "1.0",
399
+ message: "verification.errors.invalidFormat",
400
+ params: {
401
+ templates: "string[]",
402
+ ignoreCase: "boolean?"
403
+ }
404
+ },
405
+ {
406
+ id: "numericRange",
407
+ type: "rule",
408
+ since: "1.0",
409
+ message: "verification.errors.numberBetween",
410
+ params: {
411
+ min: "integer",
412
+ max: "integer"
413
+ }
414
+ },
415
+ {
416
+ id: "rut",
417
+ type: "rule",
418
+ since: "1.0",
419
+ message: "verification.errors.invalidIdNumber"
420
+ },
421
+ {
422
+ id: "esDni",
423
+ type: "rule",
424
+ since: "1.0",
425
+ message: "verification.errors.invalidIdNumber"
426
+ },
427
+ {
428
+ id: "fiPersonalIdentityCode",
429
+ type: "rule",
430
+ since: "1.0",
431
+ message: "verification.errors.invalidIdNumber"
432
+ },
433
+ {
434
+ id: "inDrivingLicenseNumber",
435
+ type: "rule",
436
+ since: "1.0",
437
+ message: "verification.errors.invalidIdNumber"
438
+ },
439
+ {
440
+ id: "curp",
441
+ type: "rule",
442
+ since: "1.1",
443
+ message: "verification.errors.invalidIdNumber"
444
+ },
445
+ {
446
+ id: "phoneDigits",
447
+ type: "rule",
448
+ since: "1.0",
449
+ message: "verification.errors.phoneInvalid",
450
+ params: {
451
+ min: "integer",
452
+ max: "integer"
453
+ }
454
+ },
455
+ {
456
+ id: "oneOfRequired",
457
+ type: "groupRule",
458
+ since: "1.0"
459
+ },
460
+ {
461
+ id: "rulesByOption",
462
+ type: "groupRule",
463
+ since: "1.0",
464
+ params: {
465
+ selector: "string",
466
+ target: "string",
467
+ cases: "object"
468
+ }
469
+ },
470
+ {
471
+ id: "uppercase",
472
+ type: "transform",
473
+ since: "1.0"
474
+ },
475
+ {
476
+ id: "stripSeparators",
477
+ type: "transform",
478
+ since: "1.0",
479
+ params: { chars: "string?" }
480
+ },
481
+ {
482
+ id: "e164",
483
+ type: "transform",
484
+ since: "1.0"
485
+ },
486
+ {
487
+ id: "nationalNumber",
488
+ type: "transform",
489
+ since: "1.0"
490
+ },
491
+ {
492
+ id: "e164NoPlus",
493
+ type: "transform",
494
+ since: "1.0"
495
+ },
496
+ {
497
+ id: "digitGroups",
498
+ type: "transform",
499
+ since: "1.0",
500
+ params: {
501
+ groups: "integer[]",
502
+ separator: "string"
503
+ }
504
+ },
505
+ {
506
+ id: "US_STATES",
507
+ type: "optionList",
508
+ since: "1.0",
509
+ values: [
510
+ "AL",
511
+ "AK",
512
+ "AZ",
513
+ "AR",
514
+ "CA",
515
+ "CO",
516
+ "CT",
517
+ "DE",
518
+ "FL",
519
+ "GA",
520
+ "HI",
521
+ "ID",
522
+ "IL",
523
+ "IN",
524
+ "IA",
525
+ "KS",
526
+ "KY",
527
+ "LA",
528
+ "ME",
529
+ "MD",
530
+ "MA",
531
+ "MI",
532
+ "MN",
533
+ "MS",
534
+ "MO",
535
+ "MT",
536
+ "NE",
537
+ "NV",
538
+ "NH",
539
+ "NJ",
540
+ "NM",
541
+ "NY",
542
+ "NC",
543
+ "ND",
544
+ "OH",
545
+ "OK",
546
+ "OR",
547
+ "PA",
548
+ "RI",
549
+ "SC",
550
+ "SD",
551
+ "TN",
552
+ "TX",
553
+ "UT",
554
+ "VT",
555
+ "VA",
556
+ "WA",
557
+ "WV",
558
+ "WI",
559
+ "WY"
560
+ ]
561
+ },
562
+ {
563
+ id: "CA_PROVINCES",
564
+ type: "optionList",
565
+ since: "1.0",
566
+ values: [
567
+ "AB",
568
+ "BC",
569
+ "MB",
570
+ "NB",
571
+ "NL",
572
+ "NS",
573
+ "ON",
574
+ "PE",
575
+ "QC",
576
+ "SK",
577
+ "NT",
578
+ "NU",
579
+ "YT"
580
+ ]
581
+ },
582
+ {
583
+ id: "BR_STATES",
584
+ type: "optionList",
585
+ since: "1.0",
586
+ values: [
587
+ "AC",
588
+ "AL",
589
+ "AP",
590
+ "AM",
591
+ "BA",
592
+ "CE",
593
+ "DF",
594
+ "ES",
595
+ "GO",
596
+ "MA",
597
+ "MT",
598
+ "MS",
599
+ "MG",
600
+ "PA",
601
+ "PB",
602
+ "PR",
603
+ "PE",
604
+ "PI",
605
+ "RJ",
606
+ "RN",
607
+ "RS",
608
+ "RO",
609
+ "RR",
610
+ "SC",
611
+ "SP",
612
+ "SE",
613
+ "TO"
614
+ ]
615
+ },
616
+ {
617
+ id: "IN_STATES",
618
+ type: "optionList",
619
+ since: "1.0",
620
+ values: [
621
+ "AN",
622
+ "AP",
623
+ "AR",
624
+ "AS",
625
+ "BR",
626
+ "CH",
627
+ "CT",
628
+ "DH",
629
+ "DL",
630
+ "GA",
631
+ "GJ",
632
+ "HR",
633
+ "HP",
634
+ "JK",
635
+ "JH",
636
+ "KA",
637
+ "KL",
638
+ "LA",
639
+ "LD",
640
+ "MP",
641
+ "MH",
642
+ "MN",
643
+ "ML",
644
+ "MZ",
645
+ "NL",
646
+ "OR",
647
+ "PY",
648
+ "PB",
649
+ "RJ",
650
+ "SK",
651
+ "TN",
652
+ "TG",
653
+ "TR",
654
+ "UP",
655
+ "UK",
656
+ "WB"
657
+ ]
658
+ },
659
+ {
660
+ id: "PH_ID_TYPES",
661
+ type: "optionList",
662
+ since: "1.0",
663
+ values: [
664
+ "TIN",
665
+ "SSS",
666
+ "GSIS"
667
+ ]
668
+ },
669
+ {
670
+ id: "riskAddon",
671
+ type: "condition",
672
+ since: "1.0"
673
+ },
674
+ {
675
+ id: "fieldFilled",
676
+ type: "condition",
677
+ since: "1.0"
678
+ },
679
+ {
680
+ id: "name",
681
+ type: "group",
682
+ modules: ["ekyc"],
683
+ enabledBy: ["checkName"],
684
+ sourceKey: "nameSource",
685
+ displayModeKey: "nameDisplayMode",
686
+ since: "1.0"
687
+ },
688
+ {
689
+ id: "dateOfBirth",
690
+ type: "group",
691
+ modules: ["ekyc"],
692
+ enabledBy: ["checkDob"],
693
+ sourceKey: "dobSource",
694
+ displayModeKey: "dobDisplayMode",
695
+ since: "1.0"
696
+ },
697
+ {
698
+ id: "email",
699
+ type: "group",
700
+ modules: ["ekyc"],
701
+ enabledBy: ["checkEmail", "riskAddon:emailCheck"],
702
+ sourceKey: "emailSource",
703
+ displayModeKey: "emailDisplayMode",
704
+ since: "1.0"
705
+ },
706
+ {
707
+ id: "phone",
708
+ type: "group",
709
+ modules: ["ekyc"],
710
+ enabledBy: [
711
+ "checkPhone",
712
+ "riskAddon:phoneCheck",
713
+ "riskAddon:advancedPhoneCheck",
714
+ "riskAddon:phoneProfile"
715
+ ],
716
+ sourceKey: "phoneSource",
717
+ displayModeKey: "phoneDisplayMode",
718
+ since: "1.0"
719
+ },
720
+ {
721
+ id: "address",
722
+ type: "group",
723
+ modules: ["ekyc", "ekyb"],
724
+ enabledBy: ["checkAddress"],
725
+ sourceKey: "addressSource",
726
+ displayModeKey: "addressDisplayMode",
727
+ since: "1.0"
728
+ },
729
+ {
730
+ id: "ssn",
731
+ type: "group",
732
+ modules: ["ekyc"],
733
+ enabledBy: ["checkSsn"],
734
+ sourceKey: "ssnSource",
735
+ displayModeKey: "ssnDisplayMode",
736
+ since: "1.0"
737
+ },
738
+ {
739
+ id: "last4SSN",
740
+ type: "group",
741
+ modules: ["ekyc"],
742
+ enabledBy: ["checkLast4SSN"],
743
+ sourceKey: "last4SSNSource",
744
+ displayModeKey: "last4SSNDisplayMode",
745
+ since: "1.0"
746
+ },
747
+ {
748
+ id: "idNumber",
749
+ type: "group",
750
+ modules: ["ekyc"],
751
+ enabledBy: ["checkIdNum"],
752
+ sourceKey: "idNumSource",
753
+ displayModeKey: "idNumDisplayMode",
754
+ since: "1.0"
755
+ },
756
+ {
757
+ id: "idNumber1",
758
+ type: "group",
759
+ modules: ["ekyc"],
760
+ enabledBy: ["checkIdNum1"],
761
+ sourceKey: "idNum1Source",
762
+ displayModeKey: "idNum1DisplayMode",
763
+ since: "1.0"
764
+ },
765
+ {
766
+ id: "nationality",
767
+ type: "group",
768
+ modules: ["ekyc"],
769
+ enabledBy: ["checkNationality"],
770
+ sourceKey: "nationalitySource",
771
+ displayModeKey: "nationalityDisplayMode",
772
+ since: "1.0"
773
+ },
774
+ {
775
+ id: "gender",
776
+ type: "group",
777
+ modules: ["ekyc"],
778
+ enabledBy: ["checkGender"],
779
+ sourceKey: "genderSource",
780
+ displayModeKey: "genderDisplayMode",
781
+ since: "1.0"
782
+ },
783
+ {
784
+ id: "panNumber",
785
+ type: "group",
786
+ modules: ["ekyc"],
787
+ enabledBy: ["checkPanNumber"],
788
+ sourceKey: "panNumberSource",
789
+ displayModeKey: "panNumberDisplayMode",
790
+ since: "1.0"
791
+ },
792
+ {
793
+ id: "dlNumber",
794
+ type: "group",
795
+ modules: ["ekyc"],
796
+ enabledBy: ["checkDlNumber"],
797
+ sourceKey: "dlNumberSource",
798
+ displayModeKey: "dlNumberDisplayMode",
799
+ since: "1.0"
800
+ },
801
+ {
802
+ id: "dlState",
803
+ type: "group",
804
+ modules: ["ekyc"],
805
+ enabledBy: ["checkDlState"],
806
+ sourceKey: "dlStateSource",
807
+ displayModeKey: "dlStateDisplayMode",
808
+ since: "1.0"
809
+ },
810
+ {
811
+ id: "dlExpireAt",
812
+ type: "group",
813
+ modules: ["ekyc"],
814
+ enabledBy: ["checkDlExpireAt"],
815
+ sourceKey: "dlExpireAtSource",
816
+ displayModeKey: "dlExpireAtDisplayMode",
817
+ since: "1.0"
818
+ },
819
+ {
820
+ id: "idType",
821
+ type: "group",
822
+ modules: ["ekyc"],
823
+ enabledBy: ["checkIdType"],
824
+ sourceKey: "idTypeSource",
825
+ displayModeKey: "idTypeDisplayMode",
826
+ since: "1.2"
827
+ },
828
+ {
829
+ id: "issueDate",
830
+ type: "group",
831
+ modules: ["ekyc"],
832
+ enabledBy: ["checkIssueDate"],
833
+ sourceKey: "issueDateSource",
834
+ displayModeKey: "issueDateDisplayMode",
835
+ since: "1.2"
836
+ },
837
+ {
838
+ id: "fileNumber",
839
+ type: "group",
840
+ modules: ["ekyc"],
841
+ enabledBy: ["checkFileNumber"],
842
+ sourceKey: "fileNumberSource",
843
+ displayModeKey: "fileNumberDisplayMode",
844
+ since: "1.2"
845
+ },
846
+ {
847
+ id: "businessName",
848
+ type: "group",
849
+ modules: ["ekyb"],
850
+ enabledBy: ["checkBusinessName"],
851
+ since: "1.0"
852
+ },
853
+ {
854
+ id: "taxId",
855
+ type: "group",
856
+ modules: ["ekyb"],
857
+ enabledBy: ["checkTaxId"],
858
+ since: "1.0"
859
+ },
860
+ {
861
+ id: "ubos",
862
+ type: "group",
863
+ modules: ["ekyb"],
864
+ enabledBy: ["checkUniqueBeneficialOwner"],
865
+ since: "1.0"
866
+ },
867
+ {
868
+ id: "editable",
869
+ type: "displayMode",
870
+ since: "1.2"
871
+ },
872
+ {
873
+ id: "readOnly",
874
+ type: "displayMode",
875
+ since: "1.2"
876
+ },
877
+ {
878
+ id: "hidden",
879
+ type: "displayMode",
880
+ since: "1.2"
881
+ },
882
+ {
883
+ id: "userInput",
884
+ type: "prefillOrigin",
885
+ since: "1.2",
886
+ configValues: ["userInput"]
887
+ },
888
+ {
889
+ id: "document",
890
+ type: "prefillOrigin",
891
+ since: "1.2",
892
+ configValues: ["document"]
893
+ },
894
+ {
895
+ id: "poa",
896
+ type: "prefillOrigin",
897
+ since: "1.2",
898
+ configValues: ["poa"]
899
+ },
900
+ {
901
+ id: "phoneModule",
902
+ type: "prefillOrigin",
903
+ since: "1.2",
904
+ configValues: ["phoneModuleInput"],
905
+ riskAddons: ["phoneCheck", "phoneProfile"],
906
+ groups: ["phone"],
907
+ locks: true
908
+ },
909
+ {
910
+ id: "emailModule",
911
+ type: "prefillOrigin",
912
+ since: "1.2",
913
+ configValues: ["emailModuleInput"],
914
+ riskAddons: ["emailCheck"],
915
+ groups: ["email"],
916
+ locks: true
917
+ },
918
+ {
919
+ id: "document.firstName",
920
+ type: "prefillSource",
921
+ origin: "document",
922
+ since: "1.2"
923
+ },
924
+ {
925
+ id: "document.middleName",
926
+ type: "prefillSource",
927
+ origin: "document",
928
+ since: "1.2"
929
+ },
930
+ {
931
+ id: "document.paternalLastName",
932
+ type: "prefillSource",
933
+ origin: "document",
934
+ since: "1.2"
935
+ },
936
+ {
937
+ id: "document.maternalLastName",
938
+ type: "prefillSource",
939
+ origin: "document",
940
+ since: "1.2"
941
+ },
942
+ {
943
+ id: "document.birthDate",
944
+ type: "prefillSource",
945
+ origin: "document",
946
+ since: "1.2",
947
+ kinds: ["date"]
948
+ },
949
+ {
950
+ id: "document.issueDate",
951
+ type: "prefillSource",
952
+ origin: "document",
953
+ since: "1.2",
954
+ kinds: ["date"]
955
+ },
956
+ {
957
+ id: "document.street",
958
+ type: "prefillSource",
959
+ origin: "document",
960
+ since: "1.2"
961
+ },
962
+ {
963
+ id: "document.houseNumber",
964
+ type: "prefillSource",
965
+ origin: "document",
966
+ since: "1.2"
967
+ },
968
+ {
969
+ id: "document.city",
970
+ type: "prefillSource",
971
+ origin: "document",
972
+ since: "1.2"
973
+ },
974
+ {
975
+ id: "document.state",
976
+ type: "prefillSource",
977
+ origin: "document",
978
+ since: "1.2"
979
+ },
980
+ {
981
+ id: "document.postalCode",
982
+ type: "prefillSource",
983
+ origin: "document",
984
+ since: "1.2"
985
+ },
986
+ {
987
+ id: "document.documentNumber",
988
+ type: "prefillSource",
989
+ origin: "document",
990
+ since: "1.2"
991
+ },
992
+ {
993
+ id: "document.personalNumber",
994
+ type: "prefillSource",
995
+ origin: "document",
996
+ since: "1.2"
997
+ },
998
+ {
999
+ id: "document.driversLicenseNumber",
1000
+ type: "prefillSource",
1001
+ origin: "document",
1002
+ since: "1.2"
1003
+ },
1004
+ {
1005
+ id: "document.driversLicenseState",
1006
+ type: "prefillSource",
1007
+ origin: "document",
1008
+ since: "1.2"
1009
+ },
1010
+ {
1011
+ id: "poa.firstName",
1012
+ type: "prefillSource",
1013
+ origin: "poa",
1014
+ since: "1.2"
1015
+ },
1016
+ {
1017
+ id: "poa.lastName",
1018
+ type: "prefillSource",
1019
+ origin: "poa",
1020
+ since: "1.2"
1021
+ },
1022
+ {
1023
+ id: "poa.street",
1024
+ type: "prefillSource",
1025
+ origin: "poa",
1026
+ since: "1.2"
1027
+ },
1028
+ {
1029
+ id: "poa.houseNumber",
1030
+ type: "prefillSource",
1031
+ origin: "poa",
1032
+ since: "1.2"
1033
+ },
1034
+ {
1035
+ id: "poa.city",
1036
+ type: "prefillSource",
1037
+ origin: "poa",
1038
+ since: "1.2"
1039
+ },
1040
+ {
1041
+ id: "poa.state",
1042
+ type: "prefillSource",
1043
+ origin: "poa",
1044
+ since: "1.2"
1045
+ },
1046
+ {
1047
+ id: "poa.postalCode",
1048
+ type: "prefillSource",
1049
+ origin: "poa",
1050
+ since: "1.2"
1051
+ },
1052
+ {
1053
+ id: "phoneModule.phone",
1054
+ type: "prefillSource",
1055
+ origin: "phoneModule",
1056
+ since: "1.2",
1057
+ kinds: ["phone"]
1058
+ },
1059
+ {
1060
+ id: "emailModule.email",
1061
+ type: "prefillSource",
1062
+ origin: "emailModule",
1063
+ since: "1.2"
1064
+ }
1065
+ ]
1066
+ };
1067
+ //#endregion
1068
+ //#region src/modules/ekyc/ekycConsts.ts
1069
+ const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER", "US_CREDIT_TELCO"];
1070
+ const STATE_CODE_HINTS = {
1071
+ US: "CA, NY",
1072
+ CA: "ON, QC",
1073
+ BR: "RJ, SP",
1074
+ MX: "JAL, NLE",
1075
+ GB: "ENG, SCT",
1076
+ ES: "MD, CT",
1077
+ AR: "B, C, K"
1078
+ };
1079
+ const ADDRESS_FIELDS = [
1080
+ "address",
1081
+ "houseNo",
1082
+ "street",
1083
+ "apartment",
1084
+ "address2",
1085
+ "city",
1086
+ "state",
1087
+ "postalCode"
1088
+ ];
1089
+ const DRIVERS_LICENSE_FIELDS = [
1090
+ "dlNumber",
1091
+ "dlState",
1092
+ "dlExpireAt"
1093
+ ];
1094
+ const DOB_OPTIONAL_SOURCES = [
1095
+ "US_TELCO_1",
1096
+ "US_CREDIT_TELCO",
1097
+ "UK_VOTER_REGISTER"
1098
+ ];
1099
+ const ADDRESS_OPTIONAL_SOURCES = [
1100
+ "US_TELCO_1",
1101
+ "US_CREDIT_TELCO",
1102
+ "UK_VOTER_REGISTER"
1103
+ ];
1104
+ const STREET_OPTIONAL_SOURCES = ["US_CREDIT_TELCO"];
1105
+ const SSN_OPTIONAL_SOURCES = ["US_CREDIT_TELCO"];
1106
+ const LAST4SSN_OPTIONAL_SOURCES = ["US_TELCO_1"];
1107
+ const DRIVERS_LICENSE_OPTIONAL_SOURCES = ["US_TELCO_1"];
1108
+ const EMAIL_SOURCES = ["US_TELCO_1", "US_CREDIT_BUREAU_1"];
1109
+ const EMAIL_OPTIONAL_SOURCES = ["US_TELCO_1"];
1110
+ const PHONE_OPTIONAL_SOURCES = [
1111
+ "CA_RES_CREDIT",
1112
+ "UK_VOTER_REGISTER",
1113
+ "US_CREDIT_TELCO"
1114
+ ];
1115
+ /**
1116
+ * Groups of fields where at least one member must be filled. Members are
1117
+ * individually optional; the group rule enforces the "one of" requirement.
1118
+ */
1119
+ const ONE_OF_REQUIRED_GROUPS = { US_CREDIT_TELCO: [["dateOfBirth", "ssn"]] };
1120
+ const NAME_SOURCES = [
1121
+ "US_TELCO_1",
1122
+ "US_TELCO_2",
1123
+ "US_TELCO_4",
1124
+ "US_ADDRESS_1",
1125
+ "US_CREDIT_BUREAU_1",
1126
+ "US_CREDIT_TELCO",
1127
+ "US_DRIVERS_LICENSE_1",
1128
+ "CA_RES_CREDIT",
1129
+ "SERPRO",
1130
+ "SE_1",
1131
+ "GR_1",
1132
+ "GT_1",
1133
+ "AR_1",
1134
+ "ES_1",
1135
+ "UK_VOTER_REGISTER",
1136
+ "CL_1",
1137
+ "INDIA_PAN"
1138
+ ];
1139
+ const HOUSE_NO_SOURCES = [
1140
+ "SERPRO",
1141
+ "BR_GOVT_1",
1142
+ "GR_1",
1143
+ "ES_1"
1144
+ ];
1145
+ const STREET_SOURCES = [
1146
+ "US_TELCO_1",
1147
+ "US_TELCO_2",
1148
+ "US_CREDIT_BUREAU_1",
1149
+ "US_CREDIT_TELCO",
1150
+ "CA_RES_CREDIT",
1151
+ "SERPRO",
1152
+ "BR_GOVT_1",
1153
+ "AR_1",
1154
+ "ES_1",
1155
+ "UK_VOTER_REGISTER"
1156
+ ];
1157
+ const CITY_SOURCES = [
1158
+ "US_TELCO_1",
1159
+ "US_TELCO_2",
1160
+ "US_CREDIT_BUREAU_1",
1161
+ "US_CREDIT_TELCO",
1162
+ "CA_RES_CREDIT",
1163
+ "SERPRO",
1164
+ "BR_GOVT_1",
1165
+ "AR_1",
1166
+ "ES_1",
1167
+ "UK_VOTER_REGISTER"
1168
+ ];
1169
+ const ADDRESS_STATE_SOURCES = [
1170
+ "US_TELCO_1",
1171
+ "US_TELCO_2",
1172
+ "US_CREDIT_BUREAU_1",
1173
+ "US_CREDIT_TELCO",
1174
+ "US_DRIVERS_LICENSE_1",
1175
+ "CA_RES_CREDIT",
1176
+ "SERPRO",
1177
+ "BR_GOVT_1",
1178
+ "AR_1",
1179
+ "ES_1"
1180
+ ];
1181
+ const POSTAL_CODE_SOURCES = [
1182
+ "US_TELCO_1",
1183
+ "US_TELCO_2",
1184
+ "US_CREDIT_BUREAU_1",
1185
+ "US_CREDIT_TELCO",
1186
+ "CA_RES_CREDIT",
1187
+ "SERPRO",
1188
+ "BR_GOVT_1",
1189
+ "AR_1",
1190
+ "ES_1",
1191
+ "UK_VOTER_REGISTER"
1192
+ ];
1193
+ const APARTMENT_SOURCES = ["US_CREDIT_TELCO"];
1194
+ const TAX_ID_SOURCES = [
1195
+ "GT_1",
1196
+ "ES_1",
1197
+ "CL_1"
1198
+ ];
1199
+ const MIDDLE_NAME_SOURCES = [
1200
+ "US_CREDIT_BUREAU_1",
1201
+ "CA_RES_CREDIT",
1202
+ "UK_VOTER_REGISTER",
1203
+ "GR_1",
1204
+ "AR_1",
1205
+ "ES_1",
1206
+ "CL_1",
1207
+ "INDIA_PAN"
1208
+ ];
1209
+ const PHONE_RISK_ADDONS = [
1210
+ "phoneCheck",
1211
+ "advancedPhoneCheck",
1212
+ "phoneProfile"
1213
+ ];
1214
+ const EMAIL_RISK_ADDONS = ["emailCheck"];
1215
+ /** Risk addons that replace a `RISK_ADDONS_ONLY` source with their own. */
1216
+ const RISK_ADDON_SOURCE_OVERRIDES = { phoneProfile: "PHONE_PROFILE" };
1217
+ /** Sources whose submit payload must not carry `countryCode`. */
1218
+ const COUNTRY_CODE_OMITTED_SOURCES = ["PHONE_PROFILE"];
1219
+ //#endregion
1220
+ //#region src/modules/ekyc/ekycUtils.ts
1221
+ function mapToEKYCvalue(field) {
1222
+ switch (field) {
1223
+ case "poa": return "poa_document";
1224
+ case "document": return "document_scan";
1225
+ case "phoneModuleInput": return "phone_module_input";
1226
+ case "emailModuleInput": return "email_module_input";
1227
+ default: return "user_input";
1228
+ }
1229
+ }
1230
+ function hasRiskAddon(riskAddons, allowedAddons) {
1231
+ return allowedAddons.some((addon) => riskAddons?.includes(addon));
1232
+ }
1233
+ /**
1234
+ * Resolves the source sent to the backend. A `RISK_ADDONS_ONLY` source is
1235
+ * replaced by the first configured addon that defines its own source
1236
+ * (e.g. `phoneProfile` → `PHONE_PROFILE`); any other source is kept.
1237
+ */
1238
+ function resolveEkycSource(source, riskAddons) {
1239
+ if (source !== "RISK_ADDONS_ONLY") return source;
1240
+ return riskAddons?.map((addon) => RISK_ADDON_SOURCE_OVERRIDES[addon]).find(Boolean) ?? source;
1241
+ }
1242
+ /** Maps raw backend module config to a field-source mapping */
1243
+ function getEKYCFields(config) {
1244
+ const hasPhoneRiskAddon = hasRiskAddon(config.riskAddons, PHONE_RISK_ADDONS);
1245
+ const hasEmailRiskAddon = hasRiskAddon(config.riskAddons, EMAIL_RISK_ADDONS);
1246
+ const shouldRenderEmail = config.checkEmail || hasEmailRiskAddon;
1247
+ const shouldRenderPhone = config.checkPhone || hasPhoneRiskAddon;
1248
+ return {
1249
+ name: config.checkName ? mapToEKYCvalue(config.nameSource ?? "") : false,
1250
+ SSN: config.checkSsn ? mapToEKYCvalue(config.ssnSource ?? "") : false,
1251
+ address: config.checkAddress ? mapToEKYCvalue(config.addressSource ?? "") : false,
1252
+ "date of birth": config.checkDob ? mapToEKYCvalue(config.dobSource ?? "") : false,
1253
+ email: shouldRenderEmail ? mapToEKYCvalue(config.emailSource ?? "") : false,
1254
+ phone: shouldRenderPhone ? mapToEKYCvalue(config.phoneSource ?? "") : false,
1255
+ nationality: config.checkNationality ? mapToEKYCvalue(config.nationalitySource ?? "") : false,
1256
+ dlNumber: config.checkDlNumber ? mapToEKYCvalue(config.dlNumberSource ?? "") : false,
1257
+ dlState: config.checkDlState ? mapToEKYCvalue(config.dlStateSource ?? "") : false,
1258
+ dlExpireAt: config.checkDlExpireAt ? mapToEKYCvalue(config.dlExpireAtSource ?? "") : false,
1259
+ last4SSN: config.checkLast4SSN ? mapToEKYCvalue(config.last4SSNSource ?? "") : false,
1260
+ idNum: config.checkIdNum ? mapToEKYCvalue(config.idNumSource ?? "") : false,
1261
+ idNum1: config.checkIdNum1 ? mapToEKYCvalue(config.idNum1Source ?? "") : false,
1262
+ gender: config.checkGender ? mapToEKYCvalue(config.genderSource ?? "") : false,
1263
+ panNumber: config.checkPanNumber ? mapToEKYCvalue(config.panNumberSource ?? "") : false,
1264
+ idType: config.checkIdType ? mapToEKYCvalue(config.idTypeSource ?? "") : false,
1265
+ issueDate: config.checkIssueDate ? mapToEKYCvalue(config.issueDateSource ?? "") : false,
1266
+ fileNumber: config.checkFileNumber ? mapToEKYCvalue(config.fileNumberSource ?? "") : false
1267
+ };
1268
+ }
1269
+ /** eKYC group id → the key `getEKYCFields` sets in `EkycVerificationFields`. */
1270
+ const EKYC_GROUP_KEYS = {
1271
+ name: "name",
1272
+ dateOfBirth: "date of birth",
1273
+ email: "email",
1274
+ phone: "phone",
1275
+ address: "address",
1276
+ ssn: "SSN",
1277
+ last4SSN: "last4SSN",
1278
+ idNumber: "idNum",
1279
+ idNumber1: "idNum1",
1280
+ nationality: "nationality",
1281
+ gender: "gender",
1282
+ panNumber: "panNumber",
1283
+ dlNumber: "dlNumber",
1284
+ dlState: "dlState",
1285
+ dlExpireAt: "dlExpireAt",
1286
+ idType: "idType",
1287
+ issueDate: "issueDate",
1288
+ fileNumber: "fileNumber"
1289
+ };
1290
+ /**
1291
+ * Each verification field's display-mode key in module configuration, from
1292
+ * the vocabulary's `displayModeKey` on its group.
1293
+ */
1294
+ const DISPLAY_MODE_KEYS = new Map(VOCABULARY.entries.flatMap((entry) => {
1295
+ const field = EKYC_GROUP_KEYS[entry.id];
1296
+ return entry.type === "group" && field && entry.displayModeKey ? [[field, entry.displayModeKey]] : [];
1297
+ }));
1298
+ const DISPLAY_MODES = new Set(VOCABULARY.entries.filter((entry) => entry.type === "displayMode").map((entry) => entry.id));
1299
+ /** Maps raw backend module config to each field's configured display mode. */
1300
+ function getEKYCDisplayModes(config) {
1301
+ const modes = {};
1302
+ const values = config;
1303
+ for (const [field, key] of DISPLAY_MODE_KEYS) {
1304
+ const mode = values[key];
1305
+ if (typeof mode === "string" && DISPLAY_MODES.has(mode)) modes[field] = mode;
1306
+ }
1307
+ return modes;
1308
+ }
1309
+ function indexCountries(entries) {
1310
+ const countries = /* @__PURE__ */ new Map();
1311
+ const ambiguous = /* @__PURE__ */ new Set();
1312
+ for (const entry of entries) {
1313
+ if (!entry.country) continue;
1314
+ for (const id of [entry.source, ...entry.aliases ?? []]) {
1315
+ if (!id || ambiguous.has(id)) continue;
1316
+ const known = countries.get(id);
1317
+ if (known === void 0) countries.set(id, entry.country);
1318
+ else if (known !== entry.country) {
1319
+ countries.delete(id);
1320
+ ambiguous.add(id);
1321
+ }
1322
+ }
1323
+ }
1324
+ return countries;
1325
+ }
1326
+ const INDEXED_COUNTRIES = indexCountries(EKYC_INDEX);
1327
+ /** Maps a verification source string to a country code */
1328
+ function getEKYCCountry(source) {
1329
+ return INDEXED_COUNTRIES.get(source) ?? legacyEkycCountry(source);
1330
+ }
1331
+ /** Today's source → country switch, the fallback when the index has no entry. */
1332
+ function legacyEkycCountry(source) {
1333
+ switch (source) {
1334
+ case "BR_GOVT_1":
1335
+ case "SERPRO": return "BR";
1336
+ case "MX_CONSUMER_1": return "MX";
1337
+ case "UK_CREDIT_BUREAU_1":
1338
+ case "UK_VOTER_REGISTER": return "GB";
1339
+ case "ES_1": return "ES";
1340
+ case "CL_1": return "CL";
1341
+ case "AR_1": return "AR";
1342
+ case "GR_1": return "GR";
1343
+ case "GT_1": return "GT";
1344
+ case "CO_1": return "CO";
1345
+ case "CR_1": return "CR";
1346
+ case "CA_RES_CREDIT": return "CA";
1347
+ case "INDIA_PAN": return "IN";
1348
+ default: return "US";
1349
+ }
1350
+ }
1351
+ /**
1352
+ * Returns true if the input carries any raw-shape signal — i.e. a non-empty
1353
+ * `source` or at least one `check*` flag set. Used by `toEkycConfig` to
1354
+ * distinguish a raw backend config from an unconfigured / empty input.
1355
+ */
1356
+ function hasRawSignal(c) {
1357
+ return Boolean(c.source || c.checkName || c.checkEmail || c.checkAddress || c.checkPhone || c.checkSsn || c.checkDob || c.checkNationality || c.checkDlNumber || c.checkDlState || c.checkDlExpireAt || c.checkLast4SSN || c.checkIdNum || c.checkIdNum1 || c.checkGender || c.checkPanNumber || c.checkIdType || c.checkIssueDate || c.checkFileNumber || c.riskAddons?.length);
1358
+ }
1359
+ /**
1360
+ * Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
1361
+ *
1362
+ * Accepts either:
1363
+ * - A manager-ready `EkycConfig` (with `flowId` or `verificationFields`) →
1364
+ * returned unchanged.
1365
+ * - A raw backend `EkycModuleConfig` (with `source` + `check*` / `*Source`
1366
+ * fields, as embedded in a workflow node or returned by
1367
+ * `/omni/flow/onboarding/configuration`) → derived into an `EkycConfig`.
1368
+ * - A config with no recognizable signal (e.g. `{}`) → returned unchanged,
1369
+ * so the machine still lands in `misconfigured` instead of a silent
1370
+ * empty form.
1371
+ *
1372
+ * Idempotent: `toEkycConfig(toEkycConfig(x))` equals `toEkycConfig(x)`.
1373
+ */
1374
+ function toEkycConfig(config) {
1375
+ if (config.flowId || config.verificationFields) return config;
1376
+ if (!hasRawSignal(config)) return config;
1377
+ const source = resolveEkycSource(config.source ?? "", config.riskAddons);
1378
+ const displayModes = getEKYCDisplayModes(config);
1379
+ return {
1380
+ verificationFields: getEKYCFields(config),
1381
+ source,
1382
+ fieldsCountry: getEKYCCountry(source),
1383
+ enablePhoneRisk: config.enablePhoneRisk,
1384
+ ...Object.keys(displayModes).length > 0 && { displayModes }
1385
+ };
1386
+ }
1387
+ /** Determines if a field is optional given the current config source */
1388
+ function isFieldOptional(fieldName, configSource) {
1389
+ if (fieldName === "middleName") return true;
1390
+ if (fieldName === "dateOfBirth") return DOB_OPTIONAL_SOURCES.includes(configSource);
1391
+ if (fieldName === "street") return STREET_OPTIONAL_SOURCES.includes(configSource);
1392
+ if (ADDRESS_FIELDS.includes(fieldName)) return ADDRESS_OPTIONAL_SOURCES.includes(configSource);
1393
+ if (fieldName === "ssn") return SSN_OPTIONAL_SOURCES.includes(configSource);
1394
+ if (fieldName === "last4SSN") return LAST4SSN_OPTIONAL_SOURCES.includes(configSource);
1395
+ if (DRIVERS_LICENSE_FIELDS.includes(fieldName)) return DRIVERS_LICENSE_OPTIONAL_SOURCES.includes(configSource);
1396
+ if (fieldName === "email") return EMAIL_OPTIONAL_SOURCES.includes(configSource);
1397
+ if (fieldName === "phone") return PHONE_OPTIONAL_SOURCES.includes(configSource);
1398
+ return false;
1399
+ }
1400
+ //#endregion
1401
+ export { VOCABULARY as C, TAX_ID_SOURCES as S, NAME_SOURCES as _, isFieldOptional as a, STATE_CODE_HINTS as b, toEkycConfig as c, CITY_SOURCES as d, COUNTRY_CODE_OMITTED_SOURCES as f, MIDDLE_NAME_SOURCES as g, HOUSE_NO_SOURCES as h, getEKYCFields as i, ADDRESS_STATE_SOURCES as l, EMAIL_SOURCES as m, getEKYCCountry as n, mapToEKYCvalue as o, COUNTRY_SELECTOR_DISABLED_SOURCES as p, getEKYCDisplayModes as r, resolveEkycSource as s, EKYC_GROUP_KEYS as t, APARTMENT_SOURCES as u, ONE_OF_REQUIRED_GROUPS as v, STREET_SOURCES as x, POSTAL_CODE_SOURCES as y };