@oneuptime/common 14.0.110 → 14.1.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 (322) hide show
  1. package/Models/DatabaseModels/AIRunRecording.d.mts +12 -0
  2. package/Models/DatabaseModels/AIRunRecording.d.ts +12 -0
  3. package/Models/DatabaseModels/AIRunRecording.js +181 -0
  4. package/Models/DatabaseModels/AIRunRecording.mjs +2 -0
  5. package/Models/DatabaseModels/Alert.js +18 -2
  6. package/Models/DatabaseModels/DataStore.js +9 -0
  7. package/Models/DatabaseModels/EmailLog.js +2 -2
  8. package/Models/DatabaseModels/Form.js +3 -3
  9. package/Models/DatabaseModels/FormSubmission.js +4 -4
  10. package/Models/DatabaseModels/GlobalConfig.js +46 -45
  11. package/Models/DatabaseModels/Incident.js +18 -2
  12. package/Models/DatabaseModels/IncidentSlaRule.js +2 -2
  13. package/Models/DatabaseModels/Index.js +4 -0
  14. package/Models/DatabaseModels/InventoryItem.js +11 -0
  15. package/Models/DatabaseModels/Monitor.js +51 -17
  16. package/Models/DatabaseModels/MonitorNetworkDevice.d.mts +11 -0
  17. package/Models/DatabaseModels/MonitorNetworkDevice.d.ts +11 -0
  18. package/Models/DatabaseModels/MonitorNetworkDevice.js +189 -0
  19. package/Models/DatabaseModels/MonitorNetworkDevice.mjs +2 -0
  20. package/Models/DatabaseModels/MonitorProbe.js +22 -5
  21. package/Models/DatabaseModels/NetworkDevice.js +23 -7
  22. package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
  23. package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
  24. package/Models/DatabaseModels/NetworkEndpoint.js +39 -7
  25. package/Models/DatabaseModels/NetworkInterface.js +5 -5
  26. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +19 -5
  27. package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.mts +1 -0
  28. package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.ts +1 -0
  29. package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +2 -0
  30. package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +35 -7
  31. package/Models/DatabaseModels/OpenStackCloudCheck.js +8 -1
  32. package/Models/DatabaseModels/Project.d.mts +1 -0
  33. package/Models/DatabaseModels/Project.d.ts +1 -0
  34. package/Models/DatabaseModels/Project.js +46 -3
  35. package/Models/DatabaseModels/ProjectCallSMSConfig.js +3 -1
  36. package/Models/DatabaseModels/ProjectSmtpConfig.js +2 -0
  37. package/Models/DatabaseModels/PublicNoteApprovalRequest.js +3 -3
  38. package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
  39. package/Models/DatabaseModels/RunbookExecution.js +2 -2
  40. package/Models/DatabaseModels/RunbookRule.js +6 -6
  41. package/Models/DatabaseModels/ScheduledMaintenance.js +3 -3
  42. package/Models/DatabaseModels/ScheduledMaintenanceCalendarFeed.js +1 -1
  43. package/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js +1 -1
  44. package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +7 -7
  45. package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +1 -1
  46. package/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.js +6 -6
  47. package/Models/DatabaseModels/ScheduledMaintenanceOwnerTeam.js +4 -4
  48. package/Models/DatabaseModels/ScheduledMaintenanceOwnerUser.js +4 -4
  49. package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +3 -3
  50. package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +4 -4
  51. package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +3 -3
  52. package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +5 -5
  53. package/Models/DatabaseModels/TeamMember.js +10 -1
  54. package/Models/DatabaseModels/WorkspaceNotificationRule.js +36 -1
  55. package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
  56. package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.js +3 -3
  57. package/Server/Services/DatabaseService.d.mts +4 -1
  58. package/Server/Services/DatabaseService.d.ts +4 -1
  59. package/Server/Types/Database/CountBy.d.mts +1 -0
  60. package/Server/Types/Database/CountBy.d.ts +1 -0
  61. package/Server/Types/Database/UpdateLimit.d.mts +6 -0
  62. package/Server/Types/Database/UpdateLimit.d.ts +6 -0
  63. package/Types/AI/AIActionWords.d.mts +25 -1
  64. package/Types/AI/AIActionWords.d.ts +25 -1
  65. package/Types/AI/AIActionWords.js +166 -3
  66. package/Types/AI/AIActionWords.mjs +6 -0
  67. package/Types/AI/AIChatTypes.d.mts +2 -1
  68. package/Types/AI/AIChatTypes.d.ts +2 -1
  69. package/Types/AI/AiOutcomes.d.mts +57 -0
  70. package/Types/AI/AiOutcomes.d.ts +57 -0
  71. package/Types/AI/AiOutcomes.js +67 -0
  72. package/Types/AI/AiOutcomes.mjs +10 -0
  73. package/Types/AI/AiRunRefusal.d.mts +45 -0
  74. package/Types/AI/AiRunRefusal.d.ts +45 -0
  75. package/Types/AI/AiRunRefusal.js +187 -0
  76. package/Types/AI/AiRunRefusal.mjs +12 -0
  77. package/Types/AI/InvestigationRecording.d.mts +46 -0
  78. package/Types/AI/InvestigationRecording.d.ts +46 -0
  79. package/Types/AI/InvestigationRecording.js +42 -0
  80. package/Types/AI/InvestigationRecording.mjs +7 -0
  81. package/Types/API/HTTPResponse.d.mts +3 -0
  82. package/Types/API/HTTPResponse.d.ts +3 -0
  83. package/Types/API/HTTPResponse.js +15 -0
  84. package/Types/BaseDatabase/AggregateBy.d.mts +16 -0
  85. package/Types/BaseDatabase/AggregateBy.d.ts +16 -0
  86. package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +16 -1
  87. package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +16 -1
  88. package/Types/BaseDatabase/AggregationIntervalUtil.js +92 -2
  89. package/Types/BaseDatabase/ListResult.d.mts +1 -0
  90. package/Types/BaseDatabase/ListResult.d.ts +1 -0
  91. package/Types/CallAndSMS/ServerTwilioEnvironment.d.mts +47 -0
  92. package/Types/CallAndSMS/ServerTwilioEnvironment.d.ts +47 -0
  93. package/Types/CallAndSMS/ServerTwilioEnvironment.js +282 -0
  94. package/Types/CallAndSMS/ServerTwilioEnvironment.mjs +7 -0
  95. package/Types/Dashboard/DashboardAutoRefresh.d.mts +1 -0
  96. package/Types/Dashboard/DashboardAutoRefresh.d.ts +1 -0
  97. package/Types/Dashboard/DashboardAutoRefresh.js +21 -0
  98. package/Types/Dashboard/DashboardAutoRefresh.mjs +1 -0
  99. package/Types/Date.d.mts +6 -1
  100. package/Types/Date.d.ts +6 -1
  101. package/Types/Date.js +39 -7
  102. package/Types/Date.mjs +1 -0
  103. package/Types/Email/ServerEmailEnvironment.d.mts +85 -0
  104. package/Types/Email/ServerEmailEnvironment.d.ts +85 -0
  105. package/Types/Email/ServerEmailEnvironment.js +793 -0
  106. package/Types/Email/ServerEmailEnvironment.mjs +14 -0
  107. package/Types/Exception/AiRunRefusalException.d.mts +6 -0
  108. package/Types/Exception/AiRunRefusalException.d.ts +6 -0
  109. package/Types/Exception/AiRunRefusalException.js +23 -0
  110. package/Types/Exception/AiRunRefusalException.mjs +2 -0
  111. package/Types/Form/FormTargetCatalog.js +2 -2
  112. package/Types/Form/FormTargetType.js +2 -2
  113. package/Types/ListData.d.mts +2 -0
  114. package/Types/ListData.d.ts +2 -0
  115. package/Types/ListData.js +4 -0
  116. package/Types/Monitor/MonitorCriteriaInstance.js +9 -0
  117. package/Types/Monitor/MonitorNotCheckedReason.d.mts +7 -0
  118. package/Types/Monitor/MonitorNotCheckedReason.d.ts +7 -0
  119. package/Types/Monitor/MonitorNotCheckedReason.js +36 -0
  120. package/Types/Monitor/MonitorNotCheckedReason.mjs +4 -0
  121. package/Types/Monitor/SnmpMonitor/NetworkTopology.d.mts +6 -0
  122. package/Types/Monitor/SnmpMonitor/NetworkTopology.d.ts +6 -0
  123. package/Types/Monitor/UptimeHistoryLabels.js +2 -2
  124. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.mts +1 -0
  125. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.ts +1 -0
  126. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.js +12 -9
  127. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.mjs +1 -0
  128. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +3 -1
  129. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +3 -1
  130. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +24 -6
  131. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +1 -0
  132. package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.mts +1 -0
  133. package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
  134. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.mts +12 -0
  135. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.ts +12 -0
  136. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.js +38 -0
  137. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.mjs +3 -0
  138. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +92 -0
  139. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +92 -0
  140. package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +512 -0
  141. package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +7 -0
  142. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +23 -0
  143. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +23 -0
  144. package/Types/OnCallDutyPolicy/UserOverrideEdit.js +105 -0
  145. package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +6 -0
  146. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +64 -0
  147. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +64 -0
  148. package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +237 -0
  149. package/Types/OnCallDutyPolicy/UserOverrideOverlap.mjs +14 -0
  150. package/Types/Permission.js +2 -2
  151. package/Types/Probe/ProbeCapability.d.mts +2 -1
  152. package/Types/Probe/ProbeCapability.d.ts +2 -1
  153. package/Types/Probe/ProbeCapability.js +10 -0
  154. package/Types/ReaderLanguage.d.mts +1 -0
  155. package/Types/ReaderLanguage.d.ts +1 -0
  156. package/Types/ReaderLanguage.js +13 -1
  157. package/Types/ReaderLanguage.mjs +1 -0
  158. package/Types/Rules/RuleRun.js +2 -2
  159. package/Types/ScheduledMaintenance/MaintenanceCalendar.js +1 -1
  160. package/Types/ServerSending/ServerSendingStatus.d.mts +7 -0
  161. package/Types/ServerSending/ServerSendingStatus.d.ts +7 -0
  162. package/Types/ServerSending/ServerSendingStatus.js +49 -2
  163. package/Types/ServerSetup/ServerSetupChecklist.js +3 -3
  164. package/Types/StateTimeline/RowsKeptOnDelete.js +1 -1
  165. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.mts +8 -0
  166. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.ts +8 -0
  167. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +50 -0
  168. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.mjs +3 -0
  169. package/Types/StatusPage/PublicNoteSubscriberNotificationDefault.js +1 -1
  170. package/Types/Telemetry/CompatibleIngest.d.mts +20 -0
  171. package/Types/Telemetry/CompatibleIngest.d.ts +20 -0
  172. package/Types/Telemetry/CompatibleIngest.js +123 -0
  173. package/Types/Telemetry/CompatibleIngest.mjs +21 -0
  174. package/Types/Telemetry/TelemetryIngestSurface.d.mts +5 -0
  175. package/Types/Telemetry/TelemetryIngestSurface.d.ts +5 -0
  176. package/Types/Telemetry/TelemetryIngestSurface.js +48 -7
  177. package/Types/TimezoneAlias.d.mts +1 -0
  178. package/Types/TimezoneAlias.d.ts +1 -0
  179. package/Types/TimezoneAlias.js +13 -0
  180. package/Types/Translator.js +374 -48
  181. package/Types/Workflow/RunRecord.js +1 -1
  182. package/Types/Workflow/Templates.js +2 -2
  183. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +2 -0
  184. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +2 -0
  185. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +26 -1
  186. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +26 -1
  187. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +84 -0
  188. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +84 -0
  189. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +456 -0
  190. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.mjs +5 -0
  191. package/Utils/Dashboard/ValueWidgetSeries.d.mts +2 -0
  192. package/Utils/Dashboard/ValueWidgetSeries.d.ts +2 -0
  193. package/Utils/Dashboard/ValueWidgetSeries.js +75 -0
  194. package/Utils/DeveloperDocs/ExampleBuilder.js +1 -1
  195. package/Utils/DeveloperDocs/ResourceProfiles.js +2 -2
  196. package/Utils/GuidedSetup/StatusPageRecords.d.mts +5 -0
  197. package/Utils/GuidedSetup/StatusPageRecords.d.ts +5 -0
  198. package/Utils/GuidedSetup/StatusPageRecords.js +27 -2
  199. package/Utils/GuidedSetup/StatusPageRecords.mjs +1 -0
  200. package/Utils/GuidedSetup/WebsiteMonitorRecords.js +6 -0
  201. package/Utils/HostAddressUtil.d.mts +1 -0
  202. package/Utils/HostAddressUtil.d.ts +1 -0
  203. package/Utils/HostAddressUtil.js +30 -0
  204. package/Utils/LinearRegExp/LinearRegExp.js +5 -1
  205. package/Utils/Milliseconds.d.mts +7 -0
  206. package/Utils/Milliseconds.d.ts +7 -0
  207. package/Utils/Milliseconds.js +60 -0
  208. package/Utils/Milliseconds.mjs +4 -0
  209. package/Utils/Monitor/EndpointAttachmentUtil.d.mts +8 -0
  210. package/Utils/Monitor/EndpointAttachmentUtil.d.ts +8 -0
  211. package/Utils/Monitor/EndpointAttachmentUtil.js +91 -21
  212. package/Utils/Monitor/EndpointAttachmentUtil.mjs +4 -0
  213. package/Utils/Monitor/InterfaceInventoryUtil.d.mts +40 -0
  214. package/Utils/Monitor/InterfaceInventoryUtil.d.ts +40 -0
  215. package/Utils/Monitor/InterfaceInventoryUtil.js +217 -5
  216. package/Utils/Monitor/InterfaceInventoryUtil.mjs +8 -0
  217. package/Utils/Monitor/MonitorOverviewPresentationUtil.js +63 -29
  218. package/Utils/Monitor/MonitorOverviewProbeUtil.js +13 -2
  219. package/Utils/Monitor/MonitorRootCauseWording.d.mts +2 -0
  220. package/Utils/Monitor/MonitorRootCauseWording.d.ts +2 -0
  221. package/Utils/Monitor/MonitorRootCauseWording.js +58 -4
  222. package/Utils/Monitor/MonitoringOff.d.mts +2 -0
  223. package/Utils/Monitor/MonitoringOff.d.ts +2 -0
  224. package/Utils/Monitor/MonitoringOff.js +21 -0
  225. package/Utils/Monitor/NetworkTopologyUtil.d.mts +2 -1
  226. package/Utils/Monitor/NetworkTopologyUtil.d.ts +2 -1
  227. package/Utils/Monitor/NetworkTopologyUtil.js +10 -0
  228. package/Utils/Monitor/NotOperationalMonitorQuery.d.mts +2 -1
  229. package/Utils/Monitor/NotOperationalMonitorQuery.d.ts +2 -1
  230. package/Utils/Monitor/NotOperationalMonitorQuery.js +23 -4
  231. package/Utils/Monitor/ProbeFailureReading.d.mts +14 -0
  232. package/Utils/Monitor/ProbeFailureReading.d.ts +14 -0
  233. package/Utils/Monitor/ProbeFailureReading.js +137 -0
  234. package/Utils/Monitor/ProbeFailureReading.mjs +7 -0
  235. package/Utils/NetworkDevice/BoundMonitorNotChecked.d.mts +9 -0
  236. package/Utils/NetworkDevice/BoundMonitorNotChecked.d.ts +9 -0
  237. package/Utils/NetworkDevice/BoundMonitorNotChecked.js +15 -0
  238. package/Utils/NetworkDevice/BoundMonitorNotChecked.mjs +2 -0
  239. package/Utils/Project/NextNumber.js +1 -1
  240. package/Utils/PromQL/PromQLAst.d.mts +159 -0
  241. package/Utils/PromQL/PromQLAst.d.ts +159 -0
  242. package/Utils/PromQL/PromQLAst.js +118 -0
  243. package/Utils/PromQL/PromQLAst.mjs +12 -0
  244. package/Utils/PromQL/PromQLDuration.d.mts +2 -0
  245. package/Utils/PromQL/PromQLDuration.d.ts +2 -0
  246. package/Utils/PromQL/PromQLDuration.js +78 -0
  247. package/Utils/PromQL/PromQLDuration.mjs +3 -0
  248. package/Utils/PromQL/PromQLEngine.d.mts +15 -0
  249. package/Utils/PromQL/PromQLEngine.d.ts +15 -0
  250. package/Utils/PromQL/PromQLEngine.js +965 -0
  251. package/Utils/PromQL/PromQLEngine.mjs +7 -0
  252. package/Utils/PromQL/PromQLEngineTypes.d.mts +84 -0
  253. package/Utils/PromQL/PromQLEngineTypes.d.ts +84 -0
  254. package/Utils/PromQL/PromQLEngineTypes.js +10 -0
  255. package/Utils/PromQL/PromQLEngineTypes.mjs +2 -0
  256. package/Utils/PromQL/PromQLError.d.mts +11 -0
  257. package/Utils/PromQL/PromQLError.d.ts +11 -0
  258. package/Utils/PromQL/PromQLError.js +27 -0
  259. package/Utils/PromQL/PromQLError.mjs +3 -0
  260. package/Utils/PromQL/PromQLFunctionEvaluators.d.mts +8 -0
  261. package/Utils/PromQL/PromQLFunctionEvaluators.d.ts +8 -0
  262. package/Utils/PromQL/PromQLFunctionEvaluators.js +773 -0
  263. package/Utils/PromQL/PromQLFunctionEvaluators.mjs +3 -0
  264. package/Utils/PromQL/PromQLFunctions.d.mts +10 -0
  265. package/Utils/PromQL/PromQLFunctions.d.ts +10 -0
  266. package/Utils/PromQL/PromQLFunctions.js +127 -0
  267. package/Utils/PromQL/PromQLFunctions.mjs +4 -0
  268. package/Utils/PromQL/PromQLLabels.d.mts +11 -0
  269. package/Utils/PromQL/PromQLLabels.d.ts +11 -0
  270. package/Utils/PromQL/PromQLLabels.js +218 -0
  271. package/Utils/PromQL/PromQLLabels.mjs +9 -0
  272. package/Utils/PromQL/PromQLLexer.d.mts +39 -0
  273. package/Utils/PromQL/PromQLLexer.d.ts +39 -0
  274. package/Utils/PromQL/PromQLLexer.js +391 -0
  275. package/Utils/PromQL/PromQLLexer.mjs +3 -0
  276. package/Utils/PromQL/PromQLMath.d.mts +19 -0
  277. package/Utils/PromQL/PromQLMath.d.ts +19 -0
  278. package/Utils/PromQL/PromQLMath.js +200 -0
  279. package/Utils/PromQL/PromQLMath.mjs +9 -0
  280. package/Utils/PromQL/PromQLMetricNames.d.mts +21 -0
  281. package/Utils/PromQL/PromQLMetricNames.d.ts +21 -0
  282. package/Utils/PromQL/PromQLMetricNames.js +199 -0
  283. package/Utils/PromQL/PromQLMetricNames.mjs +8 -0
  284. package/Utils/PromQL/PromQLParser.d.mts +4 -0
  285. package/Utils/PromQL/PromQLParser.d.ts +4 -0
  286. package/Utils/PromQL/PromQLParser.js +831 -0
  287. package/Utils/PromQL/PromQLParser.mjs +4 -0
  288. package/Utils/PromQL/PromQLRegex.d.mts +9 -0
  289. package/Utils/PromQL/PromQLRegex.d.ts +9 -0
  290. package/Utils/PromQL/PromQLRegex.js +74 -0
  291. package/Utils/PromQL/PromQLRegex.mjs +2 -0
  292. package/Utils/PromQL/PrometheusResponse.d.mts +25 -0
  293. package/Utils/PromQL/PrometheusResponse.d.ts +25 -0
  294. package/Utils/PromQL/PrometheusResponse.js +90 -0
  295. package/Utils/PromQL/PrometheusResponse.mjs +3 -0
  296. package/Utils/Rum/PathInSentence.d.mts +5 -0
  297. package/Utils/Rum/PathInSentence.d.ts +5 -0
  298. package/Utils/Rum/PathInSentence.js +46 -0
  299. package/Utils/Rum/PathInSentence.mjs +6 -0
  300. package/Utils/Rum/UrlScrubber.d.mts +4 -0
  301. package/Utils/Rum/UrlScrubber.d.ts +4 -0
  302. package/Utils/Rum/UrlScrubber.js +143 -3
  303. package/Utils/Rum/UserFlow.d.mts +1 -1
  304. package/Utils/Rum/UserFlow.d.ts +1 -1
  305. package/Utils/Rum/UserFlow.js +180 -25
  306. package/Utils/Rum/UserFlow.mjs +1 -1
  307. package/Utils/Runbook/RunbookStepsSignature.d.mts +3 -0
  308. package/Utils/Runbook/RunbookStepsSignature.d.ts +3 -0
  309. package/Utils/Runbook/RunbookStepsSignature.js +30 -0
  310. package/Utils/Runbook/RunbookStepsSignature.mjs +3 -0
  311. package/Utils/Schema/TypeSchemas.js +6 -0
  312. package/Utils/Slo/SloDuration.d.mts +5 -2
  313. package/Utils/Slo/SloDuration.d.ts +5 -2
  314. package/Utils/Slo/SloDuration.js +11 -6
  315. package/Utils/Slo/SloHealth.js +1 -1
  316. package/Utils/StateOrder.js +1 -4
  317. package/Utils/StateTimeline/StateTimelineRowDelete.js +1 -1
  318. package/Utils/Telemetry/HeartbeatAvailability.d.mts +4 -0
  319. package/Utils/Telemetry/HeartbeatAvailability.d.ts +4 -0
  320. package/Utils/Telemetry/HeartbeatAvailability.js +118 -26
  321. package/Utils/Uptime/DayUptimeGraphUtil.js +2 -2
  322. package/package.json +1 -1
