@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
@@ -0,0 +1,401 @@
1
+ import { t as IncodeCanvas } from "./canvas-CJUmoXSD.js";
2
+
3
+ //#region ../infra/src/wasm/wasmWebClient.d.ts
4
+
5
+ /**
6
+ * Configuration shape that the C++ `WebApi` passes when calling `.post(...)`
7
+ * on its host JS adapter. Mirrors the upstream `ml-wasm-kit/WebClient`
8
+ * `RequestConfig` for the subset of fields actually set by `WebApi`.
9
+ */
10
+ type WebApiHostRequestConfig = {
11
+ ie?: boolean;
12
+ headers?: Record<string, string>;
13
+ params?: Record<string, string | number | boolean | undefined>;
14
+ timeout?: number;
15
+ };
16
+ //#endregion
17
+ //#region ../infra/src/capabilities/IMLProviderCapability.d.ts
18
+ /**
19
+ * Base configuration shared by all ML provider capabilities.
20
+ */
21
+ interface MLProviderConfig {
22
+ /** Path to the WASM binary */
23
+ wasmPath?: string;
24
+ /** Path to the SIMD-optimized WASM binary (optional) */
25
+ wasmSimdPath?: string;
26
+ /** Path to the WASM glue code (paired with `wasmPath`) */
27
+ glueCodePath?: string;
28
+ /**
29
+ * Path to the SIMD-optimized WASM glue code (paired with `wasmSimdPath`).
30
+ * If omitted, defaults to a sibling `.js` derived from `wasmSimdPath`.
31
+ */
32
+ glueCodeSimdPath?: string;
33
+ /** Whether to use SIMD optimizations (default: true) */
34
+ useSimd?: boolean;
35
+ /**
36
+ * Base path for ML model files. Models will be loaded from `${modelsBasePath}/${modelFileName}`.
37
+ * If not provided, models are expected in a 'models' subdirectory relative to the WASM binary.
38
+ */
39
+ modelsBasePath?: string;
40
+ }
41
+ /**
42
+ * Base interface for ML provider capabilities.
43
+ * Provides common lifecycle and frame processing methods shared by
44
+ * FaceDetectionCapability and IdCaptureCapability.
45
+ */
46
+ interface IMLProviderCapability<TConfig extends MLProviderConfig> {
47
+ /**
48
+ * Whether the provider has been initialized and is ready to process frames.
49
+ */
50
+ readonly initialized: boolean;
51
+ /**
52
+ * Initializes the provider with the given configuration.
53
+ * If WASM was already warmed up via `setup()` or `warmupWasm()`, this returns almost instantly.
54
+ * @param config - Provider configuration including WASM paths
55
+ */
56
+ initialize(config: TConfig): Promise<void>;
57
+ /**
58
+ * Processes a frame through the ML pipeline.
59
+ * Callbacks set via `setCallbacks()` will be invoked based on the analysis results.
60
+ * @param image - Image data to process
61
+ * @throws Error if provider is not initialized
62
+ */
63
+ processFrame(image: ImageData): Promise<void>;
64
+ /**
65
+ * Resets the pipeline to its initial state.
66
+ * Safe to call even if not initialized (no-op in that case).
67
+ */
68
+ reset(): void;
69
+ /**
70
+ * Disposes of resources and resets initialization state.
71
+ * Safe to call even if not initialized.
72
+ */
73
+ dispose(): Promise<void>;
74
+ }
75
+ //#endregion
76
+ //#region ../infra/src/capabilities/IFaceDetectionCapability.d.ts
77
+ /**
78
+ * Configuration for face detection provider.
79
+ * Extends base ML provider config with face-detection specific options.
80
+ */
81
+ interface FaceDetectionConfig extends MLProviderConfig {
82
+ autocaptureInterval?: number;
83
+ /**
84
+ * Load the on-device selfie workflow (6 models including liveness + age
85
+ * estimation) instead of the default selfie workflow (4 models). Required
86
+ * when SELFIE/AUTHENTICATION has `onDeviceFaceResultsSubmissionEnabled`.
87
+ */
88
+ useOnDeviceWorkflow?: boolean;
89
+ /**
90
+ * Load the video-selfie face workflow (`SelfieWithAggregationMetrics`, the
91
+ * frame-aggregation best-shot pipeline used by the video-selfie flow)
92
+ * instead of the default quality-metrics selfie workflow. Mutually exclusive
93
+ * with `useOnDeviceWorkflow`.
94
+ */
95
+ videoSelfie?: boolean;
96
+ }
97
+ interface FacePositionConstraints {
98
+ minX: number;
99
+ minY: number;
100
+ maxX: number;
101
+ maxY: number;
102
+ }
103
+ interface FaceDetectionThresholds {
104
+ brightnessThreshold: number;
105
+ blurrinessThreshold: number;
106
+ tiltRotationAngleThreshold: number;
107
+ minMagicCropSize: number;
108
+ autocaptureInterval: number;
109
+ minFaceQualityScore: number;
110
+ faceOcclusionThreshold: number;
111
+ /**
112
+ * Milliseconds the C++ workflow waits after `onGetReady` fires before
113
+ * triggering autocapture. Mirrors V1's `getReadyDelay` (2000 ms) — without
114
+ * it, autocapture can fire on the first quality-passing frame, before the
115
+ * front camera has finished locking focus, producing blurry captures that
116
+ * the on-device quality model rejects.
117
+ */
118
+ getReadyDelay: number;
119
+ /**
120
+ * Milliseconds over which face-detection results are aggregated before the
121
+ * autocapture decision. Mirrors V1's `framesAggregationInterval` (2000 ms).
122
+ */
123
+ framesAggregationInterval: number;
124
+ /**
125
+ * Minimum consecutive frames with a detected face required before
126
+ * autocapture can trigger. Mirrors V1's `minFramesWithFace` (3).
127
+ */
128
+ minFramesWithFace: number;
129
+ }
130
+ interface FaceAttributesThresholds {
131
+ headwearThreshold: number;
132
+ lensesThreshold: number;
133
+ closedEyesThreshold: number;
134
+ maskThreshold: number;
135
+ }
136
+ interface FaceChecksConfig {
137
+ lenses: boolean;
138
+ mask: boolean;
139
+ closedEyes: boolean;
140
+ headWear: boolean;
141
+ occlusion: boolean;
142
+ }
143
+ interface FaceData {
144
+ rect: {
145
+ x: number;
146
+ y: number;
147
+ width: number;
148
+ height: number;
149
+ };
150
+ rightEye: {
151
+ x: number;
152
+ y: number;
153
+ };
154
+ leftEye: {
155
+ x: number;
156
+ y: number;
157
+ };
158
+ noseTip: {
159
+ x: number;
160
+ y: number;
161
+ };
162
+ rightMouthCorner: {
163
+ x: number;
164
+ y: number;
165
+ };
166
+ leftMouthCorner: {
167
+ x: number;
168
+ y: number;
169
+ };
170
+ pitch: number;
171
+ yaw: number;
172
+ roll: number;
173
+ }
174
+ type FaceCoordinates = {
175
+ rightEyeX: number;
176
+ rightEyeY: number;
177
+ leftEyeX: number;
178
+ leftEyeY: number;
179
+ noseTipX: number;
180
+ noseTipY: number;
181
+ rightMouthX: number;
182
+ rightMouthY: number;
183
+ mouthX: number;
184
+ mouthY: number;
185
+ x: number;
186
+ y: number;
187
+ width: number;
188
+ height: number;
189
+ };
190
+ interface FaceDetectionCallbacks {
191
+ onFarAway?: () => void;
192
+ onTooClose?: () => void;
193
+ onTooManyFaces?: () => void;
194
+ onNoFace?: () => void;
195
+ onCapture?: (canvas: IncodeCanvas, faceCoordinates: FaceCoordinates) => void;
196
+ onGetReady?: () => void;
197
+ onGetReadyFinished?: () => void;
198
+ onCenterFace?: () => void;
199
+ onDark?: () => void;
200
+ onBlur?: () => void;
201
+ onFaceAngle?: () => void;
202
+ /**
203
+ * Fires on **every** processed frame that contains at least one detected
204
+ * face, with the freshly-computed face data (pitch/yaw/roll/landmarks).
205
+ *
206
+ * Use `onFaceData` when you need a dense per-frame signal for live UI
207
+ * feedback — e.g. the Personhood avatar that mirrors head pose. The
208
+ * default capture pipeline does not subscribe to this, so consumers
209
+ * that don't need per-frame data pay no cost.
210
+ *
211
+ * `frameSize` is the source frame's pixel dimensions. Optional so
212
+ * existing single-arg consumers keep working (TypeScript callback
213
+ * variance handles it). Personhood uses it to compute an
214
+ * orientation-invariant face-size ratio for distance-aware smoothing.
215
+ */
216
+ onFaceData?: (face: FaceData, frameSize?: {
217
+ width: number;
218
+ height: number;
219
+ }) => void;
220
+ onLenses?: () => void;
221
+ onMask?: () => void;
222
+ onEyesClosed?: () => void;
223
+ onHeadWear?: () => void;
224
+ onSwitchToManualCapture?: () => void;
225
+ onFaceOccluded?: () => void;
226
+ }
227
+ /**
228
+ * Capability interface for face detection and selfie capture.
229
+ * Extends the base ML provider capability with face-detection specific methods.
230
+ */
231
+ interface IFaceDetectionCapability extends IMLProviderCapability<FaceDetectionConfig> {
232
+ /**
233
+ * Sets callbacks for face detection events.
234
+ * @param callbacks - Object containing callback functions for various detection events
235
+ */
236
+ setCallbacks(callbacks: FaceDetectionCallbacks): void;
237
+ /**
238
+ * Sets position constraints for face detection.
239
+ * @param constraints - Bounding box constraints for valid face position
240
+ */
241
+ setPositionConstraints(constraints: FacePositionConstraints): void;
242
+ /**
243
+ * Sets detection thresholds for quality checks.
244
+ * @param thresholds - Threshold values for various quality metrics
245
+ */
246
+ setThresholds(thresholds: FaceDetectionThresholds): void;
247
+ /**
248
+ * Sets thresholds for face attribute detection.
249
+ * @param thresholds - Threshold values for attribute detection (headwear, lenses, etc.)
250
+ */
251
+ setAttributesThresholds(thresholds: FaceAttributesThresholds): void;
252
+ /**
253
+ * Enables or disables specific face checks.
254
+ * @param config - Configuration for which checks to enable
255
+ */
256
+ setChecksEnabled(config: FaceChecksConfig): void;
257
+ /**
258
+ * Sets video selfie mode.
259
+ * @param enabled - Whether to enable video selfie mode
260
+ */
261
+ setVideoSelfieMode(enabled: boolean): void;
262
+ /**
263
+ * Manually triggers the `onCapture` callback registered via
264
+ * `setCallbacks`, using the best-quality frame the provider has
265
+ * seen so far (or the most recent processed frame as a fallback).
266
+ * Used by callers that want to complete a capture flow without
267
+ * waiting for WASM's own autocapture criteria — e.g. Personhood's
268
+ * "complete with far-away face" path, where the user may be too
269
+ * small in frame for autocapture to ever fire but a verdict
270
+ * (likely lower-confidence) is still desired.
271
+ *
272
+ * No-op when no frame is available at all (camera hasn't produced
273
+ * a single decoded frame yet) or when no `onCapture` callback was
274
+ * registered.
275
+ */
276
+ forceCapture(): void;
277
+ /**
278
+ * Synchronous manual-capture entry point for the on-device selfie workflow.
279
+ * Runs the full on-device pipeline on a single canvas image and stages the
280
+ * results inside WASM for the next {@link postFaceResults} call. No-op for
281
+ * default (non-on-device) configurations; callers should guard with the
282
+ * `onDeviceFaceResultsSubmissionEnabled` flag.
283
+ */
284
+ processPhoto(canvas: HTMLCanvasElement): void;
285
+ /**
286
+ * POSTs the staged on-device face-results JSON to `/omni/add/face-results`.
287
+ * The C++ side encrypts the body via `SessionEncryptor` and routes through
288
+ * the WASM `WebClient`, so the SDK's WebClient must be initialized first
289
+ * (consumers calling this must configure `setup({ apiURL, wasm })`).
290
+ */
291
+ postFaceResults(config?: WebApiHostRequestConfig): Promise<unknown>;
292
+ }
293
+ //#endregion
294
+ //#region ../infra/src/avatar/faceFeed.d.ts
295
+ /**
296
+ * A tiny per-frame pub/sub channel for the Incode WASM pipeline's `FaceData`.
297
+ *
298
+ * The parked `incode-2d` avatar drives the cosmetic avatar from the **existing** Incode face-detection
299
+ * pipeline (no second MediaPipe model). The detection pipeline lives in core's
300
+ * detection actor, while the avatar lives in the avatar actor — so the avatar is
301
+ * *fed* `FaceData` through this channel rather than running its own model.
302
+ *
303
+ * Deliberately NOT routed through XState events/context: the pipeline emits
304
+ * ~10×/s, and assigning that into context would re-run `mapState` and notify all
305
+ * manager subscribers 10×/s — needless churn that could itself regress UI perf.
306
+ * The feed is a plain emitter passed as input to both actors (detection
307
+ * publishes, the avatar source subscribes); nothing else observes it.
308
+ *
309
+ * Strictly read-only w.r.t. the authoritative pipeline — the feed only forwards
310
+ * data the pipeline already computed; it never influences detection/autocapture.
311
+ */
312
+ interface FaceFeedReader {
313
+ /** Subscribe to per-frame faces. Returns an unsubscribe function. */
314
+ subscribe(listener: (face: FaceData) => void): () => void;
315
+ /** The most recently published face, or null if none yet. */
316
+ getLatest(): FaceData | null;
317
+ /**
318
+ * Subscribe to the coarse "eyes closed" pulse — the only real eye signal the
319
+ * Incode pipeline exposes (a threshold event, both eyes, fired only when the
320
+ * closed-eyes check is enabled via `validateClosedEyes`). The avatar uses it
321
+ * to drive a real blink. Returns an unsubscribe function.
322
+ */
323
+ onEyesClosed(listener: () => void): () => void;
324
+ }
325
+ interface FaceFeed extends FaceFeedReader {
326
+ publish(face: FaceData): void;
327
+ /** Fire the eyes-closed pulse (from the detection pipeline's threshold event). */
328
+ signalEyesClosed(): void;
329
+ }
330
+ //#endregion
331
+ //#region ../infra/src/capabilities/IFaceAvatarCapability.d.ts
332
+ /**
333
+ * Caller-supplied overrides. Any omitted field falls back to the default
334
+ * CDN layout (see `avatar/avatarDefaults.ts`). `basePath`/`version` rewrite
335
+ * the whole directory; the individual `*Path` fields win over both.
336
+ */
337
+ interface AvatarAssetsOverrides {
338
+ basePath?: string;
339
+ version?: string;
340
+ mediapipeModulePath?: string;
341
+ mediapipeWasmPath?: string;
342
+ faceLandmarkerModelPath?: string;
343
+ vrmModelPath?: string;
344
+ }
345
+ /**
346
+ * Verdict cue an avatar can reflect: `detecting` (working) / `success` / `error`.
347
+ * Pose-driven 2D avatars colour the face accordingly (green wink / red frown);
348
+ * avatars without a verdict visual (VRM, privacy-lens) treat `setState` as a no-op.
349
+ * Driven by the host module (selfie capture outcome, personhood verdict).
350
+ */
351
+ type AvatarFaceState = 'detecting' | 'success' | 'error';
352
+ //#endregion
353
+ //#region src/internal/avatar/createFaceAvatar.d.ts
354
+ /**
355
+ * Shared face-avatar dispatch — the single code path BOTH the selfie module
356
+ * (`faceCapture` runAvatar actor) and the public `@incodetech/core/avatar` facade
357
+ * use, so every camera module mounts avatars the same way. Lives in `internal/`
358
+ * (not `modules/`) because `internal/` may not import from `modules/`; the public
359
+ * `modules/avatar` entry is a thin re-export of this. See
360
+ * docs/features/FACE_AVATAR.md.
361
+ *
362
+ * Public catalog of shippable face avatars. Each id maps to a lazily-loaded
363
+ * provider, so a module only pays the bundle cost of the avatar it picks:
364
+ * - `avatar-3d` → 3D VRM character, MediaPipe-tracked (premium look).
365
+ * - `avatar-2d` → stylized 2D "satin" face, MediaPipe-tracked. Also the
366
+ * personhood avatar.
367
+ * - `privacy-lens` → WebGL frosted-glass lens over the real video (no tracking).
368
+ *
369
+ * (The Incode-data 2D avatar is parked — kept in infra, not in the public
370
+ * catalog. See docs/features/FACE_AVATAR.md → Parked: the Incode-data avatar.)
371
+ */
372
+ type AvatarId = 'avatar-3d' | 'avatar-2d' | 'privacy-lens';
373
+ interface FaceAvatarOptions {
374
+ /** Which avatar to render. */
375
+ variant: AvatarId;
376
+ /** The already-acquired camera stream (the host module owns it). */
377
+ stream: MediaStream;
378
+ /** Runtime asset overrides (MediaPipe wasm/model, VRM); defaults to the CDN layout. */
379
+ assets?: AvatarAssetsOverrides;
380
+ /** Upper bound on the avatar's internal detect/render loop (default 30). */
381
+ maxFps?: number;
382
+ /** Initial verdict cue; defaults to `detecting`. */
383
+ initialState?: AvatarFaceState;
384
+ }
385
+ interface FaceAvatarHandle {
386
+ /** The canvas to mount in place of the live video. */
387
+ readonly canvas: HTMLCanvasElement;
388
+ /** Push a verdict cue (no-op for avatars without a verdict visual). */
389
+ setState(state: AvatarFaceState): void;
390
+ /** Tear down the loop, model and hidden decode video. */
391
+ stop(): void;
392
+ }
393
+ /**
394
+ * Mounts a cosmetic face avatar: lazy-loads the chosen provider, starts it on the
395
+ * given stream, and returns a handle to mount the canvas + push verdict cues. The
396
+ * avatar is **cosmetic-only** — it never feeds the authoritative
397
+ * detection/quality/liveness/upload pipeline.
398
+ */
399
+ declare function createFaceAvatar(options: FaceAvatarOptions): Promise<FaceAvatarHandle>;
400
+ //#endregion
401
+ export { MLProviderConfig as _, AvatarAssetsOverrides as a, FaceAttributesThresholds as c, FaceDetectionCallbacks as d, FaceDetectionConfig as f, IMLProviderCapability as g, IFaceDetectionCapability as h, createFaceAvatar as i, FaceChecksConfig as l, FacePositionConstraints as m, FaceAvatarHandle as n, AvatarFaceState as o, FaceDetectionThresholds as p, FaceAvatarOptions as r, FaceFeed as s, AvatarId as t, FaceCoordinates as u, WebApiHostRequestConfig as v };
@@ -0,0 +1,46 @@
1
+ //#region src/internal/avatar/createFaceAvatar.ts
2
+ /** Lazy-load the provider for an avatar id (each lands in its own chunk). */
3
+ async function loadProvider(variant) {
4
+ switch (variant) {
5
+ case "avatar-3d": return (await import("./3dAvatarProvider-ChciZmjE.esm.js")).createProvider();
6
+ case "avatar-2d": return (await import("./Face2DProvider-BeLlYBbB.esm.js")).createProvider();
7
+ case "privacy-lens": return (await import("./PrivacyLensProvider-hDzaDzZ6.esm.js")).createProvider();
8
+ default: {
9
+ const exhaustive = variant;
10
+ throw new Error(`Unknown avatar variant: ${String(exhaustive)}`);
11
+ }
12
+ }
13
+ }
14
+ /**
15
+ * Mounts a cosmetic face avatar: lazy-loads the chosen provider, starts it on the
16
+ * given stream, and returns a handle to mount the canvas + push verdict cues. The
17
+ * avatar is **cosmetic-only** — it never feeds the authoritative
18
+ * detection/quality/liveness/upload pipeline.
19
+ */
20
+ async function createFaceAvatar(options) {
21
+ const provider = await loadProvider(options.variant);
22
+ try {
23
+ await provider.start(options.stream, {
24
+ assets: options.assets,
25
+ maxFps: options.maxFps
26
+ });
27
+ if (options.initialState) provider.setState?.(options.initialState);
28
+ } catch (error) {
29
+ provider.stop();
30
+ throw error;
31
+ }
32
+ return {
33
+ get canvas() {
34
+ return provider.getCanvas();
35
+ },
36
+ setState(state) {
37
+ provider.setState?.(state);
38
+ },
39
+ stop() {
40
+ provider.stop();
41
+ }
42
+ };
43
+ }
44
+
45
+ //#endregion
46
+ export { createFaceAvatar as t };
@@ -1,4 +1,5 @@
1
- import { t as Manager } from "./Manager-BHn8wH8K.js";
1
+ import "./StateMachine-C_AY4cs7.js";
2
+ import { t as Manager } from "./Manager-CJ3G2zqi.js";
2
3
 
3
4
  //#region src/modules/cross-document-data-match/crossDocumentDataMatchManager.d.ts
4
5
  type CrossDocumentDataMatchIdleState = {
@@ -1,8 +1,9 @@
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, s as createActor, t as setup } from "./xstate.esm-C9wncMQa.esm.js";
5
- import { t as sleep } from "./ITimerCapability-CB0I1Uf2.esm.js";
1
+ import { t as api } from "./api-DsbUi7TO.esm.js";
2
+ import { n as createManagerInstrumentation } 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, s as createActor, t as setup } from "./xstate.esm-Bomq1a0z.esm.js";
6
+ import { t as sleep } from "./ITimerCapability-pltuG1E8.esm.js";
6
7
 
7
8
  //#region src/modules/cross-document-data-match/crossDocumentDataMatchServices.ts
8
9
  /** Minimum spinner duration (ms), aligned with SDK v1 `ProcessCrossDocumentData`. */
@@ -1,10 +1,13 @@
1
- import "./Manager-BHn8wH8K.js";
2
- import "./Actor-Y0_Fj-KL.js";
3
- import "./camera-SRBpPq2X.js";
4
- import "./types-Bj9hdFjU.js";
5
- import "./types-DvGZI7BF.js";
6
- import "./types-DOUhndhT.js";
7
- import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-RttixpIc.js";
1
+ import "./StateMachine-C_AY4cs7.js";
2
+ import "./Manager-CJ3G2zqi.js";
3
+ import "./Actor-CGEelYtQ.js";
4
+ import "./camera-CNVUo-bC.js";
5
+ import "./types-DgGlgyZT.js";
6
+ import "./types-D_IceWxT.js";
7
+ import "./canvas-CJUmoXSD.js";
8
+ import "./createFaceAvatar-B8pFpy6o.js";
9
+ import "./types-BsYXnC5s.js";
10
+ import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-Co6LZAHT.js";
8
11
 
