@oneuptime/common 14.0.110 → 14.2.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 (527) 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.d.mts +1 -0
  6. package/Models/DatabaseModels/Alert.d.ts +1 -0
  7. package/Models/DatabaseModels/Alert.js +52 -2
  8. package/Models/DatabaseModels/AutoRemediationSuggestion.d.mts +2 -0
  9. package/Models/DatabaseModels/AutoRemediationSuggestion.d.ts +2 -0
  10. package/Models/DatabaseModels/AutoRemediationSuggestion.js +62 -0
  11. package/Models/DatabaseModels/DataStore.js +9 -0
  12. package/Models/DatabaseModels/EmailLog.js +2 -2
  13. package/Models/DatabaseModels/Form.js +3 -3
  14. package/Models/DatabaseModels/FormSubmission.js +4 -4
  15. package/Models/DatabaseModels/GlobalConfig.js +46 -45
  16. package/Models/DatabaseModels/Incident.d.mts +1 -0
  17. package/Models/DatabaseModels/Incident.d.ts +1 -0
  18. package/Models/DatabaseModels/Incident.js +53 -2
  19. package/Models/DatabaseModels/IncidentPostmortemActionItem.d.mts +31 -0
  20. package/Models/DatabaseModels/IncidentPostmortemActionItem.d.ts +31 -0
  21. package/Models/DatabaseModels/IncidentPostmortemActionItem.js +591 -0
  22. package/Models/DatabaseModels/IncidentPostmortemActionItem.mjs +3 -0
  23. package/Models/DatabaseModels/IncidentSlaRule.js +2 -2
  24. package/Models/DatabaseModels/Index.js +6 -0
  25. package/Models/DatabaseModels/InventoryItem.js +11 -0
  26. package/Models/DatabaseModels/Monitor.js +51 -17
  27. package/Models/DatabaseModels/MonitorNetworkDevice.d.mts +11 -0
  28. package/Models/DatabaseModels/MonitorNetworkDevice.d.ts +11 -0
  29. package/Models/DatabaseModels/MonitorNetworkDevice.js +189 -0
  30. package/Models/DatabaseModels/MonitorNetworkDevice.mjs +2 -0
  31. package/Models/DatabaseModels/MonitorProbe.js +22 -5
  32. package/Models/DatabaseModels/NetworkDevice.js +23 -7
  33. package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
  34. package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
  35. package/Models/DatabaseModels/NetworkEndpoint.js +39 -7
  36. package/Models/DatabaseModels/NetworkInterface.js +5 -5
  37. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +19 -5
  38. package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.mts +1 -0
  39. package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.ts +1 -0
  40. package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +2 -0
  41. package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +35 -7
  42. package/Models/DatabaseModels/OpenStackCloudCheck.js +8 -1
  43. package/Models/DatabaseModels/Project.d.mts +1 -0
  44. package/Models/DatabaseModels/Project.d.ts +1 -0
  45. package/Models/DatabaseModels/Project.js +46 -3
  46. package/Models/DatabaseModels/ProjectCallSMSConfig.js +3 -1
  47. package/Models/DatabaseModels/ProjectSmtpConfig.js +2 -0
  48. package/Models/DatabaseModels/PublicNoteApprovalRequest.js +3 -3
  49. package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
  50. package/Models/DatabaseModels/RunbookExecution.js +2 -2
  51. package/Models/DatabaseModels/RunbookRule.js +6 -6
  52. package/Models/DatabaseModels/ScheduledMaintenance.js +3 -3
  53. package/Models/DatabaseModels/ScheduledMaintenanceCalendarFeed.js +1 -1
  54. package/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js +1 -1
  55. package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +7 -7
  56. package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +1 -1
  57. package/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.js +6 -6
  58. package/Models/DatabaseModels/ScheduledMaintenanceOwnerTeam.js +4 -4
  59. package/Models/DatabaseModels/ScheduledMaintenanceOwnerUser.js +4 -4
  60. package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +3 -3
  61. package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +4 -4
  62. package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +3 -3
  63. package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +5 -5
  64. package/Models/DatabaseModels/TeamMember.js +10 -1
  65. package/Models/DatabaseModels/TelemetryIngestionKey.js +1 -1
  66. package/Models/DatabaseModels/WorkspaceNotificationRule.js +36 -1
  67. package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
  68. package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.js +3 -3
  69. package/Server/Services/DatabaseService.d.mts +4 -1
  70. package/Server/Services/DatabaseService.d.ts +4 -1
  71. package/Server/Types/Database/CountBy.d.mts +1 -0
  72. package/Server/Types/Database/CountBy.d.ts +1 -0
  73. package/Server/Types/Database/UpdateLimit.d.mts +6 -0
  74. package/Server/Types/Database/UpdateLimit.d.ts +6 -0
  75. package/Types/AI/AIActionWords.d.mts +28 -2
  76. package/Types/AI/AIActionWords.d.ts +28 -2
  77. package/Types/AI/AIActionWords.js +235 -3
  78. package/Types/AI/AIActionWords.mjs +8 -0
  79. package/Types/AI/AIChatTypes.d.mts +3 -1
  80. package/Types/AI/AIChatTypes.d.ts +3 -1
  81. package/Types/AI/AIReadTableWords.d.mts +192 -0
  82. package/Types/AI/AIReadTableWords.d.ts +192 -0
  83. package/Types/AI/AIReadTableWords.js +368 -0
  84. package/Types/AI/AIReadTableWords.mjs +18 -0
  85. package/Types/AI/AiOutcomes.d.mts +57 -0
  86. package/Types/AI/AiOutcomes.d.ts +57 -0
  87. package/Types/AI/AiOutcomes.js +67 -0
  88. package/Types/AI/AiOutcomes.mjs +10 -0
  89. package/Types/AI/AiRunRefusal.d.mts +48 -0
  90. package/Types/AI/AiRunRefusal.d.ts +48 -0
  91. package/Types/AI/AiRunRefusal.js +208 -0
  92. package/Types/AI/AiRunRefusal.mjs +12 -0
  93. package/Types/AI/InvestigationRecording.d.mts +46 -0
  94. package/Types/AI/InvestigationRecording.d.ts +46 -0
  95. package/Types/AI/InvestigationRecording.js +42 -0
  96. package/Types/AI/InvestigationRecording.mjs +7 -0
  97. package/Types/AI/ResourceAiAccessPermissions.js +7 -18
  98. package/Types/API/HTTPResponse.d.mts +3 -0
  99. package/Types/API/HTTPResponse.d.ts +3 -0
  100. package/Types/API/HTTPResponse.js +15 -0
  101. package/Types/AuditLog/AuditLogActionLabel.js +19 -9
  102. package/Types/BaseDatabase/AggregateBy.d.mts +16 -0
  103. package/Types/BaseDatabase/AggregateBy.d.ts +16 -0
  104. package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +32 -1
  105. package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +32 -1
  106. package/Types/BaseDatabase/AggregationIntervalUtil.js +199 -2
  107. package/Types/BaseDatabase/ListResult.d.mts +1 -0
  108. package/Types/BaseDatabase/ListResult.d.ts +1 -0
  109. package/Types/CallAndSMS/ServerTwilioEnvironment.d.mts +47 -0
  110. package/Types/CallAndSMS/ServerTwilioEnvironment.d.ts +47 -0
  111. package/Types/CallAndSMS/ServerTwilioEnvironment.js +282 -0
  112. package/Types/CallAndSMS/ServerTwilioEnvironment.mjs +7 -0
  113. package/Types/Cloud/CloudResourceHealth.d.mts +30 -1
  114. package/Types/Cloud/CloudResourceHealth.d.ts +30 -1
  115. package/Types/Cloud/CloudResourceHealth.js +405 -13
  116. package/Types/Cloud/CloudResourceHealth.mjs +28 -0
  117. package/Types/Dashboard/DashboardAutoRefresh.d.mts +1 -0
  118. package/Types/Dashboard/DashboardAutoRefresh.d.ts +1 -0
  119. package/Types/Dashboard/DashboardAutoRefresh.js +21 -0
  120. package/Types/Dashboard/DashboardAutoRefresh.mjs +1 -0
  121. package/Types/DataObservability/DataCheckRefusals.d.mts +32 -0
  122. package/Types/DataObservability/DataCheckRefusals.d.ts +32 -0
  123. package/Types/DataObservability/DataCheckRefusals.js +77 -0
  124. package/Types/DataObservability/DataCheckRefusals.mjs +8 -0
  125. package/Types/Database/AccessControl/PermissionScopeNarrowing.js +4 -0
  126. package/Types/Date.d.mts +8 -1
  127. package/Types/Date.d.ts +8 -1
  128. package/Types/Date.js +61 -7
  129. package/Types/Date.mjs +1 -0
  130. package/Types/DateLanguage.d.mts +2 -0
  131. package/Types/DateLanguage.d.ts +2 -0
  132. package/Types/DateLanguage.js +8 -5
  133. package/Types/Email/EmailTemplateType.d.mts +1 -0
  134. package/Types/Email/EmailTemplateType.d.ts +1 -0
  135. package/Types/Email/EmailTemplateType.js +2 -0
  136. package/Types/Email/ServerEmailEnvironment.d.mts +85 -0
  137. package/Types/Email/ServerEmailEnvironment.d.ts +85 -0
  138. package/Types/Email/ServerEmailEnvironment.js +793 -0
  139. package/Types/Email/ServerEmailEnvironment.mjs +14 -0
  140. package/Types/Exception/AiRunRefusalException.d.mts +6 -0
  141. package/Types/Exception/AiRunRefusalException.d.ts +6 -0
  142. package/Types/Exception/AiRunRefusalException.js +23 -0
  143. package/Types/Exception/AiRunRefusalException.mjs +2 -0
  144. package/Types/Exception/EgressGuardException.js +1 -1
  145. package/Types/Exception/ErrorMessageRule.d.mts +1 -0
  146. package/Types/Exception/ErrorMessageRule.d.ts +1 -0
  147. package/Types/Exception/ErrorMessageRule.js +67 -13
  148. package/Types/Exception/ErrorMessageRule.mjs +1 -0
  149. package/Types/Exception/ExceptionMessages.d.mts +2 -0
  150. package/Types/Exception/ExceptionMessages.d.ts +2 -0
  151. package/Types/Exception/ExceptionMessages.js +2 -0
  152. package/Types/Form/FormTargetCatalog.js +2 -2
  153. package/Types/Form/FormTargetType.js +2 -2
  154. package/Types/Incident/PostmortemActionItemStatus.d.mts +17 -0
  155. package/Types/Incident/PostmortemActionItemStatus.d.ts +17 -0
  156. package/Types/Incident/PostmortemActionItemStatus.js +74 -0
  157. package/Types/Incident/PostmortemActionItemStatus.mjs +5 -0
  158. package/Types/JSONFunctions.js +10 -3
  159. package/Types/Link.d.mts +1 -0
  160. package/Types/Link.d.ts +1 -0
  161. package/Types/ListData.d.mts +2 -0
  162. package/Types/ListData.d.ts +2 -0
  163. package/Types/ListData.js +4 -0
  164. package/Types/MeaningKeys.d.mts +4 -0
  165. package/Types/MeaningKeys.d.ts +4 -0
  166. package/Types/MeaningKeys.js +74 -0
  167. package/Types/MeaningKeys.mjs +5 -0
  168. package/Types/Monitor/MonitorCriteriaInstance.js +9 -0
  169. package/Types/Monitor/MonitorNotCheckedReason.d.mts +7 -0
  170. package/Types/Monitor/MonitorNotCheckedReason.d.ts +7 -0
  171. package/Types/Monitor/MonitorNotCheckedReason.js +36 -0
  172. package/Types/Monitor/MonitorNotCheckedReason.mjs +4 -0
  173. package/Types/Monitor/SnmpMonitor/NetworkTopology.d.mts +6 -0
  174. package/Types/Monitor/SnmpMonitor/NetworkTopology.d.ts +6 -0
  175. package/Types/Monitor/UptimeHistoryLabels.js +2 -2
  176. package/Types/Monitor/WhoIsTold.d.mts +3 -0
  177. package/Types/Monitor/WhoIsTold.d.ts +3 -0
  178. package/Types/Monitor/WhoIsTold.js +63 -13
  179. package/Types/NoBreakSpaces.d.mts +16 -0
  180. package/Types/NoBreakSpaces.d.ts +16 -0
  181. package/Types/NoBreakSpaces.js +419 -0
  182. package/Types/NoBreakSpaces.mjs +9 -0
  183. package/Types/NotificationRule/PagingLadder.d.mts +12 -0
  184. package/Types/NotificationRule/PagingLadder.d.ts +12 -0
  185. package/Types/NotificationRule/PagingLadder.js +159 -11
  186. package/Types/NotificationRule/PagingLadder.mjs +3 -0
  187. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.mts +1 -0
  188. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.ts +1 -0
  189. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.js +12 -9
  190. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.mjs +1 -0
  191. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +3 -1
  192. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +3 -1
  193. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +24 -6
  194. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +1 -0
  195. package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.mts +1 -0
  196. package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
  197. package/Types/OnCallDutyPolicy/OnCallPageRecordGone.d.mts +3 -0
  198. package/Types/OnCallDutyPolicy/OnCallPageRecordGone.d.ts +3 -0
  199. package/Types/OnCallDutyPolicy/OnCallPageRecordGone.js +42 -0
  200. package/Types/OnCallDutyPolicy/OnCallPageRecordGone.mjs +4 -0
  201. package/Types/OnCallDutyPolicy/OnCallPageWords.d.mts +6 -2
  202. package/Types/OnCallDutyPolicy/OnCallPageWords.d.ts +6 -2
  203. package/Types/OnCallDutyPolicy/OnCallPageWords.js +21 -20
  204. package/Types/OnCallDutyPolicy/OnCallPersonPage.d.mts +4 -0
  205. package/Types/OnCallDutyPolicy/OnCallPersonPage.d.ts +4 -0
  206. package/Types/OnCallDutyPolicy/OnCallPersonPage.js +125 -1
  207. package/Types/OnCallDutyPolicy/OnCallPersonPage.mjs +1 -0
  208. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.mts +12 -0
  209. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.ts +12 -0
  210. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.js +38 -0
  211. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.mjs +3 -0
  212. package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +2 -0
  213. package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +2 -0
  214. package/Types/OnCallDutyPolicy/OnCallTestPage.js +12 -0
  215. package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +1 -0
  216. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +92 -0
  217. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +92 -0
  218. package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +512 -0
  219. package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +7 -0
  220. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +23 -0
  221. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +23 -0
  222. package/Types/OnCallDutyPolicy/UserOverrideEdit.js +105 -0
  223. package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +6 -0
  224. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +64 -0
  225. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +64 -0
  226. package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +237 -0
  227. package/Types/OnCallDutyPolicy/UserOverrideOverlap.mjs +14 -0
  228. package/Types/OpenStack/OpenStackCapacity.js +12 -5
  229. package/Types/Permission.d.mts +4 -0
  230. package/Types/Permission.d.ts +4 -0
  231. package/Types/Permission.js +66 -10
  232. package/Types/Probe/ProbeCapability.d.mts +2 -1
  233. package/Types/Probe/ProbeCapability.d.ts +2 -1
  234. package/Types/Probe/ProbeCapability.js +10 -0
  235. package/Types/Product/ProductUsage.js +2 -1
  236. package/Types/Product/ProjectProductsAnswer.js +2 -1
  237. package/Types/ReaderLanguage.d.mts +1 -0
  238. package/Types/ReaderLanguage.d.ts +1 -0
  239. package/Types/ReaderLanguage.js +13 -1
  240. package/Types/ReaderLanguage.mjs +1 -0
  241. package/Types/ResourceAiAgent/AiResourceType.d.mts +1 -0
  242. package/Types/ResourceAiAgent/AiResourceType.d.ts +1 -0
  243. package/Types/ResourceAiAgent/AiResourceType.js +12 -0
  244. package/Types/Rules/RuleRun.js +2 -2
  245. package/Types/Rum/ProductAnalyticsEventReads.js +10 -1
  246. package/Types/Rum/ProductAnalyticsEvents.js +13 -1
  247. package/Types/Rum/SessionReplayCustomEvents.d.mts +4 -1
  248. package/Types/Rum/SessionReplayCustomEvents.d.ts +4 -1
  249. package/Types/Rum/SessionReplayCustomEvents.js +12 -0
  250. package/Types/Rum/SessionReplayCustomEvents.mjs +1 -0
  251. package/Types/ScheduledMaintenance/MaintenanceCalendar.js +1 -1
  252. package/Types/ServerSending/ServerSendingStatus.d.mts +7 -0
  253. package/Types/ServerSending/ServerSendingStatus.d.ts +7 -0
  254. package/Types/ServerSending/ServerSendingStatus.js +49 -2
  255. package/Types/ServerSetup/ServerSetupChecklist.js +3 -3
  256. package/Types/SetupHealth/SetupHealth.d.mts +1 -0
  257. package/Types/SetupHealth/SetupHealth.d.ts +1 -0
  258. package/Types/SetupHealth/SetupHealth.js +13 -5
  259. package/Types/StateTimeline/RowsKeptOnDelete.js +1 -1
  260. package/Types/StatusPage/DefaultStatusNames.d.mts +11 -3
  261. package/Types/StatusPage/DefaultStatusNames.d.ts +11 -3
  262. package/Types/StatusPage/DefaultStatusNames.js +74 -28
  263. package/Types/StatusPage/DefaultStatusNames.mjs +9 -2
  264. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.mts +8 -0
  265. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.ts +8 -0
  266. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +50 -0
  267. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.mjs +3 -0
  268. package/Types/StatusPage/PublicNoteSubscriberNotificationDefault.js +1 -1
  269. package/Types/StatusPage/StateChangeNoteMessage.d.mts +3 -2
  270. package/Types/StatusPage/StateChangeNoteMessage.d.ts +3 -2
  271. package/Types/StatusPage/StateChangeNoteMessage.js +16 -13
  272. package/Types/Telemetry/CompatibleIngest.d.mts +20 -0
  273. package/Types/Telemetry/CompatibleIngest.d.ts +20 -0
  274. package/Types/Telemetry/CompatibleIngest.js +123 -0
  275. package/Types/Telemetry/CompatibleIngest.mjs +21 -0
  276. package/Types/Telemetry/TelemetryIngestSurface.d.mts +5 -0
  277. package/Types/Telemetry/TelemetryIngestSurface.d.ts +5 -0
  278. package/Types/Telemetry/TelemetryIngestSurface.js +48 -7
  279. package/Types/Telemetry/TelemetryIngestionKeyType.js +7 -6
  280. package/Types/TimezoneAlias.d.mts +1 -0
  281. package/Types/TimezoneAlias.d.ts +1 -0
  282. package/Types/TimezoneAlias.js +13 -0
  283. package/Types/Translator.d.mts +1 -0
  284. package/Types/Translator.d.ts +1 -0
  285. package/Types/Translator.js +470 -63
  286. package/Types/Translator.mjs +1 -0
  287. package/Types/UserSession/SessionLength.d.mts +33 -0
  288. package/Types/UserSession/SessionLength.d.ts +33 -0
  289. package/Types/UserSession/SessionLength.js +134 -5
  290. package/Types/UserSession/SessionLength.mjs +5 -0
  291. package/Types/Workflow/RunRecord.js +1 -1
  292. package/Types/Workflow/Templates.js +2 -2
  293. package/Types/Workflow/WorkflowStatus.js +21 -10
  294. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +2 -0
  295. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +2 -0
  296. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +26 -1
  297. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +26 -1
  298. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +84 -0
  299. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +84 -0
  300. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +456 -0
  301. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.mjs +5 -0
  302. package/Utils/AI/InvestigationReport.js +2 -2
  303. package/Utils/API.d.mts +0 -11
  304. package/Utils/API.d.ts +0 -11
  305. package/Utils/API.js +0 -432
  306. package/Utils/AiRemediation/Resource/ResourceCommandPolicy.js +2 -2
  307. package/Utils/AiRemediation/VerifiedFixRunbook.d.mts +39 -0
  308. package/Utils/AiRemediation/VerifiedFixRunbook.d.ts +39 -0
  309. package/Utils/AiRemediation/VerifiedFixRunbook.js +231 -0
  310. package/Utils/AiRemediation/VerifiedFixRunbook.mjs +10 -0
  311. package/Utils/Dashboard/DashboardWidgetSorts.js +11 -2
  312. package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +2 -1
  313. package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +2 -1
  314. package/Utils/Dashboard/MonitorListWidgetFormat.js +5 -3
  315. package/Utils/Dashboard/ValueWidgetSeries.d.mts +2 -0
  316. package/Utils/Dashboard/ValueWidgetSeries.d.ts +2 -0
  317. package/Utils/Dashboard/ValueWidgetSeries.js +75 -0
  318. package/Utils/DefaultRecordNames.d.mts +6 -0
  319. package/Utils/DefaultRecordNames.d.ts +6 -0
  320. package/Utils/DefaultRecordNames.js +122 -0
  321. package/Utils/DefaultRecordNames.mjs +6 -0
  322. package/Utils/DeveloperDocs/ExampleBuilder.js +1 -1
  323. package/Utils/DeveloperDocs/ResourceProfiles.js +2 -2
  324. package/Utils/Grok/Grok.js +7 -4
  325. package/Utils/GuidedSetup/StatusPageRecords.d.mts +5 -0
  326. package/Utils/GuidedSetup/StatusPageRecords.d.ts +5 -0
  327. package/Utils/GuidedSetup/StatusPageRecords.js +27 -2
  328. package/Utils/GuidedSetup/StatusPageRecords.mjs +1 -0
  329. package/Utils/GuidedSetup/WebsiteMonitorRecords.js +6 -0
  330. package/Utils/HostAddressUtil.d.mts +1 -0
  331. package/Utils/HostAddressUtil.d.ts +1 -0
  332. package/Utils/HostAddressUtil.js +30 -0
  333. package/Utils/Incident/PostmortemActionItemCodeTask.d.mts +20 -0
  334. package/Utils/Incident/PostmortemActionItemCodeTask.d.ts +20 -0
  335. package/Utils/Incident/PostmortemActionItemCodeTask.js +107 -0
  336. package/Utils/Incident/PostmortemActionItemCodeTask.mjs +10 -0
  337. package/Utils/Incident/PostmortemActionItemMarkdown.d.mts +39 -0
  338. package/Utils/Incident/PostmortemActionItemMarkdown.d.ts +39 -0
  339. package/Utils/Incident/PostmortemActionItemMarkdown.js +118 -0
  340. package/Utils/Incident/PostmortemActionItemMarkdown.mjs +12 -0
  341. package/Utils/Incident/PostmortemNoteActionItems.d.mts +29 -0
  342. package/Utils/Incident/PostmortemNoteActionItems.d.ts +29 -0
  343. package/Utils/Incident/PostmortemNoteActionItems.js +544 -0
  344. package/Utils/Incident/PostmortemNoteActionItems.mjs +7 -0
  345. package/Utils/LinearRegExp/LinearRegExp.js +5 -1
  346. package/Utils/LookupTable.d.mts +3 -0
  347. package/Utils/LookupTable.d.ts +3 -0
  348. package/Utils/LookupTable.js +61 -0
  349. package/Utils/LookupTable.mjs +3 -0
  350. package/Utils/Markdown/LinkReferenceDefinitions.d.mts +2 -0
  351. package/Utils/Markdown/LinkReferenceDefinitions.d.ts +2 -0
  352. package/Utils/Markdown/LinkReferenceDefinitions.js +101 -1
  353. package/Utils/Markdown/LinkReferenceDefinitions.mjs +2 -0
  354. package/Utils/Markdown/OverLongText.js +296 -2
  355. package/Utils/Markdown/SlowMarkdown.d.mts +1 -0
  356. package/Utils/Markdown/SlowMarkdown.d.ts +1 -0
  357. package/Utils/Markdown/SlowMarkdown.js +354 -4
  358. package/Utils/Markdown/SlowMarkdown.mjs +1 -0
  359. package/Utils/Metrics/MetricFormulaEvaluator.js +10 -4
  360. package/Utils/Metrics/MetricSeriesFingerprint.js +13 -4
  361. package/Utils/Metrics/MetricSeriesScope.d.mts +5 -0
  362. package/Utils/Metrics/MetricSeriesScope.d.ts +5 -0
  363. package/Utils/Metrics/MetricSeriesScope.js +5 -1
  364. package/Utils/Milliseconds.d.mts +7 -0
  365. package/Utils/Milliseconds.d.ts +7 -0
  366. package/Utils/Milliseconds.js +60 -0
  367. package/Utils/Milliseconds.mjs +4 -0
  368. package/Utils/Monitor/EndpointAttachmentUtil.d.mts +8 -0
  369. package/Utils/Monitor/EndpointAttachmentUtil.d.ts +8 -0
  370. package/Utils/Monitor/EndpointAttachmentUtil.js +91 -21
  371. package/Utils/Monitor/EndpointAttachmentUtil.mjs +4 -0
  372. package/Utils/Monitor/InterfaceInventoryUtil.d.mts +40 -0
  373. package/Utils/Monitor/InterfaceInventoryUtil.d.ts +40 -0
  374. package/Utils/Monitor/InterfaceInventoryUtil.js +217 -5
  375. package/Utils/Monitor/InterfaceInventoryUtil.mjs +8 -0
  376. package/Utils/Monitor/MonitorOverviewPresentationUtil.js +63 -29
  377. package/Utils/Monitor/MonitorOverviewProbeUtil.js +13 -2
  378. package/Utils/Monitor/MonitorRootCauseWording.d.mts +5 -0
  379. package/Utils/Monitor/MonitorRootCauseWording.d.ts +5 -0
  380. package/Utils/Monitor/MonitorRootCauseWording.js +148 -5
  381. package/Utils/Monitor/MonitoringOff.d.mts +2 -0
  382. package/Utils/Monitor/MonitoringOff.d.ts +2 -0
  383. package/Utils/Monitor/MonitoringOff.js +21 -0
  384. package/Utils/Monitor/NetworkTopologyUtil.d.mts +2 -1
  385. package/Utils/Monitor/NetworkTopologyUtil.d.ts +2 -1
  386. package/Utils/Monitor/NetworkTopologyUtil.js +10 -0
  387. package/Utils/Monitor/NotOperationalMonitorQuery.d.mts +2 -1
  388. package/Utils/Monitor/NotOperationalMonitorQuery.d.ts +2 -1
  389. package/Utils/Monitor/NotOperationalMonitorQuery.js +23 -4
  390. package/Utils/Monitor/ProbeAgreementRule.d.mts +10 -0
  391. package/Utils/Monitor/ProbeAgreementRule.d.ts +10 -0
  392. package/Utils/Monitor/ProbeAgreementRule.js +58 -0
  393. package/Utils/Monitor/ProbeAgreementRule.mjs +3 -0
  394. package/Utils/Monitor/ProbeFailureReading.d.mts +18 -0
  395. package/Utils/Monitor/ProbeFailureReading.d.ts +18 -0
  396. package/Utils/Monitor/ProbeFailureReading.js +166 -0
  397. package/Utils/Monitor/ProbeFailureReading.mjs +8 -0
  398. package/Utils/Monitor/RequestFailureDescriptions.d.mts +61 -0
  399. package/Utils/Monitor/RequestFailureDescriptions.d.ts +61 -0
  400. package/Utils/Monitor/RequestFailureDescriptions.js +252 -0
  401. package/Utils/Monitor/RequestFailureDescriptions.mjs +6 -0
  402. package/Utils/NetworkDevice/BoundMonitorNotChecked.d.mts +9 -0
  403. package/Utils/NetworkDevice/BoundMonitorNotChecked.d.ts +9 -0
  404. package/Utils/NetworkDevice/BoundMonitorNotChecked.js +15 -0
  405. package/Utils/NetworkDevice/BoundMonitorNotChecked.mjs +2 -0
  406. package/Utils/Project/NextNumber.js +1 -1
  407. package/Utils/PromQL/PromQLAst.d.mts +159 -0
  408. package/Utils/PromQL/PromQLAst.d.ts +159 -0
  409. package/Utils/PromQL/PromQLAst.js +118 -0
  410. package/Utils/PromQL/PromQLAst.mjs +12 -0
  411. package/Utils/PromQL/PromQLDuration.d.mts +2 -0
  412. package/Utils/PromQL/PromQLDuration.d.ts +2 -0
  413. package/Utils/PromQL/PromQLDuration.js +78 -0
  414. package/Utils/PromQL/PromQLDuration.mjs +3 -0
  415. package/Utils/PromQL/PromQLEngine.d.mts +15 -0
  416. package/Utils/PromQL/PromQLEngine.d.ts +15 -0
  417. package/Utils/PromQL/PromQLEngine.js +974 -0
  418. package/Utils/PromQL/PromQLEngine.mjs +7 -0
  419. package/Utils/PromQL/PromQLEngineTypes.d.mts +84 -0
  420. package/Utils/PromQL/PromQLEngineTypes.d.ts +84 -0
  421. package/Utils/PromQL/PromQLEngineTypes.js +10 -0
  422. package/Utils/PromQL/PromQLEngineTypes.mjs +2 -0
  423. package/Utils/PromQL/PromQLError.d.mts +11 -0
  424. package/Utils/PromQL/PromQLError.d.ts +11 -0
  425. package/Utils/PromQL/PromQLError.js +27 -0
  426. package/Utils/PromQL/PromQLError.mjs +3 -0
  427. package/Utils/PromQL/PromQLFunctionEvaluators.d.mts +8 -0
  428. package/Utils/PromQL/PromQLFunctionEvaluators.d.ts +8 -0
  429. package/Utils/PromQL/PromQLFunctionEvaluators.js +829 -0
  430. package/Utils/PromQL/PromQLFunctionEvaluators.mjs +3 -0
  431. package/Utils/PromQL/PromQLFunctions.d.mts +10 -0
  432. package/Utils/PromQL/PromQLFunctions.d.ts +10 -0
  433. package/Utils/PromQL/PromQLFunctions.js +127 -0
  434. package/Utils/PromQL/PromQLFunctions.mjs +4 -0
  435. package/Utils/PromQL/PromQLLabelOrder.d.mts +8 -0
  436. package/Utils/PromQL/PromQLLabelOrder.d.ts +8 -0
  437. package/Utils/PromQL/PromQLLabelOrder.js +212 -0
  438. package/Utils/PromQL/PromQLLabelOrder.mjs +6 -0
  439. package/Utils/PromQL/PromQLLabels.d.mts +11 -0
  440. package/Utils/PromQL/PromQLLabels.d.ts +11 -0
  441. package/Utils/PromQL/PromQLLabels.js +219 -0
  442. package/Utils/PromQL/PromQLLabels.mjs +9 -0
  443. package/Utils/PromQL/PromQLLexer.d.mts +39 -0
  444. package/Utils/PromQL/PromQLLexer.d.ts +39 -0
  445. package/Utils/PromQL/PromQLLexer.js +391 -0
  446. package/Utils/PromQL/PromQLLexer.mjs +3 -0
  447. package/Utils/PromQL/PromQLMath.d.mts +19 -0
  448. package/Utils/PromQL/PromQLMath.d.ts +19 -0
  449. package/Utils/PromQL/PromQLMath.js +200 -0
  450. package/Utils/PromQL/PromQLMath.mjs +9 -0
  451. package/Utils/PromQL/PromQLMetricNames.d.mts +21 -0
  452. package/Utils/PromQL/PromQLMetricNames.d.ts +21 -0
  453. package/Utils/PromQL/PromQLMetricNames.js +205 -0
  454. package/Utils/PromQL/PromQLMetricNames.mjs +8 -0
  455. package/Utils/PromQL/PromQLParser.d.mts +4 -0
  456. package/Utils/PromQL/PromQLParser.d.ts +4 -0
  457. package/Utils/PromQL/PromQLParser.js +836 -0
  458. package/Utils/PromQL/PromQLParser.mjs +4 -0
  459. package/Utils/PromQL/PromQLRegex.d.mts +20 -0
  460. package/Utils/PromQL/PromQLRegex.d.ts +20 -0
  461. package/Utils/PromQL/PromQLRegex.js +1014 -0
  462. package/Utils/PromQL/PromQLRegex.mjs +5 -0
  463. package/Utils/PromQL/PrometheusResponse.d.mts +25 -0
  464. package/Utils/PromQL/PrometheusResponse.d.ts +25 -0
  465. package/Utils/PromQL/PrometheusResponse.js +92 -0
  466. package/Utils/PromQL/PrometheusResponse.mjs +3 -0
  467. package/Utils/PromQL/RE2CharacterClass.d.mts +24 -0
  468. package/Utils/PromQL/RE2CharacterClass.d.ts +24 -0
  469. package/Utils/PromQL/RE2CharacterClass.js +532 -0
  470. package/Utils/PromQL/RE2CharacterClass.mjs +16 -0
  471. package/Utils/RequestFailedDetailsUtil.d.mts +15 -0
  472. package/Utils/RequestFailedDetailsUtil.d.ts +15 -0
  473. package/Utils/RequestFailedDetailsUtil.js +452 -0
  474. package/Utils/RequestFailedDetailsUtil.mjs +2 -0
  475. package/Utils/Rum/PathInSentence.d.mts +5 -0
  476. package/Utils/Rum/PathInSentence.d.ts +5 -0
  477. package/Utils/Rum/PathInSentence.js +46 -0
  478. package/Utils/Rum/PathInSentence.mjs +6 -0
  479. package/Utils/Rum/UrlScrubber.d.mts +5 -1
  480. package/Utils/Rum/UrlScrubber.d.ts +5 -1
  481. package/Utils/Rum/UrlScrubber.js +153 -7
  482. package/Utils/Rum/UserFlow.d.mts +1 -1
  483. package/Utils/Rum/UserFlow.d.ts +1 -1
  484. package/Utils/Rum/UserFlow.js +202 -29
  485. package/Utils/Rum/UserFlow.mjs +1 -1
  486. package/Utils/Runbook/RunbookStepsSignature.d.mts +3 -0
  487. package/Utils/Runbook/RunbookStepsSignature.d.ts +3 -0
  488. package/Utils/Runbook/RunbookStepsSignature.js +30 -0
  489. package/Utils/Runbook/RunbookStepsSignature.mjs +3 -0
  490. package/Utils/Schema/TypeSchemas.js +6 -0
  491. package/Utils/SecurityCase/SecurityOverviewMetrics.d.mts +11 -1
  492. package/Utils/SecurityCase/SecurityOverviewMetrics.d.ts +11 -1
  493. package/Utils/SecurityCase/SecurityOverviewMetrics.js +99 -17
  494. package/Utils/SecurityCase/SecurityOverviewMetrics.mjs +3 -0
  495. package/Utils/Slo/SloDuration.d.mts +5 -2
  496. package/Utils/Slo/SloDuration.d.ts +5 -2
  497. package/Utils/Slo/SloDuration.js +11 -6
  498. package/Utils/Slo/SloHealth.js +1 -1
  499. package/Utils/Sms/OnCallPageSms.d.mts +2 -0
  500. package/Utils/Sms/OnCallPageSms.d.ts +2 -0
  501. package/Utils/Sms/OnCallPageSms.js +3 -1
  502. package/Utils/StateListType.d.mts +11 -0
  503. package/Utils/StateListType.d.ts +11 -0
  504. package/Utils/StateListType.js +21 -0
  505. package/Utils/StateListType.mjs +2 -0
  506. package/Utils/StateOrder.d.mts +8 -11
  507. package/Utils/StateOrder.d.ts +8 -11
  508. package/Utils/StateOrder.js +50 -88
  509. package/Utils/StateOrder.mjs +2 -0
  510. package/Utils/StateTimeline/StateTimelineRowDelete.js +1 -1
  511. package/Utils/Suggestions/ActionItemCodeTaskSuggestion.d.mts +9 -0
  512. package/Utils/Suggestions/ActionItemCodeTaskSuggestion.d.ts +9 -0
  513. package/Utils/Suggestions/ActionItemCodeTaskSuggestion.js +25 -0
  514. package/Utils/Suggestions/ActionItemCodeTaskSuggestion.mjs +2 -0
  515. package/Utils/Suggestions/VerifiedFixRunbookSuggestion.d.mts +5 -0
  516. package/Utils/Suggestions/VerifiedFixRunbookSuggestion.d.ts +5 -0
  517. package/Utils/Suggestions/VerifiedFixRunbookSuggestion.js +39 -0
  518. package/Utils/Suggestions/VerifiedFixRunbookSuggestion.mjs +2 -0
  519. package/Utils/Syslog/SyslogMessageParser.js +16 -6
  520. package/Utils/Telemetry/HeartbeatAvailability.d.mts +4 -0
  521. package/Utils/Telemetry/HeartbeatAvailability.d.ts +4 -0
  522. package/Utils/Telemetry/HeartbeatAvailability.js +113 -26
  523. package/Utils/Uptime/DayUptimeGraphUtil.js +2 -2
  524. package/Utils/ValueFormatter.d.mts +1 -0
  525. package/Utils/ValueFormatter.d.ts +1 -0
  526. package/Utils/ValueFormatter.js +258 -18
  527. package/package.json +1 -1
