@oneuptime/common 14.0.99 → 14.0.100

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 (603) hide show
  1. package/Models/AnalyticsModels/ExceptionInstance.d.mts +2 -0
  2. package/Models/AnalyticsModels/ExceptionInstance.d.ts +2 -0
  3. package/Models/AnalyticsModels/ExceptionInstance.js +31 -0
  4. package/Models/AnalyticsModels/LogCountBaseline.d.mts +6 -0
  5. package/Models/AnalyticsModels/LogCountBaseline.d.ts +6 -0
  6. package/Models/AnalyticsModels/LogCountBaseline.js +7 -1
  7. package/Models/AnalyticsModels/MetricBaselineHourly.d.mts +11 -6
  8. package/Models/AnalyticsModels/MetricBaselineHourly.d.ts +11 -6
  9. package/Models/AnalyticsModels/MetricBaselineHourly.js +12 -7
  10. package/Models/AnalyticsModels/RumSessionChunk.js +1 -1
  11. package/Models/AnalyticsModels/SpanCountBaseline.d.mts +17 -9
  12. package/Models/AnalyticsModels/SpanCountBaseline.d.ts +17 -9
  13. package/Models/AnalyticsModels/SpanCountBaseline.js +18 -10
  14. package/Models/DatabaseModels/CloudApp.d.mts +27 -0
  15. package/Models/DatabaseModels/CloudApp.d.ts +27 -0
  16. package/Models/DatabaseModels/CloudApp.js +414 -0
  17. package/Models/DatabaseModels/CloudApp.mjs +2 -0
  18. package/Models/DatabaseModels/CloudAppRevision.d.mts +23 -0
  19. package/Models/DatabaseModels/CloudAppRevision.d.ts +23 -0
  20. package/Models/DatabaseModels/CloudAppRevision.js +351 -0
  21. package/Models/DatabaseModels/CloudAppRevision.mjs +2 -0
  22. package/Models/DatabaseModels/CloudResourceFeed.d.mts +4 -1
  23. package/Models/DatabaseModels/CloudResourceFeed.d.ts +4 -1
  24. package/Models/DatabaseModels/CloudResourceFeed.js +17 -1
  25. package/Models/DatabaseModels/CloudResourceFeed.mjs +1 -0
  26. package/Models/DatabaseModels/CloudResourceInstance.d.mts +4 -0
  27. package/Models/DatabaseModels/CloudResourceInstance.d.ts +4 -0
  28. package/Models/DatabaseModels/CloudResourceInstance.js +60 -1
  29. package/Models/DatabaseModels/CloudResourceLabelRule.d.mts +2 -0
  30. package/Models/DatabaseModels/CloudResourceLabelRule.d.ts +2 -0
  31. package/Models/DatabaseModels/CloudResourceLabelRule.js +44 -1
  32. package/Models/DatabaseModels/CloudResourceOwnerRule.d.mts +2 -0
  33. package/Models/DatabaseModels/CloudResourceOwnerRule.d.ts +2 -0
  34. package/Models/DatabaseModels/CloudResourceOwnerRule.js +44 -1
  35. package/Models/DatabaseModels/Dashboard.d.mts +2 -0
  36. package/Models/DatabaseModels/Dashboard.d.ts +2 -0
  37. package/Models/DatabaseModels/Dashboard.js +88 -0
  38. package/Models/DatabaseModels/DataSecurityIdentity.d.mts +29 -0
  39. package/Models/DatabaseModels/DataSecurityIdentity.d.ts +29 -0
  40. package/Models/DatabaseModels/DataSecurityIdentity.js +535 -0
  41. package/Models/DatabaseModels/DataSecurityIdentity.mjs +2 -0
  42. package/Models/DatabaseModels/DataStore.d.mts +1 -0
  43. package/Models/DatabaseModels/DataStore.d.ts +1 -0
  44. package/Models/DatabaseModels/DataStore.js +16 -0
  45. package/Models/DatabaseModels/DataStoreAccess.d.mts +1 -0
  46. package/Models/DatabaseModels/DataStoreAccess.d.ts +1 -0
  47. package/Models/DatabaseModels/DataStoreAccess.js +20 -0
  48. package/Models/DatabaseModels/DataStoreFinding.d.mts +3 -0
  49. package/Models/DatabaseModels/DataStoreFinding.d.ts +3 -0
  50. package/Models/DatabaseModels/DataStoreFinding.js +63 -1
  51. package/Models/DatabaseModels/DetectionRule.d.mts +1 -0
  52. package/Models/DatabaseModels/DetectionRule.d.ts +1 -0
  53. package/Models/DatabaseModels/DetectionRule.js +31 -0
  54. package/Models/DatabaseModels/ExceptionSavedView.d.mts +16 -0
  55. package/Models/DatabaseModels/ExceptionSavedView.d.ts +16 -0
  56. package/Models/DatabaseModels/ExceptionSavedView.js +413 -0
  57. package/Models/DatabaseModels/ExceptionSavedView.mjs +2 -0
  58. package/Models/DatabaseModels/FormDomain.d.mts +28 -0
  59. package/Models/DatabaseModels/FormDomain.d.ts +28 -0
  60. package/Models/DatabaseModels/FormDomain.js +598 -0
  61. package/Models/DatabaseModels/FormDomain.mjs +2 -0
  62. package/Models/DatabaseModels/IncidentEpisodeRoleMember.js +10 -1
  63. package/Models/DatabaseModels/Index.js +12 -0
  64. package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.d.mts +2 -1
  65. package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.d.ts +2 -1
  66. package/Models/DatabaseModels/NetworkEndpoint.d.mts +2 -0
  67. package/Models/DatabaseModels/NetworkEndpoint.d.ts +2 -0
  68. package/Models/DatabaseModels/NetworkEndpoint.js +62 -1
  69. package/Models/DatabaseModels/ProxmoxCluster.d.mts +2 -0
  70. package/Models/DatabaseModels/ProxmoxCluster.d.ts +2 -0
  71. package/Models/DatabaseModels/ProxmoxCluster.js +66 -0
  72. package/Models/DatabaseModels/ProxmoxResource.d.mts +13 -0
  73. package/Models/DatabaseModels/ProxmoxResource.d.ts +13 -0
  74. package/Models/DatabaseModels/ProxmoxResource.js +292 -0
  75. package/Models/DatabaseModels/StatusPageSubscriber.d.mts +1 -0
  76. package/Models/DatabaseModels/StatusPageSubscriber.d.ts +1 -0
  77. package/Models/DatabaseModels/StatusPageSubscriber.js +52 -0
  78. package/Models/DatabaseModels/TelemetryException.d.mts +5 -0
  79. package/Models/DatabaseModels/TelemetryException.d.ts +5 -0
  80. package/Models/DatabaseModels/TelemetryException.js +183 -0
  81. package/Models/DatabaseModels/TelemetryExceptionActivity.d.mts +42 -0
  82. package/Models/DatabaseModels/TelemetryExceptionActivity.d.ts +42 -0
  83. package/Models/DatabaseModels/TelemetryExceptionActivity.js +527 -0
  84. package/Models/DatabaseModels/TelemetryExceptionActivity.mjs +3 -0
  85. package/Server/Services/DatabaseService.d.mts +10 -0
  86. package/Server/Services/DatabaseService.d.ts +10 -0
  87. package/Types/AI/AIResourceContext.d.mts +2 -0
  88. package/Types/AI/AIResourceContext.d.ts +2 -0
  89. package/Types/AI/AIResourceContext.js +5 -0
  90. package/Types/Analytics/CookieConsent.d.mts +1 -0
  91. package/Types/Analytics/CookieConsent.d.ts +1 -0
  92. package/Types/Analytics/CookieConsent.js +10 -0
  93. package/Types/Analytics/CookieConsent.mjs +2 -0
  94. package/Types/BaseDatabase/AggregateBy.d.mts +13 -0
  95. package/Types/BaseDatabase/AggregateBy.d.ts +13 -0
  96. package/Types/Billing/SubscriptionPlanPricing.d.mts +2 -0
  97. package/Types/Billing/SubscriptionPlanPricing.d.ts +2 -0
  98. package/Types/Billing/SubscriptionPlanPricing.js +30 -0
  99. package/Types/Billing/SubscriptionPlanPricing.mjs +2 -0
  100. package/Types/Cloud/CloudPlatform.d.mts +3 -0
  101. package/Types/Cloud/CloudPlatform.d.ts +3 -0
  102. package/Types/Cloud/CloudPlatform.js +50 -0
  103. package/Types/Cloud/CloudResourceKind.d.mts +11 -0
  104. package/Types/Cloud/CloudResourceKind.d.ts +11 -0
  105. package/Types/Cloud/CloudResourceKind.js +78 -9
  106. package/Types/Cloud/CloudResourceKind.mjs +5 -0
  107. package/Types/CloudConnection/CloudConnectionCatalog.js +10 -8
  108. package/Types/CloudConnection/CloudConnectionSetupCommands.js +32 -10
  109. package/Types/CustomField/CustomFieldFile.d.mts +69 -0
  110. package/Types/CustomField/CustomFieldFile.d.ts +69 -0
  111. package/Types/CustomField/CustomFieldFile.js +235 -0
  112. package/Types/CustomField/CustomFieldFile.mjs +16 -0
  113. package/Types/CustomField/CustomFieldRecordKinds.d.mts +25 -0
  114. package/Types/CustomField/CustomFieldRecordKinds.d.ts +25 -0
  115. package/Types/CustomField/CustomFieldRecordKinds.js +111 -0
  116. package/Types/CustomField/CustomFieldRecordKinds.mjs +6 -0
  117. package/Types/CustomField/CustomFieldType.d.mts +15 -1
  118. package/Types/CustomField/CustomFieldType.d.ts +15 -1
  119. package/Types/CustomField/CustomFieldType.js +14 -0
  120. package/Types/CustomField/CustomFieldValueFormat.d.mts +3 -2
  121. package/Types/CustomField/CustomFieldValueFormat.d.ts +3 -2
  122. package/Types/CustomField/CustomFieldValueFormat.js +8 -2
  123. package/Types/CustomField/CustomFieldValueMapping.js +31 -2
  124. package/Types/CustomField/CustomFieldValueValidator.js +41 -1
  125. package/Types/Dashboard/DashboardLanguage.d.mts +1 -0
  126. package/Types/Dashboard/DashboardLanguage.d.ts +1 -0
  127. package/Types/Dashboard/DashboardLanguage.js +7 -1
  128. package/Types/Dashboard/DashboardLanguage.mjs +1 -0
  129. package/Types/Dashboard/DashboardTemplateFallbackHints.d.mts +4 -0
  130. package/Types/Dashboard/DashboardTemplateFallbackHints.d.ts +4 -0
  131. package/Types/Dashboard/DashboardTemplateFallbackHints.js +42 -0
  132. package/Types/Dashboard/DashboardTemplateFallbackHints.mjs +4 -0
  133. package/Types/Dashboard/DashboardTemplates.js +34 -11
  134. package/Types/DataSecurity/ComplianceRequirementCatalog.js +4 -0
  135. package/Types/DataSecurity/DataSecurityCheckCatalog.d.mts +1 -0
  136. package/Types/DataSecurity/DataSecurityCheckCatalog.d.ts +1 -0
  137. package/Types/DataSecurity/DataSecurityCheckCatalog.js +53 -0
  138. package/Types/DataSecurity/DataSecurityIdentity.d.mts +27 -0
  139. package/Types/DataSecurity/DataSecurityIdentity.d.ts +27 -0
  140. package/Types/DataSecurity/DataSecurityIdentity.js +160 -0
  141. package/Types/DataSecurity/DataSecurityIdentity.mjs +14 -0
  142. package/Types/DataSecurity/DataSecurityResponseAction.d.mts +9 -1
  143. package/Types/DataSecurity/DataSecurityResponseAction.d.ts +9 -1
  144. package/Types/DataSecurity/DataSecurityResponseAction.js +113 -26
  145. package/Types/DataSecurity/DataSecurityResponseAction.mjs +2 -0
  146. package/Types/DataSecurity/DataStoreAccess.d.mts +7 -0
  147. package/Types/DataSecurity/DataStoreAccess.d.ts +7 -0
  148. package/Types/DataSecurity/DataStoreAccess.js +23 -1
  149. package/Types/DataSecurity/DataStoreAccess.mjs +2 -0
  150. package/Types/Date.d.mts +30 -1
  151. package/Types/Date.d.ts +30 -1
  152. package/Types/Date.js +173 -5
  153. package/Types/Email/EmailMessage.d.mts +1 -0
  154. package/Types/Email/EmailMessage.d.ts +1 -0
  155. package/Types/Episode/EpisodeMembersAdd.d.mts +2 -0
  156. package/Types/Episode/EpisodeMembersAdd.d.ts +2 -0
  157. package/Types/Episode/EpisodeMembersAdd.js +9 -1
  158. package/Types/Episode/EpisodeMembersAdd.mjs +2 -0
  159. package/Types/File/FileContentCheck.d.mts +13 -0
  160. package/Types/File/FileContentCheck.d.ts +13 -0
  161. package/Types/File/FileContentCheck.js +301 -0
  162. package/Types/File/FileContentCheck.mjs +4 -0
  163. package/Types/File/FileSize.d.mts +3 -0
  164. package/Types/File/FileSize.d.ts +3 -0
  165. package/Types/File/FileSize.js +30 -0
  166. package/Types/File/FileSize.mjs +3 -0
  167. package/Types/File/FileTypeIcon.d.mts +4 -0
  168. package/Types/File/FileTypeIcon.d.ts +4 -0
  169. package/Types/File/FileTypeIcon.js +26 -0
  170. package/Types/File/FileTypeIcon.mjs +3 -0
  171. package/Types/File/MimeTypeLabel.d.mts +3 -0
  172. package/Types/File/MimeTypeLabel.d.ts +3 -0
  173. package/Types/File/MimeTypeLabel.js +39 -0
  174. package/Types/File/MimeTypeLabel.mjs +3 -0
  175. package/Types/Form/FormCustomDomain.d.mts +19 -0
  176. package/Types/Form/FormCustomDomain.d.ts +19 -0
  177. package/Types/Form/FormCustomDomain.js +86 -0
  178. package/Types/Form/FormCustomDomain.mjs +13 -0
  179. package/Types/Form/FormField.js +6 -0
  180. package/Types/Form/FormFileAnswer.d.mts +34 -0
  181. package/Types/Form/FormFileAnswer.d.ts +34 -0
  182. package/Types/Form/FormFileAnswer.js +203 -0
  183. package/Types/Form/FormFileAnswer.mjs +10 -0
  184. package/Types/Form/FormPublic.d.mts +16 -1
  185. package/Types/Form/FormPublic.d.ts +16 -1
  186. package/Types/Form/FormPublic.js +184 -2
  187. package/Types/Form/FormPublic.mjs +5 -0
  188. package/Types/Form/FormSubmissionAnswer.js +29 -0
  189. package/Types/InstallScripts/InstallScripts.d.mts +28 -0
  190. package/Types/InstallScripts/InstallScripts.d.ts +28 -0
  191. package/Types/InstallScripts/InstallScripts.js +225 -0
  192. package/Types/InstallScripts/InstallScripts.mjs +11 -0
  193. package/Types/Kubernetes/KubernetesClusterProvider.d.mts +10 -0
  194. package/Types/Kubernetes/KubernetesClusterProvider.d.ts +10 -0
  195. package/Types/Kubernetes/KubernetesClusterProvider.js +95 -0
  196. package/Types/Kubernetes/KubernetesClusterProvider.mjs +8 -0
  197. package/Types/Kubernetes/KubernetesInventoryExtractor.js +23 -16
  198. package/Types/Kubernetes/KubernetesObjectParser.d.mts +24 -0
  199. package/Types/Kubernetes/KubernetesObjectParser.d.ts +24 -0
  200. package/Types/Kubernetes/KubernetesObjectParser.js +64 -0
  201. package/Types/Kubernetes/KubernetesObjectParser.mjs +3 -0
  202. package/Types/Kubernetes/OpenShiftObjectAttributes.d.mts +20 -0
  203. package/Types/Kubernetes/OpenShiftObjectAttributes.d.ts +20 -0
  204. package/Types/Kubernetes/OpenShiftObjectAttributes.js +124 -0
  205. package/Types/Kubernetes/OpenShiftObjectAttributes.mjs +5 -0
  206. package/Types/Kubernetes/OpenShiftObjectParser.d.mts +140 -0
  207. package/Types/Kubernetes/OpenShiftObjectParser.d.ts +140 -0
  208. package/Types/Kubernetes/OpenShiftObjectParser.js +436 -0
  209. package/Types/Kubernetes/OpenShiftObjectParser.mjs +22 -0
  210. package/Types/Metrics/MetricQueryConfigData.d.mts +2 -0
  211. package/Types/Metrics/MetricQueryConfigData.d.ts +2 -0
  212. package/Types/Metrics/MetricQueryFallback.d.mts +10 -0
  213. package/Types/Metrics/MetricQueryFallback.d.ts +10 -0
  214. package/Types/Metrics/MetricQueryFallback.js +2 -0
  215. package/Types/Metrics/MetricQueryFallback.mjs +1 -0
  216. package/Types/Monitor/CephAlertTemplates.d.mts +2 -2
  217. package/Types/Monitor/CephAlertTemplates.d.ts +2 -2
  218. package/Types/Monitor/CephAlertTemplates.js +17 -14
  219. package/Types/Monitor/CephMetricCatalog.d.mts +2 -0
  220. package/Types/Monitor/CephMetricCatalog.d.ts +2 -0
  221. package/Types/Monitor/CephMetricCatalog.js +72 -29
  222. package/Types/Monitor/CephMetricCatalog.mjs +2 -0
  223. package/Types/Monitor/CriteriaFilter.d.mts +17 -0
  224. package/Types/Monitor/CriteriaFilter.d.ts +17 -0
  225. package/Types/Monitor/CriteriaFilter.js +23 -1
  226. package/Types/Monitor/CriteriaFilter.mjs +3 -0
  227. package/Types/Monitor/DockerAlertTemplates.d.mts +1 -0
  228. package/Types/Monitor/DockerAlertTemplates.d.ts +1 -0
  229. package/Types/Monitor/DockerAlertTemplates.js +63 -52
  230. package/Types/Monitor/DockerMetricCatalog.js +16 -0
  231. package/Types/Monitor/DockerSwarmAlertTemplates.d.mts +1 -0
  232. package/Types/Monitor/DockerSwarmAlertTemplates.d.ts +1 -0
  233. package/Types/Monitor/DockerSwarmAlertTemplates.js +13 -2
  234. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.d.mts +34 -0
  235. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.d.ts +34 -0
  236. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.js +170 -0
  237. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.mjs +12 -0
  238. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorResponse.d.mts +17 -0
  239. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorResponse.d.ts +17 -0
  240. package/Types/Monitor/HostMetricCatalog.d.mts +2 -0
  241. package/Types/Monitor/HostMetricCatalog.d.ts +2 -0
  242. package/Types/Monitor/HostMetricCatalog.js +20 -11
  243. package/Types/Monitor/IotAlertTemplates.d.mts +1 -0
  244. package/Types/Monitor/IotAlertTemplates.d.ts +1 -0
  245. package/Types/Monitor/IotAlertTemplates.js +11 -7
  246. package/Types/Monitor/KubernetesAlertTemplates.d.mts +15 -12
  247. package/Types/Monitor/KubernetesAlertTemplates.d.ts +15 -12
  248. package/Types/Monitor/KubernetesAlertTemplates.js +155 -73
  249. package/Types/Monitor/KubernetesMetricCatalog.d.mts +2 -1
  250. package/Types/Monitor/KubernetesMetricCatalog.d.ts +2 -1
  251. package/Types/Monitor/KubernetesMetricCatalog.js +62 -1
  252. package/Types/Monitor/LogMonitor/LogMonitorResponse.d.mts +1 -0
  253. package/Types/Monitor/LogMonitor/LogMonitorResponse.d.ts +1 -0
  254. package/Types/Monitor/MetricMonitor/MetricCriteriaContext.d.mts +24 -1
  255. package/Types/Monitor/MetricMonitor/MetricCriteriaContext.d.ts +24 -1
  256. package/Types/Monitor/MonitorStepCephMonitor.d.mts +1 -0
  257. package/Types/Monitor/MonitorStepCephMonitor.d.ts +1 -0
  258. package/Types/Monitor/MonitorStepDockerMonitor.d.mts +1 -0
  259. package/Types/Monitor/MonitorStepDockerMonitor.d.ts +1 -0
  260. package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.mts +10 -0
  261. package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.ts +10 -0
  262. package/Types/Monitor/MonitorStepDockerSwarmMonitor.js +3 -1
  263. package/Types/Monitor/MonitorStepDockerSwarmMonitor.mjs +1 -0
  264. package/Types/Monitor/MonitorStepExceptionMonitor.d.mts +1 -0
  265. package/Types/Monitor/MonitorStepExceptionMonitor.d.ts +1 -0
  266. package/Types/Monitor/MonitorStepExceptionMonitor.js +13 -2
  267. package/Types/Monitor/MonitorStepHostMonitor.d.mts +1 -0
  268. package/Types/Monitor/MonitorStepHostMonitor.d.ts +1 -0
  269. package/Types/Monitor/MonitorStepIoTMonitor.d.mts +9 -0
  270. package/Types/Monitor/MonitorStepIoTMonitor.d.ts +9 -0
  271. package/Types/Monitor/MonitorStepIoTMonitor.js +21 -0
  272. package/Types/Monitor/MonitorStepKubernetesMonitor.d.mts +11 -1
  273. package/Types/Monitor/MonitorStepKubernetesMonitor.d.ts +11 -1
  274. package/Types/Monitor/MonitorStepKubernetesMonitor.js +15 -4
  275. package/Types/Monitor/MonitorStepKubernetesMonitor.mjs +2 -0
  276. package/Types/Monitor/MonitorStepPodmanMonitor.d.mts +1 -0
  277. package/Types/Monitor/MonitorStepPodmanMonitor.d.ts +1 -0
  278. package/Types/Monitor/MonitorStepProxmoxMonitor.d.mts +5 -3
  279. package/Types/Monitor/MonitorStepProxmoxMonitor.d.ts +5 -3
  280. package/Types/Monitor/MonitorStepProxmoxMonitor.js +1 -1
  281. package/Types/Monitor/MonitorStepStorageArrayMonitor.d.mts +1 -0
  282. package/Types/Monitor/MonitorStepStorageArrayMonitor.d.ts +1 -0
  283. package/Types/Monitor/MonitorStepVMwareMonitor.d.mts +1 -0
  284. package/Types/Monitor/MonitorStepVMwareMonitor.d.ts +1 -0
  285. package/Types/Monitor/OpenShiftAlertTemplates.d.mts +29 -0
  286. package/Types/Monitor/OpenShiftAlertTemplates.d.ts +29 -0
  287. package/Types/Monitor/OpenShiftAlertTemplates.js +220 -0
  288. package/Types/Monitor/OpenShiftAlertTemplates.mjs +9 -0
  289. package/Types/Monitor/PodmanAlertTemplates.d.mts +1 -10
  290. package/Types/Monitor/PodmanAlertTemplates.d.ts +1 -10
  291. package/Types/Monitor/PodmanAlertTemplates.js +40 -85
  292. package/Types/Monitor/PodmanAlertTemplates.mjs +0 -1
  293. package/Types/Monitor/PodmanMetricCatalog.js +16 -0
  294. package/Types/Monitor/ProxmoxAlertTemplates.d.mts +1 -0
  295. package/Types/Monitor/ProxmoxAlertTemplates.d.ts +1 -0
  296. package/Types/Monitor/ProxmoxAlertTemplates.js +190 -4
  297. package/Types/Monitor/ProxmoxAlertTemplates.mjs +1 -0
  298. package/Types/Monitor/ProxmoxMetricCatalog.js +43 -22
  299. package/Types/Monitor/ProxmoxNotificationAlertTemplates.d.mts +24 -0
  300. package/Types/Monitor/ProxmoxNotificationAlertTemplates.d.ts +24 -0
  301. package/Types/Monitor/ProxmoxNotificationAlertTemplates.js +251 -0
  302. package/Types/Monitor/ProxmoxNotificationAlertTemplates.mjs +12 -0
  303. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +71 -3
  304. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.mts +1 -0
  305. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.ts +1 -0
  306. package/Types/Monitor/Recommendation/MonitorRecommendationUtil.js +23 -7
  307. package/Types/Monitor/ServiceAlertTemplates.js +111 -3
  308. package/Types/Monitor/SnmpMonitor/NetworkTopology.d.mts +9 -0
  309. package/Types/Monitor/SnmpMonitor/NetworkTopology.d.ts +9 -0
  310. package/Types/Monitor/SnmpMonitor/SnmpHardwareIdentity.d.mts +5 -0
  311. package/Types/Monitor/SnmpMonitor/SnmpHardwareIdentity.d.ts +5 -0
  312. package/Types/Monitor/SnmpMonitor/SnmpHardwareIdentity.js +2 -0
  313. package/Types/Monitor/SnmpMonitor/SnmpHardwareIdentity.mjs +1 -0
  314. package/Types/Monitor/SnmpMonitor/SnmpVendorIdentity.d.mts +27 -0
  315. package/Types/Monitor/SnmpMonitor/SnmpVendorIdentity.d.ts +27 -0
  316. package/Types/Monitor/SnmpMonitor/SnmpVendorIdentity.js +97 -0
  317. package/Types/Monitor/SnmpMonitor/SnmpVendorIdentity.mjs +4 -0
  318. package/Types/Monitor/StorageArrayAlertTemplates.d.mts +1 -0
  319. package/Types/Monitor/StorageArrayAlertTemplates.d.ts +1 -0
  320. package/Types/Monitor/StorageArrayAlertTemplates.js +8 -1
  321. package/Types/Monitor/StorageArrayMetricCatalog.js +10 -1
  322. package/Types/Monitor/TelemetryAlertRule.d.mts +8 -1
  323. package/Types/Monitor/TelemetryAlertRule.d.ts +8 -1
  324. package/Types/Monitor/TelemetryAlertRule.js +62 -35
  325. package/Types/Monitor/TraceMonitor/TraceMonitorResponse.d.mts +1 -0
  326. package/Types/Monitor/TraceMonitor/TraceMonitorResponse.d.ts +1 -0
  327. package/Types/Monitor/VMwareAlertTemplates.d.mts +1 -0
  328. package/Types/Monitor/VMwareAlertTemplates.d.ts +1 -0
  329. package/Types/Monitor/VMwareAlertTemplates.js +41 -19
  330. package/Types/NetworkController/NetworkControllerProvider.d.mts +1 -0
  331. package/Types/NetworkController/NetworkControllerProvider.d.ts +1 -0
  332. package/Types/NetworkController/NetworkControllerProvider.js +8 -0
  333. package/Types/NetworkController/NetworkControllerProvider.mjs +1 -0
  334. package/Types/NetworkController/NetworkControllerReadSummary.d.mts +3 -0
  335. package/Types/NetworkController/NetworkControllerReadSummary.d.ts +3 -0
  336. package/Types/NetworkController/NetworkControllerReadSummary.js +7 -1
  337. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.mts +49 -2
  338. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.ts +49 -2
  339. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.js +252 -17
  340. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.mjs +7 -0
  341. package/Types/NotificationSetting/NotificationEmailRollupCategory.d.mts +1 -0
  342. package/Types/NotificationSetting/NotificationEmailRollupCategory.d.ts +1 -0
  343. package/Types/NotificationSetting/NotificationEmailRollupCategory.js +9 -0
  344. package/Types/NotificationSetting/NotificationSettingEventType.d.mts +1 -0
  345. package/Types/NotificationSetting/NotificationSettingEventType.d.ts +1 -0
  346. package/Types/NotificationSetting/NotificationSettingEventType.js +8 -0
  347. package/Types/Permission.d.mts +5 -0
  348. package/Types/Permission.d.ts +5 -0
  349. package/Types/Permission.js +59 -1
  350. package/Types/PrivateRecord/PrivateRecordHeld.d.mts +18 -0
  351. package/Types/PrivateRecord/PrivateRecordHeld.d.ts +18 -0
  352. package/Types/PrivateRecord/PrivateRecordHeld.js +101 -0
  353. package/Types/PrivateRecord/PrivateRecordHeld.mjs +2 -0
  354. package/Types/PrivateRecord/PrivateRecordParts.d.mts +14 -0
  355. package/Types/PrivateRecord/PrivateRecordParts.d.ts +14 -0
  356. package/Types/PrivateRecord/PrivateRecordParts.js +95 -0
  357. package/Types/PrivateRecord/PrivateRecordParts.mjs +4 -0
  358. package/Types/ReaderLanguage.d.mts +11 -0
  359. package/Types/ReaderLanguage.d.ts +11 -0
  360. package/Types/ReaderLanguage.js +173 -0
  361. package/Types/ReaderLanguage.mjs +12 -0
  362. package/Types/ReadingDirection.d.mts +4 -0
  363. package/Types/ReadingDirection.d.ts +4 -0
  364. package/Types/ReadingDirection.js +52 -1
  365. package/Types/ReadingDirection.mjs +4 -0
  366. package/Types/Rules/RuleCriteriaSubject.d.mts +3 -1
  367. package/Types/Rules/RuleCriteriaSubject.d.ts +3 -1
  368. package/Types/Rules/RuleCriteriaSubject.js +16 -1
  369. package/Types/Rules/RuleCriteriaSubject.mjs +1 -0
  370. package/Types/Rules/RuleRun.d.mts +5 -1
  371. package/Types/Rules/RuleRun.d.ts +5 -1
  372. package/Types/Rules/RuleRun.js +10 -2
  373. package/Types/Rum/SessionReplay.d.mts +1 -0
  374. package/Types/Rum/SessionReplay.d.ts +1 -0
  375. package/Types/Rum/SessionReplay.js +4 -2
  376. package/Types/Rum/SessionReplay.mjs +1 -0
  377. package/Types/Rum/UserFlow.d.mts +11 -0
  378. package/Types/Rum/UserFlow.d.ts +11 -0
  379. package/Types/Rum/UserFlow.js +27 -12
  380. package/Types/SecurityCase/SecurityCaseContext.d.mts +33 -1
  381. package/Types/SecurityCase/SecurityCaseContext.d.ts +33 -1
  382. package/Types/SecurityCase/SecurityCaseContext.js +6 -1
  383. package/Types/SecurityCase/SecurityCaseContext.mjs +2 -0
  384. package/Types/SecurityEvent/RealTimeDetection.d.mts +13 -0
  385. package/Types/SecurityEvent/RealTimeDetection.d.ts +13 -0
  386. package/Types/SecurityEvent/RealTimeDetection.js +60 -0
  387. package/Types/SecurityEvent/RealTimeDetection.mjs +8 -0
  388. package/Types/SecurityPlaybook/SecurityPlaybookAction.d.mts +7 -0
  389. package/Types/SecurityPlaybook/SecurityPlaybookAction.d.ts +7 -0
  390. package/Types/SecurityPlaybook/SecurityPlaybookAction.js +80 -3
  391. package/Types/SecurityPlaybook/SecurityPlaybookStep.d.mts +15 -1
  392. package/Types/SecurityPlaybook/SecurityPlaybookStep.d.ts +15 -1
  393. package/Types/SecurityPlaybook/SecurityPlaybookStep.js +112 -3
  394. package/Types/SecurityPlaybook/SecurityPlaybookStep.mjs +5 -0
  395. package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.d.mts +44 -0
  396. package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.d.ts +44 -0
  397. package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.js +188 -0
  398. package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.mjs +9 -0
  399. package/Types/SecurityPlaybook/SecurityPlaybookStepResult.d.mts +1 -0
  400. package/Types/SecurityPlaybook/SecurityPlaybookStepResult.d.ts +1 -0
  401. package/Types/SecurityPlaybook/SecurityPlaybookStepResult.js +1 -0
  402. package/Types/SecurityPlaybook/SecurityPlaybookTemplates.d.mts +2 -0
  403. package/Types/SecurityPlaybook/SecurityPlaybookTemplates.d.ts +2 -0
  404. package/Types/SecurityPlaybook/SecurityPlaybookTemplates.js +67 -16
  405. package/Types/SecurityPlaybook/SecurityPlaybookTemplates.mjs +2 -0
  406. package/Types/StatusPage/DefaultStatusNames.d.mts +4 -0
  407. package/Types/StatusPage/DefaultStatusNames.d.ts +4 -0
  408. package/Types/StatusPage/DefaultStatusNames.js +50 -0
  409. package/Types/StatusPage/DefaultStatusNames.mjs +4 -0
  410. package/Types/StatusPage/StateChangeNoteMessage.d.mts +18 -1
  411. package/Types/StatusPage/StateChangeNoteMessage.d.ts +18 -1
  412. package/Types/StatusPage/StateChangeNoteMessage.js +60 -9
  413. package/Types/StatusPage/StateChangeNoteMessage.mjs +1 -0
  414. package/Types/StatusPage/StatusPageLanguage.d.mts +2 -0
  415. package/Types/StatusPage/StatusPageLanguage.d.ts +2 -0
  416. package/Types/StatusPage/StatusPageLanguage.js +10 -1
  417. package/Types/StatusPage/StatusPageLanguage.mjs +2 -0
  418. package/Types/Telemetry/ExceptionFingerprintLookup.d.mts +9 -0
  419. package/Types/Telemetry/ExceptionFingerprintLookup.d.ts +9 -0
  420. package/Types/Telemetry/ExceptionFingerprintLookup.js +55 -0
  421. package/Types/Telemetry/ExceptionFingerprintLookup.mjs +4 -0
  422. package/Types/Telemetry/ExceptionGroupFingerprints.d.mts +10 -0
  423. package/Types/Telemetry/ExceptionGroupFingerprints.d.ts +10 -0
  424. package/Types/Telemetry/ExceptionGroupFingerprints.js +114 -0
  425. package/Types/Telemetry/ExceptionGroupFingerprints.mjs +6 -0
  426. package/Types/Telemetry/ExceptionListStats.d.mts +19 -0
  427. package/Types/Telemetry/ExceptionListStats.d.ts +19 -0
  428. package/Types/Telemetry/ExceptionListStats.js +122 -0
  429. package/Types/Telemetry/ExceptionListStats.mjs +9 -0
  430. package/Types/Telemetry/ExceptionSpanScope.d.mts +3 -0
  431. package/Types/Telemetry/ExceptionSpanScope.d.ts +3 -0
  432. package/Types/Telemetry/ExceptionSpanScope.js +39 -3
  433. package/Types/Telemetry/ExceptionSpanScope.mjs +2 -0
  434. package/Types/Telemetry/SimilarExceptions.d.mts +33 -0
  435. package/Types/Telemetry/SimilarExceptions.d.ts +33 -0
  436. package/Types/Telemetry/SimilarExceptions.js +109 -0
  437. package/Types/Telemetry/SimilarExceptions.mjs +10 -0
  438. package/Types/Telemetry/TelemetrySavedViewState.d.mts +4 -0
  439. package/Types/Telemetry/TelemetrySavedViewState.d.ts +4 -0
  440. package/Types/Telemetry/TraceSpanType.d.mts +1 -0
  441. package/Types/Telemetry/TraceSpanType.d.ts +1 -0
  442. package/Types/Telemetry/TraceSpanType.js +17 -3
  443. package/Types/Telemetry/TraceSpanType.mjs +1 -0
  444. package/Types/Theme/ThemePreference.js +2 -1
  445. package/Types/Translator.d.mts +77 -0
  446. package/Types/Translator.d.ts +77 -0
  447. package/Types/Translator.js +582 -0
  448. package/Types/Translator.mjs +18 -0
  449. package/Types/VideoCall/VideoCallProvider.js +6 -3
  450. package/Types/Workflow/ComponentID.d.mts +5 -0
  451. package/Types/Workflow/ComponentID.d.ts +5 -0
  452. package/Types/Workflow/ComponentID.js +12 -0
  453. package/Types/Workflow/Components/API.js +91 -0
  454. package/Types/Workflow/Components/ApiGetById.d.mts +16 -0
  455. package/Types/Workflow/Components/ApiGetById.d.ts +16 -0
  456. package/Types/Workflow/Components/ApiGetById.js +69 -0
  457. package/Types/Workflow/Components/ApiGetById.mjs +4 -0
  458. package/Types/Workflow/Components/FromAnotherTool.d.mts +94 -0
  459. package/Types/Workflow/Components/FromAnotherTool.d.ts +94 -0
  460. package/Types/Workflow/Components/FromAnotherTool.js +541 -0
  461. package/Types/Workflow/Components/FromAnotherTool.mjs +23 -0
  462. package/Types/Workflow/Components/JavaScriptCheck.d.mts +16 -0
  463. package/Types/Workflow/Components/JavaScriptCheck.d.ts +16 -0
  464. package/Types/Workflow/Components/JavaScriptCheck.js +145 -0
  465. package/Types/Workflow/Components/JavaScriptCheck.mjs +5 -0
  466. package/Types/Workflow/Components/Zabbix.d.mts +62 -0
  467. package/Types/Workflow/Components/Zabbix.d.ts +62 -0
  468. package/Types/Workflow/Components/Zabbix.js +343 -0
  469. package/Types/Workflow/Components/Zabbix.mjs +17 -0
  470. package/Types/Workflow/Components.js +21 -0
  471. package/Types/Workflow/Documentation/APIDocumentation.d.mts +1 -0
  472. package/Types/Workflow/Documentation/APIDocumentation.d.ts +1 -0
  473. package/Types/Workflow/Documentation/APIDocumentation.js +48 -1
  474. package/Types/Workflow/Documentation/APIDocumentation.mjs +1 -0
  475. package/Types/Workflow/Documentation/DocumentationContext.js +2 -0
  476. package/Types/Workflow/Documentation/DocumentationLinks.d.mts +3 -0
  477. package/Types/Workflow/Documentation/DocumentationLinks.d.ts +3 -0
  478. package/Types/Workflow/Documentation/DocumentationLinks.js +3 -0
  479. package/Types/Workflow/Documentation/FromAnotherToolDocumentation.d.mts +5 -0
  480. package/Types/Workflow/Documentation/FromAnotherToolDocumentation.d.ts +5 -0
  481. package/Types/Workflow/Documentation/FromAnotherToolDocumentation.js +89 -0
  482. package/Types/Workflow/Documentation/FromAnotherToolDocumentation.mjs +3 -0
  483. package/Types/Workflow/Documentation/Index.js +7 -0
  484. package/Types/Workflow/Documentation/UtilityDocumentation.d.mts +1 -0
  485. package/Types/Workflow/Documentation/UtilityDocumentation.d.ts +1 -0
  486. package/Types/Workflow/Documentation/UtilityDocumentation.js +40 -1
  487. package/Types/Workflow/Documentation/UtilityDocumentation.mjs +1 -0
  488. package/Types/Workflow/Documentation/ZabbixDocumentation.d.mts +4 -0
  489. package/Types/Workflow/Documentation/ZabbixDocumentation.d.ts +4 -0
  490. package/Types/Workflow/Documentation/ZabbixDocumentation.js +67 -0
  491. package/Types/Workflow/Documentation/ZabbixDocumentation.mjs +2 -0
  492. package/Types/Workflow/TemplateLayout.d.mts +44 -0
  493. package/Types/Workflow/TemplateLayout.d.ts +44 -0
  494. package/Types/Workflow/TemplateLayout.js +125 -0
  495. package/Types/Workflow/TemplateLayout.mjs +7 -0
  496. package/Types/Workflow/Templates.d.mts +42 -12
  497. package/Types/Workflow/Templates.d.ts +42 -12
  498. package/Types/Workflow/Templates.js +2046 -6220
  499. package/Types/Workflow/Templates.mjs +1 -0
  500. package/Types/Workflow/UnhandledStepFailure.d.mts +15 -0
  501. package/Types/Workflow/UnhandledStepFailure.d.ts +15 -0
  502. package/Types/Workflow/UnhandledStepFailure.js +68 -0
  503. package/Types/Workflow/UnhandledStepFailure.mjs +5 -0
  504. package/Types/Workspace/MicrosoftTeamsCloud.d.mts +26 -0
  505. package/Types/Workspace/MicrosoftTeamsCloud.d.ts +26 -0
  506. package/Types/Workspace/MicrosoftTeamsCloud.js +214 -0
  507. package/Types/Workspace/MicrosoftTeamsCloud.mjs +4 -0
  508. package/Types/Workspace/WorkspaceChannelLink.d.mts +1 -0
  509. package/Types/Workspace/WorkspaceChannelLink.d.ts +1 -0
  510. package/Types/Workspace/WorkspaceChannelLink.js +45 -6
  511. package/UI/Utils/TranslateTemplate.d.mts +3 -68
  512. package/UI/Utils/TranslateTemplate.d.ts +3 -68
  513. package/Utils/Dashboard/DashboardBoardLayout.d.mts +46 -0
  514. package/Utils/Dashboard/DashboardBoardLayout.d.ts +46 -0
  515. package/Utils/Dashboard/DashboardBoardLayout.js +238 -0
  516. package/Utils/Dashboard/DashboardBoardLayout.mjs +11 -0
  517. package/Utils/Dashboard/ValueWidgetLayout.js +9 -1
  518. package/Utils/Dashboard/VariableInterpolation.d.mts +1 -0
  519. package/Utils/Dashboard/VariableInterpolation.d.ts +1 -0
  520. package/Utils/Dashboard/VariableInterpolation.js +19 -0
  521. package/Utils/DataSecurity/FieldClassifier.d.mts +2 -0
  522. package/Utils/DataSecurity/FieldClassifier.d.ts +2 -0
  523. package/Utils/DataSecurity/UnplacedFields.d.mts +35 -0
  524. package/Utils/DataSecurity/UnplacedFields.d.ts +35 -0
  525. package/Utils/DataSecurity/UnplacedFields.js +407 -0
  526. package/Utils/DataSecurity/UnplacedFields.mjs +19 -0
  527. package/Utils/Exceptions/ExceptionActivity.d.mts +22 -0
  528. package/Utils/Exceptions/ExceptionActivity.d.ts +22 -0
  529. package/Utils/Exceptions/ExceptionActivity.js +141 -0
  530. package/Utils/Exceptions/ExceptionActivity.mjs +6 -0
  531. package/Utils/Exceptions/ExceptionUserId.d.mts +8 -0
  532. package/Utils/Exceptions/ExceptionUserId.d.ts +8 -0
  533. package/Utils/Exceptions/ExceptionUserId.js +79 -0
  534. package/Utils/Exceptions/ExceptionUserId.mjs +6 -0
  535. package/Utils/Inventory/InventoryAssetDetails.d.mts +7 -0
  536. package/Utils/Inventory/InventoryAssetDetails.d.ts +7 -0
  537. package/Utils/Inventory/InventoryAssetDetails.js +70 -1
  538. package/Utils/Inventory/InventoryAssetDetails.mjs +1 -0
  539. package/Utils/Metrics/MetricQueryFallback.d.mts +24 -0
  540. package/Utils/Metrics/MetricQueryFallback.d.ts +24 -0
  541. package/Utils/Metrics/MetricQueryFallback.js +208 -0
  542. package/Utils/Metrics/MetricQueryFallback.mjs +2 -0
  543. package/Utils/Monitor/EndpointAttachmentUtil.d.mts +15 -2
  544. package/Utils/Monitor/EndpointAttachmentUtil.d.ts +15 -2
  545. package/Utils/Monitor/EndpointAttachmentUtil.js +83 -1
  546. package/Utils/Monitor/EndpointAttachmentUtil.mjs +1 -0
  547. package/Utils/Monitor/NeighborIdentityUtil.d.mts +15 -0
  548. package/Utils/Monitor/NeighborIdentityUtil.d.ts +15 -0
  549. package/Utils/Monitor/NeighborIdentityUtil.js +58 -0
  550. package/Utils/Monitor/NeighborIdentityUtil.mjs +3 -0
  551. package/Utils/Monitor/NetworkTopologyUtil.d.mts +13 -0
  552. package/Utils/Monitor/NetworkTopologyUtil.d.ts +13 -0
  553. package/Utils/Monitor/NetworkTopologyUtil.js +293 -70
  554. package/Utils/NetworkDevice/DeviceOwnMacUtil.d.mts +20 -0
  555. package/Utils/NetworkDevice/DeviceOwnMacUtil.d.ts +20 -0
  556. package/Utils/NetworkDevice/DeviceOwnMacUtil.js +81 -0
  557. package/Utils/NetworkDevice/DeviceOwnMacUtil.mjs +4 -0
  558. package/Utils/NetworkDevice/DeviceWebUiUtil.d.mts +20 -0
  559. package/Utils/NetworkDevice/DeviceWebUiUtil.d.ts +20 -0
  560. package/Utils/NetworkDevice/DeviceWebUiUtil.js +139 -0
  561. package/Utils/NetworkDevice/DeviceWebUiUtil.mjs +4 -0
  562. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.mts +1 -0
  563. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.ts +1 -0
  564. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.js +64 -6
  565. package/Utils/NetworkDevice/SystemDescriptionUtil.d.mts +10 -0
  566. package/Utils/NetworkDevice/SystemDescriptionUtil.d.ts +10 -0
  567. package/Utils/NetworkDevice/SystemDescriptionUtil.js +69 -5
  568. package/Utils/NetworkDevice/SystemDescriptionUtil.mjs +2 -0
  569. package/Utils/NetworkDiscovery/DiscoveredDetailsPlan.d.mts +1 -0
  570. package/Utils/NetworkDiscovery/DiscoveredDetailsPlan.d.ts +1 -0
  571. package/Utils/NetworkDiscovery/DiscoveredDetailsPlan.js +19 -6
  572. package/Utils/NetworkDiscovery/DiscoveredHostUtil.d.mts +1 -1
  573. package/Utils/NetworkDiscovery/DiscoveredHostUtil.d.ts +1 -1
  574. package/Utils/NetworkDiscovery/DiscoveredHostUtil.js +18 -1
  575. package/Utils/Proxmox/ProxmoxNotifications.d.mts +62 -0
  576. package/Utils/Proxmox/ProxmoxNotifications.d.ts +62 -0
  577. package/Utils/Proxmox/ProxmoxNotifications.js +458 -0
  578. package/Utils/Proxmox/ProxmoxNotifications.mjs +20 -0
  579. package/Utils/Rules/RuleRunSummary.d.mts +6 -3
  580. package/Utils/Rules/RuleRunSummary.d.ts +6 -3
  581. package/Utils/Rules/RuleRunSummary.js +11 -7
  582. package/Utils/Rum/UserFlow.d.mts +20 -0
  583. package/Utils/Rum/UserFlow.d.ts +20 -0
  584. package/Utils/Rum/UserFlow.js +41 -3
  585. package/Utils/Rum/UserFlow.mjs +1 -0
  586. package/Utils/Schema/MonitorSchemas.js +2 -0
  587. package/Utils/Sms/Gsm7Text.d.mts +3 -0
  588. package/Utils/Sms/Gsm7Text.d.ts +3 -0
  589. package/Utils/Sms/Gsm7Text.js +109 -8
  590. package/Utils/Sms/Gsm7Text.mjs +3 -0
  591. package/Utils/Sms/SubscriberSms.js +9 -1
  592. package/Utils/Telemetry/ChangeEventFields.d.mts +11 -0
  593. package/Utils/Telemetry/ChangeEventFields.d.ts +11 -0
  594. package/Utils/Telemetry/ChangeEventFields.js +33 -3
  595. package/Utils/Telemetry/CloudAppRevisionName.d.mts +4 -0
  596. package/Utils/Telemetry/CloudAppRevisionName.d.ts +4 -0
  597. package/Utils/Telemetry/CloudAppRevisionName.js +27 -0
  598. package/Utils/Telemetry/CloudAppRevisionName.mjs +2 -0
  599. package/Utils/Telemetry/CloudInstanceIdentity.d.mts +1 -0
  600. package/Utils/Telemetry/CloudInstanceIdentity.d.ts +1 -0
  601. package/Utils/Telemetry/CloudInstanceIdentity.js +10 -0
  602. package/Utils/Telemetry/CloudInstanceIdentity.mjs +1 -0
  603. package/package.json +1 -1