@@ -5,6 +5,7 @@ import IncidentState from "../../../Models/DatabaseModels/IncidentState.mjs";
5
5
  import Label from "../../../Models/DatabaseModels/Label.mjs";
6
6
  import Monitor from "../../../Models/DatabaseModels/Monitor.mjs";
7
7
  import MonitorStatus from "../../../Models/DatabaseModels/MonitorStatus.mjs";
8
+ import OnCallDutyPolicy from "../../../Models/DatabaseModels/OnCallDutyPolicy.mjs";
8
9
  import ScheduledMaintenanceState from "../../../Models/DatabaseModels/ScheduledMaintenanceState.mjs";
9
10
  import ServiceLevelObjective from "../../../Models/DatabaseModels/ServiceLevelObjective.mjs";
10
11
  import { DropdownOption } from "../../../UI/Components/Dropdown/Dropdown.mjs";
@@ -46,6 +47,7 @@ export declare enum NotificationRuleConditionCheckOn {
46
47
  OnCallDutyPolicyName = "On Call Duty Policy Name",
47
48
  OnCallDutyPolicyDescription = "On Call Duty Policy Description",
48
49
  OnCallDutyPolicyLabels = "On Call Duty Policy Labels",
50
+ OnCallDutyPolicies = "On-Call Policy",
49
51
  SecurityCaseTitle = "Security Case Title",
50
52
  SecurityCaseDescription = "Security Case Description",
51
53
  SecurityCasePriority = "Security Case Priority",
@@ -56,8 +58,21 @@ export declare enum NotificationRuleConditionCheckOn {
56
58
  SloName = "SLO Name",
57
59
  Slos = "SLOs",
58
60
  SloLabels = "SLO Labels",
59
- SloErrorBudgetPolicyChange = "Error Budget Policy Change"
61
+ SloErrorBudgetPolicyChange = "Error Budget Policy Change",
62
+ IncidentOwners = "Incident Owner",
63
+ AlertOwners = "Alert Owner",
64
+ IncidentEpisodeOwners = "Incident Episode Owner",
65
+ AlertEpisodeOwners = "Alert Episode Owner",
66
+ ScheduledMaintenanceOwners = "Scheduled Maintenance Owner",
67
+ MonitorOwners = "Monitor Owner",
68
+ OnCallDutyPolicyOwners = "On-Call Policy Owner",
69
+ SloOwners = "SLO Owner"
60
70
  }
71
+ export type NotificationRuleConditionValues = {
72
+ [key in NotificationRuleConditionCheckOn]: string | Array<string> | undefined;
73
+ };
74
+ export declare const OWNER_CHECK_ON_BY_EVENT_TYPE: Readonly<Partial<Record<NotificationRuleEventType, NotificationRuleConditionCheckOn>>>;
75
+ export declare const OWNER_CHECK_ONS: ReadonlyArray<NotificationRuleConditionCheckOn>;
61
76
  export declare const CHECK_ON_LABELS: Readonly<Partial<Record<NotificationRuleConditionCheckOn, string>>>;
62
77
  export declare function getCheckOnLabel(checkOn: NotificationRuleConditionCheckOn): string;
63
78
  export declare enum ConditionType {
@@ -107,6 +122,14 @@ export declare class NotificationRuleConditionUtil {
107
122
  checkOn: NotificationRuleConditionCheckOn | undefined;
108
123
  conditionType: ConditionType | undefined;
109
124
  }): boolean;
125
+ static isPeopleValueField(data: {
126
+ checkOn: NotificationRuleConditionCheckOn | undefined;
127
+ conditionType: ConditionType | undefined;
128
+ }): boolean;
129
+ static isOwnerCheckOn(checkOn: NotificationRuleConditionCheckOn | undefined): boolean;
130
+ static getValues(values: Partial<NotificationRuleConditionValues>): NotificationRuleConditionValues;
131
+ static getCheckOnsUsed(filters: Array<NotificationRuleCondition> | undefined | null): Set<NotificationRuleConditionCheckOn>;
132
+ static getValueIds(condition: NotificationRuleCondition | undefined | null): Array<string>;
110
133
  static getDropdownOptionsByCheckOn(data: {
111
134
  alertSeverities: Array<AlertSeverity>;
112
135
  alertStates: Array<AlertState>;
@@ -119,6 +142,8 @@ export declare class NotificationRuleConditionUtil {
119
142
  securityCasePriorities?: Array<SecurityCasePriority> | undefined;
120
143
  securityCaseStatuses?: Array<SecurityCaseStatus> | undefined;
121
144
  serviceLevelObjectives?: Array<ServiceLevelObjective> | undefined;
145
+ onCallDutyPolicies?: Array<OnCallDutyPolicy> | undefined;
146
+ keptIds?: Array<string> | undefined;
122
147
  checkOn: NotificationRuleConditionCheckOn;
123
148
  }): Array<DropdownOption>;
124
149
  static getCheckOnByEventType(eventType: NotificationRuleEventType): Array<NotificationRuleConditionCheckOn>;
@@ -5,6 +5,7 @@ import IncidentState from "../../../Models/DatabaseModels/IncidentState";
5
5
  import Label from "../../../Models/DatabaseModels/Label";
6
6
  import Monitor from "../../../Models/DatabaseModels/Monitor";
7
7
  import MonitorStatus from "../../../Models/DatabaseModels/MonitorStatus";
8
+ import OnCallDutyPolicy from "../../../Models/DatabaseModels/OnCallDutyPolicy";
8
9
  import ScheduledMaintenanceState from "../../../Models/DatabaseModels/ScheduledMaintenanceState";
9
10
  import ServiceLevelObjective from "../../../Models/DatabaseModels/ServiceLevelObjective";
10
11
  import { DropdownOption } from "../../../UI/Components/Dropdown/Dropdown";
@@ -46,6 +47,7 @@ export declare enum NotificationRuleConditionCheckOn {
46
47
  OnCallDutyPolicyName = "On Call Duty Policy Name",
47
48
  OnCallDutyPolicyDescription = "On Call Duty Policy Description",
48
49
  OnCallDutyPolicyLabels = "On Call Duty Policy Labels",
50
+ OnCallDutyPolicies = "On-Call Policy",
49
51
  SecurityCaseTitle = "Security Case Title",
50
52
  SecurityCaseDescription = "Security Case Description",
51
53
  SecurityCasePriority = "Security Case Priority",
@@ -56,8 +58,21 @@ export declare enum NotificationRuleConditionCheckOn {
56
58
  SloName = "SLO Name",
57
59
  Slos = "SLOs",
58
60
  SloLabels = "SLO Labels",
59
- SloErrorBudgetPolicyChange = "Error Budget Policy Change"
61
+ SloErrorBudgetPolicyChange = "Error Budget Policy Change",
62
+ IncidentOwners = "Incident Owner",
63
+ AlertOwners = "Alert Owner",
64
+ IncidentEpisodeOwners = "Incident Episode Owner",
65
+ AlertEpisodeOwners = "Alert Episode Owner",
66
+ ScheduledMaintenanceOwners = "Scheduled Maintenance Owner",
67
+ MonitorOwners = "Monitor Owner",
68
+ OnCallDutyPolicyOwners = "On-Call Policy Owner",
69
+ SloOwners = "SLO Owner"
60
70
  }
71
+ export type NotificationRuleConditionValues = {
72
+ [key in NotificationRuleConditionCheckOn]: string | Array<string> | undefined;
73
+ };
74
+ export declare const OWNER_CHECK_ON_BY_EVENT_TYPE: Readonly<Partial<Record<NotificationRuleEventType, NotificationRuleConditionCheckOn>>>;
75
+ export declare const OWNER_CHECK_ONS: ReadonlyArray<NotificationRuleConditionCheckOn>;
61
76
  export declare const CHECK_ON_LABELS: Readonly<Partial<Record<NotificationRuleConditionCheckOn, string>>>;
62
77
  export declare function getCheckOnLabel(checkOn: NotificationRuleConditionCheckOn): string;
63
78
  export declare enum ConditionType {
@@ -107,6 +122,14 @@ export declare class NotificationRuleConditionUtil {
107
122
  checkOn: NotificationRuleConditionCheckOn | undefined;
108
123
  conditionType: ConditionType | undefined;
109
124
  }): boolean;
125
+ static isPeopleValueField(data: {
126
+ checkOn: NotificationRuleConditionCheckOn | undefined;
127
+ conditionType: ConditionType | undefined;
128
+ }): boolean;
129
+ static isOwnerCheckOn(checkOn: NotificationRuleConditionCheckOn | undefined): boolean;
130
+ static getValues(values: Partial<NotificationRuleConditionValues>): NotificationRuleConditionValues;
131
+ static getCheckOnsUsed(filters: Array<NotificationRuleCondition> | undefined | null): Set<NotificationRuleConditionCheckOn>;
132
+ static getValueIds(condition: NotificationRuleCondition | undefined | null): Array<string>;
110
133
  static getDropdownOptionsByCheckOn(data: {
111
134
  alertSeverities: Array<AlertSeverity>;
112
135
  alertStates: Array<AlertState>;
@@ -119,6 +142,8 @@ export declare class NotificationRuleConditionUtil {
119
142
  securityCasePriorities?: Array<SecurityCasePriority> | undefined;
120
143
  securityCaseStatuses?: Array<SecurityCaseStatus> | undefined;
121
144
  serviceLevelObjectives?: Array<ServiceLevelObjective> | undefined;
145
+ onCallDutyPolicies?: Array<OnCallDutyPolicy> | undefined;
146
+ keptIds?: Array<string> | undefined;
122
147
  checkOn: NotificationRuleConditionCheckOn;
123
148
  }): Array<DropdownOption>;
124
149
  static getCheckOnByEventType(eventType: NotificationRuleEventType): Array<NotificationRuleConditionCheckOn>;
@@ -0,0 +1,84 @@
1
+ import BaseNotificationRule from "./BaseNotificationRule.mjs";
2
+ import NotificationRuleEventType from "./EventType.mjs";
3
+ import NotificationRuleWorkspaceChannel from "./NotificationRuleWorkspaceChannel.mjs";
4
+ export declare enum NotificationRuleUpdateKind {
5
+ Created = "Created",
6
+ VideoCallStarted = "VideoCallStarted",
7
+ ResolvedAndReopened = "ResolvedAndReopened",
8
+ StateChanges = "StateChanges",
9
+ SeverityChanges = "SeverityChanges",
10
+ PublicNotes = "PublicNotes",
11
+ PrivateNotes = "PrivateNotes",
12
+ Owners = "Owners",
13
+ Paging = "Paging",
14
+ EpisodeMembers = "EpisodeMembers",
15
+ Postmortem = "Postmortem",
16
+ AI = "AI",
17
+ Edits = "Edits",
18
+ Other = "Other",
19
+ OnCallNow = "OnCallNow",
20
+ OnCallNext = "OnCallNext",
21
+ NobodyOnCall = "NobodyOnCall",
22
+ Overrides = "Overrides",
23
+ PolicyChanges = "PolicyChanges"
24
+ }
25
+ export declare enum NotificationRuleUpdatesChoice {
26
+ EveryUpdate = "EveryUpdate",
27
+ KeyUpdates = "KeyUpdates",
28
+ ChosenUpdates = "ChosenUpdates"
29
+ }
30
+ export declare const ALWAYS_POSTED_UPDATE_KINDS: ReadonlyArray<NotificationRuleUpdateKind>;
31
+ export type RuleWithUpdates = Partial<Pick<BaseNotificationRule, "updatesToPost">>;
32
+ export type StoredRuleUpdates = RuleWithUpdates | null | undefined;
33
+ export interface RuleOfChannel {
34
+ id: string;
35
+ rule: StoredRuleUpdates;
36
+ }
37
+ export default class NotificationRuleUpdates {
38
+ static isUpdateKind(value: unknown): value is NotificationRuleUpdateKind;
39
+ static isAlwaysPosted(kind: NotificationRuleUpdateKind): boolean;
40
+ static getChoosableKinds(eventType: NotificationRuleEventType | undefined): Array<NotificationRuleUpdateKind>;
41
+ static canChooseUpdates(eventType: NotificationRuleEventType | undefined): boolean;
42
+ static getNewRuleUpdatesToPost(eventType: NotificationRuleEventType | undefined): Array<NotificationRuleUpdateKind> | undefined;
43
+ static getNewRuleUpdates(eventType: NotificationRuleEventType | undefined): RuleWithUpdates;
44
+ static getKeyKinds(eventType: NotificationRuleEventType | undefined): Array<NotificationRuleUpdateKind>;
45
+ static getChosenKinds(rule: StoredRuleUpdates): Array<NotificationRuleUpdateKind> | undefined;
46
+ static getChoice(data: {
47
+ rule: StoredRuleUpdates;
48
+ eventType: NotificationRuleEventType | undefined;
49
+ }): NotificationRuleUpdatesChoice;
50
+ static getPostedKinds(data: {
51
+ rule: StoredRuleUpdates;
52
+ eventType: NotificationRuleEventType | undefined;
53
+ }): Array<NotificationRuleUpdateKind>;
54
+ static withChosenKinds<T extends RuleWithUpdates>(data: {
55
+ rule: T | undefined;
56
+ eventType: NotificationRuleEventType | undefined;
57
+ kinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
58
+ }): T;
59
+ static withChoice<T extends RuleWithUpdates>(data: {
60
+ rule: T | undefined;
61
+ eventType: NotificationRuleEventType | undefined;
62
+ choice: NotificationRuleUpdatesChoice;
63
+ kinds?: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
64
+ }): T;
65
+ static isPostedEverywhere(updateKinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined): boolean;
66
+ static wantsUpdate(data: {
67
+ rule: StoredRuleUpdates;
68
+ updateKinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
69
+ }): boolean;
70
+ static isWantedInChannel(data: {
71
+ channel: Partial<Pick<NotificationRuleWorkspaceChannel, "notificationRuleId" | "notificationRuleIds">>;
72
+ rules: ReadonlyArray<RuleOfChannel>;
73
+ updateKinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
74
+ }): boolean;
75
+ static getStateChangeKind(data: {
76
+ isResolved: boolean;
77
+ wasResolved: boolean;
78
+ }): NotificationRuleUpdateKind;
79
+ static getValidationError(data: {
80
+ eventType: NotificationRuleEventType | undefined;
81
+ updatesToPost: unknown;
82
+ }): string | null;
83
+ private static isSameKinds;
84
+ }
@@ -0,0 +1,84 @@
1
+ import BaseNotificationRule from "./BaseNotificationRule";
2
+ import NotificationRuleEventType from "./EventType";
3
+ import NotificationRuleWorkspaceChannel from "./NotificationRuleWorkspaceChannel";
4
+ export declare enum NotificationRuleUpdateKind {
5
+ Created = "Created",
6
+ VideoCallStarted = "VideoCallStarted",
7
+ ResolvedAndReopened = "ResolvedAndReopened",
8
+ StateChanges = "StateChanges",
9
+ SeverityChanges = "SeverityChanges",
10
+ PublicNotes = "PublicNotes",
11
+ PrivateNotes = "PrivateNotes",
12
+ Owners = "Owners",
13
+ Paging = "Paging",
14
+ EpisodeMembers = "EpisodeMembers",
15
+ Postmortem = "Postmortem",
16
+ AI = "AI",
17
+ Edits = "Edits",
18
+ Other = "Other",
19
+ OnCallNow = "OnCallNow",
20
+ OnCallNext = "OnCallNext",
21
+ NobodyOnCall = "NobodyOnCall",
22
+ Overrides = "Overrides",
23
+ PolicyChanges = "PolicyChanges"
24
+ }
25
+ export declare enum NotificationRuleUpdatesChoice {
26
+ EveryUpdate = "EveryUpdate",
27
+ KeyUpdates = "KeyUpdates",
28
+ ChosenUpdates = "ChosenUpdates"
29
+ }
30
+ export declare const ALWAYS_POSTED_UPDATE_KINDS: ReadonlyArray<NotificationRuleUpdateKind>;
31
+ export type RuleWithUpdates = Partial<Pick<BaseNotificationRule, "updatesToPost">>;
32
+ export type StoredRuleUpdates = RuleWithUpdates | null | undefined;
33
+ export interface RuleOfChannel {
34
+ id: string;
35
+ rule: StoredRuleUpdates;
36
+ }
37
+ export default class NotificationRuleUpdates {
38
+ static isUpdateKind(value: unknown): value is NotificationRuleUpdateKind;
39
+ static isAlwaysPosted(kind: NotificationRuleUpdateKind): boolean;
40
+ static getChoosableKinds(eventType: NotificationRuleEventType | undefined): Array<NotificationRuleUpdateKind>;
41
+ static canChooseUpdates(eventType: NotificationRuleEventType | undefined): boolean;
42
+ static getNewRuleUpdatesToPost(eventType: NotificationRuleEventType | undefined): Array<NotificationRuleUpdateKind> | undefined;
43
+ static getNewRuleUpdates(eventType: NotificationRuleEventType | undefined): RuleWithUpdates;
44
+ static getKeyKinds(eventType: NotificationRuleEventType | undefined): Array<NotificationRuleUpdateKind>;
45
+ static getChosenKinds(rule: StoredRuleUpdates): Array<NotificationRuleUpdateKind> | undefined;
46
+ static getChoice(data: {
47
+ rule: StoredRuleUpdates;
48
+ eventType: NotificationRuleEventType | undefined;
49
+ }): NotificationRuleUpdatesChoice;
50
+ static getPostedKinds(data: {
51
+ rule: StoredRuleUpdates;
52
+ eventType: NotificationRuleEventType | undefined;
53
+ }): Array<NotificationRuleUpdateKind>;
54
+ static withChosenKinds<T extends RuleWithUpdates>(data: {
55
+ rule: T | undefined;
56
+ eventType: NotificationRuleEventType | undefined;
57
+ kinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
58
+ }): T;
59
+ static withChoice<T extends RuleWithUpdates>(data: {
60
+ rule: T | undefined;
61
+ eventType: NotificationRuleEventType | undefined;
62
+ choice: NotificationRuleUpdatesChoice;
63
+ kinds?: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
64
+ }): T;
65
+ static isPostedEverywhere(updateKinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined): boolean;
66
+ static wantsUpdate(data: {
67
+ rule: StoredRuleUpdates;
68
+ updateKinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
69
+ }): boolean;
70
+ static isWantedInChannel(data: {
71
+ channel: Partial<Pick<NotificationRuleWorkspaceChannel, "notificationRuleId" | "notificationRuleIds">>;
72
+ rules: ReadonlyArray<RuleOfChannel>;
73
+ updateKinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
74
+ }): boolean;
75
+ static getStateChangeKind(data: {
76
+ isResolved: boolean;
77
+ wasResolved: boolean;
78
+ }): NotificationRuleUpdateKind;
79
+ static getValidationError(data: {
80
+ eventType: NotificationRuleEventType | undefined;
81
+ updatesToPost: unknown;
82
+ }): string | null;
83
+ private static isSameKinds;
84
+ }