@oneuptime/common 16.0.0 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (572) hide show
  1. package/Models/AnalyticsModels/RumProductAnalyticsEvent.js +15 -6
  2. package/Models/AnalyticsModels/RumProductAnalyticsSession.js +27 -10
  3. package/Models/AnalyticsModels/RumProductAnalyticsUser.js +16 -4
  4. package/Models/AnalyticsModels/RumSession.js +12 -0
  5. package/Models/DatabaseModels/AlertSeverity.js +12 -3
  6. package/Models/DatabaseModels/DataAsset.d.mts +1 -0
  7. package/Models/DatabaseModels/DataAsset.d.ts +1 -0
  8. package/Models/DatabaseModels/DataAsset.js +23 -0
  9. package/Models/DatabaseModels/DataBiConnection.d.mts +2 -1
  10. package/Models/DatabaseModels/DataBiConnection.d.ts +2 -1
  11. package/Models/DatabaseModels/DataBiConnection.js +15 -0
  12. package/Models/DatabaseModels/DataCheck.d.mts +3 -0
  13. package/Models/DatabaseModels/DataCheck.d.ts +3 -0
  14. package/Models/DatabaseModels/DataCheck.js +49 -0
  15. package/Models/DatabaseModels/DataDashboard.d.mts +1 -0
  16. package/Models/DatabaseModels/DataDashboard.d.ts +1 -0
  17. package/Models/DatabaseModels/DataDashboard.js +15 -0
  18. package/Models/DatabaseModels/DataPipeline.d.mts +1 -0
  19. package/Models/DatabaseModels/DataPipeline.d.ts +1 -0
  20. package/Models/DatabaseModels/DataPipeline.js +25 -0
  21. package/Models/DatabaseModels/DataPipelineOwnerTeam.d.mts +19 -0
  22. package/Models/DatabaseModels/DataPipelineOwnerTeam.d.ts +19 -0
  23. package/Models/DatabaseModels/DataPipelineOwnerTeam.js +477 -0
  24. package/Models/DatabaseModels/DataPipelineOwnerTeam.mjs +2 -0
  25. package/Models/DatabaseModels/DataPipelineOwnerUser.d.mts +18 -0
  26. package/Models/DatabaseModels/DataPipelineOwnerUser.d.ts +18 -0
  27. package/Models/DatabaseModels/DataPipelineOwnerUser.js +476 -0
  28. package/Models/DatabaseModels/DataPipelineOwnerUser.mjs +2 -0
  29. package/Models/DatabaseModels/DataStore.d.mts +1 -0
  30. package/Models/DatabaseModels/DataStore.d.ts +1 -0
  31. package/Models/DatabaseModels/DataStore.js +23 -0
  32. package/Models/DatabaseModels/DataStoreFinding.d.mts +2 -0
  33. package/Models/DatabaseModels/DataStoreFinding.d.ts +2 -0
  34. package/Models/DatabaseModels/DataStoreFinding.js +21 -0
  35. package/Models/DatabaseModels/EmailLog.d.mts +1 -0
  36. package/Models/DatabaseModels/EmailLog.d.ts +1 -0
  37. package/Models/DatabaseModels/EmailLog.js +35 -0
  38. package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
  39. package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
  40. package/Models/DatabaseModels/GlobalConfig.js +128 -0
  41. package/Models/DatabaseModels/GlobalOidc.d.mts +1 -0
  42. package/Models/DatabaseModels/GlobalOidc.d.ts +1 -0
  43. package/Models/DatabaseModels/GlobalOidc.js +29 -0
  44. package/Models/DatabaseModels/IncidentSeverity.js +12 -3
  45. package/Models/DatabaseModels/Index.js +6 -0
  46. package/Models/DatabaseModels/Monitor.js +18 -0
  47. package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
  48. package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
  49. package/Models/DatabaseModels/NetworkDevice.js +49 -0
  50. package/Models/DatabaseModels/NetworkDeviceAutoImportRule.js +2 -2
  51. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRule.js +1 -1
  52. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +6 -0
  53. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +6 -0
  54. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +156 -1
  55. package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js +1 -1
  56. package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js +1 -1
  57. package/Models/DatabaseModels/Probe.d.mts +4 -0
  58. package/Models/DatabaseModels/Probe.d.ts +4 -0
  59. package/Models/DatabaseModels/Probe.js +100 -0
  60. package/Models/DatabaseModels/ProductFeedback.d.mts +2 -1
  61. package/Models/DatabaseModels/ProductFeedback.d.ts +2 -1
  62. package/Models/DatabaseModels/ProductFeedback.js +34 -2
  63. package/Models/DatabaseModels/Project.d.mts +4 -1
  64. package/Models/DatabaseModels/Project.d.ts +4 -1
  65. package/Models/DatabaseModels/Project.js +147 -7
  66. package/Models/DatabaseModels/ProjectCallSMSConfig.js +8 -2
  67. package/Models/DatabaseModels/ProjectOidc.d.mts +1 -0
  68. package/Models/DatabaseModels/ProjectOidc.d.ts +1 -0
  69. package/Models/DatabaseModels/ProjectOidc.js +46 -0
  70. package/Models/DatabaseModels/Reseller.js +8 -2
  71. package/Models/DatabaseModels/ResellerPlan.js +12 -3
  72. package/Models/DatabaseModels/RumApplication.d.mts +1 -0
  73. package/Models/DatabaseModels/RumApplication.d.ts +1 -0
  74. package/Models/DatabaseModels/RumApplication.js +58 -0
  75. package/Models/DatabaseModels/RumSessionErasureRequest.d.mts +1 -0
  76. package/Models/DatabaseModels/RumSessionErasureRequest.d.ts +1 -0
  77. package/Models/DatabaseModels/RumSessionErasureRequest.js +40 -0
  78. package/Models/DatabaseModels/SecurityCaseTask.d.mts +1 -0
  79. package/Models/DatabaseModels/SecurityCaseTask.d.ts +1 -0
  80. package/Models/DatabaseModels/SecurityCaseTask.js +27 -0
  81. package/Models/DatabaseModels/ServerEmailLog.d.mts +12 -0
  82. package/Models/DatabaseModels/ServerEmailLog.d.ts +12 -0
  83. package/Models/DatabaseModels/ServerEmailLog.js +206 -0
  84. package/Models/DatabaseModels/ServerEmailLog.mjs +2 -0
  85. package/Models/DatabaseModels/StatusPageGroup.js +1 -1
  86. package/Models/DatabaseModels/StatusPageResource.js +1 -1
  87. package/Models/DatabaseModels/TelemetryException.js +15 -2
  88. package/Models/DatabaseModels/TelemetryIngestionKey.js +10 -0
  89. package/Models/DatabaseModels/User.d.mts +3 -0
  90. package/Models/DatabaseModels/User.d.ts +3 -0
  91. package/Models/DatabaseModels/User.js +66 -0
  92. package/Models/DatabaseModels/UserSession.d.mts +1 -0
  93. package/Models/DatabaseModels/UserSession.d.ts +1 -0
  94. package/Models/DatabaseModels/UserSession.js +32 -0
  95. package/Models/DatabaseModels/WorkspaceLiveMessage.js +21 -15
  96. package/Models/DatabaseModels/WorkspaceNotificationLog.js +17 -9
  97. package/Models/DatabaseModels/WorkspaceNotificationRule.js +8 -2
  98. package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
  99. package/Server/Services/DatabaseService.d.mts +6 -0
  100. package/Server/Services/DatabaseService.d.ts +6 -0
  101. package/Server/Utils/Workspace/WorkspaceBase.d.mts +1 -0
  102. package/Server/Utils/Workspace/WorkspaceBase.d.ts +1 -0
  103. package/Types/AI/AIActionWords.js +1 -0
  104. package/Types/AI/AIChatPageContext.d.mts +1 -0
  105. package/Types/AI/AIChatPageContext.d.ts +1 -0
  106. package/Types/AI/AIChatPageContext.js +6 -0
  107. package/Types/AI/AIRunProducts.d.mts +14 -0
  108. package/Types/AI/AIRunProducts.d.ts +14 -0
  109. package/Types/AI/AIRunProducts.js +40 -0
  110. package/Types/AI/AIRunProducts.mjs +2 -0
  111. package/Types/AI/AskAiRatings.d.mts +31 -0
  112. package/Types/AI/AskAiRatings.d.ts +31 -0
  113. package/Types/AI/AskAiRatings.js +173 -0
  114. package/Types/AI/AskAiRatings.mjs +13 -0
  115. package/Types/Accounts/SignUpInvitation.d.mts +12 -0
  116. package/Types/Accounts/SignUpInvitation.d.ts +12 -0
  117. package/Types/Accounts/SignUpInvitation.js +84 -0
  118. package/Types/Accounts/SignUpInvitation.mjs +5 -0
  119. package/Types/Analytics/ActivationMilestone.d.mts +2 -1
  120. package/Types/Analytics/ActivationMilestone.d.ts +2 -1
  121. package/Types/Analytics/ActivationMilestone.js +11 -0
  122. package/Types/Analytics/ProductEvent.d.mts +11 -0
  123. package/Types/Analytics/ProductEvent.d.ts +11 -0
  124. package/Types/Analytics/ProductEvent.js +166 -13
  125. package/Types/Analytics/ProductEvent.mjs +3 -0
  126. package/Types/Backup/BackupScriptRun.d.mts +17 -0
  127. package/Types/Backup/BackupScriptRun.d.ts +17 -0
  128. package/Types/Backup/BackupScriptRun.js +96 -0
  129. package/Types/Backup/BackupScriptRun.mjs +6 -0
  130. package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.mts +2 -0
  131. package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.ts +2 -0
  132. package/Types/BaseDatabase/ReadAudience.d.mts +9 -0
  133. package/Types/BaseDatabase/ReadAudience.d.ts +9 -0
  134. package/Types/BaseDatabase/ReadAudience.js +2 -0
  135. package/Types/BaseDatabase/ReadAudience.mjs +1 -0
  136. package/Types/Cloud/CloudKeyMetricGroup.d.mts +17 -0
  137. package/Types/Cloud/CloudKeyMetricGroup.d.ts +17 -0
  138. package/Types/Cloud/CloudKeyMetricGroup.js +84 -0
  139. package/Types/Cloud/CloudKeyMetricGroup.mjs +5 -0
  140. package/Types/Cloud/CloudKeyMetrics.d.mts +28 -1
  141. package/Types/Cloud/CloudKeyMetrics.d.ts +28 -1
  142. package/Types/Cloud/CloudKeyMetrics.js +1209 -206
  143. package/Types/Cloud/CloudKeyMetrics.mjs +6 -0
  144. package/Types/Cloud/CloudResourceCatalog.js +43 -12
  145. package/Types/CloudConnection/CloudConnectionSetupCommands.d.mts +1 -0
  146. package/Types/CloudConnection/CloudConnectionSetupCommands.d.ts +1 -0
  147. package/Types/CloudConnection/CloudConnectionSetupCommands.js +49 -6
  148. package/Types/CloudConnection/CloudConnectionSetupCommands.mjs +1 -0
  149. package/Types/CloudConnection/CloudStreamTemplate.js +6 -2
  150. package/Types/CreateFormAddress.d.mts +3 -0
  151. package/Types/CreateFormAddress.d.ts +3 -0
  152. package/Types/CreateFormAddress.js +17 -0
  153. package/Types/CreateFormAddress.mjs +4 -0
  154. package/Types/DataObservability/DataAssetFreshness.d.mts +5 -0
  155. package/Types/DataObservability/DataAssetFreshness.d.ts +5 -0
  156. package/Types/DataObservability/DataAssetFreshness.js +28 -5
  157. package/Types/DataObservability/DataAssetFreshness.mjs +1 -0
  158. package/Types/DataObservability/DataBiLineage.d.mts +69 -0
  159. package/Types/DataObservability/DataBiLineage.d.ts +69 -0
  160. package/Types/DataObservability/DataBiLineage.js +198 -0
  161. package/Types/DataObservability/DataBiLineage.mjs +13 -0
  162. package/Types/DataObservability/DataLineageColumnTrail.d.mts +2 -1
  163. package/Types/DataObservability/DataLineageColumnTrail.d.ts +2 -1
  164. package/Types/DataObservability/DataLineageColumnTrail.js +41 -3
  165. package/Types/DataObservability/DataLineageColumnTrail.mjs +1 -0
  166. package/Types/DataObservability/DataLineageMap.d.mts +67 -1
  167. package/Types/DataObservability/DataLineageMap.d.ts +67 -1
  168. package/Types/DataObservability/DataLineageMap.js +335 -3
  169. package/Types/DataObservability/DataLineageMap.mjs +14 -0
  170. package/Types/DataObservability/DataObservabilityApiTypes.d.mts +42 -2
  171. package/Types/DataObservability/DataObservabilityApiTypes.d.ts +42 -2
  172. package/Types/DataObservability/DataObservabilityApiTypes.js +21 -1
  173. package/Types/DataObservability/DataObservabilityApiTypes.mjs +4 -0
  174. package/Types/DataObservability/DataObservabilityAttention.d.mts +5 -0
  175. package/Types/DataObservability/DataObservabilityAttention.d.ts +5 -0
  176. package/Types/DataObservability/DataObservabilityAttention.js +48 -1
  177. package/Types/DataObservability/DataObservabilityAttention.mjs +5 -0
  178. package/Types/DataObservability/DataPipelineSchedule.d.mts +4 -0
  179. package/Types/DataObservability/DataPipelineSchedule.d.ts +4 -0
  180. package/Types/DataObservability/DataPipelineSchedule.js +26 -6
  181. package/Types/DataObservability/DataPipelineSchedule.mjs +1 -0
  182. package/Types/DataObservability/DataTableLineage.d.mts +6 -0
  183. package/Types/DataObservability/DataTableLineage.d.ts +6 -0
  184. package/Types/DataSecurity/DataSecurityApiTypes.d.mts +24 -0
  185. package/Types/DataSecurity/DataSecurityApiTypes.d.ts +24 -0
  186. package/Types/DataSecurity/DataSecurityApiTypes.js +21 -1
  187. package/Types/DataSecurity/DataSecurityApiTypes.mjs +2 -0
  188. package/Types/DataSecurity/FindingSampleRecord.d.mts +16 -0
  189. package/Types/DataSecurity/FindingSampleRecord.d.ts +16 -0
  190. package/Types/DataSecurity/FindingSampleRecord.js +112 -0
  191. package/Types/DataSecurity/FindingSampleRecord.mjs +6 -0
  192. package/Types/Database/AccessControl/PermissionScopeNarrowing.js +6 -0
  193. package/Types/Database/MoveInList.d.mts +41 -0
  194. package/Types/Database/MoveInList.d.ts +41 -0
  195. package/Types/Database/MoveInList.js +177 -0
  196. package/Types/Database/MoveInList.mjs +4 -0
  197. package/Types/Email/ServerEmailLog.d.mts +41 -0
  198. package/Types/Email/ServerEmailLog.d.ts +41 -0
  199. package/Types/Email/ServerEmailLog.js +136 -0
  200. package/Types/Email/ServerEmailLog.mjs +11 -0
  201. package/Types/Exception/ProductSwitchedOffException.d.mts +12 -0
  202. package/Types/Exception/ProductSwitchedOffException.d.ts +12 -0
  203. package/Types/Exception/ProductSwitchedOffException.js +38 -0
  204. package/Types/Exception/ProductSwitchedOffException.mjs +2 -0
  205. package/Types/Exception/UnexplainedError.d.mts +7 -0
  206. package/Types/Exception/UnexplainedError.d.ts +7 -0
  207. package/Types/Exception/UnexplainedError.js +36 -1
  208. package/Types/Exception/UnexplainedError.mjs +2 -0
  209. package/Types/InstallationHealth/InstallationHealth.d.mts +39 -0
  210. package/Types/InstallationHealth/InstallationHealth.d.ts +39 -0
  211. package/Types/InstallationHealth/InstallationHealth.js +163 -0
  212. package/Types/Kubernetes/KubernetesHealth.d.mts +16 -0
  213. package/Types/Kubernetes/KubernetesHealth.d.ts +16 -0
  214. package/Types/Kubernetes/KubernetesHealth.js +128 -6
  215. package/Types/Kubernetes/KubernetesHealth.mjs +2 -0
  216. package/Types/Monitor/CloudAppAlertTemplates.d.mts +3 -13
  217. package/Types/Monitor/CloudAppAlertTemplates.d.ts +3 -13
  218. package/Types/Monitor/CloudAppAlertTemplates.js +13 -199
  219. package/Types/Monitor/CriteriaFilter.d.mts +2 -1
  220. package/Types/Monitor/CriteriaFilter.d.ts +2 -1
  221. package/Types/Monitor/CriteriaFilter.js +9 -1
  222. package/Types/Monitor/CriteriaFilterTerms.js +1 -0
  223. package/Types/Monitor/MessageQueueAlertTemplates.d.mts +6 -0
  224. package/Types/Monitor/MessageQueueAlertTemplates.d.ts +6 -0
  225. package/Types/Monitor/MessageQueueAlertTemplates.js +32 -0
  226. package/Types/Monitor/MessageQueueAlertTemplates.mjs +2 -0
  227. package/Types/Monitor/MonitorCriteriaInstance.d.mts +2 -0
  228. package/Types/Monitor/MonitorCriteriaInstance.d.ts +2 -0
  229. package/Types/Monitor/MonitorCriteriaInstance.js +52 -0
  230. package/Types/Monitor/MonitorMetricType.d.mts +2 -1
  231. package/Types/Monitor/MonitorMetricType.d.ts +2 -1
  232. package/Types/Monitor/MonitorMetricType.js +1 -0
  233. package/Types/Monitor/MonitorStepLimit.d.mts +8 -0
  234. package/Types/Monitor/MonitorStepLimit.d.ts +8 -0
  235. package/Types/Monitor/MonitorStepLimit.js +62 -0
  236. package/Types/Monitor/MonitorStepLimit.mjs +3 -0
  237. package/Types/Monitor/MonitorSteps.js +5 -0
  238. package/Types/Monitor/MonitorType.js +2 -1
  239. package/Types/Monitor/ProbeStatusMonitor/ProbeStatusMonitorResponse.d.mts +5 -0
  240. package/Types/Monitor/ProbeStatusMonitor/ProbeStatusMonitorResponse.d.ts +5 -0
  241. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.mts +1 -1
  242. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.ts +1 -1
  243. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +111 -1
  244. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.mts +7 -1
  245. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.ts +7 -1
  246. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.js +15 -0
  247. package/Types/Monitor/RequestHealthAlertTemplates.d.mts +66 -0
  248. package/Types/Monitor/RequestHealthAlertTemplates.d.ts +66 -0
  249. package/Types/Monitor/RequestHealthAlertTemplates.js +227 -0
  250. package/Types/Monitor/RequestHealthAlertTemplates.mjs +4 -0
  251. package/Types/Monitor/ServerlessAlertTemplates.d.mts +23 -0
  252. package/Types/Monitor/ServerlessAlertTemplates.d.ts +23 -0
  253. package/Types/Monitor/ServerlessAlertTemplates.js +111 -0
  254. package/Types/Monitor/ServerlessAlertTemplates.mjs +7 -0
  255. package/Types/Monitor/ServiceAlertTemplates.d.mts +3 -0
  256. package/Types/Monitor/ServiceAlertTemplates.d.ts +3 -0
  257. package/Types/Monitor/ServiceAlertTemplates.js +61 -0
  258. package/Types/Monitor/ServiceAlertTemplates.mjs +2 -0
  259. package/Types/Monitor/TelemetryRulePreview.js +18 -6
  260. package/Types/Monitor/WhoIsTold.d.mts +71 -0
  261. package/Types/Monitor/WhoIsTold.d.ts +71 -0
  262. package/Types/Monitor/WhoIsTold.js +348 -121
  263. package/Types/Monitor/WhoIsTold.mjs +7 -0
  264. package/Types/NetworkAutomation/RuleRunResult.js +9 -5
  265. package/Types/NetworkDevice/DiscoveredDevice.d.mts +40 -0
  266. package/Types/NetworkDevice/DiscoveredDevice.d.ts +40 -0
  267. package/Types/NetworkDevice/DiscoveredDevice.js +205 -1
  268. package/Types/NetworkDevice/DiscoveredDevice.mjs +9 -0
  269. package/Types/NetworkDevice/DiscoveryImport.js +8 -3
  270. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.mts +26 -3
  271. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.ts +26 -3
  272. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.js +75 -3
  273. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.mjs +2 -0
  274. package/Types/Notification/WhoWasTold.d.mts +190 -0
  275. package/Types/Notification/WhoWasTold.d.ts +190 -0
  276. package/Types/Notification/WhoWasTold.js +662 -0
  277. package/Types/Notification/WhoWasTold.mjs +16 -0
  278. package/Types/NotificationRule/PagingLadderDefault.d.mts +75 -0
  279. package/Types/NotificationRule/PagingLadderDefault.d.ts +75 -0
  280. package/Types/NotificationRule/PagingLadderDefault.js +529 -0
  281. package/Types/NotificationRule/PagingLadderDefault.mjs +24 -0
  282. package/Types/OnCallDutyPolicy/EveryNewEventRules.d.mts +7 -0
  283. package/Types/OnCallDutyPolicy/EveryNewEventRules.d.ts +7 -0
  284. package/Types/OnCallDutyPolicy/EveryNewEventRules.js +53 -2
  285. package/Types/OnCallDutyPolicy/EveryNewEventRules.mjs +3 -0
  286. package/Types/OnCallDutyPolicy/NotificationSetupToFinish.d.mts +6 -0
  287. package/Types/OnCallDutyPolicy/NotificationSetupToFinish.d.ts +6 -0
  288. package/Types/OnCallDutyPolicy/NotificationSetupToFinish.js +27 -0
  289. package/Types/OnCallDutyPolicy/NotificationSetupToFinish.mjs +3 -0
  290. package/Types/OnCallDutyPolicy/OnCallFireDrill.d.mts +83 -0
  291. package/Types/OnCallDutyPolicy/OnCallFireDrill.d.ts +83 -0
  292. package/Types/OnCallDutyPolicy/OnCallFireDrill.js +105 -0
  293. package/Types/OnCallDutyPolicy/OnCallFireDrill.mjs +9 -0
  294. package/Types/OnCallDutyPolicy/OnCallPagePassOn.js +12 -4
  295. package/Types/OnCallDutyPolicy/OnCallRunLevel.d.mts +12 -0
  296. package/Types/OnCallDutyPolicy/OnCallRunLevel.d.ts +12 -0
  297. package/Types/OnCallDutyPolicy/OnCallRunLevel.js +69 -8
  298. package/Types/OnCallDutyPolicy/OnCallRunLevel.mjs +3 -0
  299. package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +4 -0
  300. package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +4 -0
  301. package/Types/OnCallDutyPolicy/OnCallTestPage.js +20 -7
  302. package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +2 -0
  303. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +2 -0
  304. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +2 -0
  305. package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +14 -1
  306. package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +2 -0
  307. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +7 -0
  308. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +7 -0
  309. package/Types/OnCallDutyPolicy/UserOverrideEdit.js +63 -1
  310. package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +4 -0
  311. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +21 -1
  312. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +21 -1
  313. package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +46 -2
  314. package/Types/Permission.d.mts +8 -0
  315. package/Types/Permission.d.ts +8 -0
  316. package/Types/Permission.js +84 -0
  317. package/Types/Probe/ProbeBehind.d.mts +48 -0
  318. package/Types/Probe/ProbeBehind.d.ts +48 -0
  319. package/Types/Probe/ProbeBehind.js +196 -0
  320. package/Types/Probe/ProbeBehind.mjs +6 -0
  321. package/Types/Product/ProductRecordTables.d.mts +8 -0
  322. package/Types/Product/ProductRecordTables.d.ts +8 -0
  323. package/Types/Product/ProductRecordTables.js +847 -0
  324. package/Types/Product/ProductRecordTables.mjs +5 -0
  325. package/Types/Product/ProductUsage.d.mts +2 -0
  326. package/Types/Product/ProductUsage.d.ts +2 -0
  327. package/Types/Product/ProductUsage.js +41 -6
  328. package/Types/Product/ProductUsage.mjs +2 -0
  329. package/Types/Product/ServerProductOffReason.d.mts +4 -0
  330. package/Types/Product/ServerProductOffReason.d.ts +4 -0
  331. package/Types/Product/ServerProductOffReason.js +19 -0
  332. package/Types/Product/ServerProductOffReason.mjs +2 -0
  333. package/Types/Product/ServerProducts.d.mts +2 -4
  334. package/Types/Product/ServerProducts.d.ts +2 -4
  335. package/Types/Product/ServerProducts.js +19 -17
  336. package/Types/ProductFeedback/ProductFeedback.d.mts +45 -1
  337. package/Types/ProductFeedback/ProductFeedback.d.ts +45 -1
  338. package/Types/ProductFeedback/ProductFeedback.js +185 -5
  339. package/Types/ProductFeedback/ProductFeedback.mjs +11 -0
  340. package/Types/PushNotification/PushNotificationCategory.d.mts +1 -0
  341. package/Types/PushNotification/PushNotificationCategory.d.ts +1 -0
  342. package/Types/PushNotification/PushNotificationCategory.js +17 -6
  343. package/Types/PushNotification/PushNotificationCategory.mjs +1 -0
  344. package/Types/Rules/RuleCriteriaFieldRegistry.d.mts +18 -0
  345. package/Types/Rules/RuleCriteriaFieldRegistry.d.ts +18 -0
  346. package/Types/Rules/RuleCriteriaFieldRegistry.js +34 -1
  347. package/Types/Rules/RuleCriteriaFieldRegistry.mjs +4 -0
  348. package/Types/Rum/ProductAnalytics.d.mts +9 -0
  349. package/Types/Rum/ProductAnalytics.d.ts +9 -0
  350. package/Types/Rum/ProductAnalytics.js +56 -8
  351. package/Types/Rum/ProductAnalytics.mjs +6 -0
  352. package/Types/Rum/ProductAnalyticsEvents.js +2 -1
  353. package/Types/Rum/SessionReplay.d.mts +3 -0
  354. package/Types/Rum/SessionReplay.d.ts +3 -0
  355. package/Types/Rum/SessionReplay.js +35 -1
  356. package/Types/Rum/SessionReplay.mjs +2 -0
  357. package/Types/Runbook/RunbookTriggerType.d.mts +1 -0
  358. package/Types/Runbook/RunbookTriggerType.d.ts +1 -0
  359. package/Types/Runbook/RunbookTriggerType.js +19 -1
  360. package/Types/Runbook/RunbookTriggerType.mjs +1 -0
  361. package/Types/SSO/IdentityProviderSignOut.d.mts +24 -0
  362. package/Types/SSO/IdentityProviderSignOut.d.ts +24 -0
  363. package/Types/SSO/IdentityProviderSignOut.js +124 -0
  364. package/Types/SSO/IdentityProviderSignOut.mjs +10 -0
  365. package/Types/SecurityCase/SecurityCaseEventEvidence.d.mts +4 -0
  366. package/Types/SecurityCase/SecurityCaseEventEvidence.d.ts +4 -0
  367. package/Types/SecurityCase/SecurityCaseEventEvidence.js +12 -0
  368. package/Types/SecurityCase/SecurityCaseMatches.d.mts +78 -0
  369. package/Types/SecurityCase/SecurityCaseMatches.d.ts +78 -0
  370. package/Types/SecurityCase/SecurityCaseMatches.js +252 -0
  371. package/Types/SecurityCase/SecurityCaseMatches.mjs +17 -0
  372. package/Types/ServerSending/ProjectCanSend.d.mts +10 -0
  373. package/Types/ServerSending/ProjectCanSend.d.ts +10 -0
  374. package/Types/ServerSending/ProjectCanSend.js +49 -0
  375. package/Types/ServerSending/ProjectCanSend.mjs +4 -0
  376. package/Types/ServerSending/ServerAlerts.d.mts +78 -0
  377. package/Types/ServerSending/ServerAlerts.d.ts +78 -0
  378. package/Types/ServerSending/ServerAlerts.js +393 -0
  379. package/Types/ServerSending/ServerAlerts.mjs +8 -0
  380. package/Types/ServerSending/ServerSendingStatus.d.mts +6 -0
  381. package/Types/ServerSending/ServerSendingStatus.d.ts +6 -0
  382. package/Types/ServerSending/ServerSendingStatus.js +23 -0
  383. package/Types/ServerSending/ServerSetUpProblem.d.mts +46 -0
  384. package/Types/ServerSending/ServerSetUpProblem.d.ts +46 -0
  385. package/Types/ServerSending/ServerSetUpProblem.js +164 -0
  386. package/Types/ServerSending/ServerSetUpProblem.mjs +6 -0
  387. package/Types/ServerSetup/ServerSetupChecklist.d.mts +35 -1
  388. package/Types/ServerSetup/ServerSetupChecklist.d.ts +35 -1
  389. package/Types/ServerSetup/ServerSetupChecklist.js +270 -33
  390. package/Types/ServerSetup/ServerSetupChecklist.mjs +5 -0
  391. package/Types/ServerSetup/ServerTestSend.d.mts +11 -0
  392. package/Types/ServerSetup/ServerTestSend.d.ts +11 -0
  393. package/Types/ServerSetup/ServerTestSend.js +60 -3
  394. package/Types/ServerSetup/ServerTestSend.mjs +2 -0
  395. package/Types/ServiceLevelObjective/SloStatus.d.mts +3 -0
  396. package/Types/ServiceLevelObjective/SloStatus.d.ts +3 -0
  397. package/Types/ServiceLevelObjective/SloStatus.js +38 -0
  398. package/Types/ServiceLevelObjective/SloStatus.mjs +2 -0
  399. package/Types/ServiceLevelObjective/SloStatusChange.d.mts +10 -0
  400. package/Types/ServiceLevelObjective/SloStatusChange.d.ts +10 -0
  401. package/Types/ServiceLevelObjective/SloStatusChange.js +71 -0
  402. package/Types/ServiceLevelObjective/SloStatusChange.mjs +5 -0
  403. package/Types/SetupHealth/SetupHealth.d.mts +31 -3
  404. package/Types/SetupHealth/SetupHealth.d.ts +31 -3
  405. package/Types/SetupHealth/SetupHealth.js +333 -4
  406. package/Types/SetupHealth/SetupHealth.mjs +5 -0
  407. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +8 -5
  408. package/Types/StatusPage/StatusPagePublicName.d.mts +6 -0
  409. package/Types/StatusPage/StatusPagePublicName.d.ts +6 -0
  410. package/Types/StatusPage/StatusPagePublicName.js +32 -0
  411. package/Types/StatusPage/StatusPagePublicName.mjs +3 -0
  412. package/Types/Team/InvitationEmailsNotSent.d.mts +28 -0
  413. package/Types/Team/InvitationEmailsNotSent.d.ts +28 -0
  414. package/Types/Team/InvitationEmailsNotSent.js +261 -0
  415. package/Types/Team/InvitationEmailsNotSent.mjs +13 -0
  416. package/Types/Team/ProjectMemberSearch.d.mts +15 -0
  417. package/Types/Team/ProjectMemberSearch.d.ts +15 -0
  418. package/Types/Team/ProjectMemberSearch.js +180 -0
  419. package/Types/Team/ProjectMemberSearch.mjs +10 -0
  420. package/Types/Team/ProjectRemovalReach.d.mts +15 -0
  421. package/Types/Team/ProjectRemovalReach.d.ts +15 -0
  422. package/Types/Team/ProjectRemovalReach.js +154 -0
  423. package/Types/Team/ProjectRemovalReach.mjs +8 -0
  424. package/Types/Team/ResendInvitation.d.mts +27 -0
  425. package/Types/Team/ResendInvitation.d.ts +27 -0
  426. package/Types/Team/ResendInvitation.js +123 -0
  427. package/Types/Team/ResendInvitation.mjs +12 -0
  428. package/Types/UsedBy/UsedBy.d.mts +1 -0
  429. package/Types/UsedBy/UsedBy.d.ts +1 -0
  430. package/Types/UsedBy/UsedBy.js +2 -0
  431. package/Types/UsedBy/UsedByServerProducts.js +1 -0
  432. package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +27 -4
  433. package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +27 -4
  434. package/Types/WelcomeChecklist/WelcomeChecklist.js +166 -42
  435. package/Types/WelcomeChecklist/WelcomeChecklist.mjs +8 -0
  436. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +4 -1
  437. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +4 -1
  438. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +175 -33
  439. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.mjs +1 -0
  440. package/Types/WelcomeChecklist/WelcomeChecklistState.d.mts +1 -0
  441. package/Types/WelcomeChecklist/WelcomeChecklistState.d.ts +1 -0
  442. package/Types/WelcomeChecklist/WelcomeChecklistState.js +30 -1
  443. package/Types/WelcomeChecklist/WelcomeChecklistState.mjs +1 -0
  444. package/Types/Workflow/Component.d.mts +0 -1
  445. package/Types/Workflow/Component.d.ts +0 -1
  446. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +1 -1
  447. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +1 -1
  448. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +23 -0
  449. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +23 -0
  450. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +12 -0
  451. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +12 -0
  452. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +106 -4
  453. package/Types/Workspace/WorkspaceMessagePayload.d.mts +2 -0
  454. package/Types/Workspace/WorkspaceMessagePayload.d.ts +2 -0
  455. package/Types/Workspace/WorkspaceMessagePayload.js +6 -1
  456. package/Types/Workspace/WorkspaceMessagePayload.mjs +1 -0
  457. package/UI/Components/Dropdown/Dropdown.d.mts +2 -0
  458. package/UI/Components/Dropdown/Dropdown.d.ts +2 -0
  459. package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.js +6 -1
  460. package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.js +6 -1
  461. package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +4 -1
  462. package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +4 -1
  463. package/Utils/Dashboard/MonitorListWidgetFormat.js +9 -4
  464. package/Utils/DataSecurity/CustomDataTypeDetector.js +3 -1
  465. package/Utils/DataSecurity/DetectorPrefilter.d.mts +9 -0
  466. package/Utils/DataSecurity/DetectorPrefilter.d.ts +9 -0
  467. package/Utils/DataSecurity/DetectorPrefilter.js +471 -0
  468. package/Utils/DataSecurity/DetectorPrefilter.mjs +6 -0
  469. package/Utils/DataSecurity/FieldClassifier.d.mts +2 -0
  470. package/Utils/DataSecurity/FieldClassifier.d.ts +2 -0
  471. package/Utils/DataSecurity/FieldClassifier.js +38 -8
  472. package/Utils/DataSecurity/OccurrenceExcerpt.d.mts +22 -0
  473. package/Utils/DataSecurity/OccurrenceExcerpt.d.ts +22 -0
  474. package/Utils/DataSecurity/OccurrenceExcerpt.js +270 -0
  475. package/Utils/DataSecurity/OccurrenceExcerpt.mjs +5 -0
  476. package/Utils/DataSecurity/TextScanner.d.mts +4 -0
  477. package/Utils/DataSecurity/TextScanner.d.ts +4 -0
  478. package/Utils/Monitor/DeviceMonitorDuplicates.d.mts +34 -0
  479. package/Utils/Monitor/DeviceMonitorDuplicates.d.ts +34 -0
  480. package/Utils/Monitor/DeviceMonitorDuplicates.js +134 -0
  481. package/Utils/Monitor/DeviceMonitorDuplicates.mjs +7 -0
  482. package/Utils/Monitor/DeviceMonitorTemplateUtil.d.mts +4 -0
  483. package/Utils/Monitor/DeviceMonitorTemplateUtil.d.ts +4 -0
  484. package/Utils/Monitor/DeviceMonitorTemplateUtil.js +33 -6
  485. package/Utils/Monitor/MonitorMetricType.js +11 -1
  486. package/Utils/Monitor/MonitorOverviewPresentationUtil.js +21 -3
  487. package/Utils/Monitor/ProbeFailureCauses.js +4 -1
  488. package/Utils/Monitor/ProbeStatusMonitorUtil.d.mts +5 -1
  489. package/Utils/Monitor/ProbeStatusMonitorUtil.d.ts +5 -1
  490. package/Utils/Monitor/ProbeStatusMonitorUtil.js +106 -0
  491. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.mts +3 -0
  492. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.ts +3 -0
  493. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.js +33 -4
  494. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.mjs +1 -0
  495. package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.d.mts +33 -0
  496. package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.d.ts +33 -0
  497. package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.js +105 -0
  498. package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.mjs +8 -0
  499. package/Utils/NetworkDevice/SnmpCredentialUtil.d.mts +5 -0
  500. package/Utils/NetworkDevice/SnmpCredentialUtil.d.ts +5 -0
  501. package/Utils/NetworkDevice/SnmpCredentialUtil.js +28 -3
  502. package/Utils/NetworkDevice/SnmpCredentialUtil.mjs +3 -0
  503. package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.d.mts +1 -0
  504. package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.d.ts +1 -0
  505. package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.js +20 -1
  506. package/Utils/Rules/RuleCriteriaMatcher.d.mts +1 -0
  507. package/Utils/Rules/RuleCriteriaMatcher.d.ts +1 -0
  508. package/Utils/Rules/RuleCriteriaMatcher.js +6 -0
  509. package/Utils/Rules/RuleCriteriaOwnerMatch.d.mts +10 -0
  510. package/Utils/Rules/RuleCriteriaOwnerMatch.d.ts +10 -0
  511. package/Utils/Rules/RuleCriteriaOwnerMatch.js +83 -0
  512. package/Utils/Rules/RuleCriteriaOwnerMatch.mjs +4 -0
  513. package/Utils/SecurityCase/SecurityCaseMatchRules.d.mts +27 -0
  514. package/Utils/SecurityCase/SecurityCaseMatchRules.d.ts +27 -0
  515. package/Utils/SecurityCase/SecurityCaseMatchRules.js +377 -0
  516. package/Utils/SecurityCase/SecurityCaseMatchRules.mjs +9 -0
  517. package/Utils/Slo/SloBulkRecommendedPolicy.d.mts +35 -0
  518. package/Utils/Slo/SloBulkRecommendedPolicy.d.ts +35 -0
  519. package/Utils/Slo/SloBulkRecommendedPolicy.js +168 -0
  520. package/Utils/Slo/SloBulkRecommendedPolicy.mjs +6 -0
  521. package/Utils/Slo/SloBurnRateRuleState.js +3 -6
  522. package/Utils/Slo/SloErrorBudgetPolicy.d.mts +17 -0
  523. package/Utils/Slo/SloErrorBudgetPolicy.d.ts +17 -0
  524. package/Utils/Slo/SloErrorBudgetPolicy.js +72 -1
  525. package/Utils/Slo/SloErrorBudgetPolicy.mjs +4 -0
  526. package/Utils/Slo/SloFeedMarkdown.d.mts +5 -2
  527. package/Utils/Slo/SloFeedMarkdown.d.ts +5 -2
  528. package/Utils/Slo/SloFeedMarkdown.js +19 -7
  529. package/Utils/Slo/SloFeedMarkdown.mjs +1 -0
  530. package/Utils/Slo/SloHealth.d.mts +5 -0
  531. package/Utils/Slo/SloHealth.d.ts +5 -0
  532. package/Utils/Slo/SloHealth.js +27 -0
  533. package/Utils/Slo/SloListWidgetFormat.js +5 -3
  534. package/Utils/Slo/SloMetricType.js +6 -5
  535. package/Utils/Slo/SloMonitorsFirstCheck.d.mts +13 -0
  536. package/Utils/Slo/SloMonitorsFirstCheck.d.ts +13 -0
  537. package/Utils/Slo/SloMonitorsFirstCheck.js +78 -0
  538. package/Utils/Slo/SloMonitorsFirstCheck.mjs +3 -0
  539. package/Utils/Slo/SloOverviewText.js +7 -0
  540. package/Utils/Slo/SloStatusColor.d.mts +3 -0
  541. package/Utils/Slo/SloStatusColor.d.ts +3 -0
  542. package/Utils/Slo/SloStatusColor.js +3 -0
  543. package/Utils/Slo/SloStatusPosts.d.mts +18 -0
  544. package/Utils/Slo/SloStatusPosts.d.ts +18 -0
  545. package/Utils/Slo/SloStatusPosts.js +95 -0
  546. package/Utils/Slo/SloStatusPosts.mjs +3 -0
  547. package/Utils/StatusPage/GridAxisValues.d.mts +2 -0
  548. package/Utils/StatusPage/GridAxisValues.d.ts +2 -0
  549. package/Utils/StatusPage/GridAxisValues.js +33 -0
  550. package/Utils/StatusPage/GridAxisValues.mjs +3 -0
  551. package/Utils/StatusPage/GroupHierarchyView.d.mts +2 -2
  552. package/Utils/StatusPage/GroupHierarchyView.d.ts +2 -2
  553. package/Utils/StatusPage/GroupHierarchyView.js +13 -12
  554. package/Utils/StatusPage/GroupNestingLayout.d.mts +1 -0
  555. package/Utils/StatusPage/GroupNestingLayout.d.ts +1 -0
  556. package/Utils/StatusPage/GroupNestingLayout.js +25 -5
  557. package/Utils/StatusPage/ResourceExplorer.d.mts +2 -2
  558. package/Utils/StatusPage/ResourceExplorer.d.ts +2 -2
  559. package/Utils/StatusPage/ResourceExplorer.js +15 -21
  560. package/Utils/StatusPage/StatusColorsOnDark.d.mts +5 -3
  561. package/Utils/StatusPage/StatusColorsOnDark.d.ts +5 -3
  562. package/Utils/StatusPage/StatusColorsOnDark.js +18 -6
  563. package/Utils/StatusPage/StatusColorsOnDark.mjs +1 -0
  564. package/Utils/Telemetry/MobileAppFaults.d.mts +8 -0
  565. package/Utils/Telemetry/MobileAppFaults.d.ts +8 -0
  566. package/Utils/Telemetry/MobileAppFaults.js +69 -0
  567. package/Utils/Telemetry/MobileAppFaults.mjs +6 -0
  568. package/Utils/Workspace/WorkspaceRefusal.d.mts +108 -0
  569. package/Utils/Workspace/WorkspaceRefusal.d.ts +108 -0
  570. package/Utils/Workspace/WorkspaceRefusal.js +769 -0
  571. package/Utils/Workspace/WorkspaceRefusal.mjs +50 -0
  572. package/package.json +4 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WhoIsToldPagingState = exports.WHO_IS_TOLD_CACHE_TTL_IN_MS = exports.WhoIsToldServerChannel = exports.WhoIsToldFix = exports.WhoIsToldBreakKind = exports.WhoIsToldPersonProblem = exports.WhoIsToldOwnersSource = void 0;
