@kubesense/kubesense-browser-rum-core 1.8.0 → 2.0.0-beta.1

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 (922) hide show
  1. package/LICENSE +1 -1
  2. package/cjs/boot/preStartRum.d.ts +4 -3
  3. package/cjs/boot/preStartRum.js +229 -204
  4. package/cjs/boot/preStartRum.js.map +1 -1
  5. package/cjs/boot/rumPublicApi.d.ts +190 -51
  6. package/cjs/boot/rumPublicApi.js +267 -164
  7. package/cjs/boot/rumPublicApi.js.map +1 -1
  8. package/cjs/boot/startRum.d.ts +42 -31
  9. package/cjs/boot/startRum.js +157 -150
  10. package/cjs/boot/startRum.js.map +1 -1
  11. package/cjs/browser/cookieObservable.d.ts +1 -5
  12. package/cjs/browser/cookieObservable.js +30 -34
  13. package/cjs/browser/cookieObservable.js.map +1 -1
  14. package/cjs/browser/domMutationObservable.d.ts +3 -3
  15. package/cjs/browser/domMutationObservable.js +29 -53
  16. package/cjs/browser/domMutationObservable.js.map +1 -1
  17. package/cjs/browser/htmlDomUtils.d.ts +5 -0
  18. package/cjs/browser/htmlDomUtils.js +38 -28
  19. package/cjs/browser/htmlDomUtils.js.map +1 -1
  20. package/cjs/browser/locationChangeObservable.d.ts +1 -2
  21. package/cjs/browser/locationChangeObservable.js +44 -45
  22. package/cjs/browser/locationChangeObservable.js.map +1 -1
  23. package/cjs/browser/performanceObservable.d.ts +4 -4
  24. package/cjs/browser/performanceObservable.js +50 -114
  25. package/cjs/browser/performanceObservable.js.map +1 -1
  26. package/cjs/browser/performanceUtils.d.ts +13 -1
  27. package/cjs/browser/performanceUtils.js +63 -37
  28. package/cjs/browser/performanceUtils.js.map +1 -1
  29. package/cjs/browser/scroll.js +17 -28
  30. package/cjs/browser/scroll.js.map +1 -1
  31. package/cjs/browser/viewportObservable.d.ts +2 -3
  32. package/cjs/browser/viewportObservable.js +29 -31
  33. package/cjs/browser/viewportObservable.js.map +1 -1
  34. package/cjs/browser/windowOpenObservable.js +11 -7
  35. package/cjs/browser/windowOpenObservable.js.map +1 -1
  36. package/cjs/domain/action/actionCollection.d.ts +11 -12
  37. package/cjs/domain/action/actionCollection.js +82 -89
  38. package/cjs/domain/action/actionCollection.js.map +1 -1
  39. package/cjs/domain/action/actionNameConstants.js +10 -9
  40. package/cjs/domain/action/actionNameConstants.js.map +1 -1
  41. package/cjs/domain/action/clickChain.js +51 -54
  42. package/cjs/domain/action/clickChain.js.map +1 -1
  43. package/cjs/domain/action/computeFrustration.js +30 -62
  44. package/cjs/domain/action/computeFrustration.js.map +1 -1
  45. package/cjs/domain/action/frustrationIgnore.d.ts +9 -0
  46. package/cjs/domain/action/frustrationIgnore.js +32 -0
  47. package/cjs/domain/action/frustrationIgnore.js.map +1 -0
  48. package/cjs/domain/action/getActionNameFromElement.js +141 -217
  49. package/cjs/domain/action/getActionNameFromElement.js.map +1 -1
  50. package/cjs/domain/action/interactionSelectorCache.d.ts +1 -1
  51. package/cjs/domain/action/interactionSelectorCache.js +17 -18
  52. package/cjs/domain/action/interactionSelectorCache.js.map +1 -1
  53. package/cjs/domain/action/isActionChildEvent.d.ts +2 -0
  54. package/cjs/domain/action/isActionChildEvent.js +8 -0
  55. package/cjs/domain/action/isActionChildEvent.js.map +1 -0
  56. package/cjs/domain/action/listenActionEvents.d.ts +2 -3
  57. package/cjs/domain/action/listenActionEvents.js +51 -55
  58. package/cjs/domain/action/listenActionEvents.js.map +1 -1
  59. package/cjs/domain/action/trackClickActions.d.ts +15 -21
  60. package/cjs/domain/action/trackClickActions.js +188 -226
  61. package/cjs/domain/action/trackClickActions.js.map +1 -1
  62. package/cjs/domain/action/trackManualActions.d.ts +45 -0
  63. package/cjs/domain/action/trackManualActions.js +48 -0
  64. package/cjs/domain/action/trackManualActions.js.map +1 -0
  65. package/cjs/domain/assembly.d.ts +1 -2
  66. package/cjs/domain/assembly.js +80 -95
  67. package/cjs/domain/assembly.js.map +1 -1
  68. package/cjs/domain/configuration/configuration.d.ts +575 -81
  69. package/cjs/domain/configuration/configuration.js +464 -199
  70. package/cjs/domain/configuration/configuration.js.map +1 -1
  71. package/cjs/domain/configuration/index.d.ts +1 -0
  72. package/cjs/domain/configuration/index.js +27 -21
  73. package/cjs/domain/configuration/jsonPathParser.js +125 -139
  74. package/cjs/domain/configuration/jsonPathParser.js.map +1 -1
  75. package/cjs/domain/configuration/remoteConfiguration.d.ts +18 -5
  76. package/cjs/domain/configuration/remoteConfiguration.js +268 -226
  77. package/cjs/domain/configuration/remoteConfiguration.js.map +1 -1
  78. package/cjs/domain/configuration/remoteConfiguration.types.d.ts +49 -0
  79. package/cjs/domain/configuration/remoteConfigurationCache.d.ts +42 -0
  80. package/cjs/domain/configuration/remoteConfigurationCache.js +95 -0
  81. package/cjs/domain/configuration/remoteConfigurationCache.js.map +1 -0
  82. package/cjs/domain/configuration/remoteSdkConfiguration.d.ts +11 -2
  83. package/cjs/domain/configuration/remoteSdkConfiguration.js +185 -117
  84. package/cjs/domain/configuration/remoteSdkConfiguration.js.map +1 -1
  85. package/cjs/domain/configuration/sessionReplayRoutes.d.ts +1 -6
  86. package/cjs/domain/configuration/sessionReplayRoutes.js +20 -63
  87. package/cjs/domain/configuration/sessionReplayRoutes.js.map +1 -1
  88. package/cjs/domain/contexts/ciVisibilityContext.d.ts +2 -4
  89. package/cjs/domain/contexts/ciVisibilityContext.js +36 -32
  90. package/cjs/domain/contexts/ciVisibilityContext.js.map +1 -1
  91. package/cjs/domain/contexts/connectivityContext.d.ts +2 -2
  92. package/cjs/domain/contexts/connectivityContext.js +10 -9
  93. package/cjs/domain/contexts/connectivityContext.js.map +1 -1
  94. package/cjs/domain/contexts/defaultContext.d.ts +3 -3
  95. package/cjs/domain/contexts/defaultContext.js +28 -32
  96. package/cjs/domain/contexts/defaultContext.js.map +1 -1
  97. package/cjs/domain/contexts/displayContext.d.ts +2 -3
  98. package/cjs/domain/contexts/displayContext.js +22 -26
  99. package/cjs/domain/contexts/displayContext.js.map +1 -1
  100. package/cjs/domain/contexts/featureFlagContext.d.ts +2 -2
  101. package/cjs/domain/contexts/featureFlagContext.js +38 -50
  102. package/cjs/domain/contexts/featureFlagContext.js.map +1 -1
  103. package/cjs/domain/contexts/internalContext.d.ts +2 -3
  104. package/cjs/domain/contexts/internalContext.js +26 -22
  105. package/cjs/domain/contexts/internalContext.js.map +1 -1
  106. package/cjs/domain/contexts/pageStateHistory.d.ts +3 -4
  107. package/cjs/domain/contexts/pageStateHistory.js +76 -96
  108. package/cjs/domain/contexts/pageStateHistory.js.map +1 -1
  109. package/cjs/domain/contexts/sessionContext.d.ts +9 -3
  110. package/cjs/domain/contexts/sessionContext.js +31 -45
  111. package/cjs/domain/contexts/sessionContext.js.map +1 -1
  112. package/cjs/domain/contexts/sourceCodeMfeContext.d.ts +10 -0
  113. package/cjs/domain/contexts/sourceCodeMfeContext.js +35 -0
  114. package/cjs/domain/contexts/sourceCodeMfeContext.js.map +1 -0
  115. package/cjs/domain/contexts/syntheticsContext.d.ts +2 -2
  116. package/cjs/domain/contexts/syntheticsContext.js +19 -23
  117. package/cjs/domain/contexts/syntheticsContext.js.map +1 -1
  118. package/cjs/domain/contexts/trackingConsentContext.d.ts +2 -2
  119. package/cjs/domain/contexts/trackingConsentContext.js +10 -12
  120. package/cjs/domain/contexts/trackingConsentContext.js.map +1 -1
  121. package/cjs/domain/contexts/urlContexts.d.ts +4 -3
  122. package/cjs/domain/contexts/urlContexts.js +65 -61
  123. package/cjs/domain/contexts/urlContexts.js.map +1 -1
  124. package/cjs/domain/contexts/userAgentDataContext.d.ts +2 -2
  125. package/cjs/domain/contexts/userAgentDataContext.js +20 -29
  126. package/cjs/domain/contexts/userAgentDataContext.js.map +1 -1
  127. package/cjs/domain/contexts/viewHistory.d.ts +5 -2
  128. package/cjs/domain/contexts/viewHistory.js +41 -45
  129. package/cjs/domain/contexts/viewHistory.js.map +1 -1
  130. package/cjs/domain/discardNegativeDuration.d.ts +1 -1
  131. package/cjs/domain/discardNegativeDuration.js +6 -5
  132. package/cjs/domain/discardNegativeDuration.js.map +1 -1
  133. package/cjs/domain/error/errorCollection.d.ts +3 -3
  134. package/cjs/domain/error/errorCollection.js +67 -68
  135. package/cjs/domain/error/errorCollection.js.map +1 -1
  136. package/cjs/domain/error/trackReportError.d.ts +1 -2
  137. package/cjs/domain/error/trackReportError.js +10 -14
  138. package/cjs/domain/error/trackReportError.js.map +1 -1
  139. package/cjs/domain/event/eventCollection.d.ts +2 -1
  140. package/cjs/domain/event/eventCollection.js +21 -22
  141. package/cjs/domain/event/eventCollection.js.map +1 -1
  142. package/cjs/domain/eventTracker.d.ts +37 -0
  143. package/cjs/domain/eventTracker.js +94 -0
  144. package/cjs/domain/eventTracker.js.map +1 -0
  145. package/cjs/domain/extractRegexMatch.d.ts +5 -0
  146. package/cjs/domain/extractRegexMatch.js +16 -0
  147. package/cjs/domain/extractRegexMatch.js.map +1 -0
  148. package/cjs/domain/getComposedPathSelector.d.ts +22 -0
  149. package/cjs/domain/getComposedPathSelector.js +95 -0
  150. package/cjs/domain/getComposedPathSelector.js.map +1 -0
  151. package/cjs/domain/getSelectorFromElement.d.ts +18 -6
  152. package/cjs/domain/getSelectorFromElement.js +199 -191
  153. package/cjs/domain/getSelectorFromElement.js.map +1 -1
  154. package/cjs/domain/getSessionReplayUrl.d.ts +2 -2
  155. package/cjs/domain/getSessionReplayUrl.js +17 -30
  156. package/cjs/domain/getSessionReplayUrl.js.map +1 -1
  157. package/cjs/domain/hooks.d.ts +26 -17
  158. package/cjs/domain/hooks.js +12 -5
  159. package/cjs/domain/hooks.js.map +1 -1
  160. package/cjs/domain/lifeCycle.d.ts +26 -12
  161. package/cjs/domain/lifeCycle.js +28 -5
  162. package/cjs/domain/lifeCycle.js.map +1 -1
  163. package/cjs/domain/limitModification.d.ts +5 -1
  164. package/cjs/domain/limitModification.js +32 -36
  165. package/cjs/domain/limitModification.js.map +1 -1
  166. package/cjs/domain/longTask/longTaskCollection.d.ts +0 -13
  167. package/cjs/domain/longTask/longTaskCollection.js +75 -87
  168. package/cjs/domain/longTask/longTaskCollection.js.map +1 -1
  169. package/cjs/domain/plugins.d.ts +37 -14
  170. package/cjs/domain/plugins.js +22 -13
  171. package/cjs/domain/plugins.js.map +1 -1
  172. package/cjs/domain/privacy.d.ts +6 -1
  173. package/cjs/domain/privacy.js +143 -286
  174. package/cjs/domain/privacy.js.map +1 -1
  175. package/cjs/domain/privacyConstants.js +43 -34
  176. package/cjs/domain/privacyConstants.js.map +1 -1
  177. package/cjs/domain/requestCollection.d.ts +6 -5
  178. package/cjs/domain/requestCollection.js +82 -105
  179. package/cjs/domain/requestCollection.js.map +1 -1
  180. package/cjs/domain/resource/graphql.d.ts +1 -1
  181. package/cjs/domain/resource/graphql.js +85 -86
  182. package/cjs/domain/resource/graphql.js.map +1 -1
  183. package/cjs/domain/resource/requestRegistry.js +30 -38
  184. package/cjs/domain/resource/requestRegistry.js.map +1 -1
  185. package/cjs/domain/resource/resourceCollection.d.ts +5 -3
  186. package/cjs/domain/resource/resourceCollection.js +241 -175
  187. package/cjs/domain/resource/resourceCollection.js.map +1 -1
  188. package/cjs/domain/resource/resourceUtils.d.ts +13 -13
  189. package/cjs/domain/resource/resourceUtils.js +323 -221
  190. package/cjs/domain/resource/resourceUtils.js.map +1 -1
  191. package/cjs/domain/resource/trackManualResources.d.ts +55 -0
  192. package/cjs/domain/resource/trackManualResources.js +53 -0
  193. package/cjs/domain/resource/trackManualResources.js.map +1 -0
  194. package/cjs/domain/resource/webSocketCollection.d.ts +46 -0
  195. package/cjs/domain/resource/webSocketCollection.js +163 -0
  196. package/cjs/domain/resource/webSocketCollection.js.map +1 -0
  197. package/cjs/domain/session/session.types.d.ts +4 -0
  198. package/cjs/domain/sessionReplayState.d.ts +8 -0
  199. package/cjs/domain/sessionReplayState.js +19 -0
  200. package/cjs/domain/sessionReplayState.js.map +1 -0
  201. package/cjs/domain/startCustomerDataTelemetry.js +39 -43
  202. package/cjs/domain/startCustomerDataTelemetry.js.map +1 -1
  203. package/cjs/domain/tracing/getDocumentTraceId.d.ts +1 -1
  204. package/cjs/domain/tracing/getDocumentTraceId.js +42 -63
  205. package/cjs/domain/tracing/getDocumentTraceId.js.map +1 -1
  206. package/cjs/domain/tracing/identifier.js +13 -46
  207. package/cjs/domain/tracing/identifier.js.map +1 -1
  208. package/cjs/domain/tracing/tracer.d.ts +2 -5
  209. package/cjs/domain/tracing/tracer.js +110 -150
  210. package/cjs/domain/tracing/tracer.js.map +1 -1
  211. package/cjs/domain/trackEventCounts.js +43 -48
  212. package/cjs/domain/trackEventCounts.js.map +1 -1
  213. package/cjs/domain/view/bfCacheSupport.d.ts +1 -2
  214. package/cjs/domain/view/bfCacheSupport.js +10 -11
  215. package/cjs/domain/view/bfCacheSupport.js.map +1 -1
  216. package/cjs/domain/view/trackViewEventCounts.js +14 -13
  217. package/cjs/domain/view/trackViewEventCounts.js.map +1 -1
  218. package/cjs/domain/view/trackViews.d.ts +8 -2
  219. package/cjs/domain/view/trackViews.js +221 -270
  220. package/cjs/domain/view/trackViews.js.map +1 -1
  221. package/cjs/domain/view/viewCollection.d.ts +4 -3
  222. package/cjs/domain/view/viewCollection.js +124 -148
  223. package/cjs/domain/view/viewCollection.js.map +1 -1
  224. package/cjs/domain/view/viewDiff.d.ts +22 -0
  225. package/cjs/domain/view/viewDiff.js +62 -0
  226. package/cjs/domain/view/viewDiff.js.map +1 -0
  227. package/cjs/domain/view/viewMetrics/getClsAttributionImpactedArea.js +20 -22
  228. package/cjs/domain/view/viewMetrics/getClsAttributionImpactedArea.js.map +1 -1
  229. package/cjs/domain/view/viewMetrics/interactionCountPolyfill.d.ts +1 -0
  230. package/cjs/domain/view/viewMetrics/interactionCountPolyfill.js +35 -33
  231. package/cjs/domain/view/viewMetrics/interactionCountPolyfill.js.map +1 -1
  232. package/cjs/domain/view/viewMetrics/trackBfcacheMetrics.d.ts +1 -1
  233. package/cjs/domain/view/viewMetrics/trackBfcacheMetrics.js +14 -13
  234. package/cjs/domain/view/viewMetrics/trackBfcacheMetrics.js.map +1 -1
  235. package/cjs/domain/view/viewMetrics/trackCommonViewMetrics.d.ts +4 -2
  236. package/cjs/domain/view/viewMetrics/trackCommonViewMetrics.js +51 -34
  237. package/cjs/domain/view/viewMetrics/trackCommonViewMetrics.js.map +1 -1
  238. package/cjs/domain/view/viewMetrics/trackCumulativeLayoutShift.d.ts +1 -1
  239. package/cjs/domain/view/viewMetrics/trackCumulativeLayoutShift.js +106 -122
  240. package/cjs/domain/view/viewMetrics/trackCumulativeLayoutShift.js.map +1 -1
  241. package/cjs/domain/view/viewMetrics/trackFirstContentfulPaint.d.ts +2 -3
  242. package/cjs/domain/view/viewMetrics/trackFirstContentfulPaint.js +26 -34
  243. package/cjs/domain/view/viewMetrics/trackFirstContentfulPaint.js.map +1 -1
  244. package/cjs/domain/view/viewMetrics/trackFirstHidden.d.ts +2 -3
  245. package/cjs/domain/view/viewMetrics/trackFirstHidden.js +31 -31
  246. package/cjs/domain/view/viewMetrics/trackFirstHidden.js.map +1 -1
  247. package/cjs/domain/view/viewMetrics/trackInitialViewMetrics.d.ts +1 -3
  248. package/cjs/domain/view/viewMetrics/trackInitialViewMetrics.js +33 -38
  249. package/cjs/domain/view/viewMetrics/trackInitialViewMetrics.js.map +1 -1
  250. package/cjs/domain/view/viewMetrics/trackInteractionToNextPaint.d.ts +10 -1
  251. package/cjs/domain/view/viewMetrics/trackInteractionToNextPaint.js +202 -144
  252. package/cjs/domain/view/viewMetrics/trackInteractionToNextPaint.js.map +1 -1
  253. package/cjs/domain/view/viewMetrics/trackLargestContentfulPaint.d.ts +6 -1
  254. package/cjs/domain/view/viewMetrics/trackLargestContentfulPaint.js +65 -55
  255. package/cjs/domain/view/viewMetrics/trackLargestContentfulPaint.js.map +1 -1
  256. package/cjs/domain/view/viewMetrics/trackLoadingTime.d.ts +2 -1
  257. package/cjs/domain/view/viewMetrics/trackLoadingTime.js +42 -46
  258. package/cjs/domain/view/viewMetrics/trackLoadingTime.js.map +1 -1
  259. package/cjs/domain/view/viewMetrics/trackNavigationTimings.d.ts +2 -3
  260. package/cjs/domain/view/viewMetrics/trackNavigationTimings.js +28 -36
  261. package/cjs/domain/view/viewMetrics/trackNavigationTimings.js.map +1 -1
  262. package/cjs/domain/view/viewMetrics/trackScrollMetrics.d.ts +3 -4
  263. package/cjs/domain/view/viewMetrics/trackScrollMetrics.js +63 -72
  264. package/cjs/domain/view/viewMetrics/trackScrollMetrics.js.map +1 -1
  265. package/cjs/domain/vital/vitalCollection.d.ts +44 -20
  266. package/cjs/domain/vital/vitalCollection.js +81 -109
  267. package/cjs/domain/vital/vitalCollection.js.map +1 -1
  268. package/cjs/domain/waitPageActivityEnd.d.ts +1 -4
  269. package/cjs/domain/waitPageActivityEnd.js +99 -119
  270. package/cjs/domain/waitPageActivityEnd.js.map +1 -1
  271. package/cjs/domainContext.types.d.ts +21 -13
  272. package/cjs/index.d.ts +11 -10
  273. package/cjs/index.js +84 -62
  274. package/cjs/rawRumEvent.types.d.ts +79 -13
  275. package/cjs/rawRumEvent.types.js +40 -27
  276. package/cjs/rawRumEvent.types.js.map +1 -1
  277. package/cjs/rumEvent.types.d.ts +906 -669
  278. package/cjs/transport/formDataTransport.js +43 -41
  279. package/cjs/transport/formDataTransport.js.map +1 -1
  280. package/cjs/transport/startRumBatch.d.ts +27 -3
  281. package/cjs/transport/startRumBatch.js +132 -31
  282. package/cjs/transport/startRumBatch.js.map +1 -1
  283. package/cjs/transport/startRumEventBridge.js +10 -8
  284. package/cjs/transport/startRumEventBridge.js.map +1 -1
  285. package/esm/boot/preStartRum.mjs +233 -0
  286. package/esm/boot/preStartRum.mjs.map +1 -0
  287. package/esm/boot/rumPublicApi.mjs +271 -0
  288. package/esm/boot/rumPublicApi.mjs.map +1 -0
  289. package/esm/boot/startRum.mjs +159 -0
  290. package/esm/boot/startRum.mjs.map +1 -0
  291. package/esm/browser/cookieObservable.mjs +34 -0
  292. package/esm/browser/cookieObservable.mjs.map +1 -0
  293. package/esm/browser/domMutationObservable.mjs +33 -0
  294. package/esm/browser/domMutationObservable.mjs.map +1 -0
  295. package/esm/browser/htmlDomUtils.mjs +48 -0
  296. package/esm/browser/htmlDomUtils.mjs.map +1 -0
  297. package/esm/browser/locationChangeObservable.mjs +50 -0
  298. package/esm/browser/locationChangeObservable.mjs.map +1 -0
  299. package/esm/browser/performanceObservable.mjs +60 -0
  300. package/esm/browser/performanceObservable.mjs.map +1 -0
  301. package/esm/browser/performanceUtils.mjs +64 -0
  302. package/esm/browser/performanceUtils.mjs.map +1 -0
  303. package/esm/browser/scroll.mjs +21 -0
  304. package/esm/browser/scroll.mjs.map +1 -0
  305. package/esm/browser/viewportObservable.mjs +33 -0
  306. package/esm/browser/viewportObservable.mjs.map +1 -0
  307. package/esm/browser/windowOpenObservable.mjs +14 -0
  308. package/esm/browser/windowOpenObservable.mjs.map +1 -0
  309. package/esm/domain/action/actionCollection.mjs +89 -0
  310. package/esm/domain/action/actionCollection.mjs.map +1 -0
  311. package/esm/domain/action/actionNameConstants.mjs +11 -0
  312. package/esm/domain/action/actionNameConstants.mjs.map +1 -0
  313. package/esm/domain/action/clickChain.mjs +57 -0
  314. package/esm/domain/action/clickChain.mjs.map +1 -0
  315. package/esm/domain/action/computeFrustration.mjs +36 -0
  316. package/esm/domain/action/computeFrustration.mjs.map +1 -0
  317. package/esm/domain/action/frustrationIgnore.mjs +31 -0
  318. package/esm/domain/action/frustrationIgnore.mjs.map +1 -0
  319. package/esm/domain/action/getActionNameFromElement.mjs +163 -0
  320. package/esm/domain/action/getActionNameFromElement.mjs.map +1 -0
  321. package/esm/domain/action/interactionSelectorCache.mjs +19 -0
  322. package/esm/domain/action/interactionSelectorCache.mjs.map +1 -0
  323. package/esm/domain/action/isActionChildEvent.mjs +8 -0
  324. package/esm/domain/action/isActionChildEvent.mjs.map +1 -0
  325. package/esm/domain/action/listenActionEvents.mjs +57 -0
  326. package/esm/domain/action/listenActionEvents.mjs.map +1 -0
  327. package/esm/domain/action/trackClickActions.mjs +198 -0
  328. package/esm/domain/action/trackClickActions.mjs.map +1 -0
  329. package/esm/domain/action/trackManualActions.mjs +48 -0
  330. package/esm/domain/action/trackManualActions.mjs.map +1 -0
  331. package/esm/domain/assembly.mjs +87 -0
  332. package/esm/domain/assembly.mjs.map +1 -0
  333. package/esm/domain/configuration/configuration.mjs +474 -0
  334. package/esm/domain/configuration/configuration.mjs.map +1 -0
  335. package/esm/domain/configuration/index.mjs +6 -0
  336. package/esm/domain/configuration/jsonPathParser.mjs +145 -0
  337. package/esm/domain/configuration/jsonPathParser.mjs.map +1 -0
  338. package/esm/domain/configuration/remoteConfiguration.mjs +279 -0
  339. package/esm/domain/configuration/remoteConfiguration.mjs.map +1 -0
  340. package/esm/domain/configuration/remoteConfigurationCache.mjs +92 -0
  341. package/esm/domain/configuration/remoteConfigurationCache.mjs.map +1 -0
  342. package/esm/domain/configuration/remoteSdkConfiguration.mjs +208 -0
  343. package/esm/domain/configuration/remoteSdkConfiguration.mjs.map +1 -0
  344. package/esm/domain/configuration/sessionReplayRoutes.mjs +26 -0
  345. package/esm/domain/configuration/sessionReplayRoutes.mjs.map +1 -0
  346. package/esm/domain/contexts/ciVisibilityContext.mjs +37 -0
  347. package/esm/domain/contexts/ciVisibilityContext.mjs.map +1 -0
  348. package/esm/domain/contexts/connectivityContext.mjs +12 -0
  349. package/esm/domain/contexts/connectivityContext.mjs.map +1 -0
  350. package/esm/domain/contexts/defaultContext.mjs +30 -0
  351. package/esm/domain/contexts/defaultContext.mjs.map +1 -0
  352. package/esm/domain/contexts/displayContext.mjs +24 -0
  353. package/esm/domain/contexts/displayContext.mjs.map +1 -0
  354. package/esm/domain/contexts/featureFlagContext.mjs +40 -0
  355. package/esm/domain/contexts/featureFlagContext.mjs.map +1 -0
  356. package/esm/domain/contexts/internalContext.mjs +30 -0
  357. package/esm/domain/contexts/internalContext.mjs.map +1 -0
  358. package/esm/domain/contexts/pageStateHistory.mjs +82 -0
  359. package/esm/domain/contexts/pageStateHistory.mjs.map +1 -0
  360. package/esm/domain/contexts/sessionContext.mjs +33 -0
  361. package/esm/domain/contexts/sessionContext.mjs.map +1 -0
  362. package/esm/domain/contexts/sourceCodeMfeContext.mjs +35 -0
  363. package/esm/domain/contexts/sourceCodeMfeContext.mjs.map +1 -0
  364. package/esm/domain/contexts/syntheticsContext.mjs +21 -0
  365. package/esm/domain/contexts/syntheticsContext.mjs.map +1 -0
  366. package/esm/domain/contexts/trackingConsentContext.mjs +12 -0
  367. package/esm/domain/contexts/trackingConsentContext.mjs.map +1 -0
  368. package/esm/domain/contexts/urlContexts.mjs +67 -0
  369. package/esm/domain/contexts/urlContexts.mjs.map +1 -0
  370. package/esm/domain/contexts/userAgentDataContext.mjs +22 -0
  371. package/esm/domain/contexts/userAgentDataContext.mjs.map +1 -0
  372. package/esm/domain/contexts/viewHistory.mjs +43 -0
  373. package/esm/domain/contexts/viewHistory.mjs.map +1 -0
  374. package/esm/domain/discardNegativeDuration.mjs +9 -0
  375. package/esm/domain/discardNegativeDuration.mjs.map +1 -0
  376. package/esm/domain/error/errorCollection.mjs +72 -0
  377. package/esm/domain/error/errorCollection.mjs.map +1 -0
  378. package/esm/domain/error/trackReportError.mjs +12 -0
  379. package/esm/domain/error/trackReportError.mjs.map +1 -0
  380. package/esm/domain/event/eventCollection.mjs +26 -0
  381. package/esm/domain/event/eventCollection.mjs.map +1 -0
  382. package/esm/domain/eventTracker.mjs +93 -0
  383. package/esm/domain/eventTracker.mjs.map +1 -0
  384. package/esm/domain/extractRegexMatch.mjs +16 -0
  385. package/esm/domain/extractRegexMatch.mjs.map +1 -0
  386. package/esm/domain/getComposedPathSelector.mjs +93 -0
  387. package/esm/domain/getComposedPathSelector.mjs.map +1 -0
  388. package/esm/domain/getSelectorFromElement.mjs +218 -0
  389. package/esm/domain/getSelectorFromElement.mjs.map +1 -0
  390. package/esm/domain/getSessionReplayUrl.mjs +20 -0
  391. package/esm/domain/getSessionReplayUrl.mjs.map +1 -0
  392. package/esm/domain/hooks.mjs +13 -0
  393. package/esm/domain/hooks.mjs.map +1 -0
  394. package/esm/domain/lifeCycle.mjs +28 -0
  395. package/esm/domain/lifeCycle.mjs.map +1 -0
  396. package/esm/domain/limitModification.mjs +42 -0
  397. package/esm/domain/limitModification.mjs.map +1 -0
  398. package/esm/domain/longTask/longTaskCollection.mjs +79 -0
  399. package/esm/domain/longTask/longTaskCollection.mjs.map +1 -0
  400. package/esm/domain/plugins.mjs +23 -0
  401. package/esm/domain/plugins.mjs.map +1 -0
  402. package/esm/domain/privacy.mjs +161 -0
  403. package/esm/domain/privacy.mjs.map +1 -0
  404. package/esm/domain/privacyConstants.mjs +36 -0
  405. package/esm/domain/privacyConstants.mjs.map +1 -0
  406. package/esm/domain/requestCollection.mjs +86 -0
  407. package/esm/domain/requestCollection.mjs.map +1 -0
  408. package/esm/domain/resource/graphql.mjs +93 -0
  409. package/esm/domain/resource/graphql.mjs.map +1 -0
  410. package/esm/domain/resource/requestRegistry.mjs +32 -0
  411. package/esm/domain/resource/requestRegistry.mjs.map +1 -0
  412. package/esm/domain/resource/resourceCollection.mjs +256 -0
  413. package/esm/domain/resource/resourceCollection.mjs.map +1 -0
  414. package/esm/domain/resource/resourceUtils.mjs +349 -0
  415. package/esm/domain/resource/resourceUtils.mjs.map +1 -0
  416. package/esm/domain/resource/trackManualResources.mjs +53 -0
  417. package/esm/domain/resource/trackManualResources.mjs.map +1 -0
  418. package/esm/domain/resource/webSocketCollection.mjs +160 -0
  419. package/esm/domain/resource/webSocketCollection.mjs.map +1 -0
  420. package/esm/domain/sessionReplayState.mjs +18 -0
  421. package/esm/domain/sessionReplayState.mjs.map +1 -0
  422. package/esm/domain/startCustomerDataTelemetry.mjs +51 -0
  423. package/esm/domain/startCustomerDataTelemetry.mjs.map +1 -0
  424. package/esm/domain/tracing/getDocumentTraceId.mjs +50 -0
  425. package/esm/domain/tracing/getDocumentTraceId.mjs.map +1 -0
  426. package/esm/domain/tracing/identifier.mjs +20 -0
  427. package/esm/domain/tracing/identifier.mjs.map +1 -0
  428. package/esm/domain/tracing/tracer.mjs +120 -0
  429. package/esm/domain/tracing/tracer.mjs.map +1 -0
  430. package/esm/domain/trackEventCounts.mjs +45 -0
  431. package/esm/domain/trackEventCounts.mjs.map +1 -0
  432. package/esm/domain/view/bfCacheSupport.mjs +12 -0
  433. package/esm/domain/view/bfCacheSupport.mjs.map +1 -0
  434. package/esm/domain/view/trackViewEventCounts.mjs +17 -0
  435. package/esm/domain/view/trackViewEventCounts.mjs.map +1 -0
  436. package/esm/domain/view/trackViews.mjs +230 -0
  437. package/esm/domain/view/trackViews.mjs.map +1 -0
  438. package/esm/domain/view/viewCollection.mjs +129 -0
  439. package/esm/domain/view/viewCollection.mjs.map +1 -0
  440. package/esm/domain/view/viewDiff.mjs +61 -0
  441. package/esm/domain/view/viewDiff.mjs.map +1 -0
  442. package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.mjs +30 -0
  443. package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.mjs.map +1 -0
  444. package/esm/domain/view/viewMetrics/interactionCountPolyfill.mjs +45 -0
  445. package/esm/domain/view/viewMetrics/interactionCountPolyfill.mjs.map +1 -0
  446. package/esm/domain/view/viewMetrics/trackBfcacheMetrics.mjs +18 -0
  447. package/esm/domain/view/viewMetrics/trackBfcacheMetrics.mjs.map +1 -0
  448. package/esm/domain/view/viewMetrics/trackCommonViewMetrics.mjs +54 -0
  449. package/esm/domain/view/viewMetrics/trackCommonViewMetrics.mjs.map +1 -0
  450. package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.mjs +117 -0
  451. package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.mjs.map +1 -0
  452. package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.mjs +29 -0
  453. package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.mjs.map +1 -0
  454. package/esm/domain/view/viewMetrics/trackFirstHidden.mjs +33 -0
  455. package/esm/domain/view/viewMetrics/trackFirstHidden.mjs.map +1 -0
  456. package/esm/domain/view/viewMetrics/trackInitialViewMetrics.mjs +36 -0
  457. package/esm/domain/view/viewMetrics/trackInitialViewMetrics.mjs.map +1 -0
  458. package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.mjs +210 -0
  459. package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.mjs.map +1 -0
  460. package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.mjs +70 -0
  461. package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.mjs.map +1 -0
  462. package/esm/domain/view/viewMetrics/trackLoadingTime.mjs +46 -0
  463. package/esm/domain/view/viewMetrics/trackLoadingTime.mjs.map +1 -0
  464. package/esm/domain/view/viewMetrics/trackNavigationTimings.mjs +35 -0
  465. package/esm/domain/view/viewMetrics/trackNavigationTimings.mjs.map +1 -0
  466. package/esm/domain/view/viewMetrics/trackScrollMetrics.mjs +66 -0
  467. package/esm/domain/view/viewMetrics/trackScrollMetrics.mjs.map +1 -0
  468. package/esm/domain/vital/vitalCollection.mjs +85 -0
  469. package/esm/domain/vital/vitalCollection.mjs.map +1 -0
  470. package/esm/domain/waitPageActivityEnd.mjs +107 -0
  471. package/esm/domain/waitPageActivityEnd.mjs.map +1 -0
  472. package/esm/index.mjs +23 -0
  473. package/esm/rawRumEvent.types.mjs +42 -0
  474. package/esm/rawRumEvent.types.mjs.map +1 -0
  475. package/esm/transport/formDataTransport.mjs +48 -0
  476. package/esm/transport/formDataTransport.mjs.map +1 -0
  477. package/esm/transport/startRumBatch.mjs +132 -0
  478. package/esm/transport/startRumBatch.mjs.map +1 -0
  479. package/esm/transport/startRumEventBridge.mjs +13 -0
  480. package/esm/transport/startRumEventBridge.mjs.map +1 -0
  481. package/package.json +19 -11
  482. package/src/boot/preStartRum.ts +216 -88
  483. package/src/boot/rumPublicApi.ts +358 -119
  484. package/src/boot/startRum.ts +88 -84
  485. package/src/browser/cookieObservable.ts +19 -28
  486. package/src/browser/domMutationObservable.ts +7 -12
  487. package/src/browser/htmlDomUtils.ts +15 -0
  488. package/src/browser/locationChangeObservable.ts +23 -12
  489. package/src/browser/performanceObservable.ts +23 -73
  490. package/src/browser/performanceUtils.ts +52 -4
  491. package/src/browser/viewportObservable.ts +4 -6
  492. package/src/domain/action/actionCollection.ts +94 -87
  493. package/src/domain/action/clickChain.ts +11 -10
  494. package/src/domain/action/computeFrustration.ts +19 -5
  495. package/src/domain/action/frustrationIgnore.ts +54 -0
  496. package/src/domain/action/getActionNameFromElement.ts +27 -61
  497. package/src/domain/action/interactionSelectorCache.ts +2 -2
  498. package/src/domain/action/isActionChildEvent.ts +6 -0
  499. package/src/domain/action/listenActionEvents.ts +2 -11
  500. package/src/domain/action/trackClickActions.ts +92 -82
  501. package/src/domain/action/trackManualActions.ts +104 -0
  502. package/src/domain/assembly.ts +57 -70
  503. package/src/domain/configuration/configuration.ts +587 -208
  504. package/src/domain/configuration/index.ts +1 -0
  505. package/src/domain/configuration/remoteConfiguration.ts +152 -29
  506. package/src/domain/configuration/remoteConfiguration.types.ts +51 -1
  507. package/src/domain/configuration/remoteConfigurationCache.ts +153 -0
  508. package/src/domain/configuration/remoteSdkConfiguration.ts +131 -13
  509. package/src/domain/configuration/sessionReplayRoutes.ts +2 -47
  510. package/src/domain/contexts/ciVisibilityContext.ts +23 -12
  511. package/src/domain/contexts/connectivityContext.ts +7 -10
  512. package/src/domain/contexts/defaultContext.ts +11 -14
  513. package/src/domain/contexts/displayContext.ts +8 -12
  514. package/src/domain/contexts/featureFlagContext.ts +5 -4
  515. package/src/domain/contexts/internalContext.ts +3 -3
  516. package/src/domain/contexts/pageStateHistory.ts +20 -31
  517. package/src/domain/contexts/sessionContext.ts +16 -22
  518. package/src/domain/contexts/sourceCodeMfeContext.ts +53 -0
  519. package/src/domain/contexts/syntheticsContext.ts +7 -17
  520. package/src/domain/contexts/trackingConsentContext.ts +7 -4
  521. package/src/domain/contexts/urlContexts.ts +13 -9
  522. package/src/domain/contexts/userAgentDataContext.ts +12 -13
  523. package/src/domain/contexts/viewHistory.ts +4 -3
  524. package/src/domain/discardNegativeDuration.ts +1 -1
  525. package/src/domain/error/errorCollection.ts +12 -22
  526. package/src/domain/error/trackReportError.ts +4 -7
  527. package/src/domain/event/eventCollection.ts +4 -2
  528. package/src/domain/eventTracker.ts +169 -0
  529. package/src/domain/extractRegexMatch.ts +15 -0
  530. package/src/domain/getComposedPathSelector.ts +130 -0
  531. package/src/domain/getSelectorFromElement.ts +125 -31
  532. package/src/domain/getSessionReplayUrl.ts +4 -13
  533. package/src/domain/hooks.ts +34 -21
  534. package/src/domain/lifeCycle.ts +21 -8
  535. package/src/domain/limitModification.ts +20 -4
  536. package/src/domain/longTask/longTaskCollection.ts +18 -47
  537. package/src/domain/plugins.ts +54 -25
  538. package/src/domain/privacy.ts +16 -24
  539. package/src/domain/requestCollection.ts +108 -97
  540. package/src/domain/resource/graphql.ts +71 -25
  541. package/src/domain/resource/requestRegistry.ts +1 -3
  542. package/src/domain/resource/resourceCollection.ts +319 -137
  543. package/src/domain/resource/resourceUtils.ts +24 -26
  544. package/src/domain/resource/trackManualResources.ts +121 -0
  545. package/src/domain/resource/webSocketCollection.ts +281 -0
  546. package/src/domain/session/session.types.ts +5 -0
  547. package/src/domain/sessionReplayState.ts +36 -0
  548. package/src/domain/startCustomerDataTelemetry.ts +2 -2
  549. package/src/domain/tracing/getDocumentTraceId.ts +5 -4
  550. package/src/domain/tracing/identifier.ts +6 -37
  551. package/src/domain/tracing/tracer.ts +22 -21
  552. package/src/domain/tracing/tracer.types.ts +3 -3
  553. package/src/domain/view/bfCacheSupport.ts +1 -6
  554. package/src/domain/view/trackViews.ts +40 -37
  555. package/src/domain/view/viewCollection.ts +29 -23
  556. package/src/domain/view/viewDiff.ts +115 -0
  557. package/src/domain/view/viewMetrics/interactionCountPolyfill.ts +13 -2
  558. package/src/domain/view/viewMetrics/trackBfcacheMetrics.ts +1 -1
  559. package/src/domain/view/viewMetrics/trackCommonViewMetrics.ts +27 -6
  560. package/src/domain/view/viewMetrics/trackCumulativeLayoutShift.ts +5 -3
  561. package/src/domain/view/viewMetrics/trackFirstContentfulPaint.ts +4 -9
  562. package/src/domain/view/viewMetrics/trackFirstHidden.ts +2 -8
  563. package/src/domain/view/viewMetrics/trackInitialViewMetrics.ts +4 -13
  564. package/src/domain/view/viewMetrics/trackInteractionToNextPaint.ts +180 -35
  565. package/src/domain/view/viewMetrics/trackLargestContentfulPaint.ts +47 -6
  566. package/src/domain/view/viewMetrics/trackLoadingTime.ts +4 -3
  567. package/src/domain/view/viewMetrics/trackNavigationTimings.ts +10 -18
  568. package/src/domain/view/viewMetrics/trackScrollMetrics.ts +23 -37
  569. package/src/domain/vital/vitalCollection.ts +83 -102
  570. package/src/domain/waitPageActivityEnd.ts +7 -11
  571. package/src/domainContext.types.ts +23 -15
  572. package/src/index.ts +17 -11
  573. package/src/rawRumEvent.types.ts +80 -26
  574. package/src/rumEvent.types.ts +730 -505
  575. package/src/transport/formDataTransport.ts +16 -6
  576. package/src/transport/startRumBatch.ts +181 -24
  577. package/cjs/browser/firstInputPolyfill.d.ts +0 -8
  578. package/cjs/browser/firstInputPolyfill.js +0 -68
  579. package/cjs/browser/firstInputPolyfill.js.map +0 -1
  580. package/cjs/domain/configuration/index.js.map +0 -1
  581. package/cjs/domain/configuration/remoteConfiguration.types.js +0 -7
  582. package/cjs/domain/configuration/remoteConfiguration.types.js.map +0 -1
  583. package/cjs/domain/error/trackConsoleError.d.ts +0 -4
  584. package/cjs/domain/error/trackConsoleError.js +0 -13
  585. package/cjs/domain/error/trackConsoleError.js.map +0 -1
  586. package/cjs/domain/resource/matchRequestResourceEntry.d.ts +0 -16
  587. package/cjs/domain/resource/matchRequestResourceEntry.js +0 -49
  588. package/cjs/domain/resource/matchRequestResourceEntry.js.map +0 -1
  589. package/cjs/domain/resource/retrieveInitialDocumentResourceTiming.d.ts +0 -4
  590. package/cjs/domain/resource/retrieveInitialDocumentResourceTiming.js +0 -24
  591. package/cjs/domain/resource/retrieveInitialDocumentResourceTiming.js.map +0 -1
  592. package/cjs/domain/rumSessionManager.d.ts +0 -36
  593. package/cjs/domain/rumSessionManager.js +0 -77
  594. package/cjs/domain/rumSessionManager.js.map +0 -1
  595. package/cjs/domain/sampler/sampler.d.ts +0 -10
  596. package/cjs/domain/sampler/sampler.js +0 -63
  597. package/cjs/domain/sampler/sampler.js.map +0 -1
  598. package/cjs/domain/tracing/sampler.d.ts +0 -10
  599. package/cjs/domain/tracing/sampler.js +0 -69
  600. package/cjs/domain/tracing/sampler.js.map +0 -1
  601. package/cjs/domain/tracing/tracer.types.js +0 -3
  602. package/cjs/domain/tracing/tracer.types.js.map +0 -1
  603. package/cjs/domain/view/viewMetrics/startInitialViewMetricsTelemetry.d.ts +0 -6
  604. package/cjs/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js +0 -44
  605. package/cjs/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js.map +0 -1
  606. package/cjs/domain/view/viewMetrics/trackFirstInput.d.ts +0 -19
  607. package/cjs/domain/view/viewMetrics/trackFirstInput.js +0 -43
  608. package/cjs/domain/view/viewMetrics/trackFirstInput.js.map +0 -1
  609. package/cjs/domainContext.types.js +0 -6
  610. package/cjs/domainContext.types.js.map +0 -1
  611. package/cjs/index.js.map +0 -1
  612. package/cjs/rumEvent.types.js +0 -7
  613. package/cjs/rumEvent.types.js.map +0 -1
  614. package/esm/boot/preStartRum.d.ts +0 -7
  615. package/esm/boot/preStartRum.js +0 -205
  616. package/esm/boot/preStartRum.js.map +0 -1
  617. package/esm/boot/rumPublicApi.d.ts +0 -409
  618. package/esm/boot/rumPublicApi.js +0 -165
  619. package/esm/boot/rumPublicApi.js.map +0 -1
  620. package/esm/boot/startRum.d.ts +0 -109
  621. package/esm/boot/startRum.js +0 -149
  622. package/esm/boot/startRum.js.map +0 -1
  623. package/esm/browser/cookieObservable.d.ts +0 -8
  624. package/esm/browser/cookieObservable.js +0 -35
  625. package/esm/browser/cookieObservable.js.map +0 -1
  626. package/esm/browser/domMutationObservable.d.ts +0 -27
  627. package/esm/browser/domMutationObservable.js +0 -54
  628. package/esm/browser/domMutationObservable.js.map +0 -1
  629. package/esm/browser/firstInputPolyfill.d.ts +0 -8
  630. package/esm/browser/firstInputPolyfill.js +0 -65
  631. package/esm/browser/firstInputPolyfill.js.map +0 -1
  632. package/esm/browser/htmlDomUtils.d.ts +0 -13
  633. package/esm/browser/htmlDomUtils.js +0 -36
  634. package/esm/browser/htmlDomUtils.js.map +0 -1
  635. package/esm/browser/locationChangeObservable.d.ts +0 -7
  636. package/esm/browser/locationChangeObservable.js +0 -48
  637. package/esm/browser/locationChangeObservable.js.map +0 -1
  638. package/esm/browser/performanceObservable.d.ts +0 -174
  639. package/esm/browser/performanceObservable.js +0 -121
  640. package/esm/browser/performanceObservable.js.map +0 -1
  641. package/esm/browser/performanceUtils.d.ts +0 -7
  642. package/esm/browser/performanceUtils.js +0 -38
  643. package/esm/browser/performanceUtils.js.map +0 -1
  644. package/esm/browser/scroll.d.ts +0 -2
  645. package/esm/browser/scroll.js +0 -29
  646. package/esm/browser/scroll.js.map +0 -1
  647. package/esm/browser/viewportObservable.d.ts +0 -10
  648. package/esm/browser/viewportObservable.js +0 -32
  649. package/esm/browser/viewportObservable.js.map +0 -1
  650. package/esm/browser/windowOpenObservable.d.ts +0 -5
  651. package/esm/browser/windowOpenObservable.js +0 -7
  652. package/esm/browser/windowOpenObservable.js.map +0 -1
  653. package/esm/domain/action/actionCollection.d.ts +0 -21
  654. package/esm/domain/action/actionCollection.js +0 -93
  655. package/esm/domain/action/actionCollection.js.map +0 -1
  656. package/esm/domain/action/actionNameConstants.d.ts +0 -18
  657. package/esm/domain/action/actionNameConstants.js +0 -8
  658. package/esm/domain/action/actionNameConstants.js.map +0 -1
  659. package/esm/domain/action/clickChain.d.ts +0 -8
  660. package/esm/domain/action/clickChain.js +0 -57
  661. package/esm/domain/action/clickChain.js.map +0 -1
  662. package/esm/domain/action/computeFrustration.d.ts +0 -6
  663. package/esm/domain/action/computeFrustration.js +0 -65
  664. package/esm/domain/action/computeFrustration.js.map +0 -1
  665. package/esm/domain/action/getActionNameFromElement.d.ts +0 -4
  666. package/esm/domain/action/getActionNameFromElement.js +0 -236
  667. package/esm/domain/action/getActionNameFromElement.js.map +0 -1
  668. package/esm/domain/action/interactionSelectorCache.d.ts +0 -5
  669. package/esm/domain/action/interactionSelectorCache.js +0 -18
  670. package/esm/domain/action/interactionSelectorCache.js.map +0 -1
  671. package/esm/domain/action/listenActionEvents.d.ts +0 -19
  672. package/esm/domain/action/listenActionEvents.js +0 -58
  673. package/esm/domain/action/listenActionEvents.js.map +0 -1
  674. package/esm/domain/action/trackClickActions.d.ts +0 -81
  675. package/esm/domain/action/trackClickActions.js +0 -232
  676. package/esm/domain/action/trackClickActions.js.map +0 -1
  677. package/esm/domain/assembly.d.ts +0 -5
  678. package/esm/domain/assembly.js +0 -99
  679. package/esm/domain/assembly.js.map +0 -1
  680. package/esm/domain/configuration/configuration.d.ts +0 -358
  681. package/esm/domain/configuration/configuration.js +0 -209
  682. package/esm/domain/configuration/configuration.js.map +0 -1
  683. package/esm/domain/configuration/index.d.ts +0 -4
  684. package/esm/domain/configuration/index.js +0 -5
  685. package/esm/domain/configuration/index.js.map +0 -1
  686. package/esm/domain/configuration/jsonPathParser.d.ts +0 -28
  687. package/esm/domain/configuration/jsonPathParser.js +0 -156
  688. package/esm/domain/configuration/jsonPathParser.js.map +0 -1
  689. package/esm/domain/configuration/remoteConfiguration.d.ts +0 -39
  690. package/esm/domain/configuration/remoteConfiguration.js +0 -236
  691. package/esm/domain/configuration/remoteConfiguration.js.map +0 -1
  692. package/esm/domain/configuration/remoteConfiguration.types.d.ts +0 -138
  693. package/esm/domain/configuration/remoteConfiguration.types.js +0 -6
  694. package/esm/domain/configuration/remoteConfiguration.types.js.map +0 -1
  695. package/esm/domain/configuration/remoteSdkConfiguration.d.ts +0 -18
  696. package/esm/domain/configuration/remoteSdkConfiguration.js +0 -137
  697. package/esm/domain/configuration/remoteSdkConfiguration.js.map +0 -1
  698. package/esm/domain/configuration/sessionReplayRoutes.d.ts +0 -35
  699. package/esm/domain/configuration/sessionReplayRoutes.js +0 -65
  700. package/esm/domain/configuration/sessionReplayRoutes.js.map +0 -1
  701. package/esm/domain/contexts/ciVisibilityContext.d.ts +0 -12
  702. package/esm/domain/contexts/ciVisibilityContext.js +0 -30
  703. package/esm/domain/contexts/ciVisibilityContext.js.map +0 -1
  704. package/esm/domain/contexts/connectivityContext.d.ts +0 -2
  705. package/esm/domain/contexts/connectivityContext.js +0 -8
  706. package/esm/domain/contexts/connectivityContext.js.map +0 -1
  707. package/esm/domain/contexts/defaultContext.d.ts +0 -4
  708. package/esm/domain/contexts/defaultContext.js +0 -31
  709. package/esm/domain/contexts/defaultContext.js.map +0 -1
  710. package/esm/domain/contexts/displayContext.d.ts +0 -6
  711. package/esm/domain/contexts/displayContext.js +0 -25
  712. package/esm/domain/contexts/displayContext.js.map +0 -1
  713. package/esm/domain/contexts/featureFlagContext.d.ts +0 -19
  714. package/esm/domain/contexts/featureFlagContext.js +0 -49
  715. package/esm/domain/contexts/featureFlagContext.js.map +0 -1
  716. package/esm/domain/contexts/internalContext.d.ts +0 -12
  717. package/esm/domain/contexts/internalContext.js +0 -23
  718. package/esm/domain/contexts/internalContext.js.map +0 -1
  719. package/esm/domain/contexts/pageStateHistory.d.ts +0 -23
  720. package/esm/domain/contexts/pageStateHistory.js +0 -100
  721. package/esm/domain/contexts/pageStateHistory.js.map +0 -1
  722. package/esm/domain/contexts/sessionContext.d.ts +0 -5
  723. package/esm/domain/contexts/sessionContext.js +0 -44
  724. package/esm/domain/contexts/sessionContext.js.map +0 -1
  725. package/esm/domain/contexts/syntheticsContext.d.ts +0 -2
  726. package/esm/domain/contexts/syntheticsContext.js +0 -22
  727. package/esm/domain/contexts/syntheticsContext.js.map +0 -1
  728. package/esm/domain/contexts/trackingConsentContext.d.ts +0 -3
  729. package/esm/domain/contexts/trackingConsentContext.js +0 -11
  730. package/esm/domain/contexts/trackingConsentContext.js.map +0 -1
  731. package/esm/domain/contexts/urlContexts.d.ts +0 -22
  732. package/esm/domain/contexts/urlContexts.js +0 -60
  733. package/esm/domain/contexts/urlContexts.js.map +0 -1
  734. package/esm/domain/contexts/userAgentDataContext.d.ts +0 -2
  735. package/esm/domain/contexts/userAgentDataContext.js +0 -28
  736. package/esm/domain/contexts/userAgentDataContext.js.map +0 -1
  737. package/esm/domain/contexts/viewHistory.d.ts +0 -17
  738. package/esm/domain/contexts/viewHistory.js +0 -44
  739. package/esm/domain/contexts/viewHistory.js.map +0 -1
  740. package/esm/domain/discardNegativeDuration.d.ts +0 -2
  741. package/esm/domain/discardNegativeDuration.js +0 -5
  742. package/esm/domain/discardNegativeDuration.js.map +0 -1
  743. package/esm/domain/error/errorCollection.d.ts +0 -17
  744. package/esm/domain/error/errorCollection.js +0 -70
  745. package/esm/domain/error/errorCollection.js.map +0 -1
  746. package/esm/domain/error/trackConsoleError.d.ts +0 -4
  747. package/esm/domain/error/trackConsoleError.js +0 -10
  748. package/esm/domain/error/trackConsoleError.js.map +0 -1
  749. package/esm/domain/error/trackReportError.d.ts +0 -5
  750. package/esm/domain/error/trackReportError.js +0 -13
  751. package/esm/domain/error/trackReportError.js.map +0 -1
  752. package/esm/domain/event/eventCollection.d.ts +0 -10
  753. package/esm/domain/event/eventCollection.js +0 -24
  754. package/esm/domain/event/eventCollection.js.map +0 -1
  755. package/esm/domain/getSelectorFromElement.d.ts +0 -64
  756. package/esm/domain/getSelectorFromElement.js +0 -213
  757. package/esm/domain/getSelectorFromElement.js.map +0 -1
  758. package/esm/domain/getSessionReplayUrl.d.ts +0 -9
  759. package/esm/domain/getSessionReplayUrl.js +0 -30
  760. package/esm/domain/getSessionReplayUrl.js.map +0 -1
  761. package/esm/domain/hooks.d.ts +0 -23
  762. package/esm/domain/hooks.js +0 -3
  763. package/esm/domain/hooks.js.map +0 -1
  764. package/esm/domain/lifeCycle.d.ts +0 -73
  765. package/esm/domain/lifeCycle.js +0 -3
  766. package/esm/domain/lifeCycle.js.map +0 -1
  767. package/esm/domain/limitModification.d.ts +0 -8
  768. package/esm/domain/limitModification.js +0 -43
  769. package/esm/domain/limitModification.js.map +0 -1
  770. package/esm/domain/longTask/longTaskCollection.d.ts +0 -18
  771. package/esm/domain/longTask/longTaskCollection.js +0 -87
  772. package/esm/domain/longTask/longTaskCollection.js.map +0 -1
  773. package/esm/domain/plugins.d.ts +0 -40
  774. package/esm/domain/plugins.js +0 -12
  775. package/esm/domain/plugins.js.map +0 -1
  776. package/esm/domain/privacy.d.ts +0 -44
  777. package/esm/domain/privacy.js +0 -302
  778. package/esm/domain/privacy.js.map +0 -1
  779. package/esm/domain/privacyConstants.d.ts +0 -23
  780. package/esm/domain/privacyConstants.js +0 -35
  781. package/esm/domain/privacyConstants.js.map +0 -1
  782. package/esm/domain/requestCollection.d.ts +0 -54
  783. package/esm/domain/requestCollection.js +0 -106
  784. package/esm/domain/requestCollection.js.map +0 -1
  785. package/esm/domain/resource/graphql.d.ts +0 -23
  786. package/esm/domain/resource/graphql.js +0 -91
  787. package/esm/domain/resource/graphql.js.map +0 -1
  788. package/esm/domain/resource/matchRequestResourceEntry.d.ts +0 -16
  789. package/esm/domain/resource/matchRequestResourceEntry.js +0 -46
  790. package/esm/domain/resource/matchRequestResourceEntry.js.map +0 -1
  791. package/esm/domain/resource/requestRegistry.d.ts +0 -9
  792. package/esm/domain/resource/requestRegistry.js +0 -37
  793. package/esm/domain/resource/requestRegistry.js.map +0 -1
  794. package/esm/domain/resource/resourceCollection.d.ts +0 -7
  795. package/esm/domain/resource/resourceCollection.js +0 -187
  796. package/esm/domain/resource/resourceCollection.js.map +0 -1
  797. package/esm/domain/resource/resourceUtils.d.ts +0 -55
  798. package/esm/domain/resource/resourceUtils.js +0 -244
  799. package/esm/domain/resource/resourceUtils.js.map +0 -1
  800. package/esm/domain/resource/retrieveInitialDocumentResourceTiming.d.ts +0 -4
  801. package/esm/domain/resource/retrieveInitialDocumentResourceTiming.js +0 -21
  802. package/esm/domain/resource/retrieveInitialDocumentResourceTiming.js.map +0 -1
  803. package/esm/domain/rumSessionManager.d.ts +0 -36
  804. package/esm/domain/rumSessionManager.js +0 -72
  805. package/esm/domain/rumSessionManager.js.map +0 -1
  806. package/esm/domain/sampler/sampler.d.ts +0 -10
  807. package/esm/domain/sampler/sampler.js +0 -58
  808. package/esm/domain/sampler/sampler.js.map +0 -1
  809. package/esm/domain/startCustomerDataTelemetry.d.ts +0 -4
  810. package/esm/domain/startCustomerDataTelemetry.js +0 -52
  811. package/esm/domain/startCustomerDataTelemetry.js.map +0 -1
  812. package/esm/domain/tracing/getDocumentTraceId.d.ts +0 -12
  813. package/esm/domain/tracing/getDocumentTraceId.js +0 -68
  814. package/esm/domain/tracing/getDocumentTraceId.js.map +0 -1
  815. package/esm/domain/tracing/identifier.d.ts +0 -13
  816. package/esm/domain/tracing/identifier.js +0 -50
  817. package/esm/domain/tracing/identifier.js.map +0 -1
  818. package/esm/domain/tracing/sampler.d.ts +0 -10
  819. package/esm/domain/tracing/sampler.js +0 -64
  820. package/esm/domain/tracing/sampler.js.map +0 -1
  821. package/esm/domain/tracing/tracer.d.ts +0 -30
  822. package/esm/domain/tracing/tracer.js +0 -156
  823. package/esm/domain/tracing/tracer.js.map +0 -1
  824. package/esm/domain/tracing/tracer.types.d.ts +0 -12
  825. package/esm/domain/tracing/tracer.types.js +0 -2
  826. package/esm/domain/tracing/tracer.types.js.map +0 -1
  827. package/esm/domain/trackEventCounts.d.ts +0 -17
  828. package/esm/domain/trackEventCounts.js +0 -47
  829. package/esm/domain/trackEventCounts.js.map +0 -1
  830. package/esm/domain/view/bfCacheSupport.d.ts +0 -2
  831. package/esm/domain/view/bfCacheSupport.js +0 -10
  832. package/esm/domain/view/bfCacheSupport.js.map +0 -1
  833. package/esm/domain/view/trackViewEventCounts.d.ts +0 -5
  834. package/esm/domain/view/trackViewEventCounts.js +0 -13
  835. package/esm/domain/view/trackViewEventCounts.js.map +0 -1
  836. package/esm/domain/view/trackViews.d.ts +0 -65
  837. package/esm/domain/view/trackViews.js +0 -278
  838. package/esm/domain/view/trackViews.js.map +0 -1
  839. package/esm/domain/view/viewCollection.d.ts +0 -18
  840. package/esm/domain/view/viewCollection.js +0 -150
  841. package/esm/domain/view/viewCollection.js.map +0 -1
  842. package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.d.ts +0 -6
  843. package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.js +0 -28
  844. package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.js.map +0 -1
  845. package/esm/domain/view/viewMetrics/interactionCountPolyfill.d.ts +0 -18
  846. package/esm/domain/view/viewMetrics/interactionCountPolyfill.js +0 -39
  847. package/esm/domain/view/viewMetrics/interactionCountPolyfill.js.map +0 -1
  848. package/esm/domain/view/viewMetrics/startInitialViewMetricsTelemetry.d.ts +0 -6
  849. package/esm/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js +0 -41
  850. package/esm/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js.map +0 -1
  851. package/esm/domain/view/viewMetrics/trackBfcacheMetrics.d.ts +0 -8
  852. package/esm/domain/view/viewMetrics/trackBfcacheMetrics.js +0 -14
  853. package/esm/domain/view/viewMetrics/trackBfcacheMetrics.js.map +0 -1
  854. package/esm/domain/view/viewMetrics/trackCommonViewMetrics.d.ts +0 -21
  855. package/esm/domain/view/viewMetrics/trackCommonViewMetrics.js +0 -34
  856. package/esm/domain/view/viewMetrics/trackCommonViewMetrics.js.map +0 -1
  857. package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.d.ts +0 -37
  858. package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.js +0 -130
  859. package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.js.map +0 -1
  860. package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.d.ts +0 -13
  861. package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.js +0 -34
  862. package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.js.map +0 -1
  863. package/esm/domain/view/viewMetrics/trackFirstHidden.d.ts +0 -10
  864. package/esm/domain/view/viewMetrics/trackFirstHidden.js +0 -30
  865. package/esm/domain/view/viewMetrics/trackFirstHidden.js.map +0 -1
  866. package/esm/domain/view/viewMetrics/trackFirstInput.d.ts +0 -19
  867. package/esm/domain/view/viewMetrics/trackFirstInput.js +0 -40
  868. package/esm/domain/view/viewMetrics/trackFirstInput.js.map +0 -1
  869. package/esm/domain/view/viewMetrics/trackInitialViewMetrics.d.ts +0 -15
  870. package/esm/domain/view/viewMetrics/trackInitialViewMetrics.js +0 -38
  871. package/esm/domain/view/viewMetrics/trackInitialViewMetrics.js.map +0 -1
  872. package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.d.ts +0 -25
  873. package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.js +0 -149
  874. package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.js.map +0 -1
  875. package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.d.ts +0 -18
  876. package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.js +0 -57
  877. package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.js.map +0 -1
  878. package/esm/domain/view/viewMetrics/trackLoadingTime.d.ts +0 -14
  879. package/esm/domain/view/viewMetrics/trackLoadingTime.js +0 -47
  880. package/esm/domain/view/viewMetrics/trackLoadingTime.js.map +0 -1
  881. package/esm/domain/view/viewMetrics/trackNavigationTimings.d.ts +0 -14
  882. package/esm/domain/view/viewMetrics/trackNavigationTimings.js +0 -40
  883. package/esm/domain/view/viewMetrics/trackNavigationTimings.js.map +0 -1
  884. package/esm/domain/view/viewMetrics/trackScrollMetrics.d.ts +0 -25
  885. package/esm/domain/view/viewMetrics/trackScrollMetrics.js +0 -72
  886. package/esm/domain/view/viewMetrics/trackScrollMetrics.js.map +0 -1
  887. package/esm/domain/vital/vitalCollection.d.ts +0 -55
  888. package/esm/domain/vital/vitalCollection.js +0 -107
  889. package/esm/domain/vital/vitalCollection.js.map +0 -1
  890. package/esm/domain/waitPageActivityEnd.d.ts +0 -54
  891. package/esm/domain/waitPageActivityEnd.js +0 -123
  892. package/esm/domain/waitPageActivityEnd.js.map +0 -1
  893. package/esm/domainContext.types.d.ts +0 -39
  894. package/esm/domainContext.types.js +0 -5
  895. package/esm/domainContext.types.js.map +0 -1
  896. package/esm/index.d.ts +0 -42
  897. package/esm/index.js +0 -22
  898. package/esm/index.js.map +0 -1
  899. package/esm/rawRumEvent.types.d.ts +0 -326
  900. package/esm/rawRumEvent.types.js +0 -31
  901. package/esm/rawRumEvent.types.js.map +0 -1
  902. package/esm/rumEvent.types.d.ts +0 -2038
  903. package/esm/rumEvent.types.js +0 -6
  904. package/esm/rumEvent.types.js.map +0 -1
  905. package/esm/transport/formDataTransport.d.ts +0 -16
  906. package/esm/transport/formDataTransport.js +0 -43
  907. package/esm/transport/formDataTransport.js.map +0 -1
  908. package/esm/transport/startRumBatch.d.ts +0 -5
  909. package/esm/transport/startRumBatch.js +0 -30
  910. package/esm/transport/startRumBatch.js.map +0 -1
  911. package/esm/transport/startRumEventBridge.d.ts +0 -2
  912. package/esm/transport/startRumEventBridge.js +0 -8
  913. package/esm/transport/startRumEventBridge.js.map +0 -1
  914. package/src/browser/firstInputPolyfill.ts +0 -87
  915. package/src/domain/error/trackConsoleError.ts +0 -14
  916. package/src/domain/resource/matchRequestResourceEntry.ts +0 -68
  917. package/src/domain/resource/retrieveInitialDocumentResourceTiming.ts +0 -27
  918. package/src/domain/rumSessionManager.ts +0 -134
  919. package/src/domain/sampler/sampler.ts +0 -63
  920. package/src/domain/tracing/sampler.ts +0 -69
  921. package/src/domain/view/viewMetrics/startInitialViewMetricsTelemetry.ts +0 -70
  922. package/src/domain/view/viewMetrics/trackFirstInput.ts +0 -59
