@incodetech/core 0.0.0-dev-20261013-c7751a9f → 0.0.0-dev-20261013-c982cdcd

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 (165) hide show
  1. package/dist/{FaceDetectionProvider-XAuZT7P9.esm.js → FaceDetectionProvider-CGDd_ogY.esm.js} +9 -8
  2. package/dist/{IWasmUtilCapability-VC40Kx9N.d.ts → IWasmUtilCapability-CPX0RGdQ.d.ts} +23 -1
  3. package/dist/{MotionSensorProvider-MQ80-spU.esm.js → MotionSensorProvider-DYxh8TjR.esm.js} +1 -1
  4. package/dist/{StreamCanvasCapture-CeBBJ_RC.d.ts → StreamCanvasCapture-DVmzJux5.d.ts} +1 -1
  5. package/dist/{safeStorage-DDAHV26l.esm.js → WasmUtilProvider-CIdnE7Fx.esm.js} +87 -36
  6. package/dist/{addressSearch-CoXo7lfZ.esm.js → addressSearch-Bm8zTbQJ.esm.js} +3 -3
  7. package/dist/ae-signature.esm.js +1 -1
  8. package/dist/antifraud.esm.js +2 -2
  9. package/dist/{antifraudManager-nkA1Xfm1.esm.js → antifraudManager-HL08jeDX.esm.js} +3 -3
  10. package/dist/{antifraudStateMachine-bbi6-rKP.esm.js → antifraudStateMachine-DoJVzblM.esm.js} +3 -3
  11. package/dist/{apiError-B9McXt0d.esm.js → apiError-B7lJaeTn.esm.js} +1 -1
  12. package/dist/authentication.d.ts +3 -3
  13. package/dist/authentication.esm.js +2 -2
  14. package/dist/{authenticationManager-BhZZQzwi.esm.js → authenticationManager-Bk74vxGj.esm.js} +6 -6
  15. package/dist/{authenticationManager-MVD0mrCo.d.ts → authenticationManager-CANv5-W5.d.ts} +1 -1
  16. package/dist/{authenticationStateMachine-PEbpCJ0-.esm.js → authenticationStateMachine-CSqcE4y3.esm.js} +5 -5
  17. package/dist/camera.esm.js +1 -1
  18. package/dist/certificate-issuance.esm.js +2 -2
  19. package/dist/{certificateIssuanceManager-B-qjOJde.esm.js → certificateIssuanceManager-CKJ4qjLc.esm.js} +3 -3
  20. package/dist/{certificateIssuanceStateMachine-DwLGw_a2.esm.js → certificateIssuanceStateMachine-yizSIonY.esm.js} +3 -3
  21. package/dist/consent.esm.js +2 -2
  22. package/dist/{consentManager-BhGljt6D.esm.js → consentManager-CjrxY737.esm.js} +3 -3
  23. package/dist/{consentStateMachine-fvRt5D6e.esm.js → consentStateMachine-BCj5Jb3g.esm.js} +3 -3
  24. package/dist/{createCameraCycleOwnership-BvOOxU85.esm.js → createCameraCycleOwnership-kdlhkmmY.esm.js} +2 -2
  25. package/dist/cross-document-data-match.esm.js +1 -1
  26. package/dist/{crossDocumentDataMatchManager-hxUaa6y_.esm.js → crossDocumentDataMatchManager-BHnGRsto.esm.js} +4 -4
  27. package/dist/curp-validation.esm.js +2 -2
  28. package/dist/{curpValidationManager-u6dRo9Bq.esm.js → curpValidationManager-DBNIn8BF.esm.js} +3 -3
  29. package/dist/{curpValidationStateMachine-Sf4rGn_0.esm.js → curpValidationStateMachine-DAxImy8p.esm.js} +3 -3
  30. package/dist/custom-fields.esm.js +1 -1
  31. package/dist/custom-watchlist.esm.js +2 -2
  32. package/dist/{customFieldsManager-C5Vw3fdd.esm.js → customFieldsManager-BV6UyLFV.esm.js} +4 -4
  33. package/dist/{customWatchlistManager-szjmQvYu.esm.js → customWatchlistManager-DML0UPzf.esm.js} +3 -3
  34. package/dist/{customWatchlistStateMachine-BtlZ6qoX.esm.js → customWatchlistStateMachine-D9gI5uu7.esm.js} +3 -3
  35. package/dist/deepsightLoader-Bbannll8.esm.js +55 -0
  36. package/dist/{deepsightLoader-Cbrw8v4S.esm.js → deepsightService-cd1HQvBB.esm.js} +50 -55
  37. package/dist/document-capture.esm.js +2 -2
  38. package/dist/{documentCaptureManager-CV_bOPkN.esm.js → documentCaptureManager-C9XUnYU6.esm.js} +3 -3
  39. package/dist/{documentCaptureStateMachine-CY4BH_nx.esm.js → documentCaptureStateMachine-BHDsCfhL.esm.js} +5 -5
  40. package/dist/dynamic-forms.esm.js +2 -2
  41. package/dist/{dynamicFormsManager-Bunapr8H.esm.js → dynamicFormsManager-DvzIRQGp.esm.js} +3 -3
  42. package/dist/{dynamicFormsStateMachine-Ba7NhLvL.esm.js → dynamicFormsStateMachine-BXq12SGh.esm.js} +4 -4
  43. package/dist/ekyb.esm.js +3 -3
  44. package/dist/{ekybManager-BXpy_3I6.esm.js → ekybManager-Bov25P3N.esm.js} +3 -3
  45. package/dist/{ekybStateMachine-DDyaxJ35.esm.js → ekybStateMachine-iwmM5mCm.esm.js} +5 -5
  46. package/dist/ekyc.esm.js +2 -2
  47. package/dist/{ekycManager-DsfBcNxs.esm.js → ekycManager-DZH51PnN.esm.js} +3 -3
  48. package/dist/{ekycStateMachine-DPMzZNhD.esm.js → ekycStateMachine-DnKlILfu.esm.js} +4 -4
  49. package/dist/electronic-signature.esm.js +1 -1
  50. package/dist/{electronicSignatureManager-DYJZjAtq.esm.js → electronicSignatureManager-DBhszLrG.esm.js} +5 -5
  51. package/dist/email.esm.js +2 -2
  52. package/dist/{emailManager-ppIDOf_n.esm.js → emailManager-CtlKRRaR.esm.js} +3 -3
  53. package/dist/{emailStateMachine-NiunNxhH.esm.js → emailStateMachine-5Neq3rE5.esm.js} +4 -4
  54. package/dist/{endpoints-Bs3D8B_G.esm.js → endpoints-DHzlkQNe.esm.js} +1 -0
  55. package/dist/{events-CfLLkAh7.esm.js → events-CAgFE-k3.esm.js} +15 -3
  56. package/dist/events.d.ts +2 -1
  57. package/dist/events.esm.js +1 -1
  58. package/dist/extensibility.d.ts +9 -9
  59. package/dist/extensibility.esm.js +36 -36
  60. package/dist/face-match.esm.js +2 -2
  61. package/dist/{faceCaptureManagerFactory-BOWlD2lH.esm.js → faceCaptureManagerFactory-DWHQBeL2.esm.js} +15 -6
  62. package/dist/{faceCaptureManagerFactory-D-XSP04N.d.ts → faceCaptureManagerFactory-jKQ2QtY-.d.ts} +4 -4
  63. package/dist/{faceCaptureSetup-CeAyB-yC.esm.js → faceCaptureSetup-BBqAdrqm.esm.js} +11 -11
  64. package/dist/{faceMatchManager-BSR94HnV.esm.js → faceMatchManager-9Nj9aPci.esm.js} +3 -3
  65. package/dist/{faceMatchStateMachine-BA9LVrWJ.esm.js → faceMatchStateMachine-B9ZUnlyU.esm.js} +3 -3
  66. package/dist/{feature-management-DYRVLOMy.esm.js → feature-management-DPIl-FtB.esm.js} +1 -1
  67. package/dist/feature-management.esm.js +1 -1
  68. package/dist/field-comparison.esm.js +1 -1
  69. package/dist/{fieldComparisonManager-B2y1ko1f.esm.js → fieldComparisonManager-Dk38hXZP.esm.js} +4 -4
  70. package/dist/fiscal-qr.esm.js +1 -1
  71. package/dist/{fiscalQrManager-gmU-xLHP.esm.js → fiscalQrManager-DmBkQfs0.esm.js} +5 -5
  72. package/dist/flow.d.ts +2 -2
  73. package/dist/flow.esm.js +6 -6
  74. package/dist/{flowCompletionService-xRc0i-x5.esm.js → flowCompletionService-BTxuv1Wb.esm.js} +2 -2
  75. package/dist/{flowServices-B8SKnzY5.esm.js → flowServices-pk---1Sx.esm.js} +5 -5
  76. package/dist/geolocation.esm.js +2 -2
  77. package/dist/{geolocationManager-DPPSB_oq.esm.js → geolocationManager-Ck6DsjTo.esm.js} +3 -3
  78. package/dist/{geolocationStateMachine-CcrrUnPD.esm.js → geolocationStateMachine-Ap2O_wgT.esm.js} +4 -4
  79. package/dist/government-validation.esm.js +2 -2
  80. package/dist/{governmentValidationManager-UuH2s-oi.esm.js → governmentValidationManager-CP0SiOOe.esm.js} +3 -3
  81. package/dist/{governmentValidationStateMachine-BvvrC_3A.esm.js → governmentValidationStateMachine-C3YQ8yCZ.esm.js} +3 -3
  82. package/dist/home.esm.js +2 -2
  83. package/dist/id-ocr.esm.js +2 -2
  84. package/dist/id-selfie-flow.d.ts +1 -1
  85. package/dist/id-selfie-flow.esm.js +11 -11
  86. package/dist/id-verification.esm.js +2 -2
  87. package/dist/id.d.ts +2 -2
  88. package/dist/id.esm.js +3 -3
  89. package/dist/{idCaptureDefaults-CAKXwWww.esm.js → idCaptureDefaults-CQLveJd1.esm.js} +2 -2
  90. package/dist/{idCaptureManager-BXYldO77.d.ts → idCaptureManager-DW3eER4t.d.ts} +6 -3
  91. package/dist/{idCaptureManager-Bwpdlvxp.esm.js → idCaptureManager-TokRg0VQ.esm.js} +28 -20
  92. package/dist/{idCaptureServices-ssbb13iE.esm.js → idCaptureServices-BGhipfoM.esm.js} +8 -8
  93. package/dist/{idCaptureStateMachine-CL7qwlse.esm.js → idCaptureStateMachine-ByWuXQze.esm.js} +21 -21
  94. package/dist/{idOcrManager-124LjyWj.esm.js → idOcrManager-DxoCesYP.esm.js} +3 -3
  95. package/dist/{idOcrStateMachine-Bd0-Hp9V.esm.js → idOcrStateMachine-kPn7DB2I.esm.js} +3 -3
  96. package/dist/{idVerificationManager-BYVW3pLG.esm.js → idVerificationManager-CDhRUU5n.esm.js} +3 -3
  97. package/dist/{idVerificationStateMachine-BtrFQSDe.esm.js → idVerificationStateMachine-0HTVVxse.esm.js} +3 -3
  98. package/dist/identity-reuse.d.ts +1 -1
  99. package/dist/identity-reuse.esm.js +2 -2
  100. package/dist/{identityReuseManager-fu5okQhu.esm.js → identityReuseManager-BleUi6TK.esm.js} +3 -3
  101. package/dist/{identityReuseManager-BUNksfYU.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +8 -8
  102. package/dist/{identityReuseStateMachine-CCYWIgGl.esm.js → identityReuseStateMachine-BrBUpfn5.esm.js} +3 -3
  103. package/dist/index.d.ts +1 -1
  104. package/dist/index.esm.js +1 -1
  105. package/dist/{invokeOnCaptureCallback-Brs1lo61.esm.js → invokeOnCaptureCallback-BW7V3vub.esm.js} +1 -1
  106. package/dist/mandatory-consent.d.ts +1 -1
  107. package/dist/mandatory-consent.esm.js +2 -2
  108. package/dist/{mandatoryConsentManager-DDixKrq0.d.ts → mandatoryConsentManager-BkaLkcA2.d.ts} +4 -4
  109. package/dist/{mandatoryConsentManager-tCHVwjtG.esm.js → mandatoryConsentManager-CX_Dyht7.esm.js} +3 -3
  110. package/dist/{mandatoryConsentStateMachine-CZKXCn6v.esm.js → mandatoryConsentStateMachine-CoaSB7P7.esm.js} +3 -3
  111. package/dist/{multipartRecordingService-CMjkhS2x.esm.js → multipartRecordingService-DbeQpXdU.esm.js} +2 -2
  112. package/dist/{permissionGuards-DGU1uh4i.esm.js → permissionGuards-Bf4LbHjC.esm.js} +1 -1
  113. package/dist/{permissionServices-CPwDYRp8.esm.js → permissionServices-d2UW0r_L.esm.js} +2 -2
  114. package/dist/phone.esm.js +2 -2
  115. package/dist/{phoneManager-B6Uu_237.esm.js → phoneManager-BGBcpqsk.esm.js} +3 -3
  116. package/dist/{phoneStateMachine-pue0_Jsi.esm.js → phoneStateMachine-CEm2y7yG.esm.js} +4 -4
  117. package/dist/qe-signature.esm.js +1 -1
  118. package/dist/redirect-to-mobile.esm.js +2 -2
  119. package/dist/{redirectToMobileManager-CQlyUyc8.esm.js → redirectToMobileManager-D8xpgVHn.esm.js} +4 -4
  120. package/dist/{redirectToMobileStateMachine-tGbjPhIm.esm.js → redirectToMobileStateMachine-DjKfrc4P.esm.js} +4 -4
  121. package/dist/{runChildModule-CQWc5KMf.esm.js → runChildModule-CpXjbJfG.esm.js} +4 -4
  122. package/dist/safeStorage-UxDrnjwa.esm.js +35 -0
  123. package/dist/{sdkVersion-C6hcFArL.esm.js → sdkVersion-DvwSi-xM.esm.js} +1 -1
  124. package/dist/selfie.d.ts +4 -4
  125. package/dist/selfie.esm.js +12 -12
  126. package/dist/{selfieErrorUtils-LZLapGy6.esm.js → selfieErrorUtils-CQnuPhYb.esm.js} +1 -1
  127. package/dist/{selfieManager-CizvitYB.d.ts → selfieManager-1J0IEyFq.d.ts} +1 -1
  128. package/dist/{selfieManager-CG5VP1C-.esm.js → selfieManager-DCzPlJCU.esm.js} +6 -6
  129. package/dist/{selfieStateMachine-DsVxSp4B.esm.js → selfieStateMachine-IEKFw85T.esm.js} +5 -5
  130. package/dist/{session-BoAOTj24.esm.js → session-5KHEGxgB.esm.js} +4 -4
  131. package/dist/session.esm.js +4 -4
  132. package/dist/{sessionInitializer-Gjn-NrIE.esm.js → sessionInitializer-CiraPSTG.esm.js} +197 -7
  133. package/dist/{setup-CCsxCTuW.esm.js → setup-BJzlqOTL.esm.js} +176 -104
  134. package/dist/{setup-CDyTzfIx.d.ts → setup-oKDzNC62.d.ts} +6 -2
  135. package/dist/signature.esm.js +2 -2
  136. package/dist/{signatureManager-CEYKCuO4.esm.js → signatureManager-qqXyH93e.esm.js} +3 -3
  137. package/dist/{signatureStateMachine-C6Wh9ylX.esm.js → signatureStateMachine-BkRSrkKp.esm.js} +3 -3
  138. package/dist/splitTrackedName-3zJRd2RD.esm.js +19 -0
  139. package/dist/{stats-Dz3XWA64.esm.js → stats-DmG_tkGk.esm.js} +1 -1
  140. package/dist/stats.esm.js +1 -1
  141. package/dist/{trueSightService-BLM6oloV.esm.js → trueSightService-Crpt3M-t.esm.js} +843 -843
  142. package/dist/trust-graph.esm.js +2 -2
  143. package/dist/{types-66IWBtU4.d.ts → types-C71Zo6vl.d.ts} +1 -1
  144. package/dist/{types-D0VzhBS7.d.ts → types-CwCWyBEi.d.ts} +2 -2
  145. package/dist/{types-nJoHpLPM.d.ts → types-zpO4fU6a.d.ts} +1 -1
  146. package/dist/video-selfie.d.ts +1 -1
  147. package/dist/video-selfie.esm.js +10 -10
  148. package/dist/{videoSelfieCameraWarmer-BctIPNfo.esm.js → videoSelfieCameraWarmer-CND0HDro.esm.js} +8 -8
  149. package/dist/{videoSelfieFlowModuleMachine-DQTlyw98.esm.js → videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js} +1 -1
  150. package/dist/{videoSelfieStepDetector-D0Ws77pD.d.ts → videoSelfieStepDetector-C5QHOvWb.d.ts} +2 -2
  151. package/dist/wasm.d.ts +1 -1
  152. package/dist/wasm.esm.js +2 -2
  153. package/dist/{wasmDsFlagSync-BWpBwxxe.esm.js → wasmDsFlagSync-BXCGqP48.esm.js} +1 -1
  154. package/dist/watchlist-for-business.esm.js +2 -2
  155. package/dist/watchlist.esm.js +2 -2
  156. package/dist/{watchlistForBusinessManager-cbMppk5K.esm.js → watchlistForBusinessManager-BvF4jK3S.esm.js} +3 -3
  157. package/dist/{watchlistForBusinessStateMachine-DsLzqEQG.esm.js → watchlistForBusinessStateMachine-121XK-Et.esm.js} +3 -3
  158. package/dist/{watchlistManager-F1bI2Ad4.esm.js → watchlistManager-CNWEOYSq.esm.js} +3 -3
  159. package/dist/{watchlistStateMachine-DU28IiMQ.esm.js → watchlistStateMachine-Dgfm42w2.esm.js} +3 -3
  160. package/dist/workflow.d.ts +4 -4
  161. package/dist/workflow.esm.js +38 -38
  162. package/dist/{xstate-actors.esm-Ccyzgxj1.esm.js → xstate-actors.esm-8Gzepa_A.esm.js} +1 -1
  163. package/dist/{xstate.esm-Bg3FuvIs.esm.js → xstate.esm-DSajW7CJ.esm.js} +9 -2
  164. package/package.json +1 -1
  165. package/dist/virtualCameraCheck-CW8mFdt9.esm.js +0 -48
@@ -0,0 +1,55 @@
1
+ import { l as trueSightLog } from "./trueSightService-Crpt3M-t.esm.js";
2
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
3
+ import { t as SDK_VERSION } from "./sdkVersion-DvwSi-xM.esm.js";
4
+ import { _ as IpifyProvider, b as BrowserEnvironmentProvider, n as getFingerprintEnabled, t as getDisableIpify } from "./sessionInitializer-CiraPSTG.esm.js";
5
+ import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BXCGqP48.esm.js";
6
+ import { t as MotionSensorProvider } from "./MotionSensorProvider-DYxh8TjR.esm.js";
7
+ import { t as createDeepsightService } from "./deepsightService-cd1HQvBB.esm.js";
8
+ //#region ../infra/src/providers/browser/VisibilityProvider.ts
9
+ var VisibilityProvider = class {
10
+ constructor() {
11
+ this._wasBackgrounded = false;
12
+ this.visibilityChangeHandler = this.onVisibilityChange.bind(this);
13
+ document.addEventListener("visibilitychange", this.visibilityChangeHandler);
14
+ }
15
+ get wasBackgrounded() {
16
+ return this._wasBackgrounded;
17
+ }
18
+ reset() {
19
+ this._wasBackgrounded = false;
20
+ }
21
+ cleanup() {
22
+ document.removeEventListener("visibilitychange", this.visibilityChangeHandler);
23
+ }
24
+ onVisibilityChange() {
25
+ if (document.hidden) this._wasBackgrounded = true;
26
+ }
27
+ };
28
+ //#endregion
29
+ //#region src/internal/deepsight/deepsightLoader.ts
30
+ async function loadDeepsightSession(options) {
31
+ try {
32
+ return await loadDeepsightSessionInternal(options);
33
+ } catch (error) {
34
+ trueSightLog("warning", "deepsight", "other", `deepsight load failed error=${String(error)}`);
35
+ throw error;
36
+ }
37
+ }
38
+ async function loadDeepsightSessionInternal(options) {
39
+ setWasmDsFlagSync(options.ds === true);
40
+ const service = createDeepsightService({
41
+ sdkVersion: SDK_VERSION,
42
+ wasmUtil: await WasmUtilProvider.getInstance(),
43
+ visibility: new VisibilityProvider(),
44
+ browserEnv: new BrowserEnvironmentProvider(),
45
+ motionSensor: new MotionSensorProvider(),
46
+ ipLookup: new IpifyProvider()
47
+ });
48
+ const disableIpify = options.disableIpify ?? getDisableIpify();
49
+ const disableFingerprint = options.disableFingerprint ?? !getFingerprintEnabled();
50
+ await service.initialize(disableIpify, disableFingerprint);
51
+ await service.startMotionSensors();
52
+ return service;
53
+ }
54
+ //#endregion
55
+ export { loadDeepsightSession };
@@ -1,15 +1,12 @@
1
- import { l as trueSightLog } from "./trueSightService-BLM6oloV.esm.js";
2
- import { r as WasmUtilProvider } from "./safeStorage-DDAHV26l.esm.js";
3
- import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-Gjn-NrIE.esm.js";
4
- import { t as SDK_VERSION } from "./sdkVersion-C6hcFArL.esm.js";
1
+ import { t as api } from "./api-Bx3gKW_y.esm.js";
2
+ import { h as isBrowserSimulation, v as getThumbmarkId, x as fingerprintSignalsReporter } from "./sessionInitializer-CiraPSTG.esm.js";
3
+ import { t as addDeviceStats } from "./stats-DmG_tkGk.esm.js";
5
4
  import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
6
5
  import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
7
- import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BWpBwxxe.esm.js";
8
- import { t as MotionSensorProvider } from "./MotionSensorProvider-MQ80-spU.esm.js";
9
6
  import { i as requestCameraAccess, o as stopCameraStream } from "./camera-sIa9ceW2.esm.js";
7
+ import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
10
8
  import { t as createHiddenVideoElement } from "./video-BtSWtHy1.esm.js";
11
9
  import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
12
- import { n as runVirtualCameraCheck } from "./virtualCameraCheck-CW8mFdt9.esm.js";
13
10
  //#region src/internal/deepsight/metadataService.ts
14
11
  function createMetadataService(wasmUtil, visibility, browserEnv, ipLookup) {
15
12
  return {
@@ -67,6 +64,7 @@ function createMetadataService(wasmUtil, visibility, browserEnv, ipLookup) {
67
64
  labels
68
65
  };
69
66
  wasmUtil.setCameraInfo(cameraInfo);
67
+ fingerprintSignalsReporter.onCameraInfoUpdated();
70
68
  },
71
69
  async checkForVirtualCameraByLabel(videoTrack = null) {
72
70
  try {
@@ -132,6 +130,50 @@ function createMotionStatusService(motionSensor) {
132
130
  };
133
131
  }
134
132
  //#endregion
133
+ //#region src/internal/virtualCameraCheck.ts
134
+ const frameSources = {
135
+ front: "FRONT_ID",
136
+ back: "BACK_ID",
137
+ selfie: "SELFIE"
138
+ };
139
+ /**
140
+ * Sends the analyzed frame image to the backend for logging.
141
+ */
142
+ async function logFrame({ source, base64Image, token }) {
143
+ try {
144
+ return (await api.post("/omni/log/frame/v2", { base64Image }, {
145
+ query: { source },
146
+ headers: { "X-Incode-Hardware-Id": token }
147
+ })).data;
148
+ } catch {
149
+ return;
150
+ }
151
+ }
152
+ /**
153
+ * Runs the WASM virtual camera check and handles logging and stats.
154
+ */
155
+ async function runVirtualCameraCheck({ wasmUtil, source, token }) {
156
+ const output = {
157
+ canvas: null,
158
+ itr: null,
159
+ skipped: null
160
+ };
161
+ await wasmUtil.poc(output);
162
+ if (output.skipped !== false) return;
163
+ if (output.canvas && token) {
164
+ const base64Image = new IncodeCanvas(output.canvas).getBase64Image();
165
+ if (base64Image) logFrame({
166
+ source,
167
+ base64Image,
168
+ token
169
+ });
170
+ }
171
+ if (output.itr === true) {
172
+ addDeviceStats({ virtualCameraDetected: true });
173
+ wasmUtil.setZc("FAIL");
174
+ } else if (output.itr === false) wasmUtil.setZc("PASS");
175
+ }
176
+ //#endregion
135
177
  //#region src/internal/deepsight/deepsightService.ts
136
178
  function createDeepsightService(config) {
137
179
  const metadata = createMetadataService(config.wasmUtil, config.visibility, config.browserEnv, config.ipLookup);
@@ -207,51 +249,4 @@ function createDeepsightService(config) {
207
249
  };
208
250
  }
209
251
  //#endregion
210
- //#region ../infra/src/providers/browser/VisibilityProvider.ts
211
- var VisibilityProvider = class {
212
- constructor() {
213
- this._wasBackgrounded = false;
214
- this.visibilityChangeHandler = this.onVisibilityChange.bind(this);
215
- document.addEventListener("visibilitychange", this.visibilityChangeHandler);
216
- }
217
- get wasBackgrounded() {
218
- return this._wasBackgrounded;
219
- }
220
- reset() {
221
- this._wasBackgrounded = false;
222
- }
223
- cleanup() {
224
- document.removeEventListener("visibilitychange", this.visibilityChangeHandler);
225
- }
226
- onVisibilityChange() {
227
- if (document.hidden) this._wasBackgrounded = true;
228
- }
229
- };
230
- //#endregion
231
- //#region src/internal/deepsight/deepsightLoader.ts
232
- async function loadDeepsightSession(options) {
233
- try {
234
- return await loadDeepsightSessionInternal(options);
235
- } catch (error) {
236
- trueSightLog("warning", "deepsight", "other", `deepsight load failed error=${String(error)}`);
237
- throw error;
238
- }
239
- }
240
- async function loadDeepsightSessionInternal(options) {
241
- setWasmDsFlagSync(options.ds === true);
242
- const service = createDeepsightService({
243
- sdkVersion: SDK_VERSION,
244
- wasmUtil: await WasmUtilProvider.getInstance(),
245
- visibility: new VisibilityProvider(),
246
- browserEnv: new BrowserEnvironmentProvider(),
247
- motionSensor: new MotionSensorProvider(),
248
- ipLookup: new IpifyProvider()
249
- });
250
- const disableIpify = options.disableIpify ?? getDisableIpify();
251
- const disableFingerprint = options.disableFingerprint ?? !getFingerprintEnabled();
252
- await service.initialize(disableIpify, disableFingerprint);
253
- await service.startMotionSensors();
254
- return service;
255
- }
256
- //#endregion
257
- export { loadDeepsightSession };
252
+ export { frameSources as n, runVirtualCameraCheck as r, createDeepsightService as t };
@@ -1,3 +1,3 @@
1
- import { r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-CY4BH_nx.esm.js";
2
- import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-CV_bOPkN.esm.js";
1
+ import { r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-BHDsCfhL.esm.js";
2
+ import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-C9XUnYU6.esm.js";
3
3
  export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
- import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
4
- import { n as DEFAULT_MAX_FILE_SIZE, r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-CY4BH_nx.esm.js";
3
+ import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
+ import { n as DEFAULT_MAX_FILE_SIZE, r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-BHDsCfhL.esm.js";
5
5
  //#region src/modules/document-capture/documentCaptureActor.ts
6
6
  function createDocumentCaptureActor(options) {
7
7
  return createActor(documentCaptureMachine, { input: { config: options.config } }).start();
@@ -1,10 +1,10 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
- import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
3
- import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
4
- import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
2
+ import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
3
+ import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
4
+ import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
5
5
  import { o as stopCameraStream } from "./camera-sIa9ceW2.esm.js";
6
- import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-CPwDYRp8.esm.js";
7
- import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DGU1uh4i.esm.js";
6
+ import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-d2UW0r_L.esm.js";
7
+ import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-Bf4LbHjC.esm.js";
8
8
  import { n as getBackCameraStream } from "./backCameraStream-CMvXj4X4.esm.js";
9
9
  //#region src/modules/document-capture/types.ts
10
10
  const PROCESSING_TYPE_MAP = {
@@ -1,3 +1,3 @@
1
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-Ba7NhLvL.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-Bunapr8H.esm.js";
1
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BXq12SGh.esm.js";
2
+ import { t as createDynamicFormsManager } from "./dynamicFormsManager-DvzIRQGp.esm.js";
3
3
  export { createDynamicFormsManager, dynamicFormsMachine };
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
- import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
4
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-Ba7NhLvL.esm.js";
3
+ import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BXq12SGh.esm.js";
5
5
  //#region src/modules/dynamic-forms/dynamicFormsActor.ts
6
6
  function createDynamicFormsActor(options) {
7
7
  return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
@@ -1,8 +1,8 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
- import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
3
- import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-B9McXt0d.esm.js";
4
- import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
5
- import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
2
+ import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
3
+ import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-B7lJaeTn.esm.js";
4
+ import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
5
+ import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
6
  import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
7
7
  //#region src/modules/dynamic-forms/dynamicFormsFields.ts
8
8
  function getEffectiveType(question) {
package/dist/ekyb.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-B8SKnzY5.esm.js";
2
- import { t as ekybMachine } from "./ekybStateMachine-DDyaxJ35.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-BXpy_3I6.esm.js";
1
+ import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-pk---1Sx.esm.js";
2
+ import { t as ekybMachine } from "./ekybStateMachine-iwmM5mCm.esm.js";
3
+ import { t as createEkybManager } from "./ekybManager-Bov25P3N.esm.js";
4
4
  export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
- import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
4
- import { t as ekybMachine } from "./ekybStateMachine-DDyaxJ35.esm.js";
3
+ import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-iwmM5mCm.esm.js";
5
5
  //#region src/modules/ekyb/ekybActor.ts
6
6
  /**
7
7
  * Creates and starts an eKYB actor.
@@ -1,9 +1,9 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
- import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
3
- import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-B8SKnzY5.esm.js";
4
- import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
5
- import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
6
- import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-CoXo7lfZ.esm.js";
2
+ import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
3
+ import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-pk---1Sx.esm.js";
4
+ import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
5
+ import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
+ import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-Bm8zTbQJ.esm.js";
7
7
  //#region src/modules/ekyb/ekybValidators.ts
8
8
  function cleanCnpjString(cnpj) {
9
9
  return cnpj.replace(/\./g, "").replace(/\//g, "").replace(/-/g, "");
package/dist/ekyc.esm.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { a as toEkycConfig } from "./ekycUtils-3FIL6m1x.esm.js";
2
- import { t as ekycMachine } from "./ekycStateMachine-DPMzZNhD.esm.js";
3
- import { t as createEkycManager } from "./ekycManager-DsfBcNxs.esm.js";
2
+ import { t as ekycMachine } from "./ekycStateMachine-DnKlILfu.esm.js";
3
+ import { t as createEkycManager } from "./ekycManager-DZH51PnN.esm.js";
4
4
  export { createEkycManager, ekycMachine, toEkycConfig };
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
- import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
4
- import { t as ekycMachine } from "./ekycStateMachine-DPMzZNhD.esm.js";
3
+ import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
+ import { t as ekycMachine } from "./ekycStateMachine-DnKlILfu.esm.js";
5
5
  //#region src/modules/ekyc/ekycActor.ts
6
6
  /**
7
7
  * Creates and starts an eKYC actor.
@@ -1,9 +1,9 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
- import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
2
+ import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
3
3
  import { _ as STATE_CODE_HINTS, a as toEkycConfig, c as CITY_SOURCES, d as EMAIL_SOURCES, f as HOUSE_NO_SOURCES, g as POSTAL_CODE_SOURCES, h as ONE_OF_REQUIRED_GROUPS, i as resolveEkycSource, l as COUNTRY_CODE_OMITTED_SOURCES, m as NAME_SOURCES, n as getEKYCFields, o as ADDRESS_STATE_SOURCES, p as MIDDLE_NAME_SOURCES, r as isFieldOptional, s as APARTMENT_SOURCES, t as getEKYCCountry, u as COUNTRY_SELECTOR_DISABLED_SOURCES, v as STREET_SOURCES, y as TAX_ID_SOURCES } from "./ekycUtils-3FIL6m1x.esm.js";
4
- import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
5
- import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
6
- import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-CoXo7lfZ.esm.js";
4
+ import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
5
+ import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
+ import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-Bm8zTbQJ.esm.js";
7
7
  import { n as DateFormattingProvider, t as validateCPF } from "./cpf-uAZTPUBy.esm.js";
8
8
  import { n as loadPhoneValidation, t as getPhoneValidation } from "./phoneValidation-DnBcNUNh.esm.js";
9
9
  //#region src/modules/ekyc/ekycValidators.ts
@@ -1,2 +1,2 @@
1
- import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-DYJZjAtq.esm.js";
1
+ import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-DBhszLrG.esm.js";
2
2
  export { AE_CONSENT_KEYS, NAMIRIAL_QES_CONSENT_KEYS, NAMIRIAL_QES_PROVIDER_CODE, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, createElectronicSignatureManagerFromActor, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -1,10 +1,10 @@
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
1
2
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
- import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
5
- import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-B9McXt0d.esm.js";
6
- import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
7
- import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
4
+ import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
5
+ import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-B7lJaeTn.esm.js";
6
+ import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
7
+ import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
8
8
  import { t as externalFetch } from "./externalFetch-CEp51O83.esm.js";
9
9
  //#region src/modules/electronic-signature/electronicSignatureServices.ts
10
10
  async function fetchUnsignedDocuments(signal) {
package/dist/email.esm.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as emailMachine } from "./emailStateMachine-NiunNxhH.esm.js";
2
- import { t as createEmailManager } from "./emailManager-ppIDOf_n.esm.js";
1
+ import { t as emailMachine } from "./emailStateMachine-5Neq3rE5.esm.js";
2
+ import { t as createEmailManager } from "./emailManager-CtlKRRaR.esm.js";
3
3
  export { createEmailManager, emailMachine };
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.esm.js";
2
- import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
3
- import { t as emailMachine } from "./emailStateMachine-NiunNxhH.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
2
+ import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
+ import { t as emailMachine } from "./emailStateMachine-5Neq3rE5.esm.js";
4
4
  import { n as isOtpComplete } from "./otp-D2k3PeSL.esm.js";
5
5
  //#region src/modules/email/emailActor.ts
6
6
  function createEmailActor(options) {
@@ -1,8 +1,8 @@
1
- import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
2
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
4
- import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
5
- import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
2
+ import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
3
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
+ import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
5
+ import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
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) {
@@ -48,6 +48,7 @@ const endpoints = {
48
48
  deviceStats: "/omni/device/stats",
49
49
  featureConfig: "/omni/feature-config",
50
50
  deviceFingerprint: "/omni/add/device-fingerprint",
51
+ deviceFingerprintSignals: "/omni/add/device-fingerprint-signals",
51
52
  onboardingStatus: "/omni/get/onboarding/status",
52
53
  customFields: "/omni/get/custom-fields",
53
54
  addCustomFields: "/omni/add/custom-fields",
@@ -117,8 +117,9 @@ function subscribeEvent(listener) {
117
117
  * Fire-and-forget: never blocks, never throws.
118
118
  * Subscribers always receive the event at emit time. When a batcher is
119
119
  * registered, the event is enqueued for batched delivery. Before any batcher
120
- * is registered (events fired pre-`setup()`), the event is buffered in a
120
+ * is registered (events fired pre-`setup()`), ordinary events are buffered in a
121
121
  * one-shot pending queue and drained into the batcher when it's registered.
122
+ * State changes are dropped from transport until a session can own them.
122
123
  */
123
124
  function addEvent(event) {
124
125
  eventBus.emit(event);
@@ -130,6 +131,7 @@ function addEvent(event) {
130
131
  payload: event.payload ?? {}
131
132
  };
132
133
  if (!analyticsBatcher) {
134
+ if (entry.code === "stateChanged") return;
133
135
  pendingEvents.push(entry);
134
136
  return;
135
137
  }
@@ -206,7 +208,7 @@ function stateChanged(module, screen, payload) {
206
208
  screenEvent({
207
209
  module,
208
210
  screen,
209
- code: "stateEvent",
211
+ code: "stateChanged",
210
212
  payload
211
213
  });
212
214
  }
@@ -318,7 +320,11 @@ function createManagerInstrumentation(moduleName, options) {
318
320
  onModuleOpened: moduleOpened,
319
321
  onModuleClosed: moduleClosed,
320
322
  onScreenOpened: screenOpened,
321
- onScreenClosed: screenClosed,
323
+ onScreenClosed: options?.getEventStateName ? (moduleName, screenName) => {
324
+ getAnalyticsBatcher()?.flushStateChanges?.();
325
+ screenClosed(moduleName, screenName);
326
+ } : screenClosed,
327
+ onStateChanged: (moduleName, screenName, stateName) => stateChanged(moduleName, screenName, { stateName }),
322
328
  onErrorTriggered: (moduleName, errorName, screenName, payload) => errorTriggered(moduleName, screenName, {
323
329
  errorName,
324
330
  ...payload
@@ -333,6 +339,12 @@ function createManagerInstrumentation(moduleName, options) {
333
339
  getEventScreenName: options?.getEventScreenName,
334
340
  getScreenName: options?.getScreenName
335
341
  }),
342
+ getStateName: (snapshot) => {
343
+ const stateName = options?.getEventStateName?.(snapshot);
344
+ if (stateName === void 0) return;
345
+ const trimmed = stateName.trim();
346
+ return trimmed.length > 0 ? trimmed : void 0;
347
+ },
336
348
  getErrorName: (snapshot) => {
337
349
  const mappedError = options?.getErrorName?.(snapshot) ?? getDefaultManagerErrorName(snapshot);
338
350
  if (mappedError === void 0) return;
package/dist/events.d.ts CHANGED
@@ -236,8 +236,9 @@ declare function subscribeEvent(listener: EventSubscriber): () => void;
236
236
  * Fire-and-forget: never blocks, never throws.
237
237
  * Subscribers always receive the event at emit time. When a batcher is
238
238
  * registered, the event is enqueued for batched delivery. Before any batcher
239
- * is registered (events fired pre-`setup()`), the event is buffered in a
239
+ * is registered (events fired pre-`setup()`), ordinary events are buffered in a
240
240
  * one-shot pending queue and drained into the batcher when it's registered.
241
+ * State changes are dropped from transport until a session can own them.
241
242
  */
242
243
  declare function addEvent(event: Event): void;
243
244
  //#endregion
@@ -1,2 +1,2 @@
1
- import { S as subscribeEvent, _ as stateChanged, a as videoSelfieEvents, d as experimentAssigned, f as moduleClosed, g as screenOpened, h as screenEvent, i as tutorialScreenNamesMapper, l as captureAttemptFinished, m as screenClosed, n as eventModuleNames, p as moduleOpened, r as eventScreenNames, s as recordExperimentAssignmentOnce, t as cameraScreenNamesMapper, u as elementClicked, v as addEvent } from "./events-CfLLkAh7.esm.js";
1
+ import { S as subscribeEvent, _ as stateChanged, a as videoSelfieEvents, d as experimentAssigned, f as moduleClosed, g as screenOpened, h as screenEvent, i as tutorialScreenNamesMapper, l as captureAttemptFinished, m as screenClosed, n as eventModuleNames, p as moduleOpened, r as eventScreenNames, s as recordExperimentAssignmentOnce, t as cameraScreenNamesMapper, u as elementClicked, v as addEvent } from "./events-CAgFE-k3.esm.js";
2
2
  export { addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, experimentAssigned, moduleClosed, moduleOpened, recordExperimentAssignmentOnce, screenClosed, screenEvent, screenOpened, stateChanged, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };
@@ -5,12 +5,12 @@ import "./Actor-DpTj5PFb.js";
5
5
  import { c as ElectronicSignatureFileDataHolder } from "./types-D0gekt4U.js";
6
6
  import { a as ElectronicSignatureActor, i as createElectronicSignatureManagerFromActor, n as ElectronicSignatureState, t as ElectronicSignatureManager } from "./electronicSignatureManager-DTSLOvKR.js";
7
7
  import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-DbGCvlJs.js";
8
- import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-D-XSP04N.js";
8
+ import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-jKQ2QtY-.js";
9
9
  import "./createFaceAvatar-DXgmQmQy.js";
10
- import { i as IStorageCapability } from "./IWasmUtilCapability-VC40Kx9N.js";
11
- import "./StreamCanvasCapture-CeBBJ_RC.js";
12
- import { G as WasmUtilProvider, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState, v as IdCaptureActor } from "./idCaptureManager-BXYldO77.js";
13
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-MVD0mrCo.js";
10
+ import { a as IStorageCapability } from "./IWasmUtilCapability-CPX0RGdQ.js";
11
+ import "./StreamCanvasCapture-DVmzJux5.js";
12
+ import { G as WasmUtilProvider, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState, v as IdCaptureActor } from "./idCaptureManager-DW3eER4t.js";
13
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-CANv5-W5.js";
14
14
  import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-Dr8A4Lgr.js";
15
15
  import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-Cv_0QKLD.js";
16
16
  import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-yCWCOzcU.js";
@@ -22,14 +22,14 @@ import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as D
22
22
  import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-BaZ_7CEu.js";
23
23
  import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-DW-ynodd.js";
24
24
  import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-Dy6omJVp.js";
25
- import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-CizvitYB.js";
26
- import { i as CaptureIdResponse } from "./types-D0VzhBS7.js";
25
+ import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-1J0IEyFq.js";
26
+ import { i as CaptureIdResponse } from "./types-CwCWyBEi.js";
27
27
  import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BO-LTih5.js";
28
28
  import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DJQOd8Pw.js";
29
29
  import { i as WatchlistForBusinessState, l as WatchlistForBusinessActor, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager } from "./watchlistForBusinessManager-B3GDPZrr.js";
30
- import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-BUNksfYU.js";
30
+ import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-ooAbp6Kc.js";
31
31
  import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CUX4gza2.js";
32
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-DDixKrq0.js";
32
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-BkaLkcA2.js";
33
33
  import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-DT3kPIB3.js";
34
34
  import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-CVsvpVbQ.js";
35
35
  import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-BpVt_Jv7.js";
@@ -1,37 +1,37 @@
1
- import { r as WasmUtilProvider } from "./safeStorage-DDAHV26l.esm.js";
2
- import { l as BrowserStorageProvider } from "./setup-CCsxCTuW.esm.js";
3
- import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-Gjn-NrIE.esm.js";
4
- import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
5
- import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
6
- import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-DYJZjAtq.esm.js";
7
- import { n as createAntifraudManagerFromActor } from "./antifraudManager-nkA1Xfm1.esm.js";
8
- import { t as faceCaptureMachine } from "./faceCaptureSetup-CeAyB-yC.esm.js";
9
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-BhZZQzwi.esm.js";
10
- import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-B-qjOJde.esm.js";
11
- import { n as createConsentManagerFromActor } from "./consentManager-BhGljt6D.esm.js";
12
- import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-hxUaa6y_.esm.js";
13
- import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-u6dRo9Bq.esm.js";
14
- import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-C5Vw3fdd.esm.js";
15
- import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-szjmQvYu.esm.js";
16
- import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-CV_bOPkN.esm.js";
17
- import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-Bunapr8H.esm.js";
18
- import { n as createEkybManagerFromActor } from "./ekybManager-BXpy_3I6.esm.js";
19
- import { n as createEkycManagerFromActor } from "./ekycManager-DsfBcNxs.esm.js";
20
- import { n as createEmailManagerFromActor } from "./emailManager-ppIDOf_n.esm.js";
21
- import { n as createSelfieManagerFromActor } from "./selfieManager-CG5VP1C-.esm.js";
22
- import { s as createIdCaptureManagerFromActor } from "./idCaptureManager-Bwpdlvxp.esm.js";
23
- import { n as createPhoneManagerFromActor } from "./phoneManager-B6Uu_237.esm.js";
24
- import { n as createWatchlistManagerFromActor } from "./watchlistManager-F1bI2Ad4.esm.js";
25
- import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-cbMppk5K.esm.js";
26
- import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-fu5okQhu.esm.js";
27
- import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-B2y1ko1f.esm.js";
28
- import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentManager-tCHVwjtG.esm.js";
29
- import { n as createIdOcrManagerFromActor } from "./idOcrManager-124LjyWj.esm.js";
30
- import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-CQlyUyc8.esm.js";
31
- import { n as createSignatureManagerFromActor } from "./signatureManager-CEYKCuO4.esm.js";
32
- import { n as createGeolocationManagerFromActor } from "./geolocationManager-DPPSB_oq.esm.js";
33
- import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-UuH2s-oi.esm.js";
34
- import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-BYVW3pLG.esm.js";
35
- import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-BSR94HnV.esm.js";
36
- import { n as createFiscalQrManagerFromActor } from "./fiscalQrManager-gmU-xLHP.esm.js";
1
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
2
+ import { l as BrowserStorageProvider } from "./setup-BJzlqOTL.esm.js";
3
+ import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-CiraPSTG.esm.js";
4
+ import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
5
+ import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
+ import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-DBhszLrG.esm.js";
7
+ import { n as createAntifraudManagerFromActor } from "./antifraudManager-HL08jeDX.esm.js";
8
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-BBqAdrqm.esm.js";
9
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-Bk74vxGj.esm.js";
10
+ import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-CKJ4qjLc.esm.js";
11
+ import { n as createConsentManagerFromActor } from "./consentManager-CjrxY737.esm.js";
12
+ import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-BHnGRsto.esm.js";
13
+ import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-DBNIn8BF.esm.js";
14
+ import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-BV6UyLFV.esm.js";
15
+ import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-DML0UPzf.esm.js";
16
+ import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-C9XUnYU6.esm.js";
17
+ import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-DvzIRQGp.esm.js";
18
+ import { n as createEkybManagerFromActor } from "./ekybManager-Bov25P3N.esm.js";
19
+ import { n as createEkycManagerFromActor } from "./ekycManager-DZH51PnN.esm.js";
20
+ import { n as createEmailManagerFromActor } from "./emailManager-CtlKRRaR.esm.js";
21
+ import { n as createSelfieManagerFromActor } from "./selfieManager-DCzPlJCU.esm.js";
22
+ import { s as createIdCaptureManagerFromActor } from "./idCaptureManager-TokRg0VQ.esm.js";
23
+ import { n as createPhoneManagerFromActor } from "./phoneManager-BGBcpqsk.esm.js";
24
+ import { n as createWatchlistManagerFromActor } from "./watchlistManager-CNWEOYSq.esm.js";
25
+ import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-BvF4jK3S.esm.js";
26
+ import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-BleUi6TK.esm.js";
27
+ import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-Dk38hXZP.esm.js";
28
+ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentManager-CX_Dyht7.esm.js";
29
+ import { n as createIdOcrManagerFromActor } from "./idOcrManager-DxoCesYP.esm.js";
30
+ import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-D8xpgVHn.esm.js";
31
+ import { n as createSignatureManagerFromActor } from "./signatureManager-qqXyH93e.esm.js";
32
+ import { n as createGeolocationManagerFromActor } from "./geolocationManager-Ck6DsjTo.esm.js";
33
+ import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-CP0SiOOe.esm.js";
34
+ import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-CDhRUU5n.esm.js";
35
+ import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-9Nj9aPci.esm.js";
36
+ import { n as createFiscalQrManagerFromActor } from "./fiscalQrManager-DmBkQfs0.esm.js";
37
37
  export { BrowserStorageProvider, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createCertificateIssuanceManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createCustomFieldsManagerFromActor, createCustomWatchlistManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createElectronicSignatureManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createFiscalQrManagerFromActor, createGeolocationManagerFromActor, createGovernmentValidationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, createSignatureManagerFromActor, createWatchlistForBusinessManagerFromActor, createWatchlistManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
@@ -1,3 +1,3 @@
1
- import { n as ID_FACE_EXTRACTION_SKIPPED_CODE, r as isFaceExtractionSkippedError, t as faceMatchMachine } from "./faceMatchStateMachine-BA9LVrWJ.esm.js";
2
- import { n as createFaceMatchManagerFromActor, t as createFaceMatchManager } from "./faceMatchManager-BSR94HnV.esm.js";
1
+ import { n as ID_FACE_EXTRACTION_SKIPPED_CODE, r as isFaceExtractionSkippedError, t as faceMatchMachine } from "./faceMatchStateMachine-B9ZUnlyU.esm.js";
2
+ import { n as createFaceMatchManagerFromActor, t as createFaceMatchManager } from "./faceMatchManager-9Nj9aPci.esm.js";
3
3
  export { ID_FACE_EXTRACTION_SKIPPED_CODE, createFaceMatchManager, createFaceMatchManagerFromActor, faceMatchMachine, isFaceExtractionSkippedError };