@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,7 +1,6 @@
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 { n as identityReuseMachine } from "./identityReuseStateMachine-Cqc-NwEQ.esm.js";
4
-
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 { n as identityReuseMachine } from "./identityReuseStateMachine-CM45EBrb.esm.js";
5
4
  //#region src/modules/identity-reuse/identityReuseActor.ts
6
5
  /**
7
6
  * Creates and starts an IdentityReuse actor.
@@ -11,7 +10,6 @@ import { n as identityReuseMachine } from "./identityReuseStateMachine-Cqc-NwEQ.
11
10
  function createIdentityReuseActor(options) {
12
11
  return createActor(identityReuseMachine, { input: { config: options.config } }).start();
13
12
  }
14
-
15
13
  //#endregion
16
14
  //#region src/modules/identity-reuse/identityReuseManager.ts
17
15
  function mapState(snapshot) {
@@ -33,9 +31,17 @@ function mapState(snapshot) {
33
31
  }
34
32
  function createApi({ actor, trackElementClicked }) {
35
33
  return {
34
+ /**
35
+ * Fetches reusable documents from the backend.
36
+ * Transitions from 'idle' to 'loading'.
37
+ */
36
38
  load() {
37
39
  actor.send({ type: "LOAD" });
38
40
  },
41
+ /**
42
+ * Selects a document by id, or the `'scanNew'` sentinel to indicate the
43
+ * user prefers to scan a new document instead of reusing one.
44
+ */
39
45
  chooseDocument(documentId) {
40
46
  trackElementClicked?.("chooseDocument");
41
47
  actor.send({
@@ -43,14 +49,26 @@ function createApi({ actor, trackElementClicked }) {
43
49
  documentId
44
50
  });
45
51
  },
52
+ /**
53
+ * Confirms the current selection. If a document is selected, submits it
54
+ * for reuse; if the scan-new row is selected, finishes the module without
55
+ * submitting (orchestration will load the next node).
56
+ */
46
57
  submit() {
47
58
  trackElementClicked?.("submit");
48
59
  actor.send({ type: "SUBMIT" });
49
60
  },
61
+ /**
62
+ * Skips identity reuse entirely. Finishes the module without submitting;
63
+ * orchestration moves on to the next node.
64
+ */
50
65
  skip() {
51
66
  trackElementClicked?.("skip");
52
67
  actor.send({ type: "SKIP" });
53
68
  },
69
+ /**
70
+ * Retries loading documents after an error.
71
+ */
54
72
  retry() {
55
73
  trackElementClicked?.("retry");
56
74
  actor.send({ type: "RETRY" });
@@ -90,6 +108,5 @@ function createIdentityReuseManagerFromActor(actor) {
90
108
  instrumentation: createManagerInstrumentation(eventModuleNames.identityReuse)
91
109
  });
92
110
  }
93
-
94
111
  //#endregion
95
- export { createIdentityReuseManagerFromActor as n, createIdentityReuseManager as t };
112
+ export { createIdentityReuseManagerFromActor as n, createIdentityReuseManager as t };
@@ -1,9 +1,8 @@
1
- import { t as Manager } from "./Manager-DE5DydXZ.js";
2
- import { t as ActorRefFrom } from "./Actor-CdjYVucI.js";
3
- import * as xstate304 from "xstate";
4
-
1
+ import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
2
+ import "./StateMachine-EDpYWy0i.js";
3
+ import { t as Manager } from "./Manager-CQQ99QOI.js";
4
+ import "./Actor-iTq7YY48.js";
5
5
  //#region src/modules/identity-reuse/types.d.ts
