@incodetech/core 2.4.1 → 2.5.0-agentic.1

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 (340) hide show
  1. package/dist/Actor-DqjOqDfU.d.ts +1 -0
  2. package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-CPdofn7R.d.ts} +3 -5
  3. package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
  4. package/dist/{multipartRecordingService-CLwrF5wD.esm.js → CameraCompositor-C7N1N61V.esm.js} +61 -744
  5. package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
  6. package/dist/{FaceDetectionProvider-J_-1Cwck.esm.js → FaceDetectionProvider-Cy2EAL0i.esm.js} +38 -66
  7. package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
  8. package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
  9. package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-BRAZQtkM.d.ts} +4 -3
  10. package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-CLWIYHB4.d.ts} +35 -7
  11. package/dist/Manager-BvXAwDv9.esm.js +125 -0
  12. package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
  13. package/dist/{MotionSensorProvider-DYxh8TjR.esm.js → MotionSensorProvider-BAGydZPH.esm.js} +20 -0
  14. package/dist/MultipartRecordingProvider-BtMQZEbg.esm.js +151 -0
  15. package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
  16. package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-BqaHTJF0.d.ts} +36 -5
  17. package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
  18. package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
  19. package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-C4x5gc1c.esm.js} +135 -25
  20. package/dist/WorkerEncoderRecordingProvider-BO7urYwT.esm.js +80 -0
  21. package/dist/addressSearch-DBJeg_g3.esm.js +301 -0
  22. package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-CxZyPRyh.esm.js} +4 -2
  23. package/dist/ae-signature.d.ts +2 -2
  24. package/dist/ae-signature.esm.js +1 -1
  25. package/dist/allowedCharacters-Bnir--CN.esm.js +17 -0
  26. package/dist/antifraud.d.ts +1 -1
  27. package/dist/antifraud.esm.js +2 -2
  28. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  29. package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-DRMBLSh7.esm.js} +5 -3
  30. package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-Bi0m60oV.esm.js} +4 -6
  31. package/dist/{api-Cz90EHyu.esm.js → api-B58edv6M.esm.js} +13 -7
  32. package/dist/{apiError-9Yi8xMeB.esm.js → apiError-B9-B3cMq.esm.js} +1 -1
  33. package/dist/attemptCarry-CxiYlUAO.esm.js +45 -0
  34. package/dist/authentication.d.ts +3 -3
  35. package/dist/authentication.esm.js +2 -2
  36. package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-CkD0JR7Q.d.ts} +2 -2
  37. package/dist/{authenticationManager-pKQS4fHT.esm.js → authenticationManager-DNWtc0eq.esm.js} +7 -6
  38. package/dist/{authenticationStateMachine-D_DygKtQ.esm.js → authenticationStateMachine-CJ9i4Al-.esm.js} +50 -18
  39. package/dist/avatar.d.ts +1 -1
  40. package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
  41. package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-6qVHvj76.esm.js} +12 -107
  42. package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-B4Dwja1e.esm.js} +161 -150
  43. package/dist/calendarDate-D2zWfUlA.esm.js +35 -0
  44. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  45. package/dist/camera-9yYDUOsO.d.ts +5 -0
  46. package/dist/{camera-sIa9ceW2.esm.js → camera-CJKApt0x.esm.js} +19 -20
  47. package/dist/camera.d.ts +9 -5
  48. package/dist/camera.esm.js +1 -1
  49. package/dist/certificate-issuance.d.ts +1 -1
  50. package/dist/certificate-issuance.esm.js +2 -2
  51. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  52. package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-Ctj6AJC7.esm.js} +5 -3
  53. package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-DDqN9kvL.esm.js} +4 -4
  54. package/dist/cnpj-CVq3vL39.esm.js +71 -0
  55. package/dist/cnpj-D5cxwIe-.esm.js +9 -0
  56. package/dist/connectivity-BCuEoQ-n.esm.js +114 -0
  57. package/dist/consent.d.ts +1 -1
  58. package/dist/consent.esm.js +2 -2
  59. package/dist/{consentManager-Ca8FHlC4.d.ts → consentManager-B0YKqYtZ.d.ts} +20 -12
  60. package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-CyoeiABc.esm.js} +7 -4
  61. package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-BTUrAslr.esm.js} +25 -15
  62. package/dist/cpf-DDXMTLYr.esm.js +37 -0
  63. package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-Ct9QrQ66.d.ts} +1 -1
  64. package/dist/cross-document-data-match.d.ts +1 -1
  65. package/dist/cross-document-data-match.esm.js +1 -1
  66. package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-cmQmp7Bi.esm.js} +6 -5
  67. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  68. package/dist/curp-DZGvefg3.esm.js +14 -0
  69. package/dist/curp-validation.d.ts +1 -1
  70. package/dist/curp-validation.esm.js +2 -2
  71. package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-EW44fVpH.esm.js} +6 -3
  72. package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-HOidAKvT.d.ts} +4 -4
  73. package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-BFkt90Zs.esm.js} +41 -34
  74. package/dist/custom-fields.d.ts +1 -1
  75. package/dist/custom-fields.esm.js +1 -1
  76. package/dist/custom-watchlist.d.ts +1 -1
  77. package/dist/custom-watchlist.esm.js +2 -2
  78. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  79. package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-DPMBJrcH.esm.js} +15 -17
  80. package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-DiYpPjZx.esm.js} +5 -3
  81. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  82. package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-D7VxQggF.esm.js} +4 -6
  83. package/dist/deepsightCaptureConfig-BxD3mSac.esm.js +70 -0
  84. package/dist/{deepsightService-C3DVBOZd.esm.js → deepsightLoader-KYZP8_x-.esm.js} +41 -74
  85. package/dist/definitionSource-B9WTvQb9.esm.js +30 -0
  86. package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-BGQRIA2u.esm.js} +278 -44
  87. package/dist/device.d.ts +3 -3
  88. package/dist/device.esm.js +16 -16
  89. package/dist/document-capture.d.ts +3 -3
  90. package/dist/document-capture.esm.js +2 -2
  91. package/dist/document-signature.d.ts +123 -0
  92. package/dist/document-signature.esm.js +149 -0
  93. package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-SRG6YEMh.esm.js} +30 -20
  94. package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +42 -8
  95. package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-Bh0uyfGq.esm.js} +110 -63
  96. package/dist/documentSignatureStateMachine-CLljjltG.esm.js +219 -0
  97. package/dist/dynamic-forms.d.ts +2 -2
  98. package/dist/dynamic-forms.esm.js +2 -2
  99. package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-C45pTncO.d.ts} +4 -4
  100. package/dist/{dynamicFormsManager-DK_oc5Oy.esm.js → dynamicFormsManager-CnU2hRvl.esm.js} +5 -3
  101. package/dist/{dynamicFormsStateMachine-CGlIAWZ6.esm.js → dynamicFormsStateMachine-huYmjamB.esm.js} +12 -13
  102. package/dist/ekyb.d.ts +5 -5
  103. package/dist/ekyb.esm.js +3 -3
  104. package/dist/{ekybManager-BLgkiWXw.esm.js → ekybManager-CaEErq39.esm.js} +5 -3
  105. package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-Cjk8pQX0.d.ts} +5 -5
  106. package/dist/ekybStateMachine-BIU8KIMv.esm.js +2173 -0
  107. package/dist/ekybUtils-Dl0MU-ib.esm.js +172 -0
  108. package/dist/ekyc-prefill.d.ts +17 -0
  109. package/dist/ekyc-prefill.esm.js +3 -0
  110. package/dist/ekyc.d.ts +4 -3
  111. package/dist/ekyc.esm.js +3 -3
  112. package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-D2K8AaMV.esm.js} +39 -16
  113. package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-DusmB-4j.d.ts} +49 -7
  114. package/dist/ekycPrefillManager-BwmPXfhY.d.ts +566 -0
  115. package/dist/ekycPrefillManager-CENQjdNq.esm.js +102 -0
  116. package/dist/ekycPrefillStateMachine-jT3hIt2X.esm.js +1289 -0
  117. package/dist/ekycStateMachine-6EKndBd7.esm.js +9024 -0
  118. package/dist/ekycUtils-C6HZB46m.esm.js +1532 -0
  119. package/dist/electronic-signature.d.ts +1 -1
  120. package/dist/electronic-signature.esm.js +1 -1
  121. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  122. package/dist/{electronicSignatureManager-CjKvJ6E-.esm.js → electronicSignatureManager-wM8WTgzP.esm.js} +12 -18
  123. package/dist/email.d.ts +1 -1
  124. package/dist/email.esm.js +2 -2
  125. package/dist/{emailManager-ButFktRm.esm.js → emailManager-BBdRYLtH.esm.js} +5 -3
  126. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  127. package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-DO7lWYvn.esm.js} +35 -25
  128. package/dist/events-PUWyizJn.esm.js +299 -0
  129. package/dist/events.d.ts +4 -4
  130. package/dist/events.esm.js +2 -1
  131. package/dist/extensibility.d.ts +57 -41
  132. package/dist/extensibility.esm.js +39 -37
  133. package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-cUjJYyXj.esm.js} +4 -1
  134. package/dist/face-match.d.ts +1 -1
  135. package/dist/face-match.esm.js +2 -2
  136. package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-D1EJw36F.d.ts} +101 -77
  137. package/dist/{faceCaptureManagerFactory-BDGhg24q.esm.js → faceCaptureManagerFactory-DbEARG3h.esm.js} +29 -12
  138. package/dist/{faceCaptureSetup-CvGYG4GZ.esm.js → faceCaptureSetup-VaAjMpWX.esm.js} +189 -513
  139. package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-C5b5WtcY.d.ts} +23 -7
  140. package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-nBvS9z0o.esm.js} +5 -3
  141. package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-48O8j_Lx.esm.js} +70 -42
  142. package/dist/{feature-management-D4ne_hXW.esm.js → feature-management-D7oLtULO.esm.js} +37 -22
  143. package/dist/feature-management.esm.js +1 -1
  144. package/dist/field-comparison.d.ts +1 -1
  145. package/dist/field-comparison.esm.js +1 -1
  146. package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-B1ipvtnp.esm.js} +7 -7
  147. package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
  148. package/dist/fiscal-qr.d.ts +1 -1
  149. package/dist/fiscal-qr.esm.js +1 -1
  150. package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
  151. package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-yecjuXV4.esm.js} +9 -8
  152. package/dist/flow-events.d.ts +1 -1
  153. package/dist/flow.d.ts +73 -24
  154. package/dist/flow.esm.js +261 -66
  155. package/dist/{flowCompletionService-Cemwaa5b.esm.js → flowCompletionService-CIjaIpMH.esm.js} +2 -2
  156. package/dist/flowServices-Dqt75TXx.esm.js +951 -0
  157. package/dist/formErrors-lSfh7Y8J.esm.js +512 -0
  158. package/dist/geolocation.d.ts +1 -1
  159. package/dist/geolocation.esm.js +2 -2
  160. package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-CENrvxpK.d.ts} +19 -20
  161. package/dist/{geolocationManager-B0dc5rW9.esm.js → geolocationManager-DHfgXhEs.esm.js} +9 -9
  162. package/dist/{geolocationStateMachine-B3rcoODF.esm.js → geolocationStateMachine-CrEspaN-.esm.js} +16 -14
  163. package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
  164. package/dist/government-validation.d.ts +1 -1
  165. package/dist/government-validation.esm.js +2 -2
  166. package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-0-L21hu6.esm.js} +5 -3
  167. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  168. package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-BFIcq3UB.esm.js} +4 -6
  169. package/dist/home.d.ts +4 -3
  170. package/dist/home.esm.js +4 -2
  171. package/dist/http.esm.js +1 -1
  172. package/dist/id-ocr.d.ts +2 -2
  173. package/dist/id-ocr.esm.js +3 -3
  174. package/dist/id-selfie-flow.d.ts +7 -6
  175. package/dist/id-selfie-flow.esm.js +14 -12
  176. package/dist/id-verification.d.ts +1 -1
  177. package/dist/id-verification.esm.js +2 -2
  178. package/dist/id.d.ts +6 -19
  179. package/dist/id.esm.js +4 -4
  180. package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-CNopPetU.esm.js} +17 -7
  181. package/dist/{idCaptureManager-IouAnrFm.esm.js → idCaptureManager-BPDCAV04.esm.js} +95 -34
  182. package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-CNFBeYgV.d.ts} +105 -16
  183. package/dist/{idCaptureServices-VTKIPSpT.esm.js → idCaptureServices-CWZFmS7l.esm.js} +36 -213
  184. package/dist/{idCaptureStateMachine-_Pn2Xkpb.esm.js → idCaptureStateMachine-Cyt2BvPB.esm.js} +3081 -2510
  185. package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-DflRx-_u.d.ts} +6 -5
  186. package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-bjBLjrEE.esm.js} +5 -3
  187. package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-D5ifJ1B8.esm.js} +20 -16
  188. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  189. package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-C8Ja-vKq.esm.js} +5 -3
  190. package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-BMnfZZli.esm.js} +4 -6
  191. package/dist/identity-reuse.d.ts +2 -2
  192. package/dist/identity-reuse.esm.js +2 -2
  193. package/dist/identity-search.d.ts +97 -0
  194. package/dist/identity-search.esm.js +96 -0
  195. package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-B5BWAleT.esm.js} +9 -4
  196. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
  197. package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-Cuggm1UP.esm.js} +24 -31
  198. package/dist/{index-BKOWUhxG.d.ts → index-BMr3MZEI.d.ts} +93 -22
  199. package/dist/{index-CKQ9QBZP.d.ts → index-BoGlwLGK.d.ts} +2 -2
  200. package/dist/index-DHuAkTe0.d.ts +1 -0
  201. package/dist/index.d.ts +1 -1
  202. package/dist/index.esm.js +1 -1
  203. package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-D2FOfi4O.esm.js} +1 -1
  204. package/dist/kyb-checks.d.ts +3 -0
  205. package/dist/kyb-checks.esm.js +3 -0
  206. package/dist/kybChecksManager-BF2vf0Q2.esm.js +90 -0
  207. package/dist/kybChecksManager-CKDy1mel.d.ts +95 -0
  208. package/dist/kybChecksStateMachine-oBQfgdka.esm.js +713 -0
  209. package/dist/mandatory-consent.d.ts +2 -2
  210. package/dist/mandatory-consent.esm.js +2 -2
  211. package/dist/{mandatoryConsentManager-qYojnZYg.d.ts → mandatoryConsentManager-BcxCesP5.d.ts} +30 -13
  212. package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-FfgHdPYw.esm.js} +7 -4
  213. package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-CXuYC3qR.esm.js} +35 -19
  214. package/dist/mediaRecorderOptions-Di_V9TnZ.esm.js +87 -0
  215. package/dist/multipartRecordingService-CFmOUGQt.esm.js +407 -0
  216. package/dist/numericRange-2e1vw1W0.esm.js +256 -0
  217. package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-CZTCRHT-.esm.js} +1 -1
  218. package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-Vd86JiW9.esm.js} +47 -19
  219. package/dist/phone-number.d.ts +7 -1
  220. package/dist/phone-number.esm.js +15 -2
  221. package/dist/phone.d.ts +1 -1
  222. package/dist/phone.esm.js +2 -2
  223. package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-bA-xw2TP.d.ts} +8 -11
  224. package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-oIMdbeLG.esm.js} +8 -7
  225. package/dist/phoneServices-Dk4j3NhI.esm.js +63 -0
  226. package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-Cu3y7ewi.esm.js} +57 -90
  227. package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
  228. package/dist/{platform-DkcRc9JV.esm.js → platform-GIg4uPWe.esm.js} +15 -4
  229. package/dist/processFaceMatch-CHeI0DEt.esm.js +21 -0
  230. package/dist/qe-signature.d.ts +2 -2
  231. package/dist/qe-signature.esm.js +1 -1
  232. package/dist/recordingService-DK3kjUby.esm.js +404 -0
  233. package/dist/redirect-to-mobile.d.ts +2 -2
  234. package/dist/redirect-to-mobile.esm.js +2 -2
  235. package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Db99n9Yu.d.ts} +7 -4
  236. package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-yYJGE47m.esm.js} +10 -6
  237. package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-g_NbyHrL.esm.js} +82 -46
  238. package/dist/resolveForm-DaaQSVWp.esm.js +146 -0
  239. package/dist/{runChildModule-DSpP41Hl.esm.js → runChildModule-x1rrxjYY.esm.js} +9 -7
  240. package/dist/{sdkVersion-DKHwWEyH.esm.js → sdkVersion-kRh5h82H.esm.js} +1 -1
  241. package/dist/selfie.d.ts +6 -6
  242. package/dist/selfie.esm.js +15 -13
  243. package/dist/{selfieErrorUtils-DoN1KFSQ.esm.js → selfieErrorUtils-B9GfiS9f.esm.js} +1 -1
  244. package/dist/{selfieManager-DtQegA6T.esm.js → selfieManager-CivYjnF5.esm.js} +7 -6
  245. package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-CqDlUy6B.d.ts} +2 -2
  246. package/dist/{selfieStateMachine-CnCwJZuC.esm.js → selfieStateMachine-dLwrXWll.esm.js} +5 -5
  247. package/dist/{session-CNUfjlRc.esm.js → session-DeJ-rd9u.esm.js} +78 -9
  248. package/dist/session.d.ts +85 -9
  249. package/dist/session.esm.js +7 -6
  250. package/dist/{sessionInitializer-JM_glXR2.esm.js → sessionInitializer-uZgyxsrL.esm.js} +442 -208
  251. package/dist/{setup-YPKTUCY5.d.ts → setup-Cr2KCwau.d.ts} +7 -6
  252. package/dist/{setup-C5tfWt6W.esm.js → setup-D0QZHkS8.esm.js} +42 -29
  253. package/dist/signature.d.ts +1 -1
  254. package/dist/signature.esm.js +2 -2
  255. package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-DRUflksL.esm.js} +5 -3
  256. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  257. package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-BQZenxel.esm.js} +5 -7
  258. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  259. package/dist/{stats-BEvexnKC.esm.js → stats-DHu3li6G.esm.js} +1 -1
  260. package/dist/stats.esm.js +1 -1
  261. package/dist/step-up.d.ts +379 -0
  262. package/dist/step-up.esm.js +640 -0
  263. package/dist/{tri-xzRLIIMN.esm.js → tri-D_gHPWrq.esm.js} +137 -8
  264. package/dist/tri.d.ts +2 -2
  265. package/dist/tri.esm-CftnGf9w.esm.js +3115 -0
  266. package/dist/tri.esm.js +2 -2
  267. package/dist/trueSight-CbrZUzLx.esm.js +1 -0
  268. package/dist/{trueSightService-fLmL_cyg.esm.js → trueSightService-BMp8g65B.esm.js} +25 -16
  269. package/dist/trust-graph.d.ts +87 -27
  270. package/dist/trust-graph.esm.js +6 -25
  271. package/dist/trustGraphStateMachine-0Ehwried.esm.js +58 -0
  272. package/dist/types-B9C8W01q.d.ts +34 -0
  273. package/dist/types-BNkzXOXE.d.ts +45 -0
  274. package/dist/{types-B6HsSzpk.d.ts → types-BZsmNYom.d.ts} +77 -9
  275. package/dist/types-BinnzVrL.d.ts +6 -0
  276. package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
  277. package/dist/{types-0L-eFDmr.d.ts → types-BwMpWCVG.d.ts} +6 -2
  278. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  279. package/dist/types-CXTDuzUJ.d.ts +16 -0
  280. package/dist/{types-BEwVKkLJ.d.ts → types-CeEcakO7.d.ts} +7 -1
  281. package/dist/{types-DUnFZ08M.d.ts → types-Cy6Lx3L6.d.ts} +18 -10
  282. package/dist/{types-BAxn7MpY.d.ts → types-D-FEM1rT.d.ts} +156 -58
  283. package/dist/types-D6Q1D1kx.d.ts +33 -0
  284. package/dist/{events-Du2A4-Qr.esm.js → types-DLsivQsu.esm.js} +6 -303
  285. package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
  286. package/dist/types-DWqO7owj.d.ts +58 -0
  287. package/dist/{types-yPH8lAH-.d.ts → types-HHgsFhZn.d.ts} +16 -3
  288. package/dist/{types-Ckir_BEs.d.ts → types-LbccjQYX.d.ts} +3 -2
  289. package/dist/{types-CK8Jbjkp.d.ts → types-PnJXvTkV.d.ts} +1 -1
  290. package/dist/types-g3NuVCT9.d.ts +118 -0
  291. package/dist/types-tOSLpcSa.d.ts +231 -0
  292. package/dist/urlUtils-B2wagB5v.esm.js +39 -0
  293. package/dist/usStates-CwOQ2kAx.esm.js +209 -0
  294. package/dist/video-selfie.d.ts +27 -17
  295. package/dist/video-selfie.esm.js +105 -26
  296. package/dist/{videoSelfieCameraWarmer-BBNKiau1.esm.js → videoSelfieCameraWarmer-BpP0_lDr.esm.js} +47 -29
  297. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  298. package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-CxOc3kSI.d.ts} +24 -9
  299. package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
  300. package/dist/{warmup-BElYWRh7.esm.js → warmup-ClZxXOkg.esm.js} +378 -57
  301. package/dist/{warmup-BO57syF6.d.ts → warmup-SWu5L7cW.d.ts} +19 -2
  302. package/dist/wasm.d.ts +9 -3
  303. package/dist/wasm.esm.js +3 -3
  304. package/dist/wasmDeepsightConfigSync-DukEcrU8.esm.js +77 -0
  305. package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-Bw-P5OG1.esm.js} +1 -1
  306. package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-BLtlzQhv.esm.js} +77 -29
  307. package/dist/watchlist-for-business.d.ts +2 -1
  308. package/dist/watchlist-for-business.esm.js +2 -2
  309. package/dist/watchlist.d.ts +1 -1
  310. package/dist/watchlist.esm.js +2 -2
  311. package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-d8kdf35n.esm.js} +40 -8
  312. package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +57 -21
  313. package/dist/watchlistForBusinessStateMachine-Y9wFmuMH.esm.js +170 -0
  314. package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-D1BVrd3H.esm.js} +5 -3
  315. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  316. package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-Da4p0sTE.esm.js} +4 -6
  317. package/dist/workflow.d.ts +10 -6
  318. package/dist/workflow.esm.js +95 -60
  319. package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
  320. package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
  321. package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
  322. package/package.json +34 -7
  323. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  324. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
  325. package/dist/addressSearch-DPjIKJrX.esm.js +0 -563
  326. package/dist/camera-9wWD-pwg.d.ts +0 -4
  327. package/dist/cpf-uAZTPUBy.esm.js +0 -61
  328. package/dist/deepsightLoader-sH7920zw.esm.js +0 -55
  329. package/dist/ekybStateMachine-BfgOUZMK.esm.js +0 -933
  330. package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
  331. package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
  332. package/dist/flowServices-X6Rwf_7E.esm.js +0 -688
  333. package/dist/index-DpTj5PFb.d.ts +0 -1
  334. package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
  335. package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
  336. package/dist/types-BvLo3U4u.d.ts +0 -134
  337. package/dist/types-zOgZqMni.d.ts +0 -6
  338. package/dist/urlUtils-6jsE6rKp.esm.js +0 -23
  339. package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
  340. /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