@@ -2,6 +2,7 @@ import commonJsModule from "./Translator.js";
2
2
  export const DEFAULT_LANGUAGE = commonJsModule.DEFAULT_LANGUAGE;
3
3
  export const DOT_ZERO_INLINE_SEPARATOR = commonJsModule.DOT_ZERO_INLINE_SEPARATOR;
4
4
  export const INLINE_SEPARATOR = commonJsModule.INLINE_SEPARATOR;
5
+ export const SAME_AS_ENGLISH_MARK = commonJsModule.SAME_AS_ENGLISH_MARK;
5
6
  export const composedValue = commonJsModule.composedValue;
6
7
  export const createTranslator = commonJsModule.createTranslator;
7
8
  export const fillTemplate = commonJsModule.fillTemplate;
@@ -86,3 +86,36 @@ export declare const getActivityAtRenewal: (data: {
86
86
  reportedInactivityInSeconds: number | null;
87
87
  now: Date;
88
88
  }) => Date;
89
+ export declare const LONGEST_INACTIVITY_FIELD: string;
90
+ export interface ReportedInactivity {
91
+ forSeconds: number;
92
+ endedSecondsAgo: number;
93
+ }
94
+ export declare const readReportedLongestInactivity: (value: unknown) => ReportedInactivity | null;
95
+ export interface RenewalReport {
96
+ inactiveForInSeconds: number | null;
97
+ longestInactivity: ReportedInactivity | null;
98
+ }
99
+ export declare const NO_RENEWAL_REPORT: RenewalReport;
100
+ export type SessionRenewalOutcome = {
101
+ hasEnded: true;
102
+ reason: SessionEndReason;
103
+ lastActiveAt: Date;
104
+ } | {
105
+ hasEnded: false;
106
+ lastActiveAt: Date;
107
+ };
108
+ export declare const getUnknownInactivity: (data: {
109
+ storedLastActiveAt: Date;
110
+ longestInactivity: ReportedInactivity | null;
111
+ now: Date;
112
+ }) => {
113
+ fromMs: number;
114
+ toMs: number;
115
+ } | null;
116
+ export declare const decideSessionRenewal: (data: {
117
+ facts: SessionFacts;
118
+ lengths: SessionLengths | null | undefined;
119
+ report: RenewalReport;
120
+ now: Date;
121
+ }) => SessionRenewalOutcome;
@@ -86,3 +86,36 @@ export declare const getActivityAtRenewal: (data: {
86
86
  reportedInactivityInSeconds: number | null;
87
87
  now: Date;
88
88
  }) => Date;
