@incodetech/core 0.0.0-dev-20260702-cc2ced08 → 0.0.0-dev-20260702-75032d4d

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 (158) hide show
  1. package/dist/{3dAvatarProvider-3yqmC0fd.esm.js → 3dAvatarProvider-CVwSAzDw.esm.js} +1 -1
  2. package/dist/{Face2DProvider-C-fAuV-p.esm.js → Face2DProvider-BuWoUgFl.esm.js} +1 -1
  3. package/dist/{FaceDetectionProvider-B4SVWfK7.d.ts → FaceDetectionProvider-5ODfa48C.d.ts} +2 -2
  4. package/dist/{IWasmUtilCapability-Dpg64Qr2.d.ts → IWasmUtilCapability-D7S5rkSH.d.ts} +2 -2
  5. package/dist/{Manager-BUc6OqO5.d.ts → Manager-goNPc_h_.d.ts} +1 -4
  6. package/dist/{OpenViduRecordingProvider-DmA__QfK.esm.js → OpenViduRecordingProvider-CK6A5kiU.esm.js} +1 -1
  7. package/dist/StateMachine-D5WO6lHS.d.ts +2 -0
  8. package/dist/{StreamCanvasCapture-BqaiJxNa.d.ts → StreamCanvasCapture-DHaWferF.d.ts} +2 -2
  9. package/dist/ae-signature.d.ts +4 -3
  10. package/dist/antifraud.d.ts +4 -3
  11. package/dist/{antifraudManager-DcraYd6r.d.ts → antifraudManager-DCiNI6np.d.ts} +2 -2
  12. package/dist/authentication.d.ts +19 -18
  13. package/dist/authentication.esm.js +7 -7
  14. package/dist/{authenticationManager-BwUutUMI.d.ts → authenticationManager-B2DqMiXJ.d.ts} +3 -3
  15. package/dist/{authenticationManager-BVM5Czih.esm.js → authenticationManager-C3fe4lGI.esm.js} +2 -2
  16. package/dist/{authenticationStateMachine-BUb8hzFa.esm.js → authenticationStateMachine-CYois9xB.esm.js} +2 -2
  17. package/dist/avatar.d.ts +2 -2
  18. package/dist/avatar.esm.js +1 -1
  19. package/dist/camera.d.ts +1 -1
  20. package/dist/certificate-issuance.d.ts +31 -30
  21. package/dist/consent.d.ts +4 -3
  22. package/dist/{consentManager-BvDJp7BI.d.ts → consentManager-D8ocqmks.d.ts} +52 -52
  23. package/dist/cpf-ocr.d.ts +4 -3
  24. package/dist/{cpfOcrManager-CLrn17Kf.d.ts → cpfOcrManager-DLLe64mr.d.ts} +22 -22
  25. package/dist/{createFaceAvatar-CiNyvRNO.esm.js → createFaceAvatar-97WdPBmX.esm.js} +3 -3
  26. package/dist/{createFaceAvatar-tloe__L_.d.ts → createFaceAvatar-CpdYp9Iy.d.ts} +1 -1
  27. package/dist/cross-document-data-match.d.ts +2 -1
  28. package/dist/curp-validation.d.ts +10 -9
  29. package/dist/{curpValidationManager-Bd_J27C3.d.ts → curpValidationManager-CoqODZx5.d.ts} +3 -3
  30. package/dist/custom-fields.d.ts +3 -2
  31. package/dist/custom-watchlist.d.ts +2 -1
  32. package/dist/document-capture.d.ts +236 -235
  33. package/dist/document-upload.d.ts +51 -50
  34. package/dist/dynamic-forms.d.ts +3 -3
  35. package/dist/ekyb.d.ts +9 -8
  36. package/dist/ekyb.esm.js +4 -4
  37. package/dist/{ekybStateMachine-BzMz39iQ.esm.js → ekybStateMachine-DURK25z4.esm.js} +1 -1
  38. package/dist/ekyc.d.ts +4 -3
  39. package/dist/electronic-signature.d.ts +4 -3
  40. package/dist/email.d.ts +5 -4
  41. package/dist/{emailManager-DB7-HTVr.d.ts → emailManager-D1dWWxLM.d.ts} +3 -3
  42. package/dist/extensibility.d.ts +34 -32
  43. package/dist/extensibility.esm.js +18 -16
  44. package/dist/face-match.d.ts +2 -2
  45. package/dist/face-match.esm.js +1 -1
  46. package/dist/{faceCaptureManagerFactory-BbFl762r.esm.js → faceCaptureManagerFactory-D65wC0Oy.esm.js} +1 -1
  47. package/dist/{faceCaptureManagerFactory-CyZP_Q9V.d.ts → faceCaptureManagerFactory-gdShHivE.d.ts} +13 -12
  48. package/dist/{faceCaptureSetup-CIkrBLYz.esm.js → faceCaptureSetup-DRgLc1RU.esm.js} +3 -3
  49. package/dist/field-comparison.d.ts +4 -3
  50. package/dist/{fieldComparisonManager-CjIY3Y1d.d.ts → fieldComparisonManager-CSYVU-Vk.d.ts} +2 -2
  51. package/dist/fiscal-qr.d.ts +5 -4
  52. package/dist/fiscal-qr.esm.js +1 -1
  53. package/dist/flow-events.d.ts +8 -8
  54. package/dist/flow.d.ts +14 -13
  55. package/dist/flow.esm.js +5 -5
  56. package/dist/{flowServices-DsAOXwDS.esm.js → flowServices-Gxwh37Ai.esm.js} +1 -1
  57. package/dist/geolocation.d.ts +3 -2
  58. package/dist/geolocation.esm.js +1 -1
  59. package/dist/government-validation.d.ts +4 -3
  60. package/dist/government-validation.esm.js +1 -1
  61. package/dist/home.d.ts +18 -17
  62. package/dist/http.esm.js +1 -1
  63. package/dist/id-ocr.d.ts +4 -625
  64. package/dist/id-ocr.esm.js +5 -82
  65. package/dist/id-verification.d.ts +28 -27
  66. package/dist/id-verification.esm.js +1 -1
  67. package/dist/id.d.ts +16 -15
  68. package/dist/id.esm.js +7 -7
  69. package/dist/{idCaptureManager-TBCF4TGa.esm.js → idCaptureManager-D6huHpRw.esm.js} +1 -1
  70. package/dist/{idCaptureManager-fvEYwU_l.d.ts → idCaptureManager-L0JyIaWM.d.ts} +12 -11
  71. package/dist/{idCaptureStateMachine-K6LgInsG.esm.js → idCaptureStateMachine--0-8e21I.esm.js} +5 -5
  72. package/dist/idOcrManager-D_RlFzxU.esm.js +92 -0
  73. package/dist/idOcrManager-DePAiG4n.d.ts +641 -0
  74. package/dist/identity-reuse.d.ts +4 -3
  75. package/dist/{identityReuseManager-DHveeduR.d.ts → identityReuseManager-CQSXBPUb.d.ts} +36 -36
  76. package/dist/{index-CpQYJA2K.d.ts → index-0PqCAPxK.d.ts} +2 -2
  77. package/dist/{index-BR5R9zI_.d.ts → index-4AmcrRyW.d.ts} +169 -169
  78. package/dist/index.d.ts +3 -3
  79. package/dist/index.esm.js +3 -3
  80. package/dist/mandatory-consent.d.ts +10 -9
  81. package/dist/{mandatoryConsentManager-BMFzCwXR.d.ts → mandatoryConsentManager-CfdEUGC_.d.ts} +55 -55
  82. package/dist/{onDeviceFaceResults-DlErdHcT.esm.js → onDeviceFaceResults-IJDRqtYI.esm.js} +2 -2
  83. package/dist/openviduLazy-jPgABwrt.esm.js +3 -0
  84. package/dist/{openviduLazy-BXDnVFe2.esm.js → openviduLazy-wEojM41w.esm.js} +1 -1
  85. package/dist/personhood.d.ts +16 -15
  86. package/dist/personhood.esm.js +1 -1
  87. package/dist/phone.d.ts +5 -4
  88. package/dist/{phoneManager-DWBrSRZq.d.ts → phoneManager-DitebgbQ.d.ts} +3 -3
  89. package/dist/qe-signature.d.ts +4 -3
  90. package/dist/qe-signature.esm.js +1 -1
  91. package/dist/{recordingService-D8zRQbVb.esm.js → recordingService-4pOlb2SG.esm.js} +3 -3
  92. package/dist/redirect-to-mobile.d.ts +4 -3
  93. package/dist/redirect-to-mobile.esm.js +2 -2
  94. package/dist/{redirectToMobileManager-DIc_xDDn.esm.js → redirectToMobileManager-Be0DwbuH.esm.js} +1 -1
  95. package/dist/{redirectToMobileManager-slUK-Ttt.d.ts → redirectToMobileManager-kf5afsMm.d.ts} +2 -2
  96. package/dist/selfie.d.ts +19 -18
  97. package/dist/selfie.esm.js +8 -8
  98. package/dist/{selfieManager-CARwc0rJ.d.ts → selfieManager-B0nFzgeP.d.ts} +3 -3
  99. package/dist/{selfieManager-CjFFQTKK.esm.js → selfieManager-By-EP_q4.esm.js} +2 -2
  100. package/dist/{selfieStateMachine-2UJDOv3d.esm.js → selfieStateMachine-Dn3Vh_z_.esm.js} +2 -2
  101. package/dist/session.d.ts +7 -7
  102. package/dist/session.esm.js +3 -3
  103. package/dist/{sessionInitializer-C0YhqeiX.esm.js → sessionInitializer-Dk-kFR33.esm.js} +2 -2
  104. package/dist/{setup-3W6rhIxJ.esm.js → setup-DU66XiuI.esm.js} +2 -2
  105. package/dist/{setup-B0dyRJVg.d.ts → setup-Da51UnII.d.ts} +2 -2
  106. package/dist/signature.d.ts +3 -2
  107. package/dist/signature.esm.js +1 -1
  108. package/dist/{tri-D6YWLiyE.esm.js → tri-QAWxUCoY.esm.js} +1 -1
  109. package/dist/tri.d.ts +1 -1
  110. package/dist/{tri.esm-Q8X11Udu.esm.js → tri.esm-B47NPJjh.esm.js} +1 -1
  111. package/dist/tri.esm.js +1 -1
  112. package/dist/trust-graph.d.ts +4 -3
  113. package/dist/{types-B4nBoeCd.d.ts → types-B1DBrARx.d.ts} +3 -3
  114. package/dist/{types-BoOrY6Kj.d.ts → types-BUgeB2X6.d.ts} +2 -2
  115. package/dist/{types-DHIl-AtE.d.ts → types-CU_aiZL_.d.ts} +1 -1
  116. package/dist/{types-Bl8JJxqM.d.ts → types-DV3wkhQ4.d.ts} +1 -1
  117. package/dist/video-selfie.d.ts +18 -15
  118. package/dist/video-selfie.esm.js +62 -24
  119. package/dist/wasm.d.ts +3 -3
  120. package/dist/wasm.esm.js +3 -3
  121. package/dist/watchlist-for-business.d.ts +2 -1
  122. package/dist/watchlist-for-business.esm.js +1 -1
  123. package/dist/watchlist.d.ts +2 -1
  124. package/dist/watchlist.esm.js +1 -1
  125. package/dist/workflow.d.ts +116 -115
  126. package/dist/workflow.esm.js +23 -23
  127. package/package.json +1 -1
  128. package/dist/openviduLazy-lAZzee_g.esm.js +0 -3
  129. /package/dist/{Actor-Du_LU0S4.d.ts → Actor-BwgmOPkb.d.ts} +0 -0
  130. /package/dist/{IVisibilityObserverCapability-D8EjWdOj.d.ts → IVisibilityObserverCapability-BZ1rE7ly.d.ts} +0 -0
  131. /package/dist/{PrivacyLensProvider-D3KyqFh7.esm.js → PrivacyLensProvider-CZnkF34Z.esm.js} +0 -0
  132. /package/dist/{browser-DlFgHpoC-D0saHs_w.esm.js → browser-DlFgHpoC-BieMg30k.esm.js} +0 -0
  133. /package/dist/{camera-DtXTDZWt.d.ts → camera-CKU96nwJ.d.ts} +0 -0
  134. /package/dist/{canvas-Dcq7XIdx.d.ts → canvas-90BqS0NF.d.ts} +0 -0
  135. /package/dist/{deepsightLoader-C2P7w1dA.esm.js → deepsightLoader-BrK1yV0-.esm.js} +0 -0
  136. /package/dist/{deepsightService-DMGqYUMO.d.ts → deepsightService-BgdEmIRg.d.ts} +0 -0
  137. /package/dist/{faceMatchStateMachine-CDx5ZRhv.esm.js → faceMatchStateMachine-BLL5aQX6.esm.js} +0 -0
  138. /package/dist/{flowCompletionService-BqDrPtNh.esm.js → flowCompletionService-C4ciNLxe.esm.js} +0 -0
  139. /package/dist/{flowCompletionService-CY9Cb5V1.d.ts → flowCompletionService-SXnPwz9I.d.ts} +0 -0
  140. /package/dist/{geolocationStateMachine-BYfOOOG0.esm.js → geolocationStateMachine-Vs5GfQ8l.esm.js} +0 -0
  141. /package/dist/{governmentValidationStateMachine-yCQaD7zl.esm.js → governmentValidationStateMachine-EKSIq4v9.esm.js} +0 -0
  142. /package/dist/{http-C6s60xSe.esm.js → http-CBbBcnBa.esm.js} +0 -0
  143. /package/dist/{idOcrStateMachine-6vUdYjRV.esm.js → idOcrStateMachine-DLz_gexF.esm.js} +0 -0
  144. /package/dist/{idVerificationStateMachine-cT7LtSYe.esm.js → idVerificationStateMachine-BOz1v4AY.esm.js} +0 -0
  145. /package/dist/{index-CCG6MnCO.d.ts → index-BAyZ8_iI.d.ts} +0 -0
  146. /package/dist/{invokeOnCaptureCallback-DrpXOwkG.esm.js → invokeOnCaptureCallback-uZ42DiUz.esm.js} +0 -0
  147. /package/dist/{lib-TRTXfron.esm.js → lib-Bjd6nOLG.esm.js} +0 -0
  148. /package/dist/{mediapipeShared-yKDdOf_V.esm.js → mediapipeShared-Bcmkzs3x.esm.js} +0 -0
  149. /package/dist/{otp-DyNGp0Po.d.ts → otp-CETbFjXH.d.ts} +0 -0
  150. /package/dist/{qe-signature-D5gwX-fY.esm.js → qe-signature-mU2bJh-u.esm.js} +0 -0
  151. /package/dist/{redirectToMobileStateMachine-H-iEztA6.esm.js → redirectToMobileStateMachine-DaZBdvQA.esm.js} +0 -0
  152. /package/dist/{runChildModule-Wr_2wB1m.esm.js → runChildModule-D-rDy5jB.esm.js} +0 -0
  153. /package/dist/{signatureStateMachine-c-HlL0-y.esm.js → signatureStateMachine-DWob8P45.esm.js} +0 -0
  154. /package/dist/{types-CYK29a4w.d.ts → types-BcF-fii5.d.ts} +0 -0
  155. /package/dist/{types-BXkFotpx.d.ts → types-BgjMAEXl.d.ts} +0 -0
  156. /package/dist/{warmup-DzJ0I4Kv.d.ts → warmup-CZ80odyW.d.ts} +0 -0
  157. /package/dist/{watchlistForBusinessStateMachine-DNaxGviI.esm.js → watchlistForBusinessStateMachine-Do3drRT5.esm.js} +0 -0
  158. /package/dist/{watchlistStateMachine-DPLVxv_x.esm.js → watchlistStateMachine-D6A4O5rK.esm.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { a as fromPromise, r as assign } from "./xstate.esm-Bomq1a0z.esm.js";
2
- import { t as faceCaptureMachine } from "./faceCaptureSetup-CIkrBLYz.esm.js";
3
- import { i as prepareOnDeviceFaceUpload, m as uploadSelfie, n as isOnDeviceMode, p as processFace, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-DlErdHcT.esm.js";
2
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-DRgLc1RU.esm.js";
3
+ import { i as prepareOnDeviceFaceUpload, m as uploadSelfie, n as isOnDeviceMode, p as processFace, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-IJDRqtYI.esm.js";
4
4
  import { t as FACE_ERROR_CODES } from "./types-CMcxlSmH.esm.js";
5
5
 
6
6
  //#region src/modules/selfie/selfieErrorUtils.ts
package/dist/session.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import "./camera-DtXTDZWt.js";
2
- import "./types-Bl8JJxqM.js";
3
- import "./types-BXkFotpx.js";
4
- import "./canvas-Dcq7XIdx.js";
5
- import "./createFaceAvatar-tloe__L_.js";
6
- import { a as RegulationTypes } from "./types-BoOrY6Kj.js";
7
- import { n as FinishStatus, r as GetFinishStatusFn, s as getFinishStatus } from "./flowCompletionService-CY9Cb5V1.js";
1
+ import "./camera-CKU96nwJ.js";
2
+ import "./types-DV3wkhQ4.js";
3
+ import "./types-BgjMAEXl.js";
4
+ import "./canvas-90BqS0NF.js";
5
+ import "./createFaceAvatar-CpdYp9Iy.js";
6
+ import { a as RegulationTypes } from "./types-BUgeB2X6.js";
7
+ import { n as FinishStatus, r as GetFinishStatusFn, s as getFinishStatus } from "./flowCompletionService-SXnPwz9I.js";
8
8
 
9
9
  //#region src/internal/fingerprint/types.d.ts
10
10
 
@@ -5,14 +5,14 @@ import "./types-ElOJAGaM.esm.js";
5
5
  import "./endpoints-BzMJFAPV.esm.js";
6
6
  import "./stats-CYcScXcO.esm.js";
7
7
  import "./browserSimulation-TsSoavQv.esm.js";
8
- import { r as initializeSession } from "./sessionInitializer-C0YhqeiX.esm.js";
8
+ import { r as initializeSession } from "./sessionInitializer-Dk-kFR33.esm.js";
9
9
  import "./getDeviceData-TrKM8NPh.esm.js";
10
10
  import "./thumbmarkAdapter-fHBUDlAP.esm.js";
11
11
  import "./IpifyProvider-BRW14_uo.esm.js";
12
12
  import "./platform-uIVQUnJP.esm.js";
13
- import "./tri-D6YWLiyE.esm.js";
13
+ import "./tri-QAWxUCoY.esm.js";
14
14
  import { t as IncodeApiError } from "./apiError-C7SFQTB2.esm.js";
15
15
  import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-D4m9r-7U.esm.js";
16
- import { n as getFinishStatus } from "./flowCompletionService-BqDrPtNh.esm.js";
16
+ import { n as getFinishStatus } from "./flowCompletionService-C4ciNLxe.esm.js";
17
17
 
18
18
  export { IncodeApiError, QR_VALIDATION_ERROR_CODES, QrValidationError, bootstrapSession, createSession, getFinishStatus, initializeSession, refreshQrUrlUuid, validateQrUuid };
@@ -6,7 +6,7 @@ import { a as UAParser, n as isBrowserSimulation, o as BrowserEnvironmentProvide
6
6
  import { t as getDeviceFingerprintInfo } from "./getDeviceData-TrKM8NPh.esm.js";
7
7
  import { t as getThumbmarkId } from "./thumbmarkAdapter-fHBUDlAP.esm.js";
8
8
  import { n as resetIpifyCache, t as IpifyProvider } from "./IpifyProvider-BRW14_uo.esm.js";
9
- import { i as linkSessionWithTRI, r as isTRIStarted } from "./tri-D6YWLiyE.esm.js";
9
+ import { i as linkSessionWithTRI, r as isTRIStarted } from "./tri-QAWxUCoY.esm.js";
10
10
 
11
11
  //#region ../infra/src/providers/browser/BrowserInfoProvider.ts
12
12
  var BrowserInfoProvider = class {
@@ -90,7 +90,7 @@ function resetFeatureConfigCache() {
90
90
 
91
91
  //#endregion
92
92
  //#region src/internal/version/sdkVersion.ts
93
- const SDK_VERSION = "0.0.0-dev-20260702-cc2ced08";
93
+ const SDK_VERSION = "0.0.0-dev-20260702-75032d4d";
94
94
 
95
95
  //#endregion
96
96
  //#region src/internal/fingerprint/fingerprintService.ts
@@ -5,8 +5,8 @@ import { i as upgradeToWasmHttpClient, n as installFreshHttpClient, r as resetHt
5
5
  import { f as getAnalyticsBatcher, m as setAnalyticsBatcher, p as resetAnalyticsBatcher, u as createAnalyticsBatchingService } from "./events-CqGY1yMq.esm.js";
6
6
  import { t as endpoints } from "./endpoints-BzMJFAPV.esm.js";
7
7
  import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-CYcScXcO.esm.js";
8
- import { a as setClientIpLookupEnabled, i as resetSessionInit, r as initializeSession } from "./sessionInitializer-C0YhqeiX.esm.js";
9
- import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-D6YWLiyE.esm.js";
8
+ import { a as setClientIpLookupEnabled, i as resetSessionInit, r as initializeSession } from "./sessionInitializer-Dk-kFR33.esm.js";
9
+ import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-QAWxUCoY.esm.js";
10
10
 
11
11
  //#region ../infra/src/wasm/wasmDefaults.ts
12
12
  const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
@@ -1,5 +1,5 @@
1
- import { n as WasmPipeline } from "./warmup-DzJ0I4Kv.js";
2
- import { s as TransactionalRiskIntelligenceSetupConfig } from "./index-CCG6MnCO.js";
1
+ import { n as WasmPipeline } from "./warmup-CZ80odyW.js";
2
+ import { s as TransactionalRiskIntelligenceSetupConfig } from "./index-BAyZ8_iI.js";
3
3
 
4
4
  //#region src/setup.d.ts
5
5
 
@@ -1,5 +1,6 @@
1
- import { t as Manager } from "./Manager-BUc6OqO5.js";
2
- import "./Actor-Du_LU0S4.js";
1
+ import "./StateMachine-D5WO6lHS.js";
2
+ import { t as Manager } from "./Manager-goNPc_h_.js";
3
+ import "./Actor-BwgmOPkb.js";
3
4
 
4
5
  //#region src/modules/signature/types.d.ts
5
6
  /**
@@ -3,7 +3,7 @@ import { n as createManagerInstrumentation, t as topLevelStateName } from "./eve
3
3
  import { n as eventModuleNames } from "./types-ElOJAGaM.esm.js";
4
4
  import "./endpoints-BzMJFAPV.esm.js";
5
5
  import { l as createManager, s as createActor } from "./xstate.esm-Bomq1a0z.esm.js";
6
- import { t as signatureMachine } from "./signatureStateMachine-c-HlL0-y.esm.js";
6
+ import { t as signatureMachine } from "./signatureStateMachine-DWob8P45.esm.js";
7
7
 
8
8
  //#region src/modules/signature/signatureActor.ts
9
9
  function createSignatureActor(options) {
@@ -120,7 +120,7 @@ const LAZY_IMPORT_OPTIONS = {
120
120
  timeoutMs: 1e4,
121
121
  disabledMessage: "TRI will be disabled for this session."
122
122
  };
123
- const importSdk = () => import("./tri.esm-Q8X11Udu.esm.js");
123
+ const importSdk = () => import("./tri.esm-B47NPJjh.esm.js");
124
124
  /**
125
125
  * Concrete implementation of {@link ITransactionalRiskIntelligenceCapability}.
126
126
  *
package/dist/tri.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as startTRI, i as setupTRI, n as isTRIStarted, o as stopTRI, r as resetTRI, s as TransactionalRiskIntelligenceSetupConfig, t as createTRISession } from "./index-CCG6MnCO.js";
1
+ import { a as startTRI, i as setupTRI, n as isTRIStarted, o as stopTRI, r as resetTRI, s as TransactionalRiskIntelligenceSetupConfig, t as createTRISession } from "./index-BAyZ8_iI.js";
2
2
  export { TransactionalRiskIntelligenceSetupConfig, createTRISession, isTRIStarted, resetTRI, setupTRI, startTRI, stopTRI };
@@ -1702,7 +1702,7 @@ async function Ht(t$1) {
1702
1702
  return Promise.race([r$1, o$2]).finally(() => {
1703
1703
  d(i$2);
1704
1704
  });
1705
- }(() => import("./browser-DlFgHpoC-D0saHs_w.esm.js"), 1e4);
1705
+ }(() => import("./browser-DlFgHpoC-BieMg30k.esm.js"), 1e4);
1706
1706
  jt = t$3, t$3.then((n$1) => {
1707
1707
  null === n$1 && u(() => {
1708
1708
  jt === t$3 && (jt = null);
package/dist/tri.esm.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import "./BrowserTimerProvider-CHloo0eQ.esm.js";
2
- import { a as resetTRI, c as startTRI, l as stopTRI, r as isTRIStarted, s as setupTRI, t as createTRISession } from "./tri-D6YWLiyE.esm.js";
2
+ import { a as resetTRI, c as startTRI, l as stopTRI, r as isTRIStarted, s as setupTRI, t as createTRISession } from "./tri-QAWxUCoY.esm.js";
3
3
 
4
4
  export { createTRISession, isTRIStarted, resetTRI, setupTRI, startTRI, stopTRI };
@@ -1,5 +1,6 @@
1
- import { t as Manager } from "./Manager-BUc6OqO5.js";
2
- import * as xstate1330 from "xstate";
1
+ import "./StateMachine-D5WO6lHS.js";
2
+ import { t as Manager } from "./Manager-goNPc_h_.js";
3
+ import * as xstate1057 from "xstate";
3
4
 
4
5
  //#region src/modules/trust-graph/trustGraphManager.d.ts
5
6
  type TrustGraphIdleState = {
@@ -59,7 +60,7 @@ type TrustGraphContext = Record<string, never>;
59
60
  * Mirror the `noOpFlowModuleMachine` / `identitySearchMachine` headless pattern:
60
61
  * start directly in the `final` state.
61
62
  */
62
- declare const trustGraphMachine: xstate1330.StateMachine<TrustGraphContext, xstate1330.AnyEventObject, {}, never, never, never, never, "finished", string, xstate1330.NonReducibleUnknown, xstate1330.NonReducibleUnknown, xstate1330.EventObject, xstate1330.MetaObject, {
63
+ declare const trustGraphMachine: xstate1057.StateMachine<TrustGraphContext, xstate1057.AnyEventObject, {}, never, never, never, never, "finished", string, xstate1057.NonReducibleUnknown, xstate1057.NonReducibleUnknown, xstate1057.EventObject, xstate1057.MetaObject, {
63
64
  readonly id: "trust-graph";
64
65
  readonly initial: "finished";
65
66
  readonly context: {};
@@ -1,6 +1,6 @@
1
- import { a as AvatarAssetsOverrides } from "./createFaceAvatar-tloe__L_.js";
2
- import { n as Flow, s as SelfieConcealmentOption } from "./types-BoOrY6Kj.js";
3
- import { a as IRecordingCapability, i as IStorageCapability, t as IWasmUtilCapability } from "./IWasmUtilCapability-Dpg64Qr2.js";
1
+ import { a as AvatarAssetsOverrides } from "./createFaceAvatar-CpdYp9Iy.js";
2
+ import { n as Flow, s as SelfieConcealmentOption } from "./types-BUgeB2X6.js";
3
+ import { a as IRecordingCapability, i as IStorageCapability, t as IWasmUtilCapability } from "./IWasmUtilCapability-D7S5rkSH.js";
4
4
 
5
5
  //#region src/internal/faceCapture/types.d.ts
6
6
 
@@ -1,5 +1,5 @@
1
- import { t as DocumentUploadConfig } from "./types-Bl8JJxqM.js";
2
- import { s as RiskAddon } from "./types-BXkFotpx.js";
1
+ import { t as DocumentUploadConfig } from "./types-DV3wkhQ4.js";
2
+ import { s as RiskAddon } from "./types-BgjMAEXl.js";
3
3
 
4
4
  //#region src/internal/avatar/concealment.d.ts
5
5
 
@@ -1,4 +1,4 @@
1
- import { n as AnyStateMachine } from "./Manager-BUc6OqO5.js";
1
+ import { t as AnyStateMachine } from "./StateMachine-D5WO6lHS.js";
2
2
 
3
3
  //#region src/internal/orchestration/types.d.ts
4
4
  /** Eager module: a pre-imported state machine. */
@@ -1,4 +1,4 @@
1
- import { t as CameraStream } from "./camera-DtXTDZWt.js";
1
+ import { t as CameraStream } from "./camera-CKU96nwJ.js";
2
2
 
3
3
  //#region src/modules/document-upload/types.d.ts
4
4
 
@@ -1,16 +1,16 @@
1
- import { n as WasmPipeline } from "./warmup-DzJ0I4Kv.js";
2
- import { t as Manager } from "./Manager-BUc6OqO5.js";
3
- import "./Actor-Du_LU0S4.js";
4
- import { t as CameraStream } from "./camera-DtXTDZWt.js";
5
- import "./types-Bl8JJxqM.js";
6
- import "./types-BXkFotpx.js";
7
- import "./canvas-Dcq7XIdx.js";
8
- import "./createFaceAvatar-tloe__L_.js";
9
- import { i as FlowModuleConfig } from "./types-BoOrY6Kj.js";
10
- import "./IWasmUtilCapability-Dpg64Qr2.js";
11
- import "./types-CYK29a4w.js";
12
- import { n as DetectionStatus } from "./types-B4nBoeCd.js";
13
- import * as xstate0 from "xstate";
1
+ import { n as WasmPipeline } from "./warmup-CZ80odyW.js";
2
+ import "./StateMachine-D5WO6lHS.js";
3
+ import "./Actor-BwgmOPkb.js";
4
+ import { t as CameraStream } from "./camera-CKU96nwJ.js";
5
+ import "./types-DV3wkhQ4.js";
6
+ import "./types-BgjMAEXl.js";
7
+ import "./canvas-90BqS0NF.js";
8
+ import "./createFaceAvatar-CpdYp9Iy.js";
9
+ import { i as FlowModuleConfig } from "./types-BUgeB2X6.js";
10
+ import "./IWasmUtilCapability-D7S5rkSH.js";
11
+ import "./types-BcF-fii5.js";
12
+ import { n as DetectionStatus } from "./types-B1DBrARx.js";
13
+ import * as xstate677 from "xstate";
14
14
 
15
15
  //#region src/modules/video-selfie/types.d.ts
16
16
  /**
@@ -177,7 +177,10 @@ type VideoSelfieRecordingState = {
177
177
  * `subscribe()` (status, step, preview `stream`, `recordingId`) plus `start()`,
178
178
  * `nextStep()`, and `abort()`.
179
179
  */
180
- declare function createVideoSelfieRecordingManager(options?: CreateVideoSelfieRecordingActorOptions): Manager<VideoSelfieRecordingState> & {
180
+ declare function createVideoSelfieRecordingManager(options?: CreateVideoSelfieRecordingActorOptions): {
181
+ stop(): void;
182
+ getState(): VideoSelfieRecordingState;
183
+ subscribe(listener: (state: VideoSelfieRecordingState) => void): () => void;
181
184
  /** Acquire the first camera, open the upload, and begin recording. */
182
185
  start(): void;
183
186
  /**
@@ -337,7 +340,7 @@ declare function createConsentRecorder(): ConsentRecorder;
337
340
  * is used for headless steps (e.g. `IP_ADDRESS`) that must complete instantly
338
341
  * with no UI. Using a no-op here would skip the video-selfie UI entirely.
339
342
  */
340
- declare const videoSelfieFlowModuleMachine: xstate0.StateMachine<xstate0.MachineContext, xstate0.AnyEventObject, {}, never, never, never, never, "running", string, xstate0.NonReducibleUnknown, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
343
+ declare const videoSelfieFlowModuleMachine: xstate677.StateMachine<xstate677.MachineContext, xstate677.AnyEventObject, {}, never, never, never, never, "running", string, xstate677.NonReducibleUnknown, xstate677.NonReducibleUnknown, xstate677.EventObject, xstate677.MetaObject, {
341
344
  readonly id: "videoSelfieFlowModule";
342
345
  readonly initial: "running";
343
346
  readonly states: {
@@ -1,5 +1,5 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-ADG54T6M.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-3W6rhIxJ.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-DU66XiuI.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CHloo0eQ.esm.js";
4
4
  import { t as api } from "./api-DsbUi7TO.esm.js";
5
5
  import "./clientLifecycle-Ct7h9uxx.esm.js";
@@ -8,17 +8,17 @@ import "./types-ElOJAGaM.esm.js";
8
8
  import { t as endpoints } from "./endpoints-BzMJFAPV.esm.js";
9
9
  import "./stats-CYcScXcO.esm.js";
10
10
  import "./browserSimulation-TsSoavQv.esm.js";
11
- import "./sessionInitializer-C0YhqeiX.esm.js";
11
+ import "./sessionInitializer-Dk-kFR33.esm.js";
12
12
  import "./getDeviceData-TrKM8NPh.esm.js";
13
13
  import "./thumbmarkAdapter-fHBUDlAP.esm.js";
14
14
  import "./IpifyProvider-BRW14_uo.esm.js";
15
15
  import "./platform-uIVQUnJP.esm.js";
16
- import "./tri-D6YWLiyE.esm.js";
16
+ import "./tri-QAWxUCoY.esm.js";
17
17
  import { a as fromPromise, i as fromCallback, l as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-Bomq1a0z.esm.js";
18
18
  import "./MotionSensorProvider-DCbId4De.esm.js";
19
19
  import { t as checkPermission } from "./permissionServices-BJhGL13R.esm.js";
20
20
  import { i as requestCameraWithFallback } from "./camera-DUkgmYMo.esm.js";
21
- import { a as encryptSelfieImage, b as FaceDetectionProvider, l as startDetection, m as uploadSelfie, p as processFace, y as StreamCanvasProcessingSession } from "./onDeviceFaceResults-DlErdHcT.esm.js";
21
+ import { a as encryptSelfieImage, b as FaceDetectionProvider, l as startDetection, m as uploadSelfie, p as processFace, y as StreamCanvasProcessingSession } from "./onDeviceFaceResults-IJDRqtYI.esm.js";
22
22
  import "./ITimerCapability-pltuG1E8.esm.js";
23
23
  import "./canvas-_I95hkPg.esm.js";
24
24
  import "./backCameraStream-ZyqrFyjO.esm.js";
@@ -266,7 +266,7 @@ async function detectId(params) {
266
266
  signal.addEventListener("abort", () => {
267
267
  teardown();
268
268
  reject(/* @__PURE__ */ new Error("aborted"));
269
- });
269
+ }, { once: true });
270
270
  delay(ID_INSTRUCTION_DWELL_MS, signal).then(() => {
271
271
  if (toreDown || signal.aborted) return;
272
272
  armed = true;
@@ -487,7 +487,6 @@ var MultipartRecordingProvider = class {
487
487
  if (recorder && this._isRecording) {
488
488
  recorder.onstop = () => {
489
489
  this.flushPart();
490
- this._isRecording = false;
491
490
  resolve();
492
491
  };
493
492
  recorder.stop();
@@ -497,6 +496,18 @@ var MultipartRecordingProvider = class {
497
496
  });
498
497
  }
499
498
  reset() {
499
+ const recorder = this.mediaRecorder;
500
+ if (recorder) {
501
+ recorder.ondataavailable = null;
502
+ recorder.onerror = null;
503
+ recorder.onstop = null;
504
+ if (recorder.state !== "inactive") recorder.stop();
505
+ recorder.stream.getTracks().forEach((track) => track.stop());
506
+ this.mediaRecorder = null;
507
+ }
508
+ this.onPart = null;
509
+ this.buffer = [];
510
+ this.bufferedBytes = 0;
500
511
  this._isRecording = false;
501
512
  this._error = null;
502
513
  this._hasError = false;
@@ -635,6 +646,12 @@ function recordingIdFromEvent(event) {
635
646
  function errorFromEvent(event) {
636
647
  return String(event.error);
637
648
  }
649
+ function detectionStatusFromEvent(event) {
650
+ return event.status;
651
+ }
652
+ function detectionErrorFromEvent(event) {
653
+ return event.error;
654
+ }
638
655
  /**
639
656
  * Orchestrates a multi-step Video Selfie session as ONE continuous recording
640
657
  * that follows the camera between steps AND auto-advances per step:
@@ -647,6 +664,12 @@ function errorFromEvent(event) {
647
664
  * While `recording`, a per-step detector runs WASM auto-capture + backend
648
665
  * validation; success advances the step (switching the camera when the next
649
666
  * step's facing differs), and the final step finalizes the multipart upload.
667
+ *
668
+ * Teardown: `ABORT` is accepted from ANY non-final state and every terminal
669
+ * state runs `cleanup` on entry, so no settled path leaves camera or mic
670
+ * tracks running. XState v5 executes NO exit actions on an external
671
+ * `actor.stop()`, so the manager sends `ABORT` before stopping the actor —
672
+ * never stop this actor directly without aborting first.
650
673
  */
651
674
  const videoSelfieRecordingSetup = setup({
652
675
  types: {
@@ -655,7 +678,14 @@ const videoSelfieRecordingSetup = setup({
655
678
  input: {}
656
679
  },
657
680
  actors: {
658
- acquireCamera: fromPromise(async ({ input }) => input.acquire(input.facingMode, input.withAudio)),
681
+ acquireCamera: fromPromise(async ({ input, signal }) => {
682
+ const stream = await input.acquire(input.facingMode, input.withAudio);
683
+ if (signal.aborted) {
684
+ stream.getTracks().forEach((track) => track.stop());
685
+ throw new Error("Camera acquire cancelled");
686
+ }
687
+ return stream;
688
+ }),
659
689
  startRecording: fromPromise(async ({ input }) => {
660
690
  await input.service.start(input.stream);
661
691
  }),
@@ -681,20 +711,18 @@ const videoSelfieRecordingSetup = setup({
681
711
  },
682
712
  actions: {
683
713
  advanceStep: assign({ stepIndex: ({ context: context$1 }) => context$1.stepIndex + 1 }),
684
- setDetectionStatus: assign({ detectionStatus: ({ event }) => event.status }),
685
- setDetectionError: assign({ detectionError: ({ event }) => event.error }),
686
- setErrorFromDetection: assign({ error: ({ event }) => event.error }),
714
+ setDetectionStatus: assign({ detectionStatus: ({ event }) => detectionStatusFromEvent(event) }),
715
+ setDetectionError: assign({ detectionError: ({ event }) => detectionErrorFromEvent(event) }),
716
+ setErrorFromDetection: assign({ error: ({ event }) => detectionErrorFromEvent(event) }),
687
717
  clearDetectionFeedback: assign({
688
718
  detectionStatus: () => void 0,
689
719
  detectionError: () => void 0
690
720
  }),
691
721
  setUploadFailedError: assign({ error: () => "Video upload failed" }),
692
- stopCompositor: ({ context: context$1 }) => {
693
- context$1.compositor.stop();
694
- },
695
722
  cleanup: ({ context: context$1 }) => {
696
723
  context$1.service.cleanup();
697
724
  context$1.compositor.stop();
725
+ context$1.stream?.getTracks().forEach((track) => track.stop());
698
726
  }
699
727
  },
700
728
  guards: {
@@ -736,6 +764,7 @@ const _videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
736
764
  recordingId: null,
737
765
  error: void 0
738
766
  }),
767
+ on: { ABORT: { target: ".aborted" } },
739
768
  states: {
740
769
  idle: { on: { START: { target: "acquiringCamera" } } },
741
770
  acquiringCamera: { invoke: {
@@ -747,10 +776,12 @@ const _videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
747
776
  }),
748
777
  onDone: {
749
778
  target: "starting",
750
- actions: assign({
779
+ actions: [({ context: context$1, event }) => {
780
+ context$1.compositor.start(eventOutputStream(event));
781
+ }, assign({
751
782
  stream: ({ event }) => eventOutputStream(event),
752
- composite: ({ context: context$1, event }) => context$1.compositor.start(eventOutputStream(event))
753
- })
783
+ composite: ({ context: context$1 }) => context$1.compositor.stream
784
+ })]
754
785
  },
755
786
  onError: {
756
787
  target: "error",
@@ -786,10 +817,6 @@ const _videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
786
817
  DETECTION_FAILED: {
787
818
  target: "error",
788
819
  actions: "setErrorFromDetection"
789
- },
790
- ABORT: {
791
- target: "aborted",
792
- actions: "cleanup"
793
820
  }
794
821
  }
795
822
  },
@@ -829,13 +856,16 @@ const _videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
829
856
  } },
830
857
  finished: {
831
858
  type: "final",
832
- entry: "stopCompositor"
859
+ entry: "cleanup"
833
860
  },
834
861
  error: {
835
862
  type: "final",
836
863
  entry: "cleanup"
837
864
  },
838
- aborted: { type: "final" }
865
+ aborted: {
866
+ type: "final",
867
+ entry: "cleanup"
868
+ }
839
869
  }
840
870
  });
841
871
  const videoSelfieRecordingMachine = _videoSelfieRecordingMachine;
@@ -896,11 +926,19 @@ function createApi({ actor }) {
896
926
  * `nextStep()`, and `abort()`.
897
927
  */
898
928
  function createVideoSelfieRecordingManager(options = {}) {
899
- return createManager({
900
- actor: createVideoSelfieRecordingActor(options),
929
+ const actor = createVideoSelfieRecordingActor(options);
930
+ const manager = createManager({
931
+ actor,
901
932
  mapState,
902
933
  createApi
903
934
  });
935
+ return {
936
+ ...manager,
937
+ stop() {
938
+ if (actor.getSnapshot().status === "active") actor.send({ type: "ABORT" });
939
+ manager.stop();
940
+ }
941
+ };
904
942
  }
905
943
 
906
944
  //#endregion
package/dist/wasm.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { n as WasmPipeline, r as warmupWasm, t as WarmupConfig } from "./warmup-DzJ0I4Kv.js";
2
- import "./index-CCG6MnCO.js";
3
- import { i as initializeWasmUtil, l as upgradeToWasmHttpClient, n as WasmConfig, r as ensureWasmPipelines, s as setWasmConfig } from "./setup-B0dyRJVg.js";
1
+ import { n as WasmPipeline, r as warmupWasm, t as WarmupConfig } from "./warmup-CZ80odyW.js";
2
+ import "./index-BAyZ8_iI.js";
3
+ import { i as initializeWasmUtil, l as upgradeToWasmHttpClient, n as WasmConfig, r as ensureWasmPipelines, s as setWasmConfig } from "./setup-Da51UnII.js";
4
4
 
5
5
  //#region ../infra/src/wasm/wasmDefaults.d.ts
6
6
  /** The WASM version bundled and tested with this SDK release. */
package/dist/wasm.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { r as warmupWasm } from "./WasmUtilProvider-ADG54T6M.esm.js";
2
- import { a as setWasmConfig, c as DEFAULT_WASM_VERSION, d as resolveWasmConfig, l as buildDefaultWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines, u as buildWasmConfigFromBasePath } from "./setup-3W6rhIxJ.esm.js";
2
+ import { a as setWasmConfig, c as DEFAULT_WASM_VERSION, d as resolveWasmConfig, l as buildDefaultWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines, u as buildWasmConfigFromBasePath } from "./setup-DU66XiuI.esm.js";
3
3
  import "./BrowserTimerProvider-CHloo0eQ.esm.js";
4
4
  import "./api-DsbUi7TO.esm.js";
5
5
  import "./clientLifecycle-Ct7h9uxx.esm.js";
@@ -8,11 +8,11 @@ import "./types-ElOJAGaM.esm.js";
8
8
  import "./endpoints-BzMJFAPV.esm.js";
9
9
  import "./stats-CYcScXcO.esm.js";
10
10
  import "./browserSimulation-TsSoavQv.esm.js";
11
- import "./sessionInitializer-C0YhqeiX.esm.js";
11
+ import "./sessionInitializer-Dk-kFR33.esm.js";
12
12
  import "./getDeviceData-TrKM8NPh.esm.js";
13
13
  import "./thumbmarkAdapter-fHBUDlAP.esm.js";
14
14
  import "./IpifyProvider-BRW14_uo.esm.js";
15
15
  import "./platform-uIVQUnJP.esm.js";
16
- import "./tri-D6YWLiyE.esm.js";
16
+ import "./tri-QAWxUCoY.esm.js";
17
17
 
18
18
  export { DEFAULT_WASM_VERSION, buildDefaultWasmConfig, buildWasmConfigFromBasePath, ensureWasmPipelines, initializeWasmUtil, resolveWasmConfig, setWasmConfig, upgradeToWasmHttpClient, warmupWasm };
@@ -1,4 +1,5 @@
1
- import { t as Manager } from "./Manager-BUc6OqO5.js";
1
+ import "./StateMachine-D5WO6lHS.js";
2
+ import { t as Manager } from "./Manager-goNPc_h_.js";
2
3
 
3
4
  //#region src/modules/watchlist-for-business/watchlistForBusinessManager.d.ts
4
5
  /** Waiting for `load()` to be called. */
@@ -3,7 +3,7 @@ import { n as createManagerInstrumentation, t as topLevelStateName } from "./eve
3
3
  import { n as eventModuleNames } from "./types-ElOJAGaM.esm.js";
4
4
  import "./endpoints-BzMJFAPV.esm.js";
5
5
  import { l as createManager, s as createActor } from "./xstate.esm-Bomq1a0z.esm.js";
6
- import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-DNaxGviI.esm.js";
6
+ import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-Do3drRT5.esm.js";
7
7
 
8
8
  //#region src/modules/watchlist-for-business/watchlistForBusinessActor.ts
9
9
  function createWatchlistForBusinessActor() {
@@ -1,4 +1,5 @@
1
- import { t as Manager } from "./Manager-BUc6OqO5.js";
1
+ import "./StateMachine-D5WO6lHS.js";
2
+ import { t as Manager } from "./Manager-goNPc_h_.js";
2
3
 
3
4
  //#region src/modules/watchlist/watchlistStateMachine.d.ts
4
5
  type WatchlistResult = 'success' | 'skipped';
@@ -3,7 +3,7 @@ import { n as createManagerInstrumentation, t as topLevelStateName } from "./eve
3
3
  import { n as eventModuleNames } from "./types-ElOJAGaM.esm.js";
4
4
  import "./endpoints-BzMJFAPV.esm.js";
5
5
  import { l as createManager, s as createActor } from "./xstate.esm-Bomq1a0z.esm.js";
6
- import { t as watchlistMachine } from "./watchlistStateMachine-DPLVxv_x.esm.js";
6
+ import { t as watchlistMachine } from "./watchlistStateMachine-D6A4O5rK.esm.js";
7
7
 
8
8
  //#region src/modules/watchlist/watchlistActor.ts
9
9
  function createWatchlistActor() {