@incodetech/core 2.4.1-agentic.10 → 2.4.1-agentic.12

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 (290) hide show
  1. package/dist/Actor-DqjOqDfU.d.ts +1 -0
  2. package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-C7N1N61V.esm.js} +55 -1
  3. package/dist/{FaceDetectionProvider-BSLpXAGx.esm.js → FaceDetectionProvider-WtuJ6QBK.esm.js} +16 -11
  4. package/dist/{IWasmUtilCapability-BRn0wz8v.d.ts → IWasmUtilCapability-XcOtT1TP.d.ts} +5 -4
  5. package/dist/Manager-BvXAwDv9.esm.js +125 -0
  6. package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
  7. package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-BtMQZEbg.esm.js} +1 -1
  8. package/dist/{StreamCanvasCapture-ixfy84ys.d.ts → StreamCanvasCapture-BnBfA6fb.d.ts} +24 -2
  9. package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
  10. package/dist/{WasmUtilProvider-C_puwvVn.esm.js → WasmUtilProvider-D5RMElzw.esm.js} +47 -4
  11. package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-BO7urYwT.esm.js} +1 -1
  12. package/dist/{addressSearch-B_4JYKa-.esm.js → addressSearch-BzAy6lhp.esm.js} +6 -7
  13. package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
  14. package/dist/ae-signature.d.ts +2 -2
  15. package/dist/ae-signature.esm.js +1 -1
  16. package/dist/antifraud.d.ts +1 -1
  17. package/dist/antifraud.esm.js +2 -2
  18. package/dist/{antifraudManager-BWCVkSu2.esm.js → antifraudManager-Bw5nw5fh.esm.js} +5 -3
  19. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  20. package/dist/{antifraudStateMachine-CX9I2f3s.esm.js → antifraudStateMachine-kOfsaAuT.esm.js} +4 -6
  21. package/dist/{api-BSnbg4HO.esm.js → api-DSZSaaWr.esm.js} +3 -1
  22. package/dist/{apiError-Bmwy1Fa7.esm.js → apiError-BDuL1wTs.esm.js} +1 -1
  23. package/dist/{attemptCarry-zQH85Elh.esm.js → attemptCarry-QFQkA3na.esm.js} +1 -1
  24. package/dist/authentication.d.ts +3 -3
  25. package/dist/authentication.esm.js +2 -2
  26. package/dist/{authenticationManager-BoiOaB0m.esm.js → authenticationManager-B0SioAdd.esm.js} +7 -6
  27. package/dist/{authenticationManager-CISxaY6N.d.ts → authenticationManager-eYcurNiS.d.ts} +2 -2
  28. package/dist/{authenticationStateMachine-BMD1JLwr.esm.js → authenticationStateMachine-n1OrhPTv.esm.js} +50 -18
  29. package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-6qVHvj76.esm.js} +2 -2
  30. package/dist/{browser-pQZA35G2-PIj2uGBm.esm.js → browser-pQZA35G2-CG3C-xGt.esm.js} +1 -1
  31. package/dist/calendarDate-DcqGuEht.esm.js +35 -0
  32. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  33. package/dist/camera-9yYDUOsO.d.ts +5 -0
  34. package/dist/{camera-E_Kcre4O.esm.js → camera-CJKApt0x.esm.js} +10 -3
  35. package/dist/camera.d.ts +2 -2
  36. package/dist/camera.esm.js +1 -1
  37. package/dist/certificate-issuance.d.ts +1 -1
  38. package/dist/certificate-issuance.esm.js +2 -2
  39. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  40. package/dist/{certificateIssuanceManager-DzDuQTsK.esm.js → certificateIssuanceManager-DPT8E9zV.esm.js} +5 -3
  41. package/dist/{certificateIssuanceStateMachine-BAOYLACb.esm.js → certificateIssuanceStateMachine-BwDb3ezx.esm.js} +3 -3
  42. package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
  43. package/dist/consent.d.ts +1 -1
  44. package/dist/consent.esm.js +2 -2
  45. package/dist/{consentManager-7aHaehwF.d.ts → consentManager-B0YKqYtZ.d.ts} +9 -8
  46. package/dist/{consentManager-DFSKQTcR.esm.js → consentManager-DRMJ3O4r.esm.js} +5 -3
  47. package/dist/{consentStateMachine-4nZIH2O8.esm.js → consentStateMachine-Br0JbW7k.esm.js} +6 -9
  48. package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
  49. package/dist/cross-document-data-match.d.ts +1 -1
  50. package/dist/cross-document-data-match.esm.js +1 -1
  51. package/dist/{crossDocumentDataMatchManager-D7ka2qOC.esm.js → crossDocumentDataMatchManager-BIQ-SYcR.esm.js} +6 -5
  52. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  53. package/dist/curp-DZGvefg3.esm.js +14 -0
  54. package/dist/curp-validation.d.ts +1 -1
  55. package/dist/curp-validation.esm.js +2 -2
  56. package/dist/{curpValidationManager-BVTt7IgC.esm.js → curpValidationManager-BKUDQ55W.esm.js} +6 -4
  57. package/dist/{curpValidationManager-DEqTUWdu.d.ts → curpValidationManager-DgUZySoq.d.ts} +4 -4
  58. package/dist/{curpValidationStateMachine-FB_MRbZQ.esm.js → curpValidationStateMachine-BwUBkyyi.esm.js} +16 -17
  59. package/dist/custom-fields.d.ts +1 -1
  60. package/dist/custom-fields.esm.js +1 -1
  61. package/dist/custom-watchlist.d.ts +1 -1
  62. package/dist/custom-watchlist.esm.js +2 -2
  63. package/dist/{customFieldsManager-gbsq53p6.esm.js → customFieldsManager-CPhONu5i.esm.js} +15 -17
  64. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  65. package/dist/{customWatchlistManager-50APwk4Z.esm.js → customWatchlistManager-cN57usIW.esm.js} +5 -3
  66. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  67. package/dist/{customWatchlistStateMachine-CpEVPzuT.esm.js → customWatchlistStateMachine-C1Xq1ugl.esm.js} +4 -6
  68. package/dist/{deepsightLoader-BKCT8UT1.esm.js → deepsightLoader-ClCQCdeL.esm.js} +5 -5
  69. package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-Nw0YCbpe.esm.js} +38 -1
  70. package/dist/{desktopCameraElection-Dvvw7PRY.esm.js → desktopCameraElection-btFONYx6.esm.js} +23 -11
  71. package/dist/device.d.ts +3 -3
  72. package/dist/device.esm.js +15 -15
  73. package/dist/document-capture.d.ts +2 -2
  74. package/dist/document-capture.esm.js +2 -2
  75. package/dist/document-signature.d.ts +123 -0
  76. package/dist/document-signature.esm.js +149 -0
  77. package/dist/{documentCaptureManager-BG5TuqJz.esm.js → documentCaptureManager-5I3lKDVW.esm.js} +5 -3
  78. package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-BkaPpoKy.d.ts} +6 -5
  79. package/dist/{documentCaptureStateMachine-C7PW_Ah9.esm.js → documentCaptureStateMachine-jtQHasPA.esm.js} +9 -12
  80. package/dist/documentSignatureStateMachine-DKtU0H-F.esm.js +218 -0
  81. package/dist/dynamic-forms.d.ts +1 -1
  82. package/dist/dynamic-forms.esm.js +2 -2
  83. package/dist/{dynamicFormsManager-B0bpHhhJ.esm.js → dynamicFormsManager-B6Bv32wU.esm.js} +5 -3
  84. package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
  85. package/dist/{dynamicFormsStateMachine-2ZHyejBc.esm.js → dynamicFormsStateMachine-Kauq2oB-.esm.js} +12 -13
  86. package/dist/ekyb.d.ts +3 -3
  87. package/dist/ekyb.esm.js +2 -2
  88. package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
  89. package/dist/{ekybManager-P9mC7W9J.esm.js → ekybManager-wi135kG-.esm.js} +5 -3
  90. package/dist/{ekybStateMachine-C7HKaeVr.esm.js → ekybStateMachine-Vjb6_mFt.esm.js} +19 -23
  91. package/dist/ekyc-prefill.d.ts +1 -1
  92. package/dist/ekyc-prefill.esm.js +2 -2
  93. package/dist/ekyc.d.ts +2 -2
  94. package/dist/ekyc.esm.js +3 -3
  95. package/dist/{ekycManager-q1fos6IY.d.ts → ekycManager-BKVQazAb.d.ts} +47 -6
  96. package/dist/{ekycManager-CeeJoRFY.esm.js → ekycManager-DWCL912J.esm.js} +39 -16
  97. package/dist/{ekycPrefillManager-PPGVZbWk.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +4 -3
  98. package/dist/{ekycPrefillManager-C6BFFKxc.esm.js → ekycPrefillManager-C27Cu6rn.esm.js} +3 -2
  99. package/dist/{ekycPrefillStateMachine-Dku90kZL.esm.js → ekycPrefillStateMachine-DqXvupSw.esm.js} +12 -13
  100. package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-1hyjJ6bw.esm.js} +201 -38
  101. package/dist/{ekycStateMachine-DBTczgGE.esm.js → ekycStateMachine-DjiGyQtm.esm.js} +478 -73
  102. package/dist/{ekycUtils-Dcff8BOD.esm.js → ekycUtils-D9ui9Ztp.esm.js} +49 -43
  103. package/dist/electronic-signature.d.ts +1 -1
  104. package/dist/electronic-signature.esm.js +1 -1
  105. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  106. package/dist/{electronicSignatureManager-BKQuhJm_.esm.js → electronicSignatureManager-BHnxFx7u.esm.js} +11 -17
  107. package/dist/email.d.ts +1 -1
  108. package/dist/email.esm.js +2 -2
  109. package/dist/{emailManager-CGmKbsBL.esm.js → emailManager-CfvR6pQN.esm.js} +5 -3
  110. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  111. package/dist/{emailStateMachine-CGY1UGs2.esm.js → emailStateMachine-C4FouMzc.esm.js} +5 -7
  112. package/dist/events-CsPmTidH.esm.js +299 -0
  113. package/dist/events.d.ts +4 -1
  114. package/dist/events.esm.js +2 -1
  115. package/dist/extensibility.d.ts +41 -41
  116. package/dist/extensibility.esm.js +38 -38
  117. package/dist/face-match.d.ts +1 -1
  118. package/dist/face-match.esm.js +2 -2
  119. package/dist/{faceCaptureManagerFactory-ClFsByZc.esm.js → faceCaptureManagerFactory-BjVIUTMM.esm.js} +17 -6
  120. package/dist/{faceCaptureManagerFactory-BVwVGa3z.d.ts → faceCaptureManagerFactory-DhDPxxp-.d.ts} +23 -10
  121. package/dist/{faceCaptureSetup-9hv5GC_H.esm.js → faceCaptureSetup-q33e6ah9.esm.js} +61 -42
  122. package/dist/{faceMatchManager-BZtEw6bB.d.ts → faceMatchManager-C5b5WtcY.d.ts} +3 -2
  123. package/dist/{faceMatchManager-CRe7Nvm6.esm.js → faceMatchManager-CsPFaja4.esm.js} +5 -3
  124. package/dist/{faceMatchStateMachine-EX9QhxFE.esm.js → faceMatchStateMachine-Co2S7iN8.esm.js} +24 -23
  125. package/dist/{feature-management-CmKTG_T5.esm.js → feature-management-BhRKAG--.esm.js} +3 -2
  126. package/dist/feature-management.esm.js +1 -1
  127. package/dist/field-comparison.d.ts +1 -1
  128. package/dist/field-comparison.esm.js +1 -1
  129. package/dist/{fieldComparisonManager-DuosZJso.esm.js → fieldComparisonManager-Chn80m_n.esm.js} +7 -7
  130. package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
  131. package/dist/fiscal-qr.d.ts +1 -1
  132. package/dist/fiscal-qr.esm.js +1 -1
  133. package/dist/{fiscalQrManager-ji0qDaTW.esm.js → fiscalQrManager-CpX6MOy_.esm.js} +9 -8
  134. package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
  135. package/dist/flow-events.d.ts +1 -1
  136. package/dist/flow.d.ts +48 -12
  137. package/dist/flow.esm.js +214 -58
  138. package/dist/{flowCompletionService-DvcH16XO.esm.js → flowCompletionService-E_6ChYsV.esm.js} +2 -2
  139. package/dist/{flowServices-Ca2vKNt2.esm.js → flowServices-C23o7MqO.esm.js} +375 -13
  140. package/dist/geolocation.d.ts +1 -1
  141. package/dist/geolocation.esm.js +2 -2
  142. package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
  143. package/dist/{geolocationManager-CiG32lIm.esm.js → geolocationManager-dgMVi0ed.esm.js} +5 -3
  144. package/dist/{geolocationStateMachine-5rnTEOuw.esm.js → geolocationStateMachine-CCVd9xGh.esm.js} +8 -10
  145. package/dist/{getDeviceClass-DoIWuKI8.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
  146. package/dist/government-validation.d.ts +1 -1
  147. package/dist/government-validation.esm.js +2 -2
  148. package/dist/{governmentValidationManager-BivVZNVe.esm.js → governmentValidationManager-D2KGYDws.esm.js} +5 -3
  149. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  150. package/dist/{governmentValidationStateMachine-CeSDNgha.esm.js → governmentValidationStateMachine-DRG-5jwQ.esm.js} +4 -6
  151. package/dist/home.d.ts +4 -3
  152. package/dist/home.esm.js +4 -2
  153. package/dist/http.esm.js +1 -1
  154. package/dist/id-ocr.d.ts +1 -1
  155. package/dist/id-ocr.esm.js +3 -3
  156. package/dist/id-selfie-flow.d.ts +5 -4
  157. package/dist/id-selfie-flow.esm.js +13 -12
  158. package/dist/id-verification.d.ts +1 -1
  159. package/dist/id-verification.esm.js +2 -2
  160. package/dist/id.d.ts +3 -3
  161. package/dist/id.esm.js +3 -3
  162. package/dist/{idCaptureDefaults-DBnOC28H.esm.js → idCaptureDefaults-BivjtJka.esm.js} +1 -1
  163. package/dist/{idCaptureManager-B5xqok0L.esm.js → idCaptureManager-B_deOVCC.esm.js} +15 -15
  164. package/dist/{idCaptureManager-CG8zbAp0.d.ts → idCaptureManager-DzAMWmRO.d.ts} +17 -9
  165. package/dist/{idCaptureServices-BIF_7rub.esm.js → idCaptureServices-BFCsusKB.esm.js} +17 -25
  166. package/dist/{idCaptureStateMachine-B5cfgKvn.esm.js → idCaptureStateMachine--CMATkG9.esm.js} +52 -57
  167. package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
  168. package/dist/{idOcrManager-DNbVTMIu.esm.js → idOcrManager-C-_bzBSX.esm.js} +5 -3
  169. package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-DflRx-_u.d.ts} +5 -4
  170. package/dist/{idOcrStateMachine-MAGnpWkb.esm.js → idOcrStateMachine-BNtBkAXC.esm.js} +13 -10
  171. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  172. package/dist/{idVerificationManager-BEAkamNm.esm.js → idVerificationManager-CdvGdtg2.esm.js} +5 -3
  173. package/dist/{idVerificationStateMachine-D5mBN2Ye.esm.js → idVerificationStateMachine-mozw0CIg.esm.js} +4 -6
  174. package/dist/identity-reuse.d.ts +2 -2
  175. package/dist/identity-reuse.esm.js +2 -2
  176. package/dist/identity-search.d.ts +97 -0
  177. package/dist/identity-search.esm.js +96 -0
  178. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
  179. package/dist/{identityReuseManager-M8-BTjar.esm.js → identityReuseManager-Z1Re4UGd.esm.js} +9 -4
  180. package/dist/{identityReuseStateMachine-D5bXgw9h.esm.js → identityReuseStateMachine-C_3fSFCw.esm.js} +24 -31
  181. package/dist/{index-CSPOoqah.d.ts → index-C0WIMlJE.d.ts} +2 -2
  182. package/dist/{index-Btj1EhiM.d.ts → index-CNck5TLp.d.ts} +1 -1
  183. package/dist/index-DHuAkTe0.d.ts +1 -0
  184. package/dist/index.d.ts +1 -1
  185. package/dist/index.esm.js +1 -1
  186. package/dist/{invokeOnCaptureCallback-C1-j4fsq.esm.js → invokeOnCaptureCallback-DNQX9k5e.esm.js} +1 -1
  187. package/dist/kyb-checks.d.ts +1 -1
  188. package/dist/kyb-checks.esm.js +2 -2
  189. package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
  190. package/dist/{kybChecksManager-CnqwgKoV.esm.js → kybChecksManager-D-mVF14T.esm.js} +3 -2
  191. package/dist/{kybChecksStateMachine-Be41K_NS.esm.js → kybChecksStateMachine-BARZh9GN.esm.js} +11 -14
  192. package/dist/mandatory-consent.d.ts +2 -2
  193. package/dist/mandatory-consent.esm.js +2 -2
  194. package/dist/{mandatoryConsentManager-LFhUlLvO.esm.js → mandatoryConsentManager-CKzzbbRe.esm.js} +5 -3
  195. package/dist/{mandatoryConsentManager-CYOJd_IZ.d.ts → mandatoryConsentManager-D6tBmPDy.d.ts} +10 -9
  196. package/dist/{mandatoryConsentStateMachine-DTSyDqQs.esm.js → mandatoryConsentStateMachine-DpK7fg3E.esm.js} +6 -9
  197. package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-Di_V9TnZ.esm.js} +21 -4
  198. package/dist/{multipartRecordingService-CCiRpByl.esm.js → multipartRecordingService-CEtaAPz4.esm.js} +2 -2
  199. package/dist/{permissionGuards-DjQUR1du.esm.js → permissionGuards-BJIaHxvI.esm.js} +1 -1
  200. package/dist/{permissionServices-CZpORUWY.esm.js → permissionServices-6Mdq1hDk.esm.js} +8 -5
  201. package/dist/phone.d.ts +1 -1
  202. package/dist/phone.esm.js +2 -2
  203. package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
  204. package/dist/{phoneManager-C-qD3p3N.esm.js → phoneManager-D8-l6-0y.esm.js} +5 -3
  205. package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
  206. package/dist/{phoneServices-BdR1nmSO.esm.js → phoneServices-C9lFIuCM.esm.js} +3 -7
  207. package/dist/{phoneStateMachine-2FMTdjtJ.esm.js → phoneStateMachine-CGLBgJJR.esm.js} +4 -4
  208. package/dist/{platform-aPh7gTWh.esm.js → platform-GIg4uPWe.esm.js} +1 -4
  209. package/dist/{processFaceMatch-B1YnoBer.esm.js → processFaceMatch-B1Mhqkep.esm.js} +1 -1
  210. package/dist/qe-signature.d.ts +2 -2
  211. package/dist/qe-signature.esm.js +1 -1
  212. package/dist/{recordingService-BVSCo0ac.esm.js → recordingService-CLGnDCDl.esm.js} +7 -6
  213. package/dist/redirect-to-mobile.d.ts +1 -1
  214. package/dist/redirect-to-mobile.esm.js +2 -2
  215. package/dist/{redirectToMobileManager-CqyDfDxs.esm.js → redirectToMobileManager-Djb_daci.esm.js} +6 -4
  216. package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +3 -3
  217. package/dist/{redirectToMobileStateMachine-CXqfo2Gd.esm.js → redirectToMobileStateMachine-BCyQFlpn.esm.js} +9 -19
  218. package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
  219. package/dist/{runChildModule-BmteMhR7.esm.js → runChildModule-DF2c6TxC.esm.js} +8 -6
  220. package/dist/{sdkVersion-KZROt6l3.esm.js → sdkVersion-B5_kVegT.esm.js} +1 -1
  221. package/dist/selfie.d.ts +5 -5
  222. package/dist/selfie.esm.js +13 -12
  223. package/dist/{selfieErrorUtils-fqxp645p.esm.js → selfieErrorUtils-BVuv5qO7.esm.js} +1 -1
  224. package/dist/{selfieManager-DREuBhXZ.d.ts → selfieManager-C5a6Fw6W.d.ts} +2 -2
  225. package/dist/{selfieManager-A-n3k9Tu.esm.js → selfieManager-Dnb5h3qV.esm.js} +7 -6
  226. package/dist/{selfieStateMachine-48PKdKrw.esm.js → selfieStateMachine-BT69FLFb.esm.js} +5 -5
  227. package/dist/{session-D0DWDKp9.esm.js → session-OCc4b-Iv.esm.js} +4 -4
  228. package/dist/session.d.ts +1 -1
  229. package/dist/session.esm.js +5 -5
  230. package/dist/{sessionInitializer-I92b2dmL.esm.js → sessionInitializer-BUUpdBy6.esm.js} +11 -12
  231. package/dist/{setup-CG6oLkAa.d.ts → setup-BpD7lYSf.d.ts} +5 -4
  232. package/dist/{setup-BpjzWqR1.esm.js → setup-CJMohzTE.esm.js} +10 -9
  233. package/dist/signature.d.ts +1 -1
  234. package/dist/signature.esm.js +2 -2
  235. package/dist/{signatureManager-M9vQBj19.esm.js → signatureManager-B6dRieBV.esm.js} +5 -3
  236. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  237. package/dist/{signatureStateMachine-0_frzAN5.esm.js → signatureStateMachine-DSW5-ZO0.esm.js} +5 -7
  238. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  239. package/dist/{stats-C2sigf9p.esm.js → stats-VqHbD5rn.esm.js} +1 -1
  240. package/dist/stats.esm.js +1 -1
  241. package/dist/step-up.d.ts +3 -2
  242. package/dist/step-up.esm.js +2 -1
  243. package/dist/{tri-DaUNvo-o.esm.js → tri-B5Yh5glk.esm.js} +2 -2
  244. package/dist/tri.d.ts +1 -1
  245. package/dist/tri.esm-DYdFtcDH.esm.js +3105 -0
  246. package/dist/tri.esm.js +1 -1
  247. package/dist/{trueSightService-DHYTBCIn.esm.js → trueSightService-D9D2IdEj.esm.js} +8 -6
  248. package/dist/trust-graph.d.ts +4 -3
  249. package/dist/trust-graph.esm.js +5 -3
  250. package/dist/{types-TisHEbBg.d.ts → types-B2DGXHe6.d.ts} +30 -1
  251. package/dist/{types-BqlZSoZ-.d.ts → types-BBHnkH6S.d.ts} +4 -4
  252. package/dist/types-BNkzXOXE.d.ts +45 -0
  253. package/dist/{types-P9LzsfRo.d.ts → types-BkWUNheX.d.ts} +1 -1
  254. package/dist/types-C2uJrJrS.d.ts +6 -0
  255. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  256. package/dist/{events-C7h7oaTE.esm.js → types-CBQN04Rh.esm.js} +5 -299
  257. package/dist/{types-CyNndVAT.d.ts → types-CaVUb1DL.d.ts} +1 -1
  258. package/dist/{types-Cbm9J2yF.d.ts → types-Crg7oL-l.d.ts} +1 -1
  259. package/dist/{types-CgihAhT_.d.ts → types-x5MQKskR.d.ts} +4 -2
  260. package/dist/video-selfie.d.ts +6 -5
  261. package/dist/video-selfie.esm.js +14 -13
  262. package/dist/{videoSelfieCameraWarmer-CTOpqhov.esm.js → videoSelfieCameraWarmer-CYEHPKK6.esm.js} +9 -9
  263. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  264. package/dist/{videoSelfieStepDetector-4XE2QI5q.d.ts → videoSelfieStepDetector-DGXi_TXk.d.ts} +18 -8
  265. package/dist/wasm.d.ts +1 -1
  266. package/dist/wasm.esm.js +1 -1
  267. package/dist/{wasmDsFlagSync-lRIgn5Ic.esm.js → wasmDsFlagSync-BNttW5Sm.esm.js} +1 -1
  268. package/dist/watchlist-for-business.d.ts +1 -1
  269. package/dist/watchlist-for-business.esm.js +2 -2
  270. package/dist/watchlist.d.ts +1 -1
  271. package/dist/watchlist.esm.js +2 -2
  272. package/dist/{watchlistForBusinessManager-C1S5y5yj.esm.js → watchlistForBusinessManager-CfLnsL8p.esm.js} +5 -3
  273. package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
  274. package/dist/{watchlistForBusinessStateMachine-Bj_hnoK5.esm.js → watchlistForBusinessStateMachine-EzlC_4I4.esm.js} +12 -9
  275. package/dist/{watchlistManager-BpegtZbc.esm.js → watchlistManager-CGXbemnp.esm.js} +5 -3
  276. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  277. package/dist/{watchlistStateMachine-Bgkh1gra.esm.js → watchlistStateMachine-CsNEmiXL.esm.js} +4 -6
  278. package/dist/workflow.d.ts +6 -5
  279. package/dist/workflow.esm.js +53 -43
  280. package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
  281. package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
  282. package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
  283. package/package.json +11 -1
  284. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  285. package/dist/camera-9wWD-pwg.d.ts +0 -4
  286. package/dist/index-DpTj5PFb.d.ts +0 -1
  287. package/dist/nationalIds-B91f_RuB.esm.js +0 -99
  288. package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
  289. package/dist/tri.esm-Df5eKLsY.esm.js +0 -2165
  290. package/dist/types-kLsU6Jkt.d.ts +0 -6