89
+ export declare const LONGEST_INACTIVITY_FIELD: string;
90
+ export interface ReportedInactivity {
91
+ forSeconds: number;
92
+ endedSecondsAgo: number;
93
+ }
94
+ export declare const readReportedLongestInactivity: (value: unknown) => ReportedInactivity | null;
95
+ export interface RenewalReport {
96
+ inactiveForInSeconds: number | null;
97
+ longestInactivity: ReportedInactivity | null;
98
+ }
99
+ export declare const NO_RENEWAL_REPORT: RenewalReport;
100
+ export type SessionRenewalOutcome = {
101
+ hasEnded: true;
102
+ reason: SessionEndReason;
103
+ lastActiveAt: Date;
104
+ } | {
105
+ hasEnded: false;
106
+ lastActiveAt: Date;
107
+ };
108
+ export declare const getUnknownInactivity: (data: {
109
+ storedLastActiveAt: Date;
110
+ longestInactivity: ReportedInactivity | null;
111
+ now: Date;
112
+ }) => {
113
+ fromMs: number;
114
+ toMs: number;
115
+ } | null;
116
+ export declare const decideSessionRenewal: (data: {
117
+ facts: SessionFacts;
118
+ lengths: SessionLengths | null | undefined;
119
+ report: RenewalReport;
120
+ now: Date;
121
+ }) => SessionRenewalOutcome;
@@ -31,10 +31,14 @@
31
31
  * Both are counted by the server, from the session's own facts
