@incodetech/core 2.4.1-agentic.9 → 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 (308) 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/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-C7N1N61V.esm.js} +55 -1
  4. package/dist/{FaceDetectionProvider-CHpscouN.esm.js → FaceDetectionProvider-Dv9iXub0.esm.js} +21 -13
  5. package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-CAxToGns.d.ts} +3 -3
  6. package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-CLWIYHB4.d.ts} +7 -6
  7. package/dist/Manager-BvXAwDv9.esm.js +125 -0
  8. package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
  9. package/dist/{MotionSensorProvider-DYxh8TjR.esm.js → MotionSensorProvider-X4_2eBGd.esm.js} +15 -0
  10. package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-BtMQZEbg.esm.js} +1 -1
  11. package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-BqaHTJF0.d.ts} +25 -3
  12. package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
  13. package/dist/{WasmUtilProvider-Dp2V-Uct.esm.js → WasmUtilProvider-DVFDFlIL.esm.js} +63 -6
  14. package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-BO7urYwT.esm.js} +1 -1
  15. package/dist/{addressSearch-D6cKPWmk.esm.js → addressSearch-BKlynuBr.esm.js} +6 -7
  16. package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
  17. package/dist/ae-signature.d.ts +2 -2
  18. package/dist/ae-signature.esm.js +1 -1
  19. package/dist/antifraud.d.ts +1 -1
  20. package/dist/antifraud.esm.js +2 -2
  21. package/dist/{antifraudManager-CbIwM35x.esm.js → antifraudManager-BI2zr7YX.esm.js} +5 -3
  22. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  23. package/dist/{antifraudStateMachine-qNNXrlsP.esm.js → antifraudStateMachine-TWUu8wLN.esm.js} +4 -6
  24. package/dist/{api-C_P9YXbL.esm.js → api-BNxrW8xK.esm.js} +4 -1
  25. package/dist/{apiError-BeWqIYu8.esm.js → apiError-BAfdBGxH.esm.js} +1 -1
  26. package/dist/{attemptCarry-BaAXPR_w.esm.js → attemptCarry-DWM8lV9V.esm.js} +1 -1
  27. package/dist/authentication.d.ts +3 -3
  28. package/dist/authentication.esm.js +2 -2
  29. package/dist/{authenticationManager-DKLRA91K.d.ts → authenticationManager-BJElkTsj.d.ts} +2 -2
  30. package/dist/{authenticationManager-CTHFl6dl.esm.js → authenticationManager-DFzByAYo.esm.js} +7 -6
  31. package/dist/{authenticationStateMachine-D-SOzH8C.esm.js → authenticationStateMachine-CKTOhwwc.esm.js} +50 -18
  32. package/dist/avatar.d.ts +1 -1
  33. package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-6qVHvj76.esm.js} +2 -2
  34. package/dist/{browser-pQZA35G2-DJEJnmCd.esm.js → browser-pQZA35G2-CG3C-xGt.esm.js} +1 -1
  35. package/dist/calendarDate-DcqGuEht.esm.js +35 -0
  36. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  37. package/dist/camera-9yYDUOsO.d.ts +5 -0
  38. package/dist/{camera-E_Kcre4O.esm.js → camera-CJKApt0x.esm.js} +10 -3
  39. package/dist/camera.d.ts +7 -3
  40. package/dist/camera.esm.js +1 -1
  41. package/dist/certificate-issuance.d.ts +1 -1
  42. package/dist/certificate-issuance.esm.js +2 -2
  43. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  44. package/dist/{certificateIssuanceManager-CrF3wjCH.esm.js → certificateIssuanceManager-P44yBRop.esm.js} +5 -3
  45. package/dist/{certificateIssuanceStateMachine-uSD9IkcV.esm.js → certificateIssuanceStateMachine-BPBrILt6.esm.js} +3 -3
  46. package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
  47. package/dist/consent.d.ts +1 -1
  48. package/dist/consent.esm.js +2 -2
  49. package/dist/{consentManager-BD7wwgat.esm.js → consentManager-D43w2ms-.esm.js} +5 -3
  50. package/dist/{consentManager-7aHaehwF.d.ts → consentManager-Duzd8paN.d.ts} +4 -3
  51. package/dist/{consentStateMachine-BAiLDE3D.esm.js → consentStateMachine-CLK8PfM4.esm.js} +6 -9
  52. package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
  53. package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-Ct9QrQ66.d.ts} +1 -1
  54. package/dist/cross-document-data-match.d.ts +1 -1
  55. package/dist/cross-document-data-match.esm.js +1 -1
  56. package/dist/{crossDocumentDataMatchManager-CUc1uACE.esm.js → crossDocumentDataMatchManager-Cag_bcyW.esm.js} +6 -5
  57. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  58. package/dist/curp-DZGvefg3.esm.js +14 -0
  59. package/dist/curp-validation.d.ts +1 -1
  60. package/dist/curp-validation.esm.js +2 -2
  61. package/dist/{curpValidationManager-DBfZSQbu.esm.js → curpValidationManager-C6WmQToS.esm.js} +6 -4
  62. package/dist/{curpValidationManager-Crz3bnCo.d.ts → curpValidationManager-CmL52FU8.d.ts} +4 -4
  63. package/dist/{curpValidationStateMachine-DyAEyScb.esm.js → curpValidationStateMachine-BbJ4YAzE.esm.js} +16 -17
  64. package/dist/custom-fields.d.ts +1 -1
  65. package/dist/custom-fields.esm.js +1 -1
  66. package/dist/custom-watchlist.d.ts +1 -1
  67. package/dist/custom-watchlist.esm.js +2 -2
  68. package/dist/{customFieldsManager-BZhIPyaY.esm.js → customFieldsManager-BBy6X9nh.esm.js} +15 -17
  69. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  70. package/dist/{customWatchlistManager-B4cmxi__.esm.js → customWatchlistManager-CtBMy2EF.esm.js} +5 -3
  71. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  72. package/dist/{customWatchlistStateMachine-ZZoDGRAZ.esm.js → customWatchlistStateMachine-SS2ssNCg.esm.js} +4 -6
  73. package/dist/deepsightCaptureConfig-Nm_K8twx.esm.js +70 -0
  74. package/dist/{deepsightLoader-je1YxHgT.esm.js → deepsightLoader-BInnND1H.esm.js} +7 -6
  75. package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-B-Z2EgJJ.esm.js} +51 -1
  76. package/dist/{desktopCameraElection-m2dAj6Zu.esm.js → desktopCameraElection-JNBOXqvK.esm.js} +110 -13
  77. package/dist/device.d.ts +3 -3
  78. package/dist/device.esm.js +16 -16
  79. package/dist/document-capture.d.ts +2 -2
  80. package/dist/document-capture.esm.js +2 -2
  81. package/dist/document-signature.d.ts +123 -0
  82. package/dist/document-signature.esm.js +149 -0
  83. package/dist/{documentCaptureManager-v57klTso.esm.js → documentCaptureManager-CGDtkfWj.esm.js} +5 -3
  84. package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +7 -6
  85. package/dist/{documentCaptureStateMachine-CgCtimSa.esm.js → documentCaptureStateMachine-flAt9D4q.esm.js} +11 -13
  86. package/dist/documentSignatureStateMachine-DrRyICFT.esm.js +219 -0
  87. package/dist/dynamic-forms.d.ts +1 -1
  88. package/dist/dynamic-forms.esm.js +2 -2
  89. package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
  90. package/dist/{dynamicFormsManager-BKWJZfkn.esm.js → dynamicFormsManager-CxLq2KzT.esm.js} +5 -3
  91. package/dist/{dynamicFormsStateMachine-CQN8p1ux.esm.js → dynamicFormsStateMachine-By-maT_4.esm.js} +12 -13
  92. package/dist/ekyb.d.ts +3 -3
  93. package/dist/ekyb.esm.js +3 -3
  94. package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
  95. package/dist/{ekybManager-BD6HTwFJ.esm.js → ekybManager-CE19Pcdb.esm.js} +5 -3
  96. package/dist/{ekybStateMachine-3kceTymI.esm.js → ekybStateMachine-q7JQ-x9l.esm.js} +1214 -91
  97. package/dist/{ekybUtils-Cw8Ta9Qi.esm.js → ekybUtils-Z9MhFAer.esm.js} +11 -1
  98. package/dist/ekyc-prefill.d.ts +3 -3
  99. package/dist/ekyc-prefill.esm.js +2 -2
  100. package/dist/ekyc.d.ts +3 -3
  101. package/dist/ekyc.esm.js +3 -3
  102. package/dist/{ekycManager-CERRvIfg.d.ts → ekycManager-BKVQazAb.d.ts} +48 -7
  103. package/dist/{ekycManager-DawJq3Jo.esm.js → ekycManager-p3uenUEi.esm.js} +39 -16
  104. package/dist/{ekycPrefillManager-DLNmToWT.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +10 -9
  105. package/dist/{ekycPrefillManager-D_8NJzZf.esm.js → ekycPrefillManager-gPX3XE7u.esm.js} +3 -2
  106. package/dist/{ekycPrefillStateMachine-C-JAvkH3.esm.js → ekycPrefillStateMachine-SBnBKPGA.esm.js} +12 -13
  107. package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-BH_Ll_0A.esm.js} +201 -38
  108. package/dist/{ekycStateMachine-qvQ-b4IY.esm.js → ekycStateMachine-D0NAHzS7.esm.js} +1031 -132
  109. package/dist/{ekycUtils-Drx8ImpN.esm.js → ekycUtils-DEvtEyBI.esm.js} +55 -43
  110. package/dist/electronic-signature.d.ts +1 -1
  111. package/dist/electronic-signature.esm.js +1 -1
  112. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  113. package/dist/{electronicSignatureManager-u3UBhWw_.esm.js → electronicSignatureManager-C1M-Yxf2.esm.js} +11 -17
  114. package/dist/email.d.ts +1 -1
  115. package/dist/email.esm.js +2 -2
  116. package/dist/{emailManager-BSaGg1Gl.esm.js → emailManager-DWnhEsUf.esm.js} +5 -3
  117. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  118. package/dist/{emailStateMachine-CaoPZtZN.esm.js → emailStateMachine--T9PHflK.esm.js} +5 -7
  119. package/dist/events-ChMS-UzR.esm.js +299 -0
  120. package/dist/events.d.ts +4 -1
  121. package/dist/events.esm.js +2 -1
  122. package/dist/extensibility.d.ts +42 -42
  123. package/dist/extensibility.esm.js +38 -38
  124. package/dist/face-match.d.ts +1 -1
  125. package/dist/face-match.esm.js +2 -2
  126. package/dist/{faceCaptureManagerFactory-DKJUjsV2.esm.js → faceCaptureManagerFactory-18QW0lmV.esm.js} +29 -12
  127. package/dist/{faceCaptureManagerFactory-ZudYP6Qp.d.ts → faceCaptureManagerFactory-CHqmyOjM.d.ts} +35 -16
  128. package/dist/{faceCaptureSetup-CZzv26ip.esm.js → faceCaptureSetup-CFToXwHy.esm.js} +115 -74
  129. package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-C5b5WtcY.d.ts} +12 -5
  130. package/dist/{faceMatchManager-qPJsa5Ac.esm.js → faceMatchManager-DIStK4qi.esm.js} +5 -3
  131. package/dist/{faceMatchStateMachine-D90ZHY1r.esm.js → faceMatchStateMachine-DagrRdo2.esm.js} +49 -34
  132. package/dist/{feature-management-BMUPPAzI.esm.js → feature-management-BlscKbeV.esm.js} +3 -2
  133. package/dist/feature-management.esm.js +1 -1
  134. package/dist/field-comparison.d.ts +1 -1
  135. package/dist/field-comparison.esm.js +1 -1
  136. package/dist/{fieldComparisonManager-BLLj_Ey1.esm.js → fieldComparisonManager-BnWBtMN7.esm.js} +7 -7
  137. package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
  138. package/dist/fiscal-qr.d.ts +1 -1
  139. package/dist/fiscal-qr.esm.js +1 -1
  140. package/dist/{fiscalQrManager-Bh3rxb7Y.esm.js → fiscalQrManager-BxXaLhin.esm.js} +9 -8
  141. package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
  142. package/dist/flow-events.d.ts +1 -1
  143. package/dist/flow.d.ts +50 -14
  144. package/dist/flow.esm.js +214 -58
  145. package/dist/{flowCompletionService-DgA2VEq4.esm.js → flowCompletionService-DNLssMAg.esm.js} +2 -2
  146. package/dist/{flowServices-aJ5kGxBd.esm.js → flowServices-Bzq3piUR.esm.js} +378 -18
  147. package/dist/geolocation.d.ts +1 -1
  148. package/dist/geolocation.esm.js +2 -2
  149. package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
  150. package/dist/{geolocationManager-BA57nCxj.esm.js → geolocationManager-DoLbpx5e.esm.js} +5 -3
  151. package/dist/{geolocationStateMachine-3-d1ECCh.esm.js → geolocationStateMachine-d5_E7gAm.esm.js} +8 -10
  152. package/dist/{getDeviceClass-DoIWuKI8.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
  153. package/dist/government-validation.d.ts +1 -1
  154. package/dist/government-validation.esm.js +2 -2
  155. package/dist/{governmentValidationManager-D5HkBqfr.esm.js → governmentValidationManager-CaZxyEOO.esm.js} +5 -3
  156. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  157. package/dist/{governmentValidationStateMachine-BwMClTqC.esm.js → governmentValidationStateMachine-DeHHhlcf.esm.js} +4 -6
  158. package/dist/home.d.ts +4 -3
  159. package/dist/home.esm.js +4 -2
  160. package/dist/http.esm.js +1 -1
  161. package/dist/id-ocr.d.ts +1 -1
  162. package/dist/id-ocr.esm.js +3 -3
  163. package/dist/id-selfie-flow.d.ts +7 -6
  164. package/dist/id-selfie-flow.esm.js +14 -13
  165. package/dist/id-verification.d.ts +1 -1
  166. package/dist/id-verification.esm.js +2 -2
  167. package/dist/id.d.ts +5 -5
  168. package/dist/id.esm.js +3 -3
  169. package/dist/{idCaptureDefaults-Dszuq9ng.esm.js → idCaptureDefaults-R3rHuTOE.esm.js} +4 -4
  170. package/dist/{idCaptureManager-NRGuCVv2.d.ts → idCaptureManager-CgkQW3Xc.d.ts} +24 -13
  171. package/dist/{idCaptureManager-B_TyUA3w.esm.js → idCaptureManager-D_YGMeCW.esm.js} +30 -22
  172. package/dist/{idCaptureServices-C6FUQ76N.esm.js → idCaptureServices-CP6AxsFW.esm.js} +17 -25
  173. package/dist/{idCaptureStateMachine-Cr8WdGyp.esm.js → idCaptureStateMachine-BdBtGQZP.esm.js} +114 -96
  174. package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
  175. package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-C0C7lFGd.d.ts} +4 -3
  176. package/dist/{idOcrManager-BMK2oou0.esm.js → idOcrManager-XTbpfHoF.esm.js} +5 -3
  177. package/dist/{idOcrStateMachine-RjNycN07.esm.js → idOcrStateMachine-B-00PgPh.esm.js} +13 -10
  178. package/dist/{idVerificationManager-4wY-Ee4j.esm.js → idVerificationManager-B4NYLlUl.esm.js} +5 -3
  179. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  180. package/dist/{idVerificationStateMachine-Bj00uWvh.esm.js → idVerificationStateMachine-B48Ikl-7.esm.js} +4 -6
  181. package/dist/identity-reuse.d.ts +2 -2
  182. package/dist/identity-reuse.esm.js +2 -2
  183. package/dist/identity-search.d.ts +97 -0
  184. package/dist/identity-search.esm.js +96 -0
  185. package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +84 -17
  186. package/dist/{identityReuseManager-CCZ-ES2E.esm.js → identityReuseManager-tFeYm_So.esm.js} +9 -4
  187. package/dist/{identityReuseStateMachine-BtpkGpYZ.esm.js → identityReuseStateMachine-Ckf39qFu.esm.js} +24 -31
  188. package/dist/{index-DlVDVTcf.d.ts → index-CNck5TLp.d.ts} +1 -1
  189. package/dist/{index-BGnYn_4J.d.ts → index-CoePktWH.d.ts} +2 -2
  190. package/dist/index-DHuAkTe0.d.ts +1 -0
  191. package/dist/index.d.ts +1 -1
  192. package/dist/index.esm.js +1 -1
  193. package/dist/{invokeOnCaptureCallback-BkvXSZfa.esm.js → invokeOnCaptureCallback-DNQX9k5e.esm.js} +1 -1
  194. package/dist/kyb-checks.d.ts +1 -1
  195. package/dist/kyb-checks.esm.js +2 -2
  196. package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
  197. package/dist/{kybChecksManager-x2nBdasv.esm.js → kybChecksManager-DP76y-Qz.esm.js} +3 -2
  198. package/dist/{kybChecksStateMachine-DdWSo3jQ.esm.js → kybChecksStateMachine-OKLT8Zoc.esm.js} +11 -14
  199. package/dist/mandatory-consent.d.ts +2 -2
  200. package/dist/mandatory-consent.esm.js +2 -2
  201. package/dist/{mandatoryConsentManager-C9JJGENL.esm.js → mandatoryConsentManager-NX1lz6nk.esm.js} +5 -3
  202. package/dist/{mandatoryConsentManager-JNeVXgK8.d.ts → mandatoryConsentManager-kzr5kdc_.d.ts} +5 -4
  203. package/dist/{mandatoryConsentStateMachine-DLNIGElA.esm.js → mandatoryConsentStateMachine-D1J2NQSI.esm.js} +6 -9
  204. package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-Di_V9TnZ.esm.js} +21 -4
  205. package/dist/{multipartRecordingService-OmSzHBqh.esm.js → multipartRecordingService-Cz-cWrpV.esm.js} +2 -2
  206. package/dist/{permissionGuards-DFV-Ws0a.esm.js → permissionGuards-Cyh71hOt.esm.js} +1 -1
  207. package/dist/{permissionServices-D190ATGD.esm.js → permissionServices-BrtDMB0Z.esm.js} +23 -9
  208. package/dist/phone.d.ts +1 -1
  209. package/dist/phone.esm.js +2 -2
  210. package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
  211. package/dist/{phoneManager-BylOWecM.esm.js → phoneManager-D1QPNbu0.esm.js} +5 -3
  212. package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
  213. package/dist/{phoneServices-Crge7uSV.esm.js → phoneServices-DC7AuUed.esm.js} +3 -7
  214. package/dist/{phoneStateMachine-CHnhCS-4.esm.js → phoneStateMachine-CxCPxTIy.esm.js} +4 -4
  215. package/dist/{platform-aPh7gTWh.esm.js → platform-GIg4uPWe.esm.js} +1 -4
  216. package/dist/{processFaceMatch-BveUAHts.esm.js → processFaceMatch-BQoiqLVh.esm.js} +1 -1
  217. package/dist/qe-signature.d.ts +2 -2
  218. package/dist/qe-signature.esm.js +1 -1
  219. package/dist/{recordingService-BUqAQd8F.esm.js → recordingService-CSCvD2tB.esm.js} +17 -10
  220. package/dist/redirect-to-mobile.d.ts +1 -1
  221. package/dist/redirect-to-mobile.esm.js +2 -2
  222. package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-Db99n9Yu.d.ts} +4 -3
  223. package/dist/{redirectToMobileManager-DUpLyXsq.esm.js → redirectToMobileManager-Dcpg5GfP.esm.js} +7 -4
  224. package/dist/{redirectToMobileStateMachine-D0DW4y-f.esm.js → redirectToMobileStateMachine-BMehrtVP.esm.js} +18 -21
  225. package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
  226. package/dist/{runChildModule-BTMOZdMM.esm.js → runChildModule-DNEmc7of.esm.js} +8 -6
  227. package/dist/{sdkVersion-CinXzhdk.esm.js → sdkVersion-etdZfyCR.esm.js} +1 -1
  228. package/dist/selfie.d.ts +6 -6
  229. package/dist/selfie.esm.js +15 -13
  230. package/dist/{selfieErrorUtils-D92PpZGe.esm.js → selfieErrorUtils-DT-uhK20.esm.js} +1 -1
  231. package/dist/{selfieManager-DX9Ejy4x.esm.js → selfieManager-CdS6a7Q8.esm.js} +7 -6
  232. package/dist/{selfieManager-BPOlD-UN.d.ts → selfieManager-DrBYj5kA.d.ts} +2 -2
  233. package/dist/{selfieStateMachine-BfJ5mJ57.esm.js → selfieStateMachine-ChCl3nyf.esm.js} +5 -5
  234. package/dist/{session-CswNE2eZ.esm.js → session-VXYuRYzb.esm.js} +5 -4
  235. package/dist/session.d.ts +3 -13
  236. package/dist/session.esm.js +5 -5
  237. package/dist/{sessionInitializer-DFtIRfDh.esm.js → sessionInitializer-BT_CmYcX.esm.js} +54 -79
  238. package/dist/{setup-Bl3CRduw.esm.js → setup-BXrgDdfx.esm.js} +14 -12
  239. package/dist/{setup-prV5HQCQ.d.ts → setup-rcXgYUcY.d.ts} +6 -5
  240. package/dist/signature.d.ts +1 -1
  241. package/dist/signature.esm.js +2 -2
  242. package/dist/{signatureManager-QlegdTo3.esm.js → signatureManager-B737Gkvk.esm.js} +5 -3
  243. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  244. package/dist/{signatureStateMachine-DFbbbFwg.esm.js → signatureStateMachine-B-QG7fk0.esm.js} +5 -7
  245. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  246. package/dist/{stats-Bv5PiWvo.esm.js → stats-CrqhpKkP.esm.js} +1 -1
  247. package/dist/stats.esm.js +1 -1
  248. package/dist/step-up.d.ts +3 -2
  249. package/dist/step-up.esm.js +2 -1
  250. package/dist/{tri-BUFivnaE.esm.js → tri-BD9z6z0w.esm.js} +6 -3
  251. package/dist/tri.d.ts +1 -1
  252. package/dist/tri.esm-DYdFtcDH.esm.js +3105 -0
  253. package/dist/tri.esm.js +1 -1
  254. package/dist/trueSight-BymJD5cW.esm.js +1 -0
  255. package/dist/{trueSightService-CDbmG-Mi.esm.js → trueSightService-BwyLhIAo.esm.js} +10 -8
  256. package/dist/trust-graph.d.ts +87 -27
  257. package/dist/trust-graph.esm.js +6 -25
  258. package/dist/trustGraphStateMachine-BxvReuo1.esm.js +58 -0
  259. package/dist/{types-CquDWYfv.d.ts → types-4Re9FSOw.d.ts} +68 -6
  260. package/dist/{types-D9vIGFbl.d.ts → types-B-PIc0en.d.ts} +1 -1
  261. package/dist/types-BNkzXOXE.d.ts +45 -0
  262. package/dist/types-BtrJ5fkm.d.ts +6 -0
  263. package/dist/{types-LA74KylV.d.ts → types-C1056-J1.d.ts} +1 -1
  264. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  265. package/dist/{events-kU5WJU4B.esm.js → types-CBQN04Rh.esm.js} +5 -299
  266. package/dist/{types-BD9sV5oG.d.ts → types-CEGG70FK.d.ts} +16 -3
  267. package/dist/types-CXTDuzUJ.d.ts +16 -0
  268. package/dist/{types-BEwVKkLJ.d.ts → types-CeEcakO7.d.ts} +7 -1
  269. package/dist/{types-CyNndVAT.d.ts → types-Cy6Lx3L6.d.ts} +2 -2
  270. package/dist/{types-BaDx6utW.d.ts → types-DEa3taWc.d.ts} +4 -0
  271. package/dist/{types-0Rr7etmf.d.ts → types-DHpz4Y37.d.ts} +1 -1
  272. package/dist/{types-BpJ21a4T.d.ts → types-b0l9b83G.d.ts} +14 -7
  273. package/dist/video-selfie.d.ts +8 -7
  274. package/dist/video-selfie.esm.js +14 -13
  275. package/dist/{videoSelfieCameraWarmer-Dnkiqe0z.esm.js → videoSelfieCameraWarmer-DgRlU_8q.esm.js} +10 -10
  276. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  277. package/dist/{videoSelfieStepDetector-B78BE_x9.d.ts → videoSelfieStepDetector-DC_Qh7qI.d.ts} +19 -9
  278. package/dist/{warmup-DtB0DJpl.esm.js → warmup-BN8dG2KX.esm.js} +192 -42
  279. package/dist/{warmup-BO57syF6.d.ts → warmup-SWu5L7cW.d.ts} +19 -2
  280. package/dist/wasm.d.ts +9 -3
  281. package/dist/wasm.esm.js +3 -3
  282. package/dist/wasmDeepsightConfigSync-DukEcrU8.esm.js +77 -0
  283. package/dist/{wasmDsFlagSync-BtiR5pig.esm.js → wasmDsFlagSync-DwBfTlgB.esm.js} +1 -1
  284. package/dist/{wasmWebClient-BDrax6Eu.esm.js → wasmWebClient-B2P6Vlvv.esm.js} +32 -13
  285. package/dist/watchlist-for-business.d.ts +1 -1
  286. package/dist/watchlist-for-business.esm.js +2 -2
  287. package/dist/watchlist.d.ts +1 -1
  288. package/dist/watchlist.esm.js +2 -2
  289. package/dist/{watchlistForBusinessManager-DOYmIiaj.esm.js → watchlistForBusinessManager-DxeSH80T.esm.js} +5 -3
  290. package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
  291. package/dist/{watchlistForBusinessStateMachine-D8qIyL8w.esm.js → watchlistForBusinessStateMachine-BC9UWLuZ.esm.js} +12 -9
  292. package/dist/{watchlistManager-BJGLRv-x.esm.js → watchlistManager-BHzmC9OC.esm.js} +5 -3
  293. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  294. package/dist/{watchlistStateMachine-DeLfuGSl.esm.js → watchlistStateMachine-Bxzn16iJ.esm.js} +4 -6
  295. package/dist/workflow.d.ts +6 -5
  296. package/dist/workflow.esm.js +68 -49
  297. package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
  298. package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
  299. package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
  300. package/package.json +13 -3
  301. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  302. package/dist/camera-9wWD-pwg.d.ts +0 -4
  303. package/dist/index-DpTj5PFb.d.ts +0 -1
  304. package/dist/nationalIds-B91f_RuB.esm.js +0 -99
  305. package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
  306. package/dist/tri.esm-DgtAka_v.esm.js +0 -2145
  307. package/dist/types-B2M1IPZn.d.ts +0 -6
  308. package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +0 -27