@@ -1,4 +1,3 @@
1
- /* eslint-disable */
2
1
  /**
3
2
  * DO NOT MODIFY IT BY HAND. Run `yarn json-schemas:sync` instead.
4
3
  */
@@ -13,6 +12,7 @@ export type RumEvent =
13
12
  | RumLongTaskEvent
14
13
  | RumResourceEvent
15
14
  | RumViewEvent
15
+ | RumViewUpdateEvent
16
16
  | RumVitalEvent
17
17
  /**
18
18
  * Schema of all properties of an Action event
@@ -141,6 +141,10 @@ export type RumActionEvent = CommonProperties &
141
141
  * CSS selector path of the target element
142
142
  */
143
143
  readonly selector?: string
144
+ /**
145
+ * Selector data based on the click event composed path
146
+ */
147
+ readonly composed_path_selector?: string
144
148
  /**
145
149
  * Width of the target element (in pixels)
146
150
  */
@@ -149,18 +153,17 @@ export type RumActionEvent = CommonProperties &
149
153
  * Height of the target element (in pixels)
150
154
  */
151
155
  readonly height?: number
156
+ /**
157
+ * Mobile-only: a globally unique and stable identifier for this UI element, computed as the hash of the element's path. Used to correlate actions with mobile session replay wireframes.
158
+ */
159
+ readonly permanent_id?: string
152
160
  [k: string]: unknown