@@ -3,8 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.StateChangeNoteText = void 0;
6
7
  const Text_1 = __importDefault(require("../Text"));
7
8
  const FeedMarkdown_1 = require("../../Utils/Markdown/FeedMarkdown");
9
+ const Translator_1 = require("../Translator");
10
+ const DefaultStatusNames_1 = require("./DefaultStatusNames");
8
11
  /*
9
12
  * WHAT A PUBLIC NOTE POSTED WITH A STATE CHANGE ADDS TO ITS MESSAGES.
10
13
  *
@@ -28,55 +31,103 @@ const FeedMarkdown_1 = require("../../Utils/Markdown/FeedMarkdown");
28
31
  * always were. Custom templates already have the state, as
29
32
  * {{incidentState}} and {{scheduledMaintenanceState}}: for a note posted
30
33
  * with a state change it is the state the change moved to.
34
+ *
35
+ * Each message is written in the language of the translator it is handed -
36
+ * a subscriber's (Server/Utils/StatusPage/SubscriberLanguage), with
37
+ * OneUptime's default state names in that language and a project's own as
38
+ * written. Without one it is the English it always was.
31
39
  */
40
+ const ENGLISH = (0, Translator_1.createTranslator)(undefined, "en");
41
+ exports.StateChangeNoteText = {
42
+ incidentEmailSubject: (0, Translator_1.translationKey)("[{{state}} Incident] {{title}}"),
43
+ incidentCustomTemplateEmailSubject: (0, Translator_1.translationKey)("[Incident {{state}}] {{title}}"),
44
+ scheduledMaintenanceEmailSubject: (0, Translator_1.translationKey)("[{{state}} Scheduled Maintenance] {{title}}"),
45
+ scheduledMaintenanceCustomTemplateEmailSubject: (0, Translator_1.translationKey)("[Scheduled Maintenance {{state}}] {{title}}"),
46
+ incidentSmsHeadline: (0, Translator_1.translationKey)("Incident {{title}} on {{statusPageName}} is {{state}}."),
47
+ scheduledMaintenanceSmsHeadline: (0, Translator_1.translationKey)("Maintenance {{title}} on {{statusPageName}} is {{state}}."),
48
+ chatStatusLabel: (0, Translator_1.translationKey)("Status:"),
49
+ };
32
50
  class StateChangeNoteMessage {
33
51
  // A state as the state change messages always wrote it: "Resolved".
34
52
  static formatStateName(stateName) {
35
53
  return Text_1.default.uppercaseFirstLetter(stateName.trim());
36
54
  }
55
+ /*
56
+ * A state as a sentence names it: as formatStateName writes it, with
57
+ * OneUptime's default names in the sentence's language.
58
+ */
59
+ static stateInSentence(stateName) {
60
+ return (0, Translator_1.composedValue)((translator) => {
61
+ return StateChangeNoteMessage.formatStateName((0, DefaultStatusNames_1.translateStateName)(translator, stateName.trim()));
62
+ });
63
+ }
37
64
  // The default incident email's subject: "[Resolved Incident] <title>".
38
65
  static getIncidentEmailSubject(data) {
39
- return `[${this.formatStateName(data.stateName)} Incident] ${data.incidentTitle}`;
66
+ return (data.translator || ENGLISH).translateTemplate(exports.StateChangeNoteText.incidentEmailSubject, {
67
+ state: this.stateInSentence(data.stateName),
68
+ title: data.incidentTitle,
69
+ });
40
70
  }
41
71
  /*
42
72
  * A custom incident email template's subject when it has none of its own:
43
73
  * "[Incident Resolved] <title>", as the state change's was.
44
74
  */
45
75
  static getIncidentCustomTemplateEmailSubject(data) {
46
- return `[Incident ${this.formatStateName(data.stateName)}] ${data.incidentTitle}`;
76
+ return (data.translator || ENGLISH).translateTemplate(exports.StateChangeNoteText.incidentCustomTemplateEmailSubject, {
77
+ state: this.stateInSentence(data.stateName),
78
+ title: data.incidentTitle,
79
+ });
47
80
  }
48
81
  /*
49
82
  * The default scheduled maintenance email's subject:
50
83
  * "[Ongoing Scheduled Maintenance] <title>".
51
84
  */
52
85
  static getScheduledMaintenanceEmailSubject(data) {
53
- return `[${this.formatStateName(data.stateName)} Scheduled Maintenance] ${data.eventTitle}`;
86
+ return (data.translator || ENGLISH).translateTemplate(exports.StateChangeNoteText.scheduledMaintenanceEmailSubject, {
87
+ state: this.stateInSentence(data.stateName),
88
+ title: data.eventTitle,
89
+ });
54
90
  }
55
91
  /*
56
92
  * A custom scheduled maintenance email template's subject when it has
57
93
  * none of its own: "[Scheduled Maintenance Ongoing] <title>".
58
94
  */
59
95
  static getScheduledMaintenanceCustomTemplateEmailSubject(data) {
60
- return `[Scheduled Maintenance ${this.formatStateName(data.stateName)}] ${data.eventTitle}`;
96
+ return (data.translator || ENGLISH).translateTemplate(exports.StateChangeNoteText.scheduledMaintenanceCustomTemplateEmailSubject, {
97
+ state: this.stateInSentence(data.stateName),
98
+ title: data.eventTitle,
99
+ });
61
100
  }
62
101
  // How the default incident SMS starts: "Incident <title> on <page> is Resolved."
63
102
  static getIncidentSmsHeadline(data) {
64
- return `Incident ${data.incidentTitle} on ${data.statusPageName} is ${this.formatStateName(data.stateName)}.`;
103
+ return (data.translator || ENGLISH).translateTemplate(exports.StateChangeNoteText.incidentSmsHeadline, {
104
+ title: data.incidentTitle,
105
+ statusPageName: data.statusPageName,
106
+ state: this.stateInSentence(data.stateName),
107
+ });
65
108
  }
66
109
  /*
67
110
  * How the default scheduled maintenance SMS starts:
68
111
  * "Maintenance <title> on <page> is Ongoing."
69
112
  */
70
113
  static getScheduledMaintenanceSmsHeadline(data) {
71
- return `Maintenance ${data.eventTitle} on ${data.statusPageName} is ${this.formatStateName(data.stateName)}.`;
114
+ return (data.translator || ENGLISH).translateTemplate(exports.StateChangeNoteText.scheduledMaintenanceSmsHeadline, {
115
+ title: data.eventTitle,
116
+ statusPageName: data.statusPageName,
117
+ state: this.stateInSentence(data.stateName),
118
+ });
72
119
  }
73
120
  /*
74
121
  * The line a default Slack or Microsoft Teams message names the state on.
75
122
  * The state's name is plain text in a Markdown message, placed as text
76
- * (mdText), so it reads as typed.
123
+ * (mdText), so it reads as typed - OneUptime's default names in the
124
+ * reader's language, a project's own as written.
77
125
  */
78
- static getChatStatusLine(stateName) {
79
- return (0, FeedMarkdown_1.mdText) `**${this.statusLabel}:** ${stateName.trim()}`;
126
+ static getChatStatusLine(stateName, translator) {
127
+ const reader = translator || ENGLISH;
128
+ const label = reader.translateText(exports.StateChangeNoteText.chatStatusLabel) ||
129
+ exports.StateChangeNoteText.chatStatusLabel;
130
+ return (0, FeedMarkdown_1.mdText) `**${label}** ${(0, DefaultStatusNames_1.translateStateName)(reader, stateName.trim())}`;
80
131
  }
81
132
  }
82
133
  // The label of the line every chat message and email names the state on.
@@ -1,2 +1,3 @@
1
1
  import commonJsModule from "./StateChangeNoteMessage.js";
2
2
  export default commonJsModule.default;
3
+ export const StateChangeNoteText = commonJsModule.StateChangeNoteText;
@@ -5,6 +5,8 @@ export interface StatusPageLanguage {
5
5
  englishName: string;
6
6
  }
7
7
  export declare const DEFAULT_STATUS_PAGE_LANGUAGE: string;
8
+ export declare const STATUS_PAGE_LANGUAGE_STORAGE_KEY: string;
9
+ export declare const STATUS_PAGE_LANGUAGE_USER_CHOICE_KEY: string;
8
10
  export declare const SUPPORTED_STATUS_PAGE_LANGUAGES: Array<StatusPageLanguage>;
9
11
  export declare const SUPPORTED_STATUS_PAGE_LANGUAGE_CODES: Array<string>;
10
12
  export interface StatusPageLanguageHead {
@@ -5,6 +5,8 @@ export interface StatusPageLanguage {
5
5
  englishName: string;
6
6
  }
7
7
  export declare const DEFAULT_STATUS_PAGE_LANGUAGE: string;
8
+ export declare const STATUS_PAGE_LANGUAGE_STORAGE_KEY: string;
9
+ export declare const STATUS_PAGE_LANGUAGE_USER_CHOICE_KEY: string;
8
10
  export declare const SUPPORTED_STATUS_PAGE_LANGUAGES: Array<StatusPageLanguage>;
9
11
  export declare const SUPPORTED_STATUS_PAGE_LANGUAGE_CODES: Array<string>;
10
12
  export interface StatusPageLanguageHead {
@@ -1,8 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getStatusPageLanguageHead = exports.SUPPORTED_STATUS_PAGE_LANGUAGE_CODES = exports.SUPPORTED_STATUS_PAGE_LANGUAGES = exports.DEFAULT_STATUS_PAGE_LANGUAGE = void 0;
3
+ exports.getStatusPageLanguageHead = exports.SUPPORTED_STATUS_PAGE_LANGUAGE_CODES = exports.SUPPORTED_STATUS_PAGE_LANGUAGES = exports.STATUS_PAGE_LANGUAGE_USER_CHOICE_KEY = exports.STATUS_PAGE_LANGUAGE_STORAGE_KEY = exports.DEFAULT_STATUS_PAGE_LANGUAGE = void 0;
4
4
  const ReadingDirection_1 = require("../ReadingDirection");
5
5
  exports.DEFAULT_STATUS_PAGE_LANGUAGE = "en";
6
+ // Where a visitor's language is kept in their browser.
7
+ exports.STATUS_PAGE_LANGUAGE_STORAGE_KEY = "statusPageLang";
8
+ /*
9
+ * Separate key tracks whether the user explicitly chose a language (vs.
10
+ * the value being auto-detected from the browser). Without this we cannot
11
+ * distinguish a stored auto-detection from a real user choice, so the
12
+ * status page's configured default would be ignored after the first visit.
13
+ */
14
+ exports.STATUS_PAGE_LANGUAGE_USER_CHOICE_KEY = "statusPageLangUserChoice";
6
15
  exports.SUPPORTED_STATUS_PAGE_LANGUAGES = [
7
16
  { code: "en", nativeName: "English", englishName: "English" },
8
17
  { code: "de", nativeName: "Deutsch", englishName: "German" },
@@ -1,5 +1,7 @@
1
1
  import commonJsModule from "./StatusPageLanguage.js";
2
2
  export const DEFAULT_STATUS_PAGE_LANGUAGE = commonJsModule.DEFAULT_STATUS_PAGE_LANGUAGE;
3
+ export const STATUS_PAGE_LANGUAGE_STORAGE_KEY = commonJsModule.STATUS_PAGE_LANGUAGE_STORAGE_KEY;
4
+ export const STATUS_PAGE_LANGUAGE_USER_CHOICE_KEY = commonJsModule.STATUS_PAGE_LANGUAGE_USER_CHOICE_KEY;
3
5
  export const SUPPORTED_STATUS_PAGE_LANGUAGES = commonJsModule.SUPPORTED_STATUS_PAGE_LANGUAGES;
4
6
  export const SUPPORTED_STATUS_PAGE_LANGUAGE_CODES = commonJsModule.SUPPORTED_STATUS_PAGE_LANGUAGE_CODES;
5
7
  export const getStatusPageLanguageHead = commonJsModule.getStatusPageLanguageHead;
@@ -0,0 +1,9 @@
1
+ export declare const MAX_EXCEPTION_FINGERPRINT_LOOKUP: number;
2
+ export declare const MAX_EXCEPTION_FINGERPRINT_LENGTH: number;
3
+ export interface ExceptionOfFingerprint {
4
+ fingerprint: string;
5
+ telemetryExceptionId: string;
6
+ exceptionType: string | null;
7
+ message: string | null;
8
+ }
9
+ export declare function readExceptionsOfFingerprints(value: unknown): Array<ExceptionOfFingerprint>;
@@ -0,0 +1,9 @@
1
+ export declare const MAX_EXCEPTION_FINGERPRINT_LOOKUP: number;
2
+ export declare const MAX_EXCEPTION_FINGERPRINT_LENGTH: number;
3
+ export interface ExceptionOfFingerprint {
4
+ fingerprint: string;
5
+ telemetryExceptionId: string;
6
+ exceptionType: string | null;
7
+ message: string | null;
8
+ }
9
+ export declare function readExceptionsOfFingerprints(value: unknown): Array<ExceptionOfFingerprint>;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /*
3
+ * THE EXCEPTION EACH FINGERPRINT OF AN OCCURRENCE COUNTS ON.
4
+ *
5
+ * A span, a log, a security event or a session replay names an exception by
6
+ * the fingerprint of its occurrence, and the occurrences of an exception
7
+ * merged into another keep their own (TelemetryExceptionMerge). One request
8
+ * answers for a batch of them (POST /telemetry-exception/by-fingerprints):
9
+ * each fingerprint with the exceptions it counts on - its own, or the one it
10
+ * was merged into - that the reader may read
11
+ * (TelemetryExceptionService.findByOccurrenceFingerprints). Shared by the
12
+ * server, which writes it, and the Dashboard, which reads it back
13
+ * defensively.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MAX_EXCEPTION_FINGERPRINT_LENGTH = exports.MAX_EXCEPTION_FINGERPRINT_LOOKUP = void 0;
17
+ exports.readExceptionsOfFingerprints = readExceptionsOfFingerprints;
18
+ // The most fingerprints one request asks about: as many as a session replay's header keeps.
19
+ exports.MAX_EXCEPTION_FINGERPRINT_LOOKUP = 100;
20
+ // The longest fingerprint asked about. Ingest's are 64 hexadecimal characters.
21
+ exports.MAX_EXCEPTION_FINGERPRINT_LENGTH = 256;
22
+ function readText(value) {
23
+ return typeof value === "string" ? value.trim() : "";
24
+ }
25
+ /*
26
+ * The answer's entries, in its order, leaving out any that is not one: a
27
+ * fingerprint without an exception, or an exception without an id.
28
+ */
29
+ function readExceptionsOfFingerprints(value) {
30
+ const exceptions = value && typeof value === "object"
31
+ ? value["exceptions"]
32
+ : undefined;
33
+ if (!Array.isArray(exceptions)) {
34
+ return [];
35
+ }
36
+ const read = [];
37
+ for (const entry of exceptions) {
38
+ if (!entry || typeof entry !== "object") {
39
+ continue;
40
+ }
41
+ const record = entry;
42
+ const fingerprint = readText(record["fingerprint"]);
43
+ const telemetryExceptionId = readText(record["telemetryExceptionId"]);
44
+ if (!fingerprint || !telemetryExceptionId) {
45
+ continue;
46
+ }
47
+ read.push({
48
+ fingerprint,
49
+ telemetryExceptionId,
50
+ exceptionType: readText(record["exceptionType"]) || null,
51
+ message: readText(record["message"]) || null,
52
+ });
53
+ }
54
+ return read;
55
+ }
@@ -0,0 +1,4 @@
1
+ import commonJsModule from "./ExceptionFingerprintLookup.js";
2
+ export const MAX_EXCEPTION_FINGERPRINT_LENGTH = commonJsModule.MAX_EXCEPTION_FINGERPRINT_LENGTH;
3
+ export const MAX_EXCEPTION_FINGERPRINT_LOOKUP = commonJsModule.MAX_EXCEPTION_FINGERPRINT_LOOKUP;
4
+ export const readExceptionsOfFingerprints = commonJsModule.readExceptionsOfFingerprints;
@@ -0,0 +1,10 @@
1
+ import Includes from "../BaseDatabase/Includes.mjs";
2
+ export declare const MAX_MERGED_FINGERPRINTS_PER_EXCEPTION: number;
3
+ export declare function toExceptionGroupFingerprints(fingerprint: string, merged: ReadonlyArray<unknown>): Array<string>;
4
+ export declare function getOccurrenceFingerprintQuery(fingerprints: ReadonlyArray<string>): string | Includes;
5
+ export declare const MAX_EXCEPTION_GROUP_FINGERPRINTS_LOOKUP: number;
6
+ export interface ExceptionGroupFingerprintsOfException {
7
+ telemetryExceptionId: string;
8
+ fingerprints: Array<string>;
9
+ }
10
+ export declare function readExceptionGroupFingerprints(value: unknown): Array<ExceptionGroupFingerprintsOfException>;
@@ -0,0 +1,10 @@
1
+ import Includes from "../BaseDatabase/Includes";
2
+ export declare const MAX_MERGED_FINGERPRINTS_PER_EXCEPTION: number;
3
+ export declare function toExceptionGroupFingerprints(fingerprint: string, merged: ReadonlyArray<unknown>): Array<string>;
4
+ export declare function getOccurrenceFingerprintQuery(fingerprints: ReadonlyArray<string>): string | Includes;
5
+ export declare const MAX_EXCEPTION_GROUP_FINGERPRINTS_LOOKUP: number;
6
+ export interface ExceptionGroupFingerprintsOfException {
7
+ telemetryExceptionId: string;
8
+ fingerprints: Array<string>;
9
+ }
10
+ export declare function readExceptionGroupFingerprints(value: unknown): Array<ExceptionGroupFingerprintsOfException>;
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.MAX_EXCEPTION_GROUP_FINGERPRINTS_LOOKUP = exports.MAX_MERGED_FINGERPRINTS_PER_EXCEPTION = void 0;
7
+ exports.toExceptionGroupFingerprints = toExceptionGroupFingerprints;
8
+ exports.getOccurrenceFingerprintQuery = getOccurrenceFingerprintQuery;
9
+ exports.readExceptionGroupFingerprints = readExceptionGroupFingerprints;
10
+ const Includes_1 = __importDefault(require("../BaseDatabase/Includes"));
11
+ /*
12
+ * THE FINGERPRINTS AN EXCEPTION'S OCCURRENCES CARRY: ITS GROUP.
13
+ *
14
+ * An exception merged into another (TelemetryExceptionMerge) keeps its
15
+ * fingerprint, and so do its occurrences in ClickHouse: nothing there is
16
+ * rewritten. They count on the exception they were merged into, so a read of
17
+ * an exception's occurrences reads them by its group - its own fingerprint,
18
+ * then those of the exceptions merged into it, the most recently seen first
19
+ * (TelemetryExceptionService.getGroupFingerprints). An exception nothing was
20
+ * merged into is its own fingerprint alone, and is read exactly as before any
21
+ * merge. Pure, and shared by the server and the Dashboard.
22
+ */
23
+ /*
24
+ * The most fingerprints merged into one exception that a read of its
25
+ * occurrences takes in: those of the exceptions merged into it that were
26
+ * seen last. As many as an exception's page lists and reads its occurrences
27
+ * by (ExceptionExplorer, ExceptionSpanScope).
28
+ */
29
+ exports.MAX_MERGED_FINGERPRINTS_PER_EXCEPTION = 100;
30
+ /*
31
+ * An exception's group fingerprints: its own, then those merged into it as
32
+ * given, without blanks or repeats, at most
33
+ * MAX_MERGED_FINGERPRINTS_PER_EXCEPTION of them.
34
+ */
35
+ function toExceptionGroupFingerprints(fingerprint, merged) {
36
+ const fingerprints = typeof fingerprint === "string" && fingerprint.length > 0
37
+ ? [fingerprint]
38
+ : [];
39
+ let mergedCount = 0;
40
+ for (const entry of merged) {
41
+ if (mergedCount >= exports.MAX_MERGED_FINGERPRINTS_PER_EXCEPTION) {
42
+ break;
43
+ }
44
+ if (typeof entry === "string" &&
45
+ entry.length > 0 &&
46
+ !fingerprints.includes(entry)) {
47
+ fingerprints.push(entry);
48
+ mergedCount++;
49
+ }
50
+ }
51
+ return fingerprints;
52
+ }
53
+ /*
54
+ * What a read of occurrences (ExceptionInstance) asks their fingerprint to
55
+ * be, for an exception's group fingerprints: its own alone - the query a read
56
+ * asked before any merge - or any of them.
57
+ */
58
+ function getOccurrenceFingerprintQuery(fingerprints) {
59
+ return fingerprints.length === 1
60
+ ? fingerprints[0]
61
+ : new Includes_1.default([...fingerprints]);
62
+ }
63
+ /*
64
+ * THE GROUP FINGERPRINTS OF SOME EXCEPTIONS, FROM THE DASHBOARD.
65
+ *
66
+ * POST /telemetry-exception/group-fingerprints with { telemetryExceptionIds }
67
+ * answers { exceptions: [{ telemetryExceptionId, fingerprints }] }: each
68
+ * exception the reader may read, in the order asked, with its group's
69
+ * fingerprints (TelemetryExceptionService.getGroupFingerprints). What an
70
+ * exception's page reads its security events by, and what the Exceptions
71
+ * monitor form's preview leaves out with a resolved or archived exception.
72
+ * The server writes it; the Dashboard reads it back defensively.
73
+ */
74
+ /*
75
+ * The most exceptions one request asks about: as many as the Exceptions
76
+ * monitor form's preview leaves out of each status.
77
+ */
78
+ exports.MAX_EXCEPTION_GROUP_FINGERPRINTS_LOOKUP = 1000;
79
+ /*
80
+ * The answer's entries, in its order, leaving out any that is not one: an
81
+ * exception without an id, or without a fingerprint. Each one's
82
+ * fingerprints are held to the group's bound.
83
+ */
84
+ function readExceptionGroupFingerprints(value) {
85
+ const exceptions = value && typeof value === "object"
86
+ ? value["exceptions"]
87
+ : undefined;
88
+ if (!Array.isArray(exceptions)) {
89
+ return [];
90
+ }
91
+ const read = [];
92
+ for (const entry of exceptions) {
93
+ if (!entry || typeof entry !== "object") {
94
+ continue;
95
+ }
96
+ const record = entry;
97
+ const telemetryExceptionId = typeof record["telemetryExceptionId"] === "string"
98
+ ? record["telemetryExceptionId"].trim()
99
+ : "";
100
+ const given = Array.isArray(record["fingerprints"])
101
+ ? record["fingerprints"]
102
+ : [];
103
+ // Its own comes first: without it, the entry is not one.
104
+ const own = typeof given[0] === "string" ? given[0] : "";
105
+ if (!telemetryExceptionId || !own) {
106
+ continue;
107
+ }
108
+ read.push({
109
+ telemetryExceptionId,
110
+ fingerprints: toExceptionGroupFingerprints(own, given.slice(1)),
111
+ });
112
+ }
113
+ return read;
114
+ }
@@ -0,0 +1,6 @@
1
+ import commonJsModule from "./ExceptionGroupFingerprints.js";
2
+ export const MAX_EXCEPTION_GROUP_FINGERPRINTS_LOOKUP = commonJsModule.MAX_EXCEPTION_GROUP_FINGERPRINTS_LOOKUP;
3
+ export const MAX_MERGED_FINGERPRINTS_PER_EXCEPTION = commonJsModule.MAX_MERGED_FINGERPRINTS_PER_EXCEPTION;
4
+ export const getOccurrenceFingerprintQuery = commonJsModule.getOccurrenceFingerprintQuery;
5
+ export const readExceptionGroupFingerprints = commonJsModule.readExceptionGroupFingerprints;
6
+ export const toExceptionGroupFingerprints = commonJsModule.toExceptionGroupFingerprints;
@@ -0,0 +1,19 @@
1
+ export declare const EXCEPTION_TREND_BUCKET_COUNT: number;
2
+ export declare const MIN_EXCEPTION_TREND_BUCKET_SECONDS: number;
3
+ export declare const MAX_EXCEPTION_LIST_STATS_IDS: number;
4
+ export interface ExceptionListStatsItem {
5
+ telemetryExceptionId: string;
6
+ affectedUsers: number | null;
7
+ trend: Array<number>;
8
+ }
9
+ export interface ExceptionListStats {
10
+ items: Array<ExceptionListStatsItem>;
11
+ bucketSizeInSeconds: number;
12
+ startTime: string;
13
+ endTime: string;
14
+ }
15
+ export declare function getExceptionTrendBucketSizeInSeconds(startTime: Date, endTime: Date): number;
16
+ export declare function clampExceptionTrendBucket(index: number): number | null;
17
+ export declare function emptyExceptionTrend(): Array<number>;
18
+ export declare function readExceptionListStats(value: unknown): ExceptionListStats | null;
19
+ export declare function sumExceptionTrend(trend: ReadonlyArray<number>): number;
@@ -0,0 +1,19 @@
1
+ export declare const EXCEPTION_TREND_BUCKET_COUNT: number;
2
+ export declare const MIN_EXCEPTION_TREND_BUCKET_SECONDS: number;
3
+ export declare const MAX_EXCEPTION_LIST_STATS_IDS: number;
4
+ export interface ExceptionListStatsItem {
5
+ telemetryExceptionId: string;
6
+ affectedUsers: number | null;
7
+ trend: Array<number>;
8
+ }
9
+ export interface ExceptionListStats {
10
+ items: Array<ExceptionListStatsItem>;
11
+ bucketSizeInSeconds: number;
12
+ startTime: string;
13
+ endTime: string;
14
+ }
15
+ export declare function getExceptionTrendBucketSizeInSeconds(startTime: Date, endTime: Date): number;
16
+ export declare function clampExceptionTrendBucket(index: number): number | null;
17
+ export declare function emptyExceptionTrend(): Array<number>;
18
+ export declare function readExceptionListStats(value: unknown): ExceptionListStats | null;
19
+ export declare function sumExceptionTrend(trend: ReadonlyArray<number>): number;
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ /*
3
+ * THE NUMBERS EACH ROW OF THE EXCEPTIONS LIST SHOWS BESIDE ITSELF.
4
+ *
5
+ * For the exceptions on the page the reader is looking at, over the time
6
+ * range the list is showing:
7
+ *
8
+ * - how many distinct users their occurrences happened to (the occurrence's
9
+ * userId, see Common/Utils/Exceptions/ExceptionUserId);
10
+ * - how many occurrences fell in each of EXCEPTION_TREND_BUCKET_COUNT equal
11
+ * slices of the range, oldest first: the row's small trend chart.
12
+ *
13
+ * One request answers for the whole page (POST
14
+ * /telemetry-exception/list-stats), so a page of fifty rows costs one round
15
+ * trip, not fifty. Shared by the server, which writes it, and the Dashboard,
16
+ * which reads it back defensively.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.MAX_EXCEPTION_LIST_STATS_IDS = exports.MIN_EXCEPTION_TREND_BUCKET_SECONDS = exports.EXCEPTION_TREND_BUCKET_COUNT = void 0;
20
+ exports.getExceptionTrendBucketSizeInSeconds = getExceptionTrendBucketSizeInSeconds;
21
+ exports.clampExceptionTrendBucket = clampExceptionTrendBucket;
22
+ exports.emptyExceptionTrend = emptyExceptionTrend;
23
+ exports.readExceptionListStats = readExceptionListStats;
24
+ exports.sumExceptionTrend = sumExceptionTrend;
25
+ // How many bars each row's trend chart has.
26
+ exports.EXCEPTION_TREND_BUCKET_COUNT = 24;
27
+ // The narrowest bar: a minute, whatever the range.
28
+ exports.MIN_EXCEPTION_TREND_BUCKET_SECONDS = 60;
29
+ // The most exceptions one request asks about: the largest page the list offers.
30
+ exports.MAX_EXCEPTION_LIST_STATS_IDS = 200;
31
+ // The width of one bar for a range: the range in equal slices, at least a minute.
32
+ function getExceptionTrendBucketSizeInSeconds(startTime, endTime) {
33
+ const rangeSeconds = Math.max(0, Math.ceil((endTime.getTime() - startTime.getTime()) / 1000));
34
+ return Math.max(exports.MIN_EXCEPTION_TREND_BUCKET_SECONDS, Math.ceil(rangeSeconds / exports.EXCEPTION_TREND_BUCKET_COUNT));
35
+ }
36
+ /*
37
+ * The bar an occurrence counts in, from its bucket index as the query
38
+ * computed it. The range's last instant falls one past the last bar; it
39
+ * counts in the last one.
40
+ */
41
+ function clampExceptionTrendBucket(index) {
42
+ if (!Number.isFinite(index) || index < 0) {
43
+ return null;
44
+ }
45
+ return Math.min(exports.EXCEPTION_TREND_BUCKET_COUNT - 1, Math.floor(index));
46
+ }
47
+ function emptyExceptionTrend() {
48
+ return new Array(exports.EXCEPTION_TREND_BUCKET_COUNT).fill(0);
49
+ }
50
+ function toCount(value) {
51
+ const count = typeof value === "number"
52
+ ? value
53
+ : typeof value === "string"
54
+ ? Number(value)
55
+ : NaN;
56
+ return Number.isFinite(count) && count > 0 ? Math.floor(count) : 0;
57
+ }
58
+ function readItem(value) {
59
+ if (!value || typeof value !== "object" || Array.isArray(value)) {
60
+ return null;
61
+ }
62
+ const raw = value;
63
+ const id = raw["telemetryExceptionId"];
64
+ if (typeof id !== "string" || id === "" || id.length > 64) {
65
+ return null;
66
+ }
67
+ const trend = emptyExceptionTrend();
68
+ const rawTrend = raw["trend"];
69
+ if (Array.isArray(rawTrend)) {
70
+ for (let index = 0; index < Math.min(rawTrend.length, exports.EXCEPTION_TREND_BUCKET_COUNT); index++) {
71
+ trend[index] = toCount(rawTrend[index]);
72
+ }
73
+ }
74
+ const rawUsers = raw["affectedUsers"];
75
+ return {
76
+ telemetryExceptionId: id,
77
+ affectedUsers: rawUsers === null || rawUsers === undefined ? null : toCount(rawUsers),
78
+ trend,
79
+ };
80
+ }
81
+ /*
82
+ * The answer as the Dashboard reads it: every item bounded, one per
83
+ * exception, a trend of exactly EXCEPTION_TREND_BUCKET_COUNT counts. Null for
84
+ * anything that is not an answer at all.
85
+ */
86
+ function readExceptionListStats(value) {
87
+ if (!value || typeof value !== "object" || Array.isArray(value)) {
88
+ return null;
89
+ }
90
+ const raw = value;
91
+ const rawItems = raw["stats"];
92
+ if (!Array.isArray(rawItems)) {
93
+ return null;
94
+ }
95
+ const items = [];
96
+ const seen = new Set();
97
+ for (const rawItem of rawItems.slice(0, exports.MAX_EXCEPTION_LIST_STATS_IDS)) {
98
+ const item = readItem(rawItem);
99
+ if (!item || seen.has(item.telemetryExceptionId.toLowerCase())) {
100
+ continue;
101
+ }
102
+ seen.add(item.telemetryExceptionId.toLowerCase());
103
+ items.push(item);
104
+ }
105
+ const bucketSizeInSeconds = toCount(raw["bucketSizeInSeconds"]);
106
+ return {
107
+ items,
108
+ bucketSizeInSeconds: bucketSizeInSeconds > 0
109
+ ? bucketSizeInSeconds
110
+ : exports.MIN_EXCEPTION_TREND_BUCKET_SECONDS,
111
+ startTime: typeof raw["startTime"] === "string" ? raw["startTime"] : "",
112
+ endTime: typeof raw["endTime"] === "string" ? raw["endTime"] : "",
113
+ };
114
+ }
115
+ // The trend's total: how many occurrences the range held.
116
+ function sumExceptionTrend(trend) {
117
+ let total = 0;
118
+ for (const count of trend) {
119
+ total += count;
120
+ }
121
+ return total;
122
+ }
@@ -0,0 +1,9 @@
1
+ import commonJsModule from "./ExceptionListStats.js";
2
+ export const EXCEPTION_TREND_BUCKET_COUNT = commonJsModule.EXCEPTION_TREND_BUCKET_COUNT;
3
+ export const MAX_EXCEPTION_LIST_STATS_IDS = commonJsModule.MAX_EXCEPTION_LIST_STATS_IDS;
4
+ export const MIN_EXCEPTION_TREND_BUCKET_SECONDS = commonJsModule.MIN_EXCEPTION_TREND_BUCKET_SECONDS;
5
+ export const clampExceptionTrendBucket = commonJsModule.clampExceptionTrendBucket;
6
+ export const emptyExceptionTrend = commonJsModule.emptyExceptionTrend;
7
+ export const getExceptionTrendBucketSizeInSeconds = commonJsModule.getExceptionTrendBucketSizeInSeconds;
8
+ export const readExceptionListStats = commonJsModule.readExceptionListStats;
9
+ export const sumExceptionTrend = commonJsModule.sumExceptionTrend;
@@ -3,5 +3,8 @@ export declare const EXCEPTION_SPAN_SCOPE_MAX_FINGERPRINT_LENGTH: number;
3
3
  export interface ExceptionSpanScope {
4
4
  fingerprint: string;
5
5
  primaryEntityId?: string | undefined;
6
+ mergedFingerprints?: Array<string> | undefined;
6
7
  }
8
+ export declare const EXCEPTION_SPAN_SCOPE_MAX_MERGED_FINGERPRINTS: number;
9
+ export declare function getExceptionSpanScopeFingerprints(scope: ExceptionSpanScope): Array<string>;
7
10
  export declare function parseExceptionSpanScope(value: unknown): ExceptionSpanScope | null;
@@ -3,5 +3,8 @@ export declare const EXCEPTION_SPAN_SCOPE_MAX_FINGERPRINT_LENGTH: number;
3
3
  export interface ExceptionSpanScope {
4
4
  fingerprint: string;
5
5
  primaryEntityId?: string | undefined;
6
+ mergedFingerprints?: Array<string> | undefined;
6
7
  }
8
+ export declare const EXCEPTION_SPAN_SCOPE_MAX_MERGED_FINGERPRINTS: number;
9
+ export declare function getExceptionSpanScopeFingerprints(scope: ExceptionSpanScope): Array<string>;
7
10
  export declare function parseExceptionSpanScope(value: unknown): ExceptionSpanScope | null;