@incodetech/core 2.4.1 → 2.5.0-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 (338) 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-Dv9iXub0.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-CAxToGns.d.ts} +3 -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-X4_2eBGd.esm.js} +15 -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-DVFDFlIL.esm.js} +135 -25
  20. package/dist/WorkerEncoderRecordingProvider-BO7urYwT.esm.js +80 -0
  21. package/dist/addressSearch-BKlynuBr.esm.js +71 -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/antifraud.d.ts +1 -1
  26. package/dist/antifraud.esm.js +2 -2
  27. package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-BI2zr7YX.esm.js} +5 -3
  28. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  29. package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-TWUu8wLN.esm.js} +4 -6
  30. package/dist/{api-Cz90EHyu.esm.js → api-BNxrW8xK.esm.js} +13 -6
  31. package/dist/{apiError-9Yi8xMeB.esm.js → apiError-BAfdBGxH.esm.js} +1 -1
  32. package/dist/attemptCarry-DWM8lV9V.esm.js +45 -0
  33. package/dist/authentication.d.ts +3 -3
  34. package/dist/authentication.esm.js +2 -2
  35. package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-BJElkTsj.d.ts} +2 -2
  36. package/dist/{authenticationManager-pKQS4fHT.esm.js → authenticationManager-DFzByAYo.esm.js} +7 -6
  37. package/dist/{authenticationStateMachine-D_DygKtQ.esm.js → authenticationStateMachine-CKTOhwwc.esm.js} +50 -18
  38. package/dist/avatar.d.ts +1 -1
  39. package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
  40. package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-6qVHvj76.esm.js} +12 -107
  41. package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-CG3C-xGt.esm.js} +161 -150
  42. package/dist/calendarDate-DcqGuEht.esm.js +35 -0
  43. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  44. package/dist/camera-9yYDUOsO.d.ts +5 -0
  45. package/dist/{camera-sIa9ceW2.esm.js → camera-CJKApt0x.esm.js} +19 -20
  46. package/dist/camera.d.ts +9 -5
  47. package/dist/camera.esm.js +1 -1
  48. package/dist/certificate-issuance.d.ts +1 -1
  49. package/dist/certificate-issuance.esm.js +2 -2
  50. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  51. package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-P44yBRop.esm.js} +5 -3
  52. package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-BPBrILt6.esm.js} +4 -4
  53. package/dist/cnpj-Bl_olpdX.esm.js +79 -0
  54. package/dist/connectivity-BCuEoQ-n.esm.js +114 -0
  55. package/dist/consent.d.ts +1 -1
  56. package/dist/consent.esm.js +2 -2
  57. package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-D43w2ms-.esm.js} +7 -4
  58. package/dist/{consentManager-Ca8FHlC4.d.ts → consentManager-Duzd8paN.d.ts} +17 -9
  59. package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-CLK8PfM4.esm.js} +25 -15
  60. package/dist/cpf-DDXMTLYr.esm.js +37 -0
  61. package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-Ct9QrQ66.d.ts} +1 -1
  62. package/dist/cross-document-data-match.d.ts +1 -1
  63. package/dist/cross-document-data-match.esm.js +1 -1
  64. package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-Cag_bcyW.esm.js} +6 -5
  65. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  66. package/dist/curp-DZGvefg3.esm.js +14 -0
  67. package/dist/curp-validation.d.ts +1 -1
  68. package/dist/curp-validation.esm.js +2 -2
  69. package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-C6WmQToS.esm.js} +6 -3
  70. package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-CmL52FU8.d.ts} +4 -4
  71. package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-BbJ4YAzE.esm.js} +41 -34
  72. package/dist/custom-fields.d.ts +1 -1
  73. package/dist/custom-fields.esm.js +1 -1
  74. package/dist/custom-watchlist.d.ts +1 -1
  75. package/dist/custom-watchlist.esm.js +2 -2
  76. package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-BBy6X9nh.esm.js} +15 -17
  77. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  78. package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-CtBMy2EF.esm.js} +5 -3
  79. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  80. package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-SS2ssNCg.esm.js} +4 -6
  81. package/dist/deepsightCaptureConfig-Nm_K8twx.esm.js +70 -0
  82. package/dist/{deepsightService-C3DVBOZd.esm.js → deepsightLoader-BInnND1H.esm.js} +41 -74
  83. package/dist/definitionSource-B-Z2EgJJ.esm.js +234 -0
  84. package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-JNBOXqvK.esm.js} +278 -44
  85. package/dist/device.d.ts +3 -3
  86. package/dist/device.esm.js +16 -16
  87. package/dist/document-capture.d.ts +3 -3
  88. package/dist/document-capture.esm.js +2 -2
  89. package/dist/document-signature.d.ts +123 -0
  90. package/dist/document-signature.esm.js +149 -0
  91. package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-CGDtkfWj.esm.js} +30 -20
  92. package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +42 -8
  93. package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-flAt9D4q.esm.js} +110 -63
  94. package/dist/documentSignatureStateMachine-DrRyICFT.esm.js +219 -0
  95. package/dist/dynamic-forms.d.ts +2 -2
  96. package/dist/dynamic-forms.esm.js +2 -2
  97. package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-C45pTncO.d.ts} +4 -4
  98. package/dist/{dynamicFormsManager-DK_oc5Oy.esm.js → dynamicFormsManager-CxLq2KzT.esm.js} +5 -3
  99. package/dist/{dynamicFormsStateMachine-CGlIAWZ6.esm.js → dynamicFormsStateMachine-By-maT_4.esm.js} +12 -13
  100. package/dist/ekyb.d.ts +5 -5
  101. package/dist/ekyb.esm.js +3 -3
  102. package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-BflWuTe4.d.ts} +5 -5
  103. package/dist/{ekybManager-BLgkiWXw.esm.js → ekybManager-CE19Pcdb.esm.js} +5 -3
  104. package/dist/{ekybStateMachine-BfgOUZMK.esm.js → ekybStateMachine-q7JQ-x9l.esm.js} +1233 -124
  105. package/dist/ekybUtils-Z9MhFAer.esm.js +150 -0
  106. package/dist/ekyc-prefill.d.ts +17 -0
  107. package/dist/ekyc-prefill.esm.js +3 -0
  108. package/dist/ekyc.d.ts +4 -3
  109. package/dist/ekyc.esm.js +3 -3
  110. package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-BKVQazAb.d.ts} +49 -7
  111. package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-p3uenUEi.esm.js} +39 -16
  112. package/dist/ekycPrefillManager-BcLhkpp8.d.ts +566 -0
  113. package/dist/ekycPrefillManager-gPX3XE7u.esm.js +103 -0
  114. package/dist/ekycPrefillStateMachine-SBnBKPGA.esm.js +685 -0
  115. package/dist/ekycRules-BH_Ll_0A.esm.js +482 -0
  116. package/dist/ekycStateMachine-D0NAHzS7.esm.js +8514 -0
  117. package/dist/ekycUtils-DEvtEyBI.esm.js +1501 -0
  118. package/dist/electronic-signature.d.ts +1 -1
  119. package/dist/electronic-signature.esm.js +1 -1
  120. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  121. package/dist/{electronicSignatureManager-CjKvJ6E-.esm.js → electronicSignatureManager-C1M-Yxf2.esm.js} +12 -18
  122. package/dist/email.d.ts +1 -1
  123. package/dist/email.esm.js +2 -2
  124. package/dist/{emailManager-ButFktRm.esm.js → emailManager-DWnhEsUf.esm.js} +5 -3
  125. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  126. package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine--T9PHflK.esm.js} +35 -25
  127. package/dist/events-ChMS-UzR.esm.js +299 -0
  128. package/dist/events.d.ts +4 -1
  129. package/dist/events.esm.js +2 -1
  130. package/dist/extensibility.d.ts +57 -41
  131. package/dist/extensibility.esm.js +39 -37
  132. package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-cUjJYyXj.esm.js} +4 -1
  133. package/dist/face-match.d.ts +1 -1
  134. package/dist/face-match.esm.js +2 -2
  135. package/dist/{faceCaptureManagerFactory-BDGhg24q.esm.js → faceCaptureManagerFactory-18QW0lmV.esm.js} +29 -12
  136. package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-CHqmyOjM.d.ts} +101 -77
  137. package/dist/{faceCaptureSetup-CvGYG4GZ.esm.js → faceCaptureSetup-CFToXwHy.esm.js} +181 -513
  138. package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-C5b5WtcY.d.ts} +23 -7
  139. package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-DIStK4qi.esm.js} +5 -3
  140. package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-DagrRdo2.esm.js} +70 -42
  141. package/dist/{feature-management-D4ne_hXW.esm.js → feature-management-BlscKbeV.esm.js} +37 -22
  142. package/dist/feature-management.esm.js +1 -1
  143. package/dist/field-comparison.d.ts +1 -1
  144. package/dist/field-comparison.esm.js +1 -1
  145. package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-BnWBtMN7.esm.js} +7 -7
  146. package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
  147. package/dist/fiscal-qr.d.ts +1 -1
  148. package/dist/fiscal-qr.esm.js +1 -1
  149. package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-BxXaLhin.esm.js} +9 -8
  150. package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
  151. package/dist/flow-events.d.ts +1 -1
  152. package/dist/flow.d.ts +73 -24
  153. package/dist/flow.esm.js +261 -66
  154. package/dist/{flowCompletionService-Cemwaa5b.esm.js → flowCompletionService-DNLssMAg.esm.js} +2 -2
  155. package/dist/flowServices-Bzq3piUR.esm.js +951 -0
  156. package/dist/geolocation.d.ts +1 -1
  157. package/dist/geolocation.esm.js +2 -2
  158. package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-CENrvxpK.d.ts} +19 -20
  159. package/dist/{geolocationManager-B0dc5rW9.esm.js → geolocationManager-DoLbpx5e.esm.js} +9 -9
  160. package/dist/{geolocationStateMachine-B3rcoODF.esm.js → geolocationStateMachine-d5_E7gAm.esm.js} +16 -14
  161. package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
  162. package/dist/government-validation.d.ts +1 -1
  163. package/dist/government-validation.esm.js +2 -2
  164. package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-CaZxyEOO.esm.js} +5 -3
  165. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  166. package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-DeHHhlcf.esm.js} +4 -6
  167. package/dist/home.d.ts +4 -3
  168. package/dist/home.esm.js +4 -2
  169. package/dist/http.esm.js +1 -1
  170. package/dist/id-ocr.d.ts +2 -2
  171. package/dist/id-ocr.esm.js +3 -19
  172. package/dist/id-selfie-flow.d.ts +7 -6
  173. package/dist/id-selfie-flow.esm.js +14 -12
  174. package/dist/id-verification.d.ts +1 -1
  175. package/dist/id-verification.esm.js +2 -2
  176. package/dist/id.d.ts +6 -19
  177. package/dist/id.esm.js +4 -4
  178. package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-R3rHuTOE.esm.js} +4 -4
  179. package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-CgkQW3Xc.d.ts} +88 -14
  180. package/dist/{idCaptureManager-IouAnrFm.esm.js → idCaptureManager-D_YGMeCW.esm.js} +81 -26
  181. package/dist/{idCaptureServices-VTKIPSpT.esm.js → idCaptureServices-CP6AxsFW.esm.js} +36 -213
  182. package/dist/{idCaptureStateMachine-_Pn2Xkpb.esm.js → idCaptureStateMachine-BdBtGQZP.esm.js} +2922 -2498
  183. package/dist/idOcrCpfUtils-D5Gwskxu.esm.js +18 -0
  184. package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-C0C7lFGd.d.ts} +7 -6
  185. package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-XTbpfHoF.esm.js} +5 -3
  186. package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-B-00PgPh.esm.js} +20 -16
  187. package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-B4NYLlUl.esm.js} +5 -3
  188. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  189. package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-B48Ikl-7.esm.js} +4 -6
  190. package/dist/identity-reuse.d.ts +2 -2
  191. package/dist/identity-reuse.esm.js +2 -2
  192. package/dist/identity-search.d.ts +97 -0
  193. package/dist/identity-search.esm.js +96 -0
  194. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
  195. package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-tFeYm_So.esm.js} +9 -4
  196. package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-Ckf39qFu.esm.js} +24 -31
  197. package/dist/{index-BKOWUhxG.d.ts → index-CNck5TLp.d.ts} +93 -22
  198. package/dist/{index-CKQ9QBZP.d.ts → index-CoePktWH.d.ts} +2 -2
  199. package/dist/index-DHuAkTe0.d.ts +1 -0
  200. package/dist/index.d.ts +1 -1
  201. package/dist/index.esm.js +1 -1
  202. package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-DNQX9k5e.esm.js} +1 -1
  203. package/dist/kyb-checks.d.ts +3 -0
  204. package/dist/kyb-checks.esm.js +3 -0
  205. package/dist/kybChecksManager-B7Di9auB.d.ts +95 -0
  206. package/dist/kybChecksManager-DP76y-Qz.esm.js +90 -0
  207. package/dist/kybChecksStateMachine-OKLT8Zoc.esm.js +716 -0
  208. package/dist/mandatory-consent.d.ts +2 -2
  209. package/dist/mandatory-consent.esm.js +2 -2
  210. package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-NX1lz6nk.esm.js} +7 -4
  211. package/dist/{mandatoryConsentManager-qYojnZYg.d.ts → mandatoryConsentManager-kzr5kdc_.d.ts} +28 -11
  212. package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-D1J2NQSI.esm.js} +35 -19
  213. package/dist/mediaRecorderOptions-Di_V9TnZ.esm.js +87 -0
  214. package/dist/multipartRecordingService-Cz-cWrpV.esm.js +407 -0
  215. package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-Cyh71hOt.esm.js} +1 -1
  216. package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-BrtDMB0Z.esm.js} +31 -15
  217. package/dist/phone-number.d.ts +7 -1
  218. package/dist/phone-number.esm.js +15 -2
  219. package/dist/phone.d.ts +1 -1
  220. package/dist/phone.esm.js +2 -2
  221. package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
  222. package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-D1QPNbu0.esm.js} +6 -4
  223. package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-VO1HEoUZ.d.ts} +8 -3
  224. package/dist/phoneServices-DC7AuUed.esm.js +73 -0
  225. package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-CxCPxTIy.esm.js} +56 -84
  226. package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
  227. package/dist/{platform-DkcRc9JV.esm.js → platform-GIg4uPWe.esm.js} +15 -4
  228. package/dist/processFaceMatch-BQoiqLVh.esm.js +21 -0
  229. package/dist/qe-signature.d.ts +2 -2
  230. package/dist/qe-signature.esm.js +1 -1
  231. package/dist/recordingService-CSCvD2tB.esm.js +404 -0
  232. package/dist/redirect-to-mobile.d.ts +2 -2
  233. package/dist/redirect-to-mobile.esm.js +2 -2
  234. package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Db99n9Yu.d.ts} +7 -4
  235. package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-Dcpg5GfP.esm.js} +10 -6
  236. package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-BMehrtVP.esm.js} +82 -46
  237. package/dist/resolveForm-DaaQSVWp.esm.js +146 -0
  238. package/dist/{runChildModule-DSpP41Hl.esm.js → runChildModule-DNEmc7of.esm.js} +9 -7
  239. package/dist/{sdkVersion-DKHwWEyH.esm.js → sdkVersion-etdZfyCR.esm.js} +1 -1
  240. package/dist/selfie.d.ts +6 -6
  241. package/dist/selfie.esm.js +15 -13
  242. package/dist/{selfieErrorUtils-DoN1KFSQ.esm.js → selfieErrorUtils-DT-uhK20.esm.js} +1 -1
  243. package/dist/{selfieManager-DtQegA6T.esm.js → selfieManager-CdS6a7Q8.esm.js} +7 -6
  244. package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-DrBYj5kA.d.ts} +2 -2
  245. package/dist/{selfieStateMachine-CnCwJZuC.esm.js → selfieStateMachine-ChCl3nyf.esm.js} +5 -5
  246. package/dist/{session-CNUfjlRc.esm.js → session-VXYuRYzb.esm.js} +78 -9
  247. package/dist/session.d.ts +85 -9
  248. package/dist/session.esm.js +7 -6
  249. package/dist/{sessionInitializer-JM_glXR2.esm.js → sessionInitializer-BT_CmYcX.esm.js} +442 -208
  250. package/dist/{setup-C5tfWt6W.esm.js → setup-BXrgDdfx.esm.js} +42 -29
  251. package/dist/{setup-YPKTUCY5.d.ts → setup-rcXgYUcY.d.ts} +7 -6
  252. package/dist/signature.d.ts +1 -1
  253. package/dist/signature.esm.js +2 -2
  254. package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-B737Gkvk.esm.js} +5 -3
  255. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  256. package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-B-QG7fk0.esm.js} +5 -7
  257. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  258. package/dist/{stats-BEvexnKC.esm.js → stats-CrqhpKkP.esm.js} +1 -1
  259. package/dist/stats.esm.js +1 -1
  260. package/dist/step-up.d.ts +379 -0
  261. package/dist/step-up.esm.js +640 -0
  262. package/dist/textRules-D4NRinKY.d.ts +41 -0
  263. package/dist/{tri-xzRLIIMN.esm.js → tri-BD9z6z0w.esm.js} +137 -8
  264. package/dist/tri.d.ts +2 -2
  265. package/dist/tri.esm-DYdFtcDH.esm.js +3105 -0
  266. package/dist/tri.esm.js +2 -2
  267. package/dist/trueSight-BymJD5cW.esm.js +1 -0
  268. package/dist/{trueSightService-fLmL_cyg.esm.js → trueSightService-BwyLhIAo.esm.js} +25 -14
  269. package/dist/trust-graph.d.ts +87 -27
  270. package/dist/trust-graph.esm.js +6 -25
  271. package/dist/trustGraphStateMachine-BxvReuo1.esm.js +58 -0
  272. package/dist/{types-B6HsSzpk.d.ts → types-4Re9FSOw.d.ts} +77 -8
  273. package/dist/types-B-PIc0en.d.ts +115 -0
  274. package/dist/types-B9C8W01q.d.ts +34 -0
  275. package/dist/types-BNkzXOXE.d.ts +45 -0
  276. package/dist/{types-0L-eFDmr.d.ts → types-BgRHw-dR.d.ts} +1 -1
  277. package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
  278. package/dist/types-BtrJ5fkm.d.ts +6 -0
  279. package/dist/{types-Ckir_BEs.d.ts → types-C1056-J1.d.ts} +3 -2
  280. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  281. package/dist/{events-Du2A4-Qr.esm.js → types-CBQN04Rh.esm.js} +6 -300
  282. package/dist/{types-yPH8lAH-.d.ts → types-CEGG70FK.d.ts} +16 -3
  283. package/dist/types-CTaL0XJz.d.ts +80 -0
  284. package/dist/types-CXTDuzUJ.d.ts +16 -0
  285. package/dist/{types-BEwVKkLJ.d.ts → types-CeEcakO7.d.ts} +7 -1
  286. package/dist/{types-DUnFZ08M.d.ts → types-Cy6Lx3L6.d.ts} +18 -10
  287. package/dist/types-DEa3taWc.d.ts +217 -0
  288. package/dist/{types-CK8Jbjkp.d.ts → types-DHpz4Y37.d.ts} +1 -1
  289. package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
  290. package/dist/{types-BAxn7MpY.d.ts → types-b0l9b83G.d.ts} +134 -52
  291. package/dist/urlUtils-B2wagB5v.esm.js +39 -0
  292. package/dist/usStates-CwOQ2kAx.esm.js +209 -0
  293. package/dist/video-selfie.d.ts +17 -15
  294. package/dist/video-selfie.esm.js +100 -24
  295. package/dist/{videoSelfieCameraWarmer-BBNKiau1.esm.js → videoSelfieCameraWarmer-DgRlU_8q.esm.js} +27 -28
  296. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  297. package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-DC_Qh7qI.d.ts} +24 -9
  298. package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
  299. package/dist/{warmup-BElYWRh7.esm.js → warmup-BN8dG2KX.esm.js} +378 -57
  300. package/dist/{warmup-BO57syF6.d.ts → warmup-SWu5L7cW.d.ts} +19 -2
  301. package/dist/wasm.d.ts +9 -3
  302. package/dist/wasm.esm.js +3 -3
  303. package/dist/wasmDeepsightConfigSync-DukEcrU8.esm.js +77 -0
  304. package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-DwBfTlgB.esm.js} +1 -1
  305. package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-B2P6Vlvv.esm.js} +77 -29
  306. package/dist/watchlist-for-business.d.ts +2 -1
  307. package/dist/watchlist-for-business.esm.js +2 -2
  308. package/dist/watchlist.d.ts +1 -1
  309. package/dist/watchlist.esm.js +2 -2
  310. package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-DxeSH80T.esm.js} +40 -8
  311. package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +57 -21
  312. package/dist/watchlistForBusinessStateMachine-BC9UWLuZ.esm.js +169 -0
  313. package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-BHzmC9OC.esm.js} +5 -3
  314. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  315. package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-Bxzn16iJ.esm.js} +4 -6
  316. package/dist/workflow.d.ts +10 -6
  317. package/dist/workflow.esm.js +95 -60
  318. package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
  319. package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
  320. package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
  321. package/package.json +35 -8
  322. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  323. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
  324. package/dist/addressSearch-DPjIKJrX.esm.js +0 -563
  325. package/dist/camera-9wWD-pwg.d.ts +0 -4
  326. package/dist/cpf-uAZTPUBy.esm.js +0 -61
  327. package/dist/deepsightLoader-sH7920zw.esm.js +0 -55
  328. package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
  329. package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
  330. package/dist/flowServices-X6Rwf_7E.esm.js +0 -688
  331. package/dist/index-DpTj5PFb.d.ts +0 -1
  332. package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
  333. package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
  334. package/dist/types-BvLo3U4u.d.ts +0 -134
  335. package/dist/types-zOgZqMni.d.ts +0 -6
  336. package/dist/urlUtils-6jsE6rKp.esm.js +0 -23
  337. package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
  338. /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