153
161
  }
154
162
  /**
155
163
  * The strategy of how the auto click action name is computed
156
164
  */
157
165
  name_source?:
158
- | 'custom_attribute'
159
- | 'mask_placeholder'
160
- | 'standard_attribute'
161
- | 'text_content'
162
- | 'mask_disallowed'
163
- | 'blank'
166
+ 'custom_attribute' | 'mask_placeholder' | 'standard_attribute' | 'text_content' | 'mask_disallowed' | 'blank'
164
167
  [k: string]: unknown
165
168
  }
166
169
  [k: string]: unknown
@@ -175,7 +178,7 @@ export type RumTransitionEvent = CommonProperties & {
175
178
  * RUM event type
176
179
  */
177
180
  readonly type: 'transition'
178
- view: {
181
+ readonly view: {
179
182
  [k: string]: unknown
180
183
  }
181
184
  /**
@@ -299,13 +302,14 @@ export type RumErrorEvent = CommonProperties &
299
302
  /**
300
303
  * Handling call stack
301
304
  */
302
- readonly handling_stack?: string
305
+ handling_stack?: string
303
306
  /**
304
307
  * Source type of the error (the language or platform impacting the error stacktrace format)
305
308
  */
306
309
  readonly source_type?:
307
310
  | 'android'
308
311
  | 'browser'
312
+ | 'browser+wasm'
309
313
  | 'ios'
310
314
  | 'react-native'
311
315
  | 'flutter'
@@ -313,6 +317,11 @@ export type RumErrorEvent = CommonProperties &
313
317
  | 'ndk'
314
318
  | 'ios+il2cpp'
315
319
  | 'ndk+il2cpp'
320
+ | 'windows'
321
+ | 'macos'
322
+ | 'linux'
323
+ | 'maui'
324
+ | 'nodejs'
316
325
  /**
317
326
  * Resource properties of the error
318
327
  */
@@ -361,6 +370,7 @@ export type RumErrorEvent = CommonProperties &
361
370
  | 'video'
362
371
  [k: string]: unknown
363
372
  }
373
+ readonly graphql?: RumGraphql
364
374
  [k: string]: unknown
365
375
  }