6
-
7
6
  /**
8
7
  * Configuration options for the IdentityReuse module.
9
8
  *
@@ -76,7 +75,7 @@ type IdentityReuseContext = {
76
75
  type IdentityReuseInput = {
77
76
  config: IdentityReuseConfig;
78
77
  };
79
- declare const identityReuseMachine: xstate304.StateMachine<IdentityReuseContext, {
78
+ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
80
79
  type: "LOAD";
81
80
  } | {
82
81
  type: "DOCUMENT_CHOSEN";
@@ -88,36 +87,36 @@ declare const identityReuseMachine: xstate304.StateMachine<IdentityReuseContext,
88
87
  } | {
89
88
  type: "RETRY";
90
89
  }, {
91
- [x: string]: xstate304.ActorRefFromLogic<xstate304.PromiseActorLogic<FetchDocumentsResponse, void, xstate304.EventObject>> | xstate304.ActorRefFromLogic<xstate304.PromiseActorLogic<SubmitResponse, SubmitParams, xstate304.EventObject>> | undefined;
92
- }, xstate304.Values<{
90
+ [x: string]: ActorRefFromLogic<PromiseActorLogic<FetchDocumentsResponse, void, EventObject>> | ActorRefFromLogic<PromiseActorLogic<SubmitResponse, SubmitParams, EventObject>> | undefined;
91
+ }, Values<{
93
92
  fetchDocuments: {
94
93
  src: "fetchDocuments";
95
- logic: xstate304.PromiseActorLogic<FetchDocumentsResponse, void, xstate304.EventObject>;
94
+ logic: PromiseActorLogic<FetchDocumentsResponse, void, EventObject>;
96
95
  id: string | undefined;
97
96
  };
98
97
  submitDocument: {
99
98
  src: "submitDocument";
100
- logic: xstate304.PromiseActorLogic<SubmitResponse, SubmitParams, xstate304.EventObject>;
99
+ logic: PromiseActorLogic<SubmitResponse, SubmitParams, EventObject>;
101
100
  id: string | undefined;
102
101
  };
103
- }>, xstate304.Values<{
102
+ }>, Values<{
104
103
  setDocuments: {
105
104
  type: "setDocuments";
106
- params: xstate304.NonReducibleUnknown;
105
+ params: NonReducibleUnknown;
107
106
  };
108
107
  setError: {
109
108
  type: "setError";
110
- params: xstate304.NonReducibleUnknown;
109
+ params: NonReducibleUnknown;
111
110
  };
112
111
  clearError: {
113
112
  type: "clearError";
114
- params: xstate304.NonReducibleUnknown;
113
+ params: NonReducibleUnknown;
115
114
  };
116
115
  setSelectedDocument: {
117
116
  type: "setSelectedDocument";
118
- params: xstate304.NonReducibleUnknown;
117
+ params: NonReducibleUnknown;
119
118
  };
120
- }>, xstate304.Values<{
119
+ }>, Values<{
121
120
  hasDocuments: {
122
121
  type: "hasDocuments";
123
122
  params: unknown;
@@ -126,64 +125,62 @@ declare const identityReuseMachine: xstate304.StateMachine<IdentityReuseContext,
126
125
  type: "hasSelection";
127
126
  params: unknown;
128
127
  };
129
- }>, never, "error" | "idle" | "finished" | "loading" | "documentsFound" | "submitting", string, IdentityReuseInput, xstate304.NonReducibleUnknown, xstate304.EventObject, xstate304.MetaObject, {
128
+ }>, never, "error" | "idle" | "finished" | "loading" | "documentsFound" | "submitting", string, IdentityReuseInput, NonReducibleUnknown, EventObject, MetaObject, {
130
129
  readonly id: "identityReuse";
131
130
  readonly initial: "idle";
132
- readonly context: ({
133
- input
134
- }: {
131
+ readonly context: ({ input }: {
135
132
  spawn: {
136
133
  <TSrc extends "fetchDocuments" | "submitDocument">(logic: TSrc, ...[options]: ({
137
134
  src: "fetchDocuments";
138
- logic: xstate304.PromiseActorLogic<FetchDocumentsResponse, void, xstate304.EventObject>;
135
+ logic: PromiseActorLogic<FetchDocumentsResponse, void, EventObject>;
139
136
  id: string | undefined;
140
- } extends infer T ? T extends {
137
+ } extends (infer T) ? T extends {
141
138
  src: "fetchDocuments";
142
- logic: xstate304.PromiseActorLogic<FetchDocumentsResponse, void, xstate304.EventObject>;
139
+ logic: PromiseActorLogic<FetchDocumentsResponse, void, EventObject>;
143
140
  id: string | undefined;
144
141
  } ? T extends {
145
142
  src: TSrc;
146
- } ? xstate304.ConditionalRequired<[options?: ({
143
+ } ? ConditionalRequired<[options?: ({
147
144
  id?: T["id"] | undefined;
148
145
  systemId?: string;
149
- input?: xstate304.InputFrom<T["logic"]> | undefined;
146
+ input?: InputFrom<T["logic"]> | undefined;
150
147
  syncSnapshot?: boolean;
151
- } & { [K in xstate304.RequiredActorOptions<T>]: unknown }) | undefined], xstate304.IsNotNever<xstate304.RequiredActorOptions<T>>> : never : never : never) | ({
148
+ } & { [K in RequiredActorOptions<T>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T>>> : never : never : never) | ({
152
149
  src: "submitDocument";
153
- logic: xstate304.PromiseActorLogic<SubmitResponse, SubmitParams, xstate304.EventObject>;
150
+ logic: PromiseActorLogic<SubmitResponse, SubmitParams, EventObject>;
154
151
  id: string | undefined;
155
- } extends infer T_1 ? T_1 extends {
152
+ } extends (infer T_1) ? T_1 extends {
156
153
  src: "submitDocument";
157
- logic: xstate304.PromiseActorLogic<SubmitResponse, SubmitParams, xstate304.EventObject>;
154
+ logic: PromiseActorLogic<SubmitResponse, SubmitParams, EventObject>;
158
155
  id: string | undefined;
159
156
  } ? T_1 extends {
160
157
  src: TSrc;
161
- } ? xstate304.ConditionalRequired<[options?: ({
158
+ } ? ConditionalRequired<[options?: ({
162
159
  id?: T_1["id"] | undefined;
163
160
  systemId?: string;
164
- input?: xstate304.InputFrom<T_1["logic"]> | undefined;
161
+ input?: InputFrom<T_1["logic"]> | undefined;
165
162
  syncSnapshot?: boolean;
166
- } & { [K_1 in xstate304.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate304.IsNotNever<xstate304.RequiredActorOptions<T_1>>> : never : never : never)): xstate304.ActorRefFromLogic<xstate304.GetConcreteByKey<xstate304.Values<{
163
+ } & { [K_1 in RequiredActorOptions<T_1>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T_1>>> : never : never : never)): ActorRefFromLogic<GetConcreteByKey<Values<{
167
164
  fetchDocuments: {
168
165
  src: "fetchDocuments";
169
- logic: xstate304.PromiseActorLogic<FetchDocumentsResponse, void, xstate304.EventObject>;
166
+ logic: PromiseActorLogic<FetchDocumentsResponse, void, EventObject>;
170
167
  id: string | undefined;
171
168
  };
172
169
  submitDocument: {
173
170
  src: "submitDocument";
174
- logic: xstate304.PromiseActorLogic<SubmitResponse, SubmitParams, xstate304.EventObject>;
171
+ logic: PromiseActorLogic<SubmitResponse, SubmitParams, EventObject>;
175
172
  id: string | undefined;
176
173
  };
177
174
  }>, "src", TSrc>["logic"]>;
178
- <TLogic extends xstate304.AnyActorLogic>(src: TLogic, ...[options]: xstate304.ConditionalRequired<[options?: ({
175
+ <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: ({
179
176
  id?: never;
180
177
  systemId?: string;
181
- input?: xstate304.InputFrom<TLogic> | undefined;
178
+ input?: InputFrom<TLogic> | undefined;
182
179
  syncSnapshot?: boolean;
183
- } & { [K in xstate304.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate304.IsNotNever<xstate304.RequiredLogicInput<TLogic>>>): xstate304.ActorRefFromLogic<TLogic>;
180
+ } & { [K in RequiredLogicInput<TLogic>]: unknown; }) | undefined], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
184
181
  };
185
182
  input: IdentityReuseInput;
186
- self: xstate304.ActorRef<xstate304.MachineSnapshot<IdentityReuseContext, {
183
+ self: ActorRef<MachineSnapshot<IdentityReuseContext, {
187
184
  type: "LOAD";
188
185
  } | {
189
186
  type: "DOCUMENT_CHOSEN";
@@ -194,7 +191,7 @@ declare const identityReuseMachine: xstate304.StateMachine<IdentityReuseContext,
194
191
  type: "SKIP";
195
192
  } | {
196
193
  type: "RETRY";
197
- }, Record<string, xstate304.AnyActorRef | undefined>, xstate304.StateValue, string, unknown, any, any>, {
194
+ }, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, {
198
195
  type: "LOAD";
199
196
  } | {
200
197
  type: "DOCUMENT_CHOSEN";
@@ -205,7 +202,7 @@ declare const identityReuseMachine: xstate304.StateMachine<IdentityReuseContext,
205
202
  type: "SKIP";
206
203
  } | {
207
204
  type: "RETRY";
208
- }, xstate304.AnyEventObject>;
205
+ }, AnyEventObject>;
209
206
  }) => {
210
207
  config: IdentityReuseConfig;
211
208
  documents: never[];
@@ -255,9 +252,7 @@ declare const identityReuseMachine: xstate304.StateMachine<IdentityReuseContext,
255
252
  readonly invoke: {
256
253
  readonly id: "submitDocument";
257
254
  readonly src: "submitDocument";
258
- readonly input: ({
259
- context
260
- }: {
255
+ readonly input: ({ context }: {
261
256
  context: IdentityReuseContext;
262
257
  }) => SubmitParams;
263
258
  readonly onDone: {
@@ -1,7 +1,7 @@
1
- import { t as api } from "./api-DsbUi7TO.esm.js";
2
- import { t as endpoints } from "./endpoints-CwrFQfW7.esm.js";
3
- import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-nY3M5UYm.esm.js";
4
-
1
+ import { t as api } from "./api-BDTZNnca.esm.js";
2
+ import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
3
+ import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
+ import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
5
  //#region src/modules/identity-reuse/identityReuseServices.ts
6
6
  function lowerFirstLetter(value) {
7
7
  if (!value) return value;
@@ -42,7 +42,6 @@ async function submitDocument(params, signal) {
42
42
  if (!res.ok) throw new Error(`POST ${endpoints.identityReuseSubmit} failed: ${res.status} ${res.statusText} — ${JSON.stringify(res.data)}`);
43
43
  return res.data;
44
44
  }
45
-
46
45
  //#endregion
47
46
  //#region src/modules/identity-reuse/identityReuseStateMachine.ts
48
47
  /**
@@ -51,7 +50,7 @@ async function submitDocument(params, signal) {
51
50
  */
