@incodetech/core 0.0.0-dev-20260427-0672a89 → 0.0.0-dev-20260427-7dc009f

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 (164) hide show
  1. package/dist/{OpenViduRecordingProvider-7PqRexCU.esm.js → OpenViduRecordingProvider-fsWaumbq.esm.js} +1 -1
  2. package/dist/{WasmUtilProvider-3sS7TzsG.esm.js → WasmUtilProvider-C1QSkwNV.esm.js} +1 -1
  3. package/dist/{addressSearch-CMO_-Isa.esm.js → addressSearch-DqiXc5k8.esm.js} +4 -4
  4. package/dist/{ae-signature-C07fpdHw.esm.js → ae-signature-EpgEyDf5.esm.js} +1 -1
  5. package/dist/ae-signature.d.ts +3 -3
  6. package/dist/ae-signature.esm.js +5 -5
  7. package/dist/antifraud.d.ts +1 -1
  8. package/dist/antifraud.esm.js +4 -4
  9. package/dist/{antifraudStateMachine-BOUj16Hj.esm.js → antifraudStateMachine-BzoGRWXi.esm.js} +3 -3
  10. package/dist/authentication.d.ts +11 -11
  11. package/dist/authentication.esm.js +22 -22
  12. package/dist/{authenticationManager-URLydvU9.esm.js → authenticationManager-Bs07YcDZ.esm.js} +6 -6
  13. package/dist/{authenticationManager-CGn-1c-V.d.ts → authenticationManager-S7ynmxba.d.ts} +2 -2
  14. package/dist/{authenticationStateMachine-D8N6ERZa.esm.js → authenticationStateMachine-MFNXdtaO.esm.js} +6 -6
  15. package/dist/{backCameraStream-CrljCJ-Q.esm.js → backCameraStream-CphKyzSw.esm.js} +3 -3
  16. package/dist/camera.d.ts +1 -1
  17. package/dist/camera.esm.js +3 -3
  18. package/dist/consent.d.ts +55 -55
  19. package/dist/consent.esm.js +4 -4
  20. package/dist/{consentStateMachine-Fa4KYzzn.esm.js → consentStateMachine-Bo4tEHZ7.esm.js} +3 -3
  21. package/dist/cross-document-data-match.d.ts +1 -1
  22. package/dist/cross-document-data-match.esm.js +4 -4
  23. package/dist/curp-validation.d.ts +5 -5
  24. package/dist/curp-validation.esm.js +4 -4
  25. package/dist/{curpValidationStateMachine-oXdccErv.esm.js → curpValidationStateMachine-Bu7fSmqn.esm.js} +3 -3
  26. package/dist/custom-fields.d.ts +2 -2
  27. package/dist/custom-fields.esm.js +3 -3
  28. package/dist/custom-watchlist.d.ts +1 -1
  29. package/dist/custom-watchlist.esm.js +4 -4
  30. package/dist/{deepsightLoader-QMFaZ2jE.esm.js → deepsightLoader-B4UGVVdQ.esm.js} +10 -10
  31. package/dist/{deepsightService-BAbwxVdZ.d.ts → deepsightService-D5u0gQNa.d.ts} +2 -2
  32. package/dist/{deepsightService-BFLmC3ua.esm.js → deepsightService-DN0659qr.esm.js} +5 -5
  33. package/dist/device.esm.js +3 -3
  34. package/dist/document-capture.d.ts +77 -77
  35. package/dist/document-capture.esm.js +8 -8
  36. package/dist/document-upload.d.ts +47 -47
  37. package/dist/document-upload.esm.js +7 -7
  38. package/dist/{documentCaptureStateMachine-CDttntnk.esm.js → documentCaptureStateMachine-CjLKB4Ug.esm.js} +5 -5
  39. package/dist/ekyb.d.ts +3 -3
  40. package/dist/ekyb.esm.js +10 -10
  41. package/dist/{ekybStateMachine-DruS8yRg.esm.js → ekybStateMachine-BaMBRura.esm.js} +5 -5
  42. package/dist/ekyc.d.ts +3 -3
  43. package/dist/ekyc.esm.js +7 -7
  44. package/dist/{ekycStateMachine-U3ivS4-5.esm.js → ekycStateMachine-DvU7sNW5.esm.js} +5 -5
  45. package/dist/electronic-signature.d.ts +3 -3
  46. package/dist/electronic-signature.esm.js +4 -4
  47. package/dist/{electronicSignatureManager-CWJyes3f.esm.js → electronicSignatureManager-B7esTPHN.esm.js} +3 -3
  48. package/dist/email.d.ts +3 -3
  49. package/dist/email.esm.js +6 -6
  50. package/dist/{emailManager-CCrXrAU3.d.ts → emailManager-CAcyOCUc.d.ts} +2 -2
  51. package/dist/{emailManager-y8HVFngo.esm.js → emailManager-RepmkFKY.esm.js} +3 -3
  52. package/dist/{emailStateMachine-bLpj4LRr.esm.js → emailStateMachine-COffWrto.esm.js} +4 -4
  53. package/dist/{events-BYuumPiB.esm.js → events-CMA7Inmi.esm.js} +45 -18
  54. package/dist/events.d.ts +17 -2
  55. package/dist/events.esm.js +2 -2
  56. package/dist/extensibility.d.ts +15 -15
  57. package/dist/extensibility.esm.js +33 -33
  58. package/dist/face-match.d.ts +1 -1
  59. package/dist/face-match.esm.js +4 -4
  60. package/dist/{faceCaptureManagerFactory-0bTuXnNo.esm.js → faceCaptureManagerFactory-BcB-giLW.esm.js} +2 -2
  61. package/dist/{faceCaptureManagerFactory-B9SCeUbN.d.ts → faceCaptureManagerFactory-DgUEV3a1.d.ts} +8 -8
  62. package/dist/{faceCaptureSetup-BLsm9VU9.esm.js → faceCaptureSetup-CYHH3B2R.esm.js} +4 -4
  63. package/dist/{faceMatchStateMachine-CB5JYxiV.esm.js → faceMatchStateMachine-BVAC8vpn.esm.js} +3 -3
  64. package/dist/flow-events.d.ts +6 -0
  65. package/dist/flow-events.esm.js +0 -0
  66. package/dist/flow.d.ts +11 -10
  67. package/dist/flow.esm.js +13 -13
  68. package/dist/{flowCompletionService-B0ua9_Oo.esm.js → flowCompletionService-35cyRGQ2.esm.js} +2 -2
  69. package/dist/{flowServices-ngHx2Tal.esm.js → flowServices-C4ZwSDb5.esm.js} +3 -3
  70. package/dist/geolocation.d.ts +2 -2
  71. package/dist/geolocation.esm.js +5 -5
  72. package/dist/{geolocationStateMachine-Cc2eFVZU.esm.js → geolocationStateMachine-CFOJL1-G.esm.js} +4 -4
  73. package/dist/{getDeviceClass-B_Y-Y-zj.esm.js → getDeviceClass-CR_OFNww.esm.js} +1 -1
  74. package/dist/government-validation.d.ts +2 -2
  75. package/dist/government-validation.esm.js +5 -5
  76. package/dist/{governmentValidationStateMachine-wvZ5ysEM.esm.js → governmentValidationStateMachine-Cb30eJqS.esm.js} +4 -4
  77. package/dist/home.d.ts +14 -14
  78. package/dist/home.esm.js +3 -3
  79. package/dist/http.esm.js +1 -1
  80. package/dist/id-ocr.d.ts +57 -57
  81. package/dist/id-ocr.esm.js +4 -4
  82. package/dist/id.d.ts +10 -10
  83. package/dist/id.esm.js +22 -22
  84. package/dist/{idCaptureManager-DvJEDPBW.esm.js → idCaptureManager-DKXUrFsY.esm.js} +4 -4
  85. package/dist/{idCaptureManager-B_dajBGr.d.ts → idCaptureManager-DRvhAm2R.d.ts} +7 -7
  86. package/dist/{idCaptureStateMachine-CgddydGJ.esm.js → idCaptureStateMachine-BXbSfdjN.esm.js} +16 -16
  87. package/dist/identity-reuse.d.ts +45 -45
  88. package/dist/identity-reuse.esm.js +3 -3
  89. package/dist/{index-ByV8-iY1.d.ts → index-BUWTxs22.d.ts} +120 -120
  90. package/dist/index-DrJrMkIV.d.ts +97 -0
  91. package/dist/index.d.ts +2 -2
  92. package/dist/index.esm.js +8 -8
  93. package/dist/{lib-Db1XxJuS.esm.js → lib-Rxj5LQ3p.esm.js} +1 -1
  94. package/dist/mandatory-consent.d.ts +52 -52
  95. package/dist/mandatory-consent.esm.js +4 -4
  96. package/dist/{mandatoryConsentStateMachine-0bZm4vNr.esm.js → mandatoryConsentStateMachine-D82Km4iM.esm.js} +3 -3
  97. package/dist/{openviduLazy-sruV5sxi.esm.js → openviduLazy-BfcUOckM.esm.js} +2 -2
  98. package/dist/openviduLazy-gXIZhh2F.esm.js +3 -0
  99. package/dist/{permissionServices-BdE8_Evq.esm.js → permissionServices-DdpgW9SN.esm.js} +2 -2
  100. package/dist/phone.d.ts +3 -3
  101. package/dist/phone.esm.js +6 -6
  102. package/dist/{phoneManager-Da8QkPv7.d.ts → phoneManager-C6xPF1n9.d.ts} +2 -2
  103. package/dist/{phoneManager-Wr-zvTY1.esm.js → phoneManager-DtubRN1_.esm.js} +3 -3
  104. package/dist/{phoneStateMachine-BiwbfBRz.esm.js → phoneStateMachine-BxkbhRyM.esm.js} +4 -4
  105. package/dist/{qe-signature-DhBKlGUH.esm.js → qe-signature-BUD-LTiq.esm.js} +1 -1
  106. package/dist/qe-signature.d.ts +3 -3
  107. package/dist/qe-signature.esm.js +5 -5
  108. package/dist/{recordingService-CpbeUNqo.esm.js → recordingService-CcldnifQ.esm.js} +13 -13
  109. package/dist/redirect-to-mobile.d.ts +2 -2
  110. package/dist/redirect-to-mobile.esm.js +5 -5
  111. package/dist/{redirectToMobileStateMachine-BMXJRSAC.esm.js → redirectToMobileStateMachine-DKVT036O.esm.js} +4 -4
  112. package/dist/runChildModule-CE6a3Qge.esm.js +219 -0
  113. package/dist/selfie.d.ts +11 -11
  114. package/dist/selfie.esm.js +22 -22
  115. package/dist/{selfieManager-CkmC58-2.esm.js → selfieManager-C8i4ptVK.esm.js} +6 -6
  116. package/dist/{selfieManager-dLehZvQm.d.ts → selfieManager-D7hFaMqp.d.ts} +2 -2
  117. package/dist/{selfieStateMachine-BusOHMBN.esm.js → selfieStateMachine-D3srIKsi.esm.js} +3 -3
  118. package/dist/{session-CEsW15cJ.esm.js → session-CVnn78wp.esm.js} +4 -4
  119. package/dist/session.d.ts +1 -1
  120. package/dist/session.esm.js +6 -6
  121. package/dist/{setup-Bmg8jzCw.esm.js → setup-C-yXR1rb.esm.js} +5 -5
  122. package/dist/{setup-v-TAsAN2.d.ts → setup-DBlZTmIg.d.ts} +1 -1
  123. package/dist/signature.d.ts +2 -2
  124. package/dist/signature.esm.js +4 -4
  125. package/dist/{signatureStateMachine-D6E5ZdHV.esm.js → signatureStateMachine-ChlaDq9V.esm.js} +3 -3
  126. package/dist/{stats-DE05K1o9.esm.js → stats-B0zmnDQ3.esm.js} +1 -1
  127. package/dist/stats.esm.js +2 -2
  128. package/dist/{types-DZ7Qw6Yc.d.ts → types-Bp25vxVp.d.ts} +1 -1
  129. package/dist/{types-BxjVn8Ry.d.ts → types-ClH8UoEK.d.ts} +1 -1
  130. package/dist/{types-BelKmTqU.d.ts → types-CqgOGNlq.d.ts} +1 -1
  131. package/dist/wasm.d.ts +2 -2
  132. package/dist/wasm.esm.js +8 -8
  133. package/dist/watchlist-for-business.d.ts +1 -1
  134. package/dist/watchlist-for-business.esm.js +3 -3
  135. package/dist/watchlist.d.ts +1 -1
  136. package/dist/watchlist.esm.js +4 -4
  137. package/dist/{watchlistServices-BW1w845W.esm.js → watchlistServices-is8oT4UM.esm.js} +2 -2
  138. package/dist/workflow.d.ts +91 -87
  139. package/dist/workflow.esm.js +47 -47
  140. package/package.json +8 -3
  141. package/dist/openviduLazy-ClEZ-Z5M.esm.js +0 -3
  142. package/dist/runChildModule-DHxT1RV0.esm.js +0 -27
  143. /package/dist/{Actor-gwS4PQSi.d.ts → Actor-BW-sqJw1.d.ts} +0 -0
  144. /package/dist/{BaseWasmProvider-DsxKeFBt.esm.js → BaseWasmProvider-DJVllLC1.esm.js} +0 -0
  145. /package/dist/{BrowserStorageProvider-D99-O_Kf.esm.js → BrowserStorageProvider-DVAPVDBF.esm.js} +0 -0
  146. /package/dist/{BrowserTimerProvider-Dl6dq0R8.esm.js → BrowserTimerProvider-COJygdJT.esm.js} +0 -0
  147. /package/dist/{ITimerCapability-DUFfKzTs.esm.js → ITimerCapability-DUyV4pr-.esm.js} +0 -0
  148. /package/dist/{IpifyProvider-BRMpdf22.esm.js → IpifyProvider-VUtQbLEw.esm.js} +0 -0
  149. /package/dist/{Manager-BmmucBrC.d.ts → Manager-uUcXOI3u.d.ts} +0 -0
  150. /package/dist/{MotionSensorProvider-Qfs1LN2o.esm.js → MotionSensorProvider-4PfJXzu5.esm.js} +0 -0
  151. /package/dist/{StateMachine-B1c7OspS.d.ts → StateMachine-By9gV4uV.d.ts} +0 -0
  152. /package/dist/{api-Bv7xXuMw.esm.js → api-BSXEhIP9.esm.js} +0 -0
  153. /package/dist/{browserSimulation-CB1iKoSy.esm.js → browserSimulation-DkgWRpm9.esm.js} +0 -0
  154. /package/dist/{camera-CXfeCsaz.d.ts → camera-8mZXnNHU.d.ts} +0 -0
  155. /package/dist/{camera-BEKg9OFz.esm.js → camera-BAIH5oJw.esm.js} +0 -0
  156. /package/dist/{chunk-BPmmK_1R.esm.js → chunk-CEPtMTxf.esm.js} +0 -0
  157. /package/dist/{cpf-DEcHUluo.esm.js → cpf-BajDetgO.esm.js} +0 -0
  158. /package/dist/{displayErrors-DT-jBLuo.d.ts → displayErrors-DeBh5qA_.d.ts} +0 -0
  159. /package/dist/{flowCompletionService-BxOJeebo.d.ts → flowCompletionService-CE_7r8I6.d.ts} +0 -0
  160. /package/dist/{getBrowser-COVIk8a4.esm.js → getBrowser-BZ7lWEk3.esm.js} +0 -0
  161. /package/dist/{platform-bAk6j4kV.esm.js → platform-C8vhi30I.esm.js} +0 -0
  162. /package/dist/{types-nURQ3pMv.d.ts → types-B7cBCEFG.d.ts} +0 -0
  163. /package/dist/{warmup-SnxLgQsT.d.ts → warmup-DBMdabeq.d.ts} +0 -0
  164. /package/dist/{xstate.esm-DGcAhoQP.esm.js → xstate.esm-CgUlXRcS.esm.js} +0 -0
@@ -1,11 +1,11 @@
1
- import { t as Manager } from "./Manager-BmmucBrC.js";
2
- import "./Actor-gwS4PQSi.js";
3
- import "./camera-CXfeCsaz.js";
4
- import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-BxjVn8Ry.js";
5
- import * as xstate689 from "xstate";
1
+ import { t as Manager } from "./Manager-uUcXOI3u.js";
2
+ import "./Actor-BW-sqJw1.js";
3
+ import "./camera-8mZXnNHU.js";
4
+ import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-ClH8UoEK.js";
5
+ import * as xstate1167 from "xstate";
6
6
 
7
7
  //#region src/modules/document-upload/documentUploadStateMachine.d.ts
8
- declare const documentUploadMachine: xstate689.StateMachine<DocumentUploadContext, {
8
+ declare const documentUploadMachine: xstate1167.StateMachine<DocumentUploadContext, {
9
9
  type: "START";
10
10
  } | {
11
11
  type: "CAPTURE";
@@ -18,52 +18,52 @@ declare const documentUploadMachine: xstate689.StateMachine<DocumentUploadContex
18
18
  } | {
19
19
  type: "CLOSE";
20
20
  }, {
21
- [x: string]: xstate689.ActorRefFromLogic<xstate689.PromiseActorLogic<void, {
21
+ [x: string]: xstate1167.ActorRefFromLogic<xstate1167.PromiseActorLogic<MediaStream, void, xstate1167.EventObject>> | xstate1167.ActorRefFromLogic<xstate1167.PromiseActorLogic<void, {
22
22
  imageBase64: string;
23
23
  documentType: string;
24
24
  onProgress: (progress: number) => void;
25
- }, xstate689.EventObject>> | xstate689.ActorRefFromLogic<xstate689.PromiseActorLogic<MediaStream, void, xstate689.EventObject>> | undefined;
26
- }, xstate689.Values<{
25
+ }, xstate1167.EventObject>> | undefined;
26
+ }, xstate1167.Values<{
27
27
  uploadDocument: {
28
28
  src: "uploadDocument";
29
- logic: xstate689.PromiseActorLogic<void, {
29
+ logic: xstate1167.PromiseActorLogic<void, {
30
30
  imageBase64: string;
31
31
  documentType: string;
32
32
  onProgress: (progress: number) => void;
33
- }, xstate689.EventObject>;
33
+ }, xstate1167.EventObject>;
34
34
  id: string | undefined;
35
35
  };
36
36
  initCamera: {
37
37
  src: "initCamera";
38
- logic: xstate689.PromiseActorLogic<MediaStream, void, xstate689.EventObject>;
38
+ logic: xstate1167.PromiseActorLogic<MediaStream, void, xstate1167.EventObject>;
39
39
  id: string | undefined;
40
40
  };
41
- }>, xstate689.Values<{
41
+ }>, xstate1167.Values<{
42
42
  setError: {
43
43
  type: "setError";
44
- params: xstate689.NonReducibleUnknown;
44
+ params: xstate1167.NonReducibleUnknown;
45
45
  };
46
46
  clearError: {
47
47
  type: "clearError";
48
- params: xstate689.NonReducibleUnknown;
48
+ params: xstate1167.NonReducibleUnknown;
49
49
  };
50
50
  setStream: {
51
51
  type: "setStream";
52
- params: xstate689.NonReducibleUnknown;
53
- };
54
- setImageAndClearError: {
55
- type: "setImageAndClearError";
56
- params: xstate689.NonReducibleUnknown;
52
+ params: xstate1167.NonReducibleUnknown;
57
53
  };
58
54
  setProgress: {
59
55
  type: "setProgress";
60
- params: xstate689.NonReducibleUnknown;
56
+ params: xstate1167.NonReducibleUnknown;
61
57
  };
62
58
  stopStream: {
63
59
  type: "stopStream";
64
- params: xstate689.NonReducibleUnknown;
60
+ params: xstate1167.NonReducibleUnknown;
61
+ };
62
+ setImageAndClearError: {
63
+ type: "setImageAndClearError";
64
+ params: xstate1167.NonReducibleUnknown;
65
65
  };
66
- }>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate689.NonReducibleUnknown, xstate689.EventObject, xstate689.MetaObject, {
66
+ }>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate1167.NonReducibleUnknown, xstate1167.EventObject, xstate1167.MetaObject, {
67
67
  readonly id: "documentUpload";
68
68
  readonly initial: "idle";
69
69
  readonly context: ({
@@ -72,67 +72,67 @@ declare const documentUploadMachine: xstate689.StateMachine<DocumentUploadContex
72
72
  spawn: {
73
73
  <TSrc extends "uploadDocument" | "initCamera">(logic: TSrc, ...[options]: ({
74
74
  src: "uploadDocument";
75
- logic: xstate689.PromiseActorLogic<void, {
75
+ logic: xstate1167.PromiseActorLogic<void, {
76
76
  imageBase64: string;
77
77
  documentType: string;
78
78
  onProgress: (progress: number) => void;
79
- }, xstate689.EventObject>;
79
+ }, xstate1167.EventObject>;
80
80
  id: string | undefined;
81
81
  } extends infer T ? T extends {
82
82
  src: "uploadDocument";
83
- logic: xstate689.PromiseActorLogic<void, {
83
+ logic: xstate1167.PromiseActorLogic<void, {
84
84
  imageBase64: string;
85
85
  documentType: string;
86
86
  onProgress: (progress: number) => void;
87
- }, xstate689.EventObject>;
87
+ }, xstate1167.EventObject>;
88
88
  id: string | undefined;
89
89
  } ? T extends {
90
90
  src: TSrc;
91
- } ? xstate689.ConditionalRequired<[options?: ({
91
+ } ? xstate1167.ConditionalRequired<[options?: ({
92
92
  id?: T["id"] | undefined;
93
93
  systemId?: string;
94
- input?: xstate689.InputFrom<T["logic"]> | undefined;
94
+ input?: xstate1167.InputFrom<T["logic"]> | undefined;
95
95
  syncSnapshot?: boolean;
96
- } & { [K in xstate689.RequiredActorOptions<T>]: unknown }) | undefined], xstate689.IsNotNever<xstate689.RequiredActorOptions<T>>> : never : never : never) | ({
96
+ } & { [K in xstate1167.RequiredActorOptions<T>]: unknown }) | undefined], xstate1167.IsNotNever<xstate1167.RequiredActorOptions<T>>> : never : never : never) | ({
97
97
  src: "initCamera";
98
- logic: xstate689.PromiseActorLogic<MediaStream, void, xstate689.EventObject>;
98
+ logic: xstate1167.PromiseActorLogic<MediaStream, void, xstate1167.EventObject>;
99
99
  id: string | undefined;
100
100
  } extends infer T_1 ? T_1 extends {
101
101
  src: "initCamera";
102
- logic: xstate689.PromiseActorLogic<MediaStream, void, xstate689.EventObject>;
102
+ logic: xstate1167.PromiseActorLogic<MediaStream, void, xstate1167.EventObject>;
103
103
  id: string | undefined;
104
104
  } ? T_1 extends {
105
105
  src: TSrc;
106
- } ? xstate689.ConditionalRequired<[options?: ({
106
+ } ? xstate1167.ConditionalRequired<[options?: ({
107
107
  id?: T_1["id"] | undefined;
108
108
  systemId?: string;
109
- input?: xstate689.InputFrom<T_1["logic"]> | undefined;
109
+ input?: xstate1167.InputFrom<T_1["logic"]> | undefined;
110
110
  syncSnapshot?: boolean;
111
- } & { [K_1 in xstate689.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate689.IsNotNever<xstate689.RequiredActorOptions<T_1>>> : never : never : never)): xstate689.ActorRefFromLogic<xstate689.GetConcreteByKey<xstate689.Values<{
111
+ } & { [K_1 in xstate1167.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1167.IsNotNever<xstate1167.RequiredActorOptions<T_1>>> : never : never : never)): xstate1167.ActorRefFromLogic<xstate1167.GetConcreteByKey<xstate1167.Values<{
112
112
  uploadDocument: {
113
113
  src: "uploadDocument";
114
- logic: xstate689.PromiseActorLogic<void, {
114
+ logic: xstate1167.PromiseActorLogic<void, {
115
115
  imageBase64: string;
116
116
  documentType: string;
117
117
  onProgress: (progress: number) => void;
118
- }, xstate689.EventObject>;
118
+ }, xstate1167.EventObject>;
119
119
  id: string | undefined;
120
120
  };
121
121
  initCamera: {
122
122
  src: "initCamera";
123
- logic: xstate689.PromiseActorLogic<MediaStream, void, xstate689.EventObject>;
123
+ logic: xstate1167.PromiseActorLogic<MediaStream, void, xstate1167.EventObject>;
124
124
  id: string | undefined;
125
125
  };
126
126
  }>, "src", TSrc>["logic"]>;
127
- <TLogic extends xstate689.AnyActorLogic>(src: TLogic, ...[options]: xstate689.ConditionalRequired<[options?: ({
127
+ <TLogic extends xstate1167.AnyActorLogic>(src: TLogic, ...[options]: xstate1167.ConditionalRequired<[options?: ({
128
128
  id?: never;
129
129
  systemId?: string;
130
- input?: xstate689.InputFrom<TLogic> | undefined;
130
+ input?: xstate1167.InputFrom<TLogic> | undefined;
131
131
  syncSnapshot?: boolean;
132
- } & { [K in xstate689.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate689.IsNotNever<xstate689.RequiredLogicInput<TLogic>>>): xstate689.ActorRefFromLogic<TLogic>;
132
+ } & { [K in xstate1167.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1167.IsNotNever<xstate1167.RequiredLogicInput<TLogic>>>): xstate1167.ActorRefFromLogic<TLogic>;
133
133
  };
134
134
  input: DocumentUploadInput;
135
- self: xstate689.ActorRef<xstate689.MachineSnapshot<DocumentUploadContext, {
135
+ self: xstate1167.ActorRef<xstate1167.MachineSnapshot<DocumentUploadContext, {
136
136
  type: "START";
137
137
  } | {
138
138
  type: "CAPTURE";
@@ -144,7 +144,7 @@ declare const documentUploadMachine: xstate689.StateMachine<DocumentUploadContex
144
144
  type: "RETRY";
145
145
  } | {
146
146
  type: "CLOSE";
147
- }, Record<string, xstate689.AnyActorRef | undefined>, xstate689.StateValue, string, unknown, any, any>, {
147
+ }, Record<string, xstate1167.AnyActorRef | undefined>, xstate1167.StateValue, string, unknown, any, any>, {
148
148
  type: "START";
149
149
  } | {
150
150
  type: "CAPTURE";
@@ -156,7 +156,7 @@ declare const documentUploadMachine: xstate689.StateMachine<DocumentUploadContex
156
156
  type: "RETRY";
157
157
  } | {
158
158
  type: "CLOSE";
159
- }, xstate689.AnyEventObject>;
159
+ }, xstate1167.AnyEventObject>;
160
160
  }) => {
161
161
  config: DocumentUploadConfig;
162
162
  stream: undefined;
@@ -226,7 +226,7 @@ declare const documentUploadMachine: xstate689.StateMachine<DocumentUploadContex
226
226
  } | {
227
227
  type: "CLOSE";
228
228
  };
229
- self: xstate689.ActorRef<xstate689.MachineSnapshot<DocumentUploadContext, {
229
+ self: xstate1167.ActorRef<xstate1167.MachineSnapshot<DocumentUploadContext, {
230
230
  type: "START";
231
231
  } | {
232
232
  type: "CAPTURE";
@@ -238,7 +238,7 @@ declare const documentUploadMachine: xstate689.StateMachine<DocumentUploadContex
238
238
  type: "RETRY";
239
239
  } | {
240
240
  type: "CLOSE";
241
- }, Record<string, xstate689.AnyActorRef>, xstate689.StateValue, string, unknown, any, any>, {
241
+ }, Record<string, xstate1167.AnyActorRef>, xstate1167.StateValue, string, unknown, any, any>, {
242
242
  type: "START";
243
243
  } | {
244
244
  type: "CAPTURE";
@@ -250,7 +250,7 @@ declare const documentUploadMachine: xstate689.StateMachine<DocumentUploadContex
250
250
  type: "RETRY";
251
251
  } | {
252
252
  type: "CLOSE";
253
- }, xstate689.AnyEventObject>;
253
+ }, xstate1167.AnyEventObject>;
254
254
  }) => {
255
255
  imageBase64: string;
256
256
  documentType: string;
@@ -1,10 +1,10 @@
1
- import { t as api } from "./api-Bv7xXuMw.esm.js";
2
- import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-BYuumPiB.esm.js";
3
- import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-DGcAhoQP.esm.js";
4
- import { i as stopCameraStream } from "./camera-BEKg9OFz.esm.js";
5
- import "./platform-bAk6j4kV.esm.js";
6
- import "./ITimerCapability-DUFfKzTs.esm.js";
7
- import { t as getBackCameraStream } from "./backCameraStream-CrljCJ-Q.esm.js";
1
+ import { t as api } from "./api-BSXEhIP9.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation, v as endpoints } from "./events-CMA7Inmi.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-CgUlXRcS.esm.js";
4
+ import { i as stopCameraStream } from "./camera-BAIH5oJw.esm.js";
5
+ import "./platform-C8vhi30I.esm.js";
6
+ import "./ITimerCapability-DUyV4pr-.esm.js";
7
+ import { t as getBackCameraStream } from "./backCameraStream-CphKyzSw.esm.js";
8
8
 
9
9
  //#region src/modules/document-upload/documentUploadServices.ts
10
10
  async function uploadDocument({ imageBase64, documentType, onProgress, signal }) {
@@ -1,8 +1,8 @@
1
- import { t as api } from "./api-Bv7xXuMw.esm.js";
2
- import { _ as endpoints } from "./events-BYuumPiB.esm.js";
3
- import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-DGcAhoQP.esm.js";
4
- import { i as stopCameraStream } from "./camera-BEKg9OFz.esm.js";
5
- import { t as getBackCameraStream } from "./backCameraStream-CrljCJ-Q.esm.js";
1
+ import { t as api } from "./api-BSXEhIP9.esm.js";
2
+ import { v as endpoints } from "./events-CMA7Inmi.esm.js";
3
+ import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-CgUlXRcS.esm.js";
4
+ import { i as stopCameraStream } from "./camera-BAIH5oJw.esm.js";
5
+ import { t as getBackCameraStream } from "./backCameraStream-CphKyzSw.esm.js";
6
6
 
7
7
  //#region src/modules/document-capture/types.ts
8
8
  const PROCESSING_TYPE_MAP = {
package/dist/ekyb.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { t as Manager } from "./Manager-BmmucBrC.js";
2
- import "./Actor-gwS4PQSi.js";
3
- import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-DT-jBLuo.js";
1
+ import { t as Manager } from "./Manager-uUcXOI3u.js";
2
+ import "./Actor-BW-sqJw1.js";
3
+ import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-DeBh5qA_.js";
4
4
 
5
5
  //#region src/modules/ekyb/types.d.ts
6
6
  type UboEntry = {
package/dist/ekyb.esm.js CHANGED
@@ -1,13 +1,13 @@
1
- import "./api-Bv7xXuMw.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-BYuumPiB.esm.js";
3
- import "./session-CEsW15cJ.esm.js";
4
- import "./IpifyProvider-BRMpdf22.esm.js";
5
- import "./browserSimulation-CB1iKoSy.esm.js";
6
- import { a as createActor, o as createManager } from "./xstate.esm-DGcAhoQP.esm.js";
7
- import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as computeDisplayErrors, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-DruS8yRg.esm.js";
8
- import "./addressSearch-CMO_-Isa.esm.js";
9
- import "./flowServices-ngHx2Tal.esm.js";
10
- import "./BrowserTimerProvider-Dl6dq0R8.esm.js";
1
+ import "./api-BSXEhIP9.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMA7Inmi.esm.js";
3
+ import "./session-CVnn78wp.esm.js";
4
+ import "./IpifyProvider-VUtQbLEw.esm.js";
5
+ import "./browserSimulation-DkgWRpm9.esm.js";
6
+ import { a as createActor, o as createManager } from "./xstate.esm-CgUlXRcS.esm.js";
7
+ import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as computeDisplayErrors, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-BaMBRura.esm.js";
8
+ import "./addressSearch-DqiXc5k8.esm.js";
9
+ import "./flowServices-C4ZwSDb5.esm.js";
10
+ import "./BrowserTimerProvider-COJygdJT.esm.js";
11
11
 
12
12
  //#region src/modules/ekyb/ekybActor.ts
13
13
  /**
@@ -1,8 +1,8 @@
1
- import { t as api } from "./api-Bv7xXuMw.esm.js";
2
- import { _ as endpoints } from "./events-BYuumPiB.esm.js";
3
- import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-DGcAhoQP.esm.js";
4
- import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-CMO_-Isa.esm.js";
5
- import { t as getFlow } from "./flowServices-ngHx2Tal.esm.js";
1
+ import { t as api } from "./api-BSXEhIP9.esm.js";
2
+ import { v as endpoints } from "./events-CMA7Inmi.esm.js";
3
+ import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-CgUlXRcS.esm.js";
4
+ import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-DqiXc5k8.esm.js";
5
+ import { t as getFlow } from "./flowServices-C4ZwSDb5.esm.js";
6
6
 
7
7
  //#region src/modules/ekyb/ekybConstants.ts
8
8
  const UBO_INPUT_LIMIT = 8;
package/dist/ekyc.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { t as Manager } from "./Manager-BmmucBrC.js";
2
- import "./Actor-gwS4PQSi.js";
3
- import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-DT-jBLuo.js";
1
+ import { t as Manager } from "./Manager-uUcXOI3u.js";
2
+ import "./Actor-BW-sqJw1.js";
3
+ import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-DeBh5qA_.js";
4
4
 
5
5
  //#region src/modules/ekyc/types.d.ts
6
6
  type EkycFieldSource = 'user_input' | 'document_scan' | 'poa_document' | 'phone_module_input' | 'email_module_input' | false;
package/dist/ekyc.esm.js CHANGED
@@ -1,10 +1,10 @@
1
- import "./api-Bv7xXuMw.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-BYuumPiB.esm.js";
3
- import { a as createActor, o as createManager } from "./xstate.esm-DGcAhoQP.esm.js";
4
- import "./addressSearch-CMO_-Isa.esm.js";
5
- import "./BrowserTimerProvider-Dl6dq0R8.esm.js";
6
- import { n as computeDisplayErrors, t as ekycMachine } from "./ekycStateMachine-U3ivS4-5.esm.js";
7
- import "./cpf-DEcHUluo.esm.js";
1
+ import "./api-BSXEhIP9.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMA7Inmi.esm.js";
3
+ import { a as createActor, o as createManager } from "./xstate.esm-CgUlXRcS.esm.js";
4
+ import "./addressSearch-DqiXc5k8.esm.js";
5
+ import "./BrowserTimerProvider-COJygdJT.esm.js";
6
+ import { n as computeDisplayErrors, t as ekycMachine } from "./ekycStateMachine-DvU7sNW5.esm.js";
7
+ import "./cpf-BajDetgO.esm.js";
8
8
 
9
9
  //#region src/modules/ekyc/ekycActor.ts
10
10
  /**
@@ -1,8 +1,8 @@
1
- import { t as api } from "./api-Bv7xXuMw.esm.js";
2
- import { _ as endpoints } from "./events-BYuumPiB.esm.js";
3
- import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-DGcAhoQP.esm.js";
4
- import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-CMO_-Isa.esm.js";
5
- import { t as validateCPF } from "./cpf-DEcHUluo.esm.js";
1
+ import { t as api } from "./api-BSXEhIP9.esm.js";
2
+ import { v as endpoints } from "./events-CMA7Inmi.esm.js";
3
+ import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-CgUlXRcS.esm.js";
4
+ import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-DqiXc5k8.esm.js";
5
+ import { t as validateCPF } from "./cpf-BajDetgO.esm.js";
6
6
 
7
7
  //#region src/modules/ekyc/ekycConsts.ts
8
8
  const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER"];
@@ -1,4 +1,4 @@
1
- import "./Manager-BmmucBrC.js";
2
- import "./Actor-gwS4PQSi.js";
3
- import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-ByV8-iY1.js";
1
+ import "./Manager-uUcXOI3u.js";
2
+ import "./Actor-BW-sqJw1.js";
3
+ import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-BUWTxs22.js";
4
4
  export { AE_CONSENT_KEYS, AeConsentKey, ConsentChecks, ConsentKey, ElectronicSignatureConfig, ElectronicSignatureDocument, ElectronicSignatureManager, ElectronicSignatureState, ElectronicSignatureVariant, QE_CONSENT_KEYS, QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -1,6 +1,6 @@
1
- import "./api-Bv7xXuMw.esm.js";
2
- import "./events-BYuumPiB.esm.js";
3
- import "./xstate.esm-DGcAhoQP.esm.js";
4
- import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, o as getConsentKeys, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-CWJyes3f.esm.js";
1
+ import "./api-BSXEhIP9.esm.js";
2
+ import "./events-CMA7Inmi.esm.js";
3
+ import "./xstate.esm-CgUlXRcS.esm.js";
4
+ import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, o as getConsentKeys, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-B7esTPHN.esm.js";
5
5
 
6
6
  export { AE_CONSENT_KEYS, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -1,6 +1,6 @@
1
- import { t as api } from "./api-Bv7xXuMw.esm.js";
2
- import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-BYuumPiB.esm.js";
3
- import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-DGcAhoQP.esm.js";
1
+ import { t as api } from "./api-BSXEhIP9.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation, v as endpoints } from "./events-CMA7Inmi.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-CgUlXRcS.esm.js";
4
4
 
5
5
  //#region ../infra/src/http/externalFetch.ts
6
6
  async function externalFetch(config) {
package/dist/email.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import "./Manager-BmmucBrC.js";
2
- import "./Actor-gwS4PQSi.js";
3
- import { a as emailMachine, n as EmailState, o as EmailConfig, r as createEmailManager, t as EmailManager } from "./emailManager-CCrXrAU3.js";
1
+ import "./Manager-uUcXOI3u.js";
2
+ import "./Actor-BW-sqJw1.js";
3
+ import { a as emailMachine, n as EmailState, o as EmailConfig, r as createEmailManager, t as EmailManager } from "./emailManager-CAcyOCUc.js";
4
4
  export { type EmailConfig, type EmailManager, type EmailState, createEmailManager, emailMachine };
package/dist/email.esm.js CHANGED
@@ -1,8 +1,8 @@
1
- import "./api-Bv7xXuMw.esm.js";
2
- import "./events-BYuumPiB.esm.js";
3
- import "./xstate.esm-DGcAhoQP.esm.js";
4
- import "./BrowserTimerProvider-Dl6dq0R8.esm.js";
5
- import { t as emailMachine } from "./emailStateMachine-bLpj4LRr.esm.js";
6
- import { t as createEmailManager } from "./emailManager-y8HVFngo.esm.js";
1
+ import "./api-BSXEhIP9.esm.js";
2
+ import "./events-CMA7Inmi.esm.js";
3
+ import "./xstate.esm-CgUlXRcS.esm.js";
4
+ import "./BrowserTimerProvider-COJygdJT.esm.js";
5
+ import { t as emailMachine } from "./emailStateMachine-COffWrto.esm.js";
6
+ import { t as createEmailManager } from "./emailManager-RepmkFKY.esm.js";
7
7
 
8
8
  export { createEmailManager, emailMachine };
@@ -1,5 +1,5 @@
1
- import { t as Manager } from "./Manager-BmmucBrC.js";
2
- import { t as ActorRefFrom } from "./Actor-gwS4PQSi.js";
1
+ import { t as Manager } from "./Manager-uUcXOI3u.js";
2
+ import { t as ActorRefFrom } from "./Actor-BW-sqJw1.js";
3
3
 
4
4
  //#region src/modules/email/types.d.ts
5
5
 
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-BYuumPiB.esm.js";
2
- import { a as createActor, o as createManager } from "./xstate.esm-DGcAhoQP.esm.js";
3
- import { t as emailMachine } from "./emailStateMachine-bLpj4LRr.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMA7Inmi.esm.js";
2
+ import { a as createActor, o as createManager } from "./xstate.esm-CgUlXRcS.esm.js";
3
+ import { t as emailMachine } from "./emailStateMachine-COffWrto.esm.js";
4
4
 
5
5
  //#region src/modules/email/emailActor.ts
6
6
  function createEmailActor(options) {
@@ -1,7 +1,7 @@
1
- import { t as api } from "./api-Bv7xXuMw.esm.js";
2
- import { _ as endpoints } from "./events-BYuumPiB.esm.js";
3
- import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-DGcAhoQP.esm.js";
4
- import { t as BrowserTimerProvider } from "./BrowserTimerProvider-Dl6dq0R8.esm.js";
1
+ import { t as api } from "./api-BSXEhIP9.esm.js";
2
+ import { v as endpoints } from "./events-CMA7Inmi.esm.js";
3
+ import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-CgUlXRcS.esm.js";
4
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-COJygdJT.esm.js";
5
5
 
6
6
  //#region src/modules/email/emailServices.ts
7
7
  async function fetchEmail(signal) {
@@ -1,4 +1,4 @@
1
- import { i as isApiConfigured, r as getToken, t as api } from "./api-Bv7xXuMw.esm.js";
1
+ import { i as isApiConfigured, r as getToken, t as api } from "./api-BSXEhIP9.esm.js";
2
2
 
3
3
  //#region ../infra/src/capabilities/IBrowserEnvironmentCapability.ts
4
4
  function getTimestamp() {
@@ -93,6 +93,36 @@ const endpoints = {
93
93
  processCrossDocumentDataMatch: "/omni/cross-doc-data-check/process"
94
94
  };
95
95
 
96
+ //#endregion
97
+ //#region src/internal/events/eventBus.ts
98
+ function createEventBus() {
99
+ const listeners = [];
100
+ function subscribe(listener) {
101
+ listeners.push(listener);
102
+ return () => {
103
+ const index = listeners.indexOf(listener);
104
+ if (index > -1) listeners.splice(index, 1);
105
+ };
106
+ }
107
+ function emit(event) {
108
+ listeners.forEach((listener) => {
109
+ try {
110
+ listener(event);
111
+ } catch {
112
+ return;
113
+ }
114
+ });
115
+ }
116
+ function clear() {
117
+ listeners.length = 0;
118
+ }
119
+ return {
120
+ subscribe,
121
+ emit,
122
+ clear
123
+ };
124
+ }
125
+
96
126
  //#endregion
97
127
  //#region src/internal/events/addEvent.ts
98
128
  const INTERVIEW_EVENTS_MAX_SCREEN_LENGTH = 50;
@@ -107,10 +137,18 @@ function normalizeScreenForInterviewEventsApi(screenValue) {
107
137
  return head;
108
138
  }
109
139
  const eventsQueue = [];
110
- const eventSubscribers = [];
140
+ const eventBus = createEventBus();
111
141
  /**
112
- * Subscribes to all SDK events for logging, debugging, or custom analytics.
113
- * Returns an unsubscribe function.
142
+ * Subscribes to raw SDK analytics events.
143
+ *
144
+ * This stream includes noisy tracking events such as `screenOpened`,
145
+ * `elementClicked`, and `captureAttemptFinished`. These events are also used by
146
+ * the SDK analytics pipeline and may be queued or posted to the interview-events
147
+ * API.
148
+ *
149
+ * For curated flow milestones such as `flow.started`, `flow.ready`, and
150
+ * `flow.completed`, use `manager.subscribeFlowEvent()`. The `FlowEvent` type is
151
+ * exported from `@incodetech/core/flow-events`.
114
152
  *
115
153
  * @param listener - Callback function that receives each event
116
154
  * @returns Unsubscribe function to remove the listener
@@ -126,18 +164,7 @@ const eventSubscribers = [];
126
164
  * ```
127
165
  */
128
166
  function subscribeEvent(listener) {
129
- eventSubscribers.push(listener);
130
- return () => {
131
- const index = eventSubscribers.indexOf(listener);
132
- if (index > -1) eventSubscribers.splice(index, 1);
133
- };
134
- }
135
- function notifySubscribers(event) {
136
- eventSubscribers.forEach((listener) => {
137
- try {
138
- listener(event);
139
- } catch (_error) {}
140
- });
167
+ return eventBus.subscribe(listener);
141
168
  }
142
169
  /**
143
170
  * Sends an event to the dashboard for tracking.
@@ -145,7 +172,7 @@ function notifySubscribers(event) {
145
172
  * Events are queued if SDK is not configured yet.
146
173
  */
147
174
  function addEvent(event) {
148
- notifySubscribers(event);
175
+ eventBus.emit(event);
149
176
  const token = getToken();
150
177
  if (!isApiConfigured() || !token) {
151
178
  eventsQueue.push(event);
@@ -494,4 +521,4 @@ const cameraScreenNamesMapper = {
494
521
  };
495
522
 
496
523
  //#endregion
497
- export { endpoints as _, videoSelfieEvents as a, elementClicked as c, screenClosed as d, screenEvent as f, subscribeEvent as g, flushEventQueue as h, tutorialScreenNamesMapper as i, moduleClosed as l, addEvent as m, eventModuleNames as n, createManagerInstrumentation as o, screenOpened as p, eventScreenNames as r, captureAttemptFinished as s, cameraScreenNamesMapper as t, moduleOpened as u, getTimestamp as v, revokeObjectURL as y };
524
+ export { createEventBus as _, videoSelfieEvents as a, revokeObjectURL as b, elementClicked as c, screenClosed as d, screenEvent as f, subscribeEvent as g, flushEventQueue as h, tutorialScreenNamesMapper as i, moduleClosed as l, addEvent as m, eventModuleNames as n, createManagerInstrumentation as o, screenOpened as p, eventScreenNames as r, captureAttemptFinished as s, cameraScreenNamesMapper as t, moduleOpened as u, endpoints as v, getTimestamp as y };
package/dist/events.d.ts CHANGED
@@ -1,4 +1,11 @@
1
1
  //#region src/internal/events/types.d.ts
2
+ /**
3
+ * Raw SDK analytics event used by dashboard tracking and custom analytics.
4
+ *
5
+ * This event stream can include detailed/noisy tracking such as screen opens,
6
+ * element clicks, capture attempts, and errors. For curated flow milestones,
7
+ * use `FlowEvent` from `@incodetech/core/flow-events`.
8
+ */
2
9
  type Event = {
3
10
  code: string;
4
11
  module?: string;
@@ -185,8 +192,16 @@ type EventScreen = (typeof eventScreenNames)[keyof typeof eventScreenNames];
185
192
  //#region src/internal/events/addEvent.d.ts
186
193
  type EventSubscriber = (event: Event) => void;
187
194
  /**
188
- * Subscribes to all SDK events for logging, debugging, or custom analytics.
189
- * Returns an unsubscribe function.
195
+ * Subscribes to raw SDK analytics events.
196
+ *
197
+ * This stream includes noisy tracking events such as `screenOpened`,
198
+ * `elementClicked`, and `captureAttemptFinished`. These events are also used by
199
+ * the SDK analytics pipeline and may be queued or posted to the interview-events
200
+ * API.
201
+ *
202
+ * For curated flow milestones such as `flow.started`, `flow.ready`, and
203
+ * `flow.completed`, use `manager.subscribeFlowEvent()`. The `FlowEvent` type is
204
+ * exported from `@incodetech/core/flow-events`.
190
205
  *
191
206
  * @param listener - Callback function that receives each event
192
207
  * @returns Unsubscribe function to remove the listener
@@ -1,4 +1,4 @@
1
- import "./api-Bv7xXuMw.esm.js";
2
- import { a as videoSelfieEvents, c as elementClicked, d as screenClosed, f as screenEvent, g as subscribeEvent, h as flushEventQueue, i as tutorialScreenNamesMapper, l as moduleClosed, m as addEvent, n as eventModuleNames, p as screenOpened, r as eventScreenNames, s as captureAttemptFinished, t as cameraScreenNamesMapper, u as moduleOpened } from "./events-BYuumPiB.esm.js";
1
+ import "./api-BSXEhIP9.esm.js";
2
+ import { a as videoSelfieEvents, c as elementClicked, d as screenClosed, f as screenEvent, g as subscribeEvent, h as flushEventQueue, i as tutorialScreenNamesMapper, l as moduleClosed, m as addEvent, n as eventModuleNames, p as screenOpened, r as eventScreenNames, s as captureAttemptFinished, t as cameraScreenNamesMapper, u as moduleOpened } from "./events-CMA7Inmi.esm.js";
3
3
 
4
4
  export { addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, flushEventQueue, moduleClosed, moduleOpened, screenClosed, screenEvent, screenOpened, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };
@@ -1,18 +1,18 @@
1
- import "./warmup-SnxLgQsT.js";
2
- import "./Manager-BmmucBrC.js";
3
- import { n as createActor } from "./Actor-gwS4PQSi.js";
4
- import { r as fromPromise } from "./StateMachine-B1c7OspS.js";
5
- import { c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, p as BaseWasmProvider, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine } from "./faceCaptureManagerFactory-B9SCeUbN.js";
6
- import "./camera-CXfeCsaz.js";
7
- import "./types-BxjVn8Ry.js";
8
- import "./types-BelKmTqU.js";
9
- import { a as IWasmUtilCapability, o as VirtualCameraCheckOutput, s as WasmUtilConfig, u as IStorageCapability } from "./deepsightService-BAbwxVdZ.js";
10
- import "./types-nURQ3pMv.js";
11
- import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-dLehZvQm.js";
12
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-CGn-1c-V.js";
13
- import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CCrXrAU3.js";
14
- import { T as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-B_dajBGr.js";
15
- import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-Da8QkPv7.js";
1
+ import "./warmup-DBMdabeq.js";
2
+ import "./Manager-uUcXOI3u.js";
3
+ import { n as createActor } from "./Actor-BW-sqJw1.js";
4
+ import { r as fromPromise } from "./StateMachine-By9gV4uV.js";
5
+ import { c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, p as BaseWasmProvider, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine } from "./faceCaptureManagerFactory-DgUEV3a1.js";
6
+ import "./camera-8mZXnNHU.js";
7
+ import "./types-ClH8UoEK.js";
8
+ import "./types-CqgOGNlq.js";
9
+ import { a as IWasmUtilCapability, o as VirtualCameraCheckOutput, s as WasmUtilConfig, u as IStorageCapability } from "./deepsightService-D5u0gQNa.js";
10
+ import "./types-B7cBCEFG.js";
11
+ import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-D7hFaMqp.js";
12
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-S7ynmxba.js";
13
+ import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CAcyOCUc.js";
14
+ import { T as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-DRvhAm2R.js";
15
+ import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-C6xPF1n9.js";
16
16
 
17
17
  //#region src/modules/authentication/authenticationUploadService.d.ts
18
18
  type AuthenticationUploadResponse = {