@incodetech/core 2.1.0-rc.1 → 2.1.0-rc.3

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 (263) hide show
  1. package/dist/3dAvatarProvider-ChciZmjE.esm.js +28214 -0
  2. package/dist/{BrowserStorageProvider-BpJM-gIl.esm.js → BrowserStorageProvider-CrrN540a.esm.js} +1 -8
  3. package/dist/BrowserVisibilityObserverProvider-rim9Jrz-.esm.js +25 -0
  4. package/dist/Face2DProvider-BeLlYBbB.esm.js +824 -0
  5. package/dist/FaceDetectionProvider-B78455D4.d.ts +119 -0
  6. package/dist/IVisibilityObserverCapability-BbWjgpiF.d.ts +12 -0
  7. package/dist/IWasmUtilCapability-d2XvzaCk.d.ts +145 -0
  8. package/dist/IpifyProvider-BRW14_uo.esm.js +51 -0
  9. package/dist/{OpenViduRecordingProvider-O4GjBseO.esm.js → OpenViduRecordingProvider-B_0GKkzc.esm.js} +1 -1
  10. package/dist/PrivacyLensProvider-hDzaDzZ6.esm.js +339 -0
  11. package/dist/{StreamCanvasCapture-ImiDQdVA.esm.js → StreamCanvasCapture-Bz17q4FP.esm.js} +1 -1
  12. package/dist/StreamCanvasCapture-DS1TOoiH.d.ts +42 -0
  13. package/dist/{WasmUtilProvider-BKWm8rSA.esm.js → WasmUtilProvider-ADG54T6M.esm.js} +26 -2
  14. package/dist/{addressSearch-DvmWXKZg.esm.js → addressSearch-DJyNTg5S.esm.js} +4 -4
  15. package/dist/{ae-signature-BFZta3TZ.esm.js → ae-signature-DlElqFrZ.esm.js} +1 -1
  16. package/dist/ae-signature.d.ts +4 -3
  17. package/dist/ae-signature.esm.js +10 -7
  18. package/dist/antifraud.d.ts +4 -3
  19. package/dist/antifraud.esm.js +7 -6
  20. package/dist/antifraudManager-BKdQoMFf.esm.js +84 -0
  21. package/dist/{antifraudManager-CznnhyvD.d.ts → antifraudManager-DpIvbrZP.d.ts} +2 -2
  22. package/dist/{antifraudStateMachine-Ccrb-Jxc.esm.js → antifraudStateMachine-C0NGnP9W.esm.js} +3 -3
  23. package/dist/{api-CESGtpbH.esm.js → api-DsbUi7TO.esm.js} +21 -2
  24. package/dist/authentication.d.ts +19 -13
  25. package/dist/authentication.esm.js +33 -27
  26. package/dist/{authenticationManager-CaiQbp-q.d.ts → authenticationManager-CdPbNS2H.d.ts} +13 -3
  27. package/dist/{authenticationManager-BlR6mSaG.esm.js → authenticationManager-Dtl1vcET.esm.js} +17 -8
  28. package/dist/{authenticationStateMachine-DkcGUMw5.esm.js → authenticationStateMachine-D-hOlg8p.esm.js} +20 -23
  29. package/dist/avatar.d.ts +3 -0
  30. package/dist/avatar.esm.js +3 -0
  31. package/dist/{backCameraStream-D7Wo4Nbx.esm.js → backCameraStream-ZyqrFyjO.esm.js} +3 -3
  32. package/dist/browser-DlFgHpoC-qLKs75Qp.esm.js +1425 -0
  33. package/dist/{browserSimulation-B1dWiXp7.esm.js → browserSimulation-TsSoavQv.esm.js} +153 -1216
  34. package/dist/camera-DUkgmYMo.esm.js +79 -0
  35. package/dist/camera.d.ts +7 -1
  36. package/dist/camera.esm.js +4 -4
  37. package/dist/{StreamCanvasCapture-yyl20qd9.d.ts → canvas-CJUmoXSD.d.ts} +1 -41
  38. package/dist/certificate-issuance.d.ts +312 -0
  39. package/dist/certificate-issuance.esm.js +74 -0
  40. package/dist/certificateIssuanceStateMachine-C07m7qtP.esm.js +127 -0
  41. package/dist/clientLifecycle-Ct7h9uxx.esm.js +534 -0
  42. package/dist/consent.d.ts +4 -3
  43. package/dist/consent.esm.js +7 -6
  44. package/dist/{consentManager-BYo9Nu1r.esm.js → consentManager-BtnPZUW4.esm.js} +30 -5
  45. package/dist/{consentManager-Cg5Sk2tv.d.ts → consentManager-DufVo9D9.d.ts} +55 -55
  46. package/dist/{consentStateMachine-BG3yL8aC.esm.js → consentStateMachine-DO2JqoZW.esm.js} +3 -3
  47. package/dist/cpf-ocr.d.ts +4 -3
  48. package/dist/cpf-ocr.esm.js +7 -6
  49. package/dist/{cpfOcrManager-sSKegxox.esm.js → cpfOcrManager-C4rLgKsu.esm.js} +6 -5
  50. package/dist/{cpfOcrManager-Dg1s_TY5.d.ts → cpfOcrManager-DqZZ94Gt.d.ts} +19 -19
  51. package/dist/createFaceAvatar-B8pFpy6o.d.ts +401 -0
  52. package/dist/createFaceAvatar-BOHDKQRq.esm.js +46 -0
  53. package/dist/cross-document-data-match.d.ts +2 -1
  54. package/dist/cross-document-data-match.esm.js +6 -5
  55. package/dist/curp-validation.d.ts +10 -7
  56. package/dist/curp-validation.esm.js +7 -6
  57. package/dist/{curpValidationManager-CFem6zP9.esm.js → curpValidationManager-BafobPXC.esm.js} +52 -5
  58. package/dist/{curpValidationManager-RttixpIc.d.ts → curpValidationManager-Co6LZAHT.d.ts} +4 -3
  59. package/dist/{curpValidationStateMachine-B7V_qp66.esm.js → curpValidationStateMachine-DXTPK6vI.esm.js} +3 -3
  60. package/dist/custom-fields.d.ts +4 -2
  61. package/dist/custom-fields.esm.js +49 -6
  62. package/dist/custom-watchlist.d.ts +2 -1
  63. package/dist/custom-watchlist.esm.js +27 -6
  64. package/dist/{customWatchlistStateMachine-HmFybXLX.esm.js → customWatchlistStateMachine-B4G3Chkx.esm.js} +3 -3
  65. package/dist/{deepsightLoader-8tnddNx-.esm.js → deepsightLoader-DHSVD776.esm.js} +14 -13
  66. package/dist/{deepsightService-CrHmvx8X.esm.js → deepsightService-CDahSjGP.esm.js} +9 -38
  67. package/dist/deepsightService-CMB9XjES.d.ts +69 -0
  68. package/dist/device.d.ts +9 -1
  69. package/dist/device.esm.js +5 -5
  70. package/dist/document-capture.d.ts +178 -177
  71. package/dist/document-capture.esm.js +78 -14
  72. package/dist/document-upload.d.ts +51 -50
  73. package/dist/document-upload.esm.js +10 -9
  74. package/dist/{documentCaptureStateMachine-CUTUzUw_.esm.js → documentCaptureStateMachine-DSOX2epf.esm.js} +7 -7
  75. package/dist/dynamic-forms.d.ts +4 -192
  76. package/dist/dynamic-forms.esm.js +8 -410
  77. package/dist/dynamicFormsManager-BOefZbyF.esm.js +168 -0
  78. package/dist/dynamicFormsManager-CUYLOj9g.d.ts +239 -0
  79. package/dist/dynamicFormsStateMachine-BXHcaocI.esm.js +284 -0
  80. package/dist/ekyb.d.ts +10 -6
  81. package/dist/ekyb.esm.js +62 -17
  82. package/dist/{ekybStateMachine-klc-AImJ.esm.js → ekybStateMachine-CCSeqjCt.esm.js} +5 -5
  83. package/dist/ekyc.d.ts +5 -3
  84. package/dist/ekyc.esm.js +55 -9
  85. package/dist/{ekycStateMachine-CXbpaJJn.esm.js → ekycStateMachine-DkLVTOyA.esm.js} +5 -5
  86. package/dist/electronic-signature.d.ts +4 -3
  87. package/dist/electronic-signature.esm.js +9 -6
  88. package/dist/{electronicSignatureManager-BaECdJ1u.esm.js → electronicSignatureManager-DjzUzqZj.esm.js} +135 -92
  89. package/dist/email.d.ts +5 -4
  90. package/dist/email.esm.js +9 -8
  91. package/dist/{emailManager--D5G3ChB.esm.js → emailManager-B_XzEsXH.esm.js} +47 -6
  92. package/dist/{emailManager-lAzDoQOs.d.ts → emailManager-fHASH6uo.d.ts} +4 -3
  93. package/dist/{emailStateMachine-CxTOMAjC.esm.js → emailStateMachine-fqJ42b19.esm.js} +5 -5
  94. package/dist/{endpoints-BeTK0Mlt.esm.js → endpoints-BzMJFAPV.esm.js} +15 -0
  95. package/dist/{events-Dvvriq9l.esm.js → events-CqGY1yMq.esm.js} +87 -206
  96. package/dist/events.d.ts +23 -16
  97. package/dist/events.esm.js +3 -2
  98. package/dist/extensibility.d.ts +37 -27
  99. package/dist/extensibility.esm.js +74 -57
  100. package/dist/externalFetch-CyhBfD-n.esm.js +22 -0
  101. package/dist/face-match.d.ts +2 -2
  102. package/dist/face-match.esm.js +6 -5
  103. package/dist/{faceCaptureManagerFactory-ej2j1LMr.esm.js → faceCaptureManagerFactory-2brKTzMb.esm.js} +115 -25
  104. package/dist/faceCaptureManagerFactory-CGKbf7zt.d.ts +400 -0
  105. package/dist/{faceCaptureSetup-B9t6bYze.esm.js → faceCaptureSetup-CDUVU1nl.esm.js} +97 -13
  106. package/dist/{faceMatchStateMachine-DeXXzSuz.esm.js → faceMatchStateMachine-DUeUjEPx.esm.js} +3 -3
  107. package/dist/field-comparison.d.ts +4 -3
  108. package/dist/field-comparison.esm.js +6 -5
  109. package/dist/{fieldComparisonManager-COGI2ARD.esm.js → fieldComparisonManager-B9W0a9A5.esm.js} +5 -4
  110. package/dist/{fieldComparisonManager-Bu5TaSr3.d.ts → fieldComparisonManager-DdLqDeB2.d.ts} +2 -2
  111. package/dist/fiscal-qr.d.ts +5 -3
  112. package/dist/fiscal-qr.esm.js +13 -12
  113. package/dist/flow-events.d.ts +8 -6
  114. package/dist/flow.d.ts +34 -16
  115. package/dist/flow.esm.js +53 -30
  116. package/dist/flowCompletionService-BIqSTZcd.d.ts +28 -0
  117. package/dist/flowCompletionService-qEqh_g14.esm.js +42 -0
  118. package/dist/{flowServices-ChgTNggJ.esm.js → flowServices-C4piblgx.esm.js} +24 -9
  119. package/dist/geolocation.d.ts +4 -126
  120. package/dist/geolocation.esm.js +8 -87
  121. package/dist/geolocationManager-BP2Do9O-.esm.js +123 -0
  122. package/dist/geolocationManager-Cs50eRlC.d.ts +156 -0
  123. package/dist/{geolocationStateMachine-Dvh7X0wF.esm.js → geolocationStateMachine-BYfOOOG0.esm.js} +4 -4
  124. package/dist/{getDeviceClass-C8Do2qYu.esm.js → getDeviceClass-DGGzzfqm.esm.js} +1 -1
  125. package/dist/getDeviceData-TrKM8NPh.esm.js +101 -0
  126. package/dist/government-validation.d.ts +4 -3
  127. package/dist/government-validation.esm.js +43 -8
  128. package/dist/{governmentValidationStateMachine-DcJ-BfsC.esm.js → governmentValidationStateMachine-CwoPPO8b.esm.js} +5 -5
  129. package/dist/home.d.ts +18 -15
  130. package/dist/home.esm.js +5 -4
  131. package/dist/http.d.ts +1 -0
  132. package/dist/http.esm.js +2 -2
  133. package/dist/id-ocr.d.ts +4 -625
  134. package/dist/id-ocr.esm.js +8 -84
  135. package/dist/id-verification.d.ts +28 -27
  136. package/dist/id-verification.esm.js +6 -5
  137. package/dist/id.d.ts +24 -13
  138. package/dist/id.esm.js +48 -33
  139. package/dist/idCaptureDefaults-DNJON8Xo.esm.js +188 -0
  140. package/dist/{idCaptureManager-ChCNmgBj.d.ts → idCaptureManager-BVdvfJys.d.ts} +47 -12
  141. package/dist/{idCaptureManager-D3pwWutw.esm.js → idCaptureManager-Bo9DCQSU.esm.js} +100 -15
  142. package/dist/{idCaptureStateMachine-B3AiDIsT.esm.js → idCaptureStateMachine-BeDidMLU.esm.js} +525 -439
  143. package/dist/idOcrManager-BkRDrpZu.esm.js +92 -0
  144. package/dist/idOcrManager-CJzrmM91.d.ts +641 -0
  145. package/dist/{idOcrStateMachine-CDQ5d_VM.esm.js → idOcrStateMachine-DRZc4FBl.esm.js} +5 -5
  146. package/dist/{idVerificationStateMachine-kRxwImzO.esm.js → idVerificationStateMachine-oqiERKpg.esm.js} +3 -3
  147. package/dist/identity-reuse.d.ts +4 -3
  148. package/dist/identity-reuse.esm.js +7 -6
  149. package/dist/{identityReuseManager-C6n_97dw.esm.js → identityReuseManager-Bu62LToE.esm.js} +4 -3
  150. package/dist/{identityReuseManager-Cww-NDtd.d.ts → identityReuseManager-TWKbXuvY.d.ts} +33 -33
  151. package/dist/{identityReuseStateMachine-BfE5YiEr.esm.js → identityReuseStateMachine-BmONeF6B.esm.js} +3 -3
  152. package/dist/{index-B5hPA0Bg.d.ts → index-DtUlD-bz.d.ts} +2 -2
  153. package/dist/{index-B9NysVDB.d.ts → index-Icld-cKW.d.ts} +175 -295
  154. package/dist/index-XTtxaahe.d.ts +93 -0
  155. package/dist/index.d.ts +3 -2
  156. package/dist/index.esm.js +16 -12
  157. package/dist/{invokeOnCaptureCallback-ygByVdnn.esm.js → invokeOnCaptureCallback-v_PV_IJz.esm.js} +1 -1
  158. package/dist/{lib-BY67lgbq.esm.js → lib-B050WTth.esm.js} +1 -1
  159. package/dist/mandatory-consent.d.ts +10 -7
  160. package/dist/mandatory-consent.esm.js +7 -6
  161. package/dist/{mandatoryConsentManager-Dq6WiOZh.d.ts → mandatoryConsentManager-Bmdjo14S.d.ts} +50 -50
  162. package/dist/{mandatoryConsentManager-H6D18cZB.esm.js → mandatoryConsentManager-CQ3jirlZ.esm.js} +4 -3
  163. package/dist/{mandatoryConsentStateMachine-DtQNW1ji.esm.js → mandatoryConsentStateMachine-DkJJLHqC.esm.js} +3 -3
  164. package/dist/mediaRecorderOptions-C3NAkVgK.esm.js +42 -0
  165. package/dist/mediapipeShared-CRAKVElv.esm.js +67 -0
  166. package/dist/{recordingService-yRw7hfzU.esm.js → onDeviceFaceResults-DVBggeq8.esm.js} +71 -389
  167. package/dist/{openviduLazy-Dh14JNJc.esm.js → openviduLazy-BTOIauGP.esm.js} +2 -2
  168. package/dist/openviduLazy-Dov8oKfL.esm.js +3 -0
  169. package/dist/{permissionGuards-D0wGddy7.esm.js → permissionGuards-BR2oN573.esm.js} +1 -1
  170. package/dist/{permissionServices-Doec4X5L.esm.js → permissionServices-BJhGL13R.esm.js} +7 -4
  171. package/dist/personhood.d.ts +534 -0
  172. package/dist/personhood.esm.js +1494 -0
  173. package/dist/phone.d.ts +5 -4
  174. package/dist/phone.esm.js +9 -8
  175. package/dist/{phoneManager-fPmIBYQK.d.ts → phoneManager-BOTcjXgs.d.ts} +4 -3
  176. package/dist/{phoneManager-BmF-0Ez4.esm.js → phoneManager-BWlxqbyD.esm.js} +48 -6
  177. package/dist/{phoneStateMachine-BiV0yoEx.esm.js → phoneStateMachine-B_V9nODs.esm.js} +5 -5
  178. package/dist/{qe-signature-CUYPcHVo.esm.js → qe-signature-BhFnI9pT.esm.js} +1 -1
  179. package/dist/qe-signature.d.ts +4 -3
  180. package/dist/qe-signature.esm.js +10 -7
  181. package/dist/recordingService-m_1xCthr.esm.js +347 -0
  182. package/dist/redirect-to-mobile.d.ts +4 -3
  183. package/dist/redirect-to-mobile.esm.js +9 -7
  184. package/dist/{redirectToMobileManager-Dy3t7o0C.esm.js → redirectToMobileManager-BaAo9rgi.esm.js} +5 -4
  185. package/dist/{redirectToMobileManager-BNe3IzC_.d.ts → redirectToMobileManager-Br0KZK1G.d.ts} +2 -2
  186. package/dist/{redirectToMobileStateMachine-DyAdRxfP.esm.js → redirectToMobileStateMachine-DoAnf2ql.esm.js} +16 -28
  187. package/dist/{runChildModule-CuoHZ1cx.esm.js → runChildModule-0nQfjVVo.esm.js} +14 -24
  188. package/dist/selfie.d.ts +27 -14
  189. package/dist/selfie.esm.js +43 -30
  190. package/dist/{selfieManager-BNuTIGAz.esm.js → selfieManager-D_ZFERsE.esm.js} +17 -8
  191. package/dist/{selfieManager-C2y_t6DG.d.ts → selfieManager-R0Jw5sjb.d.ts} +13 -3
  192. package/dist/{selfieStateMachine-Bv99bZJE.esm.js → selfieStateMachine-CIgeeiN9.esm.js} +4 -4
  193. package/dist/{session-DoVb-OcB.esm.js → session-9jIfKFCc.esm.js} +3 -3
  194. package/dist/session.d.ts +11 -8
  195. package/dist/session.esm.js +16 -12
  196. package/dist/{sessionInitializer-DRB-hgbV.esm.js → sessionInitializer-C_TYIgyk.esm.js} +16 -109
  197. package/dist/{setup-BwCluiw3.d.ts → setup-CpRnXxn8.d.ts} +61 -2
  198. package/dist/setup-DHc6OaHm.esm.js +562 -0
  199. package/dist/signature.d.ts +4 -2
  200. package/dist/signature.esm.js +49 -6
  201. package/dist/{signatureStateMachine-C5qqYLRz.esm.js → signatureStateMachine-DtoiPzys.esm.js} +21 -39
  202. package/dist/{stats-BMNUG1AU.esm.js → stats-CYcScXcO.esm.js} +2 -2
  203. package/dist/stats.esm.js +3 -3
  204. package/dist/thumbmarkAdapter-fHBUDlAP.esm.js +1194 -0
  205. package/dist/tri-BG1iJsr4.esm.js +399 -0
  206. package/dist/tri.d.ts +2 -0
  207. package/dist/tri.esm-DUC01NgO.esm.js +2593 -0
  208. package/dist/tri.esm.js +4 -0
  209. package/dist/trust-graph.d.ts +4 -3
  210. package/dist/trust-graph.esm.js +4 -3
  211. package/dist/{types-NuT8ftBV.d.ts → types-BklZ_Wne.d.ts} +2 -1
  212. package/dist/{types-DOUhndhT.d.ts → types-BsYXnC5s.d.ts} +39 -3
  213. package/dist/{types-DsnEVMhr.esm.js → types-CMcxlSmH.esm.js} +2 -1
  214. package/dist/types-CxW2e0Ar.d.ts +132 -0
  215. package/dist/{types-Bj9hdFjU.d.ts → types-DgGlgyZT.d.ts} +1 -1
  216. package/dist/types-ElOJAGaM.esm.js +189 -0
  217. package/dist/urlUtils-BZqFU9rR.esm.js +16 -0
  218. package/dist/video-C2WIj6TS.esm.js +36 -0
  219. package/dist/video-selfie.d.ts +351 -0
  220. package/dist/video-selfie.esm.js +1509 -0
  221. package/dist/videoSelfieSteps-7M5vxKn-.esm.js +58 -0
  222. package/dist/{warmup-Dg8Lh-50.d.ts → warmup-BJZPQIiX.d.ts} +5 -1
  223. package/dist/wasm.d.ts +4 -3
  224. package/dist/wasm.esm.js +17 -13
  225. package/dist/watchlist-for-business.d.ts +2 -1
  226. package/dist/watchlist-for-business.esm.js +30 -7
  227. package/dist/watchlist.d.ts +2 -1
  228. package/dist/watchlist.esm.js +28 -6
  229. package/dist/{watchlistForBusinessStateMachine-DMl8j2Ov.esm.js → watchlistForBusinessStateMachine-DvEunDxs.esm.js} +3 -3
  230. package/dist/{watchlistStateMachine-DmQlqI6L.esm.js → watchlistStateMachine-AHXVf-TB.esm.js} +3 -3
  231. package/dist/workflow.d.ts +296 -103
  232. package/dist/workflow.esm.js +137 -74
  233. package/dist/{xstate.esm-C9wncMQa.esm.js → xstate.esm-Bomq1a0z.esm.js} +54 -5
  234. package/package.json +26 -1
  235. package/dist/IpifyProvider-D4LWD15E.esm.js +0 -167
  236. package/dist/antifraudManager-CkV4u-LE.esm.js +0 -55
  237. package/dist/camera-DJWm3V4g.esm.js +0 -22
  238. package/dist/deepsightService-Dh5P-hLf.d.ts +0 -265
  239. package/dist/faceCaptureManagerFactory-CjdBUS6s.d.ts +0 -721
  240. package/dist/flowCompletionService-BdR2cGgB.d.ts +0 -19
  241. package/dist/flowCompletionService-DdGojV9K.esm.js +0 -20
  242. package/dist/getBrowser-C8DP7oTB.esm.js +0 -8
  243. package/dist/openviduLazy-B8L--0oe.esm.js +0 -3
  244. package/dist/setup-CUO4mErT.esm.js +0 -1037
  245. /package/dist/{Actor-Y0_Fj-KL.d.ts → Actor-CGEelYtQ.d.ts} +0 -0
  246. /package/dist/{BrowserTimerProvider-DhNc_x02.esm.js → BrowserTimerProvider-CHloo0eQ.esm.js} +0 -0
  247. /package/dist/{ITimerCapability-CB0I1Uf2.esm.js → ITimerCapability-pltuG1E8.esm.js} +0 -0
  248. /package/dist/{Manager-BHn8wH8K.d.ts → Manager-CJ3G2zqi.d.ts} +0 -0
  249. /package/dist/{MotionSensorProvider-Bx7Mpzt0.esm.js → MotionSensorProvider-DCbId4De.esm.js} +0 -0
  250. /package/dist/{StateMachine-BC_nGvrc.d.ts → StateMachine-C_AY4cs7.d.ts} +0 -0
  251. /package/dist/{apiError-B-j-gyDx.esm.js → apiError-DNS2OCEX.esm.js} +0 -0
  252. /package/dist/{camera-SRBpPq2X.d.ts → camera-CNVUo-bC.d.ts} +0 -0
  253. /package/dist/{canvas-SKcRBxsk.esm.js → canvas-_I95hkPg.esm.js} +0 -0
  254. /package/dist/{chunk-CMUKZ2uL.esm.js → chunk-CIKcdghV.esm.js} +0 -0
  255. /package/dist/{cpf-BRzggV8G.esm.js → cpf-BKaho0j_.esm.js} +0 -0
  256. /package/dist/{dateUtils-AksLQmgV.esm.js → dateUtils-7-tQYRNN.esm.js} +0 -0
  257. /package/dist/{getDeviceClass-C0olyNFS.esm.js → getDeviceClass-DavNdcxh.esm.js} +0 -0
  258. /package/dist/{http-Cai3IoLS.esm.js → http-BkiUT7EB.esm.js} +0 -0
  259. /package/dist/{otp-CGMdUzBC.esm.js → otp-Bfnzf7I3.esm.js} +0 -0
  260. /package/dist/{otp-DF5A0sFx.d.ts → otp-M4iy57XY.d.ts} +0 -0
  261. /package/dist/{platform-SKvEfCBh.esm.js → platform-uIVQUnJP.esm.js} +0 -0
  262. /package/dist/{types-DvGZI7BF.d.ts → types-D_IceWxT.d.ts} +0 -0
  263. /package/dist/{types-ya0LN_MX.d.ts → types-Duy2rDxF.d.ts} +0 -0