9
12
  //#region src/modules/curp-validation/curpValidationUtils.d.ts
10
13
  type MexicanState = {
@@ -1,8 +1,9 @@
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 { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-B7V_qp66.esm.js";
6
- import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-CFem6zP9.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 { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-DXTPK6vI.esm.js";
7
+ import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-BafobPXC.esm.js";
7
8
 
8
9
  export { ENTER_CURP_FIELD, GENERATE_CURP_FIELDS, createCurpValidationManager, createCurpValidationManagerFromActor, curpValidationMachine, mexicanStates };
@@ -1,6 +1,7 @@
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 curpValidationMachine } from "./curpValidationStateMachine-B7V_qp66.esm.js";
1
+ import { n as createManagerInstrumentation, t as topLevelStateName } 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 curpValidationMachine } from "./curpValidationStateMachine-DXTPK6vI.esm.js";
4
5
 
5
6
  //#region src/modules/curp-validation/curpValidationActor.ts
6
7
  function createCurpValidationActor(options) {
@@ -10,6 +11,52 @@ function createCurpValidationActor(options) {
10
11
  //#endregion
11
12
  //#region src/modules/curp-validation/curpValidationManager.ts
12
13
  const hasNoErrors = (errors) => Object.keys(errors ?? {}).length === 0;
14
+ /**
15
+ * Maps a CURP-validation state-machine snapshot to the exact Figma "Tracked
16
+ * Events" screen name. Returned strings are the Figma-verbatim absolute
17
+ * analytics path (module prefix included), emitted as-is on `event.screen`
18
+ * by `createManagerInstrumentation`'s `getEventScreenName` path. See
19
+ * `docs/patterns/INSTRUMENTATION.md`.
20
+ *
21
+ * Source of truth: CURP Figma file → Tracked Events canvas
22
+ * (`https://www.figma.com/design/YFYCUUSIxLV6I8jnwWgWDW/CURP---In-Prod?node-id=2786-8314`).
23
+ * The Figma sections name the analytics family as `CURP.EnterCURP.*` (verify
24
+ * path) and `CURP.Gene.*` (generate path), with `CURP` as the module token.
25
+ *
26
+ * Figma screens that have no dedicated state-machine counterpart yet
27
+ * (intentionally not mapped here — they collapse into the section's primary
28
+ * screen until the SM surfaces them):
29
+ *
30
+ * - `CURP.EnterCURP.filled` — UI sub-state of `enterCurp.inputting` (input
31
+ * has a valid value but submit hasn't been pressed yet).
32
+ * - `CURP.EnterCURP.error` — UI inline validation error on `enterCurp`.
33
+ * - `CURP.Gene.dropdwon` (sic — Figma typo for "dropdown") and
34
+ * `CURP.Gene.filled` — UI sub-states of `generateCurp.inputting`.
35
+ *
36
+ * `finished` is mapped to `CURP.EnterCURP.Verified` to keep the user on the
37
+ * last visible Figma success screen (the happy-path destination), preventing
38
+ * the adapter from falling back to the generic `<module>.finished` default.
39
+ * `closed` is intentionally left unmapped (terminal user-dismissed state —
40
+ * handled by `moduleClosed`).
41
+ */
42
+ function getCurpValidationScreenName(snapshot) {
43
+ const stateName = topLevelStateName(snapshot.value);
44
+ if (stateName === void 0) return void 0;
45
+ switch (stateName) {
46
+ case "idle":
47
+ case "enterCurp": return "CURP.EnterCURP.default";
48
+ case "loading": return "CURP.EnterCURP.processing";
49
+ case "verifying": return "CURP.EnterCURP.verifying";
50
+ case "success":
51
+ case "finished": return "CURP.EnterCURP.Verified";
52
+ case "failure": return "CURP.EnterCURP.notVerify";
53
+ case "generateCurp": return "CURP.Gene.default";
54
+ case "generating": return "CURP.Gene.generating";
55
+ case "confirmCurp": return "CURP.Gene.confirm";
56
+ case "generateError": return "CURP.Gene.error";
57
+ default: return;
58
+ }
59
+ }
13
60
  function mapState(snapshot) {
14
61
  const typedSnapshot = snapshot;
15
62
  const { context } = typedSnapshot;
@@ -101,7 +148,7 @@ function createCurpValidationManager(options) {
101
148
  actor: createCurpValidationActor(options),
102
149
  mapState,
103
150
  createApi,
104
- instrumentation: createManagerInstrumentation(eventModuleNames.curpValidation)
151
+ instrumentation: createManagerInstrumentation(eventModuleNames.curpValidation, { getEventScreenName: getCurpValidationScreenName })
105
152
  });
106
153
  }
107
154
  /**
@@ -114,7 +161,7 @@ function createCurpValidationManagerFromActor(actor) {
114
161
  actor,
115
162
  mapState,
116
163
  createApi,
117
- instrumentation: createManagerInstrumentation(eventModuleNames.curpValidation)
164
+ instrumentation: createManagerInstrumentation(eventModuleNames.curpValidation, { getEventScreenName: getCurpValidationScreenName })
118
165
  });
119
166
  }
120
167
 
@@ -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 { i as FlowModuleConfig } from "./types-DOUhndhT.js";
1
+ import { t as Manager } from "./Manager-CJ3G2zqi.js";
2
+ import { t as ActorRefFrom } from "./Actor-CGEelYtQ.js";
3
+ import { i as FlowModuleConfig } from "./types-BsYXnC5s.js";
4
4
 
5
5
  //#region src/modules/curp-validation/types.d.ts
6
6
  type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
@@ -72,6 +72,7 @@ type CreateCurpValidationActorOptions = {
72
72
  type CurpValidationActor = ActorRefFrom<CurpValidationMachine>;
73
73
  //#endregion
74
74
  //#region src/modules/curp-validation/curpValidationManager.d.ts
75
+
75
76
  type CurpValidationIdleState = {
76
77
  status: 'idle';
77
78
  };
@@ -1,6 +1,6 @@
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";
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
4
 
5
5
  //#region src/modules/curp-validation/curpValidationUtils.ts
6
6
  const CURP_PATTERN = /^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HMX](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/;
@@ -1,5 +1,6 @@
1
- import { t as Manager } from "./Manager-BHn8wH8K.js";
2
- import "./Actor-Y0_Fj-KL.js";
1
+ import "./StateMachine-C_AY4cs7.js";
2
+ import { t as Manager } from "./Manager-CJ3G2zqi.js";
3
+ import "./Actor-CGEelYtQ.js";
3
4
 
4
5
  //#region src/modules/custom-fields/types.d.ts
5
6
  type CustomFieldType = 'INTEGER' | 'DOUBLE' | 'BOOLEAN' | 'STRING' | 'DATE';
@@ -23,6 +24,7 @@ type CreateCustomFieldsActorOptions = {
23
24
  };
24
25
  //#endregion
25
26
  //#region src/modules/custom-fields/customFieldsManager.d.ts
27
+
26
28
  /**
27
29
  * A `CustomField` enriched with a computed `label` for display.
28
30
  * Label is derived from `alias` when present, otherwise auto-formatted from `name`.