@@ -1,15 +1,15 @@
1
- import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
2
2
  import { t as getPhoneValidation } from "./phoneValidation-OggtfjRt.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";
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 formatPhoneNational, c as oneOfRequiredErrorKey, i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN, s as loadPhoneValidator, t as RULES, u as validateEkycForm } from "./ekycRules-BH_Ll_0A.esm.js";
5
6
  import { n as usStates, t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
6
- import { a as getPostalCodeMaxLength, c as fillFromSuggestion, l as getStreetLevelErrorForSuggestion, r as formatPostalCode, t as createBundledDefinitionSource } from "./definitionSource-BHNxbuiv.esm.js";
7
- import { n as checkSupport, t as resolveForm } from "./resolveForm-f9PhUo9j.esm.js";
8
- import { n as searchAddress, r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-D6cKPWmk.esm.js";
9
- import { C as TAX_ID_SOURCES, S as STREET_SOURCES, _ as MIDDLE_NAME_SOURCES, a as getEKYCFields, b as POSTAL_CODE_SOURCES, c as resolveEkycSource, d as APARTMENT_SOURCES, f as CITY_SOURCES, g as HOUSE_NO_SOURCES, h as EMAIL_SOURCES, i as getEKYCDisplayModes, l as toEkycConfig, m as COUNTRY_SELECTOR_DISABLED_SOURCES, o as isFieldOptional, p as COUNTRY_CODE_OMITTED_SOURCES, r as getEKYCCountry, s as mapToEKYCvalue, t as EKYC_GROUP_KEYS, u as ADDRESS_STATE_SOURCES, v as NAME_SOURCES, w as VOCABULARY, x as STATE_CODE_HINTS, y as ONE_OF_REQUIRED_GROUPS } from "./ekycUtils-Drx8ImpN.esm.js";
7
+ import { a as getPostalCodeMaxLength, c as fillFromSuggestion, l as getStreetLevelErrorForSuggestion, n as formatPostalCode, t as createBundledDefinitionSource, u as keepSuggestionInOptions } from "./definitionSource-B-Z2EgJJ.esm.js";
8
+ import { n as checkSupport, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
9
+ import { n as searchAddress, r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-BKlynuBr.esm.js";
10
+ import { C as TAX_ID_SOURCES, S as STREET_SOURCES, _ as MIDDLE_NAME_SOURCES, a as getEKYCFields, b as POSTAL_CODE_SOURCES, c as resolveEkycSource, d as APARTMENT_SOURCES, f as CITY_SOURCES, g as HOUSE_NO_SOURCES, h as EMAIL_SOURCES, i as getEKYCDisplayModes, l as toEkycConfig, m as COUNTRY_SELECTOR_DISABLED_SOURCES, o as isFieldOptional, p as COUNTRY_CODE_OMITTED_SOURCES, r as getEKYCCountry, s as mapToEKYCvalue, t as EKYC_GROUP_KEYS, u as ADDRESS_STATE_SOURCES, v as NAME_SOURCES, w as VOCABULARY, x as STATE_CODE_HINTS, y as ONE_OF_REQUIRED_GROUPS } from "./ekycUtils-DEvtEyBI.esm.js";
10
11
  import { t as DateFormattingProvider } from "./DateFormattingProvider-DPq9zco-.esm.js";
11
- import { n as CHARACTER_CLASSES, t as formatPhoneE164 } from "./phoneFormat-DEpESpz2.esm.js";
12
- import { a as formatPhoneNational, c as oneOfRequiredErrorKey, i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN, s as loadPhoneValidator, t as RULES, u as validateEkycForm } from "./ekycRules-BLX7Elcb.esm.js";
12
+ import { t as formatPhoneE164 } from "./phoneFormat-C3q0Ukh4.esm.js";
13
13
  //#region src/internal/forms/resolvePrefill.ts
14
14
  const DISPLAY_MODES = /* @__PURE__ */ new Set([
15
15
  "editable",
@@ -205,6 +205,13 @@ const brStateOptions = Object.values({
205
205
  label: state.name
206
206
  }));
207
207
  //#endregion
208
+ //#region src/shared/validators/textRules.ts
209
+ const CHARACTER_CLASSES = [
210
+ "letter",
211
+ "digit",
212
+ "space"
213
+ ];
214
+ //#endregion
208
215
  //#region ../form-definitions/generated/ekyc.ts
209
216
  const EKYC_DEFINITIONS = {
210
217
  "ekyc/AR/AR_CREDIT_BUR_1": {
@@ -849,7 +856,7 @@ const EKYC_DEFINITIONS = {
849
856
  label: { key: "verification.labels.brazilian" }
850
857
  },
851
858
  {
852
- value: "naturalizedBrazilian",
859
+ value: "naturalized_brazilian",
853
860
  label: { key: "verification.labels.naturalizedBrazilian" }
854
861
  },
855
862
  {
@@ -857,7 +864,7 @@ const EKYC_DEFINITIONS = {
857
864
  label: { key: "verification.labels.foreigner" }
858
865
  },
859
866
  {
860
- value: "brazilianBornAbroad",
867
+ value: "brazilian_born_abroad",
861
868
  label: { key: "verification.labels.brazilianBornAbroad" }
862
869
  }
863
870
  ],
@@ -1551,14 +1558,6 @@ const EKYC_DEFINITIONS = {
1551
1558
  rules: [{ id: "noPoBox" }],
1552
1559
  prefill: ["document.street", "poa.street"]
1553
1560
  },
1554
- {
1555
- name: "houseNo",
1556
- kind: "text",
1557
- group: "address",
1558
- section: "address",
1559
- label: { key: "verification.labels.houseNo" },
1560
- prefill: ["document.houseNumber", "poa.houseNumber"]
1561
- },
1562
1561
  {
1563
1562
  name: "city",
1564
1563
  kind: "text",
@@ -3200,6 +3199,175 @@ const EKYC_DEFINITIONS = {
3200
3199
  }
3201
3200
  }
3202
3201
  },
3202
+ "ekyc/HK/HK_RESIDENT_REGISTER": {
3203
+ schemaVersion: 1,
3204
+ vocabulary: "1.3",
3205
+ id: "ekyc/HK/HK_RESIDENT_REGISTER",
3206
+ module: "ekyc",
3207
+ country: "HK",
3208
+ source: "HK_RESIDENT_REGISTER",
3209
+ sections: [{ id: "address" }],
3210
+ fields: [
3211
+ {
3212
+ name: "firstName",
3213
+ kind: "text",
3214
+ group: "name",
3215
+ required: true,
3216
+ label: { key: "verification.labels.firstName" },
3217
+ placeholder: { key: "verification.placeholder.firstName" },
3218
+ input: {
3219
+ maxLength: 100,
3220
+ autofill: "givenName"
3221
+ },
3222
+ rules: [{ id: "nameCharacters" }],
3223
+ prefill: ["document.firstName", "poa.firstName"]
3224
+ },
3225
+ {
3226
+ name: "surName",
3227
+ kind: "text",
3228
+ group: "name",
3229
+ required: true,
3230
+ label: { key: "verification.labels.surName" },
3231
+ placeholder: { key: "verification.placeholder.surname" },
3232
+ input: {
3233
+ maxLength: 100,
3234
+ autofill: "familyName"
3235
+ },
3236
+ rules: [{ id: "nameCharacters" }],
3237
+ prefill: ["document.paternalLastName", "poa.lastName"]
3238
+ },
3239
+ {
3240
+ name: "dateOfBirth",
3241
+ kind: "date",
3242
+ group: "dateOfBirth",
3243
+ label: { key: "verification.labels.dateOfBirth" },
3244
+ input: { autofill: "birthday" },
3245
+ rules: [{
3246
+ id: "maxAge",
3247
+ params: { years: 120 }
3248
+ }, { id: "notFuture" }],
3249
+ prefill: ["document.birthDate"]
3250
+ },
3251
+ {
3252
+ name: "gender",
3253
+ kind: "choice",
3254
+ group: "gender",
3255
+ widget: "radio",
3256
+ label: { key: "verification.labels.gender" },
3257
+ options: [{
3258
+ value: "F",
3259
+ label: { key: "common.female" }
3260
+ }, {
3261
+ value: "M",
3262
+ label: { key: "common.male" }
3263
+ }]
3264
+ },
3265
+ {
3266
+ name: "email",
3267
+ kind: "text",
3268
+ group: "email",
3269
+ required: true,
3270
+ label: { key: "verification.labels.email" },
3271
+ placeholder: { key: "verification.placeholder.email" },
3272
+ input: {
3273
+ keyboard: "email",
3274
+ autofill: "email"
3275
+ },
3276
+ rules: [{ id: "emailFormat" }],
3277
+ prefill: ["emailModule.email"]
3278
+ },
3279
+ {
3280
+ name: "phone",
3281
+ kind: "phone",
3282
+ group: "phone",
3283
+ required: true,
3284
+ label: { key: "verification.labels.phone" },
3285
+ input: { autofill: "phone" },
3286
+ phone: { lockCountry: "whenPhoneRisk" },
3287
+ rules: [{ id: "phoneFormat" }],
3288
+ payload: { transforms: [{ id: "e164" }] },
3289
+ prefill: ["phoneModule.phone"]
3290
+ },
3291
+ {
3292
+ name: "apartment",
3293
+ kind: "text",
3294
+ group: "address",
3295
+ section: "address",
3296
+ label: { key: "verification.labels.apartment" },
3297
+ placeholder: { key: "verification.placeholder.apartment" },
3298
+ input: { autofill: "addressLine2" }
3299
+ },
3300
+ {
3301
+ name: "buildingName",
3302
+ kind: "text",
3303
+ group: "address",
3304
+ section: "address",
3305
+ label: { key: "verification.labels.buildingName" }
3306
+ },
3307
+ {
3308
+ name: "houseNo",
3309
+ kind: "text",
3310
+ group: "address",
3311
+ section: "address",
3312
+ label: { key: "verification.labels.houseNo" },
3313
+ prefill: ["document.houseNumber", "poa.houseNumber"]
3314
+ },
3315
+ {
3316
+ name: "street",
3317
+ kind: "text",
3318
+ group: "address",
3319
+ section: "address",
3320
+ widget: "addressSearch",
3321
+ label: { key: "verification.labels.street" },
3322
+ input: { autofill: "addressLine1" },
3323
+ rules: [{ id: "noPoBox" }],
3324
+ prefill: ["document.street", "poa.street"]
3325
+ },
3326
+ {
3327
+ name: "city",
3328
+ kind: "text",
3329
+ group: "address",
3330
+ section: "address",
3331
+ label: { key: "verification.labels.area" },
3332
+ input: { autofill: "addressLevel2" },
3333
+ prefill: ["document.city", "poa.city"]
3334
+ },
3335
+ {
3336
+ name: "state",
3337
+ kind: "choice",
3338
+ group: "address",
3339
+ section: "address",
3340
+ required: true,
3341
+ widget: "select",
3342
+ label: { key: "verification.labels.chooseState" },
3343
+ placeholder: { key: "verification.placeholder.state" },
3344
+ input: { autofill: "addressLevel1" },
3345
+ options: [
3346
+ {
3347
+ value: "Hong Kong",
3348
+ label: { key: "Hong Kong" }
3349
+ },
3350
+ {
3351
+ value: "Kowloon",
3352
+ label: { key: "Kowloon" }
3353
+ },
3354
+ {
3355
+ value: "New Territories",
3356
+ label: { key: "New Territories" }
3357
+ }
3358
+ ],
3359
+ payload: { transforms: [{ id: "uppercase" }] },
3360
+ prefill: ["document.state", "poa.state"]
3361
+ }
3362
+ ],
3363
+ submit: {
3364
+ static: { plugins: ["kyc"] },
3365
+ context: {
3366
+ source: "source",
3367
+ countryCode: "country"
3368
+ }
3369
+ }
3370
+ },
3203
3371
  "ekyc/IN/IN_DMV": {
3204
3372
  schemaVersion: 1,
3205
3373
  vocabulary: "1.3",
@@ -4877,13 +5045,13 @@ const EKYC_DEFINITIONS = {
4877
5045
  }
4878
5046
  }
4879
5047
  },
4880
- "ekyc/RO/RO_VOTER_REGISTER": {
5048
+ "ekyc/PT/PT_PHONE_REGISTER": {
4881
5049
  schemaVersion: 1,
4882
- vocabulary: "1.3",
4883
- id: "ekyc/RO/RO_VOTER_REGISTER",
5050
+ vocabulary: "1.2",
5051
+ id: "ekyc/PT/PT_PHONE_REGISTER",
4884
5052
  module: "ekyc",
4885
- country: "RO",
4886
- source: "RO_VOTER_REGISTER",
5053
+ country: "PT",
5054
+ source: "PT_PHONE_REGISTER",
4887
5055
  sections: [{ id: "address" }],
4888
5056
  fields: [
4889
5057
  {
@@ -4927,18 +5095,6 @@ const EKYC_DEFINITIONS = {
4927
5095
  rules: [{ id: "nameCharacters" }],
4928
5096
  prefill: ["document.paternalLastName", "poa.lastName"]
4929
5097
  },
4930
- {
4931
- name: "dateOfBirth",
4932
- kind: "date",
4933
- group: "dateOfBirth",
4934
- label: { key: "verification.labels.dateOfBirth" },
4935
- input: { autofill: "birthday" },
4936
- rules: [{
4937
- id: "maxAge",
4938
- params: { years: 120 }
4939
- }, { id: "notFuture" }],
4940
- prefill: ["document.birthDate"]
4941
- },
4942
5098
  {
4943
5099
  name: "email",
4944
5100
  kind: "text",
@@ -4957,11 +5113,16 @@ const EKYC_DEFINITIONS = {
4957
5113
  name: "phone",
4958
5114
  kind: "phone",
4959
5115
  group: "phone",
4960
- required: true,
4961
5116
  label: { key: "verification.labels.phone" },
4962
5117
  input: { autofill: "phone" },
4963
- phone: { lockCountry: "whenPhoneRisk" },
4964
- rules: [{ id: "phoneFormat" }],
5118
+ phone: { lockCountry: true },
5119
+ rules: [{ id: "phoneFormat" }, {
5120
+ id: "phoneDigits",
5121
+ params: {
5122
+ min: 9,
5123
+ max: 9
5124
+ }
5125
+ }],
4965
5126
  payload: { transforms: [{ id: "e164" }] },
4966
5127
  prefill: ["phoneModule.phone"]
4967
5128
  },
@@ -5006,14 +5167,11 @@ const EKYC_DEFINITIONS = {
5006
5167
  section: "address",
5007
5168
  label: { key: "verification.labels.postalCode" },
5008
5169
  input: {
5009
- maxLength: 6,
5170
+ maxLength: 8,
5010
5171
  autofill: "postalCode",
5011
5172
  keyboard: "numeric"
5012
5173
  },
5013
- rules: [{ id: "postalCodeFormat" }, {
5014
- id: "digitCount",
5015
- params: { lengths: [6] }
5016
- }],
5174
+ rules: [{ id: "postalCodeFormat" }],
5017
5175
  payload: { transforms: [{
5018
5176
  id: "stripSeparators",
5019
5177
  params: { chars: "- " }
@@ -5029,13 +5187,13 @@ const EKYC_DEFINITIONS = {
5029
5187
  }
5030
5188
  }
5031
5189
  },
5032
- "ekyc/SG/SG_PHONE_REGISTER": {
5190
+ "ekyc/RO/RO_VOTER_REGISTER": {
5033
5191
  schemaVersion: 1,
5034
5192
  vocabulary: "1.3",
5035
- id: "ekyc/SG/SG_PHONE_REGISTER",
5193
+ id: "ekyc/RO/RO_VOTER_REGISTER",
5036
5194
  module: "ekyc",
5037
- country: "SG",
5038
- source: "SG_PHONE_REGISTER",
5195
+ country: "RO",
5196
+ source: "RO_VOTER_REGISTER",
5039
5197
  sections: [{ id: "address" }],
5040
5198
  fields: [
5041
5199
  {
@@ -5095,6 +5253,7 @@ const EKYC_DEFINITIONS = {
5095
5253
  name: "email",
5096
5254
  kind: "text",
5097
5255
  group: "email",
5256
+ required: true,
5098
5257
  label: { key: "verification.labels.email" },
5099
5258
  placeholder: { key: "verification.placeholder.email" },
5100
5259
  input: {
@@ -5111,15 +5270,9 @@ const EKYC_DEFINITIONS = {
5111
5270
  required: true,
5112
5271
  label: { key: "verification.labels.phone" },
5113
5272
  input: { autofill: "phone" },
5114
- phone: { lockCountry: true },
5115
- rules: [{ id: "phoneFormat" }, {
5116
- id: "phoneDigits",
5117
- params: {
5118
- min: 8,
5119
- max: 8
5120
- }
5121
- }],
5122
- payload: { transforms: [{ id: "e164NoPlus" }] },
5273
+ phone: { lockCountry: "whenPhoneRisk" },
5274
+ rules: [{ id: "phoneFormat" }],
5275
+ payload: { transforms: [{ id: "e164" }] },
5123
5276
  prefill: ["phoneModule.phone"]
5124
5277
  },
5125
5278
  {
@@ -5142,19 +5295,11 @@ const EKYC_DEFINITIONS = {
5142
5295
  group: "address",
5143
5296
  section: "address",
5144
5297
  widget: "addressSearch",
5145
- label: { key: "verification.labels.street" },
5298
+ label: { key: "verification.labels.streetAndHouseNumber" },
5146
5299
  input: { autofill: "addressLine1" },
5147
5300
  rules: [{ id: "noPoBox" }],
5148
5301
  prefill: ["document.street", "poa.street"]
5149
5302
  },
5150
- {
5151
- name: "houseNo",
5152
- kind: "text",
5153
- group: "address",
5154
- section: "address",
5155
- label: { key: "verification.labels.houseNo" },
5156
- prefill: ["document.houseNumber", "poa.houseNumber"]
5157
- },
5158
5303
  {
5159
5304
  name: "city",
5160
5305
  kind: "text",
@@ -5171,10 +5316,14 @@ const EKYC_DEFINITIONS = {
5171
5316
  section: "address",
5172
5317
  label: { key: "verification.labels.postalCode" },
5173
5318
  input: {
5174
- maxLength: 8,
5175
- autofill: "postalCode"
5319
+ maxLength: 6,
5320
+ autofill: "postalCode",
5321
+ keyboard: "numeric"
5176
5322
  },
5177
- rules: [{ id: "postalCodeFormat" }],
5323
+ rules: [{ id: "postalCodeFormat" }, {
5324
+ id: "digitCount",
5325
+ params: { lengths: [6] }
5326
+ }],
5178
5327
  payload: { transforms: [{
5179
5328
  id: "stripSeparators",
5180
5329
  params: { chars: "- " }
@@ -5190,13 +5339,13 @@ const EKYC_DEFINITIONS = {
5190
5339
  }
5191
5340
  }
5192
5341
  },
5193
- "ekyc/US/US_CREDIT_BUREAU_1": {
5342
+ "ekyc/SG/SG_PHONE_REGISTER": {
5194
5343
  schemaVersion: 1,
5195
5344
  vocabulary: "1.3",
5196
- id: "ekyc/US/US_CREDIT_BUREAU_1",
5345
+ id: "ekyc/SG/SG_PHONE_REGISTER",
5197
5346
  module: "ekyc",
5198
- country: "US",
5199
- source: "US_CREDIT_BUREAU_1",
5347
+ country: "SG",
5348
+ source: "SG_PHONE_REGISTER",
5200
5349
  sections: [{ id: "address" }],
5201
5350
  fields: [
5202
5351
  {
@@ -5231,8 +5380,650 @@ const EKYC_DEFINITIONS = {
5231
5380
  kind: "text",
5232
5381
  group: "name",
5233
5382
  required: true,
5234
- label: { key: "verification.labels.lastName" },
5235
- placeholder: { key: "verification.placeholder.lastName" },
5383
+ label: { key: "verification.labels.surName" },
5384
+ placeholder: { key: "verification.placeholder.surname" },
5385
+ input: {
5386
+ maxLength: 100,
5387
+ autofill: "familyName"
5388
+ },
5389
+ rules: [{ id: "nameCharacters" }],
5390
+ prefill: ["document.paternalLastName", "poa.lastName"]
5391
+ },
5392
+ {
5393
+ name: "dateOfBirth",
5394
+ kind: "date",
5395
+ group: "dateOfBirth",
5396
+ label: { key: "verification.labels.dateOfBirth" },
5397
+ input: { autofill: "birthday" },
5398
+ rules: [{
5399
+ id: "maxAge",
5400
+ params: { years: 120 }
5401
+ }, { id: "notFuture" }],
5402
+ prefill: ["document.birthDate"]
5403
+ },
5404
+ {
5405
+ name: "email",
5406
+ kind: "text",
5407
+ group: "email",
5408
+ label: { key: "verification.labels.email" },
5409
+ placeholder: { key: "verification.placeholder.email" },
5410
+ input: {
5411
+ keyboard: "email",
5412
+ autofill: "email"
5413
+ },
5414
+ rules: [{ id: "emailFormat" }],
5415
+ prefill: ["emailModule.email"]
5416
+ },
5417
+ {
5418
+ name: "phone",
5419
+ kind: "phone",
5420
+ group: "phone",
5421
+ required: true,
5422
+ label: { key: "verification.labels.phone" },
5423
+ input: { autofill: "phone" },
5424
+ phone: { lockCountry: true },
5425
+ rules: [{ id: "phoneFormat" }, {
5426
+ id: "phoneDigits",
5427
+ params: {
5428
+ min: 8,
5429
+ max: 8
5430
+ }
5431
+ }],
5432
+ payload: { transforms: [{ id: "e164NoPlus" }] },
5433
+ prefill: ["phoneModule.phone"]
5434
+ },
5435
+ {
5436
+ name: "gender",
5437
+ kind: "choice",
5438
+ group: "gender",
5439
+ widget: "radio",
5440
+ label: { key: "verification.labels.gender" },
5441
+ options: [{
5442
+ value: "F",
5443
+ label: { key: "common.female" }
5444
+ }, {
5445
+ value: "M",
5446
+ label: { key: "common.male" }
5447
+ }]
5448
+ },
5449
+ {
5450
+ name: "street",
5451
+ kind: "text",
5452
+ group: "address",
5453
+ section: "address",
5454
+ widget: "addressSearch",
5455
+ label: { key: "verification.labels.street" },
5456
+ input: { autofill: "addressLine1" },
5457
+ rules: [{ id: "noPoBox" }],
5458
+ prefill: ["document.street", "poa.street"]
5459
+ },
5460
+ {
5461
+ name: "houseNo",
5462
+ kind: "text",
5463
+ group: "address",
5464
+ section: "address",
5465
+ label: { key: "verification.labels.houseNo" },
5466
+ prefill: ["document.houseNumber", "poa.houseNumber"]
5467
+ },
5468
+ {
5469
+ name: "city",
5470
+ kind: "text",
5471
+ group: "address",
5472
+ section: "address",
5473
+ label: { key: "verification.labels.city" },
5474
+ input: { autofill: "addressLevel2" },
5475
+ prefill: ["document.city", "poa.city"]
5476
+ },
5477
+ {
5478
+ name: "postalCode",
5479
+ kind: "text",
5480
+ group: "address",
5481
+ section: "address",
5482
+ label: { key: "verification.labels.postalCode" },
5483
+ input: {
5484
+ maxLength: 8,
5485
+ autofill: "postalCode"
5486
+ },
5487
+ rules: [{ id: "postalCodeFormat" }],
5488
+ payload: { transforms: [{
5489
+ id: "stripSeparators",
5490
+ params: { chars: "- " }
5491
+ }] },
5492
+ prefill: ["document.postalCode", "poa.postalCode"]
5493
+ }
5494
+ ],
5495
+ submit: {
5496
+ static: { plugins: ["kyc"] },
5497
+ context: {
5498
+ source: "source",
5499
+ countryCode: "country"
5500
+ }
5501
+ }
5502
+ },
5503
+ "ekyc/TR/TR_VOTER_REGISTER": {
5504
+ schemaVersion: 1,
5505
+ vocabulary: "1.3",
5506
+ id: "ekyc/TR/TR_VOTER_REGISTER",
5507
+ module: "ekyc",
5508
+ country: "TR",
5509
+ source: "TR_VOTER_REGISTER",
5510
+ sections: [{ id: "address" }],
5511
+ fields: [
5512
+ {
5513
+ name: "firstName",
5514
+ kind: "text",
5515
+ group: "name",
5516
+ required: true,
5517
+ label: { key: "verification.labels.firstName" },
5518
+ placeholder: { key: "verification.placeholder.firstName" },
5519
+ input: {
5520
+ maxLength: 100,
5521
+ autofill: "givenName"
5522
+ },
5523
+ rules: [{ id: "nameCharacters" }],
5524
+ prefill: ["document.firstName", "poa.firstName"]
5525
+ },
5526
+ {
5527
+ name: "middleName",
5528
+ kind: "text",
5529
+ group: "name",
5530
+ label: { key: "verification.labels.middleName" },
5531
+ placeholder: { key: "verification.placeholder.middleName" },
5532
+ input: {
5533
+ maxLength: 100,
5534
+ autofill: "middleName"
5535
+ },
5536
+ rules: [{ id: "nameCharacters" }],
5537
+ prefill: ["document.middleName"]
5538
+ },
5539
+ {
5540
+ name: "surName",
5541
+ kind: "text",
5542
+ group: "name",
5543
+ required: true,
5544
+ label: { key: "verification.labels.surName" },
5545
+ placeholder: { key: "verification.placeholder.surname" },
5546
+ input: {
5547
+ maxLength: 100,
5548
+ autofill: "familyName"
5549
+ },
5550
+ rules: [{ id: "nameCharacters" }],
5551
+ prefill: ["document.paternalLastName", "poa.lastName"]
5552
+ },
5553
+ {
5554
+ name: "dateOfBirth",
5555
+ kind: "date",
5556
+ group: "dateOfBirth",
5557
+ label: { key: "verification.labels.dateOfBirth" },
5558
+ input: { autofill: "birthday" },
5559
+ rules: [{
5560
+ id: "maxAge",
5561
+ params: { years: 120 }
5562
+ }, { id: "notFuture" }],
5563
+ prefill: ["document.birthDate"]
5564
+ },
5565
+ {
5566
+ name: "email",
5567
+ kind: "text",
5568
+ group: "email",
5569
+ required: true,
5570
+ label: { key: "verification.labels.email" },
5571
+ placeholder: { key: "verification.placeholder.email" },
5572
+ input: {
5573
+ keyboard: "email",
5574
+ autofill: "email"
5575
+ },
5576
+ rules: [{ id: "emailFormat" }],
5577
+ prefill: ["emailModule.email"]
5578
+ },
5579
+ {
5580
+ name: "phone",
5581
+ kind: "phone",
5582
+ group: "phone",
5583
+ required: true,
5584
+ label: { key: "verification.labels.phone" },
5585
+ input: { autofill: "phone" },
5586
+ phone: { lockCountry: "whenPhoneRisk" },
5587
+ rules: [{ id: "phoneFormat" }],
5588
+ payload: { transforms: [{ id: "e164" }] },
5589
+ prefill: ["phoneModule.phone"]
5590
+ },
5591
+ {
5592
+ name: "idNum",
5593
+ kind: "text",
5594
+ group: "idNumber",
5595
+ label: { key: "verification.labels.idNum" },
5596
+ input: {
5597
+ maxLength: 11,
5598
+ keyboard: "numeric"
5599
+ },
5600
+ rules: [{
5601
+ id: "digitCount",
5602
+ params: { lengths: [11] }
5603
+ }, {
5604
+ id: "numericRange",
5605
+ params: {
5606
+ min: 1e10,
5607
+ max: 99999999999
5608
+ }
5609
+ }],
5610
+ payload: { key: "idNum" },
5611
+ prefill: ["document.documentNumber"]
5612
+ },
5613
+ {
5614
+ name: "gender",
5615
+ kind: "choice",
5616
+ group: "gender",
5617
+ widget: "radio",
5618
+ label: { key: "verification.labels.gender" },
5619
+ options: [{
5620
+ value: "F",
5621
+ label: { key: "common.female" }
5622
+ }, {
5623
+ value: "M",
5624
+ label: { key: "common.male" }
5625
+ }]
5626
+ },
5627
+ {
5628
+ name: "street",
5629
+ kind: "text",
5630
+ group: "address",
5631
+ section: "address",
5632
+ widget: "addressSearch",
5633
+ label: { key: "verification.labels.streetAndHouseNumber" },
5634
+ input: { autofill: "addressLine1" },
5635
+ rules: [{ id: "noPoBox" }],
5636
+ prefill: ["document.street", "poa.street"]
5637
+ },
5638
+ {
5639
+ name: "city",
5640
+ kind: "choice",
5641
+ group: "address",
5642
+ section: "address",
5643
+ widget: "select",
5644
+ label: { key: "verification.labels.province" },
5645
+ placeholder: { key: "verification.placeholder.province" },
5646
+ input: { autofill: "addressLevel2" },
5647
+ options: [
5648
+ {
5649
+ value: "Adana",
5650
+ label: { key: "Adana" }
5651
+ },
5652
+ {
5653
+ value: "Adıyaman",
5654
+ label: { key: "Adıyaman" }
5655
+ },
5656
+ {
5657
+ value: "Afyonkarahisar",
5658
+ label: { key: "Afyonkarahisar" }
5659
+ },
5660
+ {
5661
+ value: "Ağrı",
5662
+ label: { key: "Ağrı" }
5663
+ },
5664
+ {
5665
+ value: "Amasya",
5666
+ label: { key: "Amasya" }
5667
+ },
5668
+ {
5669
+ value: "Ankara",
5670
+ label: { key: "Ankara" }
5671
+ },
5672
+ {
5673
+ value: "Antalya",
5674
+ label: { key: "Antalya" }
5675
+ },
5676
+ {
5677
+ value: "Artvin",
5678
+ label: { key: "Artvin" }
5679
+ },
5680
+ {
5681
+ value: "Aydın",
5682
+ label: { key: "Aydın" }
5683
+ },
5684
+ {
5685
+ value: "Balıkesir",
5686
+ label: { key: "Balıkesir" }
5687
+ },
5688
+ {
5689
+ value: "Bilecik",
5690
+ label: { key: "Bilecik" }
5691
+ },
5692
+ {
5693
+ value: "Bingöl",
5694
+ label: { key: "Bingöl" }
5695
+ },
5696
+ {
5697
+ value: "Bitlis",
5698
+ label: { key: "Bitlis" }
5699
+ },
5700
+ {
5701
+ value: "Bolu",
5702
+ label: { key: "Bolu" }
5703
+ },
5704
+ {
5705
+ value: "Burdur",
5706
+ label: { key: "Burdur" }
5707
+ },
5708
+ {
5709
+ value: "Bursa",
5710
+ label: { key: "Bursa" }
5711
+ },
5712
+ {
5713
+ value: "Çanakkale",
5714
+ label: { key: "Çanakkale" }
5715
+ },
5716
+ {
5717
+ value: "Çankırı",
5718
+ label: { key: "Çankırı" }
5719
+ },
5720
+ {
5721
+ value: "Çorum",
5722
+ label: { key: "Çorum" }
5723
+ },
5724
+ {
5725
+ value: "Denizli",
5726
+ label: { key: "Denizli" }
5727
+ },
5728
+ {
5729
+ value: "Diyarbakır",
5730
+ label: { key: "Diyarbakır" }
5731
+ },
5732
+ {
5733
+ value: "Edirne",
5734
+ label: { key: "Edirne" }
5735
+ },
5736
+ {
5737
+ value: "Elazığ",
5738
+ label: { key: "Elazığ" }
5739
+ },
5740
+ {
5741
+ value: "Erzincan",
5742
+ label: { key: "Erzincan" }
5743
+ },
5744
+ {
5745
+ value: "Erzurum",
5746
+ label: { key: "Erzurum" }
5747
+ },
5748
+ {
5749
+ value: "Eskişehir",
5750
+ label: { key: "Eskişehir" }
5751
+ },
5752
+ {
5753
+ value: "Gaziantep",
5754
+ label: { key: "Gaziantep" }
5755
+ },
5756
+ {
5757
+ value: "Giresun",
5758
+ label: { key: "Giresun" }
5759
+ },
5760
+ {
5761
+ value: "Gümüşhane",
5762
+ label: { key: "Gümüşhane" }
5763
+ },
5764
+ {
5765
+ value: "Hakkari",
5766
+ label: { key: "Hakkari" }
5767
+ },
5768
+ {
5769
+ value: "Hatay",
5770
+ label: { key: "Hatay" }
5771
+ },
5772
+ {
5773
+ value: "Isparta",
5774
+ label: { key: "Isparta" }
5775
+ },
5776
+ {
5777
+ value: "Mersin",
5778
+ label: { key: "Mersin" }
5779
+ },
5780
+ {
5781
+ value: "İstanbul",
5782
+ label: { key: "İstanbul" }
5783
+ },
5784
+ {
5785
+ value: "İzmir",
5786
+ label: { key: "İzmir" }
5787
+ },
5788
+ {
5789
+ value: "Kars",
5790
+ label: { key: "Kars" }
5791
+ },
5792
+ {
5793
+ value: "Kastamonu",
5794
+ label: { key: "Kastamonu" }
5795
+ },
5796
+ {
5797
+ value: "Kayseri",
5798
+ label: { key: "Kayseri" }
5799
+ },
5800
+ {
5801
+ value: "Kırklareli",
5802
+ label: { key: "Kırklareli" }
5803
+ },
5804
+ {
5805
+ value: "Kırşehir",
5806
+ label: { key: "Kırşehir" }
5807
+ },
5808
+ {
5809
+ value: "Kocaeli",
5810
+ label: { key: "Kocaeli" }
5811
+ },
5812
+ {
5813
+ value: "Konya",
5814
+ label: { key: "Konya" }
5815
+ },
5816
+ {
5817
+ value: "Kütahya",
5818
+ label: { key: "Kütahya" }
5819
+ },
5820
+ {
5821
+ value: "Malatya",
5822
+ label: { key: "Malatya" }
5823
+ },
5824
+ {
5825
+ value: "Manisa",
5826
+ label: { key: "Manisa" }
5827
+ },
5828
+ {
5829
+ value: "Kahramanmaraş",
5830
+ label: { key: "Kahramanmaraş" }
5831
+ },
5832
+ {
5833
+ value: "Mardin",
5834
+ label: { key: "Mardin" }
5835
+ },
5836
+ {
5837
+ value: "Muğla",
5838
+ label: { key: "Muğla" }
5839
+ },
5840
+ {
5841
+ value: "Muş",
5842
+ label: { key: "Muş" }
5843
+ },
5844
+ {
5845
+ value: "Nevşehir",
5846
+ label: { key: "Nevşehir" }
5847
+ },
5848
+ {
5849
+ value: "Niğde",
5850
+ label: { key: "Niğde" }
5851
+ },
5852
+ {
5853
+ value: "Ordu",
5854
+ label: { key: "Ordu" }
5855
+ },
5856
+ {
5857
+ value: "Rize",
5858
+ label: { key: "Rize" }
5859
+ },
5860
+ {
5861
+ value: "Sakarya",
5862
+ label: { key: "Sakarya" }
5863
+ },
5864
+ {
5865
+ value: "Samsun",
5866
+ label: { key: "Samsun" }
5867
+ },
5868
+ {
5869
+ value: "Siirt",
5870
+ label: { key: "Siirt" }
5871
+ },
5872
+ {
5873
+ value: "Sinop",
5874
+ label: { key: "Sinop" }
5875
+ },
5876
+ {
5877
+ value: "Sivas",
5878
+ label: { key: "Sivas" }
5879
+ },
5880
+ {
5881
+ value: "Tekirdağ",
5882
+ label: { key: "Tekirdağ" }
5883
+ },
5884
+ {
5885
+ value: "Tokat",
5886
+ label: { key: "Tokat" }
5887
+ },
5888
+ {
5889
+ value: "Trabzon",
5890
+ label: { key: "Trabzon" }
5891
+ },
5892
+ {
5893
+ value: "Tunceli",
5894
+ label: { key: "Tunceli" }
5895
+ },
5896
+ {
5897
+ value: "Şanlıurfa",
5898
+ label: { key: "Şanlıurfa" }
5899
+ },
5900
+ {
5901
+ value: "Uşak",
5902
+ label: { key: "Uşak" }
5903
+ },
5904
+ {
5905
+ value: "Van",
5906
+ label: { key: "Van" }
5907
+ },
5908
+ {
5909
+ value: "Yozgat",
5910
+ label: { key: "Yozgat" }
5911
+ },
5912
+ {
5913
+ value: "Zonguldak",
5914
+ label: { key: "Zonguldak" }
5915
+ },
5916
+ {
5917
+ value: "Aksaray",
5918
+ label: { key: "Aksaray" }
5919
+ },
5920
+ {
5921
+ value: "Bayburt",
5922
+ label: { key: "Bayburt" }
5923
+ },
5924
+ {
5925
+ value: "Karaman",
5926
+ label: { key: "Karaman" }
5927
+ },
5928
+ {
5929
+ value: "Kırıkkale",
5930
+ label: { key: "Kırıkkale" }
5931
+ },
5932
+ {
5933
+ value: "Batman",
5934
+ label: { key: "Batman" }
5935
+ },
5936
+ {
5937
+ value: "Şırnak",
5938
+ label: { key: "Şırnak" }
5939
+ },
5940
+ {
5941
+ value: "Bartın",
5942
+ label: { key: "Bartın" }
5943
+ },
5944
+ {
5945
+ value: "Ardahan",
5946
+ label: { key: "Ardahan" }
5947
+ },
5948
+ {
5949
+ value: "Iğdır",
5950
+ label: { key: "Iğdır" }
5951
+ },
5952
+ {
5953
+ value: "Yalova",
5954
+ label: { key: "Yalova" }
5955
+ },
5956
+ {
5957
+ value: "Karabük",
5958
+ label: { key: "Karabük" }
5959
+ },
5960
+ {
5961
+ value: "Kilis",
5962
+ label: { key: "Kilis" }
5963
+ },
5964
+ {
5965
+ value: "Osmaniye",
5966
+ label: { key: "Osmaniye" }
5967
+ },
5968
+ {
5969
+ value: "Düzce",
5970
+ label: { key: "Düzce" }
5971
+ }
5972
+ ],
5973
+ prefill: ["document.city", "poa.city"]
5974
+ }
5975
+ ],
5976
+ submit: {
5977
+ static: { plugins: ["kyc"] },
5978
+ context: {
5979
+ source: "source",
5980
+ countryCode: "country"
5981
+ }
5982
+ }
5983
+ },
5984
+ "ekyc/US/US_CREDIT_BUREAU_1": {
5985
+ schemaVersion: 1,
5986
+ vocabulary: "1.3",
5987
+ id: "ekyc/US/US_CREDIT_BUREAU_1",
5988
+ module: "ekyc",
5989
+ country: "US",
5990
+ source: "US_CREDIT_BUREAU_1",
5991
+ sections: [{ id: "address" }],
5992
+ fields: [
5993
+ {
5994
+ name: "firstName",
5995
+ kind: "text",
5996
+ group: "name",
5997
+ required: true,
5998
+ label: { key: "verification.labels.firstName" },
5999
+ placeholder: { key: "verification.placeholder.firstName" },
6000
+ input: {
6001
+ maxLength: 100,
6002
+ autofill: "givenName"
6003
+ },
6004
+ rules: [{ id: "nameCharacters" }],
6005
+ prefill: ["document.firstName", "poa.firstName"]
6006
+ },
6007
+ {
6008
+ name: "middleName",
6009
+ kind: "text",
6010
+ group: "name",
6011
+ label: { key: "verification.labels.middleName" },
6012
+ placeholder: { key: "verification.placeholder.middleName" },
6013
+ input: {
6014
+ maxLength: 100,
6015
+ autofill: "middleName"
6016
+ },
6017
+ rules: [{ id: "nameCharacters" }],
6018
+ prefill: ["document.middleName"]
6019
+ },
6020
+ {
6021
+ name: "surName",
6022
+ kind: "text",
6023
+ group: "name",
6024
+ required: true,
6025
+ label: { key: "verification.labels.lastName" },
6026
+ placeholder: { key: "verification.placeholder.lastName" },
5236
6027
  input: {
5237
6028
  maxLength: 100,
5238
6029
  autofill: "familyName"
@@ -5725,7 +6516,7 @@ const EKYC_DEFINITIONS = {
5725
6516
  module: "ekyc",
5726
6517
  country: "US",
5727
6518
  source: "US_TELCO_1",
5728
- sections: [{ id: "address" }, { id: "driverLicense" }],
6519
+ sections: [{ id: "driverLicense" }, { id: "address" }],
5729
6520
  fields: [
5730
6521
  {
5731
6522
  name: "firstName",
@@ -5812,6 +6603,25 @@ const EKYC_DEFINITIONS = {
5812
6603
  params: { lengths: [4] }
5813
6604
  }]
5814
6605
  },
6606
+ {
6607
+ name: "dlNumber",
6608
+ kind: "text",
6609
+ group: "dlNumber",
6610
+ section: "driverLicense",
6611
+ label: { key: "verification.labels.dlNumber" },
6612
+ prefill: ["document.driversLicenseNumber"]
6613
+ },
6614
+ {
6615
+ name: "dlState",
6616
+ kind: "choice",
6617
+ group: "dlState",
6618
+ section: "driverLicense",
6619
+ widget: "select",
6620
+ label: { key: "verification.labels.dlState" },
6621
+ placeholder: { key: "verification.placeholder.state" },
6622
+ optionsRef: "US_STATES",
6623
+ prefill: ["document.driversLicenseState"]
6624
+ },
5815
6625
  {
5816
6626
  name: "street",
5817
6627
  kind: "text",
@@ -5861,25 +6671,6 @@ const EKYC_DEFINITIONS = {
5861
6671
  params: { chars: "- " }
5862
6672
  }] },
5863
6673
  prefill: ["document.postalCode", "poa.postalCode"]
5864
- },
5865
- {
5866
- name: "dlNumber",
5867
- kind: "text",
5868
- group: "dlNumber",
5869
- section: "driverLicense",
5870
- label: { key: "verification.labels.dlNumber" },
5871
- prefill: ["document.driversLicenseNumber"]
5872
- },
5873
- {
5874
- name: "dlState",
5875
- kind: "choice",
5876
- group: "dlState",
5877
- section: "driverLicense",
5878
- widget: "select",
5879
- label: { key: "verification.labels.dlState" },
5880
- placeholder: { key: "verification.placeholder.state" },
5881
- optionsRef: "US_STATES",
5882
- prefill: ["document.driversLicenseState"]
5883
6674
  }
5884
6675
  ],
5885
6676
  submit: {
@@ -6529,7 +7320,8 @@ const EKYC_SUPPORTED_IDS = {
6529
7320
  groupRules: /* @__PURE__ */ new Set(["oneOfRequired", "rulesByOption"]),
6530
7321
  optionLists: new Set(Object.keys(OPTION_LISTS)),
6531
7322
  conditions: /* @__PURE__ */ new Set(["fieldFilled"]),
6532
- prefillSources: new Set(EKYC_PREFILL_SOURCES)
7323
+ prefillSources: new Set(EKYC_PREFILL_SOURCES),
7324
+ flags: /* @__PURE__ */ new Set()
6533
7325
  };
6534
7326
  /** Today's field shape only flags `middleName` as optional. */
6535
7327
  const LEGACY_OPTIONAL_FLAG = /* @__PURE__ */ new Set(["middleName"]);
@@ -6669,9 +7461,10 @@ const MIGRATED_EKYC_SOURCES = /* @__PURE__ */ new Set([
6669
7461
  ]);
6670
7462
  /**
6671
7463
  * The bundled definition for exactly this source and country, if it is
6672
- * projectable and the rollout lets this source use it.
7464
+ * projectable and the rollout lets this source use it. `useDefinitions` is
7465
+ * the rollout answer the machine read once, when it was created.
6673
7466
  */
6674
- function selectEkycDefinition(source, country, useDefinitions = isFormDefinitionsEnabled()) {
7467
+ function selectEkycDefinition(source, country, useDefinitions) {
6675
7468
  if (!useDefinitions && MIGRATED_EKYC_SOURCES.has(source)) return void 0;
6676
7469
  const definition = bundled.select({
6677
7470
  module: "ekyc",
@@ -6851,9 +7644,10 @@ function applyOneOfRequiredGroups(defs, configSource) {
6851
7644
  * this country reads it (`packages/form-definitions/catalog/ekyc`) when the
6852
7645
  * rollout allows (`selectEkycDefinition`); any other pair keeps the current
6853
7646
  * builder. `useDefinitions` is the rollout answer the machine read once, when
6854
- * it was created, so it can't change mid-session.
7647
+ * it was created, so it can't change mid-session. The options are named so a
7648
+ * caller can't swap the two booleans.
6855
7649
  */
6856
- function buildFieldDefs(fields, configSource, country, enablePhoneRisk = false, useDefinitions) {
7650
+ function buildFieldDefs(fields, configSource, country, { useDefinitions, enablePhoneRisk = false }) {
6857
7651
  const definition = selectEkycDefinition(configSource, country, useDefinitions);
6858
7652
  if (definition) return projectEkycFields(resolveForm(definition, toEkycResolveContext(fields, enablePhoneRisk)), fields, country);
6859
7653
  return legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk);
@@ -6911,7 +7705,7 @@ function legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk = f
6911
7705
  label: "verification.labels.brazilian"
6912
7706
  },
6913
7707
  {
6914
- value: "naturalizedBrazilian",
7708
+ value: "naturalized_brazilian",
6915
7709
  label: "verification.labels.naturalizedBrazilian"
6916
7710
  },
6917
7711
  {
@@ -6919,7 +7713,7 @@ function legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk = f
6919
7713
  label: "verification.labels.foreigner"
6920
7714
  },
6921
7715
  {
6922
- value: "brazilianBornAbroad",
7716
+ value: "brazilian_born_abroad",
6923
7717
  label: "verification.labels.brazilianBornAbroad"
6924
7718
  }
6925
7719
  ] });
@@ -7163,26 +7957,52 @@ function processFieldValueByName(name, value, fieldsCountry) {
7163
7957
  if (name === "panNumber") return value.replace(/[^a-zA-Z0-9]/g, "").toUpperCase();
7164
7958
  return value;
7165
7959
  }
7960
+ /** Whether the form shows a field: not hidden, and not an email shown elsewhere. */
7961
+ const isVisibleEkycField = (field, hideEmail) => field.displayMode !== "hidden" && !(hideEmail && field.name === "email");
7962
+ /**
7963
+ * Splits the form into steps, one per run of visible fields with the same
7964
+ * section, in field order. A section with no visible field has no step.
7965
+ */
7966
+ function buildEkycSteps(fields, hideEmail) {
7967
+ const steps = [];
7968
+ for (const field of fields) {
7969
+ if (!isVisibleEkycField(field, hideEmail)) continue;
7970
+ const id = field.section ?? "personal";
7971
+ const last = steps[steps.length - 1];
7972
+ if (last?.id === id) last.fieldNames.push(field.name);
7973
+ else steps.push({
7974
+ id,
7975
+ fieldNames: [field.name]
7976
+ });
7977
+ }
7978
+ return steps;
7979
+ }
7980
+ /**
7981
+ * The step index kept within the steps the form has now. A missing index, as
7982
+ * in a snapshot taken before steps existed, is the first step.
7983
+ */
7984
+ const clampStepIndex = (index, steps) => Number.isFinite(index) ? Math.max(0, Math.min(index, steps.length - 1)) : 0;
7985
+ /** Whether a step's fields have no validation errors. */
7986
+ const isStepValid = (step, errors) => !step || step.fieldNames.every((name) => !errors?.[name]);
7987
+ /** The first step with a validation error, or `undefined` when none has one. */
7988
+ function firstStepWithError(steps, errors) {
7989
+ const index = steps.findIndex((step) => !isStepValid(step, errors));
7990
+ return index === -1 ? void 0 : index;
7991
+ }
7166
7992
  //#endregion
7167
7993
  //#region src/modules/ekyc/ekycServices.ts
7168
7994
  /** Fetches module configuration for EXTERNAL_VERIFICATION */
7169
7995
  async function fetchModuleConfig(flowId, signal) {
7170
7996
  const url = `${endpoints.moduleConfig}?id=${encodeURIComponent(flowId)}&moduleKey=EXTERNAL_VERIFICATION`;
7171
- const res = await api.get(url, { signal });
7172
- if (!res.ok) throw new Error(`GET ${url} failed: ${res.status} ${res.statusText}`);
7173
- return res.data;
7997
+ return (await api.get(url, { signal })).data;
7174
7998
  }
7175
7999
  /** Fetches OCR data for pre-fill */
7176
8000
  async function fetchOcrData(signal) {
7177
- const res = await api.get(endpoints.ocrData, { signal });
7178
- if (!res.ok) throw new Error(`GET ${endpoints.ocrData} failed: ${res.status} ${res.statusText}`);
7179
- return res.data;
8001
+ return (await api.get(endpoints.ocrData, { signal })).data;
7180
8002
  }
7181
8003
  /** Fetches phone/email from prior OTP modules */
7182
8004
  async function fetchOtpStatus(signal) {
7183
- const res = await api.get(endpoints.otpStatus, { signal });
7184
- if (!res.ok) throw new Error(`GET ${endpoints.otpStatus} failed: ${res.status} ${res.statusText}`);
7185
- return res.data;
8005
+ return (await api.get(endpoints.otpStatus, { signal })).data;
7186
8006
  }
7187
8007
  var EkycSubmitError = class extends Error {
7188
8008
  constructor(status, apiError) {
@@ -7210,6 +8030,10 @@ async function submitEkyc(data, signal) {
7210
8030
  //#region src/modules/ekyc/ekycGuards.ts
7211
8031
  const hasNoValidationErrorsGuard = ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0;
7212
8032
  const hasFlowIdGuard = ({ context }) => !!context.config.flowId;
8033
+ /** The backend runs the checks itself, so the step finishes without a form. */
8034
+ const isAutoExecutionGuard = ({ context }) => context.config.autoExecution === true;
8035
+ /** The fetched module config turns on auto execution. */
8036
+ const isModuleConfigAutoExecutionGuard = ({ event }) => event.output?.autoExecution === true;
7213
8037
  /** A `flowId` config whose module config never arrived (its load failed). */
7214
8038
  const needsModuleConfigGuard = ({ context }) => !!context.config.flowId && context.moduleConfig === void 0;
7215
8039
  /** A form with a phone field whose phone rules haven't loaded. */
@@ -7226,7 +8050,7 @@ const fetchModuleConfigActor = fromPromise(async ({ input, signal }) => {
7226
8050
  const phoneRules = loadPhoneValidator();
7227
8051
  phoneRules.catch(() => void 0);
7228
8052
  const config = await fetchModuleConfig(input.flowId, signal);
7229
- if (getEKYCFields(config).phone !== false) await phoneRules;
8053
+ if (config.autoExecution !== true && getEKYCFields(config).phone !== false) await phoneRules;
7230
8054
  return config;
7231
8055
  });
7232
8056
  /**
@@ -7285,6 +8109,12 @@ const prefillConfig = (context) => ({
7285
8109
  riskAddons: context.moduleConfig?.riskAddons,
7286
8110
  useDefinitions: context._formDefinitions
7287
8111
  });
8112
+ const stepsOf = (context) => buildEkycSteps(context.fields, context.hideEmail);
8113
+ /** The step the user is on, kept within the steps the form has now. */
8114
+ const currentStep = (context) => {
8115
+ const steps = stepsOf(context);
8116
+ return steps[clampStepIndex(context.currentStepIndex, steps)];
8117
+ };
7288
8118
  const omitKeys = (errors, keys) => {
7289
8119
  if (!errors) return void 0;
7290
8120
  const next = { ...errors };
@@ -7315,7 +8145,10 @@ const ekycMachine = setup({
7315
8145
  verificationFields: vFields,
7316
8146
  configSource: source,
7317
8147
  fieldsCountry: country,
7318
- fields: buildFieldDefs(vFields, source, country, config.enablePhoneRisk, context._formDefinitions),
8148
+ fields: buildFieldDefs(vFields, source, country, {
8149
+ useDefinitions: context._formDefinitions,
8150
+ enablePhoneRisk: config.enablePhoneRisk
8151
+ }),
7319
8152
  displayModes: getEKYCDisplayModes(config)
7320
8153
  };
7321
8154
  }),
@@ -7387,10 +8220,35 @@ const ekycMachine = setup({
7387
8220
  const errors = validateEkycForm(context.values, context.fields);
7388
8221
  return { validationErrors: Object.keys(errors).length > 0 ? errors : void 0 };
7389
8222
  }),
8223
+ validateCurrentStep: assign(({ context }) => {
8224
+ const step = currentStep(context);
8225
+ if (!step) return {};
8226
+ const next = { ...context.validationErrors ?? {} };
8227
+ for (const name of step.fieldNames) {
8228
+ const message = validateEkycField(context.values, name, context.fields);
8229
+ if (message) next[name] = message;
8230
+ else delete next[name];
8231
+ }
8232
+ return { validationErrors: Object.keys(next).length > 0 ? next : void 0 };
8233
+ }),
8234
+ advanceStep: assign(({ context }) => {
8235
+ const steps = stepsOf(context);
8236
+ return { currentStepIndex: clampStepIndex(clampStepIndex(context.currentStepIndex, steps) + 1, steps) };
8237
+ }),
8238
+ previousStep: assign(({ context }) => {
8239
+ const steps = stepsOf(context);
8240
+ return { currentStepIndex: clampStepIndex(clampStepIndex(context.currentStepIndex, steps) - 1, steps) };
8241
+ }),
8242
+ goToFirstStepWithError: assign(({ context }) => {
8243
+ const index = firstStepWithError(stepsOf(context), context.validationErrors);
8244
+ return index === void 0 ? {} : { currentStepIndex: index };
8245
+ }),
8246
+ resetStep: assign({ currentStepIndex: () => 0 }),
7390
8247
  fillAddressFields: assign(({ context, event }) => {
7391
8248
  const { suggestion } = event;
7392
8249
  const activeFields = new Set(context.fields.filter((f) => !isLocked(f)).map((f) => f.name));
7393
- const { values: newValues } = fillFromSuggestion(context.values, {}, suggestion, activeFields);
8250
+ const { values: filled } = fillFromSuggestion(context.values, {}, suggestion, activeFields);
8251
+ const newValues = keepSuggestionInOptions(context.fields, context.values, filled);
7394
8252
  const clearedErrors = omitKeys(context.validationErrors, ADDRESS_AUTOCOMPLETE_KEYS);
7395
8253
  const streetError = getStreetLevelErrorForSuggestion(suggestion, activeFields);
7396
8254
  const validationErrors = {
@@ -7414,12 +8272,19 @@ const ekycMachine = setup({
7414
8272
  guards: {
7415
8273
  hasNoValidationErrors: hasNoValidationErrorsGuard,
7416
8274
  hasFlowId: hasFlowIdGuard,
8275
+ isAutoExecution: isAutoExecutionGuard,
8276
+ isModuleConfigAutoExecution: isModuleConfigAutoExecutionGuard,
7417
8277
  hasVerificationFields: hasVerificationFieldsGuard,
7418
8278
  needsModuleConfig: needsModuleConfigGuard,
7419
8279
  needsPhoneRules: needsPhoneRulesGuard,
7420
8280
  isCountryNotSupported: isCountryNotSupportedGuard,
7421
8281
  shouldAutoSubmit: ({ context }) => !context.autoSubmitted && showsNoFields(context),
7422
- showsNoFields: ({ context }) => showsNoFields(context)
8282
+ showsNoFields: ({ context }) => showsNoFields(context),
8283
+ isLastStep: ({ context }) => {
8284
+ const steps = stepsOf(context);
8285
+ return clampStepIndex(context.currentStepIndex, steps) >= steps.length - 1;
8286
+ },
8287
+ currentStepHasNoErrors: ({ context }) => isStepValid(currentStep(context), context.validationErrors)
7423
8288
  }
7424
8289
  }).createMachine({
7425
8290
  id: "ekyc",
@@ -7441,12 +8306,17 @@ const ekycMachine = setup({
7441
8306
  autoSubmitted: false,
7442
8307
  errorMessage: "",
7443
8308
  submitError: "",
8309
+ currentStepIndex: 0,
7444
8310
  _formDefinitions: isFormDefinitionsEnabled(),
7445
8311
  _searchQuery: ""
7446
8312
  };
7447
8313
  },
7448
8314
  states: {
7449
8315
  idle: { on: { LOAD: [
8316
+ {
8317
+ target: "finished",
8318
+ guard: "isAutoExecution"
8319
+ },
7450
8320
  {
7451
8321
  target: "loading.moduleConfig",
7452
8322
  guard: "hasFlowId"
@@ -7462,7 +8332,10 @@ const ekycMachine = setup({
7462
8332
  verificationFields: vFields,
7463
8333
  configSource: source,
7464
8334
  fieldsCountry: country,
7465
- fields: buildFieldDefs(vFields, source, country, context.config.enablePhoneRisk, context._formDefinitions)
8335
+ fields: buildFieldDefs(vFields, source, country, {
8336
+ useDefinitions: context._formDefinitions,
8337
+ enablePhoneRisk: context.config.enablePhoneRisk
8338
+ })
7466
8339
  };
7467
8340
  })
7468
8341
  },
@@ -7475,10 +8348,13 @@ const ekycMachine = setup({
7475
8348
  id: "fetchModuleConfig",
7476
8349
  src: "fetchModuleConfig",
7477
8350
  input: ({ context }) => ({ flowId: context.config.flowId }),
7478
- onDone: {
8351
+ onDone: [{
8352
+ target: "#ekyc.finished",
8353
+ guard: "isModuleConfigAutoExecution"
8354
+ }, {
7479
8355
  target: "#ekyc.prefilling",
7480
8356
  actions: "setModuleConfig"
7481
- },
8357
+ }],
7482
8358
  onError: {
7483
8359
  target: "#ekyc.error",
7484
8360
  actions: "setErrorMessage"
@@ -7496,19 +8372,22 @@ const ekycMachine = setup({
7496
8372
  } }
7497
8373
  }
7498
8374
  },
7499
- prefilling: { invoke: {
7500
- id: "fetchPrefillData",
7501
- src: "fetchPrefillData",
7502
- input: ({ context }) => ({ addressOrigin: prefillAddressOrigin(prefillConfig(context)) }),
7503
- onDone: {
7504
- target: "form",
7505
- actions: "applyPrefillData"
7506
- },
7507
- onError: {
7508
- target: "form",
7509
- actions: "applyEmptyPrefill"
8375
+ prefilling: {
8376
+ entry: "resetStep",
8377
+ invoke: {
8378
+ id: "fetchPrefillData",
8379
+ src: "fetchPrefillData",
8380
+ input: ({ context }) => ({ addressOrigin: prefillAddressOrigin(prefillConfig(context)) }),
8381
+ onDone: {
8382
+ target: "form",
8383
+ actions: "applyPrefillData"
8384
+ },
8385
+ onError: {
8386
+ target: "form",
8387
+ actions: "applyEmptyPrefill"
8388
+ }
7510
8389
  }
7511
- } },
8390
+ },
7512
8391
  form: {
7513
8392
  initial: "inputting",
7514
8393
  states: {
@@ -7536,7 +8415,8 @@ const ekycMachine = setup({
7536
8415
  RESULTS: {
7537
8416
  target: "inputting",
7538
8417
  actions: "setAddressSuggestions"
7539
- }
8418
+ },
8419
+ SUBMIT: { target: "validatingSubmit" }
7540
8420
  }
7541
8421
  },
7542
8422
  validatingSubmit: {
@@ -7544,10 +8424,29 @@ const ekycMachine = setup({
7544
8424
  always: [{
7545
8425
  guard: "hasNoValidationErrors",
7546
8426
  target: "#ekyc.submitting"
8427
+ }, {
8428
+ target: "inputting",
8429
+ actions: "goToFirstStepWithError"
8430
+ }]
8431
+ },
8432
+ validatingStep: {
8433
+ entry: "validateCurrentStep",
8434
+ always: [{
8435
+ guard: "currentStepHasNoErrors",
8436
+ target: "inputting",
8437
+ actions: "advanceStep"
7547
8438
  }, { target: "inputting" }]
7548
8439
  }
7549
8440
  },
7550
8441
  on: {
8442
+ NEXT_STEP: [{
8443
+ guard: "isLastStep",
8444
+ target: ".validatingSubmit"
8445
+ }, { target: ".validatingStep" }],
8446
+ PREVIOUS_STEP: {
8447
+ target: ".inputting",
8448
+ actions: "previousStep"
8449
+ },
7551
8450
  SEARCH_ADDRESS: {
7552
8451
  target: ".searching",
7553
8452
  actions: assign(({ event }) => ({
@@ -7612,4 +8511,4 @@ const ekycMachine = setup({
7612
8511
  }
7613
8512
  });
7614
8513
  //#endregion
7615
- export { ekycMachine as t };
8514
+ export { isStepValid as i, buildEkycSteps as n, clampStepIndex as r, ekycMachine as t };