@@ -0,0 +1,1501 @@
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.3",
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
+ }
554
+ },
555
+ {
556
+ id: "US_STATES",
557
+ type: "optionList",
558
+ since: "1.0",
559
+ values: [
560
+ "AL",
561
+ "AK",
562
+ "AZ",
563
+ "AR",
564
+ "CA",
565
+ "CO",
566
+ "CT",
567
+ "DE",
568
+ "FL",
569
+ "GA",
570
+ "HI",
571
+ "ID",
572
+ "IL",
573
+ "IN",
574
+ "IA",
575
+ "KS",
576
+ "KY",
577
+ "LA",
578
+ "ME",
579
+ "MD",
580
+ "MA",
581
+ "MI",
582
+ "MN",
583
+ "MS",
584
+ "MO",
585
+ "MT",
586
+ "NE",
587
+ "NV",
588
+ "NH",
589
+ "NJ",
590
+ "NM",
591
+ "NY",
592
+ "NC",
593
+ "ND",
594
+ "OH",
595
+ "OK",
596
+ "OR",
597
+ "PA",
598
+ "RI",
599
+ "SC",
600
+ "SD",
601
+ "TN",
602
+ "TX",
603
+ "UT",
604
+ "VT",
605
+ "VA",
606
+ "WA",
607
+ "WV",
608
+ "WI",
609
+ "WY"
610
+ ]
611
+ },
612
+ {
613
+ id: "CA_PROVINCES",
614
+ type: "optionList",
615
+ since: "1.0",
616
+ values: [
617
+ "AB",
618
+ "BC",
619
+ "MB",
620
+ "NB",
621
+ "NL",
622
+ "NS",
623
+ "ON",
624
+ "PE",
625
+ "QC",
626
+ "SK",
627
+ "NT",
628
+ "NU",
629
+ "YT"
630
+ ]
631
+ },
632
+ {
633
+ id: "BR_STATES",
634
+ type: "optionList",
635
+ since: "1.0",
636
+ values: [
637
+ "AC",
638
+ "AL",
639
+ "AP",
640
+ "AM",
641
+ "BA",
642
+ "CE",
643
+ "DF",
644
+ "ES",
645
+ "GO",
646
+ "MA",
647
+ "MT",
648
+ "MS",
649
+ "MG",
650
+ "PA",
651
+ "PB",
652
+ "PR",
653
+ "PE",
654
+ "PI",
655
+ "RJ",
656
+ "RN",
657
+ "RS",
658
+ "RO",
659
+ "RR",
660
+ "SC",
661
+ "SP",
662
+ "SE",
663
+ "TO"
664
+ ]
665
+ },
666
+ {
667
+ id: "IN_STATES",
668
+ type: "optionList",
669
+ since: "1.0",
670
+ values: [
671
+ "AN",
672
+ "AP",
673
+ "AR",
674
+ "AS",
675
+ "BR",
676
+ "CH",
677
+ "CT",
678
+ "DH",
679
+ "DL",
680
+ "GA",
681
+ "GJ",
682
+ "HR",
683
+ "HP",
684
+ "JK",
685
+ "JH",
686
+ "KA",
687
+ "KL",
688
+ "LA",
689
+ "LD",
690
+ "MP",
691
+ "MH",
692
+ "MN",
693
+ "ML",
694
+ "MZ",
695
+ "NL",
696
+ "OR",
697
+ "PY",
698
+ "PB",
699
+ "RJ",
700
+ "SK",
701
+ "TN",
702
+ "TG",
703
+ "TR",
704
+ "UP",
705
+ "UK",
706
+ "WB"
707
+ ]
708
+ },
709
+ {
710
+ id: "PH_ID_TYPES",
711
+ type: "optionList",
712
+ since: "1.0",
713
+ values: [
714
+ "TIN",
715
+ "SSS",
716
+ "GSIS"
717
+ ]
718
+ },
719
+ {
720
+ id: "riskAddon",
721
+ type: "condition",
722
+ since: "1.0"
723
+ },
724
+ {
725
+ id: "fieldFilled",
726
+ type: "condition",
727
+ since: "1.0"
728
+ },
729
+ {
730
+ id: "name",
731
+ type: "group",
732
+ modules: ["ekyc", "ekycprefill"],
733
+ enabledBy: ["checkName"],
734
+ sourceKey: "nameSource",
735
+ displayModeKey: "nameDisplayMode",
736
+ since: "1.0"
737
+ },
738
+ {
739
+ id: "dateOfBirth",
740
+ type: "group",
741
+ modules: ["ekyc", "ekycprefill"],
742
+ enabledBy: ["checkDob"],
743
+ sourceKey: "dobSource",
744
+ displayModeKey: "dobDisplayMode",
745
+ since: "1.0"
746
+ },
747
+ {
748
+ id: "email",
749
+ type: "group",
750
+ modules: ["ekyc", "kybChecks"],
751
+ enabledBy: ["checkEmail", "riskAddon:emailCheck"],
752
+ sourceKey: "emailSource",
753
+ displayModeKey: "emailDisplayMode",
754
+ since: "1.0"
755
+ },
756
+ {
757
+ id: "phone",
758
+ type: "group",
759
+ modules: [
760
+ "ekyc",
761
+ "kybChecks",
762
+ "ekycprefill"
763
+ ],
764
+ enabledBy: [
765
+ "checkPhone",
766
+ "riskAddon:phoneCheck",
767
+ "riskAddon:advancedPhoneCheck",
768
+ "riskAddon:phoneProfile"
769
+ ],
770
+ sourceKey: "phoneSource",
771
+ displayModeKey: "phoneDisplayMode",
772
+ since: "1.0"
773
+ },
774
+ {
775
+ id: "address",
776
+ type: "group",
777
+ modules: [
778
+ "ekyc",
779
+ "ekyb",
780
+ "kybChecks"
781
+ ],
782
+ enabledBy: ["checkAddress"],
783
+ sourceKey: "addressSource",
784
+ displayModeKey: "addressDisplayMode",
785
+ since: "1.0"
786
+ },
787
+ {
788
+ id: "ssn",
789
+ type: "group",
790
+ modules: ["ekyc", "ekycprefill"],
791
+ enabledBy: ["checkSsn"],
792
+ sourceKey: "ssnSource",
793
+ displayModeKey: "ssnDisplayMode",
794
+ since: "1.0"
795
+ },
796
+ {
797
+ id: "last4SSN",
798
+ type: "group",
799
+ modules: ["ekyc"],
800
+ enabledBy: ["checkLast4SSN"],
801
+ sourceKey: "last4SSNSource",
802
+ displayModeKey: "last4SSNDisplayMode",
803
+ since: "1.0"
804
+ },
805
+ {
806
+ id: "idNumber",
807
+ type: "group",
808
+ modules: ["ekyc"],
809
+ enabledBy: ["checkIdNum"],
810
+ sourceKey: "idNumSource",
811
+ displayModeKey: "idNumDisplayMode",
812
+ since: "1.0"
813
+ },
814
+ {
815
+ id: "idNumber1",
816
+ type: "group",
817
+ modules: ["ekyc"],
818
+ enabledBy: ["checkIdNum1"],
819
+ sourceKey: "idNum1Source",
820
+ displayModeKey: "idNum1DisplayMode",
821
+ since: "1.0"
822
+ },
823
+ {
824
+ id: "nationality",
825
+ type: "group",
826
+ modules: ["ekyc"],
827
+ enabledBy: ["checkNationality"],
828
+ sourceKey: "nationalitySource",
829
+ displayModeKey: "nationalityDisplayMode",
830
+ since: "1.0"
831
+ },
832
+ {
833
+ id: "gender",
834
+ type: "group",
835
+ modules: ["ekyc"],
836
+ enabledBy: ["checkGender"],
837
+ sourceKey: "genderSource",
838
+ displayModeKey: "genderDisplayMode",
839
+ since: "1.0"
840
+ },
841
+ {
842
+ id: "panNumber",
843
+ type: "group",
844
+ modules: ["ekyc"],
845
+ enabledBy: ["checkPanNumber"],
846
+ sourceKey: "panNumberSource",
847
+ displayModeKey: "panNumberDisplayMode",
848
+ since: "1.0"
849
+ },
850
+ {
851
+ id: "dlNumber",
852
+ type: "group",
853
+ modules: ["ekyc"],
854
+ enabledBy: ["checkDlNumber"],
855
+ sourceKey: "dlNumberSource",
856
+ displayModeKey: "dlNumberDisplayMode",
857
+ since: "1.0"
858
+ },
859
+ {
860
+ id: "dlState",
861
+ type: "group",
862
+ modules: ["ekyc"],
863
+ enabledBy: ["checkDlState"],
864
+ sourceKey: "dlStateSource",
865
+ displayModeKey: "dlStateDisplayMode",
866
+ since: "1.0"
867
+ },
868
+ {
869
+ id: "dlExpireAt",
870
+ type: "group",
871
+ modules: ["ekyc"],
872
+ enabledBy: ["checkDlExpireAt"],
873
+ sourceKey: "dlExpireAtSource",
874
+ displayModeKey: "dlExpireAtDisplayMode",
875
+ since: "1.0"
876
+ },
877
+ {
878
+ id: "idType",
879
+ type: "group",
880
+ modules: ["ekyc"],
881
+ enabledBy: ["checkIdType"],
882
+ sourceKey: "idTypeSource",
883
+ displayModeKey: "idTypeDisplayMode",
884
+ since: "1.2"
885
+ },
886
+ {
887
+ id: "issueDate",
888
+ type: "group",
889
+ modules: ["ekyc"],
890
+ enabledBy: ["checkIssueDate"],
891
+ sourceKey: "issueDateSource",
892
+ displayModeKey: "issueDateDisplayMode",
893
+ since: "1.2"
894
+ },
895
+ {
896
+ id: "fileNumber",
897
+ type: "group",
898
+ modules: ["ekyc"],
899
+ enabledBy: ["checkFileNumber"],
900
+ sourceKey: "fileNumberSource",
901
+ displayModeKey: "fileNumberDisplayMode",
902
+ since: "1.2"
903
+ },
904
+ {
905
+ id: "businessName",
906
+ type: "group",
907
+ modules: ["ekyb", "kybChecks"],
908
+ enabledBy: ["checkBusinessName"],
909
+ since: "1.0"
910
+ },
911
+ {
912
+ id: "taxId",
913
+ type: "group",
914
+ modules: ["ekyb", "kybChecks"],
915
+ enabledBy: ["checkTaxId"],
916
+ since: "1.0"
917
+ },
918
+ {
919
+ id: "ubos",
920
+ type: "group",
921
+ modules: ["ekyb"],
922
+ enabledBy: ["checkUniqueBeneficialOwner"],
923
+ since: "1.0"
924
+ },
925
+ {
926
+ id: "country",
927
+ type: "group",
928
+ modules: ["kybChecks"],
929
+ since: "1.3"
930
+ },
931
+ {
932
+ id: "website",
933
+ type: "group",
934
+ modules: ["kybChecks"],
935
+ since: "1.3"
936
+ },
937
+ {
938
+ id: "alternativeNames",
939
+ type: "group",
940
+ modules: ["kybChecks"],
941
+ since: "1.3"
942
+ },
943
+ {
944
+ id: "personNames",
945
+ type: "group",
946
+ modules: ["kybChecks"],
947
+ since: "1.3"
948
+ },
949
+ {
950
+ id: "other",
951
+ type: "group",
952
+ modules: ["kybChecks"],
953
+ since: "1.3"
954
+ },
955
+ {
956
+ id: "editable",
957
+ type: "displayMode",
958
+ since: "1.2"
959
+ },
960
+ {
961
+ id: "readOnly",
962
+ type: "displayMode",
963
+ since: "1.2"
964
+ },
965
+ {
966
+ id: "hidden",
967
+ type: "displayMode",
968
+ since: "1.2"
969
+ },
970
+ {
971
+ id: "userInput",
972
+ type: "prefillOrigin",
973
+ since: "1.2",
974
+ configValues: ["userInput"]
975
+ },
976
+ {
977
+ id: "document",
978
+ type: "prefillOrigin",
979
+ since: "1.2",
980
+ configValues: ["document"]
981
+ },
982
+ {
983
+ id: "poa",
984
+ type: "prefillOrigin",
985
+ since: "1.2",
986
+ configValues: ["poa"]
987
+ },
988
+ {
989
+ id: "phoneModule",
990
+ type: "prefillOrigin",
991
+ since: "1.2",
992
+ configValues: ["phoneModuleInput"],
993
+ riskAddons: ["phoneCheck", "phoneProfile"],
994
+ groups: ["phone"],
995
+ locks: true
996
+ },
997
+ {
998
+ id: "emailModule",
999
+ type: "prefillOrigin",
1000
+ since: "1.2",
1001
+ configValues: ["emailModuleInput"],
1002
+ riskAddons: ["emailCheck"],
1003
+ groups: ["email"],
1004
+ locks: true
1005
+ },
1006
+ {
1007
+ id: "document.firstName",
1008
+ type: "prefillSource",
1009
+ origin: "document",
1010
+ since: "1.2"
1011
+ },
1012
+ {
1013
+ id: "document.middleName",
1014
+ type: "prefillSource",
1015
+ origin: "document",
1016
+ since: "1.2"
1017
+ },
1018
+ {
1019
+ id: "document.paternalLastName",
1020
+ type: "prefillSource",
1021
+ origin: "document",
1022
+ since: "1.2"
1023
+ },
1024
+ {
1025
+ id: "document.maternalLastName",
1026
+ type: "prefillSource",
1027
+ origin: "document",
1028
+ since: "1.2"
1029
+ },
1030
+ {
1031
+ id: "document.birthDate",
1032
+ type: "prefillSource",
1033
+ origin: "document",
1034
+ since: "1.2",
1035
+ kinds: ["date"]
1036
+ },
1037
+ {
1038
+ id: "document.issueDate",
1039
+ type: "prefillSource",
1040
+ origin: "document",
1041
+ since: "1.2",
1042
+ kinds: ["date"]
1043
+ },
1044
+ {
1045
+ id: "document.street",
1046
+ type: "prefillSource",
1047
+ origin: "document",
1048
+ since: "1.2"
1049
+ },
1050
+ {
1051
+ id: "document.houseNumber",
1052
+ type: "prefillSource",
1053
+ origin: "document",
1054
+ since: "1.2"
1055
+ },
1056
+ {
1057
+ id: "document.city",
1058
+ type: "prefillSource",
1059
+ origin: "document",
1060
+ since: "1.2"
1061
+ },
1062
+ {
1063
+ id: "document.state",
1064
+ type: "prefillSource",
1065
+ origin: "document",
1066
+ since: "1.2"
1067
+ },
1068
+ {
1069
+ id: "document.postalCode",
1070
+ type: "prefillSource",
1071
+ origin: "document",
1072
+ since: "1.2"
1073
+ },
1074
+ {
1075
+ id: "document.documentNumber",
1076
+ type: "prefillSource",
1077
+ origin: "document",
1078
+ since: "1.2"
1079
+ },
1080
+ {
1081
+ id: "document.personalNumber",
1082
+ type: "prefillSource",
1083
+ origin: "document",
1084
+ since: "1.2"
1085
+ },
1086
+ {
1087
+ id: "document.driversLicenseNumber",
1088
+ type: "prefillSource",
1089
+ origin: "document",
1090
+ since: "1.2"
1091
+ },
1092
+ {
1093
+ id: "document.driversLicenseState",
1094
+ type: "prefillSource",
1095
+ origin: "document",
1096
+ since: "1.2"
1097
+ },
1098
+ {
1099
+ id: "poa.firstName",
1100
+ type: "prefillSource",
1101
+ origin: "poa",
1102
+ since: "1.2"
1103
+ },
1104
+ {
1105
+ id: "poa.lastName",
1106
+ type: "prefillSource",
1107
+ origin: "poa",
1108
+ since: "1.2"
1109
+ },
1110
+ {
1111
+ id: "poa.street",
1112
+ type: "prefillSource",
1113
+ origin: "poa",
1114
+ since: "1.2"
1115
+ },
1116
+ {
1117
+ id: "poa.houseNumber",
1118
+ type: "prefillSource",
1119
+ origin: "poa",
1120
+ since: "1.2"
1121
+ },
1122
+ {
1123
+ id: "poa.city",
1124
+ type: "prefillSource",
1125
+ origin: "poa",
1126
+ since: "1.2"
1127
+ },
1128
+ {
1129
+ id: "poa.state",
1130
+ type: "prefillSource",
1131
+ origin: "poa",
1132
+ since: "1.2"
1133
+ },
1134
+ {
1135
+ id: "poa.postalCode",
1136
+ type: "prefillSource",
1137
+ origin: "poa",
1138
+ since: "1.2"
1139
+ },
1140
+ {
1141
+ id: "phoneModule.phone",
1142
+ type: "prefillSource",
1143
+ origin: "phoneModule",
1144
+ since: "1.2",
1145
+ kinds: ["phone"]
1146
+ },
1147
+ {
1148
+ id: "emailModule.email",
1149
+ type: "prefillSource",
1150
+ origin: "emailModule",
1151
+ since: "1.2"
1152
+ }
1153
+ ]
1154
+ };
1155
+ //#endregion
1156
+ //#region src/modules/ekyc/ekycConsts.ts
1157
+ const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER", "US_CREDIT_TELCO"];
1158
+ const STATE_CODE_HINTS = {
1159
+ US: "CA, NY",
1160
+ CA: "ON, QC",
1161
+ BR: "RJ, SP",
1162
+ MX: "JAL, NLE",
1163
+ GB: "ENG, SCT",
1164
+ ES: "MD, CT",
1165
+ AR: "B, C, K"
1166
+ };
1167
+ const ADDRESS_FIELDS = [
1168
+ "address",
1169
+ "houseNo",
1170
+ "street",
1171
+ "apartment",
1172
+ "address2",
1173
+ "city",
1174
+ "state",
1175
+ "postalCode"
1176
+ ];
1177
+ const DRIVERS_LICENSE_FIELDS = [
1178
+ "dlNumber",
1179
+ "dlState",
1180
+ "dlExpireAt"
1181
+ ];
1182
+ const NO_STATE_SOURCES = ["GR_1", "UK_VOTER_REGISTER"];
1183
+ const DOB_OPTIONAL_SOURCES = [
1184
+ "US_TELCO_1",
1185
+ "US_CREDIT_TELCO",
1186
+ "UK_VOTER_REGISTER"
1187
+ ];
1188
+ const ADDRESS_OPTIONAL_SOURCES = [
1189
+ "US_TELCO_1",
1190
+ "US_CREDIT_TELCO",
1191
+ "UK_VOTER_REGISTER",
1192
+ "BR_GOVT_1"
1193
+ ];
1194
+ const STREET_OPTIONAL_SOURCES = ["US_CREDIT_TELCO", "BR_GOVT_1"];
1195
+ const SSN_OPTIONAL_SOURCES = ["US_CREDIT_TELCO"];
1196
+ const LAST4SSN_OPTIONAL_SOURCES = ["US_TELCO_1"];
1197
+ const DRIVERS_LICENSE_OPTIONAL_SOURCES = ["US_TELCO_1"];
1198
+ const EMAIL_SOURCES = ["US_TELCO_1", "US_CREDIT_BUREAU_1"];
1199
+ const EMAIL_OPTIONAL_SOURCES = ["US_TELCO_1"];
1200
+ const PHONE_OPTIONAL_SOURCES = [
1201
+ "CA_RES_CREDIT",
1202
+ "UK_VOTER_REGISTER",
1203
+ "US_CREDIT_TELCO"
1204
+ ];
1205
+ /**
1206
+ * Groups of fields where at least one member must be filled. Members are
1207
+ * individually optional; the group rule enforces the "one of" requirement.
1208
+ */
1209
+ const ONE_OF_REQUIRED_GROUPS = { US_CREDIT_TELCO: [["dateOfBirth", "ssn"]] };
1210
+ const NAME_SOURCES = [
1211
+ "US_TELCO_1",
1212
+ "US_TELCO_2",
1213
+ "US_TELCO_4",
1214
+ "US_ADDRESS_1",
1215
+ "US_CREDIT_BUREAU_1",
1216
+ "US_CREDIT_TELCO",
1217
+ "US_DRIVERS_LICENSE_1",
1218
+ "CA_RES_CREDIT",
1219
+ "SERPRO",
1220
+ "SE_1",
1221
+ "GR_1",
1222
+ "GT_1",
1223
+ "AR_1",
1224
+ "ES_1",
1225
+ "UK_VOTER_REGISTER",
1226
+ "CL_1",
1227
+ "INDIA_PAN"
1228
+ ];
1229
+ const HOUSE_NO_SOURCES = [
1230
+ "SERPRO",
1231
+ "BR_GOVT_1",
1232
+ "GR_1",
1233
+ "ES_1"
1234
+ ];
1235
+ const STREET_SOURCES = [
1236
+ "US_TELCO_1",
1237
+ "US_TELCO_2",
1238
+ "US_CREDIT_BUREAU_1",
1239
+ "US_CREDIT_TELCO",
1240
+ "CA_RES_CREDIT",
1241
+ "SERPRO",
1242
+ "BR_GOVT_1",
1243
+ "AR_1",
1244
+ "ES_1",
1245
+ "UK_VOTER_REGISTER"
1246
+ ];
1247
+ const CITY_SOURCES = [
1248
+ "US_TELCO_1",
1249
+ "US_TELCO_2",
1250
+ "US_CREDIT_BUREAU_1",
1251
+ "US_CREDIT_TELCO",
1252
+ "CA_RES_CREDIT",
1253
+ "SERPRO",
1254
+ "BR_GOVT_1",
1255
+ "AR_1",
1256
+ "ES_1",
1257
+ "UK_VOTER_REGISTER"
1258
+ ];
1259
+ const ADDRESS_STATE_SOURCES = [
1260
+ "US_TELCO_1",
1261
+ "US_TELCO_2",
1262
+ "US_CREDIT_BUREAU_1",
1263
+ "US_CREDIT_TELCO",
1264
+ "US_DRIVERS_LICENSE_1",
1265
+ "CA_RES_CREDIT",
1266
+ "SERPRO",
1267
+ "BR_GOVT_1",
1268
+ "AR_1",
1269
+ "ES_1"
1270
+ ];
1271
+ const POSTAL_CODE_SOURCES = [
1272
+ "US_TELCO_1",
1273
+ "US_TELCO_2",
1274
+ "US_CREDIT_BUREAU_1",
1275
+ "US_CREDIT_TELCO",
1276
+ "CA_RES_CREDIT",
1277
+ "SERPRO",
1278
+ "BR_GOVT_1",
1279
+ "AR_1",
1280
+ "ES_1",
1281
+ "UK_VOTER_REGISTER"
1282
+ ];
1283
+ const APARTMENT_SOURCES = ["US_CREDIT_TELCO"];
1284
+ const TAX_ID_SOURCES = [
1285
+ "GT_1",
1286
+ "ES_1",
1287
+ "CL_1"
1288
+ ];
1289
+ const MIDDLE_NAME_SOURCES = [
1290
+ "US_CREDIT_BUREAU_1",
1291
+ "CA_RES_CREDIT",
1292
+ "UK_VOTER_REGISTER",
1293
+ "GR_1",
1294
+ "AR_1",
1295
+ "ES_1",
1296
+ "CL_1",
1297
+ "INDIA_PAN"
1298
+ ];
1299
+ /** Risk addons that replace a `RISK_ADDONS_ONLY` source with their own. */
1300
+ const RISK_ADDON_SOURCE_OVERRIDES = { phoneProfile: "PHONE_PROFILE" };
1301
+ /** Sources whose submit payload must not carry `countryCode`. */
1302
+ const COUNTRY_CODE_OMITTED_SOURCES = ["PHONE_PROFILE"];
1303
+ //#endregion
1304
+ //#region src/modules/ekyc/ekycUtils.ts
1305
+ var ekycUtils_exports = /* @__PURE__ */ __exportAll({
1306
+ EKYC_GROUP_KEYS: () => EKYC_GROUP_KEYS,
1307
+ NO_STATE_SOURCES: () => NO_STATE_SOURCES,
1308
+ getEKYCCountry: () => getEKYCCountry,
1309
+ getEKYCDisplayModes: () => getEKYCDisplayModes,
1310
+ getEKYCFields: () => getEKYCFields,
1311
+ indexCountries: () => indexCountries,
1312
+ isFieldOptional: () => isFieldOptional,
1313
+ legacyEkycCountry: () => legacyEkycCountry,
1314
+ mapToEKYCvalue: () => mapToEKYCvalue,
1315
+ resolveEkycSource: () => resolveEkycSource,
1316
+ toEkycConfig: () => toEkycConfig
1317
+ });
1318
+ function mapToEKYCvalue(field) {
1319
+ switch (field) {
1320
+ case "poa": return "poa_document";
1321
+ case "document": return "document_scan";
1322
+ case "phoneModuleInput": return "phone_module_input";
1323
+ case "emailModuleInput": return "email_module_input";
1324
+ default: return "user_input";
1325
+ }
1326
+ }
1327
+ /**
1328
+ * Resolves the source sent to the backend. A `RISK_ADDONS_ONLY` source is
1329
+ * replaced by the first configured addon that defines its own source
1330
+ * (e.g. `phoneProfile` → `PHONE_PROFILE`); any other source is kept.
1331
+ */
1332
+ function resolveEkycSource(source, riskAddons) {
1333
+ if (source !== "RISK_ADDONS_ONLY") return source;
1334
+ return riskAddons?.map((addon) => RISK_ADDON_SOURCE_OVERRIDES[addon]).find(Boolean) ?? source;
1335
+ }
1336
+ /**
1337
+ * eKYC group id → the key `getEKYCFields` sets in `EkycVerificationFields`, in
1338
+ * the order `getEKYCFields` has always written them.
1339
+ */
1340
+ const EKYC_GROUP_KEYS = {
1341
+ name: "name",
1342
+ ssn: "SSN",
1343
+ address: "address",
1344
+ dateOfBirth: "date of birth",
1345
+ email: "email",
1346
+ phone: "phone",
1347
+ nationality: "nationality",
1348
+ dlNumber: "dlNumber",
1349
+ dlState: "dlState",
1350
+ dlExpireAt: "dlExpireAt",
1351
+ last4SSN: "last4SSN",
1352
+ idNumber: "idNum",
1353
+ idNumber1: "idNum1",
1354
+ gender: "gender",
1355
+ panNumber: "panNumber",
1356
+ idType: "idType",
1357
+ issueDate: "issueDate",
1358
+ fileNumber: "fileNumber"
1359
+ };
1360
+ const RISK_ADDON_PREFIX = "riskAddon:";
1361
+ /**
1362
+ * Each verification field's switches, from its vocabulary group: the config
1363
+ * flags and risk add-ons that turn it on (`enabledBy`, where a risk add-on is
1364
+ * `riskAddon:<id>`), and the config key that names its source (`sourceKey`).
1365
+ */
1366
+ const FIELD_SWITCHES = Object.entries(EKYC_GROUP_KEYS).flatMap(([id, field]) => {
1367
+ const group = VOCABULARY.entries.find((entry) => entry.type === "group" && entry.id === id);
1368
+ if (!group?.enabledBy?.length || !group.sourceKey) throw new Error(`eKYC group "${id}" has no enabledBy or sourceKey in the vocabulary`);
1369
+ const enabledBy = group.enabledBy;
1370
+ return [{
1371
+ field,
1372
+ flags: enabledBy.filter((flag) => !flag.startsWith(RISK_ADDON_PREFIX)),
1373
+ riskAddons: enabledBy.filter((flag) => flag.startsWith(RISK_ADDON_PREFIX)).map((flag) => flag.slice(10)),
1374
+ sourceKey: group.sourceKey
1375
+ }];
1376
+ });
1377
+ /** Maps raw backend module config to a field-source mapping */
1378
+ function getEKYCFields(config) {
1379
+ const values = config;
1380
+ const riskAddons = config.riskAddons;
1381
+ const fields = {};
1382
+ for (const switches of FIELD_SWITCHES) {
1383
+ const on = switches.flags.some((flag) => values[flag]) || switches.riskAddons.some((addon) => riskAddons?.includes(addon));
1384
+ const source = values[switches.sourceKey];
1385
+ fields[switches.field] = on ? mapToEKYCvalue(typeof source === "string" ? source : "") : false;
1386
+ }
1387
+ return fields;
1388
+ }
1389
+ /**
1390
+ * Each verification field's display-mode key in module configuration, from
1391
+ * the vocabulary's `displayModeKey` on its group.
1392
+ */
1393
+ const DISPLAY_MODE_KEYS = new Map(VOCABULARY.entries.flatMap((entry) => {
1394
+ const field = EKYC_GROUP_KEYS[entry.id];
1395
+ return entry.type === "group" && field && entry.displayModeKey ? [[field, entry.displayModeKey]] : [];
1396
+ }));
1397
+ const DISPLAY_MODES = new Set(VOCABULARY.entries.filter((entry) => entry.type === "displayMode").map((entry) => entry.id));
1398
+ /** Maps raw backend module config to each field's configured display mode. */
1399
+ function getEKYCDisplayModes(config) {
1400
+ const modes = {};
1401
+ const values = config;
1402
+ for (const [field, key] of DISPLAY_MODE_KEYS) {
1403
+ const mode = values[key];
1404
+ if (typeof mode === "string" && DISPLAY_MODES.has(mode)) modes[field] = mode;
1405
+ }
1406
+ return modes;
1407
+ }
1408
+ function indexCountries(entries) {
1409
+ const countries = /* @__PURE__ */ new Map();
1410
+ const ambiguous = /* @__PURE__ */ new Set();
1411
+ for (const entry of entries) {
1412
+ if (!entry.country) continue;
1413
+ for (const id of [entry.source, ...entry.aliases ?? []]) {
1414
+ if (!id || ambiguous.has(id)) continue;
1415
+ const known = countries.get(id);
1416
+ if (known === void 0) countries.set(id, entry.country);
1417
+ else if (known !== entry.country) {
1418
+ countries.delete(id);
1419
+ ambiguous.add(id);
1420
+ }
1421
+ }
1422
+ }
1423
+ return countries;
1424
+ }
1425
+ const INDEXED_COUNTRIES = indexCountries(EKYC_INDEX);
1426
+ /** Maps a verification source string to a country code */
1427
+ function getEKYCCountry(source) {
1428
+ return INDEXED_COUNTRIES.get(source) ?? legacyEkycCountry(source);
1429
+ }
1430
+ /** Today's source → country switch, the fallback when the index has no entry. */
1431
+ function legacyEkycCountry(source) {
1432
+ switch (source) {
1433
+ case "BR_GOVT_1":
1434
+ case "SERPRO": return "BR";
1435
+ case "MX_CONSUMER_1": return "MX";
1436
+ case "UK_CREDIT_BUREAU_1":
1437
+ case "UK_VOTER_REGISTER": return "GB";
1438
+ case "ES_1": return "ES";
1439
+ case "CL_1": return "CL";
1440
+ case "AR_1": return "AR";
1441
+ case "GR_1": return "GR";
1442
+ case "GT_1": return "GT";
1443
+ case "CO_1": return "CO";
1444
+ case "CR_1": return "CR";
1445
+ case "CA_RES_CREDIT": return "CA";
1446
+ case "INDIA_PAN": return "IN";
1447
+ default: return "US";
1448
+ }
1449
+ }
1450
+ /**
1451
+ * Returns true if the input carries any raw-shape signal — i.e. a non-empty
1452
+ * `source` or at least one `check*` flag set. Used by `toEkycConfig` to
1453
+ * distinguish a raw backend config from an unconfigured / empty input.
1454
+ */
1455
+ function hasRawSignal(c) {
1456
+ 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);
1457
+ }
1458
+ /**
1459
+ * Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
1460
+ *
1461
+ * Accepts either:
1462
+ * - A manager-ready `EkycConfig` (with `flowId` or `verificationFields`) →
1463
+ * returned unchanged.
1464
+ * - A raw backend `EkycModuleConfig` (with `source` + `check*` / `*Source`
1465
+ * fields, as embedded in a workflow node or returned by
1466
+ * `/omni/flow/onboarding/configuration`) → derived into an `EkycConfig`.
1467
+ * - A config with no recognizable signal (e.g. `{}`) → returned unchanged,
1468
+ * so the machine still lands in `misconfigured` instead of a silent
1469
+ * empty form.
1470
+ *
1471
+ * Idempotent: `toEkycConfig(toEkycConfig(x))` equals `toEkycConfig(x)`.
1472
+ */
1473
+ function toEkycConfig(config) {
1474
+ if (config.flowId || config.verificationFields) return config;
1475
+ if (!hasRawSignal(config)) return config;
1476
+ const source = resolveEkycSource(config.source ?? "", config.riskAddons);
1477
+ const displayModes = getEKYCDisplayModes(config);
1478
+ return {
1479
+ verificationFields: getEKYCFields(config),
1480
+ source,
1481
+ fieldsCountry: getEKYCCountry(source),
1482
+ enablePhoneRisk: config.enablePhoneRisk,
1483
+ ...config.autoExecution === true && { autoExecution: true },
1484
+ ...Object.keys(displayModes).length > 0 && { displayModes }
1485
+ };
1486
+ }
1487
+ /** Determines if a field is optional given the current config source */
1488
+ function isFieldOptional(fieldName, configSource) {
1489
+ if (fieldName === "middleName") return true;
1490
+ if (fieldName === "dateOfBirth") return DOB_OPTIONAL_SOURCES.includes(configSource);
1491
+ if (fieldName === "street") return STREET_OPTIONAL_SOURCES.includes(configSource);
1492
+ if (ADDRESS_FIELDS.includes(fieldName)) return ADDRESS_OPTIONAL_SOURCES.includes(configSource);
1493
+ if (fieldName === "ssn") return SSN_OPTIONAL_SOURCES.includes(configSource);
1494
+ if (fieldName === "last4SSN") return LAST4SSN_OPTIONAL_SOURCES.includes(configSource);
1495
+ if (DRIVERS_LICENSE_FIELDS.includes(fieldName)) return DRIVERS_LICENSE_OPTIONAL_SOURCES.includes(configSource);
1496
+ if (fieldName === "email") return EMAIL_OPTIONAL_SOURCES.includes(configSource);
1497
+ if (fieldName === "phone") return PHONE_OPTIONAL_SOURCES.includes(configSource);
1498
+ return false;
1499
+ }
1500
+ //#endregion
1501
+ export { TAX_ID_SOURCES as C, STREET_SOURCES as S, MIDDLE_NAME_SOURCES as _, getEKYCFields as a, POSTAL_CODE_SOURCES as b, resolveEkycSource as c, APARTMENT_SOURCES as d, CITY_SOURCES as f, HOUSE_NO_SOURCES as g, EMAIL_SOURCES as h, getEKYCDisplayModes as i, toEkycConfig as l, COUNTRY_SELECTOR_DISABLED_SOURCES as m, ekycUtils_exports as n, isFieldOptional as o, COUNTRY_CODE_OMITTED_SOURCES as p, getEKYCCountry as r, mapToEKYCvalue as s, EKYC_GROUP_KEYS as t, ADDRESS_STATE_SOURCES as u, NAME_SOURCES as v, VOCABULARY as w, STATE_CODE_HINTS as x, ONE_OF_REQUIRED_GROUPS as y };