@incodetech/core 0.0.0-dev-20260715-b208c5e1 → 0.0.0-dev-20260715-dcc78bcd

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 (282) hide show
  1. package/dist/{3dAvatarProvider-BYxFCuIv.esm.js → 3dAvatarProvider-D9H4rR6_.esm.js} +811 -880
  2. package/dist/Actor-iTq7YY48.d.ts +1 -0
  3. package/dist/{BrowserStorageProvider-CBXGCHnK.esm.js → BrowserStorageProvider-P6aUarE9.esm.js} +1 -2
  4. package/dist/{BrowserTimerProvider-CHloo0eQ.esm.js → BrowserTimerProvider-BXhgNxLt.esm.js} +1 -2
  5. package/dist/{BrowserVisibilityObserverProvider-B04zvOXW.esm.js → BrowserVisibilityObserverProvider-sJclps4C.esm.js} +1 -3
  6. package/dist/{Face2DProvider-TeN1Xqr0.esm.js → Face2DProvider-xWUeSJZI.esm.js} +10 -22
  7. package/dist/{createFaceAvatar-BjBu2CrU.d.ts → FaceDetectionProvider-BHweGBEM.d.ts} +108 -159
  8. package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +23 -0
  9. package/dist/IStorageCapability-B8IGxCwe.d.ts +131 -0
  10. package/dist/{ITimerCapability-G7lQg-be.esm.js → ITimerCapability-DgdDzp8G.esm.js} +1 -2
  11. package/dist/{Manager-DE5DydXZ.d.ts → Manager-CQQ99QOI.d.ts} +1 -0
  12. package/dist/{MotionSensorProvider-BkHKMCPE.esm.js → MotionSensorProvider-DYvM90IX.esm.js} +1 -2
  13. package/dist/{OpenViduRecordingProvider-xR5osKzW.esm.js → OpenViduRecordingProvider-Du98qevC.esm.js} +2 -4
  14. package/dist/{PrivacyLensProvider-CqlsCaJv.esm.js → PrivacyLensProvider-BrYSd1dr.esm.js} +2 -5
  15. package/dist/StateMachine-EDpYWy0i.d.ts +6 -0
  16. package/dist/{StreamCanvasCapture-CRk7c7u7.esm.js → StreamCanvasCapture-D2XcXCZ4.esm.js} +2 -4
  17. package/dist/{WasmUtilProvider-BNQ2PBjG.esm.js → WasmUtilProvider-DAshwHhX.esm.js} +38 -71
  18. package/dist/{addressSearch-B2NxSpHl.esm.js → addressSearch-DH-IPF-w.esm.js} +10 -21
  19. package/dist/ae-signature.d.ts +2 -6
  20. package/dist/ae-signature.esm.js +10 -11
  21. package/dist/antifraud.d.ts +1 -6
  22. package/dist/antifraud.esm.js +3 -8
  23. package/dist/{antifraudManager-C490m0p4.d.ts → antifraudManager-BY36bS12.d.ts} +3 -3
  24. package/dist/{antifraudManager-C1xnhF2Q.esm.js → antifraudManager-CL2YhiVX.esm.js} +11 -8
  25. package/dist/{antifraudStateMachine-BQVw46N5.esm.js → antifraudStateMachine-Bf-IiCq7.esm.js} +5 -7
  26. package/dist/{api-DsbUi7TO.esm.js → api-BDTZNnca.esm.js} +1 -2
  27. package/dist/{apiError-DkOXfFBu.esm.js → apiError-COvIGYWe.esm.js} +1 -2
  28. package/dist/authentication.d.ts +2 -19
  29. package/dist/authentication.esm.js +3 -34
  30. package/dist/{authenticationManager-DZXQpCjQ.esm.js → authenticationManager-DM7ttL5V.esm.js} +7 -10
  31. package/dist/{authenticationManager-BD81fnrn.d.ts → authenticationManager-G-k-13Fe.d.ts} +3 -4
  32. package/dist/{authenticationStateMachine-CJrTbLWU.esm.js → authenticationStateMachine-DiI8jfmO.esm.js} +11 -15
  33. package/dist/avatar.d.ts +2 -2
  34. package/dist/avatar.esm.js +2 -3
  35. package/dist/{backCameraStream-DYnfq7Hr.esm.js → backCameraStream-Heg6vA1j.esm.js} +4 -7
  36. package/dist/browser-DlFgHpoC-DnyrCR8r.esm.js +1513 -0
  37. package/dist/callback-645_omgz.d.ts +133 -0
  38. package/dist/{camera-B0yWS33x.esm.js → camera-BmFEyPP_.esm.js} +1 -2
  39. package/dist/camera.d.ts +1 -2
  40. package/dist/camera.esm.js +2 -6
  41. package/dist/{canvas-DsJa51yU.esm.js → canvas-E1zGkel4.esm.js} +1 -2
  42. package/dist/certificate-issuance.d.ts +34 -39
  43. package/dist/certificate-issuance.esm.js +4 -11
  44. package/dist/{certificateIssuanceStateMachine-CpewPqas.esm.js → certificateIssuanceStateMachine-Ce568YfR.esm.js} +7 -11
  45. package/dist/{clientLifecycle-CCJMDjFe.esm.js → clientLifecycle-DzT65Fvf.esm.js} +23 -29
  46. package/dist/consent.d.ts +1 -4
  47. package/dist/consent.esm.js +3 -8
  48. package/dist/{consentManager-r4MTIoV3.esm.js → consentManager-D3GyyH5u.esm.js} +5 -7
  49. package/dist/{consentManager-QGuw4zmH.d.ts → consentManager-DLOyIZzt.d.ts} +58 -64
  50. package/dist/{consentStateMachine-DnqwsZ7o.esm.js → consentStateMachine-Pc3Ez3mV.esm.js} +5 -7
  51. package/dist/{cpf-B9htWzDt.esm.js → cpf-BIADjddF.esm.js} +1 -2
  52. package/dist/cpf-ocr.d.ts +1 -5
  53. package/dist/cpf-ocr.esm.js +2 -8
  54. package/dist/{cpfOcrManager-RkeZCqSz.d.ts → cpfOcrManager-CQkUAeWO.d.ts} +21 -23
  55. package/dist/{cpfOcrManager-D6ZQ9kkv.esm.js → cpfOcrManager-Cwm0MesJ.esm.js} +7 -12
  56. package/dist/createFaceAvatar-BEj18KXi.d.ts +50 -0
  57. package/dist/{createFaceAvatar-B_v2At2h.esm.js → createFaceAvatar-CwVapQiu.esm.js} +5 -9
  58. package/dist/cross-document-data-match.d.ts +1 -5
  59. package/dist/cross-document-data-match.esm.js +2 -8
  60. package/dist/{crossDocumentDataMatchManager-DoFG_S91.esm.js → crossDocumentDataMatchManager-9rdIO8Qk.esm.js} +12 -12
  61. package/dist/{crossDocumentDataMatchManager-CdiqxhJm.d.ts → crossDocumentDataMatchManager-Dq8Z3SOg.d.ts} +3 -3
  62. package/dist/curp-validation.d.ts +1 -11
  63. package/dist/curp-validation.esm.js +3 -8
  64. package/dist/{curpValidationManager-07oV78Bn.d.ts → curpValidationManager--HSBTwOy.d.ts} +4 -6
  65. package/dist/{curpValidationManager-D6jt1Gs9.esm.js → curpValidationManager-C2i9Lzx9.esm.js} +11 -7
  66. package/dist/{curpValidationStateMachine-Dlw4qfFb.esm.js → curpValidationStateMachine-7i3TD8J2.esm.js} +22 -14
  67. package/dist/custom-fields.d.ts +2 -5
  68. package/dist/custom-fields.esm.js +24 -11
  69. package/dist/custom-watchlist.d.ts +1 -3
  70. package/dist/custom-watchlist.esm.js +11 -10
  71. package/dist/{customWatchlistStateMachine-D8w0mNxm.esm.js → customWatchlistStateMachine-D23XTxl2.esm.js} +5 -7
  72. package/dist/{dateUtils-BW6mBV6p.esm.js → dateUtils-CvG0FvK8.esm.js} +1 -2
  73. package/dist/{deepsightService-CV1NAkg9.esm.js → deepsightLoader-CQWGVLP0.esm.js} +62 -14
  74. package/dist/deepsightService-CR-CYdka.d.ts +218 -0
  75. package/dist/device.d.ts +0 -1
  76. package/dist/device.esm.js +5 -10
  77. package/dist/document-capture.d.ts +1 -6
  78. package/dist/document-capture.esm.js +3 -16
  79. package/dist/document-upload.d.ts +48 -55
  80. package/dist/document-upload.esm.js +8 -14
  81. package/dist/{documentCaptureManager-HNu28khr.d.ts → documentCaptureManager-Biz_PFqs.d.ts} +190 -199
  82. package/dist/{documentCaptureManager-pufyUaQz.esm.js → documentCaptureManager-DijbJFun.esm.js} +5 -7
  83. package/dist/{documentCaptureStateMachine-CaJgb_Vn.esm.js → documentCaptureStateMachine-qgsrlcVh.esm.js} +11 -15
  84. package/dist/dynamic-forms.d.ts +1 -4
  85. package/dist/dynamic-forms.esm.js +3 -10
  86. package/dist/{dynamicFormsManager-C3jlNlWK.esm.js → dynamicFormsManager-COik5bJ7.esm.js} +41 -7
  87. package/dist/{dynamicFormsManager-HQhUJCLg.d.ts → dynamicFormsManager-Dposae2l.d.ts} +3 -4
  88. package/dist/{dynamicFormsStateMachine-DdpJI6ne.esm.js → dynamicFormsStateMachine-BV-Fn13x.esm.js} +7 -11
  89. package/dist/ekyb.d.ts +4 -11
  90. package/dist/ekyb.esm.js +3 -20
  91. package/dist/{ekybManager-l67BnqxH.esm.js → ekybManager-BTcW4poN.esm.js} +17 -7
  92. package/dist/{ekybManager-CZUVEWMw.d.ts → ekybManager-CBX0tM04.d.ts} +4 -5
  93. package/dist/{ekybStateMachine-BmfNaHRF.esm.js → ekybStateMachine-DmZLm35R.esm.js} +16 -25
  94. package/dist/ekyc.d.ts +2 -7
  95. package/dist/ekyc.esm.js +3 -11
  96. package/dist/{ekycManager-ClRqj2rg.d.ts → ekycManager-BFpHbBoT.d.ts} +4 -5
  97. package/dist/{ekycManager-B_uUa1iN.esm.js → ekycManager-BSMlIpGA.esm.js} +14 -7
  98. package/dist/{ekycStateMachine-BD8GjdL5.esm.js → ekycStateMachine-a7oP-XWo.esm.js} +140 -201
  99. package/dist/electronic-signature.d.ts +2 -5
  100. package/dist/electronic-signature.esm.js +2 -10
  101. package/dist/{electronicSignatureManager-CzMj-Tjm.esm.js → electronicSignatureManager-DSZu9OHT.esm.js} +9 -14
  102. package/dist/email.d.ts +1 -5
  103. package/dist/email.esm.js +3 -10
  104. package/dist/{emailManager-Lv9BHgel.d.ts → emailManager-CADXW_9X.d.ts} +4 -7
  105. package/dist/{emailManager-BsynjdWX.esm.js → emailManager-c-mDLieD.esm.js} +76 -12
  106. package/dist/{emailStateMachine-Z-Jf4qOc.esm.js → emailStateMachine-ChNwY22u.esm.js} +7 -9
  107. package/dist/{endpoints-CwrFQfW7.esm.js → endpoints-DLQ0g4-R.esm.js} +33 -2
  108. package/dist/{events-aeCkGlnn.esm.js → events-Dy8PyVO5.esm.js} +4 -168
  109. package/dist/events.d.ts +1 -9
  110. package/dist/events.esm.js +2 -4
  111. package/dist/extensibility.d.ts +30 -42
  112. package/dist/extensibility.esm.js +29 -87
  113. package/dist/{externalFetch-hvmz_npP.esm.js → externalFetch-BKBThAUC.esm.js} +2 -4
  114. package/dist/face-match.d.ts +1 -5
  115. package/dist/face-match.esm.js +3 -8
  116. package/dist/{faceCaptureManagerFactory-CGFQg1kl.d.ts → faceCaptureManagerFactory-BWD3O4Eg.d.ts} +50 -14
  117. package/dist/{faceCaptureManagerFactory-BIH53wvb.esm.js → faceCaptureManagerFactory-CZLSziU3.esm.js} +49 -28
  118. package/dist/{faceCaptureSetup-shrwrZaK.esm.js → faceCaptureSetup-__lVldUG.esm.js} +12 -15
  119. package/dist/{faceMatchManager-BrNYVk-p.esm.js → faceMatchManager-B7jlv77Q.esm.js} +24 -7
  120. package/dist/{faceMatchManager-X2eQo0o-.d.ts → faceMatchManager-CJQG1W1u.d.ts} +4 -4
  121. package/dist/{faceMatchStateMachine-CbeacEqd.esm.js → faceMatchStateMachine-DD7FxtUj.esm.js} +6 -9
  122. package/dist/field-comparison.d.ts +1 -4
  123. package/dist/field-comparison.esm.js +2 -7
  124. package/dist/{fieldComparisonManager-BxhleGNI.esm.js → fieldComparisonManager-5LlxYad-.esm.js} +6 -11
  125. package/dist/{fieldComparisonManager-Dg03uIX1.d.ts → fieldComparisonManager-CBvEGxFx.d.ts} +3 -5
  126. package/dist/fiscal-qr.d.ts +1 -6
  127. package/dist/fiscal-qr.esm.js +14 -29
  128. package/dist/flow-events.d.ts +2 -9
  129. package/dist/flow.d.ts +13 -19
  130. package/dist/flow.esm.js +109 -34
  131. package/dist/{flowCompletionService-qf-s8Uxl.esm.js → flowCompletionService-DQSC7Kso.esm.js} +4 -6
  132. package/dist/{flowServices-CJXaWFlZ.esm.js → flowServices-BQEUaMg6.esm.js} +10 -11
  133. package/dist/geolocation.d.ts +1 -4
  134. package/dist/geolocation.esm.js +3 -9
  135. package/dist/{geolocationManager-CAtyY00b.d.ts → geolocationManager-BWhRzBjk.d.ts} +3 -4
  136. package/dist/{geolocationManager-4j_DV3jW.esm.js → geolocationManager-D58ehBHU.esm.js} +19 -8
  137. package/dist/{geolocationStateMachine-BE72KBAX.esm.js → geolocationStateMachine-BorcBNZ6.esm.js} +6 -8
  138. package/dist/getBrowser-Cb8Zgrgp.esm.js +7 -0
  139. package/dist/{getDeviceClass-BdgmyOOu.esm.js → getDeviceClass-CeBiEayS.esm.js} +1 -2
  140. package/dist/{getDeviceClass-DsNb6nEl.esm.js → getDeviceClass-CkgnSJel.esm.js} +3 -5
  141. package/dist/{getBrowser-CZ66VtC7.esm.js → getParsedUserAgent-pJjATANs.esm.js} +109 -30
  142. package/dist/government-validation.d.ts +3 -6
  143. package/dist/government-validation.esm.js +7 -13
  144. package/dist/{governmentValidationStateMachine-BfZ_WQC0.esm.js → governmentValidationStateMachine-DkakcwTj.esm.js} +8 -11
  145. package/dist/home.d.ts +14 -22
  146. package/dist/home.esm.js +3 -8
  147. package/dist/http.d.ts +0 -1
  148. package/dist/http.esm.js +2 -4
  149. package/dist/id-ocr.d.ts +1 -5
  150. package/dist/id-ocr.esm.js +3 -9
  151. package/dist/id-verification.d.ts +1 -4
  152. package/dist/id-verification.esm.js +3 -8
  153. package/dist/id.d.ts +105 -18
  154. package/dist/id.esm.js +40 -50
  155. package/dist/{idCaptureDefaults-Df8XKQ0o.esm.js → idCaptureDefaults-Dzfws4i0.esm.js} +9 -16
  156. package/dist/{idCaptureManager-Fr9c67Rx.esm.js → idCaptureManager-BGAdNNVq.esm.js} +117 -23
  157. package/dist/{idCaptureManager-BXG8kVMW.d.ts → idCaptureManager-CSGbGORT.d.ts} +12 -113
  158. package/dist/{idCaptureStateMachine-CpjwdaYN.esm.js → idCaptureStateMachine-DYgckwCg.esm.js} +56 -195
  159. package/dist/{idOcrManager-DLF3J2cx.esm.js → idOcrManager-niAg-BE0.esm.js} +4 -7
  160. package/dist/{idOcrManager-DnhdGuVX.d.ts → idOcrManager-vXa7GdRh.d.ts} +60 -66
  161. package/dist/{idOcrStateMachine-BPXTUjNY.esm.js → idOcrStateMachine-CpZZL411.esm.js} +13 -18
  162. package/dist/{idVerificationManager-BD2FO09A.d.ts → idVerificationManager-BB4Pj_N6.d.ts} +31 -35
  163. package/dist/{idVerificationManager-23kPMn7T.esm.js → idVerificationManager-CujJqsiX.esm.js} +4 -7
  164. package/dist/{idVerificationStateMachine-C1eMEu_Y.esm.js → idVerificationStateMachine-D-1GlgC5.esm.js} +5 -7
  165. package/dist/identity-reuse.d.ts +1 -4
  166. package/dist/identity-reuse.esm.js +3 -8
  167. package/dist/{identityReuseManager-Ct-9qYpC.esm.js → identityReuseManager-DHfJZTVo.esm.js} +24 -7
  168. package/dist/{identityReuseManager-DOufEjLa.d.ts → identityReuseManager-aTyLyYrr.d.ts} +38 -43
  169. package/dist/{identityReuseStateMachine-Cqc-NwEQ.esm.js → identityReuseStateMachine-CM45EBrb.esm.js} +6 -8
  170. package/dist/index-B8weJxmL.d.ts +1 -0
  171. package/dist/index-BKOWUhxG.d.ts +258 -0
  172. package/dist/{index-WMHgnbC1.d.ts → index-CKbmDFNq.d.ts} +160 -165
  173. package/dist/{index-Bk5nhSg2.d.ts → index-DQ2fdqoI.d.ts} +3 -3
  174. package/dist/index.d.ts +1 -3
  175. package/dist/index.esm.js +2 -15
  176. package/dist/{invokeOnCaptureCallback-Bs09kdY_.esm.js → invokeOnCaptureCallback-B-QfsCQY.esm.js} +2 -4
  177. package/dist/{lib-DvZ6nVvW.esm.js → lib-DAyUtOTj.esm.js} +1510 -1589
  178. package/dist/mandatory-consent.d.ts +1 -10
  179. package/dist/mandatory-consent.esm.js +3 -8
  180. package/dist/{mandatoryConsentManager-D0qQHcl2.d.ts → mandatoryConsentManager-BlB4bX6_.d.ts} +59 -65
  181. package/dist/{mandatoryConsentManager-Bh_n0uEP.esm.js → mandatoryConsentManager-CQC-zA4P.esm.js} +4 -7
  182. package/dist/{mandatoryConsentStateMachine-DYeKH1L7.esm.js → mandatoryConsentStateMachine-BN4Obfl7.esm.js} +5 -7
  183. package/dist/{mediaRecorderOptions-BIn657lu.esm.js → mediaRecorderOptions-BhSZDDNb.esm.js} +2 -4
  184. package/dist/{mediapipeShared-B-RiRyLN.esm.js → mediapipeShared-B0iQQ5k7.esm.js} +2 -6
  185. package/dist/{onDeviceFaceResults-CJuDp67S.esm.js → onDeviceFaceResults-LRTvBL7m.esm.js} +18 -84
  186. package/dist/openviduLazy-CCDpFWg1.esm.js +10 -0
  187. package/dist/{otp-D_9QPNbs.d.ts → otp-CEWfTj9v.d.ts} +0 -1
  188. package/dist/{otp-Bbe_izFJ.esm.js → otp-D2k3PeSL.esm.js} +3 -14
  189. package/dist/{permissionGuards-CayfS8OY.esm.js → permissionGuards-DguX5vFY.esm.js} +2 -4
  190. package/dist/{permissionServices-B7lD6fiG.esm.js → permissionServices-DwNCUB2I.esm.js} +4 -9
  191. package/dist/personhood.d.ts +13 -20
  192. package/dist/personhood.esm.js +153 -72
  193. package/dist/phone.d.ts +1 -5
  194. package/dist/phone.esm.js +3 -10
  195. package/dist/{phoneManager-85eRUhJD.d.ts → phoneManager-BBU8Lq0O.d.ts} +4 -7
  196. package/dist/{phoneManager-Byive8Xl.esm.js → phoneManager-KbcmjEeH.esm.js} +82 -12
  197. package/dist/{phoneStateMachine-BlYF4nKx.esm.js → phoneStateMachine-wDQtaT38.esm.js} +7 -9
  198. package/dist/{platform-BoeUeUrV.esm.js → platform-wmV7oTAJ.esm.js} +1 -9
  199. package/dist/qe-signature.d.ts +2 -6
  200. package/dist/qe-signature.esm.js +10 -11
  201. package/dist/{recordingService-BzQUrf40.esm.js → recordingService-TuBlOjvH.esm.js} +15 -19
  202. package/dist/redirect-to-mobile.d.ts +1 -6
  203. package/dist/redirect-to-mobile.esm.js +3 -10
  204. package/dist/{redirectToMobileManager-DrxIfZr8.esm.js → redirectToMobileManager-EGXGKftv.esm.js} +25 -8
  205. package/dist/{redirectToMobileManager-2TtzpSOw.d.ts → redirectToMobileManager-NVQM3o5P.d.ts} +3 -4
  206. package/dist/{redirectToMobileStateMachine-BetR6r8p.esm.js → redirectToMobileStateMachine-D-8ipBq2.esm.js} +7 -9
  207. package/dist/rolldown-runtime-FZ4Itg2g.esm.js +42 -0
  208. package/dist/{runChildModule-FH_tixbR.esm.js → runChildModule-Crz1nHwJ.esm.js} +5 -9
  209. package/dist/selfie.d.ts +7 -20
  210. package/dist/selfie.esm.js +40 -46
  211. package/dist/{selfieManager-CdUnYjmt.esm.js → selfieManager-C4_2DgTF.esm.js} +7 -10
  212. package/dist/{selfieManager-d7nkO-UP.d.ts → selfieManager-CN8wJ14s.d.ts} +3 -4
  213. package/dist/{selfieStateMachine-zz4WqziP.esm.js → selfieStateMachine-ODRceav2.esm.js} +15 -20
  214. package/dist/selfieUploadService-B4LnSIf6.esm.js +62 -0
  215. package/dist/session-CQ2x2aLl.esm.js +1 -0
  216. package/dist/session.d.ts +2 -9
  217. package/dist/session.esm.js +153 -15
  218. package/dist/sessionInitializer-Cjpnacyg.esm.js +1801 -0
  219. package/dist/{setup-BxB6QUto.d.ts → setup-CgBvqGWw.d.ts} +2 -4
  220. package/dist/{setup-DCyhfufM.esm.js → setup-Hyb_Yiuu.esm.js} +126 -18
  221. package/dist/signature.d.ts +2 -6
  222. package/dist/signature.esm.js +6 -9
  223. package/dist/{signatureStateMachine-U8ewxW1t.esm.js → signatureStateMachine-BmKPC5A9.esm.js} +5 -7
  224. package/dist/spawn-D9jgw9pW.d.ts +1441 -0
  225. package/dist/{stats-BVy52wLy.esm.js → stats-Bu6bL_CX.esm.js} +3 -5
  226. package/dist/stats.esm.js +2 -5
  227. package/dist/topLevelStateName-B5i2avbh.esm.js +41 -0
  228. package/dist/{tri-Calc36Ny.esm.js → tri-N-xlKhZK.esm.js} +3 -7
  229. package/dist/tri.d.ts +2 -2
  230. package/dist/tri.esm-BIjHhBJ2.esm.js +2620 -0
  231. package/dist/tri.esm.js +2 -4
  232. package/dist/trust-graph.d.ts +4 -5
  233. package/dist/trust-graph.esm.js +13 -9
  234. package/dist/{types-Db2ooXIu.esm.js → types-BN5RPPIZ.esm.js} +1 -2
  235. package/dist/{types-ZezaAAbn.d.ts → types-BfgmV7s7.d.ts} +2 -2
  236. package/dist/{types-NizIIgLD.d.ts → types-BnEHzP1K.d.ts} +3 -5
  237. package/dist/{types-DCOl8zy6.d.ts → types-Vb4P9ovf.d.ts} +1 -3
  238. package/dist/{types-C0D4Brd6.d.ts → types-ctqh-iS4.d.ts} +80 -6
  239. package/dist/{urlUtils-CpiYwn7w.esm.js → urlUtils-D6phjq1-.esm.js} +1 -2
  240. package/dist/{video-DXf5H9rY.esm.js → video-BtSWtHy1.esm.js} +1 -2
  241. package/dist/video-selfie.d.ts +10 -15
  242. package/dist/video-selfie.esm.js +114 -106
  243. package/dist/{videoSelfieSteps-DAky5sq5.esm.js → videoSelfieSteps-DHcibfYH.esm.js} +1 -2
  244. package/dist/wasm.d.ts +2 -4
  245. package/dist/wasm.esm.js +3 -15
  246. package/dist/watchlist-for-business.d.ts +1 -3
  247. package/dist/watchlist-for-business.esm.js +9 -9
  248. package/dist/watchlist.d.ts +1 -3
  249. package/dist/watchlist.esm.js +11 -10
  250. package/dist/{watchlistForBusinessStateMachine-Bbn_dcVT.esm.js → watchlistForBusinessStateMachine-BC_-3fJs.esm.js} +5 -7
  251. package/dist/{watchlistStateMachine-SZ-1xpe4.esm.js → watchlistStateMachine-CL2j3aRl.esm.js} +5 -7
  252. package/dist/workflow.d.ts +124 -146
  253. package/dist/workflow.esm.js +75 -80
  254. package/dist/xstate-actors.esm-CtI5S0f4.esm.js +310 -0
  255. package/dist/{xstate.esm-nY3M5UYm.esm.js → xstate.esm-Cf4e0Cfd.esm.js} +136 -610
  256. package/package.json +2 -2
  257. package/dist/Actor-CdjYVucI.d.ts +0 -2
  258. package/dist/FaceDetectionProvider-D-zCGbS9.d.ts +0 -119
  259. package/dist/IWasmUtilCapability-CuiW_6d1.d.ts +0 -150
  260. package/dist/StateMachine-BTkXO3Na.d.ts +0 -2
  261. package/dist/StreamCanvasCapture-D9u4hwul.d.ts +0 -42
  262. package/dist/ae-signature-eQWjmzE8.esm.js +0 -12
  263. package/dist/browser-DlFgHpoC-BTB6a7n-.esm.js +0 -1425
  264. package/dist/browserSimulation-CQjwFn0Z.esm.js +0 -1256
  265. package/dist/canvas-COIxuirO.d.ts +0 -112
  266. package/dist/chunk-CIKcdghV.esm.js +0 -49
  267. package/dist/deepsightLoader-BppeThau.esm.js +0 -67
  268. package/dist/deepsightService-mkIAy_Eq.d.ts +0 -69
  269. package/dist/http-C3Pq6njG.esm.js +0 -0
  270. package/dist/index-BD6ZVw2f.d.ts +0 -93
  271. package/dist/openviduLazy-CuGqb-8Q.esm.js +0 -12
  272. package/dist/openviduLazy-DNb0xHJp.esm.js +0 -3
  273. package/dist/qe-signature-D9XM2d-F.esm.js +0 -12
  274. package/dist/session--C2lbjK5.esm.js +0 -152
  275. package/dist/sessionInitializer-Dx_oPfHP.esm.js +0 -548
  276. package/dist/tri.esm-BDhptA8x.esm.js +0 -2593
  277. /package/dist/{IVisibilityObserverCapability-C3tAkSfF.d.ts → IVisibilityObserverCapability-D4tvIB5v.d.ts} +0 -0
  278. /package/dist/{camera-DRH7co71.d.ts → camera-9wWD-pwg.d.ts} +0 -0
  279. /package/dist/{flowCompletionService-DGcE_OvO.d.ts → flowCompletionService-BlAHsKyv.d.ts} +0 -0
  280. /package/dist/{types-DawqnFVn.d.ts → types-BT-aiBYV.d.ts} +0 -0
  281. /package/dist/{types-B6KIOo6S.d.ts → types-Bk_6dmDa.d.ts} +0 -0
  282. /package/dist/{warmup-CE9Fhs6N.d.ts → warmup-Dv2alr2-.d.ts} +0 -0
