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