3
+ exports.WhoIsToldPagingState = exports.WHO_IS_TOLD_PERSON_PROBLEM_CLAUSES = exports.WHO_IS_TOLD_CACHE_TTL_IN_MS = exports.WhoIsToldServerChannel = exports.WhoIsToldFix = exports.WhoIsToldBreakKind = exports.WhoIsToldPersonProblem = exports.WhoIsToldOwnerAddedBy = exports.WhoIsToldOwnerProblem = exports.WhoIsToldOwnerKind = exports.WhoIsToldOwnersSource = void 0;
4
4
  exports.getChannelsSwitchedOff = getChannelsSwitchedOff;
5
5
  exports.getWhoIsToldPersonReach = getWhoIsToldPersonReach;
6
6
  exports.getWhoIsToldBreakMessage = getWhoIsToldBreakMessage;
@@ -9,6 +9,9 @@ exports.getWhoIsToldBreaks = getWhoIsToldBreaks;
9
9
  exports.canWhoIsToldChannelSendNow = canWhoIsToldChannelSendNow;
10
10
  exports.isWhoIsToldPersonPagedAtOnce = isWhoIsToldPersonPagedAtOnce;
11
11
  exports.getWhoIsToldOwnersAsTold = getWhoIsToldOwnersAsTold;
12
+ exports.isWhoIsToldEventHidden = isWhoIsToldEventHidden;
13
+ exports.getWhoIsToldBreaksForReader = getWhoIsToldBreaksForReader;
14
+ exports.hasWhoIsToldHiddenEvent = hasWhoIsToldHiddenEvent;
12
15
  exports.redactWhoIsTold = redactWhoIsTold;
13
16
  exports.getWhoIsToldHeadline = getWhoIsToldHeadline;
14
17
  exports.getReachablePeople = getReachablePeople;
@@ -67,6 +70,29 @@ var WhoIsToldOwnersSource;
67
70
  // Status only: the monitor's own owners are emailed of the change.
68
71
  WhoIsToldOwnersSource["MonitorOwners"] = "MonitorOwners";
69
72
  })(WhoIsToldOwnersSource || (exports.WhoIsToldOwnersSource = WhoIsToldOwnersSource = {}));
73
+ // Whom an owner is: a person or a team.
74
+ var WhoIsToldOwnerKind;
75
+ (function (WhoIsToldOwnerKind) {
76
+ WhoIsToldOwnerKind["User"] = "User";
77
+ WhoIsToldOwnerKind["Team"] = "Team";
78
+ })(WhoIsToldOwnerKind || (exports.WhoIsToldOwnerKind = WhoIsToldOwnerKind = {}));
79
+ // Why the Created email never reaches an owner (#7572).
80
+ var WhoIsToldOwnerProblem;
81
+ (function (WhoIsToldOwnerProblem) {
82
+ // A person who left the project, or never accepted its invitation.
83
+ WhoIsToldOwnerProblem["NotInProject"] = "NotInProject";
84
+ // A team of the project with nobody in it who is a member of the project.
85
+ WhoIsToldOwnerProblem["TeamHasNobodyInProject"] = "TeamHasNobodyInProject";
86
+ // A team of another project: it reaches nobody here.
87
+ WhoIsToldOwnerProblem["TeamOfAnotherProject"] = "TeamOfAnotherProject";
88
+ })(WhoIsToldOwnerProblem || (exports.WhoIsToldOwnerProblem = WhoIsToldOwnerProblem = {}));
89
+ // What named an owner: the place to change it.
90
+ var WhoIsToldOwnerAddedBy;
91
+ (function (WhoIsToldOwnerAddedBy) {
92
+ WhoIsToldOwnerAddedBy["Criteria"] = "Criteria";
93
+ WhoIsToldOwnerAddedBy["NetworkDevice"] = "NetworkDevice";
94
+ WhoIsToldOwnerAddedBy["OwnerRule"] = "OwnerRule";
95
+ })(WhoIsToldOwnerAddedBy || (exports.WhoIsToldOwnerAddedBy = WhoIsToldOwnerAddedBy = {}));
70
96
  // Why a person a policy reaches cannot be told by a page of this severity.
71
97
  var WhoIsToldPersonProblem;
72
98
  (function (WhoIsToldPersonProblem) {
@@ -263,12 +289,20 @@ function eachOnce(channels) {
263
289
  function recordsWord(kind) {
264
290
  return kind === OnCallTestPage_1.OnCallTestPageRecordKind.Alert ? "alerts" : "incidents";
265
291
  }
266
- // What a person's problem means, in a clause.
267
- const PERSON_PROBLEM_CLAUSES = {
292
+ /*
293
+ * WHY A PERSON CAN'T BE PAGED, in a clause after their name: "Ana Lopez has
294
+ * no verified notification method". The words the monitor's "When this goes
295
+ * down" card says it in (the Dashboard's WhoIsToldWords, "{{name}} has no
296
+ * verified notification method."), so the server's break sentence, Ask AI's
297
+ * who_is_told (#7525) and the card say each reason alike -
298
+ * MonitorWhoIsToldAskAiAgreement holds the three to it. A Record, so a new
299
+ * problem does not compile until it is worded here.
300
+ */
301
+ exports.WHO_IS_TOLD_PERSON_PROBLEM_CLAUSES = {
268
302
  [WhoIsToldPersonProblem.OptedOut]: "opted out of pages of this severity",
269
- [WhoIsToldPersonProblem.NoRuleNoFallback]: "has no on-call rule for this severity, and this project does not fall back to verified methods",
303
+ [WhoIsToldPersonProblem.NoRuleNoFallback]: "has no on-call rule for this severity, and this project doesn't fall back to verified methods",
270
304
  [WhoIsToldPersonProblem.NoVerifiedMethod]: "has no verified notification method",
271
- [WhoIsToldPersonProblem.ChannelsOff]: "is reached only by channels switched off in this project",
305
+ [WhoIsToldPersonProblem.ChannelsOff]: "is reached only by channels that are off in this project",
272
306
  };
273
307
  /*
274
308
  * A break's sentence, from what it is about. A name the caller may not read
@@ -293,7 +327,7 @@ function getWhoIsToldBreakMessage(brk) {
293
327
  case WhoIsToldBreakKind.PolicyReachesNobody:
294
328
  return `${policy} reaches nobody right now: its first escalation rule has nobody on call. Add people to it, or put someone on its schedule.`;
295
329
  case WhoIsToldBreakKind.PersonUnreachable:
296
- return `${brk.userName || "Someone this policy pages"} ${PERSON_PROBLEM_CLAUSES[brk.problem || WhoIsToldPersonProblem.NoVerifiedMethod]}, so a page won't reach them.`;
330
+ return `${brk.userName || "Someone this policy pages"} ${exports.WHO_IS_TOLD_PERSON_PROBLEM_CLAUSES[brk.problem || WhoIsToldPersonProblem.NoVerifiedMethod]}, so a page won't reach them.`;
297
331
  case WhoIsToldBreakKind.ChannelOff: {
298
332
  /*
299
333
  * A channel costs money, so its switch is billing: a Project Owner, a
@@ -337,16 +371,37 @@ function getBreakKey(brk) {
337
371
  brk.channel || "",
338
372
  ].join("|");
339
373
  }
340
- // Every channel some person's page would use.
341
- function getChannelsInUse(criteria) {
342
- const used = new Set();
374
+ /*
375
+ * Every incident and alert of the chain, in the order a reader meets them:
376
+ * each criteria's, and after an alert the incident an alert incident rule
377
+ * declares from it (#7216). One a reader may not see (skip) is left out,
378
+ * and so is what it declares.
379
+ */
380
+ function getChainEvents(criteria, skip) {
381
+ var _a;
382
+ const events = [];
343
383
  for (const item of criteria) {
344
384
  for (const event of item.events) {
345
- for (const policy of event.policies) {
346
- for (const person of policy.people) {
347
- for (const channel of person.channels) {
348
- used.add(channel);
349
- }
385
+ if (skip && skip(event)) {
386
+ continue;
387
+ }
388
+ events.push(event);
389
+ const declared = (_a = event.declares) === null || _a === void 0 ? void 0 : _a.incident;
390
+ if (declared && !(skip && skip(declared))) {
391
+ events.push(declared);
392
+ }
393
+ }
394
+ }
395
+ return events;
396
+ }
397
+ // Every channel some person's page would use.
398
+ function getChannelsInUse(events) {
399
+ const used = new Set();
400
+ for (const event of events) {
401
+ for (const policy of event.policies) {
402
+ for (const person of policy.people) {
403
+ for (const channel of person.channels) {
404
+ used.add(channel);
350
405
  }
351
406
  }
352
407
  }
@@ -364,6 +419,18 @@ function getChannelsInUse(criteria) {
364
419
  * no on-call policy yet - whose fix is the on-call guided setup, which
365
420
  * makes the first one with the rules that run it - from one whose rules
366
421
  * leave this monitor out (#7369): an on-call rule needs a policy to page.
422
+ *
423
+ * An alert an alert incident rule turns into an incident that pages
424
+ * somebody is no break, though it pages nobody itself: the project meant
425
+ * its alerts to become incidents (#7216); the incident's own policies and
426
+ * people are its breaks. `isHidden` leaves out what a reader may not see -
427
+ * a private record that is not theirs (#7213): nothing it would page is
428
+ * their break. It still counts as something the monitor does.
429
+ *
430
+ * An owner no Created email reaches (WhoIsToldOwners.notReached, #7572) is
431
+ * no break: the email still goes out, to the owners it reaches or to the
432
+ * Project Owners, so nothing stops who is told. The card says it with who
433
+ * is emailed, and Setup health lists it as worth fixing (#9371).
367
434
  */
368
435
  function getWhoIsToldBreaks(data) {
369
436
  const breaks = [];
@@ -385,98 +452,110 @@ function getWhoIsToldBreaks(data) {
385
452
  fix: WhoIsToldFix.MonitorCriteria,
386
453
  });
387
454
  }
388
- for (const item of data.criteria) {
389
- for (const event of item.events) {
390
- if (event.policies.length === 0) {
391
- if (!data.projectHasOnCallPolicies) {
392
- /*
393
- * No policy at all: whatever rules the project has page nothing,
394
- * so the first policy is what is missing (#7369).
395
- */
396
- add({
397
- kind: WhoIsToldBreakKind.NobodyPaged,
398
- fix: WhoIsToldFix.OnCallGuidedSetup,
399
- recordKind: event.kind,
400
- });
401
- }
402
- else if (event.kind === OnCallTestPage_1.OnCallTestPageRecordKind.Alert &&
403
- data.projectHasIncidentOnCallRules &&
404
- !data.projectHasAlertOnCallRules) {
405
- add({
406
- kind: WhoIsToldBreakKind.OnlyIncidentsHaveRules,
407
- fix: WhoIsToldFix.AlertOnCallRules,
408
- recordKind: event.kind,
409
- });
410
- }
411
- else {
412
- add({
413
- kind: WhoIsToldBreakKind.NobodyPaged,
414
- fix: event.kind === OnCallTestPage_1.OnCallTestPageRecordKind.Alert
415
- ? WhoIsToldFix.AlertOnCallRules
416
- : WhoIsToldFix.IncidentOnCallRules,
417
- recordKind: event.kind,
418
- });
419
- }
455
+ const events = getChainEvents(data.criteria, data.isHidden);
456
+ for (const event of events) {
457
+ /*
458
+ * The incident an alert becomes: its own policies are its breaks, and
459
+ * an alert whose incident pages somebody is not "nobody is paged".
460
+ */
461
+ const declaredIncidentPages = Boolean(event.declares &&
462
+ event.declares.incident.policies.length > 0 &&
463
+ !(data.isHidden && data.isHidden(event.declares.incident)));
464
+ if (event.policies.length === 0) {
465
+ // Declared from an alert: the alert's break says nobody is paged.
466
+ const isDeclaredIncident = events.some((other) => {
467
+ var _a;
468
+ return ((_a = other.declares) === null || _a === void 0 ? void 0 : _a.incident) === event;
469
+ });
470
+ if (isDeclaredIncident || declaredIncidentPages) {
420
471
  continue;
421
472
  }
422
- for (const policy of event.policies) {
423
- // What the caller may not read, they are not told the inside of.
424
- if (policy.isHidden) {
425
- continue;
426
- }
427
- if (policy.levelCount === 0) {
428
- add({
429
- kind: WhoIsToldBreakKind.PolicyHasNoLevels,
430
- fix: WhoIsToldFix.OnCallPolicy,
431
- policyId: policy.id,
432
- policyName: policy.name || undefined,
433
- });
473
+ if (!data.projectHasOnCallPolicies) {
474
+ /*
475
+ * No policy at all: whatever rules the project has page nothing,
476
+ * so the first policy is what is missing (#7369).
477
+ */
478
+ add({
479
+ kind: WhoIsToldBreakKind.NobodyPaged,
480
+ fix: WhoIsToldFix.OnCallGuidedSetup,
481
+ recordKind: event.kind,
482
+ });
483
+ }
484
+ else if (event.kind === OnCallTestPage_1.OnCallTestPageRecordKind.Alert &&
485
+ data.projectHasIncidentOnCallRules &&
486
+ !data.projectHasAlertOnCallRules) {
487
+ add({
488
+ kind: WhoIsToldBreakKind.OnlyIncidentsHaveRules,
489
+ fix: WhoIsToldFix.AlertOnCallRules,
490
+ recordKind: event.kind,
491
+ });
492
+ }
493
+ else {
494
+ add({
495
+ kind: WhoIsToldBreakKind.NobodyPaged,
496
+ fix: event.kind === OnCallTestPage_1.OnCallTestPageRecordKind.Alert
497
+ ? WhoIsToldFix.AlertOnCallRules
498
+ : WhoIsToldFix.IncidentOnCallRules,
499
+ recordKind: event.kind,
500
+ });
501
+ }
502
+ continue;
503
+ }
504
+ for (const policy of event.policies) {
505
+ // What the caller may not read, they are not told the inside of.
506
+ if (policy.isHidden) {
507
+ continue;
508
+ }
509
+ if (policy.levelCount === 0) {
510
+ add({
511
+ kind: WhoIsToldBreakKind.PolicyHasNoLevels,
512
+ fix: WhoIsToldFix.OnCallPolicy,
513
+ policyId: policy.id,
514
+ policyName: policy.name || undefined,
515
+ });
516
+ continue;
517
+ }
518
+ if (policy.people.length === 0) {
519
+ add({
520
+ kind: WhoIsToldBreakKind.PolicyReachesNobody,
521
+ fix: WhoIsToldFix.OnCallPolicy,
522
+ policyId: policy.id,
523
+ policyName: policy.name || undefined,
524
+ });
525
+ continue;
526
+ }
527
+ for (const person of policy.people) {
528
+ if (person.isReachable) {
434
529
  continue;
435
530
  }
436
- if (policy.people.length === 0) {
437
- add({
438
- kind: WhoIsToldBreakKind.PolicyReachesNobody,
439
- fix: WhoIsToldFix.OnCallPolicy,
440
- policyId: policy.id,
441
- policyName: policy.name || undefined,
442
- });
531
+ /*
532
+ * A person whose only channels are off is the switch's break,
533
+ * told once below, not theirs.
534
+ */
535
+ if (person.problem === WhoIsToldPersonProblem.ChannelsOff) {
443
536
  continue;
444
537
  }
445
- for (const person of policy.people) {
446
- if (person.isReachable) {
447
- continue;
448
- }
449
- /*
450
- * A person whose only channels are off is the switch's break,
451
- * told once below, not theirs.
452
- */
453
- if (person.problem === WhoIsToldPersonProblem.ChannelsOff) {
454
- continue;
455
- }
456
- add({
457
- kind: WhoIsToldBreakKind.PersonUnreachable,
458
- fix: WhoIsToldFix.OnCallReadiness,
459
- policyId: policy.id,
460
- policyName: policy.name || undefined,
461
- userId: person.userId,
462
- userName: person.name || undefined,
463
- problem: person.problem,
464
- });
465
- }
538
+ add({
539
+ kind: WhoIsToldBreakKind.PersonUnreachable,
540
+ fix: WhoIsToldFix.OnCallReadiness,
541
+ policyId: policy.id,
542
+ policyName: policy.name || undefined,
543
+ userId: person.userId,
544
+ userName: person.name || undefined,
545
+ problem: person.problem,
546
+ });
466
547
  }
467
548
  }
468
549
  }
469
550
  // The project's switches, for a channel some page would use.
470
551
  const offChannels = getChannelsSwitchedOff(data.channels);
471
552
  const wanted = new Set();
472
- for (const item of data.criteria) {
473
- for (const event of item.events) {
474
- for (const policy of event.policies) {
475
- for (const person of policy.people) {
476
- if (person.problem === WhoIsToldPersonProblem.ChannelsOff) {
477
- for (const channel of person.channels) {
478
- wanted.add(channel);
479
- }
553
+ for (const event of events) {
554
+ for (const policy of event.policies) {
555
+ for (const person of policy.people) {
556
+ if (person.problem === WhoIsToldPersonProblem.ChannelsOff) {
557
+ for (const channel of person.channels) {
558
+ wanted.add(channel);
480
559
  }
481
560
  }
482
561
  }
@@ -491,7 +570,7 @@ function getWhoIsToldBreaks(data) {
491
570
  });
492
571
  }
493
572
  }
494
- const used = getChannelsInUse(data.criteria);
573
+ const used = getChannelsInUse(events);
495
574
  // OneUptime Cloud: SMS and calls paid from an empty balance.
496
575
  if (data.channels.isBillingEnabled) {
497
576
  const paysForSms = used.has(OnCallPageChannel_1.OnCallPageChannel.SMS) && !data.channels.hasOwnTwilioForSms;
@@ -666,23 +745,110 @@ function getWhoIsToldOwnersAsTold(data) {
666
745
  pagedOwners: pagedOwners,
667
746
  };
668
747
  }
748
+ /*
749
+ * Whether a record the criteria would open is hidden from a reader (#7213):
750
+ * it is private, and not theirs to see once it exists (canReadPrivateEvent:
751
+ * one of its owners, in a team of them, or a Project Owner or Project
752
+ * Admin). Without canReadPrivateEvent no private record is theirs. The card
753
+ * (redactWhoIsTold) and Setup health (#9370) ask it the same way.
754
+ */
755
+ function isWhoIsToldEventHidden(event, canReadPrivateEvent) {
756
+ return (event.isPrivate === true &&
757
+ !(canReadPrivateEvent ? canReadPrivateEvent(event) : false));
758
+ }
759
+ /*
760
+ * A CHAIN'S BREAKS AS ONE READER IS TOLD THEM: worked out again without the
761
+ * records hidden from them - a private record that is not theirs raises no
762
+ * break of theirs (#7213) - from the resolver's own facts
763
+ * (WhoIsToldProjectFacts); the resolver's own breaks when it kept none.
764
+ * What a monitor's card says (redactWhoIsTold), and what Setup health lists
765
+ * for the same reader (#9370), so the two never disagree.
766
+ */
767
+ function getWhoIsToldBreaksForReader(data) {
768
+ const facts = data.result.facts;
769
+ if (!facts) {
770
+ return data.result.breaks;
771
+ }
772
+ return getWhoIsToldBreaks({
773
+ criteria: data.result.criteria,
774
+ channels: data.result.channels,
775
+ projectHasIncidentOnCallRules: facts.projectHasIncidentOnCallRules,
776
+ projectHasAlertOnCallRules: facts.projectHasAlertOnCallRules,
777
+ projectHasOnCallPolicies: facts.projectHasOnCallPolicies,
778
+ isHidden: data.isHidden,
779
+ });
780
+ }
781
+ // Whether any record a chain would open is hidden from the reader.
782
+ function hasWhoIsToldHiddenEvent(result, isHidden) {
783
+ return result.criteria.some((item) => {
784
+ return item.events.some((event) => {
785
+ return (isHidden(event) ||
786
+ Boolean(event.declares && isHidden(event.declares.incident)));
787
+ });
788
+ });
789
+ }
669
790
  // A rule or status page as it is, when the caller may read it; else nameless.
670
791
  function withNameIfReadable(item, readableIds) {
671
792
  return readableIds.has(item.id) ? item : { ...item, name: "" };
672
793
  }
794
+ /*
795
+ * What a reader is told of a private record that is not theirs to see
796
+ * (#7213): what opens - its kind and severity, which the criteria they may
797
+ * read says - and that it is private, by the privacy rules that make it so
798
+ * as far as they may read them. Nothing of whom it tells, nor its title.
799
+ */
800
+ function getHiddenEvent(data) {
801
+ return {
802
+ kind: data.event.kind,
803
+ title: "",
804
+ severityName: data.event.severityName,
805
+ owners: {
806
+ source: WhoIsToldOwnersSource.Named,
807
+ userNames: [],
808
+ teamNames: [],
809
+ },
810
+ ownerRules: [],
811
+ rules: [],
812
+ policies: [],
813
+ statusPages: [],
814
+ isPrivate: true,
815
+ privacyRules: (data.event.privacyRules || []).map((rule) => {
816
+ return withNameIfReadable(rule, data.readablePrivacyRuleIds);
817
+ }),
818
+ isHidden: true,
819
+ };
820
+ }
673
821
  /*
674
822
  * THE ANSWER AS ONE CALLER MAY SEE IT. Somebody who may read the monitor
675
823
  * but not a policy is told paging is set up, and nothing of who: the
676
824
  * policy's name, people and gaps are taken away, and so are the names in
677
- * its breaks. An on-call rule, an owner rule or a status page they may not
678
- * read keeps its place without its name. Who an incident's or an alert's
679
- * Created email tells is worked out from the policies as they read them
825
+ * its breaks. An on-call rule, an owner rule, a privacy, label or alert
826
+ * incident rule, a status page or a monitor group they may not read keeps
827
+ * its place without its name. Who an incident's or an alert's Created
828
+ * email tells is worked out from the policies as they read them
680
829
  * (getWhoIsToldOwnersAsTold, #8860).
830
+ *
831
+ * A PRIVATE RECORD THAT IS NOT THEIRS TO SEE (#7213) - canReadPrivateEvent
832
+ * says whether they will be able to read it once it exists: one of its
833
+ * owners, in a team of them, or a Project Owner or Project Admin - says
834
+ * only that it opens, and that it is private; nothing it would tell, and
835
+ * no break it would raise. Without canReadPrivateEvent no private record
836
+ * is theirs. The breaks are worked out again without such records, from
837
+ * the resolver's own facts (WhoIsToldProjectFacts), which, with every
838
+ * record's owner ids, never leave the server.
681
839
  */
682
840
  function redactWhoIsTold(data) {
841
+ const none = new Set();
842
+ const readableMonitorGroupIds = data.readableMonitorGroupIds || none;
843
+ const readablePrivacyRuleIds = data.readablePrivacyRuleIds || none;
844
+ const readableLabelRuleIds = data.readableLabelRuleIds || none;
845
+ const readableAlertIncidentRuleIds = data.readableAlertIncidentRuleIds || none;
683
846
  const isReadable = (policyId) => {
684
847
  return !policyId || data.readablePolicyIds.has(policyId);
685
848
  };
849
+ const isHidden = (event) => {
850
+ return isWhoIsToldEventHidden(event, data.canReadPrivateEvent);
851
+ };
686
852
  const redactPolicy = (policy) => {
687
853
  if (isReadable(policy.id)) {
688
854
  return policy;
@@ -699,35 +865,96 @@ function redactWhoIsTold(data) {
699
865
  notPagedCodes: [],
700
866
  };
701
867
  };
868
+ const redactRules = (rules, readableIds) => {
869
+ return rules
870
+ ? rules.map((rule) => {
871
+ return withNameIfReadable(rule, readableIds);
872
+ })
873
+ : undefined;
874
+ };
875
+ const redactEvent = (event) => {
876
+ if (isHidden(event)) {
877
+ return getHiddenEvent({
878
+ event: event,
879
+ readablePrivacyRuleIds: readablePrivacyRuleIds,
880
+ });
881
+ }
882
+ // Who will own it is the resolver's to know, never sent.
883
+ const { declares, ...shown } = event;
884
+ delete shown.ownerIds;
885
+ const policies = event.policies.map(redactPolicy);
886
+ const owners = getWhoIsToldOwnersAsTold({
887
+ owners: event.owners,
888
+ policies: policies,
889
+ channels: data.result.channels,
890
+ });
891
+ if (owners.notReached) {
892
+ owners.notReached = owners.notReached.map((owner) => {
893
+ return owner.rule
894
+ ? {
895
+ ...owner,
896
+ rule: withNameIfReadable(owner.rule, data.readableOwnerRuleIds),
897
+ }
898
+ : owner;
899
+ });
900
+ }
901
+ const redacted = {
902
+ ...shown,
903
+ owners: owners,
904
+ ownerRules: event.ownerRules.map((rule) => {
905
+ return withNameIfReadable(rule, data.readableOwnerRuleIds);
906
+ }),
907
+ rules: event.rules.map((rule) => {
908
+ return withNameIfReadable(rule, data.readableRuleIds);
909
+ }),
910
+ statusPages: event.statusPages.map((page) => {
911
+ const named = withNameIfReadable(page, data.readableStatusPageIds);
912
+ return page.groups
913
+ ? {
914
+ ...named,
915
+ groups: page.groups.map((group) => {
916
+ return withNameIfReadable(group, readableMonitorGroupIds);
917
+ }),
918
+ }
919
+ : named;
920
+ }),
921
+ policies: policies,
922
+ };
923
+ const privacyRules = redactRules(event.privacyRules, readablePrivacyRuleIds);
924
+ if (privacyRules) {
925
+ redacted.privacyRules = privacyRules;
926
+ }
927
+ const labelRules = redactRules(event.labelRules, readableLabelRuleIds);
928
+ if (labelRules) {
929
+ redacted.labelRules = labelRules;
930
+ }
931
+ if (declares) {
932
+ redacted.declares = {
933
+ rule: withNameIfReadable(declares.rule, readableAlertIncidentRuleIds),
934
+ waitInMinutes: declares.waitInMinutes,
935
+ incident: redactEvent(declares.incident),
936
+ };
937
+ }
938
+ return redacted;
939
+ };
940
+ /*
941
+ * The reader's breaks: worked out again without what is hidden from them,
942
+ * when the resolver kept what that needs; else the resolver's own.
943
+ */
944
+ const { facts, ...result } = data.result;
945
+ const breaks = getWhoIsToldBreaksForReader({
946
+ result: { ...result, facts: facts },
947
+ isHidden: isHidden,
948
+ });
702
949
  return {
703
- ...data.result,
950
+ ...result,
704
951
  criteria: data.result.criteria.map((item) => {
705
952
  return {
706
953
  ...item,
707
- events: item.events.map((event) => {
708
- const policies = event.policies.map(redactPolicy);
709
- return {
710
- ...event,
711
- owners: getWhoIsToldOwnersAsTold({
712
- owners: event.owners,
713
- policies: policies,
714
- channels: data.result.channels,
715
- }),
716
- ownerRules: event.ownerRules.map((rule) => {
717
- return withNameIfReadable(rule, data.readableOwnerRuleIds);
718
- }),
719
- rules: event.rules.map((rule) => {
720
- return withNameIfReadable(rule, data.readableRuleIds);
721
- }),
722
- statusPages: event.statusPages.map((page) => {
723
- return withNameIfReadable(page, data.readableStatusPageIds);
724
- }),
725
- policies: policies,
726
- };
727
- }),
954
+ events: item.events.map(redactEvent),
728
955
  };
729
956
  }),
730
- breaks: data.result.breaks
957
+ breaks: breaks
731
958
  .filter((brk) => {
732
959
  // Who a hidden policy pages is not the caller's to read.
733
960
  return !(brk.kind === WhoIsToldBreakKind.PersonUnreachable &&
@@ -1,7 +1,11 @@
1
1
  import commonJsModule from "./WhoIsTold.js";
2
2
  export const WHO_IS_TOLD_CACHE_TTL_IN_MS = commonJsModule.WHO_IS_TOLD_CACHE_TTL_IN_MS;
3
+ export const WHO_IS_TOLD_PERSON_PROBLEM_CLAUSES = commonJsModule.WHO_IS_TOLD_PERSON_PROBLEM_CLAUSES;
3
4
  export const WhoIsToldBreakKind = commonJsModule.WhoIsToldBreakKind;
4
5
  export const WhoIsToldFix = commonJsModule.WhoIsToldFix;
6
+ export const WhoIsToldOwnerAddedBy = commonJsModule.WhoIsToldOwnerAddedBy;
7
+ export const WhoIsToldOwnerKind = commonJsModule.WhoIsToldOwnerKind;
8
+ export const WhoIsToldOwnerProblem = commonJsModule.WhoIsToldOwnerProblem;
5
9
  export const WhoIsToldOwnersSource = commonJsModule.WhoIsToldOwnersSource;
6
10
  export const WhoIsToldPagingState = commonJsModule.WhoIsToldPagingState;
7
11
  export const WhoIsToldPersonProblem = commonJsModule.WhoIsToldPersonProblem;
@@ -11,10 +15,13 @@ export const getChannelsSwitchedOff = commonJsModule.getChannelsSwitchedOff;
11
15
  export const getReachablePeople = commonJsModule.getReachablePeople;
12
16
  export const getWhoIsToldBreakMessage = commonJsModule.getWhoIsToldBreakMessage;
13
17
  export const getWhoIsToldBreaks = commonJsModule.getWhoIsToldBreaks;
18
+ export const getWhoIsToldBreaksForReader = commonJsModule.getWhoIsToldBreaksForReader;
14
19
  export const getWhoIsToldHeadline = commonJsModule.getWhoIsToldHeadline;
15
20
  export const getWhoIsToldOwnersAsTold = commonJsModule.getWhoIsToldOwnersAsTold;
16
21
  export const getWhoIsToldPagingState = commonJsModule.getWhoIsToldPagingState;
17
22
  export const getWhoIsToldPersonReach = commonJsModule.getWhoIsToldPersonReach;
23
+ export const hasWhoIsToldHiddenEvent = commonJsModule.hasWhoIsToldHiddenEvent;
24
+ export const isWhoIsToldEventHidden = commonJsModule.isWhoIsToldEventHidden;
18
25
  export const isWhoIsToldPersonPagedAtOnce = commonJsModule.isWhoIsToldPersonPagedAtOnce;
19
26
  export const makeWhoIsToldBreak = commonJsModule.makeWhoIsToldBreak;
20
27
  export const redactWhoIsTold = commonJsModule.redactWhoIsTold;
@@ -56,8 +56,12 @@ function hosts(count) {
56
56
  function discoveredHosts(count) {
57
57
  return `${count} discovered ${count === 1 ? "host" : "hosts"}`;
58
58
  }
59
+ /*
60
+ * Monitors of any kind a rule's template makes: a Network Device template's,
61
+ * or a Ping, IP, Port or NTP template's (issue #9510).
62
+ */
59
63
  function activeMonitors(count) {
60
- return `${count} active Network Device ${count === 1 ? "monitor" : "monitors"}`;
64
+ return `${count} active ${count === 1 ? "monitor" : "monitors"}`;
61
65
  }
62
66
  /*
63
67
  * Reasons off the wire. Anything that is not a non-empty string is dropped
@@ -119,7 +123,7 @@ function mergeReasons(lists) {
119
123
  }
120
124
  /*
121
125
  * What a capped run left behind, as a phrase — "409 hosts still to import",
122
- * "409 active Network Device monitors still to create", or both.
126
+ * "409 active monitors still to create", or both.
123
127
  *
124
128
  * The two halves of the work have separate caps, so either can be the only
125
129
  * thing left over: an estate that is fully imported but unmonitored hits the
@@ -179,7 +183,7 @@ class RuleRunResultUtil {
179
183
  /*
180
184
  * A backfill run over an estate that is ALREADY imported creates no
181
185
  * devices at all, and the flat "No devices were imported" read as a
182
- * failure right above "Created 500 active Network Device monitors".
186
+ * failure right above "Created 500 active monitors".
183
187
  * Name what did not happen precisely instead.
184
188
  */
185
189
  lines.push(`No new network devices were imported. This rule matched ${hosts(result.hostsMatched)} out of the ${discoveredHosts(result.hostsEvaluated)} it looked at.`);
@@ -199,8 +203,8 @@ class RuleRunResultUtil {
199
203
  lines.push(`Created ${activeMonitors(result.monitorsCreated)} from the selected Monitor Template.`);
200
204
  }
201
205
  if (result.monitorsSkippedAlreadyExisting > 0) {
202
- const skippedRequestedMonitors = `${result.monitorsSkippedAlreadyExisting} requested active Network Device ${result.monitorsSkippedAlreadyExisting === 1 ? "monitor" : "monitors"}`;
203
- lines.push(`${skippedRequestedMonitors} ${result.monitorsSkippedAlreadyExisting === 1 ? "was" : "were"} skipped because the device already had the requested automatic monitor or a manually configured Network Device monitor.`);
206
+ const skippedRequestedMonitors = `${result.monitorsSkippedAlreadyExisting} requested active ${result.monitorsSkippedAlreadyExisting === 1 ? "monitor" : "monitors"}`;
207
+ lines.push(`${skippedRequestedMonitors} ${result.monitorsSkippedAlreadyExisting === 1 ? "was" : "were"} skipped because the device already had one: from the same template, a monitor of the same kind that checks the same thing, or a Network Device monitor configured by hand.`);
204
208
  }
205
209
  if (result.monitorsSkippedUnsupportedHost > 0) {
206
210
  lines.push(`${activeMonitors(result.monitorsSkippedUnsupportedHost)} could not be provisioned because the discovery result was not SNMP-capable (for example, a ping-only host).`);