366
376
  /**
@@ -415,6 +425,20 @@ export type RumErrorEvent = CommonProperties &
415
425
  readonly arch?: string
416
426
  [k: string]: unknown
417
427
  }[]
428
+ /**
429
+ * WebAssembly modules available for stack trace symbolication.
430
+ */
431
+ readonly wasm_modules?: {
432
+ /**
433
+ * URL identifying the WebAssembly module.
434
+ */
435
+ readonly url: string
436
+ /**
437
+ * Build ID used to identify the WebAssembly debug symbols.
438
+ */
439
+ readonly build_id: string
440
+ [k: string]: unknown
441
+ }[]
418
442
  /**
419
443
  * A boolean value saying if any of the stack traces was truncated due to minification.
420
444
  */
@@ -495,6 +519,30 @@ export type RumErrorEvent = CommonProperties &
495
519
  readonly feature_flags?: {
496
520
  [k: string]: unknown
497
521
  }
522
+ /**
523
+ * Internal properties
524
+ */
525
+ readonly _kubesense?: RumTrace & {
526
+ /**
527
+ * Profiling context
528
+ */
529
+ profiling?: ProfilingInternalContextSchema
530
+ /**
531
+ * Mapping of source file URLs to their debug IDs for source map deobfuscation
532
+ */
533
+ debug_ids?: {
534
+ /**
535
+ * URL of the source file
536
+ */
537
+ url: string
538
+ /**
539
+ * Debug ID (UUID) for the source file
540
+ */
541
+ id: string
542
+ [k: string]: unknown
543
+ }[]
544
+ [k: string]: unknown
545
+ }
498
546
  [k: string]: unknown
499
547
  }
500
548
  /**
@@ -507,7 +555,7 @@ export type RumLongTaskEvent = CommonProperties &
507
555
  * RUM event type
508
556
  */
509
557
  readonly type: 'long_task'
510
- view: {
558
+ readonly view: {
511
559
  [k: string]: unknown
512
560
  }
513
561
  /**
@@ -594,12 +642,7 @@ export type RumLongTaskEvent = CommonProperties &
594
642
  * Type of the invoker of the script
595
643
  */
596
644
  readonly invoker_type?:
597
- | 'user-callback'
598
- | 'event-listener'
599
- | 'resolve-promise'
600
- | 'reject-promise'
601
- | 'classic-script'
602
- | 'module-script'
645
+ 'user-callback' | 'event-listener' | 'resolve-promise' | 'reject-promise' | 'classic-script' | 'module-script'
603
646
  /**
604
647
  * The container (the top-level document, or an <iframe>) the long animation frame occurred in
605
648
  */
@@ -620,6 +663,20 @@ export type RumLongTaskEvent = CommonProperties &
620
663
  * Profiling context
621
664
  */
622
665
  profiling?: ProfilingInternalContextSchema
666
+ /**
667
+ * Mapping of source file URLs to their debug IDs for source map deobfuscation
668
+ */
669
+ debug_ids?: {
670
+ /**
671
+ * URL of the source file
672
+ */
673
+ url: string
674
+ /**
675
+ * Debug ID (UUID) for the source file
676
+ */
677
+ id: string
678
+ [k: string]: unknown
679
+ }[]
623
680
  [k: string]: unknown
624
681
  }
625
682
  [k: string]: unknown
@@ -634,7 +691,7 @@ export type RumResourceEvent = CommonProperties &
634
691
  * RUM event type
635
692
  */
636
693
  readonly type: 'resource'
637
- view: {
694
+ readonly view: {
638
695
  [k: string]: unknown
639
696
  }
640
697
  /**
@@ -649,17 +706,7 @@ export type RumResourceEvent = CommonProperties &
649
706
  * Resource type
650
707
  */
651
708
  readonly type:
652
- | 'document'
653
- | 'xhr'
654
- | 'beacon'
655
- | 'fetch'
656
- | 'css'
657
- | 'js'
658
- | 'image'
659
- | 'font'
660
- | 'media'
661
- | 'other'
662
- | 'native'
709
+ 'document' | 'xhr' | 'beacon' | 'fetch' | 'css' | 'js' | 'image' | 'font' | 'media' | 'other' | 'native'
663
710
  /**
664
711
  * HTTP method of the resource
665
712
  */
@@ -681,15 +728,15 @@ export type RumResourceEvent = CommonProperties &
681
728
  */
682
729
  readonly size?: number
683
730
  /**
684
- * Size in octet of the resource before removing any applied content encodings
731
+ * Size in octet of the response body before removing any applied content encodings
685
732
  */
686
733
  readonly encoded_body_size?: number
687
734
  /**
688
- * Size in octet of the resource after removing any applied encoding
735
+ * Size in octet of the response body after removing any applied encoding
689
736
  */
690
737
  readonly decoded_body_size?: number
691
738
  /**
692
- * Size in octet of the fetched resource
739
+ * Size in octet of the fetched response resource
693
740
  */
694
741
  readonly transfer_size?: number
695
742
  /**
@@ -802,6 +849,10 @@ export type RumResourceEvent = CommonProperties &
802
849
  * Delivery type of the resource
803
850
  */
804
851
  readonly delivery_type?: 'cache' | 'navigational-prefetch' | 'other'
852
+ /**
853
+ * Whether the resource was served from the device's local cache
854
+ */
855
+ readonly local_cache_hit?: boolean
805
856
  /**
806
857
  * The provider for this resource
807
858
  */
@@ -835,85 +886,44 @@ export type RumResourceEvent = CommonProperties &
835
886
  [k: string]: unknown
836
887
  }
837
888
  /**
838
- * GraphQL requests parameters
889
+ * Request properties
839
890
  */
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
891
+ readonly request?: {
849
892
  /**
850
- * Content of the GraphQL operation
893
+ * Size in octet of the request body sent over the network (after encoding)
851
894
  */
852
- payload?: string
895
+ readonly encoded_body_size?: number
853
896
  /**
854
- * String representation of the operation variables
897
+ * Size in octet of the request body before any encoding
855
898
  */
856
- variables?: string
899
+ readonly decoded_body_size?: number
857
900
  /**
858
- * Number of GraphQL errors in the response
901
+ * HTTP headers of the resource request
859
902
  */
860
- readonly error_count?: number
903
+ headers?: {
904
+ [k: string]: string
905
+ }
906
+ [k: string]: unknown
907
+ }
908
+ /**
909
+ * Response properties
910
+ */
911
+ readonly response?: {
861
912
  /**
862
- * Array of GraphQL errors from the response
913
+ * HTTP headers of the resource response
863
914
  */
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
- }[]
915
+ headers?: {
916
+ [k: string]: string
917
+ }
893
918
  [k: string]: unknown
894
919
  }
920
+ readonly graphql?: RumGraphql
895
921
  [k: string]: unknown
896
922
  }