@@ -1,15 +1,15 @@
1
- import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
1
+ import { t as api, u as endpoints } from "./api-DSZSaaWr.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-1hyjJ6bw.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-B_4JYKa-.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-Dcff8BOD.esm.js";
7
+ import { a as getPostalCodeMaxLength, c as fillFromSuggestion, l as getStreetLevelErrorForSuggestion, n as formatPostalCode, t as createBundledDefinitionSource, u as keepSuggestedStateInOptions } from "./definitionSource-Nw0YCbpe.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-BzAy6lhp.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-D9ui9Ztp.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,6 +5045,148 @@ const EKYC_DEFINITIONS = {
4877
5045
  }
4878
5046
  }
4879
5047
  },
5048
+ "ekyc/PT/PT_PHONE_REGISTER": {
5049
+ schemaVersion: 1,
5050
+ vocabulary: "1.2",
5051
+ id: "ekyc/PT/PT_PHONE_REGISTER",
5052
+ module: "ekyc",
5053
+ country: "PT",
5054
+ source: "PT_PHONE_REGISTER",
5055
+ sections: [{ id: "address" }],
5056
+ fields: [
5057
+ {
5058
+ name: "firstName",
5059
+ kind: "text",
5060
+ group: "name",
5061
+ required: true,
5062
+ label: { key: "verification.labels.firstName" },
5063
+ placeholder: { key: "verification.placeholder.firstName" },
5064
+ input: {
5065
+ maxLength: 100,
5066
+ autofill: "givenName"
5067
+ },
5068
+ rules: [{ id: "nameCharacters" }],
5069
+ prefill: ["document.firstName", "poa.firstName"]
5070
+ },
5071
+ {
5072
+ name: "middleName",
5073
+ kind: "text",
5074
+ group: "name",
5075
+ label: { key: "verification.labels.middleName" },
5076
+ placeholder: { key: "verification.placeholder.middleName" },
5077
+ input: {
5078
+ maxLength: 100,
5079
+ autofill: "middleName"
5080
+ },
5081
+ rules: [{ id: "nameCharacters" }],
5082
+ prefill: ["document.middleName"]
5083
+ },
5084
+ {
5085
+ name: "surName",
5086
+ kind: "text",
5087
+ group: "name",
5088
+ required: true,
5089
+ label: { key: "verification.labels.surName" },
5090
+ placeholder: { key: "verification.placeholder.surname" },
5091
+ input: {
5092
+ maxLength: 100,
5093
+ autofill: "familyName"
5094
+ },
5095
+ rules: [{ id: "nameCharacters" }],
5096
+ prefill: ["document.paternalLastName", "poa.lastName"]
5097
+ },
5098
+ {
5099
+ name: "email",
5100
+ kind: "text",
5101
+ group: "email",
5102
+ required: true,
5103
+ label: { key: "verification.labels.email" },
5104
+ placeholder: { key: "verification.placeholder.email" },
5105
+ input: {
5106
+ keyboard: "email",
5107
+ autofill: "email"
5108
+ },
5109
+ rules: [{ id: "emailFormat" }],
5110
+ prefill: ["emailModule.email"]
5111
+ },
5112
+ {
5113
+ name: "phone",
5114
+ kind: "phone",
5115
+ group: "phone",
5116
+ label: { key: "verification.labels.phone" },
5117
+ input: { autofill: "phone" },
5118
+ phone: { lockCountry: true },
5119
+ rules: [{ id: "phoneFormat" }, {
5120
+ id: "phoneDigits",
5121
+ params: {
5122
+ min: 9,
5123
+ max: 9
5124
+ }
5125
+ }],
5126
+ payload: { transforms: [{ id: "e164" }] },
5127
+ prefill: ["phoneModule.phone"]
5128
+ },
5129
+ {
5130
+ name: "gender",
5131
+ kind: "choice",
5132
+ group: "gender",
5133
+ widget: "radio",
5134
+ label: { key: "verification.labels.gender" },
5135
+ options: [{
5136
+ value: "F",
5137
+ label: { key: "common.female" }
5138
+ }, {
5139
+ value: "M",
5140
+ label: { key: "common.male" }
5141
+ }]
5142
+ },
5143
+ {
5144
+ name: "street",
5145
+ kind: "text",
5146
+ group: "address",
5147
+ section: "address",
5148
+ widget: "addressSearch",
5149
+ label: { key: "verification.labels.streetAndHouseNumber" },
5150
+ input: { autofill: "addressLine1" },
5151
+ rules: [{ id: "noPoBox" }],
5152
+ prefill: ["document.street", "poa.street"]
5153
+ },
5154
+ {
5155
+ name: "city",
5156
+ kind: "text",
5157
+ group: "address",
5158
+ section: "address",
5159
+ label: { key: "verification.labels.city" },
5160
+ input: { autofill: "addressLevel2" },
5161
+ prefill: ["document.city", "poa.city"]
5162
+ },
5163
+ {
5164
+ name: "postalCode",
5165
+ kind: "text",
5166
+ group: "address",
5167
+ section: "address",
5168
+ label: { key: "verification.labels.postalCode" },
5169
+ input: {
5170
+ maxLength: 8,
5171
+ autofill: "postalCode",
5172
+ keyboard: "numeric"
5173
+ },
5174
+ rules: [{ id: "postalCodeFormat" }],
5175
+ payload: { transforms: [{
5176
+ id: "stripSeparators",
5177
+ params: { chars: "- " }
5178
+ }] },
5179
+ prefill: ["document.postalCode", "poa.postalCode"]
5180
+ }
5181
+ ],
5182
+ submit: {
5183
+ static: { plugins: ["kyc"] },
5184
+ context: {
5185
+ source: "source",
5186
+ countryCode: "country"
5187
+ }
5188
+ }
5189
+ },
4880
5190
  "ekyc/RO/RO_VOTER_REGISTER": {
4881
5191
  schemaVersion: 1,
4882
5192
  vocabulary: "1.3",
@@ -5725,7 +6035,7 @@ const EKYC_DEFINITIONS = {
5725
6035
  module: "ekyc",
5726
6036
  country: "US",
5727
6037
  source: "US_TELCO_1",
5728
- sections: [{ id: "address" }, { id: "driverLicense" }],
6038
+ sections: [{ id: "driverLicense" }, { id: "address" }],
5729
6039
  fields: [
5730
6040
  {
5731
6041
  name: "firstName",
@@ -5812,6 +6122,25 @@ const EKYC_DEFINITIONS = {
5812
6122
  params: { lengths: [4] }
5813
6123
  }]
5814
6124
  },
6125
+ {
6126
+ name: "dlNumber",
6127
+ kind: "text",
6128
+ group: "dlNumber",
6129
+ section: "driverLicense",
6130
+ label: { key: "verification.labels.dlNumber" },
6131
+ prefill: ["document.driversLicenseNumber"]
6132
+ },
6133
+ {
6134
+ name: "dlState",
6135
+ kind: "choice",
6136
+ group: "dlState",
6137
+ section: "driverLicense",
6138
+ widget: "select",
6139
+ label: { key: "verification.labels.dlState" },
6140
+ placeholder: { key: "verification.placeholder.state" },
6141
+ optionsRef: "US_STATES",
6142
+ prefill: ["document.driversLicenseState"]
6143
+ },
5815
6144
  {
5816
6145
  name: "street",
5817
6146
  kind: "text",
@@ -5861,25 +6190,6 @@ const EKYC_DEFINITIONS = {
5861
6190
  params: { chars: "- " }
5862
6191
  }] },
5863
6192
  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
6193
  }