@@ -0,0 +1,1532 @@
1
+ import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
+ //#region ../form-definitions/generated/ekycIndex.ts
3
+ const EKYC_INDEX = [
4
+ {
5
+ id: "ekyc/AR/AR_CREDIT_BUR_1",
6
+ country: "AR",
7
+ source: "AR_CREDIT_BUR_1"
8
+ },
9
+ {
10
+ id: "ekyc/AR/AR_RES_REGISTER",
11
+ country: "AR",
12
+ source: "AR_RES_REGISTER"
13
+ },
14
+ {
15
+ id: "ekyc/BE/BE_CREDIT_TELCO",
16
+ country: "BE",
17
+ source: "BE_CREDIT_TELCO"
18
+ },
19
+ {
20
+ id: "ekyc/BR/BR_GOVT_1",
21
+ country: "BR",
22
+ source: "BR_GOVT_1"
23
+ },
24
+ {
25
+ id: "ekyc/BR/BR_TAX_PHONE_REGISTER",
26
+ country: "BR",
27
+ source: "BR_TAX_PHONE_REGISTER"
28
+ },
29
+ {
30
+ id: "ekyc/CA/CA_CREDIT_FINTRAC",
31
+ country: "CA",
32
+ source: "CA_CREDIT_FINTRAC"
33
+ },
34
+ {
35
+ id: "ekyc/CA/CA_RES_CREDIT",
36
+ country: "CA",
37
+ source: "CA_RES_CREDIT"
38
+ },
39
+ {
40
+ id: "ekyc/CA/CA_TELCO",
41
+ country: "CA",
42
+ source: "CA_TELCO"
43
+ },
44
+ {
45
+ id: "ekyc/CL/CL_CIVIL_REGISTER_2",
46
+ country: "CL",
47
+ source: "CL_CIVIL_REGISTER_2"
48
+ },
49
+ {
50
+ id: "ekyc/CO/CO_CIVIL_REGISTER_1",
51
+ country: "CO",
52
+ source: "CO_CIVIL_REGISTER_1"
53
+ },
54
+ {
55
+ id: "ekyc/DE/DE_PHONE_MOBILE_REGISTER",
56
+ country: "DE",
57
+ source: "DE_PHONE_MOBILE_REGISTER"
58
+ },
59
+ {
60
+ id: "ekyc/DK/DK_CIVIL_REG_CREDIT_TELCO",
61
+ country: "DK",
62
+ source: "DK_CIVIL_REG_CREDIT_TELCO"
63
+ },
64
+ {
65
+ id: "ekyc/ES/ES_PHONE_REGISTER_2",
66
+ country: "ES",
67
+ source: "ES_PHONE_REGISTER_2"
68
+ },
69
+ {
70
+ id: "ekyc/FI/FI_CONSUMER_POP_REG_TELCO",
71
+ country: "FI",
72
+ source: "FI_CONSUMER_POP_REG_TELCO"
73
+ },
74
+ {
75
+ id: "ekyc/FI/FI_NATIONAL_ID",
76
+ country: "FI",
77
+ source: "FI_NATIONAL_ID"
78
+ },
79
+ {
80
+ id: "ekyc/GB/GB_2X2",
81
+ country: "GB",
82
+ source: "GB_2X2"
83
+ },
84
+ {
85
+ id: "ekyc/GB/UK_VOTER_REGISTER",
86
+ country: "GB",
87
+ source: "UK_VOTER_REGISTER"
88
+ },
89
+ {
90
+ id: "ekyc/GR/GR_1",
91
+ country: "GR",
92
+ source: "GR_1"
93
+ },
94
+ {
95
+ id: "ekyc/GT/GT_1",
96
+ country: "GT",
97
+ source: "GT_1"
98
+ },
99
+ {
100
+ id: "ekyc/HK/HK_RESIDENT_REGISTER",
101
+ country: "HK",
102
+ source: "HK_RESIDENT_REGISTER"
103
+ },
104
+ {
105
+ id: "ekyc/IN/IN_DMV",
106
+ country: "IN",
107
+ source: "IN_DMV"
108
+ },
109
+ {
110
+ id: "ekyc/IN/INDIA_PAN_1",
111
+ country: "IN",
112
+ source: "INDIA_PAN_1"
113
+ },
114
+ {
115
+ id: "ekyc/IN/INDIA_PASSPORT_1",
116
+ country: "IN",
117
+ source: "INDIA_PASSPORT_1"
118
+ },
119
+ {
120
+ id: "ekyc/IT/IT_CIVIL_REG_CREDIT_TELCO",
121
+ country: "IT",
122
+ source: "IT_CIVIL_REG_CREDIT_TELCO"
123
+ },
124
+ {
125
+ id: "ekyc/KG/KG_VOTER_REGISTER",
126
+ country: "KG",
127
+ source: "KG_VOTER_REGISTER"
128
+ },
129
+ {
130
+ id: "ekyc/MX/MX_CIVIL_REGISTER_2",
131
+ country: "MX",
132
+ source: "MX_CIVIL_REGISTER_2"
133
+ },
134
+ {
135
+ id: "ekyc/NL/NL_CIVIL_REG_CREDIT_TELCO",
136
+ country: "NL",
137
+ source: "NL_CIVIL_REG_CREDIT_TELCO"
138
+ },
139
+ {
140
+ id: "ekyc/NL/NL_CONSUMER_POP_REG_TELCO",
141
+ country: "NL",
142
+ source: "NL_CONSUMER_POP_REG_TELCO"
143
+ },
144
+ {
145
+ id: "ekyc/NO/NO_CONS_POP_REG",
146
+ country: "NO",
147
+ source: "NO_CONS_POP_REG"
148
+ },
149
+ {
150
+ id: "ekyc/PE/PE_CIVIL_REGISTER_2",
151
+ country: "PE",
152
+ source: "PE_CIVIL_REGISTER_2"
153
+ },
154
+ {
155
+ id: "ekyc/PH/PH_RES_CREDIT",
156
+ country: "PH",
157
+ source: "PH_RES_CREDIT"
158
+ },
159
+ {
160
+ id: "ekyc/PT/PT_CIVIL_REG_CREDIT_TELCO",
161
+ country: "PT",
162
+ source: "PT_CIVIL_REG_CREDIT_TELCO"
163
+ },
164
+ {
165
+ id: "ekyc/PT/PT_PHONE_REGISTER",
166
+ country: "PT",
167
+ source: "PT_PHONE_REGISTER"
168
+ },
169
+ {
170
+ id: "ekyc/RO/RO_VOTER_REGISTER",
171
+ country: "RO",
172
+ source: "RO_VOTER_REGISTER"
173
+ },
174
+ {
175
+ id: "ekyc/SG/SG_PHONE_REGISTER",
176
+ country: "SG",
177
+ source: "SG_PHONE_REGISTER"
178
+ },
179
+ {
180
+ id: "ekyc/TR/TR_VOTER_REGISTER",
181
+ country: "TR",
182
+ source: "TR_VOTER_REGISTER"
183
+ },
184
+ {
185
+ id: "ekyc/US/US_CREDIT_BUREAU_1",
186
+ country: "US",
187
+ source: "US_CREDIT_BUREAU_1"
188
+ },
189
+ {
190
+ id: "ekyc/US/US_CREDIT_BUREAU_3",
191
+ country: "US",
192
+ source: "US_CREDIT_BUREAU_3"
193
+ },
194
+ {
195
+ id: "ekyc/US/US_CREDIT_TELCO",
196
+ country: "US",
197
+ source: "US_CREDIT_TELCO"
198
+ },
199
+ {
200
+ id: "ekyc/US/US_TELCO_1",
201
+ country: "US",
202
+ source: "US_TELCO_1"
203
+ },
204
+ {
205
+ id: "ekyc/US/US_TELCO_2",
206
+ country: "US",
207
+ source: "US_TELCO_2"
208
+ },
209
+ {
210
+ id: "ekyc/VE/VE_CIVIL_REGISTER",
211
+ country: "VE",
212
+ source: "VE_CIVIL_REGISTER"
213
+ }
214
+ ];
215
+ //#endregion
216
+ //#region ../form-definitions/generated/vocabulary.ts
217
+ const VOCABULARY = {
218
+ version: "1.4",
219
+ entries: [
220
+ {
221
+ id: "text",
222
+ type: "kind",
223
+ since: "1.0"
224
+ },
225
+ {
226
+ id: "date",
227
+ type: "kind",
228
+ since: "1.0"
229
+ },
230
+ {
231
+ id: "choice",
232
+ type: "kind",
233
+ since: "1.0"
234
+ },
235
+ {
236
+ id: "phone",
237
+ type: "kind",
238
+ since: "1.0"
239
+ },
240
+ {
241
+ id: "list",
242
+ type: "kind",
243
+ since: "1.3"
244
+ },
245
+ {
246
+ id: "masked",
247
+ type: "widget",
248
+ since: "1.0"
249
+ },
250
+ {
251
+ id: "addressSearch",
252
+ type: "widget",
253
+ since: "1.0"
254
+ },
255
+ {
256
+ id: "select",
257
+ type: "widget",
258
+ since: "1.0"
259
+ },
260
+ {
261
+ id: "radio",
262
+ type: "widget",
263
+ since: "1.0"
264
+ },
265
+ {
266
+ id: "text",
267
+ type: "keyboard",
268
+ since: "1.0"
269
+ },
270
+ {
271
+ id: "numeric",
272
+ type: "keyboard",
273
+ since: "1.0"
274
+ },
275
+ {
276
+ id: "phone",
277
+ type: "keyboard",
278
+ since: "1.0"
279
+ },
280
+ {
281
+ id: "email",
282
+ type: "keyboard",
283
+ since: "1.0"
284
+ },
285
+ {
286
+ id: "url",
287
+ type: "keyboard",
288
+ since: "1.3"
289
+ },
290
+ {
291
+ id: "givenName",
292
+ type: "autofill",
293
+ since: "1.0"
294
+ },
295
+ {
296
+ id: "middleName",
297
+ type: "autofill",
298
+ since: "1.0"
299
+ },
300
+ {
301
+ id: "familyName",
302
+ type: "autofill",
303
+ since: "1.0"
304
+ },
305
+ {
306
+ id: "email",
307
+ type: "autofill",
308
+ since: "1.0"
309
+ },
310
+ {
311
+ id: "phone",
312
+ type: "autofill",
313
+ since: "1.0"
314
+ },
315
+ {
316
+ id: "addressLine1",
317
+ type: "autofill",
318
+ since: "1.0"
319
+ },
320
+ {
321
+ id: "addressLine2",
322
+ type: "autofill",
323
+ since: "1.0"
324
+ },
325
+ {
326
+ id: "addressLevel1",
327
+ type: "autofill",
328
+ since: "1.0"
329
+ },
330
+ {
331
+ id: "addressLevel2",
332
+ type: "autofill",
333
+ since: "1.0"
334
+ },
335
+ {
336
+ id: "postalCode",
337
+ type: "autofill",
338
+ since: "1.0"
339
+ },
340
+ {
341
+ id: "birthday",
342
+ type: "autofill",
343
+ since: "1.0"
344
+ },
345
+ {
346
+ id: "organization",
347
+ type: "autofill",
348
+ since: "1.0"
349
+ },
350
+ {
351
+ id: "ssnFormat",
352
+ type: "rule",
353
+ since: "1.0",
354
+ message: "verification.errors.ssnFormat"
355
+ },
356
+ {
357
+ id: "cpf",
358
+ type: "rule",
359
+ since: "1.0",
360
+ message: "verification.errors.invalidTaxId"
361
+ },
362
+ {
363
+ id: "cnpj",
364
+ type: "rule",
365
+ since: "1.0",
366
+ message: "ekyb.error.invalidTaxId"
367
+ },
368
+ {
369
+ id: "postalCodeFormat",
370
+ type: "rule",
371
+ since: "1.0",
372
+ requiresCountry: true
373
+ },
374
+ {
375
+ id: "phoneFormat",
376
+ type: "rule",
377
+ since: "1.0",
378
+ message: "verification.errors.phoneInvalid"
379
+ },
380
+ {
381
+ id: "emailFormat",
382
+ type: "rule",
383
+ since: "1.0",
384
+ message: "verification.errors.emailInvalid"
385
+ },
386
+ {
387
+ id: "noPoBox",
388
+ type: "rule",
389
+ since: "1.0",
390
+ message: "verification.errors.poBox"
391
+ },
392
+ {
393
+ id: "exactLength",
394
+ type: "rule",
395
+ since: "1.0",
396
+ params: { length: "integer" },
397
+ message: "verification.errors.exactly10Characters"
398
+ },
399
+ {
400
+ id: "nameCharacters",
401
+ type: "rule",
402
+ since: "1.0",
403
+ message: "verification.errors.nameCharacters"
404
+ },
405
+ {
406
+ id: "notFuture",
407
+ type: "rule",
408
+ since: "1.0",
409
+ message: "verification.errors.futureDate"
410
+ },
411
+ {
412
+ id: "maxAge",
413
+ type: "rule",
414
+ since: "1.3",
415
+ params: { years: "integer" },
416
+ message: "verification.errors.dateOfBirthMaxAge"
417
+ },
418
+ {
419
+ id: "digitCount",
420
+ type: "rule",
421
+ since: "1.0",
422
+ params: {
423
+ lengths: "integer[]?",
424
+ min: "integer?",
425
+ max: "integer?"
426
+ }
427
+ },
428
+ {
429
+ id: "allowedCharacters",
430
+ type: "rule",
431
+ since: "1.0",
432
+ message: "verification.errors.invalidCharacters",
433
+ params: {
434
+ classes: "string[]",
435
+ extra: "string?",
436
+ ascii: "boolean?"
437
+ },
438
+ paramsSince: { ascii: "1.3" }
439
+ },
440
+ {
441
+ id: "charTemplate",
442
+ type: "rule",
443
+ since: "1.0",
444
+ message: "verification.errors.invalidFormat",
445
+ params: {
446
+ templates: "string[]",
447
+ ignoreCase: "boolean?"
448
+ }
449
+ },
450
+ {
451
+ id: "numericRange",
452
+ type: "rule",
453
+ since: "1.0",
454
+ message: "verification.errors.numberBetween",
455
+ params: {
456
+ min: "integer",
457
+ max: "integer"
458
+ }
459
+ },
460
+ {
461
+ id: "rut",
462
+ type: "rule",
463
+ since: "1.0",
464
+ message: "verification.errors.invalidIdNumber"
465
+ },
466
+ {
467
+ id: "esDni",
468
+ type: "rule",
469
+ since: "1.0",
470
+ message: "verification.errors.invalidIdNumber"
471
+ },
472
+ {
473
+ id: "fiPersonalIdentityCode",
474
+ type: "rule",
475
+ since: "1.0",
476
+ message: "verification.errors.invalidIdNumber"
477
+ },
478
+ {
479
+ id: "inDrivingLicenseNumber",
480
+ type: "rule",
481
+ since: "1.0",
482
+ message: "verification.errors.invalidIdNumber"
483
+ },
484
+ {
485
+ id: "curp",
486
+ type: "rule",
487
+ since: "1.1",
488
+ message: "verification.errors.invalidIdNumber"
489
+ },
490
+ {
491
+ id: "phoneDigits",
492
+ type: "rule",
493
+ since: "1.0",
494
+ message: "verification.errors.phoneInvalid",
495
+ params: {
496
+ min: "integer",
497
+ max: "integer"
498
+ }
499
+ },
500
+ {
501
+ id: "oneOfRequired",
502
+ type: "groupRule",
503
+ since: "1.0"
504
+ },
505
+ {
506
+ id: "rulesByOption",
507
+ type: "groupRule",
508
+ since: "1.0",
509
+ params: {
510
+ selector: "string",
511
+ target: "string",
512
+ cases: "object"
513
+ }
514
+ },
515
+ {
516
+ id: "uppercase",
517
+ type: "transform",
518
+ since: "1.0"
519
+ },
520
+ {
521
+ id: "stripSeparators",
522
+ type: "transform",
523
+ since: "1.0",
524
+ params: { chars: "string?" }
525
+ },
526
+ {
527
+ id: "e164",
528
+ type: "transform",
529
+ since: "1.0"
530
+ },
531
+ {
532
+ id: "trim",
533
+ type: "transform",
534
+ since: "1.3"
535
+ },
536
+ {
537
+ id: "nationalNumber",
538
+ type: "transform",
539
+ since: "1.0"
540
+ },
541
+ {
542
+ id: "e164NoPlus",
543
+ type: "transform",
544
+ since: "1.0"
545
+ },
546
+ {
547
+ id: "digitGroups",
548
+ type: "transform",
549
+ since: "1.0",
550
+ params: {
551
+ groups: "integer[]",
552
+ separator: "string",
553
+ separators: "string[]?"
554
+ },
555
+ paramsSince: { separators: "1.4" }
556
+ },
557
+ {
558
+ id: "US_STATES",
559
+ type: "optionList",
560
+ since: "1.0",
561
+ values: [
562
+ "AL",
563
+ "AK",
564
+ "AZ",
565
+ "AR",
566
+ "CA",
567
+ "CO",
568
+ "CT",
569
+ "DE",
570
+ "FL",
571
+ "GA",
572
+ "HI",
573
+ "ID",
574
+ "IL",
575
+ "IN",
576
+ "IA",
577
+ "KS",
578
+ "KY",
579
+ "LA",
580
+ "ME",
581
+ "MD",
582
+ "MA",
583
+ "MI",
584
+ "MN",
585
+ "MS",
586
+ "MO",
587
+ "MT",
588
+ "NE",
589
+ "NV",
590
+ "NH",
591
+ "NJ",
592
+ "NM",
593
+ "NY",
594
+ "NC",
595
+ "ND",
596
+ "OH",
597
+ "OK",
598
+ "OR",
599
+ "PA",
600
+ "RI",
601
+ "SC",
602
+ "SD",
603
+ "TN",
604
+ "TX",
605
+ "UT",
606
+ "VT",
607
+ "VA",
608
+ "WA",
609
+ "WV",
610
+ "WI",
611
+ "WY"
612
+ ]
613
+ },
614
+ {
615
+ id: "CA_PROVINCES",
616
+ type: "optionList",
617
+ since: "1.0",
618
+ values: [
619
+ "AB",
620
+ "BC",
621
+ "MB",
622
+ "NB",
623
+ "NL",
624
+ "NS",
625
+ "ON",
626
+ "PE",
627
+ "QC",
628
+ "SK",
629
+ "NT",
630
+ "NU",
631
+ "YT"
632
+ ]
633
+ },
634
+ {
635
+ id: "BR_STATES",
636
+ type: "optionList",
637
+ since: "1.0",
638
+ values: [
639
+ "AC",
640
+ "AL",
641
+ "AP",
642
+ "AM",
643
+ "BA",
644
+ "CE",
645
+ "DF",
646
+ "ES",
647
+ "GO",
648
+ "MA",
649
+ "MT",
650
+ "MS",
651
+ "MG",
652
+ "PA",
653
+ "PB",
654
+ "PR",
655
+ "PE",
656
+ "PI",
657
+ "RJ",
658
+ "RN",
659
+ "RS",
660
+ "RO",
661
+ "RR",
662
+ "SC",
663
+ "SP",
664
+ "SE",
665
+ "TO"
666
+ ]
667
+ },
668
+ {
669
+ id: "IN_STATES",
670
+ type: "optionList",
671
+ since: "1.0",
672
+ values: [
673
+ "AN",
674
+ "AP",
675
+ "AR",
676
+ "AS",
677
+ "BR",
678
+ "CH",
679
+ "CT",
680
+ "DH",
681
+ "DL",
682
+ "GA",
683
+ "GJ",
684
+ "HR",
685
+ "HP",
686
+ "JK",
687
+ "JH",
688
+ "KA",
689
+ "KL",
690
+ "LA",
691
+ "LD",
692
+ "MP",
693
+ "MH",
694
+ "MN",
695
+ "ML",
696
+ "MZ",
697
+ "NL",
698
+ "OR",
699
+ "PY",
700
+ "PB",
701
+ "RJ",
702
+ "SK",
703
+ "TN",
704
+ "TG",
705
+ "TR",
706
+ "UP",
707
+ "UK",
708
+ "WB"
709
+ ]
710
+ },
711
+ {
712
+ id: "PH_ID_TYPES",
713
+ type: "optionList",
714
+ since: "1.0",
715
+ values: [
716
+ "TIN",
717
+ "SSS",
718
+ "GSIS"
719
+ ]
720
+ },
721
+ {
722
+ id: "riskAddon",
723
+ type: "condition",
724
+ since: "1.0"
725
+ },
726
+ {
727
+ id: "fieldFilled",
728
+ type: "condition",
729
+ since: "1.0"
730
+ },
731
+ {
732
+ id: "name",
733
+ type: "group",
734
+ modules: ["ekyc", "ekycprefill"],
735
+ enabledBy: ["checkName"],
736
+ sourceKey: "nameSource",
737
+ displayModeKey: "nameDisplayMode",
738
+ since: "1.0"
739
+ },
740
+ {
741
+ id: "dateOfBirth",
742
+ type: "group",
743
+ modules: ["ekyc", "ekycprefill"],
744
+ enabledBy: ["checkDob"],
745
+ sourceKey: "dobSource",
746
+ displayModeKey: "dobDisplayMode",
747
+ since: "1.0"
748
+ },
749
+ {
750
+ id: "email",
751
+ type: "group",
752
+ modules: ["ekyc", "kybChecks"],
753
+ enabledBy: ["checkEmail", "riskAddon:emailCheck"],
754
+ sourceKey: "emailSource",
755
+ displayModeKey: "emailDisplayMode",
756
+ since: "1.0"
757
+ },
758
+ {
759
+ id: "phone",
760
+ type: "group",
761
+ modules: [
762
+ "ekyc",
763
+ "kybChecks",
764
+ "ekycprefill"
765
+ ],
766
+ enabledBy: [
767
+ "checkPhone",
768
+ "riskAddon:phoneCheck",
769
+ "riskAddon:advancedPhoneCheck",
770
+ "riskAddon:phoneProfile"
771
+ ],
772
+ sourceKey: "phoneSource",
773
+ displayModeKey: "phoneDisplayMode",
774
+ since: "1.0"
775
+ },
776
+ {
777
+ id: "address",
778
+ type: "group",
779
+ modules: [
780
+ "ekyc",
781
+ "ekyb",
782
+ "kybChecks"
783
+ ],
784
+ enabledBy: ["checkAddress"],
785
+ sourceKey: "addressSource",
786
+ displayModeKey: "addressDisplayMode",
787
+ since: "1.0"
788
+ },
789
+ {
790
+ id: "ssn",
791
+ type: "group",
792
+ modules: ["ekyc", "ekycprefill"],
793
+ enabledBy: ["checkSsn"],
794
+ sourceKey: "ssnSource",
795
+ displayModeKey: "ssnDisplayMode",
796
+ since: "1.0"
797
+ },
798
+ {
799
+ id: "last4SSN",
800
+ type: "group",
801
+ modules: ["ekyc"],
802
+ enabledBy: ["checkLast4SSN"],
803
+ sourceKey: "last4SSNSource",
804
+ displayModeKey: "last4SSNDisplayMode",
805
+ since: "1.0"
806
+ },
807
+ {
808
+ id: "idNumber",
809
+ type: "group",
810
+ modules: ["ekyc"],
811
+ enabledBy: ["checkIdNum"],
812
+ sourceKey: "idNumSource",
813
+ displayModeKey: "idNumDisplayMode",
814
+ since: "1.0"
815
+ },
816
+ {
817
+ id: "idNumber1",
818
+ type: "group",
819
+ modules: ["ekyc"],
820
+ enabledBy: ["checkIdNum1"],
821
+ sourceKey: "idNum1Source",
822
+ displayModeKey: "idNum1DisplayMode",
823
+ since: "1.0"
824
+ },
825
+ {
826
+ id: "nationality",
827
+ type: "group",
828
+ modules: ["ekyc"],
829
+ enabledBy: ["checkNationality"],
830
+ sourceKey: "nationalitySource",
831
+ displayModeKey: "nationalityDisplayMode",
832
+ since: "1.0"
833
+ },
834
+ {
835
+ id: "gender",
836
+ type: "group",
837
+ modules: ["ekyc"],
838
+ enabledBy: ["checkGender"],
839
+ sourceKey: "genderSource",
840
+ displayModeKey: "genderDisplayMode",
841
+ since: "1.0"
842
+ },
843
+ {
844
+ id: "panNumber",
845
+ type: "group",
846
+ modules: ["ekyc"],
847
+ enabledBy: ["checkPanNumber"],
848
+ sourceKey: "panNumberSource",
849
+ displayModeKey: "panNumberDisplayMode",
850
+ since: "1.0"
851
+ },
852
+ {
853
+ id: "dlNumber",
854
+ type: "group",
855
+ modules: ["ekyc"],
856
+ enabledBy: ["checkDlNumber"],
857
+ sourceKey: "dlNumberSource",
858
+ displayModeKey: "dlNumberDisplayMode",
859
+ since: "1.0"
860
+ },
861
+ {
862
+ id: "dlState",
863
+ type: "group",
864
+ modules: ["ekyc"],
865
+ enabledBy: ["checkDlState"],
866
+ sourceKey: "dlStateSource",
867
+ displayModeKey: "dlStateDisplayMode",
868
+ since: "1.0"
869
+ },
870
+ {
871
+ id: "dlExpireAt",
872
+ type: "group",
873
+ modules: ["ekyc"],
874
+ enabledBy: ["checkDlExpireAt"],
875
+ sourceKey: "dlExpireAtSource",
876
+ displayModeKey: "dlExpireAtDisplayMode",
877
+ since: "1.0"
878
+ },
879
+ {
880
+ id: "idType",
881
+ type: "group",
882
+ modules: ["ekyc"],
883
+ enabledBy: ["checkIdType"],
884
+ sourceKey: "idTypeSource",
885
+ displayModeKey: "idTypeDisplayMode",
886
+ since: "1.2"
887
+ },
888
+ {
889
+ id: "issueDate",
890
+ type: "group",
891
+ modules: ["ekyc"],
892
+ enabledBy: ["checkIssueDate"],
893
+ sourceKey: "issueDateSource",
894
+ displayModeKey: "issueDateDisplayMode",
895
+ since: "1.2"
896
+ },
897
+ {
898
+ id: "fileNumber",
899
+ type: "group",
900
+ modules: ["ekyc"],
901
+ enabledBy: ["checkFileNumber"],
902
+ sourceKey: "fileNumberSource",
903
+ displayModeKey: "fileNumberDisplayMode",
904
+ since: "1.2"
905
+ },
906
+ {
907
+ id: "businessName",
908
+ type: "group",
909
+ modules: ["ekyb", "kybChecks"],
910
+ enabledBy: ["checkBusinessName"],
911
+ since: "1.0"
912
+ },
913
+ {
914
+ id: "taxId",
915
+ type: "group",
916
+ modules: ["ekyb", "kybChecks"],
917
+ enabledBy: ["checkTaxId"],
918
+ since: "1.0"
919
+ },
920
+ {
921
+ id: "ubos",
922
+ type: "group",
923
+ modules: ["ekyb"],
924
+ enabledBy: ["checkUniqueBeneficialOwner"],
925
+ since: "1.0"
926
+ },
927
+ {
928
+ id: "country",
929
+ type: "group",
930
+ modules: ["kybChecks"],
931
+ since: "1.3"
932
+ },
933
+ {
934
+ id: "website",
935
+ type: "group",
936
+ modules: ["kybChecks"],
937
+ since: "1.3"
938
+ },
939
+ {
940
+ id: "alternativeNames",
941
+ type: "group",
942
+ modules: ["kybChecks"],
943
+ since: "1.3"
944
+ },
945
+ {
946
+ id: "personNames",
947
+ type: "group",
948
+ modules: ["kybChecks"],
949
+ since: "1.3"
950
+ },
951
+ {
952
+ id: "other",
953
+ type: "group",
954
+ modules: ["kybChecks"],
955
+ since: "1.3"
956
+ },
957
+ {
958
+ id: "editable",
959
+ type: "displayMode",
960
+ since: "1.2"
961
+ },
962
+ {
963
+ id: "readOnly",
964
+ type: "displayMode",
965
+ since: "1.2"
966
+ },
967
+ {
968
+ id: "hidden",
969
+ type: "displayMode",
970
+ since: "1.2"
971
+ },
972
+ {
973
+ id: "userInput",
974
+ type: "prefillOrigin",
975
+ since: "1.2",
976
+ configValues: ["userInput"]
977
+ },
978
+ {
979
+ id: "document",
980
+ type: "prefillOrigin",
981
+ since: "1.2",
982
+ configValues: ["document"]
983
+ },
984
+ {
985
+ id: "poa",
986
+ type: "prefillOrigin",
987
+ since: "1.2",
988
+ configValues: ["poa"]
989
+ },
990
+ {
991
+ id: "phoneModule",
992
+ type: "prefillOrigin",
993
+ since: "1.2",
994
+ configValues: ["phoneModuleInput"],
995
+ riskAddons: ["phoneCheck", "phoneProfile"],
996
+ groups: ["phone"],
997
+ locks: true
998
+ },
999
+ {
1000
+ id: "emailModule",
1001
+ type: "prefillOrigin",
1002
+ since: "1.2",
1003
+ configValues: ["emailModuleInput"],
1004
+ riskAddons: ["emailCheck"],
1005
+ groups: ["email"],
1006
+ locks: true
1007
+ },
1008
+ {
1009
+ id: "document.firstName",
1010
+ type: "prefillSource",
1011
+ origin: "document",
1012
+ since: "1.2"
1013
+ },
1014
+ {
1015
+ id: "document.middleName",
1016
+ type: "prefillSource",
1017
+ origin: "document",
1018
+ since: "1.2"
1019
+ },
1020
+ {
1021
+ id: "document.paternalLastName",
1022
+ type: "prefillSource",
1023
+ origin: "document",
1024
+ since: "1.2"
1025
+ },
1026
+ {
1027
+ id: "document.maternalLastName",
1028
+ type: "prefillSource",
1029
+ origin: "document",
1030
+ since: "1.2"
1031
+ },
1032
+ {
1033
+ id: "document.birthDate",
1034
+ type: "prefillSource",
1035
+ origin: "document",
1036
+ since: "1.2",
1037
+ kinds: ["date"]
1038
+ },
1039
+ {
1040
+ id: "document.issueDate",
1041
+ type: "prefillSource",
1042
+ origin: "document",
1043
+ since: "1.2",
1044
+ kinds: ["date"]
1045
+ },
1046
+ {
1047
+ id: "document.street",
1048
+ type: "prefillSource",
1049
+ origin: "document",
1050
+ since: "1.2"
1051
+ },
1052
+ {
1053
+ id: "document.houseNumber",
1054
+ type: "prefillSource",
1055
+ origin: "document",
1056
+ since: "1.2"
1057
+ },
1058
+ {
1059
+ id: "document.city",
1060
+ type: "prefillSource",
1061
+ origin: "document",
1062
+ since: "1.2"
1063
+ },
1064
+ {
1065
+ id: "document.state",
1066
+ type: "prefillSource",
1067
+ origin: "document",
1068
+ since: "1.2"
1069
+ },
1070
+ {
1071
+ id: "document.postalCode",
1072
+ type: "prefillSource",
1073
+ origin: "document",
1074
+ since: "1.2"
1075
+ },
1076
+ {
1077
+ id: "document.documentNumber",
1078
+ type: "prefillSource",
1079
+ origin: "document",
1080
+ since: "1.2"
1081
+ },
1082
+ {
1083
+ id: "document.personalNumber",
1084
+ type: "prefillSource",
1085
+ origin: "document",
1086
+ since: "1.2"
1087
+ },
1088
+ {
1089
+ id: "document.driversLicenseNumber",
1090
+ type: "prefillSource",
1091
+ origin: "document",
1092
+ since: "1.2"
1093
+ },
1094
+ {
1095
+ id: "document.driversLicenseState",
1096
+ type: "prefillSource",
1097
+ origin: "document",
1098
+ since: "1.2"
1099
+ },
1100
+ {
1101
+ id: "poa.firstName",
1102
+ type: "prefillSource",
1103
+ origin: "poa",
1104
+ since: "1.2"
1105
+ },
1106
+ {
1107
+ id: "poa.lastName",
1108
+ type: "prefillSource",
1109
+ origin: "poa",
1110
+ since: "1.2"
1111
+ },
1112
+ {
1113
+ id: "poa.street",
1114
+ type: "prefillSource",
1115
+ origin: "poa",
1116
+ since: "1.2"
1117
+ },
1118
+ {
1119
+ id: "poa.houseNumber",
1120
+ type: "prefillSource",
1121
+ origin: "poa",
1122
+ since: "1.2"
1123
+ },
1124
+ {
1125
+ id: "poa.city",
1126
+ type: "prefillSource",
1127
+ origin: "poa",
1128
+ since: "1.2"
1129
+ },
1130
+ {
1131
+ id: "poa.state",
1132
+ type: "prefillSource",
1133
+ origin: "poa",
1134
+ since: "1.2"
1135
+ },
1136
+ {
1137
+ id: "poa.postalCode",
1138
+ type: "prefillSource",
1139
+ origin: "poa",
1140
+ since: "1.2"
1141
+ },
1142
+ {
1143
+ id: "phoneModule.phone",
1144
+ type: "prefillSource",
1145
+ origin: "phoneModule",
1146
+ since: "1.2",
1147
+ kinds: ["phone"]
1148
+ },
1149
+ {
1150
+ id: "emailModule.email",
1151
+ type: "prefillSource",
1152
+ origin: "emailModule",
1153
+ since: "1.2"
1154
+ }
1155
+ ]
1156
+ };
1157
+ //#endregion
1158
+ //#region src/modules/ekyc/ekycConsts.ts
1159
+ const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER", "US_CREDIT_TELCO"];
1160
+ const STATE_CODE_HINTS = {
1161
+ US: "CA, NY",
1162
+ CA: "ON, QC",
1163
+ BR: "RJ, SP",
1164
+ MX: "JAL, NLE",
1165
+ GB: "ENG, SCT",
1166
+ ES: "MD, CT",
1167
+ AR: "B, C, K"
1168
+ };
1169
+ const ADDRESS_FIELDS = [
1170
+ "address",
1171
+ "houseNo",
1172
+ "street",
1173
+ "apartment",
1174
+ "address2",
1175
+ "city",
1176
+ "state",
1177
+ "postalCode"
1178
+ ];
1179
+ const DRIVERS_LICENSE_FIELDS = [
1180
+ "dlNumber",
1181
+ "dlState",
1182
+ "dlExpireAt"
1183
+ ];
1184
+ const NO_STATE_SOURCES = ["GR_1", "UK_VOTER_REGISTER"];
1185
+ const DOB_OPTIONAL_SOURCES = [
1186
+ "US_TELCO_1",
1187
+ "US_CREDIT_TELCO",
1188
+ "UK_VOTER_REGISTER"
1189
+ ];
1190
+ const ADDRESS_OPTIONAL_SOURCES = [
1191
+ "US_TELCO_1",
1192
+ "US_CREDIT_TELCO",
1193
+ "UK_VOTER_REGISTER",
1194
+ "BR_GOVT_1"
1195
+ ];
1196
+ const STREET_OPTIONAL_SOURCES = ["US_CREDIT_TELCO", "BR_GOVT_1"];
1197
+ const SSN_OPTIONAL_SOURCES = ["US_CREDIT_TELCO"];
1198
+ const LAST4SSN_OPTIONAL_SOURCES = ["US_TELCO_1"];
1199
+ const DRIVERS_LICENSE_OPTIONAL_SOURCES = ["US_TELCO_1"];
1200
+ const EMAIL_SOURCES = ["US_TELCO_1", "US_CREDIT_BUREAU_1"];
1201
+ const EMAIL_OPTIONAL_SOURCES = ["US_TELCO_1"];
1202
+ const PHONE_OPTIONAL_SOURCES = [
1203
+ "CA_RES_CREDIT",
1204
+ "UK_VOTER_REGISTER",
1205
+ "US_CREDIT_TELCO"
1206
+ ];
1207
+ /**
1208
+ * Groups of fields where at least one member must be filled. Members are
1209
+ * individually optional; the group rule enforces the "one of" requirement.
1210
+ */
1211
+ const ONE_OF_REQUIRED_GROUPS = { US_CREDIT_TELCO: [["dateOfBirth", "ssn"]] };
1212
+ const NAME_SOURCES = [
1213
+ "US_TELCO_1",
1214
+ "US_TELCO_2",
1215
+ "US_TELCO_4",
1216
+ "US_ADDRESS_1",
1217
+ "US_CREDIT_BUREAU_1",
1218
+ "US_CREDIT_TELCO",
1219
+ "US_DRIVERS_LICENSE_1",
1220
+ "CA_RES_CREDIT",
1221
+ "SERPRO",
1222
+ "SE_1",
1223
+ "GR_1",
1224
+ "GT_1",
1225
+ "AR_1",
1226
+ "ES_1",
1227
+ "UK_VOTER_REGISTER",
1228
+ "CL_1",
1229
+ "INDIA_PAN"
1230
+ ];
1231
+ const HOUSE_NO_SOURCES = [
1232
+ "SERPRO",
1233
+ "BR_GOVT_1",
1234
+ "GR_1",
1235
+ "ES_1"
1236
+ ];
1237
+ const STREET_SOURCES = [
1238
+ "US_TELCO_1",
1239
+ "US_TELCO_2",
1240
+ "US_CREDIT_BUREAU_1",
1241
+ "US_CREDIT_TELCO",
1242
+ "CA_RES_CREDIT",
1243
+ "SERPRO",
1244
+ "BR_GOVT_1",
1245
+ "AR_1",
1246
+ "ES_1",
1247
+ "UK_VOTER_REGISTER"
1248
+ ];
1249
+ const CITY_SOURCES = [
1250
+ "US_TELCO_1",
1251
+ "US_TELCO_2",
1252
+ "US_CREDIT_BUREAU_1",
1253
+ "US_CREDIT_TELCO",
1254
+ "CA_RES_CREDIT",
1255
+ "SERPRO",
1256
+ "BR_GOVT_1",
1257
+ "AR_1",
1258
+ "ES_1",
1259
+ "UK_VOTER_REGISTER"
1260
+ ];
1261
+ const ADDRESS_STATE_SOURCES = [
1262
+ "US_TELCO_1",
1263
+ "US_TELCO_2",
1264
+ "US_CREDIT_BUREAU_1",
1265
+ "US_CREDIT_TELCO",
1266
+ "US_DRIVERS_LICENSE_1",
1267
+ "CA_RES_CREDIT",
1268
+ "SERPRO",
1269
+ "BR_GOVT_1",
1270
+ "AR_1",
1271
+ "ES_1"
1272
+ ];
1273
+ const POSTAL_CODE_SOURCES = [
1274
+ "US_TELCO_1",
1275
+ "US_TELCO_2",
1276
+ "US_CREDIT_BUREAU_1",
1277
+ "US_CREDIT_TELCO",
1278
+ "CA_RES_CREDIT",
1279
+ "SERPRO",
1280
+ "BR_GOVT_1",
1281
+ "AR_1",
1282
+ "ES_1",
1283
+ "UK_VOTER_REGISTER"
1284
+ ];
1285
+ const APARTMENT_SOURCES = ["US_CREDIT_TELCO"];
1286
+ const TAX_ID_SOURCES = [
1287
+ "GT_1",
1288
+ "ES_1",
1289
+ "CL_1"
1290
+ ];
1291
+ const MIDDLE_NAME_SOURCES = [
1292
+ "US_CREDIT_BUREAU_1",
1293
+ "CA_RES_CREDIT",
1294
+ "UK_VOTER_REGISTER",
1295
+ "GR_1",
1296
+ "AR_1",
1297
+ "ES_1",
1298
+ "CL_1",
1299
+ "INDIA_PAN"
1300
+ ];
1301
+ /** Risk addons that replace a `RISK_ADDONS_ONLY` source with their own. */
1302
+ const RISK_ADDON_SOURCE_OVERRIDES = { phoneProfile: "PHONE_PROFILE" };
1303
+ /** Sources whose submit payload must not carry `countryCode`. */
1304
+ const COUNTRY_CODE_OMITTED_SOURCES = ["PHONE_PROFILE"];
1305
+ //#endregion
1306
+ //#region src/modules/ekyc/ekycUtils.ts
1307
+ var ekycUtils_exports = /* @__PURE__ */ __exportAll({
1308
+ EKYC_GROUP_KEYS: () => EKYC_GROUP_KEYS,
1309
+ NO_STATE_SOURCES: () => NO_STATE_SOURCES,
1310
+ getEKYCCountry: () => getEKYCCountry,
1311
+ getEKYCDisplayModes: () => getEKYCDisplayModes,
1312
+ getEKYCFields: () => getEKYCFields,
1313
+ getEkycRiskAddons: () => getEkycRiskAddons,
1314
+ getRiskAddonFields: () => getRiskAddonFields,
1315
+ indexCountries: () => indexCountries,
1316
+ isFieldOptional: () => isFieldOptional,
1317
+ legacyEkycCountry: () => legacyEkycCountry,
1318
+ mapToEKYCvalue: () => mapToEKYCvalue,
1319
+ resolveEkycSource: () => resolveEkycSource,
1320
+ toEkycConfig: () => toEkycConfig,
1321
+ withRiskAddonFields: () => withRiskAddonFields
1322
+ });
1323
+ function mapToEKYCvalue(field) {
1324
+ switch (field) {
1325
+ case "poa": return "poa_document";
1326
+ case "document": return "document_scan";
1327
+ case "phoneModuleInput": return "phone_module_input";
1328
+ case "emailModuleInput": return "email_module_input";
1329
+ default: return "user_input";
1330
+ }
1331
+ }
1332
+ /**
1333
+ * Resolves the source sent to the backend. A `RISK_ADDONS_ONLY` source is
1334
+ * replaced by the first configured addon that defines its own source
1335
+ * (e.g. `phoneProfile` → `PHONE_PROFILE`); any other source is kept.
1336
+ */
1337
+ function resolveEkycSource(source, riskAddons) {
1338
+ if (source !== "RISK_ADDONS_ONLY") return source;
1339
+ return riskAddons?.map((addon) => RISK_ADDON_SOURCE_OVERRIDES[addon]).find(Boolean) ?? source;
1340
+ }
1341
+ /**
1342
+ * eKYC group id → the key `getEKYCFields` sets in `EkycVerificationFields`, in
1343
+ * the order `getEKYCFields` has always written them.
1344
+ */
1345
+ const EKYC_GROUP_KEYS = {
1346
+ name: "name",
1347
+ ssn: "SSN",
1348
+ address: "address",
1349
+ dateOfBirth: "date of birth",
1350
+ email: "email",
1351
+ phone: "phone",
1352
+ nationality: "nationality",
1353
+ dlNumber: "dlNumber",
1354
+ dlState: "dlState",
1355
+ dlExpireAt: "dlExpireAt",
1356
+ last4SSN: "last4SSN",
1357
+ idNumber: "idNum",
1358
+ idNumber1: "idNum1",
1359
+ gender: "gender",
1360
+ panNumber: "panNumber",
1361
+ idType: "idType",
1362
+ issueDate: "issueDate",
1363
+ fileNumber: "fileNumber"
1364
+ };
1365
+ const RISK_ADDON_PREFIX = "riskAddon:";
1366
+ /**
1367
+ * Each verification field's switches, from its vocabulary group: the config
1368
+ * flags and risk add-ons that turn it on (`enabledBy`, where a risk add-on is
1369
+ * `riskAddon:<id>`), and the config key that names its source (`sourceKey`).
1370
+ */
1371
+ const FIELD_SWITCHES = Object.entries(EKYC_GROUP_KEYS).flatMap(([id, field]) => {
1372
+ const group = VOCABULARY.entries.find((entry) => entry.type === "group" && entry.id === id);
1373
+ if (!group?.enabledBy?.length || !group.sourceKey) throw new Error(`eKYC group "${id}" has no enabledBy or sourceKey in the vocabulary`);
1374
+ const enabledBy = group.enabledBy;
1375
+ return [{
1376
+ field,
1377
+ flags: enabledBy.filter((flag) => !flag.startsWith(RISK_ADDON_PREFIX)),
1378
+ riskAddons: enabledBy.filter((flag) => flag.startsWith(RISK_ADDON_PREFIX)).map((flag) => flag.slice(10)),
1379
+ sourceKey: group.sourceKey
1380
+ }];
1381
+ });
1382
+ /** Maps raw backend module config to a field-source mapping */
1383
+ function getEKYCFields(config) {
1384
+ const values = config;
1385
+ const riskAddons = config.riskAddons;
1386
+ const fields = {};
1387
+ for (const switches of FIELD_SWITCHES) {
1388
+ const on = switches.flags.some((flag) => values[flag]) || switches.riskAddons.some((addon) => riskAddons?.includes(addon));
1389
+ const source = values[switches.sourceKey];
1390
+ fields[switches.field] = on ? mapToEKYCvalue(typeof source === "string" ? source : "") : false;
1391
+ }
1392
+ return fields;
1393
+ }
1394
+ /**
1395
+ * The verification fields the configured risk add-ons check, which are
1396
+ * required whatever the source says (decision B20). The vocabulary's
1397
+ * `enabledBy` names each group's add-ons, so a new add-on needs no code here.
1398
+ */
1399
+ function getRiskAddonFields(riskAddons) {
1400
+ return new Set(FIELD_SWITCHES.filter((switches) => riskAddons?.some((addon) => switches.riskAddons.includes(addon))).map((switches) => switches.field));
1401
+ }
1402
+ /**
1403
+ * A field mapping with the fields the risk add-ons check turned on, as
1404
+ * `getEKYCFields` does for a fetched module configuration (decision B20). A
1405
+ * field the mapping already turns on keeps its origin.
1406
+ */
1407
+ function withRiskAddonFields(fields, riskAddons) {
1408
+ const merged = { ...fields };
1409
+ for (const field of getRiskAddonFields(riskAddons)) if (!merged[field]) merged[field] = "user_input";
1410
+ return merged;
1411
+ }
1412
+ /**
1413
+ * The risk add-ons in force: the fetched module configuration's for a
1414
+ * `flowId` config, else the ones the resolved config carries.
1415
+ */
1416
+ function getEkycRiskAddons(context) {
1417
+ return context.moduleConfig?.riskAddons ?? context.config.riskAddons;
1418
+ }
1419
+ /**
1420
+ * Each verification field's display-mode key in module configuration, from
1421
+ * the vocabulary's `displayModeKey` on its group.
1422
+ */
1423
+ const DISPLAY_MODE_KEYS = new Map(VOCABULARY.entries.flatMap((entry) => {
1424
+ const field = EKYC_GROUP_KEYS[entry.id];
1425
+ return entry.type === "group" && field && entry.displayModeKey ? [[field, entry.displayModeKey]] : [];
1426
+ }));
1427
+ const DISPLAY_MODES = new Set(VOCABULARY.entries.filter((entry) => entry.type === "displayMode").map((entry) => entry.id));
1428
+ /** Maps raw backend module config to each field's configured display mode. */
1429
+ function getEKYCDisplayModes(config) {
1430
+ const modes = {};
1431
+ const values = config;
1432
+ for (const [field, key] of DISPLAY_MODE_KEYS) {
1433
+ const mode = values[key];
1434
+ if (typeof mode === "string" && DISPLAY_MODES.has(mode)) modes[field] = mode;
1435
+ }
1436
+ return modes;
1437
+ }
1438
+ function indexCountries(entries) {
1439
+ const countries = /* @__PURE__ */ new Map();
1440
+ const ambiguous = /* @__PURE__ */ new Set();
1441
+ for (const entry of entries) {
1442
+ if (!entry.country) continue;
1443
+ for (const id of [entry.source, ...entry.aliases ?? []]) {
1444
+ if (!id || ambiguous.has(id)) continue;
1445
+ const known = countries.get(id);
1446
+ if (known === void 0) countries.set(id, entry.country);
1447
+ else if (known !== entry.country) {
1448
+ countries.delete(id);
1449
+ ambiguous.add(id);
1450
+ }
1451
+ }
1452
+ }
1453
+ return countries;
1454
+ }
1455
+ const INDEXED_COUNTRIES = indexCountries(EKYC_INDEX);
1456
+ /** Maps a verification source string to a country code */
1457
+ function getEKYCCountry(source) {
1458
+ return INDEXED_COUNTRIES.get(source) ?? legacyEkycCountry(source);
1459
+ }
1460
+ /** Today's source → country switch, the fallback when the index has no entry. */
1461
+ function legacyEkycCountry(source) {
1462
+ switch (source) {
1463
+ case "BR_GOVT_1":
1464
+ case "SERPRO": return "BR";
1465
+ case "MX_CONSUMER_1": return "MX";
1466
+ case "UK_CREDIT_BUREAU_1":
1467
+ case "UK_VOTER_REGISTER": return "GB";
1468
+ case "ES_1": return "ES";
1469
+ case "CL_1": return "CL";
1470
+ case "AR_1": return "AR";
1471
+ case "GR_1": return "GR";
1472
+ case "GT_1": return "GT";
1473
+ case "CO_1": return "CO";
1474
+ case "CR_1": return "CR";
1475
+ case "CA_RES_CREDIT": return "CA";
1476
+ case "INDIA_PAN": return "IN";
1477
+ default: return "US";
1478
+ }
1479
+ }
1480
+ /**
1481
+ * Returns true if the input carries any raw-shape signal — i.e. a non-empty
1482
+ * `source` or at least one `check*` flag set. Used by `toEkycConfig` to
1483
+ * distinguish a raw backend config from an unconfigured / empty input.
1484
+ */
1485
+ function hasRawSignal(c) {
1486
+ 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);
1487
+ }
1488
+ /**
1489
+ * Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
1490
+ *
1491
+ * Accepts either:
1492
+ * - A manager-ready `EkycConfig` (with `flowId` or `verificationFields`) →
1493
+ * returned unchanged.
1494
+ * - A raw backend `EkycModuleConfig` (with `source` + `check*` / `*Source`
1495
+ * fields, as embedded in a workflow node or returned by
1496
+ * `/omni/flow/onboarding/configuration`) → derived into an `EkycConfig`.
1497
+ * - A config with no recognizable signal (e.g. `{}`) → returned unchanged,
1498
+ * so the machine still lands in `misconfigured` instead of a silent
1499
+ * empty form.
1500
+ *
1501
+ * Idempotent: `toEkycConfig(toEkycConfig(x))` equals `toEkycConfig(x)`.
1502
+ */
1503
+ function toEkycConfig(config) {
1504
+ if (config.flowId || config.verificationFields) return config;
1505
+ if (!hasRawSignal(config)) return config;
1506
+ const source = resolveEkycSource(config.source ?? "", config.riskAddons);
1507
+ const displayModes = getEKYCDisplayModes(config);
1508
+ return {
1509
+ verificationFields: getEKYCFields(config),
1510
+ source,
1511
+ fieldsCountry: getEKYCCountry(source),
1512
+ enablePhoneRisk: config.enablePhoneRisk,
1513
+ ...config.autoExecution === true && { autoExecution: true },
1514
+ ...Object.keys(displayModes).length > 0 && { displayModes },
1515
+ ...config.riskAddons?.length ? { riskAddons: config.riskAddons } : {}
1516
+ };
1517
+ }
1518
+ /** Determines if a field is optional given the current config source */
1519
+ function isFieldOptional(fieldName, configSource) {
1520
+ if (fieldName === "middleName") return true;
1521
+ if (fieldName === "dateOfBirth") return DOB_OPTIONAL_SOURCES.includes(configSource);
1522
+ if (fieldName === "street") return STREET_OPTIONAL_SOURCES.includes(configSource);
1523
+ if (ADDRESS_FIELDS.includes(fieldName)) return ADDRESS_OPTIONAL_SOURCES.includes(configSource);
1524
+ if (fieldName === "ssn") return SSN_OPTIONAL_SOURCES.includes(configSource);
1525
+ if (fieldName === "last4SSN") return LAST4SSN_OPTIONAL_SOURCES.includes(configSource);
1526
+ if (DRIVERS_LICENSE_FIELDS.includes(fieldName)) return DRIVERS_LICENSE_OPTIONAL_SOURCES.includes(configSource);
1527
+ if (fieldName === "email") return EMAIL_OPTIONAL_SOURCES.includes(configSource);
1528
+ if (fieldName === "phone") return PHONE_OPTIONAL_SOURCES.includes(configSource);
1529
+ return false;
1530
+ }
1531
+ //#endregion
1532
+ export { POSTAL_CODE_SOURCES as C, VOCABULARY as D, TAX_ID_SOURCES as E, ONE_OF_REQUIRED_GROUPS as S, STREET_SOURCES as T, COUNTRY_SELECTOR_DISABLED_SOURCES as _, getEKYCFields as a, MIDDLE_NAME_SOURCES as b, isFieldOptional as c, toEkycConfig as d, withRiskAddonFields as f, COUNTRY_CODE_OMITTED_SOURCES as g, CITY_SOURCES as h, getEKYCDisplayModes as i, mapToEKYCvalue as l, APARTMENT_SOURCES as m, ekycUtils_exports as n, getEkycRiskAddons as o, ADDRESS_STATE_SOURCES as p, getEKYCCountry as r, getRiskAddonFields as s, EKYC_GROUP_KEYS as t, resolveEkycSource as u, EMAIL_SOURCES as v, STATE_CODE_HINTS as w, NAME_SOURCES as x, HOUSE_NO_SOURCES as y };