897
923
  /**
898
924
  * Internal properties
899
925
  */
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
926
+ readonly _kubesense?: RumTrace & {
917
927
  /**
918
928
  * Whether the resource should be discarded or indexed
919
929
  */
@@ -927,421 +937,61 @@ export type RumResourceEvent = CommonProperties &
927
937
  */
928
938
  export type RumViewEvent = CommonProperties &
929
939
  ViewContainerSchema &
930
- StreamSchema & {
940
+ StreamSchema &
941
+ ViewProperties & {
931
942
  /**
932
943
  * RUM event type
933
944
  */
934
945
  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
946
+ view: {
947
+ time_spent: number
948
+ action: {
1097
949
  [k: string]: unknown
1098
950
  }
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
951
+ error: {
1121
952
  [k: string]: unknown
1122
953
  }
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
954
+ resource: {
1131
955
  [k: string]: unknown
1132
956
  }
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
957
  [k: string]: unknown
1200
958
  }
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
959
+ readonly _kubesense: {
1213
960
  [k: string]: unknown
1214
961
  }
962
+ [k: string]: unknown
963
+ }
964
+ /**
965
+ * Schema of all properties of a View Update event
966
+ */
967
+ export type RumViewUpdateEvent = ViewContainerSchema &
968
+ StreamSchema &
969
+ ViewProperties &
970
+ CommonProperties & {
1215
971
  /**
1216
- * Feature flags properties
972
+ * RUM event type
1217
973
  */
1218
- readonly feature_flags?: {
974
+ readonly type: 'view_update'
975
+ readonly view: {
1219
976
  [k: string]: unknown
1220
977
  }
978
+ [k: string]: unknown
979
+ }
980
+ export type RumVitalEvent = RumVitalDurationEvent | RumVitalOperationStepEvent
981
+ /**
982
+ * Schema for a duration vital event.
983
+ */
984
+ export type RumVitalDurationEvent = RumVitalEventCommonProperties & {
985
+ /**
986
+ * Vital properties
987
+ */
988
+ readonly vital?: {
1221
989
  /**
1222
- * Privacy properties
990
+ * Type of the vital.
1223
991
  */
1224
- readonly privacy?: {
1225
- /**
1226
- * The replay privacy level
1227
- */
1228
- readonly replay_level: 'allow' | 'mask' | 'mask-user-input'
1229
- [k: string]: unknown
1230
- }
992
+ readonly type: 'duration'
1231
993
  /**
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.
994
+ * Duration of the vital in nanoseconds.
1345
995
  */
1346
996
  readonly duration: number
1347
997
  [k: string]: unknown
@@ -1357,6 +1007,9 @@ export type RumVitalEventCommonProperties = CommonProperties &
1357
1007
  * RUM event type
1358
1008
  */
1359
1009
  readonly type: 'vital'
1010
+ readonly view: {
1011
+ [k: string]: unknown
1012
+ }
1360
1013
  /**
1361
1014
  * Vital properties
1362
1015
  */
@@ -1375,19 +1028,26 @@ export type RumVitalEventCommonProperties = CommonProperties &
1375
1028
  readonly description?: string
1376
1029
  [k: string]: unknown
1377
1030
  }
1031
+ /**
1032
+ * Internal properties
1033
+ */
1034
+ readonly _kubesense?: {
1035
+ /**
1036
+ * Profiling context
1037
+ */
1038
+ profiling?: ProfilingInternalContextSchema
1039
+ [k: string]: unknown
1040
+ }
1378
1041
  [k: string]: unknown
1379
1042
  }
1380
1043
  /**
1381
1044
  * Schema for a vital operation step event.
1382
1045
  */
1383
1046
  export type RumVitalOperationStepEvent = RumVitalEventCommonProperties & {
1384
- view: {
1385
- [k: string]: unknown
1386
- }
1387
1047
  /**
1388
1048
  * Vital properties
1389
1049
  */
1390
- readonly vital: {
1050
+ readonly vital?: {
1391
1051
  /**
1392
1052
  * Type of the vital.
1393
1053
  */
@@ -1481,6 +1141,9 @@ export interface CommonProperties {
1481
1141
  | 'roku'
1482
1142
  | 'unity'
1483
1143
  | 'kotlin-multiplatform'
1144
+ | 'electron'
1145
+ | 'cpp'
1146
+ | 'maui'
1484
1147
  /**
1485
1148
  * View properties
1486
1149
  */
@@ -1543,6 +1206,16 @@ export interface CommonProperties {
1543
1206
  readonly name?: string
1544
1207
  [k: string]: unknown
1545
1208
  }
1209
+ /**
1210
+ * Tab properties
1211
+ */
1212
+ readonly tab?: {
1213
+ /**
1214
+ * UUID of the browser tab
1215
+ */
1216
+ readonly id: string
1217
+ [k: string]: unknown
1218
+ }
1546
1219
  /**
1547
1220
  * Device connectivity properties
1548
1221
  */
@@ -1555,15 +1228,7 @@ export interface CommonProperties {
1555
1228
  * The list of available network interfaces
1556
1229
  */
1557
1230
  readonly interfaces?: (
1558
- | 'bluetooth'
1559
- | 'cellular'
1560
- | 'ethernet'
1561
- | 'wifi'
1562
- | 'wimax'
1563
- | 'mixed'
1564
- | 'other'
1565
- | 'unknown'
1566
- | 'none'
1231
+ 'bluetooth' | 'cellular' | 'ethernet' | 'wifi' | 'wimax' | 'mixed' | 'other' | 'unknown' | 'none'
1567
1232
  )[]
1568
1233
  /**
1569
1234
  * Cellular connection type reflecting the measured network performance
@@ -1711,6 +1376,18 @@ export interface CommonProperties {
1711
1376
  * Current screen brightness level (0.0 to 1.0).
1712
1377
  */
1713
1378
  readonly brightness_level?: number
1379
+ /**
1380
+ * Number of logical CPU cores available for scheduling on the device at runtime, as reported by the operating system.
1381
+ */
1382
+ readonly logical_cpu_count?: number
1383
+ /**
1384
+ * Total RAM in megabytes
1385
+ */
1386
+ readonly total_ram?: number
1387
+ /**
1388
+ * Whether the device is considered a low RAM device (Android)
1389
+ */
1390
+ readonly is_low_ram?: boolean
1714
1391
  [k: string]: unknown
1715
1392
  }
1716
1393
  /**
@@ -1762,6 +1439,10 @@ export interface CommonProperties {
1762
1439
  * The percentage of sessions with traced resources
1763
1440
  */
1764
1441
  readonly trace_sample_rate?: number
1442
+ /**
1443
+ * Session Replay experimental features enabled in the SDK configuration
1444
+ */
1445
+ readonly session_replay_experimental_features?: string[]
1765
1446
  [k: string]: unknown
1766
1447
  }
1767
1448
  /**
@@ -1822,6 +1503,9 @@ export interface ViewContainerSchema {
1822
1503
  | 'roku'
1823
1504
  | 'unity'
1824
1505
  | 'kotlin-multiplatform'
1506
+ | 'electron'
1507
+ | 'cpp'
1508
+ | 'maui'
1825
1509
  [k: string]: unknown
1826
1510
  }
1827
1511
  [k: string]: unknown
@@ -1842,6 +1526,86 @@ export interface ActionChildProperties {
1842
1526
  }
1843
1527
  [k: string]: unknown
1844
1528
  }
1529
+ /**
1530
+ * GraphQL request parameters
1531
+ */
1532
+ export interface RumGraphql {
1533
+ /**
1534
+ * Type of the GraphQL operation
1535
+ */
1536
+ readonly operationType?: 'query' | 'mutation' | 'subscription'
1537
+ /**
1538
+ * Name of the GraphQL operation
1539
+ */
1540
+ readonly operationName?: string
1541
+ /**
1542
+ * Content of the GraphQL operation
1543
+ */
1544
+ payload?: string
1545
+ /**
1546
+ * String representation of the operation variables
1547
+ */
1548
+ variables?: string
1549
+ /**
1550
+ * Number of GraphQL errors in the response
1551
+ */
1552
+ readonly error_count?: number
1553
+ /**
1554
+ * Array of GraphQL errors from the response
1555
+ */
1556
+ readonly errors?: {
1557
+ /**
1558
+ * Error message
1559
+ */
1560
+ readonly message: string
1561
+ /**
1562
+ * Error code (used by some providers)
1563
+ */
1564
+ readonly code?: string
1565
+ /**
1566
+ * Array of error locations in the GraphQL query
1567
+ */
1568
+ readonly locations?: {
1569
+ /**
1570
+ * Line number where the error occurred
1571
+ */
1572
+ readonly line: number
1573
+ /**
1574
+ * Column number where the error occurred
1575
+ */
1576
+ readonly column: number
1577
+ [k: string]: unknown
1578
+ }[]
1579
+ /**
1580
+ * Path to the field that caused the error
1581
+ */
1582
+ readonly path?: (string | number)[]
1583
+ [k: string]: unknown
1584
+ }[]
1585
+ [k: string]: unknown
1586
+ }
1587
+ /**
1588
+ * Trace context properties
1589
+ */
1590
+ export interface RumTrace {
1591
+ /**
1592
+ * span identifier in decimal format
1593
+ */
1594
+ readonly span_id?: string
1595
+ /**
1596
+ * parent span identifier in decimal format
1597
+ */
1598
+ readonly parent_span_id?: string
1599
+ /**
1600
+ * trace identifier, either a 64 bit decimal number or a 128 bit hexadecimal number padded with 0s
1601
+ */
1602
+ readonly trace_id?: string
1603
+ /**
1604
+ * trace sample rate in decimal format
1605
+ */
1606
+ readonly rule_psr?: number
1607
+ [k: string]: unknown
1608
+ }
1845
1609
  /**
1846
1610
  * RUM Profiler Internal Context schema
1847
1611
  */
@@ -1867,10 +1631,21 @@ export interface ProfilingInternalContextSchema {
1867
1631
  * - `unexpected-exception`: An exception occurred when starting the Profiler.
1868
1632
  */
1869
1633
  readonly error_reason?:
1870
- | 'not-supported-by-browser'
1871
- | 'failed-to-lazy-load'
1872
- | 'missing-document-policy-header'
1873
- | 'unexpected-exception'
1634
+ 'not-supported-by-browser' | 'failed-to-lazy-load' | 'missing-document-policy-header' | 'unexpected-exception'
1635
+ /**
1636
+ * The reason provided by the profiling quota admission API. This attribute is only present if the status is `stopped` due to quota.
1637
+ *
1638
+ * Possible values:
1639
+ * - `quota_ok`: Quota check passed.
1640
+ * - `quota_exceeded`: The organization has exceeded its profiling quota.
1641
+ * - `org_disabled`: The organization has profiling disabled.
1642
+ * - `backend_unavailable`: The quota admission API is unavailable or not initialized.
1643
+ * - `undefined`: The quota reason is undefined.
1644
+ * - `timeout`: The quota check timed out on the client side.
1645
+ * - `api-error`: An API error occurred on the client side.
1646
+ */
1647
+ readonly quota_reason?:
1648
+ 'quota_ok' | 'quota_exceeded' | 'org_disabled' | 'backend_unavailable' | 'undefined' | 'timeout' | 'api-error'
1874
1649
  [k: string]: unknown
1875
1650
  }
1876
1651
  /**
@@ -1917,6 +1692,420 @@ export interface StreamSchema {
1917
1692
  }
1918
1693
  [k: string]: unknown
1919
1694
  }
1695
+ /**
1696
+ * Shared optional view-specific properties used by both view and view_update events
1697
+ */
1698
+ export interface ViewProperties {
1699
+ /**
1700
+ * View properties
1701
+ */
1702
+ readonly view?: {
1703
+ /**
1704
+ * Duration in ns to the view is considered loaded
1705
+ */
1706
+ readonly loading_time?: number
1707
+ /**
1708
+ * Duration in ns from the moment the view was started until all the initial network requests settled
1709
+ */
1710
+ readonly network_settled_time?: number
1711
+ /**
1712
+ * Duration in ns to from the last interaction on previous view to the moment the current view was displayed
1713
+ */
1714
+ readonly interaction_to_next_view_time?: number
1715
+ /**
1716
+ * Type of the loading of the view
1717
+ */
1718
+ readonly loading_type?:
1719
+ | 'initial_load'
1720
+ | 'route_change'
1721
+ | 'activity_display'
1722
+ | 'activity_redisplay'
1723
+ | 'fragment_display'
1724
+ | 'fragment_redisplay'
1725
+ | 'view_controller_display'
1726
+ | 'view_controller_redisplay'
1727
+ | 'session_renewal'
1728
+ | 'bf_cache'
1729
+ /**
1730
+ * Time spent on the view in ns
1731
+ */
1732
+ readonly time_spent?: number
1733
+ /**
1734
+ * @deprecated
1735
+ * Duration in ns to the first rendering (deprecated in favor of `view.performance.fcp.timestamp`)
1736
+ */
1737
+ readonly first_contentful_paint?: number
1738
+ /**
1739
+ * @deprecated
1740
+ * Duration in ns to the largest contentful paint (deprecated in favor of `view.performance.lcp.timestamp`)
1741
+ */
1742
+ readonly largest_contentful_paint?: number
1743
+ /**
1744
+ * @deprecated
1745
+ * CSS selector path of the largest contentful paint element (deprecated in favor of `view.performance.lcp.target_selector`)
1746
+ */
1747
+ readonly largest_contentful_paint_target_selector?: string
1748
+ /**
1749
+ * @deprecated
1750
+ * Duration in ns of the first input event delay (deprecated in favor of `view.performance.fid.duration`)
1751
+ */
1752
+ readonly first_input_delay?: number
1753
+ /**
1754
+ * @deprecated
1755
+ * Duration in ns to the first input (deprecated in favor of `view.performance.fid.timestamp`)
1756
+ */
1757
+ readonly first_input_time?: number
1758
+ /**
1759
+ * @deprecated
1760
+ * CSS selector path of the first input target element (deprecated in favor of `view.performance.fid.target_selector`)
1761
+ */
1762
+ readonly first_input_target_selector?: string
1763
+ /**
1764
+ * @deprecated
1765
+ * Longest duration in ns between an interaction and the next paint (deprecated in favor of `view.performance.inp.duration`)
1766
+ */
1767
+ readonly interaction_to_next_paint?: number
1768
+ /**
1769
+ * @deprecated
1770
+ * Duration in ns between start of the view and start of the INP (deprecated in favor of `view.performance.inp.timestamp`)
1771
+ */
1772
+ readonly interaction_to_next_paint_time?: number
1773
+ /**
1774
+ * @deprecated
1775
+ * CSS selector path of the interacted element corresponding to INP (deprecated in favor of `view.performance.inp.target_selector`)
1776
+ */
1777
+ readonly interaction_to_next_paint_target_selector?: string
1778
+ /**
1779
+ * @deprecated
1780
+ * Total layout shift score that occurred on the view (deprecated in favor of `view.performance.cls.score`)
1781
+ */
1782
+ readonly cumulative_layout_shift?: number
1783
+ /**
1784
+ * @deprecated
1785
+ * 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`)
1786
+ */
1787
+ readonly cumulative_layout_shift_time?: number
1788
+ /**
1789
+ * @deprecated
1790
+ * 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`)
1791
+ */
1792
+ readonly cumulative_layout_shift_target_selector?: string
1793
+ /**
1794
+ * Duration in ns to the complete parsing and loading of the document and its sub resources
1795
+ */
1796
+ readonly dom_complete?: number
1797
+ /**
1798
+ * Duration in ns to the complete parsing and loading of the document without its sub resources
1799
+ */
1800
+ readonly dom_content_loaded?: number
1801
+ /**
1802
+ * Duration in ns to the end of the parsing of the document
1803
+ */
1804
+ readonly dom_interactive?: number
1805
+ /**
1806
+ * Duration in ns to the end of the load event handler execution
1807
+ */
1808
+ readonly load_event?: number
1809
+ /**
1810
+ * Duration in ns to the response start of the document request
1811
+ */
1812
+ readonly first_byte?: number
1813
+ /**
1814
+ * User custom timings of the view. As timing name is used as facet path, it must contain only letters, digits, or the characters - _ . @ $
1815
+ */
1816
+ readonly custom_timings?: {
1817
+ [k: string]: number
1818
+ }
1819
+ /**
1820
+ * Whether the View corresponding to this event is considered active
1821
+ */
1822
+ readonly is_active?: boolean
1823
+ /**
1824
+ * Whether the View had a low average refresh rate
1825
+ */
1826
+ readonly is_slow_rendered?: boolean
1827
+ /**
1828
+ * Properties of the actions of the view
1829
+ */
1830
+ readonly action?: {
1831
+ /**
1832
+ * Number of actions that occurred on the view
1833
+ */
1834
+ readonly count: number
1835
+ [k: string]: unknown
1836
+ }
1837
+ /**
1838
+ * Properties of the errors of the view
1839
+ */
1840
+ readonly error?: {
1841
+ /**
1842
+ * Number of errors that occurred on the view
1843
+ */
1844
+ readonly count: number
1845
+ [k: string]: unknown
1846
+ }
1847
+ /**
1848
+ * Properties of the crashes of the view
1849
+ */
1850
+ readonly crash?: {
1851
+ /**
1852
+ * Number of crashes that occurred on the view
1853
+ */
1854
+ readonly count: number
1855
+ [k: string]: unknown
1856
+ }
1857
+ /**
1858
+ * Properties of the long tasks of the view
1859
+ */
1860
+ readonly long_task?: {
1861
+ /**
1862
+ * Number of long tasks that occurred on the view
1863
+ */
1864
+ readonly count: number
1865
+ [k: string]: unknown
1866
+ }
1867
+ /**
1868
+ * Properties of the frozen frames of the view
1869
+ */
1870
+ readonly frozen_frame?: {
1871
+ /**
1872
+ * Number of frozen frames that occurred on the view
1873
+ */
1874
+ readonly count: number
1875
+ [k: string]: unknown
1876
+ }
1877
+ /**
1878
+ * List of slow frames during the view's lifetime
1879
+ */
1880
+ readonly slow_frames?: {
1881
+ /**
1882
+ * Duration in ns between start of the view and the start of the slow frame
1883
+ */
1884
+ readonly start: number
1885
+ /**
1886
+ * Duration in ns of the slow frame
1887
+ */
1888
+ readonly duration: number
1889
+ [k: string]: unknown
1890
+ }[]
1891
+ /**
1892
+ * Properties of the resources of the view
1893
+ */
1894
+ readonly resource?: {
1895
+ /**
1896
+ * Number of resources that occurred on the view
1897
+ */
1898
+ readonly count: number
1899
+ [k: string]: unknown
1900
+ }
1901
+ /**
1902
+ * Properties of the frustrations of the view
1903
+ */
1904
+ readonly frustration?: {
1905
+ /**
1906
+ * Number of frustrations that occurred on the view
1907
+ */
1908
+ readonly count: number
1909
+ [k: string]: unknown
1910
+ }
1911
+ /**
1912
+ * List of the periods of time the user had the view in foreground (focused in the browser)
1913
+ */
1914
+ readonly in_foreground_periods?: {
1915
+ /**
1916
+ * Duration in ns between start of the view and start of foreground period
1917
+ */
1918
+ readonly start: number
1919
+ /**
1920
+ * Duration in ns of the view foreground period
1921
+ */
1922
+ readonly duration: number
1923
+ [k: string]: unknown
1924
+ }[]
1925
+ /**
1926
+ * Average memory used during the view lifetime (in bytes)
1927
+ */
1928
+ readonly memory_average?: number
1929
+ /**
1930
+ * Peak memory used during the view lifetime (in bytes)
1931
+ */
1932
+ readonly memory_max?: number
1933
+ /**
1934
+ * Total number of cpu ticks during the view's lifetime
1935
+ */
1936
+ readonly cpu_ticks_count?: number
1937
+ /**
1938
+ * Average number of cpu ticks per second during the view's lifetime
1939
+ */
1940
+ readonly cpu_ticks_per_second?: number
1941
+ /**
1942
+ * Average refresh rate during the view's lifetime (in frames per second)
1943
+ */
1944
+ readonly refresh_rate_average?: number
1945
+ /**
1946
+ * Minimum refresh rate during the view's lifetime (in frames per second)
1947
+ */
1948
+ readonly refresh_rate_min?: number
1949
+ /**
1950
+ * Rate of slow frames during the view's lifetime (in milliseconds per second)
1951
+ */
1952
+ readonly slow_frames_rate?: number
1953
+ /**
1954
+ * Rate of freezes during the view's lifetime (in seconds per hour)
1955
+ */
1956
+ readonly freeze_rate?: number
1957
+ /**
1958
+ * Time taken for Flutter 'build' methods.
1959
+ */
1960
+ flutter_build_time?: RumPerfMetric
1961
+ /**
1962
+ * Time taken for Flutter to rasterize the view.
1963
+ */
1964
+ flutter_raster_time?: RumPerfMetric
1965
+ /**
1966
+ * The JavaScript refresh rate for React Native
1967
+ */
1968
+ js_refresh_rate?: RumPerfMetric
1969
+ /**
1970
+ * Performance data. (Web Vitals, etc.)
1971
+ */
1972
+ performance?: ViewPerformanceData
1973
+ /**
1974
+ * Accessibility properties of the view
1975
+ */
1976
+ accessibility?: ViewAccessibilityProperties
1977
+ [k: string]: unknown
1978
+ }
1979
+ /**
1980
+ * Session properties
1981
+ */
1982
+ readonly session?: {
1983
+ /**
1984
+ * Whether this session is currently active. Set to false to manually stop a session
1985
+ */
1986
+ readonly is_active?: boolean
1987
+ /**
1988
+ * Whether this session has been sampled for replay
1989
+ */
1990
+ readonly sampled_for_replay?: boolean
1991
+ [k: string]: unknown
1992
+ }
1993
+ /**
1994
+ * Feature flags properties
1995
+ */
1996
+ readonly feature_flags?: {
1997
+ [k: string]: unknown
1998
+ }
1999
+ /**
2000
+ * Privacy properties
2001
+ */
2002
+ readonly privacy?: {
2003
+ /**
2004
+ * The replay privacy level
2005
+ */
2006
+ readonly replay_level: 'allow' | 'mask' | 'mask-user-input'
2007
+ [k: string]: unknown
2008
+ }
2009
+ /**
2010
+ * Display properties
2011
+ */
2012
+ readonly display?: {
2013
+ /**
2014
+ * Scroll properties
2015
+ */
2016
+ readonly scroll?: {
2017
+ /**
2018
+ * Distance between the top and the lowest point reached on this view (in pixels)
2019
+ */
2020
+ readonly max_depth: number
2021
+ /**
2022
+ * Page scroll top (scrolled distance) when the maximum scroll depth was reached for this view (in pixels)
2023
+ */
2024
+ readonly max_depth_scroll_top: number
2025
+ /**
2026
+ * Maximum page scroll height (total height) for this view (in pixels)
2027
+ */
2028
+ readonly max_scroll_height: number
2029
+ /**
2030
+ * Duration between the view start and the time the max scroll height was reached for this view (in nanoseconds)
2031
+ */
2032
+ readonly max_scroll_height_time: number
2033
+ [k: string]: unknown
2034
+ }
2035
+ [k: string]: unknown
2036
+ }
2037
+ /**
2038
+ * Internal properties
2039
+ */
2040
+ readonly _kubesense?: {
2041
+ /**
2042
+ * Version of the update of the view event
2043
+ */
2044
+ readonly document_version: number
2045
+ /**
2046
+ * List of the page states during the view
2047
+ */
2048
+ readonly page_states?: {
2049
+ /**
2050
+ * Page state name
2051
+ */
2052
+ readonly state: 'active' | 'passive' | 'hidden' | 'frozen' | 'terminated'
2053
+ /**
2054
+ * Duration in ns between start of the view and start of the page state
2055
+ */
2056
+ readonly start: number
2057
+ [k: string]: unknown
2058
+ }[]
2059
+ /**
2060
+ * Debug metadata for Replay Sessions
2061
+ */
2062
+ replay_stats?: {
2063
+ /**
2064
+ * The number of records produced during this view lifetime
2065
+ */
2066
+ records_count?: number
2067
+ /**
2068
+ * The number of segments sent during this view lifetime
2069
+ */
2070
+ segments_count?: number
2071
+ /**
2072
+ * The total size in bytes of the segments sent during this view lifetime
2073
+ */
2074
+ segments_total_raw_size?: number
2075
+ [k: string]: unknown
2076
+ }
2077
+ /**
2078
+ * Additional information of the reported Cumulative Layout Shift
2079
+ */
2080
+ readonly cls?: {
2081
+ /**
2082
+ * Pixel ratio of the device where the layout shift was reported
2083
+ */
2084
+ readonly device_pixel_ratio?: number
2085
+ [k: string]: unknown
2086
+ }
2087
+ /**
2088
+ * Subset of the SDK configuration options in use during its execution
2089
+ */
2090
+ readonly configuration?: {
2091
+ /**
2092
+ * Whether session replay recording configured to start manually
2093
+ */
2094
+ readonly start_session_replay_recording_manually?: boolean
2095
+ /**
2096
+ * The id of the remote configuration applied to the SDK, if any
2097
+ */
2098
+ readonly remote_configuration_id?: string
2099
+ [k: string]: unknown
2100
+ }
2101
+ /**
2102
+ * Profiling context
2103
+ */
2104
+ profiling?: ProfilingInternalContextSchema
2105
+ [k: string]: unknown
2106
+ }
2107
+ [k: string]: unknown
2108
+ }
1920
2109
  /**
1921
2110
  * Schema of properties for a technical performance metric
1922
2111
  */
@@ -2013,6 +2202,24 @@ export interface ViewPerformanceData {
2013
2202
  * CSS selector path of the interacted element for the INP interaction
2014
2203
  */
2015
2204
  readonly target_selector?: string
2205
+ /**
2206
+ * Sub-parts of the INP
2207
+ */
2208
+ sub_parts?: {
2209
+ /**
2210
+ * Time from the start of the input event to the start of the processing of the event
2211
+ */
2212
+ readonly input_delay: number
2213
+ /**
2214
+ * Event handler execution time
2215
+ */
2216
+ readonly processing_duration: number
2217
+ /**
2218
+ * Rendering time happening after processing
2219
+ */
2220
+ readonly presentation_delay: number
2221
+ [k: string]: unknown
2222
+ }
2016
2223
  [k: string]: unknown
2017
2224
  }
2018
2225
  /**
@@ -2031,6 +2238,24 @@ export interface ViewPerformanceData {
2031
2238
  * URL of the largest contentful paint element
2032
2239
  */
2033
2240
  resource_url?: string
2241
+ /**
2242
+ * Sub-parts of the LCP
2243
+ */
2244
+ sub_parts?: {
2245
+ /**
2246
+ * Time between first_byte and the loading start of the resource associated with the LCP
2247
+ */
2248
+ readonly load_delay: number
2249
+ /**
2250
+ * Time to takes to load the resource attached to the LCP
2251
+ */
2252
+ readonly load_time: number
2253
+ /**
2254
+ * Time between the LCP resource finishes loading and the LCP element is fully rendered
2255
+ */
2256
+ readonly render_delay: number
2257
+ [k: string]: unknown
2258
+ }
2034
2259
  [k: string]: unknown
2035
2260
  }
2036
2261
  /**