@@ -1,5 +1,2 @@
1
- import "./StateMachine-BTkXO3Na.js";
2
- import "./Manager-DE5DydXZ.js";
3
- import "./Actor-CdjYVucI.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-WMHgnbC1.js";
5
- export { AE_CONSENT_KEYS, AeConsentKey, ConsentChecks, ConsentKey, ElectronicSignatureConfig, ElectronicSignatureDocument, ElectronicSignatureManager, ElectronicSignatureState, ElectronicSignatureVariant, QE_CONSENT_KEYS, QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
1
+ 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-CKbmDFNq.js";
2
+ export { AE_CONSENT_KEYS, type AeConsentKey, type ConsentChecks, type ConsentKey, type ElectronicSignatureConfig, type ElectronicSignatureDocument, type ElectronicSignatureManager, type ElectronicSignatureState, type ElectronicSignatureVariant, QE_CONSENT_KEYS, type QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -1,10 +1,2 @@
1
- import "./api-DsbUi7TO.esm.js";
2
- import "./events-aeCkGlnn.esm.js";
3
- import "./endpoints-CwrFQfW7.esm.js";
4
- import "./xstate.esm-nY3M5UYm.esm.js";
5
- import "./urlUtils-CpiYwn7w.esm.js";
6
- import "./externalFetch-hvmz_npP.esm.js";
7
- import "./apiError-DkOXfFBu.esm.js";
8
- 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-CzMj-Tjm.esm.js";
9
-
10
- export { AE_CONSENT_KEYS, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
1
+ 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-DSZu9OHT.esm.js";
2
+ export { AE_CONSENT_KEYS, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -1,10 +1,11 @@
1
- import { t as api } from "./api-DsbUi7TO.esm.js";
2
- import { n as eventModuleNames, o as topLevelStateName, s as createManagerInstrumentation } from "./events-aeCkGlnn.esm.js";
3
- import { t as endpoints } from "./endpoints-CwrFQfW7.esm.js";
4
- import { a as fromPromise, l as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-nY3M5UYm.esm.js";
5
- import { t as externalFetch } from "./externalFetch-hvmz_npP.esm.js";
6
- import { n as toIncodeApiError } from "./apiError-DkOXfFBu.esm.js";
7
-
1
+ import { t as api } from "./api-BDTZNnca.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
3
+ import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
+ import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
5
+ import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
6
+ import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
7
+ import { t as externalFetch } from "./externalFetch-BKBThAUC.esm.js";
8
+ import { n as toIncodeApiError } from "./apiError-COvIGYWe.esm.js";
8
9
  //#region src/modules/electronic-signature/electronicSignatureServices.ts
9
10
  async function fetchUnsignedDocuments(signal) {
10
11
  const res = await api.get(endpoints.aesUnsignedDocuments, { signal });
@@ -39,7 +40,6 @@ async function uploadDocumentFile(presignedUrl, data, signal) {
39
40
  signal
40
41
  });
41
42
  }
42
-
43
43
  //#endregion
44
44
  //#region src/modules/electronic-signature/electronicSignatureActors.ts
45
45
  const fetchUnsignedDocsActor = fromPromise(async ({ signal }) => fetchUnsignedDocuments(signal));
@@ -60,7 +60,6 @@ const uploadFileActor = fromPromise(async ({ input, signal }) => {
60
60
  if (!fileData) throw new Error("No file data available for upload");
61
61
  await uploadDocumentFile(input.preSignedUrl, fileData, signal);
62
62
  });
63
-
64
63
  //#endregion
65
64
  //#region src/modules/electronic-signature/types.ts
66
65
  const AE_CONSENT_KEYS = [
@@ -85,7 +84,6 @@ function getDefaultConsentChecks(variant) {
85
84
  function areAllConsented(checks) {
86
85
  return Object.values(checks).every(Boolean);
87
86
  }
88
-
89
87
  //#endregion
90
88
  //#region src/modules/electronic-signature/electronicSignatureStateMachine.ts
91
89
  const electronicSignatureMachine = setup({
@@ -320,7 +318,6 @@ const electronicSignatureMachine = setup({
320
318
  closed: { type: "final" }
321
319
  }
322
320
  });
323
-
324
321
  //#endregion
325
322
  //#region src/modules/electronic-signature/electronicSignatureActor.ts
326
323
  function createElectronicSignatureActor(options) {
@@ -329,7 +326,6 @@ function createElectronicSignatureActor(options) {
329
326
  getFileData: options.getFileData
330
327
  } }).start();
331
328
  }
332
-
333
329
  //#endregion
334
330
  //#region src/modules/electronic-signature/electronicSignatureManager.ts
335
331
  /**
@@ -533,6 +529,5 @@ function createElectronicSignatureManager(options) {
533
529
  instrumentation: createManagerInstrumentation(isQualified ? eventModuleNames.qeSignature : eventModuleNames.aeSignature, { getEventScreenName: isQualified ? getQSignatureScreenName : getAdSignatureScreenName })
534
530
  });
535
531
  }
536
-
537
532
  //#endregion
538
- export { areAllConsented as a, QE_CONSENT_KEYS as i, electronicSignatureMachine as n, getConsentKeys as o, AE_CONSENT_KEYS as r, getDefaultConsentChecks as s, createElectronicSignatureManager as t };
533
+ export { areAllConsented as a, QE_CONSENT_KEYS as i, electronicSignatureMachine as n, getConsentKeys as o, AE_CONSENT_KEYS as r, getDefaultConsentChecks as s, createElectronicSignatureManager as t };
package/dist/email.d.ts CHANGED
@@ -1,6 +1,2 @@
1
- import "./StateMachine-BTkXO3Na.js";
2
- import "./Manager-DE5DydXZ.js";
3
- import "./Actor-CdjYVucI.js";
4
- import { n as EmailState, o as emailMachine, r as createEmailManager, s as EmailConfig, t as EmailManager } from "./emailManager-Lv9BHgel.js";
5
- import "./otp-D_9QPNbs.js";
1
+ import { n as EmailState, o as emailMachine, r as createEmailManager, s as EmailConfig, t as EmailManager } from "./emailManager-CADXW_9X.js";
6
2
  export { type EmailConfig, type EmailManager, type EmailState, createEmailManager, emailMachine };
package/dist/email.esm.js CHANGED
@@ -1,10 +1,3 @@
1
- import "./BrowserTimerProvider-CHloo0eQ.esm.js";
2
- import "./api-DsbUi7TO.esm.js";
3
- import "./events-aeCkGlnn.esm.js";
4
- import "./endpoints-CwrFQfW7.esm.js";
5
- import "./xstate.esm-nY3M5UYm.esm.js";
6
- import { t as emailMachine } from "./emailStateMachine-Z-Jf4qOc.esm.js";
7
- import "./otp-Bbe_izFJ.esm.js";
8
- import { t as createEmailManager } from "./emailManager-BsynjdWX.esm.js";
9
-
10
- export { createEmailManager, emailMachine };
1
+ import { t as emailMachine } from "./emailStateMachine-ChNwY22u.esm.js";
2
+ import { t as createEmailManager } from "./emailManager-c-mDLieD.esm.js";
3
+ export { createEmailManager, emailMachine };
@@ -1,9 +1,8 @@
1
- import { t as Manager } from "./Manager-DE5DydXZ.js";
2
- import { t as ActorRefFrom } from "./Actor-CdjYVucI.js";
3
- import { t as OtpValidationErrors } from "./otp-D_9QPNbs.js";
4
-
1
+ import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
+ import { t as Manager } from "./Manager-CQQ99QOI.js";
3
+ import "./Actor-iTq7YY48.js";
4
+ import { t as OtpValidationErrors } from "./otp-CEWfTj9v.js";
5
5
  //#region src/modules/email/types.d.ts
6
-
7
6
  /**
8
7
  * Configuration options for email verification.
9
8
  *
@@ -55,7 +54,6 @@ type EmailValidationErrors = {
55
54
  };
56
55
  //#endregion
57
56
  //#region src/modules/email/emailStateMachine.d.ts
58
-
59
57
  declare const emailMachine: any;
60
58
  type EmailMachine = typeof emailMachine;
61
59
  //#endregion
@@ -66,7 +64,6 @@ type CreateEmailActorOptions = {
66
64
  type EmailActor = ActorRefFrom<EmailMachine>;
67
65
  //#endregion
68
66
  //#region src/modules/email/emailManager.d.ts
69
-
70
67
  /** Email manager is in initial state, waiting for `load()` to be called */
71
68
  type EmailIdleState = {
72
69
  status: 'idle';
@@ -1,13 +1,10 @@
1
- import { n as eventModuleNames, s as createManagerInstrumentation } from "./events-aeCkGlnn.esm.js";
2
- import { l as createManager, s as createActor } from "./xstate.esm-nY3M5UYm.esm.js";
3
- import { t as emailMachine } from "./emailStateMachine-Z-Jf4qOc.esm.js";
4
- import { t as OTP_CODE_LENGTH } from "./otp-Bbe_izFJ.esm.js";
5
-
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
2
+ import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
+ import { t as emailMachine } from "./emailStateMachine-ChNwY22u.esm.js";
6
4
  //#region src/modules/email/emailActor.ts
7
5
  function createEmailActor(options) {
8
6
  return createActor(emailMachine, { input: { config: options.config } }).start();
9
7
  }
10
-
11
8
  //#endregion
12
9
  //#region src/modules/email/emailManager.ts
13
10
  /**
@@ -154,7 +151,7 @@ function mapState(snapshot) {
154
151
  if (typedSnapshot.matches("resendingOtp")) return {
155
152
  status: "resendingOtp",
156
153
  otpCode: context.otpCode,
157
- otpLength: OTP_CODE_LENGTH
154
+ otpLength: 6
158
155
  };
159
156
  if (typedSnapshot.matches("sendingInitialOtp")) return { status: "sendingInitialOtp" };
160
157
  if (typedSnapshot.matches("awaitingOtp")) return {
@@ -163,7 +160,7 @@ function mapState(snapshot) {
163
160
  canResend: !context.resendTimerActive,
164
161
  attemptsRemaining: context.attemptsRemaining,
165
162
  otpCode: context.otpCode,
166
- otpLength: OTP_CODE_LENGTH,
163
+ otpLength: 6,
167
164
  otpValidationErrors: context.otpValidationErrors,
168
165
  isOtpValid: Object.keys(context.otpValidationErrors ?? {}).length === 0
169
166
  };
@@ -172,7 +169,7 @@ function mapState(snapshot) {
172
169
  resendTimer: context.resendTimer,
173
170
  canResend: !context.resendTimerActive,
174
171
  otpCode: context.otpCode,
175
- otpLength: OTP_CODE_LENGTH
172
+ otpLength: 6
176
173
  };
177
174
  if (typedSnapshot.matches("otpError")) return {
178
175
  status: "otpError",
@@ -181,7 +178,7 @@ function mapState(snapshot) {
181
178
  resendTimer: context.resendTimer,
182
179
  canResend: !context.resendTimerActive,
183
180
  otpCode: context.otpCode,
184
- otpLength: OTP_CODE_LENGTH,
181
+ otpLength: 6,
185
182
  otpValidationErrors: context.otpValidationErrors,
186
183
  isOtpValid: Object.keys(context.otpValidationErrors ?? {}).length === 0
187
184
  };
@@ -194,9 +191,29 @@ function mapState(snapshot) {
194
191
  }
195
192
  function createApi({ actor, trackElementClicked }) {
196
193
  return {
194
+ /**
195
+ * Initializes the email verification flow.
196
+ * Transitions from 'idle' to 'loadingPrefill' or 'inputting'.
197
+ * Must be called before any other method.
198
+ */
197
199
  load() {
198
200
  actor.send({ type: "LOAD" });
199
201
  },
202
+ /**
203
+ * Sets the email address for verification.
204
+ * Should be called when state is 'inputting'.
205
+ *
206
+ * @param email - Email address (e.g., 'user@example.com')
207
+ * @param isValid - Whether the email address passes validation
208
+ *
209
+ * @example
210
+ * ```typescript
211
+ * // Using regex for validation
212
+ * const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;
213
+ * const email = 'user@example.com';
214
+ * emailManager.setEmail(email, emailRegex.test(email));
215
+ * ```
216
+ */
200
217
  setEmail(email, isValid) {
201
218
  actor.send({
202
219
  type: "EMAIL_CHANGED",
@@ -204,22 +221,55 @@ function createApi({ actor, trackElementClicked }) {
204
221
  isValid
205
222
  });
206
223
  },
224
+ /**
225
+ * Validates the current email address (e.g., on blur).
226
+ * Populates or clears `validationErrors.email` on the 'inputting' state.
227
+ */
207
228
  validateEmail() {
208
229
  actor.send({ type: "VALIDATE_EMAIL" });
209
230
  },
231
+ /**
232
+ * Submits the email address for verification.
233
+ * Runs full validation first: if the email is empty or invalid, populates
234
+ * `validationErrors` and stays on 'inputting'; otherwise transitions to
235
+ * 'submitting', then to 'sendingInitialOtp' or 'finished' (if no OTP).
236
+ */
210
237
  submit() {
211
238
  trackElementClicked?.("submit");
212
239
  actor.send({ type: "SUBMIT" });
213
240
  },
241
+ /**
242
+ * Sets the OTP code without submitting.
243
+ * Use this for controlled input components.
244
+ *
245
+ * @param code - The OTP code entered by the user
246
+ */
214
247
  setOtpCode(code) {
215
248
  actor.send({
216
249
  type: "OTP_CHANGED",
217
250
  code
218
251
  });
219
252
  },
253
+ /**
254
+ * Validates the current OTP code (e.g. on blur), without submitting.
255
+ * Populates or clears `otpValidationErrors.otp` on the 'awaitingOtp' /
256
+ * 'otpError' states (incomplete code → `isOtpValid` becomes false).
257
+ */
220
258
  validateOtp() {
221
259
  actor.send({ type: "VALIDATE_OTP" });
222
260
  },
261
+ /**
262
+ * Sets and submits the OTP code in one call.
263
+ * Should be called when state is 'awaitingOtp' or 'otpError'.
264
+ *
265
+ * @param code - The complete OTP code (typically 6 alphanumeric characters)
266
+ *
267
+ * @example
268
+ * ```typescript
269
+ * // Submit OTP when user completes entry
270
+ * emailManager.submitOtp('HH36LP');
271
+ * ```
272
+ */
223
273
  submitOtp(code) {
224
274
  trackElementClicked?.("submitOtp");
225
275
  actor.send({
@@ -228,14 +278,29 @@ function createApi({ actor, trackElementClicked }) {
228
278
  });
229
279
  actor.send({ type: "VERIFY_OTP" });
230
280
  },
281
+ /**
282
+ * Requests a new OTP code to be sent.
283
+ * Only works when state is 'awaitingOtp' and `canResend` is true.
284
+ * Resets the resend timer.
285
+ */
231
286
  resendOtp() {
232
287
  trackElementClicked?.("resendOtp");
233
288
  actor.send({ type: "RESEND_OTP" });
234
289
  },
290
+ /**
291
+ * Returns to the email input screen from OTP entry.
292
+ * Allows the user to change their email address.
293
+ * Transitions from 'awaitingOtp' or 'otpError' back to 'inputting'.
294
+ */
235
295
  back() {
236
296
  trackElementClicked?.("back");
237
297
  actor.send({ type: "BACK" });
238
298
  },
299
+ /**
300
+ * Resets the manager to initial state.
301
+ * Can be called from 'success' or 'error' states to start over.
302
+ * Clears all stored data including email address and OTP.
303
+ */
239
304
  reset() {
240
305
  actor.send({ type: "RESET" });
241
306
  }
@@ -296,6 +361,5 @@ function createEmailManagerFromActor(actor) {
296
361
  instrumentation: createManagerInstrumentation(eventModuleNames.email, { getEventScreenName: getEmailScreenName })
297
362
  });
298
363
  }
299
-
300
364
  //#endregion
301
- export { createEmailManagerFromActor as n, createEmailManager as t };
365
+ export { createEmailManagerFromActor as n, createEmailManager as t };
@@ -1,9 +1,9 @@
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-CwrFQfW7.esm.js";
4
- import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-nY3M5UYm.esm.js";
5
- import { n as computeOtpValidationErrors, r as isOtpComplete } from "./otp-Bbe_izFJ.esm.js";
6
-
1
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
2
+ import { t as api } from "./api-BDTZNnca.esm.js";
3
+ import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
4
+ import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
+ import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
+ import { n as isOtpComplete, t as computeOtpValidationErrors } from "./otp-D2k3PeSL.esm.js";
7
7
  //#region src/modules/email/emailServices.ts
8
8
  function getEmailServerFailureReason(error, invalidStatus) {
9
9
  if (error.status === invalidStatus) return "invalidEmail";
@@ -35,7 +35,6 @@ async function verifyEmailOtp(code, signal) {
35
35
  throw new Error(getEmailServerFailureReason(error));
36
36
  }
37
37
  }
38
-
39
38
  //#endregion
40
39
  //#region src/modules/email/emailStateMachine.ts
41
40
  function getErrorMessage(error) {
@@ -322,6 +321,5 @@ const emailMachine = setup({
322
321
  } } }
323
322
  }
324
323
  });
325
-
326
324
  //#endregion
327
- export { emailMachine as t };
325
+ export { emailMachine as t };
@@ -93,13 +93,44 @@ const endpoints = {
93
93
  customModuleExecution: "/omni/custom-module/execution",
94
94
  processCrossDocumentDataMatch: "/omni/cross-doc-data-check/process",
95
95
  personhoodServerFallback: "/omni/personhood/fallback",
96
+ /**
97
+ * Authorization service token endpoint (OAuth2 client-credentials).
98
+ * `POST` an `application/x-www-form-urlencoded` body of
99
+ * `grant_type=client_credentials&scope=openid&client_id&client_secret`;
100
+ * the JSON response carries an `access_token` (a signed JWT) that the
101
+ * verify hop below attaches as `Authorization: Bearer`. Exposed on the
102
+ * omni base at `/omni/oauth2/token` (the authorization-server's own
103
+ * path is `/oauth2/token`). Replaces the removed
104
+ * `GET /omni/personhood/token` (ENG-45783).
105
+ *
106
+ * Used when NO dedicated `authBaseUrl` is configured — i.e. the omni
107
+ * gateway is expected to front the authorization server (topology A).
108
+ * When `PersonhoodConfig.authBaseUrl` IS set, the browser calls the
109
+ * auth server's own origin directly and the path below
110
+ * ({@link personhoodOAuthTokenDirect}) is used instead.
111
+ */
96
112
  personhoodOAuthToken: "/omni/oauth2/token",
113
+ /**
114
+ * The authorization server's OWN token path, appended to a configured
115
+ * `PersonhoodConfig.authBaseUrl` (e.g.
116
+ * `https://auth.<env>.incode.com` + `/oauth2/token`). Used when the
117
+ * browser calls the auth origin directly rather than via the omni
118
+ * gateway (topology B / Option 2). The omni-fronted equivalent is
119
+ * {@link personhoodOAuthToken}.
120
+ */
97
121
  personhoodOAuthTokenDirect: "/oauth2/token",
122
+ /**
123
+ * On-device personhood flow — verify hop. `POST` authenticated with
124
+ * `Authorization: Bearer <access_token>` (minted via
125
+ * `personhoodOAuthToken`). Body carries the Deepsight WASM metadata
126
+ * blob plus a derived `spoofCheckResults` array. The server's
127
+ * `isHuman` is the authoritative final verdict — replaces the local
128
+ * computation.
129
+ */
98
130
  personhoodOnDeviceVerify: "/omni/personhood/verify",
99
131
  dynamicFormsSubmitAnswer: "/omni/form-answer/submit",
100
132
  certificateIssuanceIssue: "/omni/es/process/issueCertificate",
101
133
  addFiscalQrLink: "/omni/add/fiscal-qr-url"
102
134
  };
103
-
104
135
  //#endregion
105
- export { endpoints as t };
136
+ export { endpoints as t };
@@ -1,5 +1,3 @@
1
- import { t as api } from "./api-DsbUi7TO.esm.js";
2
-
3
1
  //#region ../infra/src/capabilities/IBrowserEnvironmentCapability.ts
4
2
  function getTimestamp() {
5
3
  return Date.now();
@@ -7,7 +5,6 @@ function getTimestamp() {
7
5
  function revokeObjectURL(url) {
8
6
  URL.revokeObjectURL(url);
9
7
  }
10
-
11
8
  //#endregion
12
9
  //#region src/internal/events/eventBus.ts
13
10
  function createEventBus() {
@@ -37,7 +34,6 @@ function createEventBus() {
37
34
  clear
38
35
  };
39
36
  }
40
-
41
37
  //#endregion
42
38
  //#region src/internal/events/addEvent.ts
43
39
  const INTERVIEW_EVENTS_MAX_SCREEN_LENGTH = 50;
@@ -146,122 +142,6 @@ function addEvent(event) {
146
142
  }
147
143
  analyticsBatcher.enqueue(entry);
148
144
  }
149
-
150
- //#endregion
151
- //#region src/internal/events/AnalyticsBatchingService.ts
152
- const DEFAULT_MAX_BATCH_SIZE = 50;
153
- const DEFAULT_MAX_BATCH_AGE_MS = 1e3;
154
- const DEFAULT_MAX_RETRIES = 2;
155
- const RETRY_BASE_DELAY_MS = 250;
156
- function isTransientStatus(status) {
157
- return status === 0 || status >= 500 || status === 408 || status === 429;
158
- }
159
- function createAnalyticsBatchingService(options) {
160
- const { endpoint, authToken, pageLifecycle, timer, apiBaseUrl, apiClient = api, maxBatchSize = DEFAULT_MAX_BATCH_SIZE, maxBatchAgeMs = DEFAULT_MAX_BATCH_AGE_MS, maxRetries = DEFAULT_MAX_RETRIES } = options;
161
- let buffer = [];
162
- let started = false;
163
- let disposed = false;
164
- let ageTimerHandle = null;
165
- let unsubscribeLifecycle = null;
166
- let warnedNullToken = false;
167
- function clearAgeTimer() {
168
- if (ageTimerHandle !== null) {
169
- timer.clearTimeout(ageTimerHandle);
170
- ageTimerHandle = null;
171
- }
172
- }
173
- function armAgeTimerIfNeeded() {
174
- if (ageTimerHandle === null) ageTimerHandle = timer.setTimeout(() => {
175
- ageTimerHandle = null;
176
- flush();
177
- }, maxBatchAgeMs);
178
- }
179
- function dropTokenless() {
180
- if (!warnedNullToken) {
181
- warnedNullToken = true;
182
- console.warn("[AnalyticsBatchingService] Dropping batch: no auth token at flush time.");
183
- }
184
- }
185
- function sendBatch(batch, attempt) {
186
- let promise;
187
- try {
188
- promise = apiClient.post(endpoint, batch, { keepalive: true });
189
- } catch (error) {
190
- handleSendError(batch, error, attempt);
191
- return;
192
- }
193
- promise.catch((error) => handleSendError(batch, error, attempt));
194
- }
195
- function handleSendError(batch, error, attempt) {
196
- if (disposed) return;
197
- if (!isTransientStatus(error && typeof error === "object" && "status" in error ? Number(error.status) || 0 : 0)) return;
198
- if (attempt >= maxRetries) return;
199
- const delay = RETRY_BASE_DELAY_MS * 2 ** attempt;
200
- timer.setTimeout(() => {
201
- if (disposed) return;
202
- sendBatch(batch, attempt + 1);
203
- }, delay);
204
- }
205
- function flush() {
206
- if (disposed || buffer.length === 0) return;
207
- const batch = buffer;
208
- buffer = [];
209
- clearAgeTimer();
210
- if (!authToken()) {
211
- dropTokenless();
212
- return;
213
- }
214
- sendBatch(batch, 0);
215
- }
216
- function handlePageHide() {
217
- if (disposed || buffer.length === 0) return;
218
- const batch = buffer;
219
- buffer = [];
220
- clearAgeTimer();
221
- const token = authToken();
222
- if (!token) {
223
- dropTokenless();
224
- return;
225
- }
226
- const url = `${apiBaseUrl().replace(/\/$/, "")}${endpoint}`;
227
- const body = JSON.stringify({
228
- token,
229
- events: batch
230
- });
231
- pageLifecycle.sendBeacon(url, body);
232
- }
233
- function enqueue(entry) {
234
- if (disposed) return;
235
- buffer.push(entry);
236
- if (!started) return;
237
- if (buffer.length >= maxBatchSize) {
238
- flush();
239
- return;
240
- }
241
- armAgeTimerIfNeeded();
242
- }
243
- function start() {
244
- if (started || disposed) return;
245
- started = true;
246
- unsubscribeLifecycle = pageLifecycle.onPageHide(handlePageHide);
247
- if (buffer.length > 0) flush();
248
- }
249
- function dispose() {
250
- if (disposed) return;
251
- disposed = true;
252
- clearAgeTimer();
253
- unsubscribeLifecycle?.();
254
- unsubscribeLifecycle = null;
255
- buffer = [];
256
- }
257
- return {
258
- enqueue,
259
- start,
260
- flush,
261
- dispose
262
- };
263
- }
264
-
265
145
  //#endregion
266
146
  //#region src/internal/events/helpers.ts
267
147
  function screenEvent(params) {
@@ -345,7 +225,6 @@ function captureAttemptFinished(module, screen, payload) {
345
225
  payload
346
226
  });
347
227
  }
348
-
349
228
  //#endregion
350
229
  //#region src/internal/events/managerInstrumentation.ts
351
230
  function stateValueToScreenSegment(value) {
@@ -411,7 +290,7 @@ function createManagerInstrumentation(moduleName, options) {
411
290
  onModuleClosed: moduleClosed,
412
291
  onScreenOpened: screenOpened,
413
292
  onScreenClosed: screenClosed,
414
- onErrorTriggered: (moduleName$1, errorName, screenName, payload) => errorTriggered(moduleName$1, screenName, {
293
+ onErrorTriggered: (moduleName, errorName, screenName, payload) => errorTriggered(moduleName, screenName, {
415
294
  errorName,
416
295
  ...payload
417
296
  }),
@@ -419,8 +298,8 @@ function createManagerInstrumentation(moduleName, options) {
419
298
  getInitialVisibility: visibilityObserver ? () => visibilityObserver.isVisible() : void 0,
420
299
  onBackground: visibilityObserver ? background : void 0,
421
300
  onForeground: visibilityObserver ? foreground : void 0,
422
- onElementClicked: (moduleName$1, screenName, payload) => elementClicked(moduleName$1, screenName, payload),
423
- onCaptureAttemptFinished: (moduleName$1, screenName, payload) => captureAttemptFinished(moduleName$1, screenName, payload),
301
+ onElementClicked: (moduleName, screenName, payload) => elementClicked(moduleName, screenName, payload),
302
+ onCaptureAttemptFinished: (moduleName, screenName, payload) => captureAttemptFinished(moduleName, screenName, payload),
424
303
  getScreenName: (snapshot) => getManagerScreenName(moduleName, snapshot, {
425
304
  getEventScreenName: options?.getEventScreenName,
426
305
  getScreenName: options?.getScreenName
@@ -433,48 +312,6 @@ function createManagerInstrumentation(moduleName, options) {
433
312
  getErrorPayload: (snapshot) => options?.getErrorPayload?.(snapshot)
434
313
  };
435
314
  }
436
-
437
- //#endregion
438
- //#region src/internal/events/topLevelStateName.ts
439
- /**
440
- * Returns the top-level state name from an XState `snapshot.value`.
441
- *
442
- * XState 5 represents the current state in one of two shapes:
443
- *
444
- * - Leaf state on the root: a plain string (`'idle'`, `'processing'`).
445
- * - Compound state: an object with exactly one key naming the active
446
- * top-level state, e.g. `{ uploading: 'holding' }`. Nested compounds
447
- * may recurse, but the top-level key is always at index 0.
448
- *
449
- * Used by Figma-aligned `get*ScreenName` mappers to dispatch on the
450
- * top-level state without coupling to deeper substate shapes. The
451
- * `keys.length === 1` guard is defensive — XState invariants make a
452
- * compound `snapshot.value` always single-keyed, but we return
453
- * `undefined` for malformed/unknown shapes rather than risk an arbitrary
454
- * key from a parallel-state-like object.
455
- *
456
- * Intentionally typed as `value: unknown` so callers can pass
457
- * `snapshot.value` from any machine without prior narrowing.
458
- *
459
- * @example
460
- * ```ts
461
- * topLevelStateName('idle'); // 'idle'
462
- * topLevelStateName({ uploading: 'holding' }); // 'uploading'
463
- * topLevelStateName({ a: 1, b: 2 }); // undefined (not single-keyed)
464
- * topLevelStateName(undefined); // undefined
465
- * ```
466
- */
467
- function topLevelStateName(value) {
468
- if (typeof value === "string") return value;
469
- if (typeof value === "object" && value !== null) {
470
- const keys = Object.keys(value);
471
- if (keys.length === 1) {
472
- const key = keys[0];
473
- return typeof key === "string" ? key : void 0;
474
- }
475
- }
476
- }
477
-
478
315
  //#endregion
479
316
  //#region src/internal/events/types.ts
480
317
  const eventModuleNames = {
@@ -663,6 +500,5 @@ const cameraScreenNamesMapper = {
663
500
  creditCardBack: "back",
664
501
  document: "document"
665
502
  };
666
-
667
503
  //#endregion
668
- export { revokeObjectURL as C, getTimestamp as S, getAnalyticsBatcher as _, videoSelfieEvents as a, subscribeEvent as b, captureAttemptFinished as c, moduleOpened as d, screenClosed as f, addEvent as g, createAnalyticsBatchingService as h, tutorialScreenNamesMapper as i, elementClicked as l, screenOpened as m, eventModuleNames as n, topLevelStateName as o, screenEvent as p, eventScreenNames as r, createManagerInstrumentation as s, cameraScreenNamesMapper as t, moduleClosed as u, resetAnalyticsBatcher as v, createEventBus as x, setAnalyticsBatcher as y };
504
+ export { setAnalyticsBatcher as _, videoSelfieEvents as a, getTimestamp as b, elementClicked as c, screenClosed as d, screenEvent as f, resetAnalyticsBatcher as g, getAnalyticsBatcher as h, tutorialScreenNamesMapper as i, moduleClosed as l, addEvent as m, eventModuleNames as n, createManagerInstrumentation as o, screenOpened as p, eventScreenNames as r, captureAttemptFinished as s, cameraScreenNamesMapper as t, moduleOpened as u, subscribeEvent as v, revokeObjectURL as x, createEventBus as y };
package/dist/events.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import "./index-B8weJxmL.js";
1
2
  //#region src/internal/events/types.d.ts
2
3
  /**
3
4
  * Raw SDK analytics event used by dashboard tracking and custom analytics.
@@ -204,15 +205,6 @@ type EventScreen = (typeof eventScreenNames)[keyof typeof eventScreenNames];
204
205
  //#endregion
205
206
  //#region src/internal/events/addEvent.d.ts
206
207
  type EventSubscriber = (event: Event) => void;
207
- /**
208
- * Registers the analytics batcher used by `addEvent` to ship events to the
209
- * interview-events API. Disposes any previously-registered instance and drains
210
- * any events queued before registration into the new batcher's buffer (FIFO).
211
- *
212
- * Returns the registered service so the caller can drive its lifecycle
213
- * (e.g. call `.start()` after session initialization completes).
214
- */
215
-
216
208
  /**
217
209
  * Subscribes to raw SDK analytics events.
218
210
  *
@@ -1,4 +1,2 @@
1
- import "./api-DsbUi7TO.esm.js";
2
- import { a as videoSelfieEvents, b as subscribeEvent, c as captureAttemptFinished, d as moduleOpened, f as screenClosed, g as addEvent, i as tutorialScreenNamesMapper, l as elementClicked, m as screenOpened, n as eventModuleNames, p as screenEvent, r as eventScreenNames, t as cameraScreenNamesMapper, u as moduleClosed } from "./events-aeCkGlnn.esm.js";
3
-
4
- export { addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, moduleClosed, moduleOpened, screenClosed, screenEvent, screenOpened, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };
1
+ import { a as videoSelfieEvents, c as elementClicked, d as screenClosed, f as screenEvent, i as tutorialScreenNamesMapper, l as moduleClosed, m as addEvent, n as eventModuleNames, p as screenOpened, r as eventScreenNames, s as captureAttemptFinished, t as cameraScreenNamesMapper, u as moduleOpened, v as subscribeEvent } from "./events-Dy8PyVO5.esm.js";
2
+ export { addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, moduleClosed, moduleOpened, screenClosed, screenEvent, screenOpened, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };