@kubesense/kubesense-browser-rum-core 1.0.0

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 (689) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +3 -0
  3. package/cjs/boot/preStartRum.d.ts +7 -0
  4. package/cjs/boot/preStartRum.js +190 -0
  5. package/cjs/boot/preStartRum.js.map +1 -0
  6. package/cjs/boot/rumPublicApi.d.ts +409 -0
  7. package/cjs/boot/rumPublicApi.js +168 -0
  8. package/cjs/boot/rumPublicApi.js.map +1 -0
  9. package/cjs/boot/startRum.d.ts +109 -0
  10. package/cjs/boot/startRum.js +153 -0
  11. package/cjs/boot/startRum.js.map +1 -0
  12. package/cjs/browser/cookieObservable.d.ts +8 -0
  13. package/cjs/browser/cookieObservable.js +39 -0
  14. package/cjs/browser/cookieObservable.js.map +1 -0
  15. package/cjs/browser/domMutationObservable.d.ts +27 -0
  16. package/cjs/browser/domMutationObservable.js +58 -0
  17. package/cjs/browser/domMutationObservable.js.map +1 -0
  18. package/cjs/browser/firstInputPolyfill.d.ts +8 -0
  19. package/cjs/browser/firstInputPolyfill.js +68 -0
  20. package/cjs/browser/firstInputPolyfill.js.map +1 -0
  21. package/cjs/browser/htmlDomUtils.d.ts +13 -0
  22. package/cjs/browser/htmlDomUtils.js +46 -0
  23. package/cjs/browser/htmlDomUtils.js.map +1 -0
  24. package/cjs/browser/locationChangeObservable.d.ts +7 -0
  25. package/cjs/browser/locationChangeObservable.js +51 -0
  26. package/cjs/browser/locationChangeObservable.js.map +1 -0
  27. package/cjs/browser/performanceObservable.d.ts +174 -0
  28. package/cjs/browser/performanceObservable.js +126 -0
  29. package/cjs/browser/performanceObservable.js.map +1 -0
  30. package/cjs/browser/performanceUtils.d.ts +7 -0
  31. package/cjs/browser/performanceUtils.js +42 -0
  32. package/cjs/browser/performanceUtils.js.map +1 -0
  33. package/cjs/browser/scroll.d.ts +2 -0
  34. package/cjs/browser/scroll.js +33 -0
  35. package/cjs/browser/scroll.js.map +1 -0
  36. package/cjs/browser/viewportObservable.d.ts +10 -0
  37. package/cjs/browser/viewportObservable.js +37 -0
  38. package/cjs/browser/viewportObservable.js.map +1 -0
  39. package/cjs/browser/windowOpenObservable.d.ts +5 -0
  40. package/cjs/browser/windowOpenObservable.js +10 -0
  41. package/cjs/browser/windowOpenObservable.js.map +1 -0
  42. package/cjs/domain/action/actionCollection.d.ts +21 -0
  43. package/cjs/domain/action/actionCollection.js +96 -0
  44. package/cjs/domain/action/actionCollection.js.map +1 -0
  45. package/cjs/domain/action/actionNameConstants.d.ts +18 -0
  46. package/cjs/domain/action/actionNameConstants.js +11 -0
  47. package/cjs/domain/action/actionNameConstants.js.map +1 -0
  48. package/cjs/domain/action/clickChain.d.ts +8 -0
  49. package/cjs/domain/action/clickChain.js +61 -0
  50. package/cjs/domain/action/clickChain.js.map +1 -0
  51. package/cjs/domain/action/computeFrustration.d.ts +6 -0
  52. package/cjs/domain/action/computeFrustration.js +70 -0
  53. package/cjs/domain/action/computeFrustration.js.map +1 -0
  54. package/cjs/domain/action/getActionNameFromElement.d.ts +4 -0
  55. package/cjs/domain/action/getActionNameFromElement.js +239 -0
  56. package/cjs/domain/action/getActionNameFromElement.js.map +1 -0
  57. package/cjs/domain/action/interactionSelectorCache.d.ts +5 -0
  58. package/cjs/domain/action/interactionSelectorCache.js +23 -0
  59. package/cjs/domain/action/interactionSelectorCache.js.map +1 -0
  60. package/cjs/domain/action/listenActionEvents.d.ts +19 -0
  61. package/cjs/domain/action/listenActionEvents.js +61 -0
  62. package/cjs/domain/action/listenActionEvents.js.map +1 -0
  63. package/cjs/domain/action/trackClickActions.d.ts +81 -0
  64. package/cjs/domain/action/trackClickActions.js +237 -0
  65. package/cjs/domain/action/trackClickActions.js.map +1 -0
  66. package/cjs/domain/assembly.d.ts +5 -0
  67. package/cjs/domain/assembly.js +102 -0
  68. package/cjs/domain/assembly.js.map +1 -0
  69. package/cjs/domain/configuration/configuration.d.ts +325 -0
  70. package/cjs/domain/configuration/configuration.js +205 -0
  71. package/cjs/domain/configuration/configuration.js.map +1 -0
  72. package/cjs/domain/configuration/index.d.ts +2 -0
  73. package/cjs/domain/configuration/index.js +19 -0
  74. package/cjs/domain/configuration/index.js.map +1 -0
  75. package/cjs/domain/configuration/jsonPathParser.d.ts +28 -0
  76. package/cjs/domain/configuration/jsonPathParser.js +159 -0
  77. package/cjs/domain/configuration/jsonPathParser.js.map +1 -0
  78. package/cjs/domain/configuration/remoteConfiguration.d.ts +39 -0
  79. package/cjs/domain/configuration/remoteConfiguration.js +243 -0
  80. package/cjs/domain/configuration/remoteConfiguration.js.map +1 -0
  81. package/cjs/domain/configuration/remoteConfiguration.types.d.ts +138 -0
  82. package/cjs/domain/configuration/remoteConfiguration.types.js +7 -0
  83. package/cjs/domain/configuration/remoteConfiguration.types.js.map +1 -0
  84. package/cjs/domain/contexts/ciVisibilityContext.d.ts +12 -0
  85. package/cjs/domain/contexts/ciVisibilityContext.js +34 -0
  86. package/cjs/domain/contexts/ciVisibilityContext.js.map +1 -0
  87. package/cjs/domain/contexts/connectivityContext.d.ts +2 -0
  88. package/cjs/domain/contexts/connectivityContext.js +11 -0
  89. package/cjs/domain/contexts/connectivityContext.js.map +1 -0
  90. package/cjs/domain/contexts/defaultContext.d.ts +4 -0
  91. package/cjs/domain/contexts/defaultContext.js +34 -0
  92. package/cjs/domain/contexts/defaultContext.js.map +1 -0
  93. package/cjs/domain/contexts/displayContext.d.ts +6 -0
  94. package/cjs/domain/contexts/displayContext.js +28 -0
  95. package/cjs/domain/contexts/displayContext.js.map +1 -0
  96. package/cjs/domain/contexts/featureFlagContext.d.ts +19 -0
  97. package/cjs/domain/contexts/featureFlagContext.js +53 -0
  98. package/cjs/domain/contexts/featureFlagContext.js.map +1 -0
  99. package/cjs/domain/contexts/internalContext.d.ts +12 -0
  100. package/cjs/domain/contexts/internalContext.js +26 -0
  101. package/cjs/domain/contexts/internalContext.js.map +1 -0
  102. package/cjs/domain/contexts/pageStateHistory.d.ts +23 -0
  103. package/cjs/domain/contexts/pageStateHistory.js +104 -0
  104. package/cjs/domain/contexts/pageStateHistory.js.map +1 -0
  105. package/cjs/domain/contexts/sessionContext.d.ts +5 -0
  106. package/cjs/domain/contexts/sessionContext.js +47 -0
  107. package/cjs/domain/contexts/sessionContext.js.map +1 -0
  108. package/cjs/domain/contexts/syntheticsContext.d.ts +2 -0
  109. package/cjs/domain/contexts/syntheticsContext.js +25 -0
  110. package/cjs/domain/contexts/syntheticsContext.js.map +1 -0
  111. package/cjs/domain/contexts/trackingConsentContext.d.ts +3 -0
  112. package/cjs/domain/contexts/trackingConsentContext.js +14 -0
  113. package/cjs/domain/contexts/trackingConsentContext.js.map +1 -0
  114. package/cjs/domain/contexts/urlContexts.d.ts +22 -0
  115. package/cjs/domain/contexts/urlContexts.js +64 -0
  116. package/cjs/domain/contexts/urlContexts.js.map +1 -0
  117. package/cjs/domain/contexts/userAgentDataContext.d.ts +2 -0
  118. package/cjs/domain/contexts/userAgentDataContext.js +31 -0
  119. package/cjs/domain/contexts/userAgentDataContext.js.map +1 -0
  120. package/cjs/domain/contexts/viewHistory.d.ts +17 -0
  121. package/cjs/domain/contexts/viewHistory.js +48 -0
  122. package/cjs/domain/contexts/viewHistory.js.map +1 -0
  123. package/cjs/domain/discardNegativeDuration.d.ts +2 -0
  124. package/cjs/domain/discardNegativeDuration.js +8 -0
  125. package/cjs/domain/discardNegativeDuration.js.map +1 -0
  126. package/cjs/domain/error/errorCollection.d.ts +17 -0
  127. package/cjs/domain/error/errorCollection.js +74 -0
  128. package/cjs/domain/error/errorCollection.js.map +1 -0
  129. package/cjs/domain/error/trackConsoleError.d.ts +4 -0
  130. package/cjs/domain/error/trackConsoleError.js +13 -0
  131. package/cjs/domain/error/trackConsoleError.js.map +1 -0
  132. package/cjs/domain/error/trackReportError.d.ts +5 -0
  133. package/cjs/domain/error/trackReportError.js +16 -0
  134. package/cjs/domain/error/trackReportError.js.map +1 -0
  135. package/cjs/domain/event/eventCollection.d.ts +10 -0
  136. package/cjs/domain/event/eventCollection.js +27 -0
  137. package/cjs/domain/event/eventCollection.js.map +1 -0
  138. package/cjs/domain/getSelectorFromElement.d.ts +64 -0
  139. package/cjs/domain/getSelectorFromElement.js +218 -0
  140. package/cjs/domain/getSelectorFromElement.js.map +1 -0
  141. package/cjs/domain/getSessionReplayUrl.d.ts +9 -0
  142. package/cjs/domain/getSessionReplayUrl.js +34 -0
  143. package/cjs/domain/getSessionReplayUrl.js.map +1 -0
  144. package/cjs/domain/hooks.d.ts +23 -0
  145. package/cjs/domain/hooks.js +6 -0
  146. package/cjs/domain/hooks.js.map +1 -0
  147. package/cjs/domain/lifeCycle.d.ts +73 -0
  148. package/cjs/domain/lifeCycle.js +6 -0
  149. package/cjs/domain/lifeCycle.js.map +1 -0
  150. package/cjs/domain/limitModification.d.ts +8 -0
  151. package/cjs/domain/limitModification.js +46 -0
  152. package/cjs/domain/limitModification.js.map +1 -0
  153. package/cjs/domain/longTask/longTaskCollection.d.ts +18 -0
  154. package/cjs/domain/longTask/longTaskCollection.js +91 -0
  155. package/cjs/domain/longTask/longTaskCollection.js.map +1 -0
  156. package/cjs/domain/plugins.d.ts +40 -0
  157. package/cjs/domain/plugins.js +15 -0
  158. package/cjs/domain/plugins.js.map +1 -0
  159. package/cjs/domain/privacy.d.ts +44 -0
  160. package/cjs/domain/privacy.js +313 -0
  161. package/cjs/domain/privacy.js.map +1 -0
  162. package/cjs/domain/privacyConstants.d.ts +23 -0
  163. package/cjs/domain/privacyConstants.js +39 -0
  164. package/cjs/domain/privacyConstants.js.map +1 -0
  165. package/cjs/domain/requestCollection.d.ts +54 -0
  166. package/cjs/domain/requestCollection.js +111 -0
  167. package/cjs/domain/requestCollection.js.map +1 -0
  168. package/cjs/domain/resource/graphql.d.ts +23 -0
  169. package/cjs/domain/resource/graphql.js +97 -0
  170. package/cjs/domain/resource/graphql.js.map +1 -0
  171. package/cjs/domain/resource/matchRequestResourceEntry.d.ts +16 -0
  172. package/cjs/domain/resource/matchRequestResourceEntry.js +49 -0
  173. package/cjs/domain/resource/matchRequestResourceEntry.js.map +1 -0
  174. package/cjs/domain/resource/requestRegistry.d.ts +9 -0
  175. package/cjs/domain/resource/requestRegistry.js +41 -0
  176. package/cjs/domain/resource/requestRegistry.js.map +1 -0
  177. package/cjs/domain/resource/resourceCollection.d.ts +7 -0
  178. package/cjs/domain/resource/resourceCollection.js +190 -0
  179. package/cjs/domain/resource/resourceCollection.js.map +1 -0
  180. package/cjs/domain/resource/resourceUtils.d.ts +55 -0
  181. package/cjs/domain/resource/resourceUtils.js +259 -0
  182. package/cjs/domain/resource/resourceUtils.js.map +1 -0
  183. package/cjs/domain/resource/retrieveInitialDocumentResourceTiming.d.ts +4 -0
  184. package/cjs/domain/resource/retrieveInitialDocumentResourceTiming.js +24 -0
  185. package/cjs/domain/resource/retrieveInitialDocumentResourceTiming.js.map +1 -0
  186. package/cjs/domain/rumSessionManager.d.ts +36 -0
  187. package/cjs/domain/rumSessionManager.js +77 -0
  188. package/cjs/domain/rumSessionManager.js.map +1 -0
  189. package/cjs/domain/sampler/sampler.d.ts +10 -0
  190. package/cjs/domain/sampler/sampler.js +63 -0
  191. package/cjs/domain/sampler/sampler.js.map +1 -0
  192. package/cjs/domain/startCustomerDataTelemetry.d.ts +4 -0
  193. package/cjs/domain/startCustomerDataTelemetry.js +56 -0
  194. package/cjs/domain/startCustomerDataTelemetry.js.map +1 -0
  195. package/cjs/domain/tracing/getDocumentTraceId.d.ts +12 -0
  196. package/cjs/domain/tracing/getDocumentTraceId.js +76 -0
  197. package/cjs/domain/tracing/getDocumentTraceId.js.map +1 -0
  198. package/cjs/domain/tracing/identifier.d.ts +13 -0
  199. package/cjs/domain/tracing/identifier.js +55 -0
  200. package/cjs/domain/tracing/identifier.js.map +1 -0
  201. package/cjs/domain/tracing/sampler.d.ts +10 -0
  202. package/cjs/domain/tracing/sampler.js +69 -0
  203. package/cjs/domain/tracing/sampler.js.map +1 -0
  204. package/cjs/domain/tracing/tracer.d.ts +30 -0
  205. package/cjs/domain/tracing/tracer.js +161 -0
  206. package/cjs/domain/tracing/tracer.js.map +1 -0
  207. package/cjs/domain/tracing/tracer.types.d.ts +12 -0
  208. package/cjs/domain/tracing/tracer.types.js +3 -0
  209. package/cjs/domain/tracing/tracer.types.js.map +1 -0
  210. package/cjs/domain/trackEventCounts.d.ts +17 -0
  211. package/cjs/domain/trackEventCounts.js +50 -0
  212. package/cjs/domain/trackEventCounts.js.map +1 -0
  213. package/cjs/domain/view/bfCacheSupport.d.ts +2 -0
  214. package/cjs/domain/view/bfCacheSupport.js +13 -0
  215. package/cjs/domain/view/bfCacheSupport.js.map +1 -0
  216. package/cjs/domain/view/trackViewEventCounts.d.ts +5 -0
  217. package/cjs/domain/view/trackViewEventCounts.js +16 -0
  218. package/cjs/domain/view/trackViewEventCounts.js.map +1 -0
  219. package/cjs/domain/view/trackViews.d.ts +65 -0
  220. package/cjs/domain/view/trackViews.js +275 -0
  221. package/cjs/domain/view/trackViews.js.map +1 -0
  222. package/cjs/domain/view/viewCollection.d.ts +18 -0
  223. package/cjs/domain/view/viewCollection.js +153 -0
  224. package/cjs/domain/view/viewCollection.js.map +1 -0
  225. package/cjs/domain/view/viewMetrics/getClsAttributionImpactedArea.d.ts +6 -0
  226. package/cjs/domain/view/viewMetrics/getClsAttributionImpactedArea.js +32 -0
  227. package/cjs/domain/view/viewMetrics/getClsAttributionImpactedArea.js.map +1 -0
  228. package/cjs/domain/view/viewMetrics/interactionCountPolyfill.d.ts +18 -0
  229. package/cjs/domain/view/viewMetrics/interactionCountPolyfill.js +44 -0
  230. package/cjs/domain/view/viewMetrics/interactionCountPolyfill.js.map +1 -0
  231. package/cjs/domain/view/viewMetrics/startInitialViewMetricsTelemetry.d.ts +6 -0
  232. package/cjs/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js +44 -0
  233. package/cjs/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js.map +1 -0
  234. package/cjs/domain/view/viewMetrics/trackBfcacheMetrics.d.ts +8 -0
  235. package/cjs/domain/view/viewMetrics/trackBfcacheMetrics.js +17 -0
  236. package/cjs/domain/view/viewMetrics/trackBfcacheMetrics.js.map +1 -0
  237. package/cjs/domain/view/viewMetrics/trackCommonViewMetrics.d.ts +21 -0
  238. package/cjs/domain/view/viewMetrics/trackCommonViewMetrics.js +37 -0
  239. package/cjs/domain/view/viewMetrics/trackCommonViewMetrics.js.map +1 -0
  240. package/cjs/domain/view/viewMetrics/trackCumulativeLayoutShift.d.ts +37 -0
  241. package/cjs/domain/view/viewMetrics/trackCumulativeLayoutShift.js +135 -0
  242. package/cjs/domain/view/viewMetrics/trackCumulativeLayoutShift.js.map +1 -0
  243. package/cjs/domain/view/viewMetrics/trackFirstContentfulPaint.d.ts +13 -0
  244. package/cjs/domain/view/viewMetrics/trackFirstContentfulPaint.js +39 -0
  245. package/cjs/domain/view/viewMetrics/trackFirstContentfulPaint.js.map +1 -0
  246. package/cjs/domain/view/viewMetrics/trackFirstHidden.d.ts +10 -0
  247. package/cjs/domain/view/viewMetrics/trackFirstHidden.js +33 -0
  248. package/cjs/domain/view/viewMetrics/trackFirstHidden.js.map +1 -0
  249. package/cjs/domain/view/viewMetrics/trackFirstInput.d.ts +19 -0
  250. package/cjs/domain/view/viewMetrics/trackFirstInput.js +43 -0
  251. package/cjs/domain/view/viewMetrics/trackFirstInput.js.map +1 -0
  252. package/cjs/domain/view/viewMetrics/trackInitialViewMetrics.d.ts +15 -0
  253. package/cjs/domain/view/viewMetrics/trackInitialViewMetrics.js +41 -0
  254. package/cjs/domain/view/viewMetrics/trackInitialViewMetrics.js.map +1 -0
  255. package/cjs/domain/view/viewMetrics/trackInteractionToNextPaint.d.ts +25 -0
  256. package/cjs/domain/view/viewMetrics/trackInteractionToNextPaint.js +155 -0
  257. package/cjs/domain/view/viewMetrics/trackInteractionToNextPaint.js.map +1 -0
  258. package/cjs/domain/view/viewMetrics/trackLargestContentfulPaint.d.ts +18 -0
  259. package/cjs/domain/view/viewMetrics/trackLargestContentfulPaint.js +61 -0
  260. package/cjs/domain/view/viewMetrics/trackLargestContentfulPaint.js.map +1 -0
  261. package/cjs/domain/view/viewMetrics/trackLoadingTime.d.ts +14 -0
  262. package/cjs/domain/view/viewMetrics/trackLoadingTime.js +50 -0
  263. package/cjs/domain/view/viewMetrics/trackLoadingTime.js.map +1 -0
  264. package/cjs/domain/view/viewMetrics/trackNavigationTimings.d.ts +14 -0
  265. package/cjs/domain/view/viewMetrics/trackNavigationTimings.js +43 -0
  266. package/cjs/domain/view/viewMetrics/trackNavigationTimings.js.map +1 -0
  267. package/cjs/domain/view/viewMetrics/trackScrollMetrics.d.ts +25 -0
  268. package/cjs/domain/view/viewMetrics/trackScrollMetrics.js +78 -0
  269. package/cjs/domain/view/viewMetrics/trackScrollMetrics.js.map +1 -0
  270. package/cjs/domain/vital/vitalCollection.d.ts +55 -0
  271. package/cjs/domain/vital/vitalCollection.js +113 -0
  272. package/cjs/domain/vital/vitalCollection.js.map +1 -0
  273. package/cjs/domain/waitPageActivityEnd.d.ts +54 -0
  274. package/cjs/domain/waitPageActivityEnd.js +129 -0
  275. package/cjs/domain/waitPageActivityEnd.js.map +1 -0
  276. package/cjs/domainContext.types.d.ts +39 -0
  277. package/cjs/domainContext.types.js +6 -0
  278. package/cjs/domainContext.types.js.map +1 -0
  279. package/cjs/index.d.ts +41 -0
  280. package/cjs/index.js +59 -0
  281. package/cjs/index.js.map +1 -0
  282. package/cjs/rawRumEvent.types.d.ts +326 -0
  283. package/cjs/rawRumEvent.types.js +34 -0
  284. package/cjs/rawRumEvent.types.js.map +1 -0
  285. package/cjs/rumEvent.types.d.ts +2026 -0
  286. package/cjs/rumEvent.types.js +7 -0
  287. package/cjs/rumEvent.types.js.map +1 -0
  288. package/cjs/transport/formDataTransport.d.ts +16 -0
  289. package/cjs/transport/formDataTransport.js +46 -0
  290. package/cjs/transport/formDataTransport.js.map +1 -0
  291. package/cjs/transport/startRumBatch.d.ts +5 -0
  292. package/cjs/transport/startRumBatch.js +33 -0
  293. package/cjs/transport/startRumBatch.js.map +1 -0
  294. package/cjs/transport/startRumEventBridge.d.ts +2 -0
  295. package/cjs/transport/startRumEventBridge.js +11 -0
  296. package/cjs/transport/startRumEventBridge.js.map +1 -0
  297. package/esm/boot/preStartRum.d.ts +7 -0
  298. package/esm/boot/preStartRum.js +187 -0
  299. package/esm/boot/preStartRum.js.map +1 -0
  300. package/esm/boot/rumPublicApi.d.ts +409 -0
  301. package/esm/boot/rumPublicApi.js +165 -0
  302. package/esm/boot/rumPublicApi.js.map +1 -0
  303. package/esm/boot/startRum.d.ts +109 -0
  304. package/esm/boot/startRum.js +149 -0
  305. package/esm/boot/startRum.js.map +1 -0
  306. package/esm/browser/cookieObservable.d.ts +8 -0
  307. package/esm/browser/cookieObservable.js +35 -0
  308. package/esm/browser/cookieObservable.js.map +1 -0
  309. package/esm/browser/domMutationObservable.d.ts +27 -0
  310. package/esm/browser/domMutationObservable.js +54 -0
  311. package/esm/browser/domMutationObservable.js.map +1 -0
  312. package/esm/browser/firstInputPolyfill.d.ts +8 -0
  313. package/esm/browser/firstInputPolyfill.js +65 -0
  314. package/esm/browser/firstInputPolyfill.js.map +1 -0
  315. package/esm/browser/htmlDomUtils.d.ts +13 -0
  316. package/esm/browser/htmlDomUtils.js +36 -0
  317. package/esm/browser/htmlDomUtils.js.map +1 -0
  318. package/esm/browser/locationChangeObservable.d.ts +7 -0
  319. package/esm/browser/locationChangeObservable.js +48 -0
  320. package/esm/browser/locationChangeObservable.js.map +1 -0
  321. package/esm/browser/performanceObservable.d.ts +174 -0
  322. package/esm/browser/performanceObservable.js +121 -0
  323. package/esm/browser/performanceObservable.js.map +1 -0
  324. package/esm/browser/performanceUtils.d.ts +7 -0
  325. package/esm/browser/performanceUtils.js +38 -0
  326. package/esm/browser/performanceUtils.js.map +1 -0
  327. package/esm/browser/scroll.d.ts +2 -0
  328. package/esm/browser/scroll.js +29 -0
  329. package/esm/browser/scroll.js.map +1 -0
  330. package/esm/browser/viewportObservable.d.ts +10 -0
  331. package/esm/browser/viewportObservable.js +32 -0
  332. package/esm/browser/viewportObservable.js.map +1 -0
  333. package/esm/browser/windowOpenObservable.d.ts +5 -0
  334. package/esm/browser/windowOpenObservable.js +7 -0
  335. package/esm/browser/windowOpenObservable.js.map +1 -0
  336. package/esm/domain/action/actionCollection.d.ts +21 -0
  337. package/esm/domain/action/actionCollection.js +93 -0
  338. package/esm/domain/action/actionCollection.js.map +1 -0
  339. package/esm/domain/action/actionNameConstants.d.ts +18 -0
  340. package/esm/domain/action/actionNameConstants.js +8 -0
  341. package/esm/domain/action/actionNameConstants.js.map +1 -0
  342. package/esm/domain/action/clickChain.d.ts +8 -0
  343. package/esm/domain/action/clickChain.js +57 -0
  344. package/esm/domain/action/clickChain.js.map +1 -0
  345. package/esm/domain/action/computeFrustration.d.ts +6 -0
  346. package/esm/domain/action/computeFrustration.js +65 -0
  347. package/esm/domain/action/computeFrustration.js.map +1 -0
  348. package/esm/domain/action/getActionNameFromElement.d.ts +4 -0
  349. package/esm/domain/action/getActionNameFromElement.js +236 -0
  350. package/esm/domain/action/getActionNameFromElement.js.map +1 -0
  351. package/esm/domain/action/interactionSelectorCache.d.ts +5 -0
  352. package/esm/domain/action/interactionSelectorCache.js +18 -0
  353. package/esm/domain/action/interactionSelectorCache.js.map +1 -0
  354. package/esm/domain/action/listenActionEvents.d.ts +19 -0
  355. package/esm/domain/action/listenActionEvents.js +58 -0
  356. package/esm/domain/action/listenActionEvents.js.map +1 -0
  357. package/esm/domain/action/trackClickActions.d.ts +81 -0
  358. package/esm/domain/action/trackClickActions.js +232 -0
  359. package/esm/domain/action/trackClickActions.js.map +1 -0
  360. package/esm/domain/assembly.d.ts +5 -0
  361. package/esm/domain/assembly.js +99 -0
  362. package/esm/domain/assembly.js.map +1 -0
  363. package/esm/domain/configuration/configuration.d.ts +325 -0
  364. package/esm/domain/configuration/configuration.js +200 -0
  365. package/esm/domain/configuration/configuration.js.map +1 -0
  366. package/esm/domain/configuration/index.d.ts +2 -0
  367. package/esm/domain/configuration/index.js +3 -0
  368. package/esm/domain/configuration/index.js.map +1 -0
  369. package/esm/domain/configuration/jsonPathParser.d.ts +28 -0
  370. package/esm/domain/configuration/jsonPathParser.js +156 -0
  371. package/esm/domain/configuration/jsonPathParser.js.map +1 -0
  372. package/esm/domain/configuration/remoteConfiguration.d.ts +39 -0
  373. package/esm/domain/configuration/remoteConfiguration.js +236 -0
  374. package/esm/domain/configuration/remoteConfiguration.js.map +1 -0
  375. package/esm/domain/configuration/remoteConfiguration.types.d.ts +138 -0
  376. package/esm/domain/configuration/remoteConfiguration.types.js +6 -0
  377. package/esm/domain/configuration/remoteConfiguration.types.js.map +1 -0
  378. package/esm/domain/contexts/ciVisibilityContext.d.ts +12 -0
  379. package/esm/domain/contexts/ciVisibilityContext.js +30 -0
  380. package/esm/domain/contexts/ciVisibilityContext.js.map +1 -0
  381. package/esm/domain/contexts/connectivityContext.d.ts +2 -0
  382. package/esm/domain/contexts/connectivityContext.js +8 -0
  383. package/esm/domain/contexts/connectivityContext.js.map +1 -0
  384. package/esm/domain/contexts/defaultContext.d.ts +4 -0
  385. package/esm/domain/contexts/defaultContext.js +31 -0
  386. package/esm/domain/contexts/defaultContext.js.map +1 -0
  387. package/esm/domain/contexts/displayContext.d.ts +6 -0
  388. package/esm/domain/contexts/displayContext.js +25 -0
  389. package/esm/domain/contexts/displayContext.js.map +1 -0
  390. package/esm/domain/contexts/featureFlagContext.d.ts +19 -0
  391. package/esm/domain/contexts/featureFlagContext.js +49 -0
  392. package/esm/domain/contexts/featureFlagContext.js.map +1 -0
  393. package/esm/domain/contexts/internalContext.d.ts +12 -0
  394. package/esm/domain/contexts/internalContext.js +23 -0
  395. package/esm/domain/contexts/internalContext.js.map +1 -0
  396. package/esm/domain/contexts/pageStateHistory.d.ts +23 -0
  397. package/esm/domain/contexts/pageStateHistory.js +100 -0
  398. package/esm/domain/contexts/pageStateHistory.js.map +1 -0
  399. package/esm/domain/contexts/sessionContext.d.ts +5 -0
  400. package/esm/domain/contexts/sessionContext.js +44 -0
  401. package/esm/domain/contexts/sessionContext.js.map +1 -0
  402. package/esm/domain/contexts/syntheticsContext.d.ts +2 -0
  403. package/esm/domain/contexts/syntheticsContext.js +22 -0
  404. package/esm/domain/contexts/syntheticsContext.js.map +1 -0
  405. package/esm/domain/contexts/trackingConsentContext.d.ts +3 -0
  406. package/esm/domain/contexts/trackingConsentContext.js +11 -0
  407. package/esm/domain/contexts/trackingConsentContext.js.map +1 -0
  408. package/esm/domain/contexts/urlContexts.d.ts +22 -0
  409. package/esm/domain/contexts/urlContexts.js +60 -0
  410. package/esm/domain/contexts/urlContexts.js.map +1 -0
  411. package/esm/domain/contexts/userAgentDataContext.d.ts +2 -0
  412. package/esm/domain/contexts/userAgentDataContext.js +28 -0
  413. package/esm/domain/contexts/userAgentDataContext.js.map +1 -0
  414. package/esm/domain/contexts/viewHistory.d.ts +17 -0
  415. package/esm/domain/contexts/viewHistory.js +44 -0
  416. package/esm/domain/contexts/viewHistory.js.map +1 -0
  417. package/esm/domain/discardNegativeDuration.d.ts +2 -0
  418. package/esm/domain/discardNegativeDuration.js +5 -0
  419. package/esm/domain/discardNegativeDuration.js.map +1 -0
  420. package/esm/domain/error/errorCollection.d.ts +17 -0
  421. package/esm/domain/error/errorCollection.js +70 -0
  422. package/esm/domain/error/errorCollection.js.map +1 -0
  423. package/esm/domain/error/trackConsoleError.d.ts +4 -0
  424. package/esm/domain/error/trackConsoleError.js +10 -0
  425. package/esm/domain/error/trackConsoleError.js.map +1 -0
  426. package/esm/domain/error/trackReportError.d.ts +5 -0
  427. package/esm/domain/error/trackReportError.js +13 -0
  428. package/esm/domain/error/trackReportError.js.map +1 -0
  429. package/esm/domain/event/eventCollection.d.ts +10 -0
  430. package/esm/domain/event/eventCollection.js +24 -0
  431. package/esm/domain/event/eventCollection.js.map +1 -0
  432. package/esm/domain/getSelectorFromElement.d.ts +64 -0
  433. package/esm/domain/getSelectorFromElement.js +213 -0
  434. package/esm/domain/getSelectorFromElement.js.map +1 -0
  435. package/esm/domain/getSessionReplayUrl.d.ts +9 -0
  436. package/esm/domain/getSessionReplayUrl.js +30 -0
  437. package/esm/domain/getSessionReplayUrl.js.map +1 -0
  438. package/esm/domain/hooks.d.ts +23 -0
  439. package/esm/domain/hooks.js +3 -0
  440. package/esm/domain/hooks.js.map +1 -0
  441. package/esm/domain/lifeCycle.d.ts +73 -0
  442. package/esm/domain/lifeCycle.js +3 -0
  443. package/esm/domain/lifeCycle.js.map +1 -0
  444. package/esm/domain/limitModification.d.ts +8 -0
  445. package/esm/domain/limitModification.js +43 -0
  446. package/esm/domain/limitModification.js.map +1 -0
  447. package/esm/domain/longTask/longTaskCollection.d.ts +18 -0
  448. package/esm/domain/longTask/longTaskCollection.js +87 -0
  449. package/esm/domain/longTask/longTaskCollection.js.map +1 -0
  450. package/esm/domain/plugins.d.ts +40 -0
  451. package/esm/domain/plugins.js +12 -0
  452. package/esm/domain/plugins.js.map +1 -0
  453. package/esm/domain/privacy.d.ts +44 -0
  454. package/esm/domain/privacy.js +302 -0
  455. package/esm/domain/privacy.js.map +1 -0
  456. package/esm/domain/privacyConstants.d.ts +23 -0
  457. package/esm/domain/privacyConstants.js +35 -0
  458. package/esm/domain/privacyConstants.js.map +1 -0
  459. package/esm/domain/requestCollection.d.ts +54 -0
  460. package/esm/domain/requestCollection.js +106 -0
  461. package/esm/domain/requestCollection.js.map +1 -0
  462. package/esm/domain/resource/graphql.d.ts +23 -0
  463. package/esm/domain/resource/graphql.js +91 -0
  464. package/esm/domain/resource/graphql.js.map +1 -0
  465. package/esm/domain/resource/matchRequestResourceEntry.d.ts +16 -0
  466. package/esm/domain/resource/matchRequestResourceEntry.js +46 -0
  467. package/esm/domain/resource/matchRequestResourceEntry.js.map +1 -0
  468. package/esm/domain/resource/requestRegistry.d.ts +9 -0
  469. package/esm/domain/resource/requestRegistry.js +37 -0
  470. package/esm/domain/resource/requestRegistry.js.map +1 -0
  471. package/esm/domain/resource/resourceCollection.d.ts +7 -0
  472. package/esm/domain/resource/resourceCollection.js +187 -0
  473. package/esm/domain/resource/resourceCollection.js.map +1 -0
  474. package/esm/domain/resource/resourceUtils.d.ts +55 -0
  475. package/esm/domain/resource/resourceUtils.js +244 -0
  476. package/esm/domain/resource/resourceUtils.js.map +1 -0
  477. package/esm/domain/resource/retrieveInitialDocumentResourceTiming.d.ts +4 -0
  478. package/esm/domain/resource/retrieveInitialDocumentResourceTiming.js +21 -0
  479. package/esm/domain/resource/retrieveInitialDocumentResourceTiming.js.map +1 -0
  480. package/esm/domain/rumSessionManager.d.ts +36 -0
  481. package/esm/domain/rumSessionManager.js +72 -0
  482. package/esm/domain/rumSessionManager.js.map +1 -0
  483. package/esm/domain/sampler/sampler.d.ts +10 -0
  484. package/esm/domain/sampler/sampler.js +58 -0
  485. package/esm/domain/sampler/sampler.js.map +1 -0
  486. package/esm/domain/startCustomerDataTelemetry.d.ts +4 -0
  487. package/esm/domain/startCustomerDataTelemetry.js +52 -0
  488. package/esm/domain/startCustomerDataTelemetry.js.map +1 -0
  489. package/esm/domain/tracing/getDocumentTraceId.d.ts +12 -0
  490. package/esm/domain/tracing/getDocumentTraceId.js +68 -0
  491. package/esm/domain/tracing/getDocumentTraceId.js.map +1 -0
  492. package/esm/domain/tracing/identifier.d.ts +13 -0
  493. package/esm/domain/tracing/identifier.js +50 -0
  494. package/esm/domain/tracing/identifier.js.map +1 -0
  495. package/esm/domain/tracing/sampler.d.ts +10 -0
  496. package/esm/domain/tracing/sampler.js +64 -0
  497. package/esm/domain/tracing/sampler.js.map +1 -0
  498. package/esm/domain/tracing/tracer.d.ts +30 -0
  499. package/esm/domain/tracing/tracer.js +156 -0
  500. package/esm/domain/tracing/tracer.js.map +1 -0
  501. package/esm/domain/tracing/tracer.types.d.ts +12 -0
  502. package/esm/domain/tracing/tracer.types.js +2 -0
  503. package/esm/domain/tracing/tracer.types.js.map +1 -0
  504. package/esm/domain/trackEventCounts.d.ts +17 -0
  505. package/esm/domain/trackEventCounts.js +47 -0
  506. package/esm/domain/trackEventCounts.js.map +1 -0
  507. package/esm/domain/view/bfCacheSupport.d.ts +2 -0
  508. package/esm/domain/view/bfCacheSupport.js +10 -0
  509. package/esm/domain/view/bfCacheSupport.js.map +1 -0
  510. package/esm/domain/view/trackViewEventCounts.d.ts +5 -0
  511. package/esm/domain/view/trackViewEventCounts.js +13 -0
  512. package/esm/domain/view/trackViewEventCounts.js.map +1 -0
  513. package/esm/domain/view/trackViews.d.ts +65 -0
  514. package/esm/domain/view/trackViews.js +271 -0
  515. package/esm/domain/view/trackViews.js.map +1 -0
  516. package/esm/domain/view/viewCollection.d.ts +18 -0
  517. package/esm/domain/view/viewCollection.js +150 -0
  518. package/esm/domain/view/viewCollection.js.map +1 -0
  519. package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.d.ts +6 -0
  520. package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.js +28 -0
  521. package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.js.map +1 -0
  522. package/esm/domain/view/viewMetrics/interactionCountPolyfill.d.ts +18 -0
  523. package/esm/domain/view/viewMetrics/interactionCountPolyfill.js +39 -0
  524. package/esm/domain/view/viewMetrics/interactionCountPolyfill.js.map +1 -0
  525. package/esm/domain/view/viewMetrics/startInitialViewMetricsTelemetry.d.ts +6 -0
  526. package/esm/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js +41 -0
  527. package/esm/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js.map +1 -0
  528. package/esm/domain/view/viewMetrics/trackBfcacheMetrics.d.ts +8 -0
  529. package/esm/domain/view/viewMetrics/trackBfcacheMetrics.js +14 -0
  530. package/esm/domain/view/viewMetrics/trackBfcacheMetrics.js.map +1 -0
  531. package/esm/domain/view/viewMetrics/trackCommonViewMetrics.d.ts +21 -0
  532. package/esm/domain/view/viewMetrics/trackCommonViewMetrics.js +34 -0
  533. package/esm/domain/view/viewMetrics/trackCommonViewMetrics.js.map +1 -0
  534. package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.d.ts +37 -0
  535. package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.js +130 -0
  536. package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.js.map +1 -0
  537. package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.d.ts +13 -0
  538. package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.js +34 -0
  539. package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.js.map +1 -0
  540. package/esm/domain/view/viewMetrics/trackFirstHidden.d.ts +10 -0
  541. package/esm/domain/view/viewMetrics/trackFirstHidden.js +30 -0
  542. package/esm/domain/view/viewMetrics/trackFirstHidden.js.map +1 -0
  543. package/esm/domain/view/viewMetrics/trackFirstInput.d.ts +19 -0
  544. package/esm/domain/view/viewMetrics/trackFirstInput.js +40 -0
  545. package/esm/domain/view/viewMetrics/trackFirstInput.js.map +1 -0
  546. package/esm/domain/view/viewMetrics/trackInitialViewMetrics.d.ts +15 -0
  547. package/esm/domain/view/viewMetrics/trackInitialViewMetrics.js +38 -0
  548. package/esm/domain/view/viewMetrics/trackInitialViewMetrics.js.map +1 -0
  549. package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.d.ts +25 -0
  550. package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.js +149 -0
  551. package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.js.map +1 -0
  552. package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.d.ts +18 -0
  553. package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.js +57 -0
  554. package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.js.map +1 -0
  555. package/esm/domain/view/viewMetrics/trackLoadingTime.d.ts +14 -0
  556. package/esm/domain/view/viewMetrics/trackLoadingTime.js +47 -0
  557. package/esm/domain/view/viewMetrics/trackLoadingTime.js.map +1 -0
  558. package/esm/domain/view/viewMetrics/trackNavigationTimings.d.ts +14 -0
  559. package/esm/domain/view/viewMetrics/trackNavigationTimings.js +40 -0
  560. package/esm/domain/view/viewMetrics/trackNavigationTimings.js.map +1 -0
  561. package/esm/domain/view/viewMetrics/trackScrollMetrics.d.ts +25 -0
  562. package/esm/domain/view/viewMetrics/trackScrollMetrics.js +72 -0
  563. package/esm/domain/view/viewMetrics/trackScrollMetrics.js.map +1 -0
  564. package/esm/domain/vital/vitalCollection.d.ts +55 -0
  565. package/esm/domain/vital/vitalCollection.js +107 -0
  566. package/esm/domain/vital/vitalCollection.js.map +1 -0
  567. package/esm/domain/waitPageActivityEnd.d.ts +54 -0
  568. package/esm/domain/waitPageActivityEnd.js +123 -0
  569. package/esm/domain/waitPageActivityEnd.js.map +1 -0
  570. package/esm/domainContext.types.d.ts +39 -0
  571. package/esm/domainContext.types.js +5 -0
  572. package/esm/domainContext.types.js.map +1 -0
  573. package/esm/index.d.ts +41 -0
  574. package/esm/index.js +21 -0
  575. package/esm/index.js.map +1 -0
  576. package/esm/rawRumEvent.types.d.ts +326 -0
  577. package/esm/rawRumEvent.types.js +31 -0
  578. package/esm/rawRumEvent.types.js.map +1 -0
  579. package/esm/rumEvent.types.d.ts +2026 -0
  580. package/esm/rumEvent.types.js +6 -0
  581. package/esm/rumEvent.types.js.map +1 -0
  582. package/esm/transport/formDataTransport.d.ts +16 -0
  583. package/esm/transport/formDataTransport.js +43 -0
  584. package/esm/transport/formDataTransport.js.map +1 -0
  585. package/esm/transport/startRumBatch.d.ts +5 -0
  586. package/esm/transport/startRumBatch.js +30 -0
  587. package/esm/transport/startRumBatch.js.map +1 -0
  588. package/esm/transport/startRumEventBridge.d.ts +2 -0
  589. package/esm/transport/startRumEventBridge.js +8 -0
  590. package/esm/transport/startRumEventBridge.js.map +1 -0
  591. package/package.json +29 -0
  592. package/src/boot/preStartRum.ts +298 -0
  593. package/src/boot/rumPublicApi.ts +830 -0
  594. package/src/boot/startRum.ts +280 -0
  595. package/src/browser/cookieObservable.ts +63 -0
  596. package/src/browser/domMutationObservable.ts +98 -0
  597. package/src/browser/firstInputPolyfill.ts +87 -0
  598. package/src/browser/htmlDomUtils.ts +45 -0
  599. package/src/browser/locationChangeObservable.ts +69 -0
  600. package/src/browser/performanceObservable.ts +324 -0
  601. package/src/browser/performanceUtils.ts +50 -0
  602. package/src/browser/scroll.ts +25 -0
  603. package/src/browser/viewportObservable.ts +44 -0
  604. package/src/browser/windowOpenObservable.ts +7 -0
  605. package/src/domain/action/actionCollection.ts +146 -0
  606. package/src/domain/action/actionNameConstants.ts +20 -0
  607. package/src/domain/action/clickChain.ts +83 -0
  608. package/src/domain/action/computeFrustration.ts +77 -0
  609. package/src/domain/action/getActionNameFromElement.ts +337 -0
  610. package/src/domain/action/interactionSelectorCache.ts +21 -0
  611. package/src/domain/action/listenActionEvents.ts +119 -0
  612. package/src/domain/action/trackClickActions.ts +388 -0
  613. package/src/domain/assembly.ts +141 -0
  614. package/src/domain/configuration/configuration.ts +548 -0
  615. package/src/domain/configuration/index.ts +2 -0
  616. package/src/domain/configuration/jsonPathParser.ts +214 -0
  617. package/src/domain/configuration/remoteConfiguration.ts +304 -0
  618. package/src/domain/configuration/remoteConfiguration.types.ts +147 -0
  619. package/src/domain/contexts/ciVisibilityContext.ts +50 -0
  620. package/src/domain/contexts/connectivityContext.ts +12 -0
  621. package/src/domain/contexts/defaultContext.ts +43 -0
  622. package/src/domain/contexts/displayContext.ts +38 -0
  623. package/src/domain/contexts/featureFlagContext.ts +71 -0
  624. package/src/domain/contexts/internalContext.ts +34 -0
  625. package/src/domain/contexts/pageStateHistory.ts +171 -0
  626. package/src/domain/contexts/sessionContext.ts +59 -0
  627. package/src/domain/contexts/syntheticsContext.ts +33 -0
  628. package/src/domain/contexts/trackingConsentContext.ts +15 -0
  629. package/src/domain/contexts/urlContexts.ts +97 -0
  630. package/src/domain/contexts/userAgentDataContext.ts +36 -0
  631. package/src/domain/contexts/viewHistory.ts +70 -0
  632. package/src/domain/discardNegativeDuration.ts +6 -0
  633. package/src/domain/error/errorCollection.ts +107 -0
  634. package/src/domain/error/trackConsoleError.ts +14 -0
  635. package/src/domain/error/trackReportError.ts +16 -0
  636. package/src/domain/event/eventCollection.ts +53 -0
  637. package/src/domain/getSelectorFromElement.ts +268 -0
  638. package/src/domain/getSessionReplayUrl.ts +47 -0
  639. package/src/domain/hooks.ts +31 -0
  640. package/src/domain/lifeCycle.ts +103 -0
  641. package/src/domain/limitModification.ts +66 -0
  642. package/src/domain/longTask/longTaskCollection.ts +133 -0
  643. package/src/domain/plugins.ts +59 -0
  644. package/src/domain/privacy.ts +355 -0
  645. package/src/domain/privacyConstants.ts +43 -0
  646. package/src/domain/requestCollection.ts +179 -0
  647. package/src/domain/resource/graphql.ts +135 -0
  648. package/src/domain/resource/matchRequestResourceEntry.ts +68 -0
  649. package/src/domain/resource/requestRegistry.ts +52 -0
  650. package/src/domain/resource/resourceCollection.ts +273 -0
  651. package/src/domain/resource/resourceUtils.ts +355 -0
  652. package/src/domain/resource/retrieveInitialDocumentResourceTiming.ts +27 -0
  653. package/src/domain/rumSessionManager.ts +134 -0
  654. package/src/domain/sampler/sampler.ts +63 -0
  655. package/src/domain/startCustomerDataTelemetry.ts +83 -0
  656. package/src/domain/tracing/getDocumentTraceId.ts +90 -0
  657. package/src/domain/tracing/identifier.ts +69 -0
  658. package/src/domain/tracing/sampler.ts +69 -0
  659. package/src/domain/tracing/tracer.ts +248 -0
  660. package/src/domain/tracing/tracer.types.ts +13 -0
  661. package/src/domain/trackEventCounts.ts +67 -0
  662. package/src/domain/view/bfCacheSupport.ts +20 -0
  663. package/src/domain/view/trackViewEventCounts.ts +15 -0
  664. package/src/domain/view/trackViews.ts +431 -0
  665. package/src/domain/view/viewCollection.ts +203 -0
  666. package/src/domain/view/viewMetrics/getClsAttributionImpactedArea.ts +34 -0
  667. package/src/domain/view/viewMetrics/interactionCountPolyfill.ts +55 -0
  668. package/src/domain/view/viewMetrics/startInitialViewMetricsTelemetry.ts +70 -0
  669. package/src/domain/view/viewMetrics/trackBfcacheMetrics.ts +20 -0
  670. package/src/domain/view/viewMetrics/trackCommonViewMetrics.ts +78 -0
  671. package/src/domain/view/viewMetrics/trackCumulativeLayoutShift.ts +180 -0
  672. package/src/domain/view/viewMetrics/trackFirstContentfulPaint.ts +47 -0
  673. package/src/domain/view/viewMetrics/trackFirstHidden.ts +53 -0
  674. package/src/domain/view/viewMetrics/trackFirstInput.ts +59 -0
  675. package/src/domain/view/viewMetrics/trackInitialViewMetrics.ts +66 -0
  676. package/src/domain/view/viewMetrics/trackInteractionToNextPaint.ts +193 -0
  677. package/src/domain/view/viewMetrics/trackLargestContentfulPaint.ts +87 -0
  678. package/src/domain/view/viewMetrics/trackLoadingTime.ts +69 -0
  679. package/src/domain/view/viewMetrics/trackNavigationTimings.ts +66 -0
  680. package/src/domain/view/viewMetrics/trackScrollMetrics.ts +119 -0
  681. package/src/domain/vital/vitalCollection.ts +207 -0
  682. package/src/domain/waitPageActivityEnd.ts +189 -0
  683. package/src/domainContext.types.ts +61 -0
  684. package/src/index.ts +76 -0
  685. package/src/rawRumEvent.types.ts +409 -0
  686. package/src/rumEvent.types.ts +2151 -0
  687. package/src/transport/formDataTransport.ts +85 -0
  688. package/src/transport/startRumBatch.ts +46 -0
  689. package/src/transport/startRumEventBridge.ts +12 -0