package/dist/ekyc.esm.js CHANGED
@@ -1,11 +1,12 @@
1
- import "./BrowserTimerProvider-DhNc_x02.esm.js";
2
- import "./api-CESGtpbH.esm.js";
3
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
4
- import "./endpoints-BeTK0Mlt.esm.js";
5
- import { c as createManager, s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
6
- import "./cpf-BRzggV8G.esm.js";
7
- import "./addressSearch-DvmWXKZg.esm.js";
8
- import { n as toEkycConfig, t as ekycMachine } from "./ekycStateMachine-CXbpaJJn.esm.js";
1
+ import "./BrowserTimerProvider-CHloo0eQ.esm.js";
2
+ import "./api-DsbUi7TO.esm.js";
3
+ import { n as createManagerInstrumentation, t as topLevelStateName } from "./events-CqGY1yMq.esm.js";
4
+ import { n as eventModuleNames } from "./types-ElOJAGaM.esm.js";
5
+ import "./endpoints-BzMJFAPV.esm.js";
6
+ import { l as createManager, s as createActor } from "./xstate.esm-Bomq1a0z.esm.js";
7
+ import "./cpf-BKaho0j_.esm.js";
8
+ import "./addressSearch-DJyNTg5S.esm.js";
9
+ import { n as toEkycConfig, t as ekycMachine } from "./ekycStateMachine-DkLVTOyA.esm.js";
9
10
 
10
11
  //#region src/modules/ekyc/ekycActor.ts
11
12
  /**
@@ -18,6 +19,51 @@ function createEkycActor(options) {
18
19
 
19
20
  //#endregion
20
21
  //#region src/modules/ekyc/ekycManager.ts
22
+ /**
23
+ * Maps an eKYC state-machine snapshot to the exact Figma "Tracked Events"
24
+ * screen name. Source: eKYC Figma file → Tracked Events canvas
25
+ * (`https://www.figma.com/design/TWgYZVhurQCizfC4tfLEut/eKYC---eKYB---Ready-for-Dev?node-id=2977-10474`).
26
+ * Family is `eKYC.*` and section names are returned verbatim, emitted as-is
27
+ * on `event.screen` by `createManagerInstrumentation` (e.g. `eKYC.filled`,
28
+ * `eKYC.verify`). See `docs/patterns/INSTRUMENTATION.md`.
29
+ *
30
+ * Note the canvas uses `eKYC.filled` for the entry surface (not
31
+ * `eKYC.default`) and `eKYC.verify` for the submit-in-flight surface (the
32
+ * success instance lives inside the verify section).
33
+ *
34
+ * State → screen mapping rationale:
35
+ *
36
+ * - `idle` / `loading` / `prefilling` collapse onto `eKYC.filled` — the
37
+ * prefill round-trip happens before the user sees the form, but Figma does
38
+ * not define a dedicated loading/prefill surface (the per-country
39
+ * `eKYC-empty *` instances in the `eKYC-States` section are visual
40
+ * references, not analytics screens). Keeping the family on `eKYC.filled`
41
+ * avoids falling back to a generic `eKYC.loading` default and mixing
42
+ * taxonomies in dashboards.
43
+ * - `submitting` → `eKYC.verify` (verifying surface).
44
+ * - `success`/`finished` → `eKYC.success` so the terminal `finished` state
45
+ * stays on the visible success canvas.
46
+ * - `misconfigured` is intentionally unmapped — Figma does not define a
47
+ * misconfiguration surface, and the misconfigured state is an SDK
48
+ * configuration error rather than a user-visible journey screen.
49
+ * - `closed` is intentionally unmapped (terminal user-dismissed state —
50
+ * handled by `moduleClosed`).
51
+ */
52
+ function getEkycScreenName(snapshot) {
53
+ const stateName = topLevelStateName(snapshot.value);
54
+ if (stateName === void 0) return void 0;
55
+ switch (stateName) {
56
+ case "idle":
57
+ case "loading":
58
+ case "prefilling":
59
+ case "form": return "eKYC.filled";
60
+ case "submitting": return "eKYC.verify";
61
+ case "success":
62
+ case "finished": return "eKYC.success";
63
+ case "error": return "eKYC.error";
64
+ default: return;
65
+ }
66
+ }
21
67
  function mapState(snapshot) {
22
68
  const typedSnapshot = snapshot;
23
69
  const { context } = typedSnapshot;
@@ -101,7 +147,7 @@ function createEkycManager(options) {
101
147
  actor: createEkycActor(options),
102
148
  mapState,
103
149
  createApi,
104
- instrumentation: createManagerInstrumentation(eventModuleNames.ekyc)
150
+ instrumentation: createManagerInstrumentation(eventModuleNames.ekyc, { getEventScreenName: getEkycScreenName })
105
151
  });
106
152
  }