5884
6194
  ],
5885
6195
  submit: {
@@ -6529,7 +6839,8 @@ const EKYC_SUPPORTED_IDS = {
6529
6839
  groupRules: /* @__PURE__ */ new Set(["oneOfRequired", "rulesByOption"]),
6530
6840
  optionLists: new Set(Object.keys(OPTION_LISTS)),
6531
6841
  conditions: /* @__PURE__ */ new Set(["fieldFilled"]),
6532
- prefillSources: new Set(EKYC_PREFILL_SOURCES)
6842
+ prefillSources: new Set(EKYC_PREFILL_SOURCES),
6843
+ flags: /* @__PURE__ */ new Set()
6533
6844
  };
6534
6845
  /** Today's field shape only flags `middleName` as optional. */
6535
6846
  const LEGACY_OPTIONAL_FLAG = /* @__PURE__ */ new Set(["middleName"]);
@@ -6669,9 +6980,10 @@ const MIGRATED_EKYC_SOURCES = /* @__PURE__ */ new Set([
6669
6980
  ]);
6670
6981
  /**
6671
6982
  * The bundled definition for exactly this source and country, if it is
6672
- * projectable and the rollout lets this source use it.
6983
+ * projectable and the rollout lets this source use it. `useDefinitions` is
6984
+ * the rollout answer the machine read once, when it was created.
6673
6985
  */
6674
- function selectEkycDefinition(source, country, useDefinitions = isFormDefinitionsEnabled()) {
6986
+ function selectEkycDefinition(source, country, useDefinitions) {
6675
6987
  if (!useDefinitions && MIGRATED_EKYC_SOURCES.has(source)) return void 0;
6676
6988
  const definition = bundled.select({
6677
6989
  module: "ekyc",
@@ -6851,9 +7163,10 @@ function applyOneOfRequiredGroups(defs, configSource) {
6851
7163
  * this country reads it (`packages/form-definitions/catalog/ekyc`) when the
6852
7164
  * rollout allows (`selectEkycDefinition`); any other pair keeps the current
6853
7165
  * builder. `useDefinitions` is the rollout answer the machine read once, when
6854
- * it was created, so it can't change mid-session.
7166
+ * it was created, so it can't change mid-session. The options are named so a
7167
+ * caller can't swap the two booleans.
6855
7168
  */
6856
- function buildFieldDefs(fields, configSource, country, enablePhoneRisk = false, useDefinitions) {
7169
+ function buildFieldDefs(fields, configSource, country, { useDefinitions, enablePhoneRisk = false }) {
6857
7170
  const definition = selectEkycDefinition(configSource, country, useDefinitions);
6858
7171
  if (definition) return projectEkycFields(resolveForm(definition, toEkycResolveContext(fields, enablePhoneRisk)), fields, country);
6859
7172
  return legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk);
@@ -6911,7 +7224,7 @@ function legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk = f
6911
7224
  label: "verification.labels.brazilian"
6912
7225
  },
6913
7226
  {
6914
- value: "naturalizedBrazilian",
7227
+ value: "naturalized_brazilian",
6915
7228
  label: "verification.labels.naturalizedBrazilian"
6916
7229
  },
6917
7230
  {
@@ -6919,7 +7232,7 @@ function legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk = f
6919
7232
  label: "verification.labels.foreigner"
6920
7233
  },
6921
7234
  {
6922
- value: "brazilianBornAbroad",
7235
+ value: "brazilian_born_abroad",
6923
7236
  label: "verification.labels.brazilianBornAbroad"
6924
7237
  }
6925
7238
  ] });
@@ -7163,26 +7476,52 @@ function processFieldValueByName(name, value, fieldsCountry) {
7163
7476
  if (name === "panNumber") return value.replace(/[^a-zA-Z0-9]/g, "").toUpperCase();
7164
7477
  return value;
7165
7478
  }
7479
+ /** Whether the form shows a field: not hidden, and not an email shown elsewhere. */
7480
+ const isVisibleEkycField = (field, hideEmail) => field.displayMode !== "hidden" && !(hideEmail && field.name === "email");
7481
+ /**
7482
+ * Splits the form into steps, one per run of visible fields with the same
7483
+ * section, in field order. A section with no visible field has no step.
7484
+ */
7485
+ function buildEkycSteps(fields, hideEmail) {
7486
+ const steps = [];
7487
+ for (const field of fields) {
7488
+ if (!isVisibleEkycField(field, hideEmail)) continue;
7489
+ const id = field.section ?? "personal";
7490
+ const last = steps[steps.length - 1];
7491
+ if (last?.id === id) last.fieldNames.push(field.name);
7492
+ else steps.push({
7493
+ id,
7494
+ fieldNames: [field.name]
7495
+ });
7496
+ }
7497
+ return steps;
7498
+ }
7499
+ /**
7500
+ * The step index kept within the steps the form has now. A missing index, as
7501
+ * in a snapshot taken before steps existed, is the first step.
7502
+ */
7503
+ const clampStepIndex = (index, steps) => Number.isFinite(index) ? Math.max(0, Math.min(index, steps.length - 1)) : 0;
7504
+ /** Whether a step's fields have no validation errors. */
7505
+ const isStepValid = (step, errors) => !step || step.fieldNames.every((name) => !errors?.[name]);
7506
+ /** The first step with a validation error, or `undefined` when none has one. */
7507
+ function firstStepWithError(steps, errors) {
7508
+ const index = steps.findIndex((step) => !isStepValid(step, errors));
7509
+ return index === -1 ? void 0 : index;
7510
+ }
7166
7511
  //#endregion
7167
7512
  //#region src/modules/ekyc/ekycServices.ts
7168
7513
  /** Fetches module configuration for EXTERNAL_VERIFICATION */
7169
7514
  async function fetchModuleConfig(flowId, signal) {
7170
7515
  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;
7516
+ return (await api.get(url, { signal })).data;
7174
7517
  }
7175
7518
  /** Fetches OCR data for pre-fill */
7176
7519
  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;
7520
+ return (await api.get(endpoints.ocrData, { signal })).data;
7180
7521
  }
7181
7522
  /** Fetches phone/email from prior OTP modules */
7182
7523
  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;
7524
+ return (await api.get(endpoints.otpStatus, { signal })).data;
7186
7525
  }
7187
7526
  var EkycSubmitError = class extends Error {
7188
7527
  constructor(status, apiError) {
@@ -7289,6 +7628,12 @@ const prefillConfig = (context) => ({
7289
7628
  riskAddons: context.moduleConfig?.riskAddons,
7290
7629
  useDefinitions: context._formDefinitions
7291
7630
  });
7631
+ const stepsOf = (context) => buildEkycSteps(context.fields, context.hideEmail);
7632
+ /** The step the user is on, kept within the steps the form has now. */
7633
+ const currentStep = (context) => {
7634
+ const steps = stepsOf(context);
7635
+ return steps[clampStepIndex(context.currentStepIndex, steps)];
7636
+ };
7292
7637
  const omitKeys = (errors, keys) => {
7293
7638
  if (!errors) return void 0;
7294
7639
  const next = { ...errors };
@@ -7319,7 +7664,10 @@ const ekycMachine = setup({
7319
7664
  verificationFields: vFields,
7320
7665
  configSource: source,
7321
7666
  fieldsCountry: country,
7322
- fields: buildFieldDefs(vFields, source, country, config.enablePhoneRisk, context._formDefinitions),
7667
+ fields: buildFieldDefs(vFields, source, country, {
7668
+ useDefinitions: context._formDefinitions,
7669
+ enablePhoneRisk: config.enablePhoneRisk
7670
+ }),
7323
7671
  displayModes: getEKYCDisplayModes(config)
7324
7672
  };
7325
7673
  }),
@@ -7391,10 +7739,35 @@ const ekycMachine = setup({
7391
7739
  const errors = validateEkycForm(context.values, context.fields);
7392
7740
  return { validationErrors: Object.keys(errors).length > 0 ? errors : void 0 };
7393
7741
  }),
7742
+ validateCurrentStep: assign(({ context }) => {
7743
+ const step = currentStep(context);
7744
+ if (!step) return {};
7745
+ const next = { ...context.validationErrors ?? {} };
7746
+ for (const name of step.fieldNames) {
7747
+ const message = validateEkycField(context.values, name, context.fields);
7748
+ if (message) next[name] = message;
7749
+ else delete next[name];
7750
+ }
7751
+ return { validationErrors: Object.keys(next).length > 0 ? next : void 0 };
7752
+ }),
7753
+ advanceStep: assign(({ context }) => {
7754
+ const steps = stepsOf(context);
7755
+ return { currentStepIndex: clampStepIndex(clampStepIndex(context.currentStepIndex, steps) + 1, steps) };
7756
+ }),
7757
+ previousStep: assign(({ context }) => {
7758
+ const steps = stepsOf(context);
7759
+ return { currentStepIndex: clampStepIndex(clampStepIndex(context.currentStepIndex, steps) - 1, steps) };
7760
+ }),
7761
+ goToFirstStepWithError: assign(({ context }) => {
7762
+ const index = firstStepWithError(stepsOf(context), context.validationErrors);
7763
+ return index === void 0 ? {} : { currentStepIndex: index };
7764
+ }),
7765
+ resetStep: assign({ currentStepIndex: () => 0 }),
7394
7766
  fillAddressFields: assign(({ context, event }) => {
7395
7767
  const { suggestion } = event;
7396
7768
  const activeFields = new Set(context.fields.filter((f) => !isLocked(f)).map((f) => f.name));
7397
- const { values: newValues } = fillFromSuggestion(context.values, {}, suggestion, activeFields);
7769
+ const { values: filled } = fillFromSuggestion(context.values, {}, suggestion, activeFields);
7770
+ const newValues = keepSuggestedStateInOptions(context.fields, context.values, filled);
7398
7771
  const clearedErrors = omitKeys(context.validationErrors, ADDRESS_AUTOCOMPLETE_KEYS);
7399
7772
  const streetError = getStreetLevelErrorForSuggestion(suggestion, activeFields);
7400
7773
  const validationErrors = {
@@ -7425,7 +7798,12 @@ const ekycMachine = setup({
7425
7798
  needsPhoneRules: needsPhoneRulesGuard,
7426
7799
  isCountryNotSupported: isCountryNotSupportedGuard,
7427
7800
  shouldAutoSubmit: ({ context }) => !context.autoSubmitted && showsNoFields(context),
7428
- showsNoFields: ({ context }) => showsNoFields(context)
7801
+ showsNoFields: ({ context }) => showsNoFields(context),
7802
+ isLastStep: ({ context }) => {
7803
+ const steps = stepsOf(context);
7804
+ return clampStepIndex(context.currentStepIndex, steps) >= steps.length - 1;
7805
+ },
7806
+ currentStepHasNoErrors: ({ context }) => isStepValid(currentStep(context), context.validationErrors)
7429
7807
  }
7430
7808
  }).createMachine({
7431
7809
  id: "ekyc",
@@ -7447,6 +7825,7 @@ const ekycMachine = setup({
7447
7825
  autoSubmitted: false,
7448
7826
  errorMessage: "",
7449
7827
  submitError: "",
7828
+ currentStepIndex: 0,
7450
7829
  _formDefinitions: isFormDefinitionsEnabled(),
7451
7830
  _searchQuery: ""
7452
7831
  };
@@ -7472,7 +7851,10 @@ const ekycMachine = setup({
7472
7851
  verificationFields: vFields,
7473
7852
  configSource: source,
7474
7853
  fieldsCountry: country,
7475
- fields: buildFieldDefs(vFields, source, country, context.config.enablePhoneRisk, context._formDefinitions)
7854
+ fields: buildFieldDefs(vFields, source, country, {
7855
+ useDefinitions: context._formDefinitions,
7856
+ enablePhoneRisk: context.config.enablePhoneRisk
7857
+ })
7476
7858
  };
7477
7859
  })
7478
7860
  },
@@ -7509,19 +7891,22 @@ const ekycMachine = setup({
7509
7891
  } }
7510
7892
  }
7511
7893
  },
7512
- prefilling: { invoke: {
7513
- id: "fetchPrefillData",
7514
- src: "fetchPrefillData",
7515
- input: ({ context }) => ({ addressOrigin: prefillAddressOrigin(prefillConfig(context)) }),
7516
- onDone: {
7517
- target: "form",
7518
- actions: "applyPrefillData"
7519
- },
7520
- onError: {
7521
- target: "form",
7522
- actions: "applyEmptyPrefill"
7894
+ prefilling: {
7895
+ entry: "resetStep",
7896
+ invoke: {
7897
+ id: "fetchPrefillData",
7898
+ src: "fetchPrefillData",
7899
+ input: ({ context }) => ({ addressOrigin: prefillAddressOrigin(prefillConfig(context)) }),
7900
+ onDone: {
7901
+ target: "form",
7902
+ actions: "applyPrefillData"
7903
+ },
7904
+ onError: {
7905
+ target: "form",
7906
+ actions: "applyEmptyPrefill"
7907
+ }
7523
7908
  }
7524
- } },
7909
+ },
7525
7910
  form: {
7526
7911
  initial: "inputting",
7527
7912
  states: {
@@ -7549,7 +7934,8 @@ const ekycMachine = setup({
7549
7934
  RESULTS: {
7550
7935
  target: "inputting",
7551
7936
  actions: "setAddressSuggestions"
7552
- }
7937
+ },
7938
+ SUBMIT: { target: "validatingSubmit" }
7553
7939
  }
7554
7940
  },
7555
7941
  validatingSubmit: {
@@ -7557,10 +7943,29 @@ const ekycMachine = setup({
7557
7943
  always: [{
7558
7944
  guard: "hasNoValidationErrors",
7559
7945
  target: "#ekyc.submitting"
7946
+ }, {
7947
+ target: "inputting",
7948
+ actions: "goToFirstStepWithError"
7949
+ }]
7950
+ },
7951
+ validatingStep: {
7952
+ entry: "validateCurrentStep",
7953
+ always: [{
7954
+ guard: "currentStepHasNoErrors",
7955
+ target: "inputting",
7956
+ actions: "advanceStep"
7560
7957
  }, { target: "inputting" }]
7561
7958
  }
7562
7959
  },
7563
7960
  on: {
7961
+ NEXT_STEP: [{
7962
+ guard: "isLastStep",
7963
+ target: ".validatingSubmit"
7964
+ }, { target: ".validatingStep" }],
7965
+ PREVIOUS_STEP: {
7966
+ target: ".inputting",
7967
+ actions: "previousStep"
7968
+ },
7564
7969
  SEARCH_ADDRESS: {
7565
7970
  target: ".searching",
7566
7971
  actions: assign(({ event }) => ({
@@ -7625,4 +8030,4 @@ const ekycMachine = setup({
7625
8030
  }
7626
8031
  });
7627
8032
  //#endregion
7628
- export { ekycMachine as t };
8033
+ export { isStepValid as i, buildEkycSteps as n, clampStepIndex as r, ekycMachine as t };