@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
@@ -1,41 +1,14 @@
1
- import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
2
- import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-X6Rwf_7E.esm.js";
3
- import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
5
- import { a as FIXED_DIGIT_POSTAL_CODE_LENGTH, c as getPostalCodeMaxLength, d as STREET_LEVEL_REQUIRED_ERROR, f as fillFromSuggestion, i as checkSupport, l as validatePostalCode, m as usStateOptions, n as resolveForm, o as formatPostalCode, p as getStreetLevelErrorForSuggestion, r as createBundledDefinitionSource, s as getPostalCodeErrorKey, t as debounceSearchActor, u as DYNAMIC_REQUIRED_KEY } from "./addressSearch-DPjIKJrX.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
2
+ import { n as getFlow } from "./flowServices-Bzq3piUR.esm.js";
3
+ import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
4
+ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
5
+ import { a as requiresAddressValidation, c as ADDRESS_FIELDS, d as FIELD_NAME_MAPPING, f as FIELD_ORDER, h as isSupportedCountry, i as isFormFieldEntry, l as ALL_COUNTRIES, m as UBO_FIELD_LABELS, n as hasAtLeastOneAddressField, o as sortModulesByOrder, r as isFieldOptional, s as toEkybConfig } from "./ekybUtils-Z9MhFAer.esm.js";
6
+ import { t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
7
+ import { n as requiresCnpjValidation, r as validateCNPJ } from "./cnpj-Bl_olpdX.esm.js";
8
+ import { a as getPostalCodeMaxLength, c as fillFromSuggestion, i as getPostalCodeErrorParams, l as getStreetLevelErrorForSuggestion, n as formatPostalCode, o as validatePostalCode, r as getPostalCodeErrorKey, s as STREET_LEVEL_REQUIRED_ERROR, t as createBundledDefinitionSource, u as keepSuggestionInOptions } from "./definitionSource-B-Z2EgJJ.esm.js";
9
+ import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
10
+ import { r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-BKlynuBr.esm.js";
6
11
  //#region src/modules/ekyb/ekybValidators.ts
7
- function cleanCnpjString(cnpj) {
8
- return cnpj.replace(/\./g, "").replace(/\//g, "").replace(/-/g, "");
9
- }
10
- function calculateVerificationDigit(cnpjString, factors) {
11
- let digit = 11 - factors.reduce((acc, factor, index) => acc + Number.parseInt(cnpjString.charAt(index), 10) * factor, 0) % 11;
12
- if (digit >= 10) digit = 0;
13
- return digit.toString();
14
- }
15
- /**
16
- * Validates a Brazilian CNPJ number (14-digit checksum).
17
- * Accepts formatted (00.000.000/0000-00) or unformatted input.
18
- */
19
- function validateCNPJ(cnpjInput) {
20
- if (!cnpjInput || typeof cnpjInput !== "string") return false;
21
- let cnpj = cnpjInput.trim();
22
- if (cnpj.length === 18) cnpj = cleanCnpjString(cnpj);
23
- if (cnpj.length !== 14) return false;
24
- if (!/^\d+$/.test(cnpj)) return false;
25
- if (INVALID_CNPJ_PATTERNS.includes(cnpj)) return false;
26
- const first = calculateVerificationDigit(cnpj, CNPJ_FIRST_DIGIT_FACTORS);
27
- if (cnpj.charAt(12) !== first) return false;
28
- const second = calculateVerificationDigit(cnpj, CNPJ_SECOND_DIGIT_FACTORS);
29
- if (cnpj.charAt(13) !== second) return false;
30
- return true;
31
- }
32
- const buildPostalCodeParams = (country) => {
33
- const fixedLen = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
34
- if (fixedLen !== void 0) return { length: fixedLen };
35
- let maxLen = getPostalCodeMaxLength(country);
36
- if (country === "US" || country === "BR") maxLen = maxLen - 1;
37
- return { maxLength: maxLen };
38
- };
39
12
  const createValidators = () => ({
40
13
  required: (value, _rule, field) => {
41
14
  if (value.trim().length > 0) return void 0;
@@ -59,7 +32,7 @@ const createValidators = () => ({
59
32
  if (validatePostalCode(value, rule.country)) return void 0;
60
33
  return {
61
34
  key: getPostalCodeErrorKey(rule.country),
62
- params: buildPostalCodeParams(rule.country)
35
+ params: getPostalCodeErrorParams(rule.country)
63
36
  };
64
37
  }
65
38
  });
@@ -113,69 +86,1084 @@ function validateUboGroup(ubos, hasUbos) {
113
86
  params: { fieldName: UBO_FIELD_LABELS.surname }
114
87
  };
115
88
  }
116
- }
117
- return errors;
118
- }
119
- /**
120
- * Full-form validation: per-field pass, then address cross-field pass, then
121
- * UBO pass. Per-field errors take precedence over cross-field errors for
122
- * the same key.
123
- */
124
- function validateEkybForm(values, fields, country, ubos, hasUbos) {
125
- const validators = createValidators();
126
- const perField = fields.reduce((acc, field) => {
127
- const value = normalizeFieldValue(values[field.name]);
128
- const error = evaluateRules(value, field.validation, field, validators);
129
- if (error) acc[field.name] = error;
130
- return acc;
131
- }, {});
132
- const addressGroup = validateAddressGroup(fields, values, country);
133
- const uboGroup = validateUboGroup(ubos, hasUbos);
134
- return {
135
- ...addressGroup,
136
- ...perField,
137
- ...uboGroup
138
- };
139
- }
140
- /**
141
- * Single-field validation (per-field only, no cross-field passes).
142
- * Intended for blur-triggered validation of regular form fields.
143
- */
144
- function validateEkybField(values, fieldName, fields) {
145
- const field = fields.find((f) => f.name === fieldName);
146
- if (!field) return void 0;
147
- const validators = createValidators();
148
- const value = normalizeFieldValue(values[field.name]);
149
- return evaluateRules(value, field.validation, field, validators);
150
- }
151
- /**
152
- * Single UBO field validation (blur-triggered).
153
- * fieldKey format: `ubo-{index}-name` or `ubo-{index}-surname`.
154
- * Returns undefined for non-default UBOs whose peer field is also empty
155
- * (user hasn't started filling that UBO entry yet).
156
- */
157
- function validateEkybUboField(ubos, fieldKey) {
158
- const match = fieldKey.match(/^ubo-(\d+)-(name|surname)$/);
159
- if (!match) return void 0;
160
- const index = Number(match[1]);
161
- const field = match[2];
162
- if (index < 0 || index >= ubos.length) return void 0;
163
- const ubo = ubos[index];
164
- const isDefault = index === 0;
165
- const hasAnyValue = ubo.name.trim() !== "" || ubo.surname.trim() !== "";
166
- if (!isDefault && !hasAnyValue) return void 0;
167
- if (!ubo[field].trim()) return {
168
- key: DYNAMIC_REQUIRED_KEY,
169
- params: { fieldName: UBO_FIELD_LABELS[field] }
170
- };
171
- }
172
- /** Returns true when CNPJ validation applies for the given country. */
173
- function requiresCnpjValidation(country) {
174
- return COUNTRIES_WITH_CNPJ_VALIDATION.includes(country);
175
- }
176
- //#endregion
177
- //#region ../form-definitions/generated/ekyb.ts
178
- const EKYB_DEFINITIONS = {
89
+ }
90
+ return errors;
91
+ }
92
+ /**
93
+ * Full-form validation: per-field pass, then address cross-field pass, then
94
+ * UBO pass. Per-field errors take precedence over cross-field errors for
95
+ * the same key.
96
+ */
97
+ function validateEkybForm(values, fields, country, ubos, hasUbos) {
98
+ const validators = createValidators();
99
+ const perField = fields.reduce((acc, field) => {
100
+ const value = normalizeFieldValue(values[field.name]);
101
+ const error = evaluateRules(value, field.validation, field, validators);
102
+ if (error) acc[field.name] = error;
103
+ return acc;
104
+ }, {});
105
+ const addressGroup = validateAddressGroup(fields, values, country);
106
+ const uboGroup = validateUboGroup(ubos, hasUbos);
107
+ return {
108
+ ...addressGroup,
109
+ ...perField,
110
+ ...uboGroup
111
+ };
112
+ }
113
+ /**
114
+ * Single-field validation (per-field only, no cross-field passes).
115
+ * Intended for blur-triggered validation of regular form fields.
116
+ */
117
+ function validateEkybField(values, fieldName, fields) {
118
+ const field = fields.find((f) => f.name === fieldName);
119
+ if (!field) return void 0;
120
+ const validators = createValidators();
121
+ const value = normalizeFieldValue(values[field.name]);
122
+ return evaluateRules(value, field.validation, field, validators);
123
+ }
124
+ /**
125
+ * Single UBO field validation (blur-triggered).
126
+ * fieldKey format: `ubo-{index}-name` or `ubo-{index}-surname`.
127
+ * Returns undefined for non-default UBOs whose peer field is also empty
128
+ * (user hasn't started filling that UBO entry yet).
129
+ */
130
+ function validateEkybUboField(ubos, fieldKey) {
131
+ const match = fieldKey.match(/^ubo-(\d+)-(name|surname)$/);
132
+ if (!match) return void 0;
133
+ const index = Number(match[1]);
134
+ const field = match[2];
135
+ if (index < 0 || index >= ubos.length) return void 0;
136
+ const ubo = ubos[index];
137
+ const isDefault = index === 0;
138
+ const hasAnyValue = ubo.name.trim() !== "" || ubo.surname.trim() !== "";
139
+ if (!isDefault && !hasAnyValue) return void 0;
140
+ if (!ubo[field].trim()) return {
141
+ key: DYNAMIC_REQUIRED_KEY,
142
+ params: { fieldName: UBO_FIELD_LABELS[field] }
143
+ };
144
+ }
145
+ //#endregion
146
+ //#region ../form-definitions/generated/ekyb.ts
147
+ const EKYB_DEFINITIONS = {
148
+ "ekyb/BR": {
149
+ schemaVersion: 1,
150
+ vocabulary: "1.0",
151
+ id: "ekyb/BR",
152
+ module: "ekyb",
153
+ country: "BR",
154
+ fields: [
155
+ {
156
+ name: "businessName",
157
+ kind: "text",
158
+ group: "businessName",
159
+ required: true,
160
+ label: { key: "ekyb.businessName" },
161
+ input: { autofill: "organization" }
162
+ },
163
+ {
164
+ name: "taxId",
165
+ kind: "text",
166
+ group: "taxId",
167
+ required: true,
168
+ label: { key: "ekyb.taxId" },
169
+ displayLabel: {
170
+ key: "verification.labels.cpf",
171
+ text: "CPF"
172
+ },
173
+ rules: [{ id: "cnpj" }]
174
+ },
175
+ {
176
+ name: "street",
177
+ kind: "text",
178
+ group: "address",
179
+ required: true,
180
+ widget: "addressSearch",
181
+ label: { key: "ekyb.street" },
182
+ input: { autofill: "addressLine1" }
183
+ },
184
+ {
185
+ name: "houseNo",
186
+ kind: "text",
187
+ group: "address",
188
+ required: true,
189
+ label: { key: "ekyb.houseNo" }
190
+ },
191
+ {
192
+ name: "addressLine2",
193
+ kind: "text",
194
+ group: "address",
195
+ label: { key: "ekyb.addressLine2" },
196
+ input: { autofill: "addressLine2" }
197
+ },
198
+ {
199
+ name: "city",
200
+ kind: "text",
201
+ group: "address",
202
+ required: true,
203
+ label: { key: "ekyb.city" },
204
+ input: { autofill: "addressLevel2" }
205
+ },
206
+ {
207
+ name: "state",
208
+ kind: "text",
209
+ group: "address",
210
+ required: true,
211
+ label: { key: "ekyb.state" },
212
+ input: { autofill: "addressLevel1" }
213
+ },
214
+ {
215
+ name: "postalCode",
216
+ kind: "text",
217
+ group: "address",
218
+ required: true,
219
+ label: { key: "ekyb.postalCode" },
220
+ input: {
221
+ maxLength: 9,
222
+ autofill: "postalCode"
223
+ },
224
+ rules: [{ id: "postalCodeFormat" }]
225
+ }
226
+ ],
227
+ collections: [{
228
+ id: "ubos",
229
+ group: "ubos",
230
+ min: 1,
231
+ max: 8,
232
+ fields: [{
233
+ name: "name",
234
+ kind: "text",
235
+ group: "ubos",
236
+ required: true,
237
+ label: { key: "ekyb.uboName" }
238
+ }, {
239
+ name: "surname",
240
+ kind: "text",
241
+ group: "ubos",
242
+ required: true,
243
+ label: { key: "ekyb.uboSurname" }
244
+ }],
245
+ payload: {
246
+ key: "uboNames",
247
+ join: ["name", "surname"]
248
+ }
249
+ }],
250
+ submit: {
251
+ static: { plugins: ["ekyb"] },
252
+ context: { country: "country" }
253
+ }
254
+ },
255
+ "ekyb/CM": {
256
+ schemaVersion: 1,
257
+ vocabulary: "1.0",
258
+ id: "ekyb/CM",
259
+ module: "ekyb",
260
+ country: "CM",
261
+ availableIn: ["development", "staging"],
262
+ fields: [
263
+ {
264
+ name: "businessName",
265
+ kind: "text",
266
+ group: "businessName",
267
+ required: true,
268
+ label: { key: "ekyb.businessName" },
269
+ input: { autofill: "organization" }
270
+ },
271
+ {
272
+ name: "taxId",
273
+ kind: "text",
274
+ group: "taxId",
275
+ required: true,
276
+ label: { key: "ekyb.taxId" }
277
+ },
278
+ {
279
+ name: "street",
280
+ kind: "text",
281
+ group: "address",
282
+ required: true,
283
+ widget: "addressSearch",
284
+ label: { key: "ekyb.street" },
285
+ input: { autofill: "addressLine1" }
286
+ },
287
+ {
288
+ name: "houseNo",
289
+ kind: "text",
290
+ group: "address",
291
+ required: true,
292
+ label: { key: "ekyb.houseNo" }
293
+ },
294
+ {
295
+ name: "addressLine2",
296
+ kind: "text",
297
+ group: "address",
298
+ label: { key: "ekyb.addressLine2" },
299
+ input: { autofill: "addressLine2" }
300
+ },
301
+ {
302
+ name: "city",
303
+ kind: "text",
304
+ group: "address",
305
+ required: true,
306
+ label: { key: "ekyb.city" },
307
+ input: { autofill: "addressLevel2" }
308
+ },
309
+ {
310
+ name: "state",
311
+ kind: "text",
312
+ group: "address",
313
+ required: true,
314
+ label: { key: "ekyb.state" },
315
+ input: { autofill: "addressLevel1" }
316
+ },
317
+ {
318
+ name: "postalCode",
319
+ kind: "text",
320
+ group: "address",
321
+ required: true,
322
+ label: { key: "ekyb.postalCode" },
323
+ input: {
324
+ maxLength: 8,
325
+ autofill: "postalCode"
326
+ },
327
+ rules: [{ id: "postalCodeFormat" }]
328
+ }
329
+ ],
330
+ collections: [{
331
+ id: "ubos",
332
+ group: "ubos",
333
+ min: 1,
334
+ max: 8,
335
+ fields: [{
336
+ name: "name",
337
+ kind: "text",
338
+ group: "ubos",
339
+ required: true,
340
+ label: { key: "ekyb.uboName" }
341
+ }, {
342
+ name: "surname",
343
+ kind: "text",
344
+ group: "ubos",
345
+ required: true,
346
+ label: { key: "ekyb.uboSurname" }
347
+ }],
348
+ payload: {
349
+ key: "uboNames",
350
+ join: ["name", "surname"]
351
+ }
352
+ }],
353
+ submit: {
354
+ static: { plugins: ["ekyb"] },
355
+ context: { country: "country" }
356
+ }
357
+ },
358
+ "ekyb/CN": {
359
+ schemaVersion: 1,
360
+ vocabulary: "1.0",
361
+ id: "ekyb/CN",
362
+ module: "ekyb",
363
+ country: "CN",
364
+ fields: [
365
+ {
366
+ name: "businessName",
367
+ kind: "text",
368
+ group: "businessName",
369
+ required: true,
370
+ label: { key: "ekyb.businessName" },
371
+ input: { autofill: "organization" }
372
+ },
373
+ {
374
+ name: "taxId",
375
+ kind: "text",
376
+ group: "taxId",
377
+ required: true,
378
+ label: { key: "verification.labels.prcId" }
379
+ },
380
+ {
381
+ name: "street",
382
+ kind: "text",
383
+ group: "address",
384
+ required: true,
385
+ widget: "addressSearch",
386
+ label: { key: "ekyb.street" },
387
+ input: { autofill: "addressLine1" }
388
+ },
389
+ {
390
+ name: "houseNo",
391
+ kind: "text",
392
+ group: "address",
393
+ required: true,
394
+ label: { key: "ekyb.houseNo" }
395
+ },
396
+ {
397
+ name: "addressLine2",
398
+ kind: "text",
399
+ group: "address",
400
+ label: { key: "ekyb.addressLine2" },
401
+ input: { autofill: "addressLine2" }
402
+ },
403
+ {
404
+ name: "city",
405
+ kind: "text",
406
+ group: "address",
407
+ required: true,
408
+ label: { key: "ekyb.city" },
409
+ input: { autofill: "addressLevel2" }
410
+ },
411
+ {
412
+ name: "state",
413
+ kind: "text",
414
+ group: "address",
415
+ required: true,
416
+ label: { key: "ekyb.state" },
417
+ input: { autofill: "addressLevel1" }
418
+ },
419
+ {
420
+ name: "postalCode",
421
+ kind: "text",
422
+ group: "address",
423
+ required: true,
424
+ label: { key: "ekyb.postalCode" },
425
+ input: {
426
+ maxLength: 6,
427
+ autofill: "postalCode"
428
+ },
429
+ rules: [{ id: "postalCodeFormat" }]
430
+ }
431
+ ],
432
+ collections: [{
433
+ id: "ubos",
434
+ group: "ubos",
435
+ min: 1,
436
+ max: 8,
437
+ fields: [{
438
+ name: "name",
439
+ kind: "text",
440
+ group: "ubos",
441
+ required: true,
442
+ label: { key: "ekyb.uboName" }
443
+ }, {
444
+ name: "surname",
445
+ kind: "text",
446
+ group: "ubos",
447
+ required: true,
448
+ label: { key: "ekyb.uboSurname" }
449
+ }],
450
+ payload: {
451
+ key: "uboNames",
452
+ join: ["name", "surname"]
453
+ }
454
+ }],
455
+ submit: {
456
+ static: { plugins: ["ekyb"] },
457
+ context: { country: "country" }
458
+ }
459
+ },
460
+ "ekyb/DE": {
461
+ schemaVersion: 1,
462
+ vocabulary: "1.0",
463
+ id: "ekyb/DE",
464
+ module: "ekyb",
465
+ country: "DE",
466
+ fields: [
467
+ {
468
+ name: "businessName",
469
+ kind: "text",
470
+ group: "businessName",
471
+ required: true,
472
+ label: { key: "ekyb.businessName" },
473
+ input: { autofill: "organization" }
474
+ },
475
+ {
476
+ name: "taxId",
477
+ kind: "text",
478
+ group: "taxId",
479
+ required: true,
480
+ label: { key: "ekyb.taxId" }
481
+ },
482
+ {
483
+ name: "street",
484
+ kind: "text",
485
+ group: "address",
486
+ required: true,
487
+ widget: "addressSearch",
488
+ label: { key: "ekyb.street" },
489
+ input: { autofill: "addressLine1" }
490
+ },
491
+ {
492
+ name: "houseNo",
493
+ kind: "text",
494
+ group: "address",
495
+ required: true,
496
+ label: { key: "ekyb.houseNo" }
497
+ },
498
+ {
499
+ name: "addressLine2",
500
+ kind: "text",
501
+ group: "address",
502
+ label: { key: "ekyb.addressLine2" },
503
+ input: { autofill: "addressLine2" }
504
+ },
505
+ {
506
+ name: "city",
507
+ kind: "text",
508
+ group: "address",
509
+ required: true,
510
+ label: { key: "ekyb.city" },
511
+ input: { autofill: "addressLevel2" }
512
+ },
513
+ {
514
+ name: "state",
515
+ kind: "text",
516
+ group: "address",
517
+ required: true,
518
+ label: { key: "ekyb.state" },
519
+ input: { autofill: "addressLevel1" }
520
+ },
521
+ {
522
+ name: "postalCode",
523
+ kind: "text",
524
+ group: "address",
525
+ required: true,
526
+ label: { key: "ekyb.postalCode" },
527
+ input: {
528
+ maxLength: 5,
529
+ autofill: "postalCode"
530
+ },
531
+ rules: [{ id: "postalCodeFormat" }]
532
+ }
533
+ ],
534
+ collections: [{
535
+ id: "ubos",
536
+ group: "ubos",
537
+ min: 1,
538
+ max: 8,
539
+ fields: [{
540
+ name: "name",
541
+ kind: "text",
542
+ group: "ubos",
543
+ required: true,
544
+ label: { key: "ekyb.uboName" }
545
+ }, {
546
+ name: "surname",
547
+ kind: "text",
548
+ group: "ubos",
549
+ required: true,
550
+ label: { key: "ekyb.uboSurname" }
551
+ }],
552
+ payload: {
553
+ key: "uboNames",
554
+ join: ["name", "surname"]
555
+ }
556
+ }],
557
+ submit: {
558
+ static: { plugins: ["ekyb"] },
559
+ context: { country: "country" }
560
+ }
561
+ },
562
+ "ekyb/ES": {
563
+ schemaVersion: 1,
564
+ vocabulary: "1.0",
565
+ id: "ekyb/ES",
566
+ module: "ekyb",
567
+ country: "ES",
568
+ fields: [
569
+ {
570
+ name: "businessName",
571
+ kind: "text",
572
+ group: "businessName",
573
+ required: true,
574
+ label: { key: "ekyb.businessName" },
575
+ input: { autofill: "organization" }
576
+ },
577
+ {
578
+ name: "taxId",
579
+ kind: "text",
580
+ group: "taxId",
581
+ required: true,
582
+ label: { key: "ekyb.taxId" }
583
+ },
584
+ {
585
+ name: "street",
586
+ kind: "text",
587
+ group: "address",
588
+ required: true,
589
+ widget: "addressSearch",
590
+ label: { key: "ekyb.street" },
591
+ input: { autofill: "addressLine1" }
592
+ },
593
+ {
594
+ name: "houseNo",
595
+ kind: "text",
596
+ group: "address",
597
+ required: true,
598
+ label: { key: "ekyb.houseNo" }
599
+ },
600
+ {
601
+ name: "addressLine2",
602
+ kind: "text",
603
+ group: "address",
604
+ label: { key: "ekyb.addressLine2" },
605
+ input: { autofill: "addressLine2" }
606
+ },
607
+ {
608
+ name: "city",
609
+ kind: "text",
610
+ group: "address",
611
+ required: true,
612
+ label: { key: "ekyb.city" },
613
+ input: { autofill: "addressLevel2" }
614
+ },
615
+ {
616
+ name: "state",
617
+ kind: "text",
618
+ group: "address",
619
+ required: true,
620
+ label: { key: "ekyb.state" },
621
+ input: { autofill: "addressLevel1" }
622
+ },
623
+ {
624
+ name: "postalCode",
625
+ kind: "text",
626
+ group: "address",
627
+ required: true,
628
+ label: { key: "ekyb.postalCode" },
629
+ input: {
630
+ maxLength: 5,
631
+ autofill: "postalCode"
632
+ },
633
+ rules: [{ id: "postalCodeFormat" }]
634
+ }
635
+ ],
636
+ collections: [{
637
+ id: "ubos",
638
+ group: "ubos",
639
+ min: 1,
640
+ max: 8,
641
+ fields: [{
642
+ name: "name",
643
+ kind: "text",
644
+ group: "ubos",
645
+ required: true,
646
+ label: { key: "ekyb.uboName" }
647
+ }, {
648
+ name: "surname",
649
+ kind: "text",
650
+ group: "ubos",
651
+ required: true,
652
+ label: { key: "ekyb.uboSurname" }
653
+ }],
654
+ payload: {
655
+ key: "uboNames",
656
+ join: ["name", "surname"]
657
+ }
658
+ }],
659
+ submit: {
660
+ static: { plugins: ["ekyb"] },
661
+ context: { country: "country" }
662
+ }
663
+ },
664
+ "ekyb/FR": {
665
+ schemaVersion: 1,
666
+ vocabulary: "1.0",
667
+ id: "ekyb/FR",
668
+ module: "ekyb",
669
+ country: "FR",
670
+ fields: [
671
+ {
672
+ name: "businessName",
673
+ kind: "text",
674
+ group: "businessName",
675
+ required: true,
676
+ label: { key: "ekyb.businessName" },
677
+ input: { autofill: "organization" }
678
+ },
679
+ {
680
+ name: "taxId",
681
+ kind: "text",
682
+ group: "taxId",
683
+ required: true,
684
+ label: { key: "ekyb.taxId" }
685
+ },
686
+ {
687
+ name: "street",
688
+ kind: "text",
689
+ group: "address",
690
+ required: true,
691
+ widget: "addressSearch",
692
+ label: { key: "ekyb.street" },
693
+ input: { autofill: "addressLine1" }
694
+ },
695
+ {
696
+ name: "houseNo",
697
+ kind: "text",
698
+ group: "address",
699
+ required: true,
700
+ label: { key: "ekyb.houseNo" }
701
+ },
702
+ {
703
+ name: "addressLine2",
704
+ kind: "text",
705
+ group: "address",
706
+ label: { key: "ekyb.addressLine2" },
707
+ input: { autofill: "addressLine2" }
708
+ },
709
+ {
710
+ name: "city",
711
+ kind: "text",
712
+ group: "address",
713
+ required: true,
714
+ label: { key: "ekyb.city" },
715
+ input: { autofill: "addressLevel2" }
716
+ },
717
+ {
718
+ name: "state",
719
+ kind: "text",
720
+ group: "address",
721
+ required: true,
722
+ label: { key: "ekyb.state" },
723
+ input: { autofill: "addressLevel1" }
724
+ },
725
+ {
726
+ name: "postalCode",
727
+ kind: "text",
728
+ group: "address",
729
+ required: true,
730
+ label: { key: "ekyb.postalCode" },
731
+ input: {
732
+ maxLength: 5,
733
+ autofill: "postalCode"
734
+ },
735
+ rules: [{ id: "postalCodeFormat" }]
736
+ }
737
+ ],
738
+ collections: [{
739
+ id: "ubos",
740
+ group: "ubos",
741
+ min: 1,
742
+ max: 8,
743
+ fields: [{
744
+ name: "name",
745
+ kind: "text",
746
+ group: "ubos",
747
+ required: true,
748
+ label: { key: "ekyb.uboName" }
749
+ }, {
750
+ name: "surname",
751
+ kind: "text",
752
+ group: "ubos",
753
+ required: true,
754
+ label: { key: "ekyb.uboSurname" }
755
+ }],
756
+ payload: {
757
+ key: "uboNames",
758
+ join: ["name", "surname"]
759
+ }
760
+ }],
761
+ submit: {
762
+ static: { plugins: ["ekyb"] },
763
+ context: { country: "country" }
764
+ }
765
+ },
766
+ "ekyb/GB": {
767
+ schemaVersion: 1,
768
+ vocabulary: "1.0",
769
+ id: "ekyb/GB",
770
+ module: "ekyb",
771
+ country: "GB",
772
+ fields: [
773
+ {
774
+ name: "businessName",
775
+ kind: "text",
776
+ group: "businessName",
777
+ required: true,
778
+ label: { key: "ekyb.businessName" },
779
+ input: { autofill: "organization" }
780
+ },
781
+ {
782
+ name: "taxId",
783
+ kind: "text",
784
+ group: "taxId",
785
+ required: true,
786
+ label: { key: "ekyb.taxId" }
787
+ },
788
+ {
789
+ name: "street",
790
+ kind: "text",
791
+ group: "address",
792
+ required: true,
793
+ widget: "addressSearch",
794
+ label: { key: "ekyb.street" },
795
+ input: { autofill: "addressLine1" }
796
+ },
797
+ {
798
+ name: "houseNo",
799
+ kind: "text",
800
+ group: "address",
801
+ required: true,
802
+ label: { key: "ekyb.houseNo" }
803
+ },
804
+ {
805
+ name: "addressLine2",
806
+ kind: "text",
807
+ group: "address",
808
+ label: { key: "ekyb.addressLine2" },
809
+ input: { autofill: "addressLine2" }
810
+ },
811
+ {
812
+ name: "city",
813
+ kind: "text",
814
+ group: "address",
815
+ required: true,
816
+ label: { key: "ekyb.city" },
817
+ input: { autofill: "addressLevel2" }
818
+ },
819
+ {
820
+ name: "postalCode",
821
+ kind: "text",
822
+ group: "address",
823
+ required: true,
824
+ label: { key: "ekyb.postalCode" },
825
+ input: {
826
+ maxLength: 8,
827
+ autofill: "postalCode"
828
+ },
829
+ rules: [{ id: "postalCodeFormat" }]
830
+ }
831
+ ],
832
+ collections: [{
833
+ id: "ubos",
834
+ group: "ubos",
835
+ min: 1,
836
+ max: 8,
837
+ fields: [{
838
+ name: "name",
839
+ kind: "text",
840
+ group: "ubos",
841
+ required: true,
842
+ label: { key: "ekyb.uboName" }
843
+ }, {
844
+ name: "surname",
845
+ kind: "text",
846
+ group: "ubos",
847
+ required: true,
848
+ label: { key: "ekyb.uboSurname" }
849
+ }],
850
+ payload: {
851
+ key: "uboNames",
852
+ join: ["name", "surname"]
853
+ }
854
+ }],
855
+ submit: {
856
+ static: { plugins: ["ekyb"] },
857
+ context: { country: "country" }
858
+ }
859
+ },
860
+ "ekyb/IL": {
861
+ schemaVersion: 1,
862
+ vocabulary: "1.0",
863
+ id: "ekyb/IL",
864
+ module: "ekyb",
865
+ country: "IL",
866
+ fields: [
867
+ {
868
+ name: "businessName",
869
+ kind: "text",
870
+ group: "businessName",
871
+ required: true,
872
+ label: { key: "ekyb.businessName" },
873
+ input: { autofill: "organization" }
874
+ },
875
+ {
876
+ name: "taxId",
877
+ kind: "text",
878
+ group: "taxId",
879
+ required: true,
880
+ label: { key: "ekyb.taxId" }
881
+ },
882
+ {
883
+ name: "street",
884
+ kind: "text",
885
+ group: "address",
886
+ required: true,
887
+ widget: "addressSearch",
888
+ label: { key: "ekyb.street" },
889
+ input: { autofill: "addressLine1" }
890
+ },
891
+ {
892
+ name: "houseNo",
893
+ kind: "text",
894
+ group: "address",
895
+ required: true,
896
+ label: { key: "ekyb.houseNo" }
897
+ },
898
+ {
899
+ name: "addressLine2",
900
+ kind: "text",
901
+ group: "address",
902
+ label: { key: "ekyb.addressLine2" },
903
+ input: { autofill: "addressLine2" }
904
+ },
905
+ {
906
+ name: "city",
907
+ kind: "text",
908
+ group: "address",
909
+ required: true,
910
+ label: { key: "ekyb.city" },
911
+ input: { autofill: "addressLevel2" }
912
+ },
913
+ {
914
+ name: "state",
915
+ kind: "text",
916
+ group: "address",
917
+ required: true,
918
+ label: { key: "ekyb.state" },
919
+ input: { autofill: "addressLevel1" }
920
+ },
921
+ {
922
+ name: "postalCode",
923
+ kind: "text",
924
+ group: "address",
925
+ required: true,
926
+ label: { key: "ekyb.postalCode" },
927
+ input: {
928
+ maxLength: 7,
929
+ autofill: "postalCode"
930
+ },
931
+ rules: [{ id: "postalCodeFormat" }]
932
+ }
933
+ ],
934
+ collections: [{
935
+ id: "ubos",
936
+ group: "ubos",
937
+ min: 1,
938
+ max: 8,
939
+ fields: [{
940
+ name: "name",
941
+ kind: "text",
942
+ group: "ubos",
943
+ required: true,
944
+ label: { key: "ekyb.uboName" }
945
+ }, {
946
+ name: "surname",
947
+ kind: "text",
948
+ group: "ubos",
949
+ required: true,
950
+ label: { key: "ekyb.uboSurname" }
951
+ }],
952
+ payload: {
953
+ key: "uboNames",
954
+ join: ["name", "surname"]
955
+ }
956
+ }],
957
+ submit: {
958
+ static: { plugins: ["ekyb"] },
959
+ context: { country: "country" }
960
+ }
961
+ },
962
+ "ekyb/IT": {
963
+ schemaVersion: 1,
964
+ vocabulary: "1.0",
965
+ id: "ekyb/IT",
966
+ module: "ekyb",
967
+ country: "IT",
968
+ fields: [
969
+ {
970
+ name: "businessName",
971
+ kind: "text",
972
+ group: "businessName",
973
+ required: true,
974
+ label: { key: "ekyb.businessName" },
975
+ input: { autofill: "organization" }
976
+ },
977
+ {
978
+ name: "taxId",
979
+ kind: "text",
980
+ group: "taxId",
981
+ required: true,
982
+ label: { key: "ekyb.taxId" }
983
+ },
984
+ {
985
+ name: "street",
986
+ kind: "text",
987
+ group: "address",
988
+ required: true,
989
+ widget: "addressSearch",
990
+ label: { key: "ekyb.street" },
991
+ input: { autofill: "addressLine1" }
992
+ },
993
+ {
994
+ name: "houseNo",
995
+ kind: "text",
996
+ group: "address",
997
+ required: true,
998
+ label: { key: "ekyb.houseNo" }
999
+ },
1000
+ {
1001
+ name: "addressLine2",
1002
+ kind: "text",
1003
+ group: "address",
1004
+ label: { key: "ekyb.addressLine2" },
1005
+ input: { autofill: "addressLine2" }
1006
+ },
1007
+ {
1008
+ name: "city",
1009
+ kind: "text",
1010
+ group: "address",
1011
+ required: true,
1012
+ label: { key: "ekyb.city" },
1013
+ input: { autofill: "addressLevel2" }
1014
+ },
1015
+ {
1016
+ name: "state",
1017
+ kind: "text",
1018
+ group: "address",
1019
+ required: true,
1020
+ label: { key: "ekyb.state" },
1021
+ input: { autofill: "addressLevel1" }
1022
+ },
1023
+ {
1024
+ name: "postalCode",
1025
+ kind: "text",
1026
+ group: "address",
1027
+ required: true,
1028
+ label: { key: "ekyb.postalCode" },
1029
+ input: {
1030
+ maxLength: 5,
1031
+ autofill: "postalCode"
1032
+ },
1033
+ rules: [{ id: "postalCodeFormat" }]
1034
+ }
1035
+ ],
1036
+ collections: [{
1037
+ id: "ubos",
1038
+ group: "ubos",
1039
+ min: 1,
1040
+ max: 8,
1041
+ fields: [{
1042
+ name: "name",
1043
+ kind: "text",
1044
+ group: "ubos",
1045
+ required: true,
1046
+ label: { key: "ekyb.uboName" }
1047
+ }, {
1048
+ name: "surname",
1049
+ kind: "text",
1050
+ group: "ubos",
1051
+ required: true,
1052
+ label: { key: "ekyb.uboSurname" }
1053
+ }],
1054
+ payload: {
1055
+ key: "uboNames",
1056
+ join: ["name", "surname"]
1057
+ }
1058
+ }],
1059
+ submit: {
1060
+ static: { plugins: ["ekyb"] },
1061
+ context: { country: "country" }
1062
+ }
1063
+ },
1064
+ "ekyb/KE": {
1065
+ schemaVersion: 1,
1066
+ vocabulary: "1.0",
1067
+ id: "ekyb/KE",
1068
+ module: "ekyb",
1069
+ country: "KE",
1070
+ availableIn: ["development", "staging"],
1071
+ fields: [
1072
+ {
1073
+ name: "businessName",
1074
+ kind: "text",
1075
+ group: "businessName",
1076
+ required: true,
1077
+ label: { key: "ekyb.businessName" },
1078
+ input: { autofill: "organization" }
1079
+ },
1080
+ {
1081
+ name: "taxId",
1082
+ kind: "text",
1083
+ group: "taxId",
1084
+ required: true,
1085
+ label: { key: "ekyb.taxId" }
1086
+ },
1087
+ {
1088
+ name: "street",
1089
+ kind: "text",
1090
+ group: "address",
1091
+ required: true,
1092
+ widget: "addressSearch",
1093
+ label: { key: "ekyb.street" },
1094
+ input: { autofill: "addressLine1" }
1095
+ },
1096
+ {
1097
+ name: "houseNo",
1098
+ kind: "text",
1099
+ group: "address",
1100
+ required: true,
1101
+ label: { key: "ekyb.houseNo" }
1102
+ },
1103
+ {
1104
+ name: "addressLine2",
1105
+ kind: "text",
1106
+ group: "address",
1107
+ label: { key: "ekyb.addressLine2" },
1108
+ input: { autofill: "addressLine2" }
1109
+ },
1110
+ {
1111
+ name: "city",
1112
+ kind: "text",
1113
+ group: "address",
1114
+ required: true,
1115
+ label: { key: "ekyb.city" },
1116
+ input: { autofill: "addressLevel2" }
1117
+ },
1118
+ {
1119
+ name: "state",
1120
+ kind: "text",
1121
+ group: "address",
1122
+ required: true,
1123
+ label: { key: "ekyb.state" },
1124
+ input: { autofill: "addressLevel1" }
1125
+ },
1126
+ {
1127
+ name: "postalCode",
1128
+ kind: "text",
1129
+ group: "address",
1130
+ required: true,
1131
+ label: { key: "ekyb.postalCode" },
1132
+ input: {
1133
+ maxLength: 5,
1134
+ autofill: "postalCode"
1135
+ },
1136
+ rules: [{ id: "postalCodeFormat" }]
1137
+ }
1138
+ ],
1139
+ collections: [{
1140
+ id: "ubos",
1141
+ group: "ubos",
1142
+ min: 1,
1143
+ max: 8,
1144
+ fields: [{
1145
+ name: "name",
1146
+ kind: "text",
1147
+ group: "ubos",
1148
+ required: true,
1149
+ label: { key: "ekyb.uboName" }
1150
+ }, {
1151
+ name: "surname",
1152
+ kind: "text",
1153
+ group: "ubos",
1154
+ required: true,
1155
+ label: { key: "ekyb.uboSurname" }
1156
+ }],
1157
+ payload: {
1158
+ key: "uboNames",
1159
+ join: ["name", "surname"]
1160
+ }
1161
+ }],
1162
+ submit: {
1163
+ static: { plugins: ["ekyb"] },
1164
+ context: { country: "country" }
1165
+ }
1166
+ },
179
1167
  "ekyb/MX": {
180
1168
  schemaVersion: 1,
181
1169
  vocabulary: "1.0",
@@ -216,6 +1204,109 @@ const EKYB_DEFINITIONS = {
216
1204
  context: { country: "country" }
217
1205
  }
218
1206
  },
1207
+ "ekyb/NG": {
1208
+ schemaVersion: 1,
1209
+ vocabulary: "1.0",
1210
+ id: "ekyb/NG",
1211
+ module: "ekyb",
1212
+ country: "NG",
1213
+ availableIn: ["development", "staging"],
1214
+ fields: [
1215
+ {
1216
+ name: "businessName",
1217
+ kind: "text",
1218
+ group: "businessName",
1219
+ required: true,
1220
+ label: { key: "ekyb.businessName" },
1221
+ input: { autofill: "organization" }
1222
+ },
1223
+ {
1224
+ name: "taxId",
1225
+ kind: "text",
1226
+ group: "taxId",
1227
+ required: true,
1228
+ label: { key: "ekyb.taxId" }
1229
+ },
1230
+ {
1231
+ name: "street",
1232
+ kind: "text",
1233
+ group: "address",
1234
+ required: true,
1235
+ widget: "addressSearch",
1236
+ label: { key: "ekyb.street" },
1237
+ input: { autofill: "addressLine1" }
1238
+ },
1239
+ {
1240
+ name: "houseNo",
1241
+ kind: "text",
1242
+ group: "address",
1243
+ required: true,
1244
+ label: { key: "ekyb.houseNo" }
1245
+ },
1246
+ {
1247
+ name: "addressLine2",
1248
+ kind: "text",
1249
+ group: "address",
1250
+ label: { key: "ekyb.addressLine2" },
1251
+ input: { autofill: "addressLine2" }
1252
+ },
1253
+ {
1254
+ name: "city",
1255
+ kind: "text",
1256
+ group: "address",
1257
+ required: true,
1258
+ label: { key: "ekyb.city" },
1259
+ input: { autofill: "addressLevel2" }
1260
+ },
1261
+ {
1262
+ name: "state",
1263
+ kind: "text",
1264
+ group: "address",
1265
+ required: true,
1266
+ label: { key: "ekyb.state" },
1267
+ input: { autofill: "addressLevel1" }
1268
+ },
1269
+ {
1270
+ name: "postalCode",
1271
+ kind: "text",
1272
+ group: "address",
1273
+ required: true,
1274
+ label: { key: "ekyb.postalCode" },
1275
+ input: {
1276
+ maxLength: 6,
1277
+ autofill: "postalCode"
1278
+ },
1279
+ rules: [{ id: "postalCodeFormat" }]
1280
+ }
1281
+ ],
1282
+ collections: [{
1283
+ id: "ubos",
1284
+ group: "ubos",
1285
+ min: 1,
1286
+ max: 8,
1287
+ fields: [{
1288
+ name: "name",
1289
+ kind: "text",
1290
+ group: "ubos",
1291
+ required: true,
1292
+ label: { key: "ekyb.uboName" }
1293
+ }, {
1294
+ name: "surname",
1295
+ kind: "text",
1296
+ group: "ubos",
1297
+ required: true,
1298
+ label: { key: "ekyb.uboSurname" }
1299
+ }],
1300
+ payload: {
1301
+ key: "uboNames",
1302
+ join: ["name", "surname"]
1303
+ }
1304
+ }],
1305
+ submit: {
1306
+ static: { plugins: ["ekyb"] },
1307
+ context: { country: "country" }
1308
+ }
1309
+ },
219
1310
  "ekyb/US": {
220
1311
  schemaVersion: 1,
221
1312
  vocabulary: "1.0",
@@ -331,7 +1422,8 @@ const EKYB_DEFINITIONS = {
331
1422
  * verification fields from module configuration, and projects the result to
332
1423
  * today's public `EkybFieldDef[]` shape. A country without a projectable
333
1424
  * definition, or a custom field list that can't be expressed as groups, keeps
334
- * the current builder.
1425
+ * the current builder, and so does every country while the form definitions
1426
+ * rollout is off.
335
1427
  */
336
1428
  /** eKYB group id → the verification-field entries that turn it on. */
337
1429
  const EKYB_GROUP_ENTRIES = {
@@ -366,7 +1458,9 @@ const EKYB_SUPPORTED_IDS = {
366
1458
  transforms: /* @__PURE__ */ new Set(),
367
1459
  groupRules: /* @__PURE__ */ new Set(),
368
1460
  optionLists: new Set(Object.keys(OPTION_LISTS)),
369
- conditions: /* @__PURE__ */ new Set()
1461
+ conditions: /* @__PURE__ */ new Set(),
1462
+ prefillSources: /* @__PURE__ */ new Set(),
1463
+ flags: /* @__PURE__ */ new Set()
370
1464
  };
371
1465
  /** Today's UBO actions use a fixed limit and a single collection. */
372
1466
  const UBO_COLLECTION = "ubos";
@@ -422,7 +1516,7 @@ function isProjectableEkybDefinition(definition) {
422
1516
  * address), so the current builder keeps handling it.
423
1517
  */
424
1518
  function toEkybResolveContext(config, verificationFields) {
425
- const entries = verificationFields.filter((entry) => !entry.startsWith("socure"));
1519
+ const entries = verificationFields.filter(isFormFieldEntry);
426
1520
  if (entries.some((entry) => !KNOWN_ENTRIES.has(entry))) return void 0;
427
1521
  const groups = {};
428
1522
  for (const [group, groupEntries] of Object.entries(EKYB_GROUP_ENTRIES)) {
@@ -434,8 +1528,14 @@ function toEkybResolveContext(config, verificationFields) {
434
1528
  return { groups };
435
1529
  }
436
1530
  const bundled = createBundledDefinitionSource(EKYB_DEFINITIONS);
437
- /** The resolved definition for this country and configuration, if one applies. */
438
- function selectEkybForm(config, verificationFields, country) {
1531
+ /**
1532
+ * The resolved definition for this country and configuration, if one applies
1533
+ * and the rollout is on. Every country has a builder today, so none is exempt.
1534
+ * `useDefinitions` is the rollout answer the machine read once, when it was
1535
+ * created.
1536
+ */
1537
+ function selectEkybForm(config, verificationFields, country, useDefinitions) {
1538
+ if (!useDefinitions) return void 0;
439
1539
  const context = toEkybResolveContext(config, verificationFields);
440
1540
  if (!context) return void 0;
441
1541
  const definition = bundled.select({
@@ -489,13 +1589,15 @@ function buildEkybValidationRules(fieldName, required, country) {
489
1589
  return rules;
490
1590
  }
491
1591
  /**
492
- * Fields and beneficial-owner state for a country. A country with a form
493
- * definition (`packages/form-definitions/catalog/ekyb`) reads it; any other
494
- * country, or a custom field list that isn't whole groups, keeps the current
495
- * builder and its UBO rule.
1592
+ * Fields and beneficial-owner state for a country. With the rollout on, the
1593
+ * country reads its form definition (`packages/form-definitions/catalog/ekyb`),
1594
+ * unless the custom field list isn't whole groups. Otherwise the current
1595
+ * builder and its UBO rule apply; the parity fixtures keep the two equal.
1596
+ * `useDefinitions` is the rollout answer the machine read once, when it was
1597
+ * created (`selectEkybForm`).
496
1598
  */
497
- function buildEkybForm(config, verificationFields, country) {
498
- const form = selectEkybForm(config, verificationFields, country);
1599
+ function buildEkybForm(config, verificationFields, country, useDefinitions) {
1600
+ const form = selectEkybForm(config, verificationFields, country, useDefinitions);
499
1601
  if (form) return {
500
1602
  fields: projectEkybFields(form, country),
501
1603
  hasUbos: hasUboCollection(form)
@@ -506,9 +1608,13 @@ function buildEkybForm(config, verificationFields, country) {
506
1608
  hasUbos
507
1609
  };
508
1610
  }
509
- /** The per-country builder for countries without a form definition yet. */
1611
+ /**
1612
+ * The per-country builder, used with the rollout off and for custom field
1613
+ * lists that aren't whole groups. Every country's form definition must give
1614
+ * the same fields (parity), so change both together.
1615
+ */
510
1616
  function buildEkybFields(verificationFields, country, _hasUbos) {
511
- let modules = verificationFields.filter((f) => f !== "ubos-user_input" && !f.startsWith("socure"));
1617
+ let modules = verificationFields.filter((f) => f !== "ubos-user_input" && isFormFieldEntry(f));
512
1618
  if (country === "GB") modules = modules.filter((m) => m !== "state-user_input");
513
1619
  if (country === "MX") modules = modules.filter((m) => {
514
1620
  if (m === "ubos-user_input") return false;
@@ -596,9 +1702,7 @@ async function fetchEkybModuleConfig(signal) {
596
1702
  }
597
1703
  /** Submits eKYB business verification */
598
1704
  async function submitEkyb(data, signal) {
599
- const res = await api.post(endpoints.ekybSubmit, data, { signal });
600
- if (!res.ok) throw new Error(`POST ${endpoints.ekybSubmit} failed: ${res.status} ${res.statusText}`);
601
- return res.data;
1705
+ return (await api.post(endpoints.ekybSubmit, data, { signal })).data;
602
1706
  }
603
1707
  //#endregion
604
1708
  //#region src/modules/ekyb/ekybActors.ts
@@ -625,7 +1729,7 @@ const ekybMachine = setup({
625
1729
  debounceSearch: debounceSearchActor
626
1730
  },
627
1731
  actions: {
628
- applyFetchedConfig: assign(({ event }) => {
1732
+ applyFetchedConfig: assign(({ context, event }) => {
629
1733
  const fetched = event.output;
630
1734
  const config = {
631
1735
  checkBusinessName: fetched.checkBusinessName,
@@ -634,7 +1738,7 @@ const ekybMachine = setup({
634
1738
  checkUniqueBeneficialOwner: fetched.checkUniqueBeneficialOwner
635
1739
  };
636
1740
  const country = "US";
637
- const { fields, hasUbos } = buildEkybForm(config, getDefaultVerificationFields(config), country);
1741
+ const { fields, hasUbos } = buildEkybForm(config, getDefaultVerificationFields(config), country, context._formDefinitions);
638
1742
  return {
639
1743
  config,
640
1744
  country,
@@ -657,7 +1761,7 @@ const ekybMachine = setup({
657
1761
  setCountry: assign(({ context, event }) => {
658
1762
  const { country } = event;
659
1763
  const vFields = getDefaultVerificationFields(context.config);
660
- const { fields, hasUbos } = buildEkybForm(context.config, vFields, country);
1764
+ const { fields, hasUbos } = buildEkybForm(context.config, vFields, country, context._formDefinitions);
661
1765
  let nextId = context._nextUboId;
662
1766
  let ubos;
663
1767
  if (hasUbos) if (context.ubos.length > 0) ubos = context.ubos;
@@ -775,7 +1879,8 @@ const ekybMachine = setup({
775
1879
  fillAddressFields: assign(({ context, event }) => {
776
1880
  const { suggestion } = event;
777
1881
  const activeFields = new Set(context.fields.map((f) => f.name));
778
- const { values: newValues } = fillFromSuggestion(context.values, {}, suggestion, activeFields);
1882
+ const { values: filled } = fillFromSuggestion(context.values, {}, suggestion, activeFields);
1883
+ const newValues = keepSuggestionInOptions(context.fields, context.values, filled);
779
1884
  const errs = context.validationErrors;
780
1885
  let newErrors = errs;
781
1886
  if (errs) {
@@ -810,7 +1915,9 @@ const ekybMachine = setup({
810
1915
  context: ({ input }) => {
811
1916
  const config = toEkybConfig(input.config);
812
1917
  const country = "US";
813
- const { fields, hasUbos } = buildEkybForm(config, getDefaultVerificationFields(config), country);
1918
+ const vFields = getDefaultVerificationFields(config);
1919
+ const formDefinitions = isFormDefinitionsEnabled();
1920
+ const { fields, hasUbos } = buildEkybForm(config, vFields, country, formDefinitions);
814
1921
  return {
815
1922
  config,
816
1923
  country,
@@ -828,7 +1935,8 @@ const ekybMachine = setup({
828
1935
  errorMessage: "",
829
1936
  addressSuggestions: [],
830
1937
  _nextUboId: 2,
831
- _searchQuery: ""
1938
+ _searchQuery: "",
1939
+ _formDefinitions: formDefinitions
832
1940
  };
833
1941
  },
834
1942
  states: {
@@ -865,7 +1973,8 @@ const ekybMachine = setup({
865
1973
  RESULTS: {
866
1974
  target: "inputting",
867
1975
  actions: "setAddressSuggestions"
868
- }
1976
+ },
1977
+ SUBMIT: { target: "validatingSubmit" }
869
1978
  }
870
1979
  },
871
1980
  validatingSubmit: {