107
153
 
@@ -1,8 +1,8 @@
1
- import { t as api } from "./api-CESGtpbH.esm.js";
2
- import { t as endpoints } from "./endpoints-BeTK0Mlt.esm.js";
3
- import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-C9wncMQa.esm.js";
4
- import { t as validateCPF } from "./cpf-BRzggV8G.esm.js";
5
- import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DvmWXKZg.esm.js";
1
+ import { t as api } from "./api-DsbUi7TO.esm.js";
2
+ import { t as endpoints } from "./endpoints-BzMJFAPV.esm.js";
3
+ import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-Bomq1a0z.esm.js";
4
+ import { t as validateCPF } from "./cpf-BKaho0j_.esm.js";
5
+ import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DJyNTg5S.esm.js";
6
6
 
7
7
  //#region src/modules/ekyc/ekycConsts.ts
8
8
  const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER"];
@@ -1,4 +1,5 @@
1
- import "./Manager-BHn8wH8K.js";
2
- import "./Actor-Y0_Fj-KL.js";
3
- import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-B9NysVDB.js";
1
+ import "./StateMachine-C_AY4cs7.js";
2
+ import "./Manager-CJ3G2zqi.js";
3
+ import "./Actor-CGEelYtQ.js";
4
+ import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-Icld-cKW.js";
4
5
  export { AE_CONSENT_KEYS, AeConsentKey, ConsentChecks, ConsentKey, ElectronicSignatureConfig, ElectronicSignatureDocument, ElectronicSignatureManager, ElectronicSignatureState, ElectronicSignatureVariant, QE_CONSENT_KEYS, QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -1,8 +1,11 @@
1
- import "./api-CESGtpbH.esm.js";
2
- import "./events-Dvvriq9l.esm.js";
3
- import "./endpoints-BeTK0Mlt.esm.js";
4
- import "./xstate.esm-C9wncMQa.esm.js";
5
- import "./apiError-B-j-gyDx.esm.js";
6
- import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, o as getConsentKeys, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-BaECdJ1u.esm.js";
1
+ import "./api-DsbUi7TO.esm.js";
2
+ import "./events-CqGY1yMq.esm.js";
3
+ import "./types-ElOJAGaM.esm.js";
4
+ import "./endpoints-BzMJFAPV.esm.js";
5
+ import "./xstate.esm-Bomq1a0z.esm.js";
6
+ import "./urlUtils-BZqFU9rR.esm.js";
7
+ import "./externalFetch-CyhBfD-n.esm.js";
8
+ import "./apiError-DNS2OCEX.esm.js";
9
+ import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, o as getConsentKeys, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-DjzUzqZj.esm.js";
7
10
 
8
11
  export { AE_CONSENT_KEYS, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -1,22 +1,11 @@
1
- import { t as api } from "./api-CESGtpbH.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
3
- import { t as endpoints } from "./endpoints-BeTK0Mlt.esm.js";
4
- import { a as fromPromise, c as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-C9wncMQa.esm.js";
5
- import { n as toIncodeApiError, t as IncodeApiError } from "./apiError-B-j-gyDx.esm.js";
1
+ import { t as api } from "./api-DsbUi7TO.esm.js";
2
+ import { n as createManagerInstrumentation, t as topLevelStateName } from "./events-CqGY1yMq.esm.js";
3
+ import { n as eventModuleNames } from "./types-ElOJAGaM.esm.js";
4
+ import { t as endpoints } from "./endpoints-BzMJFAPV.esm.js";
5
+ import { a as fromPromise, l as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-Bomq1a0z.esm.js";
6
+ import { t as externalFetch } from "./externalFetch-CyhBfD-n.esm.js";
7
+ import { n as toIncodeApiError } from "./apiError-DNS2OCEX.esm.js";
6
8
 
7
- //#region ../infra/src/http/externalFetch.ts
8
- async function externalFetch(config) {
9
- const res = await fetch(config.url, {
10
- method: config.method,
11
- headers: config.headers,
12
- body: config.body,
13
- signal: config.signal
14
- });
15
- if (!res.ok) throw new Error(`${config.method} ${config.url} failed: ${res.status} ${res.statusText}`);
16
- return res;
17
- }
18
-
19
- //#endregion
20
9
  //#region src/modules/electronic-signature/electronicSignatureServices.ts
21
10
  async function fetchUnsignedDocuments(signal) {
22
11
  const res = await api.get(endpoints.aesUnsignedDocuments, { signal });
@@ -56,7 +45,10 @@ async function uploadDocumentFile(presignedUrl, data, signal) {
56
45
  //#region src/modules/electronic-signature/electronicSignatureActors.ts
57
46
  const fetchUnsignedDocsActor = fromPromise(async ({ signal }) => fetchUnsignedDocuments(signal));
58
47
  const signDocumentsActor = fromPromise(async ({ input, signal }) => {
59
- return (await Promise.all(input.documents.map((doc) => signDocument(doc.documentRef, input.variant, signal)))).map((r) => ({ signedDocumentUrl: r.signedDocumentUrl }));
48
+ return (await Promise.all(input.documents.map((doc) => signDocument(doc.documentRef, input.variant, signal)))).map((r) => ({
49
+ signed: r.success === true || !!r.signedDocumentUrl,
50
+ signedDocumentUrl: r.signedDocumentUrl
51
+ }));
60
52
  });
61
53
  /**
62
54
  * Generates the upload destination. `POST /generateDocumentUploadUrl` creates a
@@ -97,26 +89,6 @@ function areAllConsented(checks) {
97
89
 
98
90
  //#endregion
99
91
  //#region src/modules/electronic-signature/electronicSignatureStateMachine.ts
100
- /**
101
- * The `/process/sign` (and `/process/signQes`) endpoint can fail in many ways,
102
- * but only three of them are recoverable by retrying with the same payload:
103
- * - HTTP 500 (transient backend failure)
104
- * - HTTP 409 (signing conflict — typically resolves on retry)
105
- * - HTTP 400 with a body message containing "Signature failed"
106
- * (recoverable signing-pipeline error; other 400s mean the request itself
107
- * is bad and a retry will fail identically).
108
- *
109
- * All other failures (auth, validation, network, etc.) are surfaced as a
110
- * terminal `failed` state so the host receives `onError` immediately instead
111
- * of being offered a Try Again that cannot succeed.
112
- */
113
- function isRetryableSignError(error) {
114
- if (!(error instanceof IncodeApiError)) return false;
115
- if (error.httpStatus === 500) return true;
116
- if (error.httpStatus === 409) return true;
117
- if (error.httpStatus === 400 && error.message.includes("Signature failed")) return true;
118
- return false;
119
- }
120
92
  const electronicSignatureMachine = setup({
121
93
  types: {
122
94
  context: {},
@@ -162,7 +134,6 @@ const electronicSignatureMachine = setup({
162
134
  },
163
135
  guards: {
164
136
  errorFromUpload: ({ context }) => context.errorSource === "upload",
165
- errorFromSigning: ({ context }) => context.errorSource === "signing",
166
137
  shouldUpload: ({ context }) => context.config.uploadDocument === true,
167
138
  hasUploadUrl: ({ context }) => context.preSignedUrl !== null,
168
139
  allConsented: ({ context }) => areAllConsented(context.consentChecks),
@@ -172,13 +143,12 @@ const electronicSignatureMachine = setup({
172
143
  },
173
144
  allSigned: ({ event }) => {
174
145
  const { output } = event;
175
- return output.every((d) => !!d.signedDocumentUrl);
146
+ return output.every((d) => d.signed);
176
147
  },
177
148
  allSignedAndDownload: ({ context, event }) => {
178
149
  const { output } = event;
179
- return output.every((d) => !!d.signedDocumentUrl) && context.config.downloadDocument === true;
180
- },
181
- isRetryableSignError: ({ event }) => isRetryableSignError(event.error)
150
+ return output.every((d) => d.signed && !!d.signedDocumentUrl) && context.config.downloadDocument === true;
151
+ }
182
152
  }
183
153
  }).createMachine({
184
154
  id: "electronicSignature",
@@ -306,67 +276,49 @@ const electronicSignatureMachine = setup({
306
276
  actions: "setSignedDocuments"
307
277
  },
308
278
  {
309
- target: "error",
279
+ target: "signError",
310
280
  actions: assign({
311
281
  errorMessage: () => "aes.signingFailed",
312
282
  errorSource: () => "signing"
313
283
  })
314
284
  }
315
285
  ],
316
- onError: [{
317
- target: "error",
318
- guard: "isRetryableSignError",
319
- actions: assign(({ event }) => ({
320
- errorMessage: String(event.error ?? "aes.error"),
321
- errorSource: "signing"
322
- }))
323
- }, {
324
- target: "failed",
286
+ onError: {
287
+ target: "signError",
325
288
  actions: assign(({ event }) => ({
326
289
  errorMessage: String(event.error ?? "aes.error"),
327
290
  errorSource: "signing"
328
291
  }))
329
- }]
292
+ }
330
293
  } },
331
294
  success: { after: { 3e3: "finished" } },
332
295
  successDownload: { on: {
333
296
  FINISH: { target: "finished" },
334
297
  CLOSE: { target: "closed" }
335
298
  } },
299
+ signError: { after: { 3e3: "finished" } },
336
300
  error: { on: {
337
- RETRY: [
338
- {
339
- target: "uploading",
340
- guard: "errorFromUpload",
341
- actions: assign({
342
- errorMessage: () => "",
343
- errorSource: () => null,
344
- fileName: () => null,
345
- fileSize: () => null,
346
- fileUrl: () => null
347
- })
348
- },
349
- {
350
- target: "signing",
351
- guard: "errorFromSigning",
352
- actions: assign({
353
- errorMessage: () => "",
354
- errorSource: () => null
355
- })
356
- },
357
- {
358
- target: "fetchingDocs",
359
- actions: assign({
360
- errorMessage: () => "",
361
- errorSource: () => null
362
- })
363
- }
364
- ],
301
+ RETRY: [{
302
+ target: "uploading",
303
+ guard: "errorFromUpload",
304
+ actions: assign({
305
+ errorMessage: () => "",
306
+ errorSource: () => null,
307
+ fileName: () => null,
308
+ fileSize: () => null,
309
+ fileUrl: () => null
310
+ })
311
+ }, {
312
+ target: "fetchingDocs",
313
+ actions: assign({
314
+ errorMessage: () => "",
315
+ errorSource: () => null
316
+ })
317
+ }],
365
318
  CLOSE: { target: "closed" }
366
319
  } },
367
320
  finished: { type: "final" },
368
- closed: { type: "final" },
369
- failed: { type: "final" }
321
+ closed: { type: "final" }
370
322
  }
371
323
  });
372
324
 
@@ -381,6 +333,95 @@ function createElectronicSignatureActor(options) {
381
333
 
382
334
  //#endregion
383
335
  //#region src/modules/electronic-signature/electronicSignatureManager.ts
336
+ /**
337
+ * Maps an Advanced Electronic Signature (AE) state-machine snapshot to the
338
+ * exact Figma "Tracked Events" screen name from the AES canvas
339
+ * (`https://www.figma.com/design/XHmDxd98n66Rg5OyPJMP93/Signature--QES-AES-?node-id=6359-51995`).
340
+ * Family is `AdSign.*`. The mapper returns Figma-verbatim section names
341
+ * which the adapter emits as-is on `event.screen` (e.g.
342
+ * `AdSign.AcceptSign.default`, `AdSign.uploadDocument.default`). See
343
+ * `docs/patterns/INSTRUMENTATION.md`.
344
+ *
345
+ * Figma sub-states the state machine does not surface as discrete states and
346
+ * therefore not part of this mapping (they collapse into the section's
347
+ * primary screen until the SM surfaces them):
348
+ *
349
+ * - `AdSign.AcceptSign.selectedCheckox` — UI sub-state of `signing` (all
350
+ * consents checked). Context-driven via `context.consentChecks`.
351
+ * - `AdSign.AcceptSign.loadingsign` — visual loading variant of `signing`
352
+ * right after the user taps Sign; the SM transitions straight to
353
+ * `processing` so this surface collapses into `AdSign.AcceptSign.default`.
354
+ * - `AdSign.AcceptSign.viewdoc` — UI sub-state of `signing` while
355
+ * `context.viewingDocumentUrl` is set.
356
+ *
357
+ * `signError` is mapped to `AdSign.AcceptSign.error` — the SDK shows the
358
+ * error screen for 3s then auto-finishes. `error` covers upload/fetch-docs
359
+ * failures (Try Again). `closed` is intentionally unmapped (terminal
360
+ * user-dismissed state — handled by `moduleClosed`).
361
+ */
362
+ function getAdSignatureScreenName(snapshot) {
363
+ const stateName = topLevelStateName(snapshot.value);
364
+ if (stateName === void 0) return void 0;
365
+ switch (stateName) {
366
+ case "idle":
367
+ case "uploading": return "AdSign.uploadDocument.default";
368
+ case "reviewing":
369
+ case "generatingUploadUrl":
370
+ case "uploadingFile": return "AdSign.reviewDoc.default";
371
+ case "fetchingDocs":
372
+ case "signing": return "AdSign.AcceptSign.default";
373
+ case "processing": return "AdSign.AcceptSign.processing";
374
+ case "success":
375
+ case "successDownload":
376
+ case "finished": return "AdSign.success";
377
+ case "error": return "AdSign.AcceptSign.error";
378
+ case "signError": return "AdSign.AcceptSign.error";
379
+ default: return;
380
+ }
381
+ }
382
+ /**
383
+ * Maps a Qualified Electronic Signature (QE) state-machine snapshot to the
384
+ * exact Figma screen name. Source canvas spans two pages of the QES file
385
+ * (`https://www.figma.com/design/XO9YGKlEsGUyag8CGbSUsi/Qualified-Signature---latest-design?node-id=6086-28669`).
386
+ * Family is `QSign.*`. The mapper returns Figma-verbatim section names
387
+ * which the adapter emits as-is on `event.screen` (e.g.
388
+ * `QSign.AcceptSign.default`, `QSign.review.default`). See
389
+ * `docs/patterns/INSTRUMENTATION.md`. Note QES uses `QSign.review.*` (vs
390
+ * AES's `AdSign.reviewDoc.*`) for the review surface.
391
+ *
392
+ * Figma sub-states the state machine does not surface as discrete states and
393
+ * therefore not part of this mapping:
394
+ *
395
+ * - `QSign.uploadDocument.select` — visual variant of `uploading` shown
396
+ * while a file is being picked. The SM stays in `uploading` until
397
+ * `SELECT_FILE` lands; this sub-state collapses into the default.
398
+ * - `QSign.AcceptSign.{selectedCheckox,loadingsign,viewdoc}` — same UI
399
+ * sub-states as AES (consent checked / signing in flight / viewing doc).
400
+ *
401
+ * `signError` is mapped to `QSign.AcceptSign.error` for the same reason as
402
+ * AES (error screen shown for 3s then auto-finish). `closed` is intentionally
403
+ * unmapped.
404
+ */
405
+ function getQSignatureScreenName(snapshot) {
406
+ const stateName = topLevelStateName(snapshot.value);
407
+ if (stateName === void 0) return void 0;
408
+ switch (stateName) {
409
+ case "idle":
410
+ case "uploading": return "QSign.uploadDocument.default";
411
+ case "reviewing":
412
+ case "generatingUploadUrl":
413
+ case "uploadingFile": return "QSign.review.default";
414
+ case "fetchingDocs":
415
+ case "signing": return "QSign.AcceptSign.default";
416
+ case "processing": return "QSign.AcceptSign.processing";
417
+ case "success":
418
+ case "successDownload":
419
+ case "finished": return "QSign.success";
420
+ case "error": return "QSign.AcceptSign.error";
421
+ case "signError": return "QSign.AcceptSign.error";
422
+ default: return;
423
+ }
424
+ }
384
425
  function mapState(snapshot) {
385
426
  const { context } = snapshot;
386
427
  if (snapshot.matches("idle") || snapshot.matches("fetchingDocs") || snapshot.matches("generatingUploadUrl") || snapshot.matches("uploadingFile")) return { status: "loading" };
@@ -411,8 +452,8 @@ function mapState(snapshot) {
411
452
  status: "error",
412
453
  errorMessage: context.errorMessage
413
454
  };
414
- if (snapshot.matches("failed")) return {
415
- status: "failed",
455
+ if (snapshot.matches("signError")) return {
456
+ status: "signError",
416
457
  errorMessage: context.errorMessage
417
458
  };
418
459
  if (snapshot.matches("finished")) return { status: "finished" };
@@ -478,17 +519,19 @@ function createApi({ actor, trackElementClicked, fileDataRef }) {
478
519
  }
479
520
  function createElectronicSignatureManager(options) {
480
521
  const fileDataRef = { current: null };
522
+ const actor = createElectronicSignatureActor({
523
+ config: options.config,
524
+ getFileData: () => fileDataRef.current
525
+ });
526
+ const isQualified = options.config.variant === "qe";
481
527
  return createManager({
482
- actor: createElectronicSignatureActor({
483
- config: options.config,
484
- getFileData: () => fileDataRef.current
485
- }),
528
+ actor,
486
529
  mapState,
487
530
  createApi: (apiOptions) => createApi({
488
531
  ...apiOptions,
489
532
  fileDataRef
490
533
  }),
491
- instrumentation: createManagerInstrumentation(options.config.variant === "qe" ? eventModuleNames.qeSignature : eventModuleNames.aeSignature)
534
+ instrumentation: createManagerInstrumentation(isQualified ? eventModuleNames.qeSignature : eventModuleNames.aeSignature, { getEventScreenName: isQualified ? getQSignatureScreenName : getAdSignatureScreenName })
492
535
  });
493
536
  }
494
537
 
package/dist/email.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import "./Manager-BHn8wH8K.js";
2
- import "./Actor-Y0_Fj-KL.js";
3
- import { n as EmailState, o as emailMachine, r as createEmailManager, s as EmailConfig, t as EmailManager } from "./emailManager-lAzDoQOs.js";
4
- import "./otp-DF5A0sFx.js";
1
+ import "./StateMachine-C_AY4cs7.js";
2
+ import "./Manager-CJ3G2zqi.js";
3
+ import "./Actor-CGEelYtQ.js";
4
+ import { n as EmailState, o as emailMachine, r as createEmailManager, s as EmailConfig, t as EmailManager } from "./emailManager-fHASH6uo.js";
5
+ import "./otp-M4iy57XY.js";
5
6
  export { type EmailConfig, type EmailManager, type EmailState, createEmailManager, emailMachine };
package/dist/email.esm.js CHANGED
@@ -1,10 +1,11 @@
1
- import "./BrowserTimerProvider-DhNc_x02.esm.js";
2
- import "./api-CESGtpbH.esm.js";
3
- import "./events-Dvvriq9l.esm.js";
4
- import "./endpoints-BeTK0Mlt.esm.js";
5
- import "./xstate.esm-C9wncMQa.esm.js";
6
- import { t as emailMachine } from "./emailStateMachine-CxTOMAjC.esm.js";
7
- import "./otp-CGMdUzBC.esm.js";
8
- import { t as createEmailManager } from "./emailManager--D5G3ChB.esm.js";
1
+ import "./BrowserTimerProvider-CHloo0eQ.esm.js";
2
+ import "./api-DsbUi7TO.esm.js";
3
+ import "./events-CqGY1yMq.esm.js";
4
+ import "./types-ElOJAGaM.esm.js";
5
+ import "./endpoints-BzMJFAPV.esm.js";
6
+ import "./xstate.esm-Bomq1a0z.esm.js";
7
+ import { t as emailMachine } from "./emailStateMachine-fqJ42b19.esm.js";
8
+ import "./otp-Bfnzf7I3.esm.js";
9
+ import { t as createEmailManager } from "./emailManager-B_XzEsXH.esm.js";
9
10
 
10
11
  export { createEmailManager, emailMachine };
@@ -1,7 +1,8 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
2
- import { c as createManager, s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
3
- import { t as emailMachine } from "./emailStateMachine-CxTOMAjC.esm.js";
4
- import { t as OTP_CODE_LENGTH } from "./otp-CGMdUzBC.esm.js";
1
+ import { n as createManagerInstrumentation } from "./events-CqGY1yMq.esm.js";
2
+ import { n as eventModuleNames } from "./types-ElOJAGaM.esm.js";
3
+ import { l as createManager, s as createActor } from "./xstate.esm-Bomq1a0z.esm.js";
4
+ import { t as emailMachine } from "./emailStateMachine-fqJ42b19.esm.js";
5
+ import { t as OTP_CODE_LENGTH } from "./otp-Bfnzf7I3.esm.js";
5
6
 
6
7
  //#region src/modules/email/emailActor.ts
7
8
  function createEmailActor(options) {
@@ -97,6 +98,46 @@ function createEmailActor(options) {
97
98
  * }, 100);
98
99
  * ```
99
100
  */
101
+ /**
102
+ * Maps an Email state-machine snapshot to the exact Figma "Tracked Events"
103
+ * screen name. Returned strings are the absolute analytics screen (module
104
+ * prefix included) and are emitted verbatim by
105
+ * `createManagerInstrumentation`'s `getEventScreenName` short-circuit.
106
+ *
107
+ * Source of truth: Email Input Module Figma file → Tracked Events canvas
108
+ * (`https://www.figma.com/design/IovIhDAPjR7zxjC4NKZzfq/Email-Input-Module?node-id=3031-82920`).
109
+ *
110
+ * Figma screens that have no dedicated state-machine counterpart yet
111
+ * (intentionally not mapped here — they collapse into the section's primary
112
+ * screen until the SM surfaces them):
113
+ *
114
+ * - `email.verifyEmail.typing` / `email.verifyEmail.filled` — UI sub-states of `inputting`.
115
+ * - `email.verifyEmail.error` — UI surface of inline validation error on `inputting`.
116
+ * - `email.OTP.filled` — UI sub-state of `awaitingOtp`.
117
+ *
118
+ * Terminal SM `error` is mapped to `email.error.somethingWentWrong`, and
119
+ * `finished` is mapped to `email.success` so the adapter never falls back to
120
+ * the generic `<module>.finished` / `<module>.error` defaults.
121
+ */
122
+ function getEmailScreenName(snapshot) {
123
+ const { value } = snapshot;
124
+ if (typeof value !== "string") return void 0;
125
+ switch (value) {
126
+ case "idle":
127
+ case "inputting":
128
+ case "validatingSubmit": return "email.verifyEmail.default";
129
+ case "loadingPrefill":
130
+ case "submitting": return "email.verifyEmail.loading";
131
+ case "sendingInitialOtp":
132
+ case "resendingOtp": return "email.OTP.loading";
133
+ case "awaitingOtp": return "email.OTP.typing";
134
+ case "verifyingOtp": return "email.OTP.processing";
135
+ case "otpError": return "email.OTP.error";
136
+ case "finished": return "email.success";
137
+ case "error": return "email.error.somethingWentWrong";
138
+ default: return;
139
+ }
140
+ }
100
141
  function mapState(snapshot) {
101
142
  const typedSnapshot = snapshot;
102
143
  const { context } = typedSnapshot;
@@ -245,7 +286,7 @@ function createEmailManager(options) {
245
286
  actor: createEmailActor(options),
246
287
  mapState,
247
288
  createApi,
248
- instrumentation: createManagerInstrumentation(eventModuleNames.email)
289
+ instrumentation: createManagerInstrumentation(eventModuleNames.email, { getEventScreenName: getEmailScreenName })
249
290
  });
250
291
  }
251
292
  function createEmailManagerFromActor(actor) {
@@ -253,7 +294,7 @@ function createEmailManagerFromActor(actor) {
253
294
  actor,
254
295
  mapState,
255
296
  createApi,
256
- instrumentation: createManagerInstrumentation(eventModuleNames.email)
297
+ instrumentation: createManagerInstrumentation(eventModuleNames.email, { getEventScreenName: getEmailScreenName })
257
298
  });
258
299
  }
259
300
 
@@ -1,6 +1,6 @@
1
- import { t as Manager } from "./Manager-BHn8wH8K.js";
2
- import { t as ActorRefFrom } from "./Actor-Y0_Fj-KL.js";
3
- import { t as OtpValidationErrors } from "./otp-DF5A0sFx.js";
1
+ import { t as Manager } from "./Manager-CJ3G2zqi.js";
2
+ import { t as ActorRefFrom } from "./Actor-CGEelYtQ.js";
3
+ import { t as OtpValidationErrors } from "./otp-M4iy57XY.js";
4
4
 
5
5
  //#region src/modules/email/types.d.ts
6
6
 
@@ -66,6 +66,7 @@ type CreateEmailActorOptions = {
66
66
  type EmailActor = ActorRefFrom<EmailMachine>;
67
67
  //#endregion
68
68
  //#region src/modules/email/emailManager.d.ts
69
+
69
70
  /** Email manager is in initial state, waiting for `load()` to be called */
70
71
  type EmailIdleState = {
71
72
  status: 'idle';
@@ -1,8 +1,8 @@
1
- import { t as BrowserTimerProvider } from "./BrowserTimerProvider-DhNc_x02.esm.js";
2
- import { t as api } from "./api-CESGtpbH.esm.js";
3
- import { t as endpoints } from "./endpoints-BeTK0Mlt.esm.js";
4
- import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-C9wncMQa.esm.js";
5
- import { n as computeOtpValidationErrors, r as isOtpComplete } from "./otp-CGMdUzBC.esm.js";
1
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CHloo0eQ.esm.js";
2
+ import { t as api } from "./api-DsbUi7TO.esm.js";
3
+ import { t as endpoints } from "./endpoints-BzMJFAPV.esm.js";
4
+ import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-Bomq1a0z.esm.js";
5
+ import { n as computeOtpValidationErrors, r as isOtpComplete } from "./otp-Bfnzf7I3.esm.js";
6
6
 
7
7
  //#region src/modules/email/emailServices.ts
8
8
  function getEmailServerFailureReason(error, invalidStatus) {
@@ -9,6 +9,15 @@ const endpoints = {
9
9
  recordingStartV2: "/omni/recordings/record-start/v2",
10
10
  recordingStopV2: "/omni/recordings/record-stop/v2",
11
11
  deepsightVideoImport: "/omni/recordings/import",
12
+ videoSelfieUploadInitiate: "/omni/video-selfie/upload/initiate",
13
+ videoSelfieUploadPart: "/omni/video-selfie/upload/part",
14
+ videoSelfieUploadComplete: "/omni/video-selfie/upload/complete",
15
+ videoSelfieCompareId: "/omni/videoselfie/compare-id/v2",
16
+ videoSelfieCompareOcr: "/omni/videoselfie/compare-ocr/v2",
17
+ videoSelfieCompareBackId: "/omni/videoselfie/compare-back-id/v2",
18
+ videoSelfieCompareBackOcr: "/omni/videoselfie/compare-back-ocr/v2",
19
+ questionAndAnswer: "/omni/get/questionAndAnswer",
20
+ addSpeechV2: "/omni/add/speech/v2",
12
21
  phone: "/omni/add/phone",
13
22
  phoneInstant: "/omni/instant/add/phone",
14
23
  getPhone: "/omni/get/phone",
@@ -60,6 +69,7 @@ const endpoints = {
60
69
  documentLegacy: "/omni/add/document",
61
70
  cfdi: "/omni/process/cfdi",
62
71
  finishStatus: "/omni/finish-status",
72
+ sessionTotalScoreStatus: "/omni/session/total-score-status",
63
73
  updateSession: "/omni/update",
64
74
  onboardingUrl: "/omni/onboarding-url",
65
75
  sendRedirectSms: "/omni/notify/send-sms",
@@ -82,7 +92,12 @@ const endpoints = {
82
92
  workflowInfo: "/omni/workflow/info",
83
93
  customModuleExecution: "/omni/custom-module/execution",
84
94
  processCrossDocumentDataMatch: "/omni/cross-doc-data-check/process",
95
+ personhoodServerFallback: "/omni/personhood/fallback",
96
+ personhoodOAuthToken: "/omni/oauth2/token",
97
+ personhoodOAuthTokenDirect: "/oauth2/token",
98
+ personhoodOnDeviceVerify: "/omni/personhood/verify",
85
99
  dynamicFormsSubmitAnswer: "/omni/form-answer/submit",
100
+ certificateIssuanceIssue: "/omni/es/process/issueCertificate",
86
101
  addFiscalQrLink: "/omni/add/fiscal-qr-url"
87
102
  };
88
103