32
32
  * (SessionFacts): when it signed in, and when its person was last active. A
33
33
  * browser says how long its person has not clicked, typed or scrolled when
34
- * it renews the session; anything else (the mobile app, an older page) is
35
- * active whenever it renews. The server decides at every renewal and on
36
- * every request (getSessionEnd), never the browser, and a change applies to
37
- * the sessions there are: a shorter length signs out everyone it is past.
34
+ * it renews the session, and the longest time they went without since its
35
+ * last renewal - a browser closed, a computer asleep - so opening
36
+ * OneUptime again after the idle timeout does not bring the session back
37
+ * (issue #6789); anything else (the mobile app, an older page) is active
38
+ * whenever it renews. The server decides at every renewal
39
+ * (decideSessionRenewal) and on every request (getSessionEnd), never the
40
+ * browser, and a change applies to the sessions there are: a shorter
41
+ * length signs out everyone it is past.
38
42
  *
39
43
  * The values live in the GlobalConfig columns below, the lengths in whole
40
44
  * minutes. The Enterprise module hands core what they hold (EnterpriseEdition.
@@ -42,7 +46,8 @@
42
46
  * as it always has.
43
47
  */
44
48
  Object.defineProperty(exports, "__esModule", { value: true });
45
- exports.getActivityAtRenewal = exports.readReportedInactivityInSeconds = exports.MAX_REPORTED_INACTIVITY_IN_SECONDS = exports.getSessionEndReachedBy = exports.getSessionEnd = exports.INACTIVE_FOR_IN_SECONDS_FIELD = exports.readSessionEndReason = exports.SESSION_ENDED_QUERY_PARAM = exports.isSessionEndReason = exports.SessionEndReason = exports.doesShortenAnySession = exports.getIdleTimeoutInMinutes = exports.getSessionLengthRule = exports.hasSessionLimits = exports.isSessionLengthRuleSet = exports.sanitizeSessionLengths = exports.readSessionLengths = exports.toSessionLengths = exports.readSessionLengthSettings = exports.NO_SESSION_LENGTH_SETTINGS = exports.NO_SESSION_LENGTHS = exports.NO_SESSION_LENGTH_RULE = exports.readSessionLengthValue = exports.getSessionLengthSettingProblem = exports.getSeparateSsoSessionLengthsProblem = exports.getSessionLengthProblem = exports.getSessionLengthRange = exports.SEPARATE_SSO_SESSION_LENGTHS_PROBLEM = exports.SESSION_IDLE_TIMEOUT_PROBLEM = exports.SESSION_LENGTH_PROBLEM = exports.SESSION_IDLE_TIMEOUT_CHOICES_IN_MINUTES = exports.SESSION_LENGTH_CHOICES_IN_MINUTES = exports.MAX_SESSION_IDLE_TIMEOUT_IN_MINUTES = exports.DEFAULT_SESSION_IDLE_TIMEOUT_IN_MINUTES = exports.DEFAULT_SESSION_IDLE_DAYS = exports.MAX_SESSION_LENGTH_IN_MINUTES = exports.MIN_SESSION_IDLE_TIMEOUT_IN_MINUTES = exports.MIN_SESSION_LENGTH_IN_MINUTES = exports.MINUTES_IN_A_DAY = exports.MINUTES_IN_AN_HOUR = exports.getSessionLengthColumnKind = exports.SessionLengthKind = exports.SESSION_LENGTH_SETTING_COLUMNS = exports.SESSION_LENGTH_COLUMNS = exports.SEPARATE_SSO_SESSION_LENGTHS_COLUMN = exports.SSO_SESSION_IDLE_TIMEOUT_COLUMN = exports.SSO_SESSION_LENGTH_COLUMN = exports.SESSION_IDLE_TIMEOUT_COLUMN = exports.SESSION_LENGTH_COLUMN = void 0;
49
+ exports.LONGEST_INACTIVITY_FIELD = exports.getActivityAtRenewal = exports.readReportedInactivityInSeconds = exports.MAX_REPORTED_INACTIVITY_IN_SECONDS = exports.getSessionEndReachedBy = exports.getSessionEnd = exports.INACTIVE_FOR_IN_SECONDS_FIELD = exports.readSessionEndReason = exports.SESSION_ENDED_QUERY_PARAM = exports.isSessionEndReason = exports.SessionEndReason = exports.doesShortenAnySession = exports.getIdleTimeoutInMinutes = exports.getSessionLengthRule = exports.hasSessionLimits = exports.isSessionLengthRuleSet = exports.sanitizeSessionLengths = exports.readSessionLengths = exports.toSessionLengths = exports.readSessionLengthSettings = exports.NO_SESSION_LENGTH_SETTINGS = exports.NO_SESSION_LENGTHS = exports.NO_SESSION_LENGTH_RULE = exports.readSessionLengthValue = exports.getSessionLengthSettingProblem = exports.getSeparateSsoSessionLengthsProblem = exports.getSessionLengthProblem = exports.getSessionLengthRange = exports.SEPARATE_SSO_SESSION_LENGTHS_PROBLEM = exports.SESSION_IDLE_TIMEOUT_PROBLEM = exports.SESSION_LENGTH_PROBLEM = exports.SESSION_IDLE_TIMEOUT_CHOICES_IN_MINUTES = exports.SESSION_LENGTH_CHOICES_IN_MINUTES = exports.MAX_SESSION_IDLE_TIMEOUT_IN_MINUTES = exports.DEFAULT_SESSION_IDLE_TIMEOUT_IN_MINUTES = exports.DEFAULT_SESSION_IDLE_DAYS = exports.MAX_SESSION_LENGTH_IN_MINUTES = exports.MIN_SESSION_IDLE_TIMEOUT_IN_MINUTES = exports.MIN_SESSION_LENGTH_IN_MINUTES = exports.MINUTES_IN_A_DAY = exports.MINUTES_IN_AN_HOUR = exports.getSessionLengthColumnKind = exports.SessionLengthKind = exports.SESSION_LENGTH_SETTING_COLUMNS = exports.SESSION_LENGTH_COLUMNS = exports.SEPARATE_SSO_SESSION_LENGTHS_COLUMN = exports.SSO_SESSION_IDLE_TIMEOUT_COLUMN = exports.SSO_SESSION_LENGTH_COLUMN = exports.SESSION_IDLE_TIMEOUT_COLUMN = exports.SESSION_LENGTH_COLUMN = void 0;
50
+ exports.decideSessionRenewal = exports.getUnknownInactivity = exports.NO_RENEWAL_REPORT = exports.readReportedLongestInactivity = void 0;
46
51
  exports.SESSION_LENGTH_COLUMN = "sessionLengthInMinutes";
47
52
  exports.SESSION_IDLE_TIMEOUT_COLUMN = "sessionIdleTimeoutInMinutes";
48
53
  exports.SSO_SESSION_LENGTH_COLUMN = "ssoSessionLengthInMinutes";
@@ -411,3 +416,127 @@ const getActivityAtRenewal = (data) => {
411
416
  return new Date(Math.min(data.now.getTime(), Math.max(data.storedLastActiveAt.getTime(), reportedMs)));
412
417
  };
413
418
  exports.getActivityAtRenewal = getActivityAtRenewal;
419
+ /*
420
+ * THE LONGEST TIME WITHOUT USE SINCE THE LAST RENEWAL (issue #6789).
421
+ *
422
+ * How long the person has not used OneUptime now (inactiveForInSeconds) is
423
+ * not enough on its own. Someone who closes the browser, or whose computer
424
+ * sleeps, and opens OneUptime again hours later clicks before the session
425
+ * is renewed - opening the page is a click's worth of activity - so that
426
+ * renewal says they were active a moment ago. A tab left in the background
427
+ * that nobody brought back does the same the moment they do. So the
428
+ * Dashboard and the Admin Dashboard say, too, the longest time that ended
429
+ * since the session was last renewed during which nobody used OneUptime in
430
+ * any tab of the browser (Common/UI/Utils/UserActivity): how long it
431
+ * lasted, and how long ago it ended, in whole seconds - durations, never
432
+ * the browser's clock. The server ends the session when it reached the
433
+ * idle timeout, counting it only from what the session knew of its
434
+ * person's activity already: activity the server heard of cuts it short.
435
+ */
436
+ exports.LONGEST_INACTIVITY_FIELD = "longestInactivity";
437
+ /*
438
+ * The time without use a renewal reports (LONGEST_INACTIVITY_FIELD), or
439
+ * null when it reports none it can read: an object whose two durations are
440
+ * each read as inactiveForInSeconds is (readReportedInactivityInSeconds) -
441
+ * a whole, non-negative number of seconds, no more than
442
+ * MAX_REPORTED_INACTIVITY_IN_SECONDS. Anything else is no report, and
443
+ * never a reason to end a session.
444
+ */
445
+ const readReportedLongestInactivity = (value) => {
446
+ if (!value || typeof value !== "object" || Array.isArray(value)) {
447
+ return null;
448
+ }
449
+ const report = value;
450
+ const forSeconds = (0, exports.readReportedInactivityInSeconds)(report["forSeconds"]);
451
+ const endedSecondsAgo = (0, exports.readReportedInactivityInSeconds)(report["endedSecondsAgo"]);
452
+ if (forSeconds === null || endedSecondsAgo === null) {
453
+ return null;
454
+ }
455
+ return { forSeconds, endedSecondsAgo };
456
+ };
457
+ exports.readReportedLongestInactivity = readReportedLongestInactivity;
458
+ exports.NO_RENEWAL_REPORT = {
459
+ inactiveForInSeconds: null,
460
+ longestInactivity: null,
461
+ };
462
+ /*
463
+ * The part of a reported time without use that the session did not know of
464
+ * already, in milliseconds since 1970, or null when there is none: it ends
465
+ * where the browser says, and starts where the browser says or at the
466
+ * session's last activity, whichever is later. Activity the server heard of
467
+ * - a renewal in another tab, the sign-in itself - is never counted as
468
+ * time without use, so a browser that kept an older time (a previous
469
+ * sign-in's, say) can end no session with it.
470
+ */
471
+ const getUnknownInactivity = (data) => {
472
+ if (!data.longestInactivity) {
473
+ return null;
474
+ }
475
+ const toMs = data.now.getTime() - data.longestInactivity.endedSecondsAgo * 1000;
476
+ const fromMs = Math.max(toMs - data.longestInactivity.forSeconds * 1000, data.storedLastActiveAt.getTime());
477
+ if (toMs <= fromMs) {
478
+ return null;
479
+ }
480
+ return { fromMs, toMs };
481
+ };
482
+ exports.getUnknownInactivity = getUnknownInactivity;
483
+ /*
484
+ * Whether a renewal at `now` may go ahead under the lengths (null: none
485
+ * set), and when its person was last active - the one place a renewal of
486
+ * a session decides (UserSessionService.decideRenewal):
487
+ *
488
+ * - its kind's session length counts from its sign-in, however active
489
+ * its person is;
490
+ * - its kind's idle timeout counts from its person's last activity. While
491
+ * one is set, what the browser reports counts: how long its person has
492
+ * not used OneUptime now (never further back than what the session
493
+ * knew, never after now - getActivityAtRenewal), and the longest time
494
+ * they went without since the last renewal, which ends the session
495
+ * when the part the session did not know of reached the idle timeout
496
+ * (getUnknownInactivity). Without a report of how long it has been, the
497
+ * session's own last activity decides, and the renewal is the activity
498
+ * - as every renewal has always been. Without an idle timeout set,
499
+ * nothing the browser says is asked.
500
+ *
501
+ * A session that ended says why: whichever of the two came first, the
502
+ * length where both fall at the same moment (getSessionEnd).
503
+ */
504
+ const decideSessionRenewal = (data) => {
505
+ const rule = (0, exports.getSessionLengthRule)(data.lengths, data.facts.isSsoSignIn);
506
+ const isReportAsked = rule.idleTimeoutInMinutes !== null;
507
+ const report = isReportAsked ? data.report : exports.NO_RENEWAL_REPORT;
508
+ const lastActiveAt = (0, exports.getActivityAtRenewal)({
509
+ storedLastActiveAt: data.facts.lastActiveAt,
510
+ reportedInactivityInSeconds: report.inactiveForInSeconds,
511
+ now: data.now,
512
+ });
513
+ // Without a report of how long it has been, inactivity is what the session knew of it.
514
+ let idleFrom = report.inactiveForInSeconds === null
515
+ ? data.facts.lastActiveAt
516
+ : lastActiveAt;
517
+ // An earlier time without use that already reached the idle timeout ended the session then.
518
+ const unknownInactivity = (0, exports.getUnknownInactivity)({
519
+ storedLastActiveAt: data.facts.lastActiveAt,
520
+ longestInactivity: report.longestInactivity,
521
+ now: data.now,
522
+ });
523
+ if (unknownInactivity &&
524
+ unknownInactivity.toMs - unknownInactivity.fromMs >=
525
+ (0, exports.getIdleTimeoutInMinutes)(rule) * MS_IN_A_MINUTE &&
526
+ unknownInactivity.fromMs < idleFrom.getTime()) {
527
+ idleFrom = new Date(unknownInactivity.fromMs);
528
+ }
529
+ const end = (0, exports.getSessionEnd)(Object.assign(Object.assign({}, data.facts), { lastActiveAt: idleFrom }), data.lengths);
530
+ if (end.endsAt.getTime() <= data.now.getTime()) {
531
+ return {
532
+ hasEnded: true,
533
+ reason: end.reason,
534
+ // Activity the browser saw after the session ended is not the session's.
535
+ lastActiveAt: idleFrom.getTime() <= end.endsAt.getTime()
536
+ ? idleFrom
537
+ : data.facts.lastActiveAt,
538
+ };
539
+ }
540
+ return { hasEnded: false, lastActiveAt: lastActiveAt };
541
+ };
542
+ exports.decideSessionRenewal = decideSessionRenewal;
@@ -2,6 +2,7 @@ import commonJsModule from "./SessionLength.js";
2
2
  export const DEFAULT_SESSION_IDLE_DAYS = commonJsModule.DEFAULT_SESSION_IDLE_DAYS;
3
3
  export const DEFAULT_SESSION_IDLE_TIMEOUT_IN_MINUTES = commonJsModule.DEFAULT_SESSION_IDLE_TIMEOUT_IN_MINUTES;
4
4
  export const INACTIVE_FOR_IN_SECONDS_FIELD = commonJsModule.INACTIVE_FOR_IN_SECONDS_FIELD;
5
+ export const LONGEST_INACTIVITY_FIELD = commonJsModule.LONGEST_INACTIVITY_FIELD;
5
6
  export const MAX_REPORTED_INACTIVITY_IN_SECONDS = commonJsModule.MAX_REPORTED_INACTIVITY_IN_SECONDS;
6
7
  export const MAX_SESSION_IDLE_TIMEOUT_IN_MINUTES = commonJsModule.MAX_SESSION_IDLE_TIMEOUT_IN_MINUTES;
7
8
  export const MAX_SESSION_LENGTH_IN_MINUTES = commonJsModule.MAX_SESSION_LENGTH_IN_MINUTES;
@@ -9,6 +10,7 @@ export const MINUTES_IN_AN_HOUR = commonJsModule.MINUTES_IN_AN_HOUR;
9
10
  export const MINUTES_IN_A_DAY = commonJsModule.MINUTES_IN_A_DAY;
10
11
  export const MIN_SESSION_IDLE_TIMEOUT_IN_MINUTES = commonJsModule.MIN_SESSION_IDLE_TIMEOUT_IN_MINUTES;
11
12
  export const MIN_SESSION_LENGTH_IN_MINUTES = commonJsModule.MIN_SESSION_LENGTH_IN_MINUTES;
13
+ export const NO_RENEWAL_REPORT = commonJsModule.NO_RENEWAL_REPORT;
12
14
  export const NO_SESSION_LENGTHS = commonJsModule.NO_SESSION_LENGTHS;
13
15
  export const NO_SESSION_LENGTH_RULE = commonJsModule.NO_SESSION_LENGTH_RULE;
14
16
  export const NO_SESSION_LENGTH_SETTINGS = commonJsModule.NO_SESSION_LENGTH_SETTINGS;
@@ -27,6 +29,7 @@ export const SSO_SESSION_IDLE_TIMEOUT_COLUMN = commonJsModule.SSO_SESSION_IDLE_T
27
29
  export const SSO_SESSION_LENGTH_COLUMN = commonJsModule.SSO_SESSION_LENGTH_COLUMN;
28
30
  export const SessionEndReason = commonJsModule.SessionEndReason;
29
31
  export const SessionLengthKind = commonJsModule.SessionLengthKind;
32
+ export const decideSessionRenewal = commonJsModule.decideSessionRenewal;
30
33
  export const doesShortenAnySession = commonJsModule.doesShortenAnySession;
31
34
  export const getActivityAtRenewal = commonJsModule.getActivityAtRenewal;
32
35
  export const getIdleTimeoutInMinutes = commonJsModule.getIdleTimeoutInMinutes;
@@ -38,10 +41,12 @@ export const getSessionLengthProblem = commonJsModule.getSessionLengthProblem;
38
41
  export const getSessionLengthRange = commonJsModule.getSessionLengthRange;
39
42
  export const getSessionLengthRule = commonJsModule.getSessionLengthRule;
40
43
  export const getSessionLengthSettingProblem = commonJsModule.getSessionLengthSettingProblem;
44
+ export const getUnknownInactivity = commonJsModule.getUnknownInactivity;
41
45
  export const hasSessionLimits = commonJsModule.hasSessionLimits;
42
46
  export const isSessionEndReason = commonJsModule.isSessionEndReason;
43
47
  export const isSessionLengthRuleSet = commonJsModule.isSessionLengthRuleSet;
44
48
  export const readReportedInactivityInSeconds = commonJsModule.readReportedInactivityInSeconds;
49
+ export const readReportedLongestInactivity = commonJsModule.readReportedLongestInactivity;
45
50
  export const readSessionEndReason = commonJsModule.readSessionEndReason;
46
51
  export const readSessionLengthSettings = commonJsModule.readSessionLengthSettings;
47
52
  export const readSessionLengthValue = commonJsModule.readSessionLengthValue;
@@ -272,7 +272,7 @@ const getRunRecordArgument = (metadata) => {
272
272
  exports.getRunRecordArgument = getRunRecordArgument;
273
273
  const CAPITALIZED_WORD_PATTERN = /^\p{Lu}\p{Ll}+$/u;
274
274
  /*
275
- * A model's name in the middle of a sentence: "scheduled maintenance event",
275
+ * A model's name in the middle of a sentence: "maintenance event",
276
276
  * keeping a word that is not simply capitalized as it is ("IoT Fleet" keeps
277
277
  * IoT).
278
278
  */
@@ -7087,7 +7087,7 @@ const TEMPLATE_DEFINITIONS = [
7087
7087
  category: WorkflowTemplateCategory.ScheduledMaintenance,
7088
7088
  icon: IconProp_1.default.Calendar,
7089
7089
  workflowName: "Announce maintenance in Slack",
7090
- workflowDescription: "Posts to Slack whenever a scheduled maintenance event is created.",
7090
+ workflowDescription: "Posts to Slack whenever a maintenance event is created.",
7091
7091
  variables: [SLACK_WEBHOOK_URL],
7092
7092
  graph: {
7093
7093
  nodes: [
@@ -7139,7 +7139,7 @@ const TEMPLATE_DEFINITIONS = [
7139
7139
  category: WorkflowTemplateCategory.ScheduledMaintenance,
7140
7140
  icon: IconProp_1.default.Calendar,
7141
7141
  workflowName: "Announce maintenance in Mattermost",
7142
- workflowDescription: "Posts to Mattermost whenever a scheduled maintenance event is created.",
7142
+ workflowDescription: "Posts to Mattermost whenever a maintenance event is created.",
7143
7143
  variables: [MATTERMOST_WEBHOOK_URL],
7144
7144
  graph: {
7145
7145
  nodes: [
@@ -11,23 +11,34 @@ var WorkflowStatus;
11
11
  WorkflowStatus["Timeout"] = "Timeout";
12
12
  WorkflowStatus["WorkflowCountExceeded"] = "Workflow Count Exceeded";
13
13
  })(WorkflowStatus || (WorkflowStatus = {}));
14
+ /*
15
+ * Marks an English text as a key of the Dashboard's locales - the same
16
+ * marker as Common/UI/Utils/TranslateTemplate's translationKey, kept here
17
+ * so this file stays free of the UI. It returns the text unchanged.
18
+ */
19
+ const translationKey = (text) => {
20
+ return text;
21
+ };
14
22
  /*
15
23
  * A run's status in the words the dashboard shows it in. Two of them read
16
24
  * differently from their stored value: a run that worked is "Executed", and a
17
25
  * run the plan did not allow is "Execution Exceeded Current Plan". The status
18
- * pill and a downloaded run both read from here, so a log someone downloads
19
- * says what the list they downloaded it from said.
26
+ * pill, the runs' Status filter and a downloaded run all read from here, so a
27
+ * log someone downloads says what the list they downloaded it from said. Each
28
+ * is a key of the Dashboard's locales (its extractor reads this file as a
29
+ * "keys" root): the pill and the filter look it up in the reader's language,
30
+ * while a downloaded run keeps the English.
20
31
  */
21
32
  const WORKFLOW_STATUS_LABELS = {
22
- [WorkflowStatus.Scheduled]: "Scheduled",
23
- [WorkflowStatus.Running]: "Running",
24
- [WorkflowStatus.Waiting]: "Waiting",
25
- [WorkflowStatus.Success]: "Executed",
26
- [WorkflowStatus.Error]: "Error",
27
- [WorkflowStatus.Timeout]: "Timeout",
28
- [WorkflowStatus.WorkflowCountExceeded]: "Execution Exceeded Current Plan",
33
+ [WorkflowStatus.Scheduled]: translationKey("Scheduled"),
34
+ [WorkflowStatus.Running]: translationKey("Running"),
35
+ [WorkflowStatus.Waiting]: translationKey("Waiting"),
36
+ [WorkflowStatus.Success]: translationKey("Executed"),
37
+ [WorkflowStatus.Error]: translationKey("Error"),
38
+ [WorkflowStatus.Timeout]: translationKey("Timeout"),
39
+ [WorkflowStatus.WorkflowCountExceeded]: translationKey("Execution Exceeded Current Plan"),
29
40
  };
30
- exports.UNKNOWN_WORKFLOW_STATUS_LABEL = "Unknown";
41
+ exports.UNKNOWN_WORKFLOW_STATUS_LABEL = translationKey("Unknown");
31
42
  const getWorkflowStatusLabel = (status) => {
32
43
  if (!status) {
33
44
  return exports.UNKNOWN_WORKFLOW_STATUS_LABEL;
@@ -1,5 +1,6 @@
1
1
  import FilterCondition from "../../Filter/FilterCondition.mjs";
2
2
  import NotificationRuleCondition from "./NotificationRuleCondition.mjs";
3
+ import { NotificationRuleUpdateKind } from "./NotificationRuleUpdates.mjs";
3
4
  export default interface BaseNotificationRule {
4
5
  _type: string;
5
6
  filterCondition: FilterCondition;
@@ -9,4 +10,5 @@ export default interface BaseNotificationRule {
9
10
  existingTeam?: string;
10
11
  shouldPostToExistingChat?: boolean;
11
12
  existingChatIds?: Array<string>;
13
+ updatesToPost?: Array<NotificationRuleUpdateKind> | undefined;
12
14
  }
@@ -1,5 +1,6 @@
1
1
  import FilterCondition from "../../Filter/FilterCondition";
2
2
  import NotificationRuleCondition from "./NotificationRuleCondition";
3
+ import { NotificationRuleUpdateKind } from "./NotificationRuleUpdates";
3
4
  export default interface BaseNotificationRule {
4
5
  _type: string;
5
6
  filterCondition: FilterCondition;
@@ -9,4 +10,5 @@ export default interface BaseNotificationRule {
9
10
  existingTeam?: string;
10
11
  shouldPostToExistingChat?: boolean;
11
12
  existingChatIds?: Array<string>;
13
+ updatesToPost?: Array<NotificationRuleUpdateKind> | undefined;
12
14
  }
@@ -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
+ }