@@ -0,0 +1,2151 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * DO NOT MODIFY IT BY HAND. Run `yarn json-schemas:sync` instead.
4
+ */
5
+
6
+ /**
7
+ * Schema of all properties of a RUM event
8
+ */
9
+ export type RumEvent =
10
+ | RumActionEvent
11
+ | RumTransitionEvent
12
+ | RumErrorEvent
13
+ | RumLongTaskEvent
14
+ | RumResourceEvent
15
+ | RumViewEvent
16
+ | RumVitalEvent
17
+ /**
18
+ * Schema of all properties of an Action event
19
+ */
20
+ export type RumActionEvent = CommonProperties &
21
+ ViewContainerSchema & {
22
+ /**
23
+ * RUM event type
24
+ */
25
+ readonly type: 'action'
26
+ /**
27
+ * Action properties
28
+ */
29
+ readonly action: {
30
+ /**
31
+ * Type of the action
32
+ */
33
+ readonly type: 'custom' | 'click' | 'tap' | 'scroll' | 'swipe' | 'application_start' | 'back'
34
+ /**
35
+ * UUID of the action
36
+ */
37
+ readonly id?: string
38
+ /**
39
+ * Duration in ns to the action is considered loaded
40
+ */
41
+ readonly loading_time?: number
42
+ /**
43
+ * Action target properties
44
+ */
45
+ readonly target?: {
46
+ /**
47
+ * Target name
48
+ */
49
+ name: string
50
+ [k: string]: unknown
51
+ }
52
+ /**
53
+ * Action frustration properties
54
+ */
55
+ readonly frustration?: {
56
+ /**
57
+ * Action frustration types
58
+ */
59
+ readonly type: ('rage_click' | 'dead_click' | 'error_click' | 'rage_tap' | 'error_tap')[]
60
+ [k: string]: unknown
61
+ }
62
+ /**
63
+ * Properties of the errors of the action
64
+ */
65
+ readonly error?: {
66
+ /**
67
+ * Number of errors that occurred on the action
68
+ */
69
+ readonly count: number
70
+ [k: string]: unknown
71
+ }
72
+ /**
73
+ * Properties of the crashes of the action
74
+ */
75
+ readonly crash?: {
76
+ /**
77
+ * Number of crashes that occurred on the action
78
+ */
79
+ readonly count: number
80
+ [k: string]: unknown
81
+ }
82
+ /**
83
+ * Properties of the long tasks of the action
84
+ */
85
+ readonly long_task?: {
86
+ /**
87
+ * Number of long tasks that occurred on the action
88
+ */
89
+ readonly count: number
90
+ [k: string]: unknown
91
+ }
92
+ /**
93
+ * Properties of the resources of the action
94
+ */
95
+ readonly resource?: {
96
+ /**
97
+ * Number of resources that occurred on the action
98
+ */
99
+ readonly count: number
100
+ [k: string]: unknown
101
+ }
102
+ [k: string]: unknown
103
+ }
104
+ /**
105
+ * View properties
106
+ */
107
+ readonly view: {
108
+ /**
109
+ * Is the action starting in the foreground (focus in browser)
110
+ */
111
+ readonly in_foreground?: boolean
112
+ [k: string]: unknown
113
+ }
114
+ /**
115
+ * Internal properties
116
+ */
117
+ _kubesense?: {
118
+ /**
119
+ * Action properties
120
+ */
121
+ readonly action?: {
122
+ /**
123
+ * Action position properties
124
+ */
125
+ readonly position?: {
126
+ /**
127
+ * X coordinate relative to the target element of the action (in pixels)
128
+ */
129
+ readonly x: number
130
+ /**
131
+ * Y coordinate relative to the target element of the action (in pixels)
132
+ */
133
+ readonly y: number
134
+ [k: string]: unknown
135
+ }
136
+ /**
137
+ * Target properties
138
+ */
139
+ target?: {
140
+ /**
141
+ * CSS selector path of the target element
142
+ */
143
+ readonly selector?: string
144
+ /**
145
+ * Width of the target element (in pixels)
146
+ */
147
+ readonly width?: number
148
+ /**
149
+ * Height of the target element (in pixels)
150
+ */
151
+ readonly height?: number
152
+ [k: string]: unknown
153
+ }
154
+ /**
155
+ * The strategy of how the auto click action name is computed
156
+ */
157
+ name_source?:
158
+ | 'custom_attribute'
159
+ | 'mask_placeholder'
160
+ | 'standard_attribute'
161
+ | 'text_content'
162
+ | 'mask_disallowed'
163
+ | 'blank'
164
+ [k: string]: unknown
165
+ }
166
+ [k: string]: unknown
167
+ }
168
+ [k: string]: unknown
169
+ }
170
+ /**
171
+ * Schema of all properties of an Transition event
172
+ */
173
+ export type RumTransitionEvent = CommonProperties & {
174
+ /**
175
+ * RUM event type
176
+ */
177
+ readonly type: 'transition'
178
+ view: {
179
+ [k: string]: unknown
180
+ }
181
+ /**
182
+ * Stream properties
183
+ */
184
+ readonly stream: {
185
+ /**
186
+ * UUID of the stream
187
+ */
188
+ readonly id: string
189
+ [k: string]: unknown
190
+ }
191
+ /**
192
+ * Transition properties
193
+ */
194
+ readonly transition: {
195
+ /**
196
+ * Type of the transition
197
+ */
198
+ readonly type: string
199
+ /**
200
+ * UUID of the transition
201
+ */
202
+ readonly id?: string
203
+ /**
204
+ * The player's current timestamp in milliseconds
205
+ */
206
+ readonly timestamp?: number
207
+ /**
208
+ * Buffer starvation duration, the amount of time spent rebuffering in milliseconds
209
+ */
210
+ readonly buffer_starvation_duration?: number
211
+ /**
212
+ * Media start delay, the amount of time spent loading before playing in milliseconds
213
+ */
214
+ readonly media_start_delay?: number
215
+ /**
216
+ * Error code, as reported by the player
217
+ */
218
+ readonly error_code?: number
219
+ /**
220
+ * Duration of the event in milliseconds
221
+ */
222
+ readonly duration?: number
223
+ [k: string]: unknown
224
+ }
225
+ [k: string]: unknown
226
+ }
227
+ /**
228
+ * Schema of all properties of an Error event
229
+ */
230
+ export type RumErrorEvent = CommonProperties &
231
+ ActionChildProperties &
232
+ ViewContainerSchema & {
233
+ /**
234
+ * RUM event type
235
+ */
236
+ readonly type: 'error'
237
+ /**
238
+ * Error properties
239
+ */
240
+ readonly error: {
241
+ /**
242
+ * UUID of the error
243
+ */
244
+ readonly id?: string
245
+ /**
246
+ * Error message
247
+ */
248
+ message: string
249
+ /**
250
+ * Source of the error
251
+ */
252
+ readonly source: 'network' | 'source' | 'console' | 'logger' | 'agent' | 'webview' | 'custom' | 'report'
253
+ /**
254
+ * Stacktrace of the error
255
+ */
256
+ stack?: string
257
+ /**
258
+ * Causes of the error
259
+ */
260
+ causes?: {
261
+ /**
262
+ * Error message
263
+ */
264
+ message: string
265
+ /**
266
+ * The type of the error
267
+ */
268
+ readonly type?: string
269
+ /**
270
+ * Stacktrace of the error
271
+ */
272
+ stack?: string
273
+ /**
274
+ * Source of the error
275
+ */
276
+ readonly source: 'network' | 'source' | 'console' | 'logger' | 'agent' | 'webview' | 'custom' | 'report'
277
+ [k: string]: unknown
278
+ }[]
279
+ /**
280
+ * Whether this error crashed the host application
281
+ */
282
+ readonly is_crash?: boolean
283
+ /**
284
+ * Fingerprint used for Error Tracking custom grouping
285
+ */
286
+ fingerprint?: string
287
+ /**
288
+ * The type of the error
289
+ */
290
+ readonly type?: string
291
+ /**
292
+ * The specific category of the error. It provides a high-level grouping for different types of errors.
293
+ */
294
+ readonly category?: 'ANR' | 'App Hang' | 'Exception' | 'Watchdog Termination' | 'Memory Warning' | 'Network'
295
+ /**
296
+ * Whether the error has been handled manually in the source code or not
297
+ */
298
+ readonly handling?: 'handled' | 'unhandled'
299
+ /**
300
+ * Handling call stack
301
+ */
302
+ readonly handling_stack?: string
303
+ /**
304
+ * Source type of the error (the language or platform impacting the error stacktrace format)
305
+ */
306
+ readonly source_type?:
307
+ | 'android'
308
+ | 'browser'
309
+ | 'ios'
310
+ | 'react-native'
311
+ | 'flutter'
312
+ | 'roku'
313
+ | 'ndk'
314
+ | 'ios+il2cpp'
315
+ | 'ndk+il2cpp'
316
+ /**
317
+ * Resource properties of the error
318
+ */
319
+ readonly resource?: {
320
+ /**
321
+ * HTTP method of the resource
322
+ */
323
+ readonly method: 'POST' | 'GET' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH' | 'TRACE' | 'OPTIONS' | 'CONNECT'
324
+ /**
325
+ * HTTP Status code of the resource
326
+ */
327
+ readonly status_code: number
328
+ /**
329
+ * URL of the resource
330
+ */
331
+ url: string
332
+ /**
333
+ * The provider for this resource
334
+ */
335
+ readonly provider?: {
336
+ /**
337
+ * The domain name of the provider
338
+ */
339
+ readonly domain?: string
340
+ /**
341
+ * The user friendly name of the provider
342
+ */
343
+ readonly name?: string
344
+ /**
345
+ * The type of provider
346
+ */
347
+ readonly type?:
348
+ | 'ad'
349
+ | 'advertising'
350
+ | 'analytics'
351
+ | 'cdn'
352
+ | 'content'
353
+ | 'customer-success'
354
+ | 'first party'
355
+ | 'hosting'
356
+ | 'marketing'
357
+ | 'other'
358
+ | 'social'
359
+ | 'tag-manager'
360
+ | 'utility'
361
+ | 'video'
362
+ [k: string]: unknown
363
+ }
364
+ [k: string]: unknown
365
+ }
366
+ /**
367
+ * Description of each thread in the process when error happened.
368
+ */
369
+ threads?: {
370
+ /**
371
+ * Name of the thread (e.g. 'Thread 0').
372
+ */
373
+ readonly name: string
374
+ /**
375
+ * Tells if the thread crashed.
376
+ */
377
+ readonly crashed: boolean
378
+ /**
379
+ * Unsymbolicated stack trace of the given thread.
380
+ */
381
+ readonly stack: string
382
+ /**
383
+ * Platform-specific state of the thread when its state was captured (CPU registers dump for iOS, thread state enum for Android, etc.).
384
+ */
385
+ readonly state?: string
386
+ [k: string]: unknown
387
+ }[]
388
+ /**
389
+ * Description of each binary image (native libraries; for Android: .so files) loaded or referenced by the process/application.
390
+ */
391
+ readonly binary_images?: {
392
+ /**
393
+ * Build UUID that uniquely identifies the binary image.
394
+ */
395
+ readonly uuid: string
396
+ /**
397
+ * Name of the library.
398
+ */
399
+ readonly name: string
400
+ /**
401
+ * Determines if it's a system or user library.
402
+ */
403
+ readonly is_system: boolean
404
+ /**
405
+ * Library's load address (hexadecimal).
406
+ */
407
+ readonly load_address?: string
408
+ /**
409
+ * Max value from the library address range (hexadecimal).
410
+ */
411
+ readonly max_address?: string
412
+ /**
413
+ * CPU architecture from the library.
414
+ */
415
+ readonly arch?: string
416
+ [k: string]: unknown
417
+ }[]
418
+ /**
419
+ * A boolean value saying if any of the stack traces was truncated due to minification.
420
+ */
421
+ readonly was_truncated?: boolean
422
+ /**
423
+ * Platform-specific metadata of the error event.
424
+ */
425
+ readonly meta?: {
426
+ /**
427
+ * The CPU architecture of the process that crashed.
428
+ */
429
+ readonly code_type?: string
430
+ /**
431
+ * Parent process information.
432
+ */
433
+ readonly parent_process?: string
434
+ /**
435
+ * A client-generated 16-byte UUID of the incident.
436
+ */
437
+ readonly incident_identifier?: string
438
+ /**
439
+ * The name of the crashed process.
440
+ */
441
+ readonly process?: string
442
+ /**
443
+ * The name of the corresponding BSD termination signal. (in case of iOS crash)
444
+ */
445
+ readonly exception_type?: string
446
+ /**
447
+ * CPU specific information about the exception encoded into 64-bit hexadecimal number preceded by the signal code.
448
+ */
449
+ readonly exception_codes?: string
450
+ /**
451
+ * The location of the executable.
452
+ */
453
+ readonly path?: string
454
+ [k: string]: unknown
455
+ }
456
+ /**
457
+ * Content Security Violation properties
458
+ */
459
+ readonly csp?: {
460
+ /**
461
+ * In the context of CSP errors, indicates how the violated policy is configured to be treated by the user agent.
462
+ */
463
+ readonly disposition?: 'enforce' | 'report'
464
+ [k: string]: unknown
465
+ }
466
+ /**
467
+ * Time since application start when error happened (in milliseconds)
468
+ */
469
+ readonly time_since_app_start?: number
470
+ [k: string]: unknown
471
+ }
472
+ /**
473
+ * Properties of App Hang and ANR errors
474
+ */
475
+ readonly freeze?: {
476
+ /**
477
+ * Duration of the main thread freeze (in ns)
478
+ */
479
+ readonly duration: number
480
+ [k: string]: unknown
481
+ }
482
+ /**
483
+ * View properties
484
+ */
485
+ readonly view: {
486
+ /**
487
+ * Is the error starting in the foreground (focus in browser)
488
+ */
489
+ readonly in_foreground?: boolean
490
+ [k: string]: unknown
491
+ }
492
+ /**
493
+ * Feature flags properties
494
+ */
495
+ readonly feature_flags?: {
496
+ [k: string]: unknown
497
+ }
498
+ [k: string]: unknown
499
+ }
500
+ /**
501
+ * Schema of all properties of a Long Task event
502
+ */
503
+ export type RumLongTaskEvent = CommonProperties &
504
+ ActionChildProperties &
505
+ ViewContainerSchema & {
506
+ /**
507
+ * RUM event type
508
+ */
509
+ readonly type: 'long_task'
510
+ view: {
511
+ [k: string]: unknown
512
+ }
513
+ /**
514
+ * Long Task properties
515
+ */
516
+ readonly long_task: {
517
+ /**
518
+ * UUID of the long task or long animation frame
519
+ */
520
+ readonly id?: string
521
+ /**
522
+ * Start time of the long animation frame
523
+ */
524
+ readonly start_time?: number
525
+ /**
526
+ * Type of the event: long task or long animation frame
527
+ */
528
+ readonly entry_type?: 'long-task' | 'long-animation-frame'
529
+ /**
530
+ * Duration in ns of the long task or long animation frame
531
+ */
532
+ readonly duration: number
533
+ /**
534
+ * Duration in ns for which the animation frame was being blocked
535
+ */
536
+ readonly blocking_duration?: number
537
+ /**
538
+ * Time difference (in ns) between the timeOrigin and the start time of the rendering cycle, which includes requestAnimationFrame callbacks, style and layout calculation, resize observer and intersection observer callbacks
539
+ */
540
+ readonly render_start?: number
541
+ /**
542
+ * Time difference (in ns) between the timeOrigin and the start time of the time period spent in style and layout calculations
543
+ */
544
+ readonly style_and_layout_start?: number
545
+ /**
546
+ * Time difference (in ns) between the timeOrigin and the start time of of the first UI event (mouse/keyboard and so on) to be handled during the course of this frame
547
+ */
548
+ readonly first_ui_event_timestamp?: number
549
+ /**
550
+ * Whether this long task is considered a frozen frame
551
+ */
552
+ readonly is_frozen_frame?: boolean
553
+ /**
554
+ * A list of long scripts that were executed over the course of the long frame
555
+ */
556
+ readonly scripts?: {
557
+ /**
558
+ * Duration in ns between startTime and when the subsequent microtask queue has finished processing
559
+ */
560
+ readonly duration?: number
561
+ /**
562
+ * Duration in ns of the total time spent in 'pausing' synchronous operations (alert, synchronous XHR)
563
+ */
564
+ readonly pause_duration?: number
565
+ /**
566
+ * Duration in ns of the the total time spent processing forced layout and style inside this function
567
+ */
568
+ readonly forced_style_and_layout_duration?: number
569
+ /**
570
+ * Time the entry function was invoked
571
+ */
572
+ readonly start_time?: number
573
+ /**
574
+ * Time after compilation
575
+ */
576
+ readonly execution_start?: number
577
+ /**
578
+ * The script resource name where available (or empty if not found)
579
+ */
580
+ source_url?: string
581
+ /**
582
+ * The script function name where available (or empty if not found)
583
+ */
584
+ readonly source_function_name?: string
585
+ /**
586
+ * The script character position where available (or -1 if not found)
587
+ */
588
+ readonly source_char_position?: number
589
+ /**
590
+ * Information about the invoker of the script
591
+ */
592
+ invoker?: string
593
+ /**
594
+ * Type of the invoker of the script
595
+ */
596
+ readonly invoker_type?:
597
+ | 'user-callback'
598
+ | 'event-listener'
599
+ | 'resolve-promise'
600
+ | 'reject-promise'
601
+ | 'classic-script'
602
+ | 'module-script'
603
+ /**
604
+ * The container (the top-level document, or an <iframe>) the long animation frame occurred in
605
+ */
606
+ readonly window_attribution?: string
607
+ [k: string]: unknown
608
+ }[]
609
+ [k: string]: unknown
610
+ }
611
+ /**
612
+ * Internal properties
613
+ */
614
+ readonly _kubesense?: {
615
+ /**
616
+ * Whether the long task should be discarded or indexed
617
+ */
618
+ readonly discarded?: boolean
619
+ /**
620
+ * Profiling context
621
+ */
622
+ profiling?: ProfilingInternalContextSchema
623
+ [k: string]: unknown
624
+ }
625
+ [k: string]: unknown
626
+ }
627
+ /**
628
+ * Schema of all properties of a Resource event
629
+ */
630
+ export type RumResourceEvent = CommonProperties &
631
+ ActionChildProperties &
632
+ ViewContainerSchema & {
633
+ /**
634
+ * RUM event type
635
+ */
636
+ readonly type: 'resource'
637
+ view: {
638
+ [k: string]: unknown
639
+ }
640
+ /**
641
+ * Resource properties
642
+ */
643
+ readonly resource: {
644
+ /**
645
+ * UUID of the resource
646
+ */
647
+ readonly id?: string
648
+ /**
649
+ * Resource type
650
+ */
651
+ readonly type:
652
+ | 'document'
653
+ | 'xhr'
654
+ | 'beacon'
655
+ | 'fetch'
656
+ | 'css'
657
+ | 'js'
658
+ | 'image'
659
+ | 'font'
660
+ | 'media'
661
+ | 'other'
662
+ | 'native'
663
+ /**
664
+ * HTTP method of the resource
665
+ */
666
+ readonly method?: 'POST' | 'GET' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH' | 'TRACE' | 'OPTIONS' | 'CONNECT'
667
+ /**
668
+ * URL of the resource
669
+ */
670
+ url: string
671
+ /**
672
+ * HTTP status code of the resource
673
+ */
674
+ readonly status_code?: number
675
+ /**
676
+ * Duration of the resource
677
+ */
678
+ readonly duration?: number
679
+ /**
680
+ * Size in octet of the resource response body
681
+ */
682
+ readonly size?: number
683
+ /**
684
+ * Size in octet of the resource before removing any applied content encodings
685
+ */
686
+ readonly encoded_body_size?: number
687
+ /**
688
+ * Size in octet of the resource after removing any applied encoding
689
+ */
690
+ readonly decoded_body_size?: number
691
+ /**
692
+ * Size in octet of the fetched resource
693
+ */
694
+ readonly transfer_size?: number
695
+ /**
696
+ * Render blocking status of the resource
697
+ */
698
+ readonly render_blocking_status?: 'blocking' | 'non-blocking'
699
+ /**
700
+ * Worker phase properties
701
+ */
702
+ readonly worker?: {
703
+ /**
704
+ * Duration in nanoseconds of the resource worker phase
705
+ */
706
+ readonly duration: number
707
+ /**
708
+ * Duration in nanoseconds between start of the request and start of the worker phase
709
+ */
710
+ readonly start: number
711
+ [k: string]: unknown
712
+ }
713
+ /**
714
+ * Redirect phase properties
715
+ */
716
+ readonly redirect?: {
717
+ /**
718
+ * Duration in ns of the resource redirect phase
719
+ */
720
+ readonly duration: number
721
+ /**
722
+ * Duration in ns between start of the request and start of the redirect phase
723
+ */
724
+ readonly start: number
725
+ [k: string]: unknown
726
+ }
727
+ /**
728
+ * DNS phase properties
729
+ */
730
+ readonly dns?: {
731
+ /**
732
+ * Duration in ns of the resource dns phase
733
+ */
734
+ readonly duration: number
735
+ /**
736
+ * Duration in ns between start of the request and start of the dns phase
737
+ */
738
+ readonly start: number
739
+ [k: string]: unknown
740
+ }
741
+ /**
742
+ * Connect phase properties
743
+ */
744
+ readonly connect?: {
745
+ /**
746
+ * Duration in ns of the resource connect phase
747
+ */
748
+ readonly duration: number
749
+ /**
750
+ * Duration in ns between start of the request and start of the connect phase
751
+ */
752
+ readonly start: number
753
+ [k: string]: unknown
754
+ }
755
+ /**
756
+ * SSL phase properties
757
+ */
758
+ readonly ssl?: {
759
+ /**
760
+ * Duration in ns of the resource ssl phase
761
+ */
762
+ readonly duration: number
763
+ /**
764
+ * Duration in ns between start of the request and start of the ssl phase
765
+ */
766
+ readonly start: number
767
+ [k: string]: unknown
768
+ }
769
+ /**
770
+ * First Byte phase properties
771
+ */
772
+ readonly first_byte?: {
773
+ /**
774
+ * Duration in ns of the resource first byte phase
775
+ */
776
+ readonly duration: number
777
+ /**
778
+ * Duration in ns between start of the request and start of the first byte phase
779
+ */
780
+ readonly start: number
781
+ [k: string]: unknown
782
+ }
783
+ /**
784
+ * Download phase properties
785
+ */
786
+ readonly download?: {
787
+ /**
788
+ * Duration in ns of the resource download phase
789
+ */
790
+ readonly duration: number
791
+ /**
792
+ * Duration in ns between start of the request and start of the download phase
793
+ */
794
+ readonly start: number
795
+ [k: string]: unknown
796
+ }
797
+ /**
798
+ * Network protocol used to fetch the resource (e.g., 'http/1.1', 'h2')
799
+ */
800
+ readonly protocol?: string
801
+ /**
802
+ * Delivery type of the resource
803
+ */
804
+ readonly delivery_type?: 'cache' | 'navigational-prefetch' | 'other'
805
+ /**
806
+ * The provider for this resource
807
+ */
808
+ readonly provider?: {
809
+ /**
810
+ * The domain name of the provider
811
+ */
812
+ readonly domain?: string
813
+ /**
814
+ * The user friendly name of the provider
815
+ */
816
+ readonly name?: string
817
+ /**
818
+ * The type of provider
819
+ */
820
+ readonly type?:
821
+ | 'ad'
822
+ | 'advertising'
823
+ | 'analytics'
824
+ | 'cdn'
825
+ | 'content'
826
+ | 'customer-success'
827
+ | 'first party'
828
+ | 'hosting'
829
+ | 'marketing'
830
+ | 'other'
831
+ | 'social'
832
+ | 'tag-manager'
833
+ | 'utility'
834
+ | 'video'
835
+ [k: string]: unknown
836
+ }
837
+ /**
838
+ * GraphQL requests parameters
839
+ */
840
+ readonly graphql?: {
841
+ /**
842
+ * Type of the GraphQL operation
843
+ */
844
+ readonly operationType: 'query' | 'mutation' | 'subscription'
845
+ /**
846
+ * Name of the GraphQL operation
847
+ */
848
+ readonly operationName?: string
849
+ /**
850
+ * Content of the GraphQL operation
851
+ */
852
+ payload?: string
853
+ /**
854
+ * String representation of the operation variables
855
+ */
856
+ variables?: string
857
+ /**
858
+ * Number of GraphQL errors in the response
859
+ */
860
+ readonly error_count?: number
861
+ /**
862
+ * Array of GraphQL errors from the response
863
+ */
864
+ readonly errors?: {
865
+ /**
866
+ * Error message
867
+ */
868
+ readonly message: string
869
+ /**
870
+ * Error code (used by some providers)
871
+ */
872
+ readonly code?: string
873
+ /**
874
+ * Array of error locations in the GraphQL query
875
+ */
876
+ readonly locations?: {
877
+ /**
878
+ * Line number where the error occurred
879
+ */
880
+ readonly line: number
881
+ /**
882
+ * Column number where the error occurred
883
+ */
884
+ readonly column: number
885
+ [k: string]: unknown
886
+ }[]
887
+ /**
888
+ * Path to the field that caused the error
889
+ */
890
+ readonly path?: (string | number)[]
891
+ [k: string]: unknown
892
+ }[]
893
+ [k: string]: unknown
894
+ }
895
+ [k: string]: unknown
896
+ }
897
+ /**
898
+ * Internal properties
899
+ */
900
+ readonly _kubesense?: {
901
+ /**
902
+ * span identifier in decimal format
903
+ */
904
+ readonly span_id?: string
905
+ /**
906
+ * parent span identifier in decimal format
907
+ */
908
+ readonly parent_span_id?: string
909
+ /**
910
+ * trace identifier, either a 64 bit decimal number or a 128 bit hexadecimal number padded with 0s
911
+ */
912
+ readonly trace_id?: string
913
+ /**
914
+ * trace sample rate in decimal format
915
+ */
916
+ readonly rule_psr?: number
917
+ /**
918
+ * Whether the resource should be discarded or indexed
919
+ */
920
+ readonly discarded?: boolean
921
+ [k: string]: unknown
922
+ }
923
+ [k: string]: unknown
924
+ }
925
+ /**
926
+ * Schema of all properties of a View event
927
+ */
928
+ export type RumViewEvent = CommonProperties &
929
+ ViewContainerSchema &
930
+ StreamSchema & {
931
+ /**
932
+ * RUM event type
933
+ */
934
+ readonly type: 'view'
935
+ /**
936
+ * View properties
937
+ */
938
+ readonly view: {
939
+ /**
940
+ * Duration in ns to the view is considered loaded
941
+ */
942
+ readonly loading_time?: number
943
+ /**
944
+ * Duration in ns from the moment the view was started until all the initial network requests settled
945
+ */
946
+ readonly network_settled_time?: number
947
+ /**
948
+ * Duration in ns to from the last interaction on previous view to the moment the current view was displayed
949
+ */
950
+ readonly interaction_to_next_view_time?: number
951
+ /**
952
+ * Type of the loading of the view
953
+ */
954
+ readonly loading_type?:
955
+ | 'initial_load'
956
+ | 'route_change'
957
+ | 'activity_display'
958
+ | 'activity_redisplay'
959
+ | 'fragment_display'
960
+ | 'fragment_redisplay'
961
+ | 'view_controller_display'
962
+ | 'view_controller_redisplay'
963
+ /**
964
+ * Time spent on the view in ns
965
+ */
966
+ readonly time_spent: number
967
+ /**
968
+ * Duration in ns to the first rendering (deprecated in favor of `view.performance.fcp.timestamp`)
969
+ */
970
+ readonly first_contentful_paint?: number
971
+ /**
972
+ * Duration in ns to the largest contentful paint (deprecated in favor of `view.performance.lcp.timestamp`)
973
+ */
974
+ readonly largest_contentful_paint?: number
975
+ /**
976
+ * CSS selector path of the largest contentful paint element (deprecated in favor of `view.performance.lcp.target_selector`)
977
+ */
978
+ readonly largest_contentful_paint_target_selector?: string
979
+ /**
980
+ * Duration in ns of the first input event delay (deprecated in favor of `view.performance.fid.duration`)
981
+ */
982
+ readonly first_input_delay?: number
983
+ /**
984
+ * Duration in ns to the first input (deprecated in favor of `view.performance.fid.timestamp`)
985
+ */
986
+ readonly first_input_time?: number
987
+ /**
988
+ * CSS selector path of the first input target element (deprecated in favor of `view.performance.fid.target_selector`)
989
+ */
990
+ readonly first_input_target_selector?: string
991
+ /**
992
+ * Longest duration in ns between an interaction and the next paint (deprecated in favor of `view.performance.inp.duration`)
993
+ */
994
+ readonly interaction_to_next_paint?: number
995
+ /**
996
+ * Duration in ns between start of the view and start of the INP (deprecated in favor of `view.performance.inp.timestamp`)
997
+ */
998
+ readonly interaction_to_next_paint_time?: number
999
+ /**
1000
+ * CSS selector path of the interacted element corresponding to INP (deprecated in favor of `view.performance.inp.target_selector`)
1001
+ */
1002
+ readonly interaction_to_next_paint_target_selector?: string
1003
+ /**
1004
+ * Total layout shift score that occurred on the view (deprecated in favor of `view.performance.cls.score`)
1005
+ */
1006
+ readonly cumulative_layout_shift?: number
1007
+ /**
1008
+ * Duration in ns between start of the view and start of the largest layout shift contributing to CLS (deprecated in favor of `view.performance.cls.timestamp`)
1009
+ */
1010
+ readonly cumulative_layout_shift_time?: number
1011
+ /**
1012
+ * CSS selector path of the first element (in document order) of the largest layout shift contributing to CLS (deprecated in favor of `view.performance.cls.target_selector`)
1013
+ */
1014
+ readonly cumulative_layout_shift_target_selector?: string
1015
+ /**
1016
+ * Duration in ns to the complete parsing and loading of the document and its sub resources
1017
+ */
1018
+ readonly dom_complete?: number
1019
+ /**
1020
+ * Duration in ns to the complete parsing and loading of the document without its sub resources
1021
+ */
1022
+ readonly dom_content_loaded?: number
1023
+ /**
1024
+ * Duration in ns to the end of the parsing of the document
1025
+ */
1026
+ readonly dom_interactive?: number
1027
+ /**
1028
+ * Duration in ns to the end of the load event handler execution
1029
+ */
1030
+ readonly load_event?: number
1031
+ /**
1032
+ * Duration in ns to the response start of the document request
1033
+ */
1034
+ readonly first_byte?: number
1035
+ /**
1036
+ * User custom timings of the view. As timing name is used as facet path, it must contain only letters, digits, or the characters - _ . @ $
1037
+ */
1038
+ readonly custom_timings?: {
1039
+ [k: string]: number
1040
+ }
1041
+ /**
1042
+ * Whether the View corresponding to this event is considered active
1043
+ */
1044
+ readonly is_active?: boolean
1045
+ /**
1046
+ * Whether the View had a low average refresh rate
1047
+ */
1048
+ readonly is_slow_rendered?: boolean
1049
+ /**
1050
+ * Properties of the actions of the view
1051
+ */
1052
+ readonly action: {
1053
+ /**
1054
+ * Number of actions that occurred on the view
1055
+ */
1056
+ readonly count: number
1057
+ [k: string]: unknown
1058
+ }
1059
+ /**
1060
+ * Properties of the errors of the view
1061
+ */
1062
+ readonly error: {
1063
+ /**
1064
+ * Number of errors that occurred on the view
1065
+ */
1066
+ readonly count: number
1067
+ [k: string]: unknown
1068
+ }
1069
+ /**
1070
+ * Properties of the crashes of the view
1071
+ */
1072
+ readonly crash?: {
1073
+ /**
1074
+ * Number of crashes that occurred on the view
1075
+ */
1076
+ readonly count: number
1077
+ [k: string]: unknown
1078
+ }
1079
+ /**
1080
+ * Properties of the long tasks of the view
1081
+ */
1082
+ readonly long_task?: {
1083
+ /**
1084
+ * Number of long tasks that occurred on the view
1085
+ */
1086
+ readonly count: number
1087
+ [k: string]: unknown
1088
+ }
1089
+ /**
1090
+ * Properties of the frozen frames of the view
1091
+ */
1092
+ readonly frozen_frame?: {
1093
+ /**
1094
+ * Number of frozen frames that occurred on the view
1095
+ */
1096
+ readonly count: number
1097
+ [k: string]: unknown
1098
+ }
1099
+ /**
1100
+ * List of slow frames during the view’s lifetime
1101
+ */
1102
+ readonly slow_frames?: {
1103
+ /**
1104
+ * Duration in ns between start of the view and the start of the slow frame
1105
+ */
1106
+ readonly start: number
1107
+ /**
1108
+ * Duration in ns of the slow frame
1109
+ */
1110
+ readonly duration: number
1111
+ [k: string]: unknown
1112
+ }[]
1113
+ /**
1114
+ * Properties of the resources of the view
1115
+ */
1116
+ readonly resource: {
1117
+ /**
1118
+ * Number of resources that occurred on the view
1119
+ */
1120
+ readonly count: number
1121
+ [k: string]: unknown
1122
+ }
1123
+ /**
1124
+ * Properties of the frustrations of the view
1125
+ */
1126
+ readonly frustration?: {
1127
+ /**
1128
+ * Number of frustrations that occurred on the view
1129
+ */
1130
+ readonly count: number
1131
+ [k: string]: unknown
1132
+ }
1133
+ /**
1134
+ * List of the periods of time the user had the view in foreground (focused in the browser)
1135
+ */
1136
+ readonly in_foreground_periods?: {
1137
+ /**
1138
+ * Duration in ns between start of the view and start of foreground period
1139
+ */
1140
+ readonly start: number
1141
+ /**
1142
+ * Duration in ns of the view foreground period
1143
+ */
1144
+ readonly duration: number
1145
+ [k: string]: unknown
1146
+ }[]
1147
+ /**
1148
+ * Average memory used during the view lifetime (in bytes)
1149
+ */
1150
+ readonly memory_average?: number
1151
+ /**
1152
+ * Peak memory used during the view lifetime (in bytes)
1153
+ */
1154
+ readonly memory_max?: number
1155
+ /**
1156
+ * Total number of cpu ticks during the view’s lifetime
1157
+ */
1158
+ readonly cpu_ticks_count?: number
1159
+ /**
1160
+ * Average number of cpu ticks per second during the view’s lifetime
1161
+ */
1162
+ readonly cpu_ticks_per_second?: number
1163
+ /**
1164
+ * Average refresh rate during the view’s lifetime (in frames per second)
1165
+ */
1166
+ readonly refresh_rate_average?: number
1167
+ /**
1168
+ * Minimum refresh rate during the view’s lifetime (in frames per second)
1169
+ */
1170
+ readonly refresh_rate_min?: number
1171
+ /**
1172
+ * Rate of slow frames during the view’s lifetime (in milliseconds per second)
1173
+ */
1174
+ readonly slow_frames_rate?: number
1175
+ /**
1176
+ * Rate of freezes during the view’s lifetime (in seconds per hour)
1177
+ */
1178
+ readonly freeze_rate?: number
1179
+ /**
1180
+ * Time taken for Flutter 'build' methods.
1181
+ */
1182
+ flutter_build_time?: RumPerfMetric
1183
+ /**
1184
+ * Time taken for Flutter to rasterize the view.
1185
+ */
1186
+ flutter_raster_time?: RumPerfMetric
1187
+ /**
1188
+ * The JavaScript refresh rate for React Native
1189
+ */
1190
+ js_refresh_rate?: RumPerfMetric
1191
+ /**
1192
+ * Performance data. (Web Vitals, etc.)
1193
+ */
1194
+ performance?: ViewPerformanceData
1195
+ /**
1196
+ * Accessibility properties of the view
1197
+ */
1198
+ accessibility?: ViewAccessibilityProperties
1199
+ [k: string]: unknown
1200
+ }
1201
+ /**
1202
+ * Session properties
1203
+ */
1204
+ readonly session?: {
1205
+ /**
1206
+ * Whether this session is currently active. Set to false to manually stop a session
1207
+ */
1208
+ readonly is_active?: boolean
1209
+ /**
1210
+ * Whether this session has been sampled for replay
1211
+ */
1212
+ readonly sampled_for_replay?: boolean
1213
+ [k: string]: unknown
1214
+ }
1215
+ /**
1216
+ * Feature flags properties
1217
+ */
1218
+ readonly feature_flags?: {
1219
+ [k: string]: unknown
1220
+ }
1221
+ /**
1222
+ * Privacy properties
1223
+ */
1224
+ readonly privacy?: {
1225
+ /**
1226
+ * The replay privacy level
1227
+ */
1228
+ readonly replay_level: 'allow' | 'mask' | 'mask-user-input'
1229
+ [k: string]: unknown
1230
+ }
1231
+ /**
1232
+ * Internal properties
1233
+ */
1234
+ readonly _kubesense: {
1235
+ /**
1236
+ * Version of the update of the view event
1237
+ */
1238
+ readonly document_version: number
1239
+ /**
1240
+ * List of the page states during the view
1241
+ */
1242
+ readonly page_states?: {
1243
+ /**
1244
+ * Page state name
1245
+ */
1246
+ readonly state: 'active' | 'passive' | 'hidden' | 'frozen' | 'terminated'
1247
+ /**
1248
+ * Duration in ns between start of the view and start of the page state
1249
+ */
1250
+ readonly start: number
1251
+ [k: string]: unknown
1252
+ }[]
1253
+ /**
1254
+ * Debug metadata for Replay Sessions
1255
+ */
1256
+ replay_stats?: {
1257
+ /**
1258
+ * The number of records produced during this view lifetime
1259
+ */
1260
+ records_count?: number
1261
+ /**
1262
+ * The number of segments sent during this view lifetime
1263
+ */
1264
+ segments_count?: number
1265
+ /**
1266
+ * The total size in bytes of the segments sent during this view lifetime
1267
+ */
1268
+ segments_total_raw_size?: number
1269
+ [k: string]: unknown
1270
+ }
1271
+ /**
1272
+ * Additional information of the reported Cumulative Layout Shift
1273
+ */
1274
+ readonly cls?: {
1275
+ /**
1276
+ * Pixel ratio of the device where the layout shift was reported
1277
+ */
1278
+ readonly device_pixel_ratio?: number
1279
+ [k: string]: unknown
1280
+ }
1281
+ /**
1282
+ * Subset of the SDK configuration options in use during its execution
1283
+ */
1284
+ readonly configuration?: {
1285
+ /**
1286
+ * Whether session replay recording configured to start manually
1287
+ */
1288
+ readonly start_session_replay_recording_manually?: boolean
1289
+ [k: string]: unknown
1290
+ }
1291
+ /**
1292
+ * Profiling context
1293
+ */
1294
+ profiling?: ProfilingInternalContextSchema
1295
+ [k: string]: unknown
1296
+ }
1297
+ /**
1298
+ * Display properties
1299
+ */
1300
+ readonly display?: {
1301
+ /**
1302
+ * Scroll properties
1303
+ */
1304
+ readonly scroll?: {
1305
+ /**
1306
+ * Distance between the top and the lowest point reached on this view (in pixels)
1307
+ */
1308
+ readonly max_depth: number
1309
+ /**
1310
+ * Page scroll top (scrolled distance) when the maximum scroll depth was reached for this view (in pixels)
1311
+ */
1312
+ readonly max_depth_scroll_top: number
1313
+ /**
1314
+ * Maximum page scroll height (total height) for this view (in pixels)
1315
+ */
1316
+ readonly max_scroll_height: number
1317
+ /**
1318
+ * Duration between the view start and the time the max scroll height was reached for this view (in nanoseconds)
1319
+ */
1320
+ readonly max_scroll_height_time: number
1321
+ [k: string]: unknown
1322
+ }
1323
+ [k: string]: unknown
1324
+ }
1325
+ [k: string]: unknown
1326
+ }
1327
+ export type RumVitalEvent = RumVitalDurationEvent | RumVitalOperationStepEvent
1328
+ /**
1329
+ * Schema for a duration vital event.
1330
+ */
1331
+ export type RumVitalDurationEvent = RumVitalEventCommonProperties & {
1332
+ view: {
1333
+ [k: string]: unknown
1334
+ }
1335
+ /**
1336
+ * Vital properties
1337
+ */
1338
+ readonly vital: {
1339
+ /**
1340
+ * Type of the vital.
1341
+ */
1342
+ readonly type: 'duration'
1343
+ /**
1344
+ * Duration of the vital in nanoseconds.
1345
+ */
1346
+ readonly duration: number
1347
+ [k: string]: unknown
1348
+ }
1349
+ [k: string]: unknown
1350
+ }
1351
+ /**
1352
+ * Schema of common properties for a Vital event
1353
+ */
1354
+ export type RumVitalEventCommonProperties = CommonProperties &
1355
+ ViewContainerSchema & {
1356
+ /**
1357
+ * RUM event type
1358
+ */
1359
+ readonly type: 'vital'
1360
+ /**
1361
+ * Vital properties
1362
+ */
1363
+ readonly vital: {
1364
+ /**
1365
+ * UUID of the vital
1366
+ */
1367
+ readonly id: string
1368
+ /**
1369
+ * Name of the vital, as it is also used as facet path for its value, it must contain only letters, digits, or the characters - _ . @ $
1370
+ */
1371
+ readonly name?: string
1372
+ /**
1373
+ * Description of the vital. It can be used as a secondary identifier (URL, React component name...)
1374
+ */
1375
+ readonly description?: string
1376
+ [k: string]: unknown
1377
+ }
1378
+ [k: string]: unknown
1379
+ }
1380
+ /**
1381
+ * Schema for a vital operation step event.
1382
+ */
1383
+ export type RumVitalOperationStepEvent = RumVitalEventCommonProperties & {
1384
+ view: {
1385
+ [k: string]: unknown
1386
+ }
1387
+ /**
1388
+ * Vital properties
1389
+ */
1390
+ readonly vital: {
1391
+ /**
1392
+ * Type of the vital.
1393
+ */
1394
+ readonly type: 'operation_step'
1395
+ /**
1396
+ * Optional key to distinguish between multiple operations of the same name running in parallel (e.g., 'photo_upload' with keys 'profile_pic' vs 'cover')
1397
+ */
1398
+ readonly operation_key?: string
1399
+ /**
1400
+ * Type of the step that triggered the vital, if applicable
1401
+ */
1402
+ readonly step_type: 'start' | 'update' | 'retry' | 'end'
1403
+ /**
1404
+ * Reason for the failure of the step, if applicable
1405
+ */
1406
+ readonly failure_reason?: 'error' | 'abandoned' | 'other'
1407
+ [k: string]: unknown
1408
+ }
1409
+ [k: string]: unknown
1410
+ }
1411
+
1412
+ /**
1413
+ * Schema of common properties of RUM events
1414
+ */
1415
+ export interface CommonProperties {
1416
+ /**
1417
+ * Start of the event in ms from epoch
1418
+ */
1419
+ readonly date: number
1420
+ /**
1421
+ * Application properties
1422
+ */
1423
+ readonly application: {
1424
+ /**
1425
+ * UUID of the application
1426
+ */
1427
+ readonly id: string
1428
+ /**
1429
+ * The user's current locale as a language tag (language + region), computed from their preferences and the app's supported languages, e.g. 'es-FR'.
1430
+ */
1431
+ readonly current_locale?: string
1432
+ [k: string]: unknown
1433
+ }
1434
+ /**
1435
+ * The service name for this application
1436
+ */
1437
+ service?: string
1438
+ /**
1439
+ * The version for this application
1440
+ */
1441
+ version?: string
1442
+ /**
1443
+ * The build version for this application
1444
+ */
1445
+ readonly build_version?: string
1446
+ /**
1447
+ * Generated unique ID of the application build. Unlike version or build_version this field is not meant to be coming from the user, but rather generated by the tooling for each build.
1448
+ */
1449
+ readonly build_id?: string
1450
+ /**
1451
+ * Tags of the event in key:value format, separated by commas (e.g. 'env:prod,version:1.2.3')
1452
+ */
1453
+ readonly ktags?: string
1454
+ /**
1455
+ * Session properties
1456
+ */
1457
+ readonly session: {
1458
+ /**
1459
+ * UUID of the session
1460
+ */
1461
+ readonly id: string
1462
+ /**
1463
+ * Type of the session
1464
+ */
1465
+ readonly type: 'user' | 'synthetics' | 'ci_test'
1466
+ /**
1467
+ * Whether this session has a replay
1468
+ */
1469
+ readonly has_replay?: boolean
1470
+ [k: string]: unknown
1471
+ }
1472
+ /**
1473
+ * The source of this event
1474
+ */
1475
+ readonly source?:
1476
+ | 'android'
1477
+ | 'ios'
1478
+ | 'browser'
1479
+ | 'flutter'
1480
+ | 'react-native'
1481
+ | 'roku'
1482
+ | 'unity'
1483
+ | 'kotlin-multiplatform'
1484
+ /**
1485
+ * View properties
1486
+ */
1487
+ readonly view?: {
1488
+ /**
1489
+ * UUID of the view
1490
+ */
1491
+ readonly id: string
1492
+ /**
1493
+ * URL that linked to the initial view of the page
1494
+ */
1495
+ referrer?: string
1496
+ /**
1497
+ * URL of the view
1498
+ */
1499
+ url: string
1500
+ /**
1501
+ * User defined name of the view
1502
+ */
1503
+ name?: string
1504
+ [k: string]: unknown
1505
+ }
1506
+ /**
1507
+ * User properties
1508
+ */
1509
+ readonly usr?: {
1510
+ /**
1511
+ * Identifier of the user
1512
+ */
1513
+ readonly id?: string
1514
+ /**
1515
+ * Name of the user
1516
+ */
1517
+ readonly name?: string
1518
+ /**
1519
+ * Email of the user
1520
+ */
1521
+ readonly email?: string
1522
+ /**
1523
+ * Identifier of the user across sessions
1524
+ */
1525
+ readonly anonymous_id?: string
1526
+ [k: string]: unknown
1527
+ }
1528
+ /**
1529
+ * Account properties
1530
+ */
1531
+ readonly account?: {
1532
+ /**
1533
+ * Identifier of the account
1534
+ */
1535
+ readonly id: string
1536
+ /**
1537
+ * Name of the account
1538
+ */
1539
+ readonly name?: string
1540
+ [k: string]: unknown
1541
+ }
1542
+ /**
1543
+ * Device connectivity properties
1544
+ */
1545
+ connectivity?: {
1546
+ /**
1547
+ * Status of the device connectivity
1548
+ */
1549
+ readonly status: 'connected' | 'not_connected' | 'maybe'
1550
+ /**
1551
+ * The list of available network interfaces
1552
+ */
1553
+ readonly interfaces?: (
1554
+ | 'bluetooth'
1555
+ | 'cellular'
1556
+ | 'ethernet'
1557
+ | 'wifi'
1558
+ | 'wimax'
1559
+ | 'mixed'
1560
+ | 'other'
1561
+ | 'unknown'
1562
+ | 'none'
1563
+ )[]
1564
+ /**
1565
+ * Cellular connection type reflecting the measured network performance
1566
+ */
1567
+ readonly effective_type?: 'slow-2g' | '2g' | '3g' | '4g'
1568
+ /**
1569
+ * Cellular connectivity properties
1570
+ */
1571
+ readonly cellular?: {
1572
+ /**
1573
+ * The type of a radio technology used for cellular connection
1574
+ */
1575
+ readonly technology?: string
1576
+ /**
1577
+ * The name of the SIM carrier
1578
+ */
1579
+ readonly carrier_name?: string
1580
+ [k: string]: unknown
1581
+ }
1582
+ [k: string]: unknown
1583
+ }
1584
+ /**
1585
+ * Display properties
1586
+ */
1587
+ display?: {
1588
+ /**
1589
+ * The viewport represents the rectangular area that is currently being viewed. Content outside the viewport is not visible onscreen until scrolled into view.
1590
+ */
1591
+ readonly viewport?: {
1592
+ /**
1593
+ * Width of the viewport (in pixels)
1594
+ */
1595
+ readonly width: number
1596
+ /**
1597
+ * Height of the viewport (in pixels)
1598
+ */
1599
+ readonly height: number
1600
+ [k: string]: unknown
1601
+ }
1602
+ [k: string]: unknown
1603
+ }
1604
+ /**
1605
+ * Synthetics properties
1606
+ */
1607
+ readonly synthetics?: {
1608
+ /**
1609
+ * The identifier of the current Synthetics test
1610
+ */
1611
+ readonly test_id: string
1612
+ /**
1613
+ * The identifier of the current Synthetics test results
1614
+ */
1615
+ readonly result_id: string
1616
+ /**
1617
+ * Whether the event comes from a SDK instance injected by Synthetics
1618
+ */
1619
+ readonly injected?: boolean
1620
+ [k: string]: unknown
1621
+ }
1622
+ /**
1623
+ * CI Visibility properties
1624
+ */
1625
+ readonly ci_test?: {
1626
+ /**
1627
+ * The identifier of the current CI Visibility test execution
1628
+ */
1629
+ readonly test_execution_id: string
1630
+ [k: string]: unknown
1631
+ }
1632
+ /**
1633
+ * Operating system properties
1634
+ */
1635
+ os?: {
1636
+ /**
1637
+ * Operating system name, e.g. Android, iOS
1638
+ */
1639
+ readonly name: string
1640
+ /**
1641
+ * Full operating system version, e.g. 8.1.1
1642
+ */
1643
+ readonly version: string
1644
+ /**
1645
+ * Operating system build number, e.g. 15D21
1646
+ */
1647
+ readonly build?: string
1648
+ /**
1649
+ * Major operating system version, e.g. 8
1650
+ */
1651
+ readonly version_major: string
1652
+ [k: string]: unknown
1653
+ }
1654
+ /**
1655
+ * Device properties
1656
+ */
1657
+ device?: {
1658
+ /**
1659
+ * Device type info
1660
+ */
1661
+ readonly type?: 'mobile' | 'desktop' | 'tablet' | 'tv' | 'gaming_console' | 'bot' | 'other'
1662
+ /**
1663
+ * Device marketing name, e.g. Xiaomi Redmi Note 8 Pro, Pixel 5, etc.
1664
+ */
1665
+ readonly name?: string
1666
+ /**
1667
+ * Device SKU model, e.g. Samsung SM-988GN, etc. Quite often name and model can be the same.
1668
+ */
1669
+ readonly model?: string
1670
+ /**
1671
+ * Device marketing brand, e.g. Apple, OPPO, Xiaomi, etc.
1672
+ */
1673
+ readonly brand?: string
1674
+ /**
1675
+ * The CPU architecture of the device that is reporting the error
1676
+ */
1677
+ readonly architecture?: string
1678
+ /**
1679
+ * The user’s locale as a language tag combining language and region, e.g. 'en-US'.
1680
+ */
1681
+ readonly locale?: string
1682
+ /**
1683
+ * Ordered list of the user’s preferred system languages as IETF language tags.
1684
+ */
1685
+ readonly locales?: string[]
1686
+ /**
1687
+ * The device’s current time zone identifier, e.g. 'Europe/Berlin'.
1688
+ */
1689
+ readonly time_zone?: string
1690
+ /**
1691
+ * Current battery level of the device (0.0 to 1.0).
1692
+ */
1693
+ readonly battery_level?: number
1694
+ /**
1695
+ * Whether the device is in power saving mode.
1696
+ */
1697
+ readonly power_saving_mode?: boolean
1698
+ /**
1699
+ * Current screen brightness level (0.0 to 1.0).
1700
+ */
1701
+ readonly brightness_level?: number
1702
+ [k: string]: unknown
1703
+ }
1704
+ /**
1705
+ * Internal properties
1706
+ */
1707
+ readonly _kubesense: {
1708
+ /**
1709
+ * Version of the RUM event format
1710
+ */
1711
+ readonly format_version: 2
1712
+ /**
1713
+ * Session-related internal properties
1714
+ */
1715
+ session?: {
1716
+ /**
1717
+ * Session plan: 1 is the plan without replay, 2 is the plan with replay (deprecated)
1718
+ */
1719
+ plan?: 1 | 2
1720
+ /**
1721
+ * The precondition that led to the creation of the session
1722
+ */
1723
+ readonly session_precondition?:
1724
+ | 'user_app_launch'
1725
+ | 'inactivity_timeout'
1726
+ | 'max_duration'
1727
+ | 'background_launch'
1728
+ | 'prewarm'
1729
+ | 'from_non_interactive_session'
1730
+ | 'explicit_stop'
1731
+ [k: string]: unknown
1732
+ }
1733
+ /**
1734
+ * Subset of the SDK configuration options in use during its execution
1735
+ */
1736
+ readonly configuration?: {
1737
+ /**
1738
+ * The percentage of sessions tracked
1739
+ */
1740
+ readonly session_sample_rate: number
1741
+ /**
1742
+ * The percentage of sessions with RUM & Session Replay pricing tracked
1743
+ */
1744
+ readonly session_replay_sample_rate?: number
1745
+ /**
1746
+ * The percentage of sessions profiled
1747
+ */
1748
+ readonly profiling_sample_rate?: number
1749
+ /**
1750
+ * The percentage of sessions with traced resources
1751
+ */
1752
+ readonly trace_sample_rate?: number
1753
+ [k: string]: unknown
1754
+ }
1755
+ /**
1756
+ * Browser SDK version
1757
+ */
1758
+ readonly browser_sdk_version?: string
1759
+ /**
1760
+ * SDK name (e.g. 'logs', 'rum', 'rum-slim', etc.)
1761
+ */
1762
+ readonly sdk_name?: string
1763
+ [k: string]: unknown
1764
+ }
1765
+ /**
1766
+ * User provided context
1767
+ */
1768
+ context?: {
1769
+ [k: string]: unknown
1770
+ }
1771
+ /**
1772
+ * Stream properties
1773
+ */
1774
+ stream?: {
1775
+ /**
1776
+ * UUID of the stream
1777
+ */
1778
+ readonly id: string
1779
+ [k: string]: unknown
1780
+ }
1781
+ [k: string]: unknown
1782
+ }
1783
+ /**
1784
+ * View Container schema for views that are nested (webviews in mobile)
1785
+ */
1786
+ export interface ViewContainerSchema {
1787
+ /**
1788
+ * View Container properties (view wrapping the current view)
1789
+ */
1790
+ readonly container?: {
1791
+ /**
1792
+ * Attributes of the view's container
1793
+ */
1794
+ readonly view: {
1795
+ /**
1796
+ * ID of the parent view
1797
+ */
1798
+ readonly id: string
1799
+ [k: string]: unknown
1800
+ }
1801
+ /**
1802
+ * Source of the parent view
1803
+ */
1804
+ readonly source:
1805
+ | 'android'
1806
+ | 'ios'
1807
+ | 'browser'
1808
+ | 'flutter'
1809
+ | 'react-native'
1810
+ | 'roku'
1811
+ | 'unity'
1812
+ | 'kotlin-multiplatform'
1813
+ [k: string]: unknown
1814
+ }
1815
+ [k: string]: unknown
1816
+ }
1817
+ /**
1818
+ * Schema of all properties of events that can have parent actions
1819
+ */
1820
+ export interface ActionChildProperties {
1821
+ /**
1822
+ * Action properties
1823
+ */
1824
+ readonly action?: {
1825
+ /**
1826
+ * UUID of the action
1827
+ */
1828
+ readonly id: string | string[]
1829
+ [k: string]: unknown
1830
+ }
1831
+ [k: string]: unknown
1832
+ }
1833
+ /**
1834
+ * RUM Profiler Internal Context schema
1835
+ */
1836
+ export interface ProfilingInternalContextSchema {
1837
+ /**
1838
+ * Used to track the status of the RUM Profiler.
1839
+ *
1840
+ * They are defined in order of when they can happen, from the moment the SDK is initialized to the moment the Profiler is actually running.
1841
+ *
1842
+ * - `starting`: The Profiler is starting (i.e., when the SDK just started). This is the initial status.
1843
+ * - `running`: The Profiler is running.
1844
+ * - `stopped`: The Profiler is stopped.
1845
+ * - `error`: The Profiler encountered an error. See `error_reason` for more details.
1846
+ */
1847
+ readonly status?: 'starting' | 'running' | 'stopped' | 'error'
1848
+ /**
1849
+ * The reason the Profiler encountered an error. This attribute is only present if the status is `error`.
1850
+ *
1851
+ * Possible values:
1852
+ * - `not-supported-by-browser`: The browser does not support the Profiler (i.e., `window.Profiler` is not available).
1853
+ * - `failed-to-lazy-load`: The Profiler script failed to be loaded by the browser (may be a connection issue or the chunk was not found).
1854
+ * - `missing-document-policy-header`: The Profiler failed to start because its missing `Document-Policy: js-profiling` HTTP response header.
1855
+ * - `unexpected-exception`: An exception occurred when starting the Profiler.
1856
+ */
1857
+ readonly error_reason?:
1858
+ | 'not-supported-by-browser'
1859
+ | 'failed-to-lazy-load'
1860
+ | 'missing-document-policy-header'
1861
+ | 'unexpected-exception'
1862
+ [k: string]: unknown
1863
+ }
1864
+ /**
1865
+ * Stream schema for media streaming properties
1866
+ */
1867
+ export interface StreamSchema {
1868
+ /**
1869
+ * Stream properties
1870
+ */
1871
+ readonly stream?: {
1872
+ /**
1873
+ * current bitrate at the time of collection
1874
+ */
1875
+ bitrate?: number
1876
+ /**
1877
+ * How long is the content (VOD only) (in ms)
1878
+ */
1879
+ readonly duration?: number
1880
+ /**
1881
+ * Stream format
1882
+ */
1883
+ readonly format?: string
1884
+ /**
1885
+ * current frames per second at the time of collection
1886
+ */
1887
+ fps?: number
1888
+ /**
1889
+ * Stream resolution
1890
+ */
1891
+ readonly resolution?: string
1892
+ /**
1893
+ * current timestamp at the time of collection
1894
+ */
1895
+ timestamp?: number
1896
+ /**
1897
+ * how much did the media progress since the last context update (in ms)
1898
+ */
1899
+ watch_time?: number
1900
+ /**
1901
+ * Percentage of amount of time watched relative to its total duration
1902
+ */
1903
+ completion_percent?: number
1904
+ [k: string]: unknown
1905
+ }
1906
+ [k: string]: unknown
1907
+ }
1908
+ /**
1909
+ * Schema of properties for a technical performance metric
1910
+ */
1911
+ export interface RumPerfMetric {
1912
+ /**
1913
+ * The minimum value seen for this metric during the view's lifetime.
1914
+ */
1915
+ readonly min: number
1916
+ /**
1917
+ * The maximum value seen for this metric during the view's lifetime.
1918
+ */
1919
+ readonly max: number
1920
+ /**
1921
+ * The average value for this metric during the view's lifetime.
1922
+ */
1923
+ readonly average: number
1924
+ /**
1925
+ * The maximum possible value we could see for this metric, if such a max is relevant and can vary from session to session.
1926
+ */
1927
+ readonly metric_max?: number
1928
+ [k: string]: unknown
1929
+ }
1930
+ /**
1931
+ * Schema for view-level RUM performance data (Web Vitals, etc.)
1932
+ */
1933
+ export interface ViewPerformanceData {
1934
+ /**
1935
+ * Cumulative Layout Shift
1936
+ */
1937
+ readonly cls?: {
1938
+ /**
1939
+ * Total layout shift score that occurred on the view
1940
+ */
1941
+ readonly score: number
1942
+ /**
1943
+ * The time of the largest layout shift contributing to CLS, in ns since view start.
1944
+ */
1945
+ readonly timestamp?: number
1946
+ /**
1947
+ * CSS selector path of the first element (in document order) of the largest layout shift contributing to CLS
1948
+ */
1949
+ readonly target_selector?: string
1950
+ /**
1951
+ * Bounding client rect of the element before the layout shift
1952
+ */
1953
+ previous_rect?: RumRect
1954
+ /**
1955
+ * Bounding client rect of the element after the layout shift
1956
+ */
1957
+ current_rect?: RumRect
1958
+ [k: string]: unknown
1959
+ }
1960
+ /**
1961
+ * First Contentful Paint
1962
+ */
1963
+ readonly fcp?: {
1964
+ /**
1965
+ * The time of the first rendering, in ns since view start.
1966
+ */
1967
+ readonly timestamp: number
1968
+ [k: string]: unknown
1969
+ }
1970
+ /**
1971
+ * First Input Delay
1972
+ */
1973
+ readonly fid?: {
1974
+ /**
1975
+ * Duration in ns of the first input event delay
1976
+ */
1977
+ readonly duration: number
1978
+ /**
1979
+ * Time of the first input event, in ns since view start.
1980
+ */
1981
+ readonly timestamp: number
1982
+ /**
1983
+ * CSS selector path of the first input target element
1984
+ */
1985
+ readonly target_selector?: string
1986
+ [k: string]: unknown
1987
+ }
1988
+ /**
1989
+ * Interaction to Next Paint
1990
+ */
1991
+ readonly inp?: {
1992
+ /**
1993
+ * Longest duration in ns between an interaction and the next paint
1994
+ */
1995
+ readonly duration: number
1996
+ /**
1997
+ * Time of the start of the INP interaction, in ns since view start.
1998
+ */
1999
+ readonly timestamp?: number
2000
+ /**
2001
+ * CSS selector path of the interacted element for the INP interaction
2002
+ */
2003
+ readonly target_selector?: string
2004
+ [k: string]: unknown
2005
+ }
2006
+ /**
2007
+ * Largest Contentful Paint
2008
+ */
2009
+ readonly lcp?: {
2010
+ /**
2011
+ * Time of the largest contentful paint, in ns since view start.
2012
+ */
2013
+ readonly timestamp: number
2014
+ /**
2015
+ * CSS selector path of the largest contentful paint element
2016
+ */
2017
+ readonly target_selector?: string
2018
+ /**
2019
+ * URL of the largest contentful paint element
2020
+ */
2021
+ resource_url?: string
2022
+ [k: string]: unknown
2023
+ }
2024
+ /**
2025
+ * First Build Complete (Flutter)
2026
+ */
2027
+ readonly fbc?: {
2028
+ /**
2029
+ * Time of all completed `build` methods after a route change, in ns since view start.
2030
+ */
2031
+ readonly timestamp: number
2032
+ [k: string]: unknown
2033
+ }
2034
+ [k: string]: unknown
2035
+ }
2036
+ /**
2037
+ * Schema for DOMRect-like rectangles describing an element's bounding client rect
2038
+ */
2039
+ export interface RumRect {
2040
+ /**
2041
+ * The x coordinate of the element's origin
2042
+ */
2043
+ readonly x: number
2044
+ /**
2045
+ * The y coordinate of the element's origin
2046
+ */
2047
+ readonly y: number
2048
+ /**
2049
+ * The element's width
2050
+ */
2051
+ readonly width: number
2052
+ /**
2053
+ * The element's height
2054
+ */
2055
+ readonly height: number
2056
+ [k: string]: unknown
2057
+ }
2058
+ /**
2059
+ * Compact representation of accessibility features for a view
2060
+ */
2061
+ export interface ViewAccessibilityProperties {
2062
+ /**
2063
+ * User’s preferred text scale relative to the default system size.
2064
+ */
2065
+ readonly text_size?: string
2066
+ /**
2067
+ * Indicates whether a screen reader is currently active.
2068
+ */
2069
+ readonly screen_reader_enabled?: boolean
2070
+ /**
2071
+ * Indicates whether the system-wide bold text accessibility setting is enabled.
2072
+ */
2073
+ readonly bold_text_enabled?: boolean
2074
+ /**
2075
+ * Indicates whether the system-wide reduce transparency setting is enabled.
2076
+ */
2077
+ readonly reduce_transparency_enabled?: boolean
2078
+ /**
2079
+ * Indicates whether the system-wide reduce motion setting is enabled.
2080
+ */
2081
+ readonly reduce_motion_enabled?: boolean
2082
+ /**
2083
+ * Indicates whether the system-wide button shapes setting is enabled.
2084
+ */
2085
+ readonly button_shapes_enabled?: boolean
2086
+ /**
2087
+ * Indicates whether the system-wide color inversion setting is enabled.
2088
+ */
2089
+ readonly invert_colors_enabled?: boolean
2090
+ /**
2091
+ * Indicates whether the system-wide increase contrast setting is enabled.
2092
+ */
2093
+ readonly increase_contrast_enabled?: boolean
2094
+ /**
2095
+ * Indicates whether an alternative input method like Switch Control or Switch Access is currently enabled.
2096
+ */
2097
+ readonly assistive_switch_enabled?: boolean
2098
+ /**
2099
+ * Indicates whether the system-wide AssistiveTouch feature is currently enabled.
2100
+ */
2101
+ readonly assistive_touch_enabled?: boolean
2102
+ /**
2103
+ * Indicates whether the video autoplay setting is enabled in the system or application.
2104
+ */
2105
+ readonly video_autoplay_enabled?: boolean
2106
+ /**
2107
+ * Indicates whether closed captioning is enabled for media playback.
2108
+ */
2109
+ readonly closed_captioning_enabled?: boolean
2110
+ /**
2111
+ * Indicates whether the system-wide mono audio setting is enabled.
2112
+ */
2113
+ readonly mono_audio_enabled?: boolean
2114
+ /**
2115
+ * Indicates whether the Shake to Undo feature is enabled.
2116
+ */
2117
+ readonly shake_to_undo_enabled?: boolean
2118
+ /**
2119
+ * Indicates whether the user prefers reduced animations or cross-fade transitions.
2120
+ */
2121
+ readonly reduced_animations_enabled?: boolean
2122
+ /**
2123
+ * Indicates whether the system should differentiate interface elements without relying solely on color.
2124
+ */
2125
+ readonly should_differentiate_without_color?: boolean
2126
+ /**
2127
+ * Indicates whether the device display is currently using grayscale mode.
2128
+ */
2129
+ readonly grayscale_enabled?: boolean
2130
+ /**
2131
+ * Indicates whether the device is currently locked to a single app through Guided Access or Screen Pinning.
2132
+ */
2133
+ readonly single_app_mode_enabled?: boolean
2134
+ /**
2135
+ * Indicates whether on/off switch labels are enabled in the system settings.
2136
+ */
2137
+ readonly on_off_switch_labels_enabled?: boolean
2138
+ /**
2139
+ * Indicates whether the Speak Screen feature is enabled.
2140
+ */
2141
+ readonly speak_screen_enabled?: boolean
2142
+ /**
2143
+ * Indicates whether the text-to-speech selection feature is enabled.
2144
+ */
2145
+ readonly speak_selection_enabled?: boolean
2146
+ /**
2147
+ * Indicates whether the right-to-left support is enabled.
2148
+ */
2149
+ readonly rtl_enabled?: boolean
2150
+ [k: string]: unknown
2151
+ }