52
51
  const SCAN_NEW_DOCUMENT = "scanNew";
53
52
  function deriveSubmitParams(selectedDocumentId) {
54
- if (selectedDocumentId === SCAN_NEW_DOCUMENT || !selectedDocumentId) return { accepted: false };
53
+ if (selectedDocumentId === "scanNew" || !selectedDocumentId) return { accepted: false };
55
54
  return {
56
55
  accepted: true,
57
56
  documentId: selectedDocumentId
@@ -143,6 +142,5 @@ const identityReuseMachine = setup({
143
142
  } }
144
143
  }
145
144
  });
146
-
147
145
  //#endregion
148
- export { identityReuseMachine as n, SCAN_NEW_DOCUMENT as t };
146
+ export { identityReuseMachine as n, SCAN_NEW_DOCUMENT as t };
@@ -0,0 +1 @@
1
+ import "./Manager-CQQ99QOI.js";
@@ -0,0 +1,258 @@
1
+ //#region ../../node_modules/.pnpm/@incodetech+tri-sdk@0.5.1/node_modules/@incodetech/tri-sdk/dist/index.d.ts
2
+ type CollectorKey = 'fingerprint' | 'pointer' | 'pointermove' | 'focus' | 'input' | 'keystroke' | 'clipboard' | 'form' | 'change' | 'selection' | 'tab' | 'visibility' | 'navigation' | 'viewportresize' | 'viewport' | 'scroll' | 'sensors' | 'network-request' | 'networkconnection' | 'screen';
3
+ type CollectorEventMap = {
4
+ /**
5
+ * Configurable unit keys. `'pointer'` represents the paired pointerdown/pointerup
6
+ * listeners; `'click'`, `'dblclick'`, and `'contextmenu'` are independent.
7
+ */
8
+ pointer: 'pointer' | 'click' | 'dblclick' | 'contextmenu';
9
+ clipboard: 'paste' | 'cut' | 'copy';
10
+ form: 'submit' | 'invalid';
11
+ tab: 'state' | 'count';
12
+ viewport: 'orientationchange' | 'devicepixelratiochange';
13
+ /** All-or-nothing: single events or inseparable pairs — no sub-event config. */
14
+ input: never;
15
+ focus: never;
16
+ keystroke: never;
17
+ change: never;
18
+ selection: never;
19
+ visibility: never;
20
+ pointermove: never;
21
+ fingerprint: never;
22
+ navigation: never;
23
+ viewportresize: never;
24
+ scroll: never;
25
+ sensors: 'motion' | 'orientation' | 'light';
26
+ 'network-request': never;
27
+ networkconnection: never;
28
+ screen: never;
29
+ };
30
+ type Layer = 'session' | 'behavioral' | 'device-fingerprinting';
31
+ /**
32
+ * Hook that allows the host application to extend or replace the SDK's default
33
+ * URL sanitiser. Called for every URL before it is placed on the wire.
34
+ *
35
+ * Receives the raw URL and the SDK's `defaultSanitize` implementation.
36
+ * The host may call `defaultSanitize(url)` to obtain the already-sanitised
37
+ * string and further transform it (e.g. remove additional path segments it
38
+ * knows are PII), or may bypass the default entirely for full control.
39
+ *
40
+ * If this function throws, the SDK falls back to `defaultSanitize(url)`.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * sanitizeUrl: (url, defaultSanitize) => {
45
+ * const sanitised = defaultSanitize(url)
46
+ * return sanitised.replace(/\/internal\/[^/]+/, '/internal/:id')
47
+ * }
48
+ * ```
49
+ */
50
+ type IncodeSanitizeUrlHook = (url: string, defaultSanitize: (url: string) => string) => string;
51
+ /**
52
+ * Global PII capture level for element context.
53
+ *
54
+ * - `'all'` — all element fields emitted; PII identifiers and labels included.
55
+ * Consumers should annotate sensitive elements with `data-tri-redact`.
56
+ * - `'redact'` — PII identifiers (`id`, `name`, label, classes) set to `null`.
57
+ * **Default.** Per-element overrides via `data-tri-redact` / `data-tri-ignore`.
58
+ * - `'off'` — Element Context Processor is skipped entirely; `element` is always `null`.
59
+ */
60
+ type CaptureElementLevel = 'all' | 'redact' | 'off';
61
+ /**
62
+ * Controls whether text content is captured from interacted elements.
63
+ *
64
+ * - `'on'` — text content emitted (default).
65
+ * - `'off'` — text content field is always `null`.
66
+ */
67
+ type CaptureContentLevel = 'on' | 'off';
68
+ /**
69
+ * Public SDK configuration. Both `layers` and `collectors` are optional; pass at
70
+ * most one. When neither is provided, every collector defaults to enabled (same
71
+ * behaviour as calling `start()` with no config).
72
+ */
73
+ type IncodeTRIConfig = TRIConfigBase & (LayerBasedConfig | CollectorBasedConfig | NoCollectorSelectionConfig);
74
+ /** Shared config fields present regardless of which selector variant is used. */
75
+ type TRIConfigBase = {
76
+ apiURL: string;
77
+ /**
78
+ * SDK token obtained from a B2B server call or via `createSession`.
79
+ * This is the short-lived token that identifies a specific SDK session —
80
+ * the consumer's API key must never be passed here.
81
+ */
82
+ token: string;
83
+ /**
84
+ * When `true` (the default), `setup()` calls `start()` automatically after
85
+ * configuration completes and returns the resulting started state. When
86
+ * `false`, `setup()` returns `'ready'` and collection is deferred — call
87
+ * `start()` explicitly when collection should begin (e.g. after a consent
88
+ * gate).
89
+ */
90
+ autostart?: boolean;
91
+ capture?: {
92
+ element?: CaptureElementLevel;
93
+ content?: CaptureContentLevel;
94
+ };
95
+ apiVersion?: string;
96
+ /**
97
+ * Optional URL sanitiser hook. When omitted, the SDK applies its built-in
98
+ * default (strip credentials + fragment, redact query values, tokenise
99
+ * identifier path segments). Supply this to apply additional redaction
100
+ * on top of the default or to replace it entirely.
101
+ */
102
+ sanitizeUrl?: IncodeSanitizeUrlHook;
103
+ /**
104
+ * When `true`, the SDK emits diagnostic messages via `logger.warn`,
105
+ * `logger.error`, and `logger.info`. Defaults to `false`. Has no effect on
106
+ * `logger.fatal`, which always emits regardless of this flag.
107
+ */
108
+ DEBUG?: boolean;
109
+ };
110
+ /**
111
+ * Per-collector event configuration exposed in the public `CollectorsConfig`.
112
+ * Each key maps to an optional boolean; omitted events default to enabled (`true`).
113
+ */
114
+ type CollectorEventsConfig<C extends CollectorKey> = { [E in CollectorEventMap[C]]?: boolean; };
115
+ /**
116
+ * Per-collector configuration. Eventless collectors (whose `CollectorEventMap`
117
+ * entry is `never`) only accept `enabled`; event-bearing collectors additionally
118
+ * accept an `events` map.
119
+ */
120
+ type CollectorConfig<C extends CollectorKey> = [CollectorEventMap[C]] extends [never] ? {
121
+ enabled?: boolean;
122
+ } : {
123
+ enabled?: boolean;
124
+ events?: CollectorEventsConfig<C>;
125
+ };
126
+ /**
127
+ * Host-supplied collector configuration map. Every key is optional — omitted
128
+ * collectors default to `disabled` when this field is present on `IncodeTRIConfig`.
129
+ */
130
+ type CollectorsConfig = { [C in CollectorKey]?: CollectorConfig<C>; };
131
+ /** Enables all collectors whose `layer` matches one of the provided keys. Omitted layers default to disabled. */
132
+ type LayerBasedConfig = {
133
+ layers: Partial<Record<Layer, boolean>>;
134
+ collectors?: never;
135
+ };
136
+ /** Enables only the collectors explicitly listed, each with optional per-event overrides. */
137
+ type CollectorBasedConfig = {
138
+ layers?: never;
139
+ collectors: CollectorsConfig;
140
+ };
141
+ /** No collector filtering — all collectors are enabled by default. */
142
+ type NoCollectorSelectionConfig = {
143
+ layers?: never;
144
+ collectors?: never;
145
+ };
146
+ /**
147
+ * Life-cycle states for an `IncodeTRI` instance.
148
+ *
149
+ * - `'idle'` — initial state; `setup()` has not completed successfully.
150
+ * - `'ready'` — managers are wired and ready; `start()` may be called.
151
+ * - `'starting'` — `start()` has been called; async sequence in progress.
152
+ * - `'started'` — all managers are running and collecting.
153
+ * - `'collection-disabled'` — collection is disabled for the provided SDK token.
154
+ * - `'init-failed'` — setup failed.
155
+ */
156
+ type IncodeTRIState = 'idle' | 'ready' | 'starting' | 'started' | 'collection-disabled' | 'init-failed';
157
+ interface SessionError {
158
+ status: number;
159
+ message: string;
160
+ }
161
+ interface Session {
162
+ token: string | null;
163
+ expiresAt: number | null;
164
+ tokenType: 'sdk' | null;
165
+ eventsCollectionEnabled: boolean;
166
+ error: SessionError | null;
167
+ }
168
+ //#endregion
169
+ //#region ../infra/src/tri/TransactionalRiskIntelligence.d.ts
170
+ /**
171
+ * Runtime TRI configuration passed to `IncodeTRI.setup`.
172
+ * Mirrors the upstream `IncodeTRIConfig` (a `TRIConfigBase` intersected with a
173
+ * layer-/collector-based selector union).
174
+ */
175
+ type TransactionalRiskIntelligenceConfig = IncodeTRIConfig;
176
+ type TransactionalRiskIntelligenceState = IncodeTRIState;
177
+ /**
178
+ * Result of exchanging an organization API key for a short-lived TRI SDK token.
179
+ * Mirrors the upstream `Session` shape: `{ token, eventsCollectionEnabled, error? }`.
180
+ */
181
+ type TransactionalRiskIntelligenceSession = Session;
182
+ /**
183
+ * Options accepted by the TRI `createSession` exchange. The upstream SDK does
184
+ * not export this shape, so it is mirrored here.
185
+ */
186
+ type TransactionalRiskIntelligenceSessionOptions = {
187
+ apiURL?: string;
188
+ signal?: AbortSignal;
189
+ timeout?: number;
190
+ };
191
+ //#endregion
192
+ //#region src/integrations/tri/types.d.ts
193
+ /**
194
+ * Setup-time TRI configuration supplied as `SetupOptions.tri`.
195
+ *
196
+ * Alias for `TransactionalRiskIntelligenceConfig`. `autostart` is defined on
197
+ * the base config (`IncodeTRIConfig.autostart`) — when `true` (the default),
198
+ * `setupTRI()` also starts collection automatically. Pass `autostart: false`
199
+ * to defer collection to an explicit `startTRI()` call (e.g. after a consent
200
+ * gate).
201
+ *
202
+ * `token` and `apiURL` are both required. TRI will not start unless both are
203
+ * present — omitting either is the implicit opt-out.
204
+ */
205
+ type TransactionalRiskIntelligenceSetupConfig = TransactionalRiskIntelligenceConfig;
206
+ //#endregion
207
+ //#region src/integrations/tri/tri.d.ts
208
+ /**
209
+ * Returns `true` when TRI collectors are currently running (a successful
210
+ * `setupTRI()` autostart or explicit `startTRI()`, with no subsequent
211
+ * `stopTRI()`/`resetTRI()`). Returns `false` before setup or after teardown.
212
+ */
213
+ declare function isTRIStarted(): boolean;
214
+ /**
215
+ * Exchanges an organization API key for a short-lived TRI SDK token. This is
216
+ * the entry point that triggers the lazy-load of `@incodetech/tri-sdk` (via the
217
+ * provider's dynamic `import()`); the cached lazy handle is reused by a
218
+ * subsequent `setupTRI()`.
219
+ *
220
+ * In production the exchange should happen server-side. On a load timeout or
221
+ * failure the returned session carries `token: null` and an `error`, rather
222
+ * than throwing.
223
+ *
224
+ * @param apiKey - Organization API key.
225
+ * @param options - Optional `apiURL`, `signal`, and `timeout` overrides.
226
+ */
227
+ declare function createTRISession(apiKey: string, options?: TransactionalRiskIntelligenceSessionOptions): Promise<TransactionalRiskIntelligenceSession>;
228
+ /**
229
+ * Calls the provider's `setup()` with the given config. This is the step that
230
+ * lazy-loads `@incodetech/tri-sdk`, validates the config, and checks the
231
+ * backend collection-status endpoint. When `config.autostart` is `true` (the
232
+ * default), also calls `start()` internally and returns `'started'` on
233
+ * success. Pass `autostart: false` to receive `'ready'` and start explicitly.
234
+ *
235
+ * @param config - Resolved TRI config (`token` and `apiURL` required).
236
+ * @returns The resulting {@link TransactionalRiskIntelligenceState}.
237
+ */
238
+ declare function setupTRI(config: TransactionalRiskIntelligenceConfig): Promise<TransactionalRiskIntelligenceState>;
239
+ /**
240
+ * Begins behavioral data collection. Requires a prior successful `setupTRI()`
241
+ * call with `autostart: false`. Returns `'init-failed'` without starting if
242
+ * called before setup, or is a no-op if already started.
243
+ *
244
+ * @returns The resulting {@link TransactionalRiskIntelligenceState}.
245
+ */
246
+ declare function startTRI(): Promise<TransactionalRiskIntelligenceState>;
247
+ /**
248
+ * Stops all TRI collectors and managers. Idempotent. No-op if TRI was never
249
+ * set up.
250
+ */
251
+ declare function stopTRI(): Promise<TransactionalRiskIntelligenceState>;
252
+ /**
253
+ * Resets the TRI SDK to its initial state. Call this from the SDK's `reset()`
254
+ * so that a subsequent `setupTRI` / `startTRI` can begin fresh.
255
+ */
256
+ declare function resetTRI(): Promise<TransactionalRiskIntelligenceState>;
257
+ //#endregion
258
+ export { startTRI as a, setupTRI as i, isTRIStarted as n, stopTRI as o, resetTRI as r, TransactionalRiskIntelligenceSetupConfig as s, createTRISession as t };